id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_30400 | I am using File::Find::Rule to get the path of a specific file which exists in multiple sub directories and sometimes in sub directories directory.
File::Find::Rule->file()
->name('abc')
->in('.');
Apart from this, i am using
use File::Find;
find(\&wanted, @directories_to_search);
... | |
doc_30401 | I saw here that I can set capabilities for the process and then drop root privileges using setuid(). Now, if I fork the process that will keep the set list of capabilities with it, without root privileges, then my program will be kept running with minimal privileges.
A very rough overview of my planning:
int main()
{
... | |
doc_30402 | <div class="row">
<div class="col-md-12">
<div id="con-close-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModal" aria-hidden="true" style="display: none;">
<div class="modal-dialog">
<div class="modal-content">
<di... | |
doc_30403 | So even if I set that my main activity can run only landscape, I set landscape in my AndroidManifest, when I click Bixby button, then my application switches to portrait mode.
This isn't just my application, tested on VLC, games Unity 3D based, Asphalt 9, some of those don't have a support for that and simply crash.
Is... | |
doc_30404 | return Mono.from(buildPublisher(requestDto))
.subscribeOn(Schedulers.boundedElastic())
.onErrorResume(e -> Mono.empty())
.map(this::mapResponse);
I need to make tens of thousands of calls to that service so am calling the above method from here:
return Flux.fromStream(hugeListOfObj... | |
doc_30405 | -webkit-filter: contrast(0.5) sepia(100%) invert(100%) hue-rotate(350deg) brightness(2.5);
filter: contrast(0.5) sepia(100%) invert(100%) hue-rotate(350deg) brightness(2.5);
I would be fine with a Javascript library that can do this, but I also cannot find something like this. Does anyone have any ideas on this ... | |
doc_30406 | After initializing via
renv::init()
I know I upload packages and work as normal, does
renv::snapshot()
then just need to be called at the end of the document?
A: I wouldn't use renv::snapshot() within a document. When working on a project, you might discover that you have to install new packages from the command lin... | |
doc_30407 | A company services notebooks. A review of its records shows that the time taken for a service call is normally distributed with a mean of 60 minutes and standard deviation of 20 minutes.
a. What proportion of service calls take less than one hour?
b. What proportion of service calls take more than 50 minutes?
c. What p... | |
doc_30408 |
A: Using YARD instead of RDoc directly will let you include Textile or Markdown files so long as their file suffixes are reasonable. I often use something like the following Rake task:
desc "Generate RDoc"
task :doc => ['doc:generate']
namespace :doc do
project_root = File.expand_path(File.join(File.dirname(__FILE_... | |
doc_30409 | The above error comes while I try to fill the form.
terminal:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\username\AppData\Local\Programs\Python\Python37-32\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "c:\Users\username\Desktop\Store Accounti... | |
doc_30410 | <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top">
<TextBlock Text="Vijaya dhas" FontSize="36" FontWeight="Black"/>
<TextBlock Text="Mobile App Developer Trainee" FontSize="26" FontWeight="SemiBold"/>
<TextBlock Text="Chennai" FontSize="24" FontWeight="Medium"/>
</StackPanel>
If i give li... | |
doc_30411 | $ bash <<EOF
read -p 'This will not work' input
EOF
because
$ cat script
read -p 'This will work fine' input
$ bash script
This will work fine
What's the difference? It appears to be a standard behavior because ash behaves exactly the same way.
Based on the answers provided so far, I suspected (and then confirmed)... | |
doc_30412 | rustc --version 1.36.0
cargo --version 1.36.0
postgres = "0.15"
fn main() {
let conn = Connection::connect("postgresql://postgres:postgres@localhost/db1",
TlsMode::None).unwrap();
let tname = "message";
conn.execute("CREATE TABLE IF NOT EXISTS $1 (
id ... | |
doc_30413 | SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
SetLayeredWindowAttributes(hwnd, RGB(0, 0, 0), 75, LWA_ALPHA);
SetWindowLong(hwnd, GWL_STYLE, 0);
The output of my code by adding the above code is like following:
When opacity value is 255:
When opacity value is 75
As yo... | |
doc_30414 | I want to {{||transclude}} the following code in different pages. How do I make it automatically find all tiddlers nested under the <<currentTiddler>> or $(currentTiddler)$?
(See [tag[TagNameHere] - 2nd line)
This is my code: (Found on https://kookma.github.io/TW-Shiraz/)
\define tmpSearchTid() $:/temp/demo/qa/search-s... | |
doc_30415 | How to allow "decremental authorization" so the users can remove certain scopes?
A: At this time it is not possible to revoke a single scope. When a user revokes your access it will be to all scopes that they have granted you.
| |
doc_30416 | I've noticed if I put the axis drawing code in a method, then call that exactly where the code used to be, the playground runs drawRect thousands of times until it crashes the program. If I have it how it is shown below, it runs only once.
class BarGraphView: UIView {
var frameWidth = CGFloat(0.0)
var frameHei... | |
doc_30417 | This is what I tried but it's not working...
city_df = city_df[city_df["city_latitude"].isnumeric()]
Does anyone know how to make it work?
Sample Data:
A: You can try with a little tweak in the code:
city_df = city_df[city_df['city_latitude'].map(lambda x: str(x)).str.isnumeric().fillna(True)].dropna(subset=['city_l... | |
doc_30418 | import sys
movies_list = []
user_key = input("To add a movie enter 'add', to quit enter 'quit'")
def menu():
while user_key != "quit":
if user_key == "add":
add_movies()
elif user_key == "list":
pass
elif user_key == "quit":
sys.exit()
else:
... | |
doc_30419 | $start_time = strtotime($row['time1']);
$end_time = strtotime($row['time2']);
$interval = $end_time - $start_time;
Do I have to combine date and time in one field and store as timestamp?
Thanks.
A: you can try somethig like this:
$datetime1 = date_create($date_1);
$datetime2 = date_create($date_2);
$inter... | |
doc_30420 | But when i check android Profiler, it says that my app is currently using around 350 MB memory on Samsung Galaxy S7.
I get OutOfMemoryException on my app a couple of times, I was curious why its happening. When i dig down a little i found out about 16-32 MB limit, but in actual my app is using 350 MB
I want to know ho... | |
doc_30421 | function unhide(rad) {
var id = "answer" + rad.id.replace("-", "");
var answer = document.getElementById(id);
if (answer) {
var current = document.getElementById(currentShown);
if (current) current.className = "hidden";
currentShown = id;
answer.className = "unhidden";
}
}
When my radio button was clic... | |
doc_30422 | b2 = Button(text = "Image Download",font=("Raleway", 10),command = lambda: download('Image','.jpg'), width=20)
b2.pack()
when this execute the download() executes in download():
window = Toplevel(root)
window.geometry('600x350+305+220')
window.wm_title(TYPE + ' Download')
this is for creating new window. But it... | |
doc_30423 |
A: An Enum is still an Object, so yes, you can definitely use them as keys for a LoadingCache (and they have the advantage of being immutable, which is essential for keys).
However, there's only one implementation of LoadingCache.
| |
doc_30424 |
}
That isn't working, it says Binary operator '==' cannot be applied to the operands of type 'Int' and 'CountableClosedRange.
(Purpose of this is to disable rows 0-12.)
What is the proper way to do this? Basic question but I don't know what to search Google for. Thanks in advance!
If I had to guess it would be:
for n... | |
doc_30425 | var processInfo = new ProcessStartInfo("C:\\Windows\\System32\\notepad.exe")
{
UserName = "some user",
Password = MakeSecureString("some password"),
UseShellExecute = false,
LoadUserProfile = true
};
Process process = Process.Start(processInfo);
This code works if I host WCF service as a self-hosted c... | |
doc_30426 | echo "<td><a href='');\">View Location</a></td>";
echo "<td><a href='editPeople.php?id=".$query2['ID']."');\">Edit</a></td>";
echo "<td><a href='deletePeople.php?id=".$query2['ID']."' onClick=\"javascript:return confirm('Are you sure you want to delete this record?');\">Delete</a></td><tr>";
This is my js coming from ... | |
doc_30427 | This is the code:
#include <stdio.h>
int main(void)
{
int input;
printf("Please enter an integer:\n");
scanf("%d",&input);
int temp = input;
while(input<=temp+10)
{
printf("%d ",input);
input++;
}
printf("\n");
return 0;
}
A: When you compile or build, files a... | |
doc_30428 | var inOneStep = (from r in session.Linq<Models.ReservationHeader>()
select new ReservationDto(r.Current));
return inOneStep;
However, after splitting the above into two queries, with ToList() called on the results of the first, the code executes fine.
var step1 = (from r in session.Linq<Models.ReservationHeader>()... | |
doc_30429 |
*
*normalize result within a group so that the longest result of a group take the full width of the graph (whatever the time spent in other groups)
*to change the order of the bars in the graph to be able to have a standard bar charts where instead of having cluster of bar of the same colours, you could have
cluste... | |
doc_30430 | from TABLE_A
where ID = (select ID
from TABLE_B as b
inner join TABLE_C as c on b.id = c.id
where b.date = "2021-10-31");
Cannot recognise input near '(' 'select' 'ID'
A: There is a correction in your query.
As inner select query will return the collection of Ids, you need to u... | |
doc_30431 | <?php
$somePath = 'randomfoldername';
$dir = new DirectoryIterator($somePath);
foreach ($dir as $fileinfo) {
if ($fileinfo->isDir() && !$fileinfo->isDot()) {
echo '<option value="$fileinfo->getFilename[]">'.$fileinfo... | |
doc_30432 | For this I am getting a NullPointerException on the line where I've declared Imageview. But when I implement its methods the code won't compile.
onCreateOptions isn't working either. Please rectify the error. Thanks in advance
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan... | |
doc_30433 | I would like to return the array as a 2D array, however I'm not sure what the complete shape of the array will be (I know the amount of columns, but not rows).
What I have right now is:
columns = _____
for line in currentFile:
currentLine = line.split()
data = np.zeros(shape=(columns),dtype=float)
tempD... | |
doc_30434 | public class Main{
public static void main(String[] args)throws Exception{
Scanner myObj = new Scanner(System.in); // Create a Scanner object
System.out.println("Enter string:");
String lexerInput = myObj.nextLine();
System.out.println("String entered: " + lexerInput);
char[... | |
doc_30435 | Those images come in as Bitmap; I need to convert them to drawable, but I don't know how.
Drawable icon = getResources().getDrawable(R.drawable.icon);
Am I doing it correctly calling the url(images), or is there a better way to do that?
This is the asynctask where I get the images
private class BajarImagenTask exte... | |
doc_30436 | I'm also using BootstrapX - clickover, a Bootstrap extension to allow popovers to be opened and closed with clicks on elements instead of hover or focus: https://github.com/lecar-red/bootstrapx-clickover.
In popover I'm calling a HTML file with simple AJAX currency converter.
This is HTML which triggers popover with cu... | |
doc_30437 | I've found that if I take the difference in durations and skip ahead in the output video by this amount it will basically sync up with the original video, but I'm hoping to not have to use this hack. Knowing this, I assumed the difference was because HTML5 video's play() function is asynchronous, but even calling recor... | |
doc_30438 | When I call:
$("#my_tree").jstree('get_json');
the function returns only the JSON data of the currently selected node.
If nothing is selected, then I can get the entire data and that's ok, but if a leaf is selected I only get the JSON part corresponding to the leaf.
What is the way to get always the JSON of the entir... | |
doc_30439 | Error 3 error LNK1120: 1 unresolved externals
I have reduced everything down to a simple main function and simple .asm file with one procedure and I am still getting the same build (or rather link) error. I'm at a loss.
Both are using the cdecl convention.
The MASM32 code (in its own .asm file):
.MODEL FLAT, C
.... | |
doc_30440 |
*
*asks two inputs to the user;
*create a csv/txt file using one of the inputs( the first input) as part of the file name and save it to a specific folder;
*calls an application after the file is created.
my first concern is what would be the best method? I was considering VB or VBS but I have seen some c++ demos ... | |
doc_30441 | Error:
ERROR in Error: Metadata version mismatch for module
E:/new-arog-V3.0/arogui-v.3.0/node_modules/angular-datatables/index.d.ts,
found version 4, expected 3, reso
lving symbol PagesModule in E:/new-arog-V3.0/arogui-v.3.0/src/app/arog/pages/pages.module.ts,
resolving symbol PagesModule in E:/new-arog-V... | |
doc_30442 | Controller:
$data = array(
'name' => 'username',
'id' => 'username',
'class' => 'form-control',
'placeholder' => 'username here',
);
$this->load->view('login_page', $data);
View:
<?php echo form_input($data); ?>
It doesn't work, I should use $name; $id; $class; $placeholde... | |
doc_30443 | -moz-box-shadow: 0 1px 1px #c00
-webkit-box-shadow: 0 0 1px 0 #c00
box-shadow: 0 0 1px 0 #c00
A: Try 3 shadows, no blur. http://jsfiddle.net/leaverou/8tgAp/1/
body {
width: 300px;
height: 200px;
margin: 20px auto;
-moz-box-shadow: 0 1px 0 #c00, 1px 1px 0 #c00, -1px 1px 0 #c00;
-webkit-box-... | |
doc_30444 | I'm unsure what's causing this error, as on the front-end it seems to be fine. Any advice would be appreciated! Thank you!
.controller("IndexController", [ "$scope", 'items',
function($scope, items)
{ $scope.items = items.items
$scope.addItem = function(){
items.create({
title: $scope.title,
... | |
doc_30445 |
A: Yes, it is possible. Add this code to your html page:
<head>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width" />
</head>
To enable the zoom just create a copy of the same page but without meta tags:
<he... | |
doc_30446 | Sub ChangeOneToGrade()
Dim rng As Range
Set rng = Application.InputBox(Prompt:="Please select a range", Type:=8)
Dim rng2 As Range
Set rng2 = rng
Dim Count As Integer
For Each cell In rng.Rows
If cell.Value = 1 Then
cell.Value = rng2.Offset(0, Count)
End If
Count = Count + 1
Next cell
End Sub
A: This isn't ideal, ... | |
doc_30447 | Using the same document words collection for example:
{ "text" : "cake" }
{ "text" : "sale" }
{ "text" : "sale cake" }
{ "text" : "cake sale" }
{ "text" : "dress sale" }
{ "text" : "cake sale monday" }
Is it possible to somehow explicitly negate the search phrase (not only one word), the following doesn't work when ... | |
doc_30448 | <div class="text_site">
<legend><h3>O:</h3></legend>
<ul class = "no-bullets">
<li> <input type="radio" name="radio-button" id="All" value="1"> <label class="radio-label">All</label> </li>
<li> <input type="radio" name="radio-button" id="Just" value="0"> <label class="radio-label">Just</label></... | |
doc_30449 | I am building a Flask Web App and trying to create a reasonably complex form that basically allows a user to add more fields on button click but still retaining the benefits of WTForms.
I have come across this module online: https://pypi.org/project/WTForms-Dynamic-Fields/
I am confused as to how I am supposed to imple... | |
doc_30450 | We tried copying all of the WooCommerce code from the template file cart.php.
Everything is showing correctly, except for the prices. Our quotation cart is showing the basic prices that are set up in the WooCommerce back-end.
But here's our problem: When adding a product to the cart, there are additional price settings... | |
doc_30451 | date way
date_1 A
date_1 B
date_1 A
date_2 A
date_2 A
date_2 A
I want to add a journey column based on theses conditions : it's a cumulative sum that increment when way or date are not the same from a row to the next one and reset the cum sum when date are changing
I already have :
(df['journey']=df['date'].ne(d... | |
doc_30452 | I tried a lot of times but it failed with following error message. No matter how you use cmd mode or GAE launcher, it was always the same issue. I have no idea what's going on. Could you help me?
P.S.:Windows 7 64bit OS ,2.7.10 Python,GAE SDK 1.9.22
c:\Program Files (x86)\Google\google_appengine>c:\python27\python.exe
... | |
doc_30453 | !function(){function n(n,t){return t>n?-1:n>t?1:n>=t?0:0/0}function t(n){return null!=n&&!isNaN(n)}function e(n){return{left:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)<0?r=i+1:u=i}return
and this line goes longer !!!
This is my Json file
{
"Id": 2... | |
doc_30454 | Shortcuts app UI:
A: First of all I'm sorry if my question wasn't clear, however I think solved my problem. I wanted to create a similar collectionViewCell to the one on the Shortcuts app and I think I did pretty well, here's what I've done...
Final result
I put the colors I wanted into a Hash Table and then generat... | |
doc_30455 | set.seed(0)
x1 <- c(1, 1, 1, 1, 1, 2, 2, 2, 2)
x2 <- c(1, 1, 0, 0, 0, 1, 1, 1, 1)
x3 <- c(1, 1, 2, 2, 4, 1, 1, 2, 1)
n <- c(1, 1, 1, 5, 5, 1, 1, 1, 1)
y <- rnorm(9)
mydf <- data.frame(x1, x2, x3, n, y)
What I would like to do is
*
*identify rows with n=1 and which share identical values of (x1, x2, x3)
*return a... | |
doc_30456 | but when i upload it to ionic view (view.ionic.io), and run it on my phone,
the tab disappear.
My Tab Script :
<script id="templates/tabs.html" type="text/ng-template">
<ion-tabs class="tabs-positive tabs-icon-top">
<!-- Dashboard Tab -->
<ion-tab title="Status" icon-off="ion-ios-pulse" icon-on="ion-ios-pu... | |
doc_30457 | Java:
final String sql = "DELIMITER $$\n" +
"CREATE PROCEDURE `app_configs_select_all`()\n" +
"BEGIN\n" +
" select config_id,\n" +
" config_name,\n" +
" config_value,\n" +
" config_t... | |
doc_30458 | i find two official tutorial for use that, but both of them not works and got those error:
first tutorial.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: ir.azonik.testtest, PID: 5160
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{aa.bb.cc/aa.bb.cc.MainActivity}: java.lang.NullPointe... | |
doc_30459 | I've a ruby script thats opening files and inserting the data inside the file into a database. Some of the files are missing so when the script attempts to open the file it throws a file not found exception.
Can anyone tell me how I can continue the process instead of the whole thing coming to an abrupt end. Please no... | |
doc_30460 | To take a stab in the dark, would I have a Person Object that has all these fields as Properties? Then what, though?
Is that redundant since L2S already mapped my Person Table to a Class?
Is this just 'how it goes', that you eventually end up passing 30 parameters(or MORE) to an UPDATE statement at some point?
For... | |
doc_30461 | import React, { Component } from 'react';
import {AppRegistry, Image, TouchableHighlight} from 'react-native';
import { StackNavigator, DrawerNavigator } from 'react-navigation';
import ScreenHome from './screens/Home'
import ScreenRegister from './screens/Register'
import FontAwesome from "react-native-vector-icons/F... | |
doc_30462 | OpenProfile.java
package com.example.test;
import java.util.ArrayList;
import java.util.HashMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.SharedPreferences;
import android.os.Async... | |
doc_30463 |
A: WSO2IS does not support for multi-factor authentication by default. It has capabilities to support it. Because you can implement and plug custom authenticators for WSO2IS. However there is no any multi-factor authenticator which is shipped with it. But there is some plan to ship a FIDO authenticator with WSO2IS n... | |
doc_30464 | code is
protected void postscrap_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection();
con.ConnectionString=ConnectionStrings["Con"].ConnectionString;
con.Open();
DataTable dt2 = new DataTable();
if (con.State == ConnectionState.Open)
... | |
doc_30465 | Peter -> Hockey
Peter -> Soccer
Peter -> Basketball
When i call it from string from
interface PersonRepository extends Neo4jRepository<Person, Long>{
@Query("MATCH (p:Person)-[has:HAS_HOBBY]->(h:Hobby) RETURN p, has, h"
List<Person> find();
Then i have a PersonService method which calls PersonRepostiry.find()
And wh... | |
doc_30466 | Since my gnuplot script is rather long, I would like to introduce a variable to set the flag whether predicted values should be contained or not. I want to use different line types, axis and labels, and hence, cannot use the "using" approach.
Here is what I use so far:
plot 'file.txt' using 2:xticlabels(1) title "Val1 ... | |
doc_30467 | abstract class Parent{
A a;
static createA(){
// some logic behind creating Object A
a = new A();
}
public void doSomething(){
a.foo();
}
}
class Child1 extends Parent{
static{
createA();
}
}
I am trying to mock the object A inside the Parent class when doS... | |
doc_30468 | message": "The specified resource does not exist
the url we are using is
`https://${tableService.storageAccountName}.table.core.windows.net/tablename
A: Simply pointing to a storage account, without any form of credentials, will not work for a private storage account or container.
There are a couple of options you ha... | |
doc_30469 | Does anyone know if this is a particularly slow or locking operation which could impact server performance in a large environment?
A: Locking no. Slow, depends on what you're comparing it to. It's fairly cheap as far as I/O goes, but I/O is generally slow overall compared to other operations. So, if you must use it... | |
doc_30470 | Python version 3.9
Boto3 version 1.16.25
There is my code
iam = boto3.client('iam', region_name='us-east-1')
roles = iam.list_roles()["Roles"]
print(roles)
Result:
{
"Path":"/",
"RoleName":"aws-***-delivery-role",
"RoleId":"AROA****LOIO",
"Arn":"arn:aws:iam::448*****770:role/aws-***-delivery-role",
"Cre... | |
doc_30471 | @ServerEndpoint(value = "/wsep")
public class WebSocketEndpoint {
private static final Logger LOGGER = LoggerFactory.getLogger(WebSocketEndpoint.class);
private Session session;
@OnOpen
public void onOpen(Session session) {
this.session = session;
try {
session.getBasicRem... | |
doc_30472 | def Function(web_pages):
for page in web_pages:
scrape page
analyse page
write .csv output
The problem is that I want to leave run the script running for a few months to scrape the data every day, so I need some method of writing files with discernible history.
Right now I have
time_now = ... | |
doc_30473 | How can I solve this problem?
A: c.h is not a standard header. Is it an include file defined in the book? Try removing the include and see if the code compiles.
A: The book made out that it was a standard header. The only thing that it was used for was the definitions of true and false, so I defined them by hand like... | |
doc_30474 | When i run my program instead of dis playing the images it just displays the name of it, this happen with other programs i've written. if you need any more info on the code just ask. Images are just no being displayed, so please help!!!
My code:
import java.util.Scanner;
import javax.swing.JFrame;
public class Initia... | |
doc_30475 | How can I do it?
For now in onClick function I create a AlertDialog to "show" the content as if I'm showing an Activity, but this is not correct, I would move as If pressing a button I create an Intent that let me start a new activity giving me the possibility to save then the Movie data in the RecyclerView itself
over... | |
doc_30476 | Placetype and Place
placetype consists of all the placetypes like resturaunt, hotel, motel etc
now i want when a user click on resturaunt for eg, he gets all the returaunt list and not all the places other then resturaunt. i am unable to do this. please help...
here is my code:
Database.java
package com.example... | |
doc_30477 | <Text>hello, world</Text></Image id="100">
or plain text without tags. How can I generate xml out of tagged column values without escaped symbols.
here is an example of the statement:
select xmlelement("Proposal", xmlforest(1 as "ProposalType"
,to_char(sysdate, 'dd.mm.yyyy') as "Crea... | |
doc_30478 | First column of A is distance D1, second column is distance D2. Matrix B copies the same columns (and rows) of A, except when in A it happens that D2-D1=delta exceeds a threshold. In this case, the row of A is break in two rows in B.
I wrote an algorithm, but the problem is that it gives segmentation fault. Someone can... | |
doc_30479 | I quickly found first rpm: perl-XML-Xerces-2.7.0_0-4.el5.x86_64.rpm
$ rpm -i perl-XML-Xerces-2.7.0_0-4.el5.x86_64.rpm
warning: perl-XML-Xerces-2.7.0_0-4.el5.x86_64.rpm: Header V3 DSA/SHA1 Signature
error: Failed dependencies:
libxerces-c.so.27()(64bit) is needed by perl-XML-Xerces-2.7.0_0-4.el5.x86_64
perl(:MODUL... | |
doc_30480 | public class MyData
{
public string Status;
public StatusMsg StatusMessage;
private Brush _statusBrushes;
public Brush StatusBrushes
{
get
{
switch (StatusMessage)
{
case StatusMsg.Cancel:
return Brushes.Red;
... | |
doc_30481 | I have fields "length" and "width" in foreignkey. And I want when submit a form to add value of "squaremeter" field to DB calculated based on the length and width selected
def save(self, *args, **kwargs):
self.squaremeter = self.length * self.width
self.squaremeter.save()
super(... | |
doc_30482 | ||
doc_30483 | for (i = 0; i < size; i++) {
for (j = 0; j <= i; j++)
l[i][j] = j + 1;
}
And I want to calculate the order of the code in Big O notation but I'm really bad. If it was a regular matrix it would be O(n²) but in this case I'm not sure if it's O(nlog(n)) or something like that.
A: Typically (but not always) o... | |
doc_30484 | So I have a VisualStudio2010 asp.net project (.net 4.0). The project runs perfectly when I run it through Visual Studio. If manually copy the files to my test server, it also works perfectly.
The problem is when I publish the site through Web Deploy, I get a NullReferenceException whenever my code tries to instantiate... | |
doc_30485 | val p = """^[bf]oo: '(.*)'"""r
println(p.replaceFirstGroup("foo: 'replace me'", "asdf")) // something like this
with output
foo: 'asdf'
A: Using lookahead and lookbehind (as defined for java.util.regex.Pattern), along with String.replaceFirst would give you the desired results:
val p = """(?<=^[bf]oo: ').*(?=')"""
p... | |
doc_30486 | I've got some data that looks like this:
Student Class Course Date Instructor
Alex Intro to Philosophy 11/4/20 Jake
James Algorithms 11/5/20 Ashley/Jake
Mike Spanish I 11/7/20 Ashley
Steven Vector Calculus ... | |
doc_30487 |
Blockquote
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.1.115:5000/journal/download/HP-protein-prediction.pdf-1641052987115.pdf. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 204
Blockquote
I have enabled cors and tried a mill... | |
doc_30488 | I have registered a "Web App/API" in my directory already, and I have set it up to have the appropriate permissions to call the AAD Graph API in the App Only Context. I have also generated an application key/certificate for my app so that I can authenticate as a confidential client.
I want to take a look at my AAD Toke... | |
doc_30489 | All the examples/questions I've found online only seem to deal with embedded Jetty - nothing about just using Jetty as an external servlet container.
I've set everything up with the best of my knowledge of how these pieces fit together, but the injection doesn't seem to happen, even when the system says everything is a... | |
doc_30490 | print("Let's play again !" "I am thinking of a number between 1 and ")
I tried using + but it only seems to work for word variables only.
Here is the code for the relevant section:
print ("Do you want to play again?" " Yes/No")
Play = input()
if Play.lower() == "yes":
print ("What do you want your range to be?" "... | |
doc_30491 | ERROR PuppeteerCrawler: handleRequestFunction failed, reclaiming failed request back to the list or queue {"url":"https://play.google.com/store/apps/details?id=com.google.android.apps.translate&hl=en&gl=US","retryCount":1,"id":"RiHGfpYUb4PuquI"}
2022-08-27T07:13:48.079Z Error: Evaluation failed: TypeError: Failed to ... | |
doc_30492 | cout << "Loading..." << endl;
// The delay would be between these two lines.
cout << "Loading..." << endl;
A: in c++ 11 you can use this thread and crono to do it:
#include <chrono>
#include <thread>
...
using namespace std::chrono_literals;
...
std::this_thread::sleep_for(2s);
A: to simulate a 'work-in-progress ... | |
doc_30493 | So far, I know both methods "work" and there isn't a noticeable difference for me, but I'm curious if there's a case that doesn't handle one of these methods well like mobile networks or users in foreign countries.
| |
doc_30494 |
Also what would be the best approach in case of making animated background of mowing cubes so its lightweight for website. Should I use video for that or maybe some library like Three.js
A: Search for "CodePen maze generator", or something to this effect:
https://codepen.io/GabbeV/pen/viAec
var directions = [[1,0],[... | |
doc_30495 | pip install openbabel --user --log LOG
and then I get the following error:
Collecting openbabel
Using cached openbabel-2.4.1.tar.gz (74 kB)
Building wheels for collected packages: openbabel
Building wheel for openbabel (setup.py) ... error
ERROR: Failed building wheel for openbabel
Running setup.py clean for op... | |
doc_30496 |
A: The dialog widget is essentially just the page widget styled to look like a dialog so the normal page events will still fire. Based on your question it sounds like the pagehide should do what you want, here's a link to some of the other page events
For example
HTML
<div data-role="page">
<div data-role="header"... | |
doc_30497 | When phone state is ringing it will show first toast, there is one button when i click on that button first toast will be dismiss and second toast will be shown.
And when I again click on second toast button it will dismiss second toast and show first toast. How can i do this? Please help me as soon as possible.
Here i... | |
doc_30498 | in my application I have a table for example (employee details) second table is leaves.
what I want is to link employee details tables primary key to leaves table.
employee can have many leaves
So when I insert leaves record for employee it should store with employee details table id and when I search in leaves form ... | |
doc_30499 |
*
*I read that it is a good practice to denotify once the notification occurs. But in our scenario, this needs to be notified every time there is a change. So should I go ahead and denotify and subscribe again after all the subcsribers have denotified themselves?
*What happens if my publisher goes down? Is there so... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.