id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_14400 | If I do this:
document.querySelector(".search-global-typeahead__input").dispatchEvent(new Event('focus', { bubbles: true }))
it seems it changes like the cursor was on it (because it triggers something in CSS behaviors and the field growths).
But I can't get to type something in the input field. My tries:
document.que... | |
doc_14401 | Hence, could you kindly check the code?
const gasUrl = "here is my spreadsheet GAS url";
chrome.tabs.query({active: true, currentWindow: true}, tabs => {
title = tabs[0].title;
url = tabs[0].url;
last = url.slice(-8); // I want to send url's last 8 letters.
console.log(`Title: ${title}`);
console.log(`URL: $... | |
doc_14402 | Homework #3 - Convolution
import numpy as np
#import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
np.set_printoptions(threshold=np.nan)
#04-01 Convolution
def conv395(x,h):
#Function to convolve x input signal and h impulse response
M = len(h)-1
L = len(x)
Ly = M+L
LOL =... | |
doc_14403 | When the map loads it only shows 1 annotation pin on the map even though the print function shows 3 postcodes.
Below is my code.
func showSightingsOnMap(location: CLLocation) {
places = pCodes
print("Tony: Places \(places)")
let geocoder:CLGeocoder = CLGeocoder()
for eachAddress in places {
ge... | |
doc_14404 | I have a table where there is a field called slug. The values of slug column can be like this:-
*
*'About-Us'
*'About-Us-2',
*'About-Us-3',
*'About-Us-5'
In case of duplicate slugs, we are appending a numeric value after the last dash.
*
*'About-Us-2',
*'About-Us-3',
*'About-Us-5'
When inserting new... | |
doc_14405 | email-ext plugin by setting Default content to this :
${FILE,path="absolute_path/index.html"}
I want to add to this (my body mail ) the URL of the build of this job. How is that possible ?
A: $BUILD_URL is the easiest way to do it, just add it in your Body mail and it will show the hyperlink of your latest build.
A:... | |
doc_14406 | The problem is that the first screen you get in my app is a login screen, and if you are not successful in that screen then you are not allowed to see anything.
This way, my monkey tests always stay in the login screen, not being able to go past that.
Is there any solution to this?
A: I faced the same problem while te... | |
doc_14407 |
A: try amazon_cognito_identity_dart package.
//Create a cognito user
CognitoUser cognitoUser1;
//Send OTP
cognitoUser1 = CognitoUser(phoneNumber.text, widget.userPool);
try {
CognitoUserSession cognitoUserSession =
await cognitoUser1.initiateAuth(
AuthenticationDetails(
authParameters: [
... | |
doc_14408 | the library and the adapter which i follow into the zibbra documentation
my folder path is like this
c:\xampp\htdocs\doorbraakboeken
and its seems that when i activate the library
this is what it goes
Warning: require_once(../api-client-library/php/library.php): failed to open stream: No such file or directory in /var/... | |
doc_14409 | <User>
<firstname>aaa</firstname>
<middlename>bbb</middlename>
<lastname>ccc</lastname>
<age>25</age>
<dob>01021988</dob>
<address>bangalore</address>
</User>
and i am able to persist data successfully and created user.
but i want my request to be like below ,i want to se... | |
doc_14410 | I reverse assembled this C code.
extern int addintandint(int i,int j)
{
return i + j;
}
like this
$ gcc -c addintandint.c
$ objdump -d addintandint.o > dump.txt
and result is this
addintandint.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <addintandint>:
0: f3 0f 1e fa ... | |
doc_14411 | I have a main window:
Window(size = IntSize(600, 600)) {
// snip logic
Column(horizontalAlignment = Alignment.CenterHorizontally) {
ChessBoard(board.value, modifier = Modifier.fillMaxWidth(0.8f))
Row(modifier = Modifier
.fillMaxSize(), horizontalArrangement = Arrangement.SpaceEvenly... | |
doc_14412 |
A: use the google cloud platform
have not used it much but pretty sure it works
A: Using that module of python you can upload large files on google drive.
pip install gdrive-python
Then you have to allow the script to upload files on your Google account with this command and follow the instructions:
python -m drive ... | |
doc_14413 | Here I want to list the dropdown according to the radio button I've checked. (When I select Name, I need only the names in dropdown, when I select City, I need only the Cities in dropdown and so on).
<body ng-app="myApp" ng-controller="myController">
<div>
<input type="radio" ng-model="selection" valu... | |
doc_14414 | The account used is a computer account. Use your global user account
or local user account to access this server.
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0
Any help to how to go about this issue is appreciated thank you!
Here is my aspx.cs code behind the asyn... | |
doc_14415 | if (sampleplayer.getExtension_(path) === 'm3u8' ||
type === 'application/x-mpegurl' ||
type === 'application/vnd.apple.mpegurl') {
return cast.player.api.CreateHlsStreamingProtocol;
} else if (sampleplayer.getExtension_(path) === 'mpd' ||
type === 'application/dash+xml') {
re... | |
doc_14416 | I have un comment the link php_imagick.dll in php.ini refer screen 1
And I have added the .dll file in php/ext refer screen 2
I have restarted the apache after doing this but its not working
| |
doc_14417 | void main()
{
signal(SIGINT, f);
int i = 4;
while(i < 1000)
{
sleep(10);
i++;
}
}
void f( int signum ){
printf ( "OUCH \n") ;
}
if I hit "ctr C" while the program is looping, it prints out "OUCH" to the terminal. Is there anyway I can print out the current number that the progr... | |
doc_14418 | jQuery(function(){
jQuery.get('/GalleryPage.aspx?gallery=1234', {}, function(data) {
galleryXML = data;
renderGallery(pageIndex);
}, "xml");
});
As you can see, I have 1 URL ('/GalleryPage.aspx?gallery=147') which I display it in “GalleryView.html”.
Now I want to show another URL/ID in the same page like s... | |
doc_14419 | But unlike in lists,position of sets' (even maps, too) elements depend upon the hashcode of element being added thereby on the element itself (barring exceptions like LinkedHashSet where insertion order is preserved)
So while computing hashcode of element being added to collection and if that element is presumed to be ... | |
doc_14420 | import dash # (version 1.12.0) pip install dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import datetime
from datetime import date
app = dash.Dash(__name__)
# App layout
app.layout = html.Div([
html.H1("Snodas SWE/SD For January", style=... | |
doc_14421 | But it is working fine on linux server.
I am using fabric version 1.4.1.
The code is:
def run_windows(local_path="C:\python27\dist",remote_path="\tmp"):
put(local_path,remote_path)
Below is the error message:
Fatal error: put() encountered an exception while uploading 'C:\python27\dist'
Traceback (most recent call... | |
doc_14422 | System.Math.Abs((int)(x - (fst p))) <> System.Math.Abs((int)(y - (snd p)));;
let isAllowed p = function
| [] -> true
| list -> List.forall (fun (x, y) -> fst p <> x && snd p <> y && (compareDiagonal p x y)) list;;
let rec solve col list =
let solCount : int = 0
match col with
| col when col ... | |
doc_14423 | But solving it in Haskell is giving me big problems. Me being inexperienced when it comes to functional programming is surely a reason.
The problem:
I have a 2D field divided into rectangles of equal size. A simple grid. Some rectangles are empty space (and can be passed through) while others are impassable. Given a st... | |
doc_14424 | I'd like to use elFinder standalone, so press button -> browse for file -> update textfield with location.
Does anyone have a clue what I can do to make it work.
It looks like this http://jsfiddle.net/troex/4A9m9/ but this one doesnt work..
any suggestions?
<script src="http://elrte.org/release/elfinder/js/elfinder.m... | |
doc_14425 | To push a prediction job to gcloud, i use this script:
REGION=us-east1
MODEL_NAME=mymodel
VERSION=v_hopt_22
INPUT_PATH=gs://mydb/test-data.tfr
OUTPUT_PATH=gs://mydb/prediction.tfr
JOB_NAME=pred_${MODEL_NAME}_${VERSION}_b
args=" --model "$MODEL_NAME
args+=" --version "$VERSION
args+=" --data-format=TF_RECORD"
args+=" ... | |
doc_14426 | <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function SetInTelerikGrid(data) {
var tableView = $find('<%=rgRetrievalList.ClientID %>').get_masterTableView();
tableView.set_dataSource(da... | |
doc_14427 | import { UDFCompatibleDatafeed } from
"./datafeeds/udf/src/udf-compatible-datafeed.js";
I need to convert the above import to the next js dynamic import. So I tried this way
const UDFCompatibleDatafeed = dynamic(() => import("./datafeeds/udf/src/udf-compatible-datafeed.js").UDFCompatibleDatafeed);
UDFCompatibleDatafe... | |
doc_14428 | click here for picture
here is my config file in /etct/nginx/site-availabe/default. I have searched the web, from my point i do not understand why nginx does not show it in full scale. Any help would be greatly appreciated.
server {
listen 80 default_server;
listen [::]:80 default_server;
}
root /v... | |
doc_14429 | It was very heavy to load so I used jQuery Lazyload to solve the problem. It worked beautifully except for the fact that it only loads the images on the 1st tab, which is the one active by default. The images in other tabs only loaded upon scrolling. Even if you do it by just a tiny bit.
So how do I re-activate Lazyloa... | |
doc_14430 | I am trying the solutions from here but the word embeddings don't seem to update.
This is the solution I have so far.
#read glove embeddings
glove_wv = KeyedVectors.load_word2vec_format(GLOVE_PATH, binary=False)
#initialize w2v model
model = Word2Vec(vector_size=50, min_count=0, window=20, epochs=10, sg=1, workers=10... | |
doc_14431 | How can I display TextViews with a certain UTF encoding? (UTF-8). Or is there an app-wide setting that I can set? Thanks in advance.
A: Sorry, found a duplicate and solution here:
UTF8 Encoding in Android when invoking REST webservice
HttpResponse response = client.execute(request);
... // probably some other code to... | |
doc_14432 | Ive tried re copying the date.h file to the same folder as the c++ source file. And i've tried opening a new project and running the code in it. Neither worked. The undeclared identifier is the only error other than not recognizing the dp variable
#include"date.h"
#include<iostream>
#include<chrono>
int main(){
day_p... | |
doc_14433 | <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
version="1.0">
<xsl:template match="wsdl:definitions">
<!-... | |
doc_14434 | My goal is to download and export option chains in order to be used on other software.
If I download only the front month expiry, I am able to correctly export to a .txt file, using these lines:
library(quantmod)
aapl_front <- getOptionChain ('AAPL')
front <- do.call('rbind', aapl_front)
write.table (front, 'data_front... | |
doc_14435 | Ideally I would like to able to say
$(select 3 [0, 1])
which we make the lambda
\(x, y, z) -> (x, y)
and for a generic *** for functions
$(tapply 3 [(0, "f"), (1, "g"), (2, "h")])
which would make the lambda
\f g h (x, y, z) -> (f x, g y, h z)
Other n-ary functions would also be nice, but those are the two I need ... | |
doc_14436 | My use case is, if there is index.php in the directory http://domain_name/user/ then load index.php else set rewriteRule to call forbidden.php.
I did a bit but not succeed yet. .htaccess code on my server is-
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIP... | |
doc_14437 | I removed the deprecated MarkerImage class but it's still throwing a js error in Chrome.
This used to work. Implemented url is here.
Anyone else seeing this?
Thanks in advance.
A: I found a solution to this problem: add the parameter optimized: false when you create you marker. I don't know if there are other impacts ... | |
doc_14438 | import json
with open('C:\\test', 'w') as outfile:
json.dump([1, 2, 3], outfile)
Here is a snapshot of the Eclipse editor:
How do I get rid of that error?
EDIT
The output of:
import json
with open('C:\\test', 'w') as outfile:
json.dump([1, 2, 3], outfile)
print(json.__file__)
Is:
C:\Python34\lib\json\__init... | |
doc_14439 | UPDATE table2 SET v1=1, v2=2, v3=3, v4=4 WHERE ImageID = 1234 AND (v1 - v2) / (v3 - v4) == aspectRatio
The ImageID is being accessed using EF's linking through another table. For example, if images are in table1, then image.table2.Where.... I tried using the Where() to obtain all results and update them using a foreac... | |
doc_14440 | Here is the HTML I used:
<div class="carousel-container">
<i class="fas fa-chevron-left" id="prevBtn"></i>
<i class="fas fa-chevron-right" id="nextBtn"></i>
<div class="carousel-slide">
<img src="https://images.unsplash.com/photo-158&q=80" class="firstSlide" alt="">
...
</div>
</div>
<d... | |
doc_14441 | new Instabug.Builder(this, "XXXXXXXXXXXXXXXXXXXX")
.setInvocationEvent(Instabug.IBGInvocationEvent.IBGInvocationEventShake)
.build();
Android Studio says cannot resolve symbol Builder
Though Builder extends from java.lang.Object , helpless to figure why this happens. Any fix?
EDIT:
dependenci... | |
doc_14442 | $objects = mysql_query("SELECT * FROM $table WHERE parent REGEXP ',".
$item .",|^". $item .",|,". $item ."\$|^".
$item ."\$'") or die(mysql_error());
How do you go about converting that to a prepared statement with place holders?
A: You should make use of the CONCAT function inside the prepared statement qu... | |
doc_14443 | First some code:
AndroidManifest.xml
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1" package="com.foo.application">
<application>
<meta-data
android:value="admob-publisher-id-here"
android:name="ADMOB_PUBLISHER_ID" />
</application>
<us... | |
doc_14444 | There's a lot of conflicting articles online about how to actually implement this. It seems to me that simply fetching pages.json and using javascript would accomplish my goal, but is that the "rails" way?
Every page that is users will see is static. I'll be using Rails as an admin to CRUD them, but that's it, and tha... | |
doc_14445 | I have setup the elasticsearch and I have configured the fos_elastica.
I have one Entity for testing, and now I want to use elasticsearch to for search operations instead of Doctrine.
This is my configuration :
fos_elastica:
clients:
default: { host: localhost, port: 9200 }
indexes:
symfony:
types:
... | |
doc_14446 | Now I want to group all the rows where SOG != 0. The trick is that I should have the following fields:
MinTime: minimum value of BS and TS, ie., date and time of boat arrival to port.
MaxTime: maximum value of BS and TS
Duration: difference between MinTime and MaxTime
AveLat and AveLong: Average Latitude and Longitude.... | |
doc_14447 | I downloaded it from http://phantomjs.org/download.html
It gives me a zip file which has 1 .exe file that's it. When I open it, I get a console like screen. What do I do?
PS: I want to setup screen capturing javascript with phantom.js in localhost.
A: PhantomJS is a headless WebKit scriptable with a JavaScript API. It... | |
doc_14448 | d = {'id1': [1,1,1,2,2,2], 'id2': [1,1,1,1,1,1], 'value': [1,2,3,4,5,6], 'type':['A','B','C','A','B','C']}
tab = pd.DataFrame(data=d)
tab.pivot(index = 'id1', columns = "type", values = "value")
However, in the situation that looks more like this I'm having some challenges understanding the multi index schema. ... | |
doc_14449 | Here is what I have so far, but I'm not really sure how to proceed:
private List<RoleModel> Roles;
private IRoleRepository repo;
private ICustomerRepository cust;
public bool CheckRoles(string UserId)
{
try
{
Roles = repo.GetAll().ToList();
CustomerModel Cus... | |
doc_14450 | perform bdc_dynpro using 'SAPLCSDI' '0150'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-SORTF(01)'.
perform bdc_field using 'BDC_OKCODE'
'=FCBU'.
I think this is the same as selecting the first row of the table.
The problem I have is that I need to ... | |
doc_14451 |
A: Add this line for button object:
button.titleLabel?.adjustsFontSizeToFitWidth = true
A: If you work with the titleLabel you can use UILabel's adjustsFontSizeToFitWidth
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/index.html#//apple_ref/occ/instp/UILabel/adjustsFontSizeToFitW... | |
doc_14452 | I would have approximately 644 objects, each with their own String variable. Each one of these variables would contain approximately 9,240 characters (including spaces). Is this too much?
A: In java characters are Unicode by default, so their size is 2B. Now:
2B * 9,240 chars = 18480B = ~18KB
Then
18480B * 644 vari... | |
doc_14453 |
*
*Can you provide a clear example of when one (localstorage/session storage) should be used over the other? Basically, what data should
be stored in the localstorage and what data would be stored in the
sessionstorage? I have read a list of country codes could go into the local storage, I ponder if this is really... | |
doc_14454 | func didEndDrawing(with points: [CGPoint]) {
guard let transform = sceneView.pointOfView?.transform else { return }
let cameraVectror = SCNVector3(transform.m31, transform.m32, transform.m33)
let farthestVector = points
.reduce((vector: SCNVector3(0, 0, 0), distance: CGFloat.zero)) { result, point... | |
doc_14455 | I.e. is there a way to implement get-available-items:
(defn delayer [ch ch2]
(go (loop []
(when-let [v (<! ch)]
(<! (timeout 500))
(let [vs (get-available-items ch)
items (cons v vs)]
(>! ch2 items))
(recur)))))
Basically, something like BlockingQueue... | |
doc_14456 | However I want to implement my own IDataStore so that I can keep user credentials inside my database.
With the FileStorage sample everything works fine and I get the Token and RefreshToken and more than that, it automatically refresh tokens when expired.
Implementing the IDataStore looks easy :
public class MyDataStore... | |
doc_14457 | In perforce to open specific file(s) in my default changelist I simply typed:
p4 edit file1 file2
p4 submit -d "changelist description" ...
Does git have an equivalent that allows users to checkout specific files and submit them as I did in the example?
A: git doesn't have a notion of changelists the way perforce doe... | |
doc_14458 | Is there a way to do this on Mac, Windows and Linux, and thus make sure that my web pages are rendered inside my Java app uniformly?
A: Since SWT 3.7 M5, the Browser widget can use WebKit on all platforms if created with the SWT.WEBKIT flag. Platform-specific conditions may apply: see http://www.eclipse.org/swt/faq.ph... | |
doc_14459 | var rec = store.getAt(index);
rec.erase({
success:function(record, operation){
// Do something to notify user knows
}
failure:function(record, operation){
// correctly triggered when HTTP = 40x or 50x
// Would expect that record is still in store. Why not?
// Of course i c... | |
doc_14460 |
I use material ui version 4.12.3
The code for creating my tabs is here:
function renderTabs(): JSX.Element {
return (
<Tabs className={classes.tabBar} value={activeTab} component={Paper} onChange={handleChange} centered>
{TABS.map((tab: string) => {
return (
<Tab
className={classes.tabBut... | |
doc_14461 | var textField = document.createElement('textarea');
textField.innerText = text;
document.body.appendChild(textField);
textField.select();
document.execCommand('copy');
textField.remove();
}
I found this code on Reddit and I thought it would work as it was logical to create a element then SELECT... | |
doc_14462 | package A;
sub new{
//constructor for A
}
sub hello{
print "Hello A";
}
1;
package B;
use base qw(A);
sub hello{
print "Hello B";
}
1;
My question is how can I instantiate B i.e. my $b = B->new(), without giving a constructor to B, what changes do I need to do in A to achieve this. Is this possible ?
Thanks.
... | |
doc_14463 | I wrote the functions but I get stuck at calling them in main. I don't know which variable is for rows and columns of result matrix.
#include <stdio.h>
void enterMatrix(int a[][10], int rows, int columns)
{
int i,j;
for(i=0;i<rows;i++)
{
for(j=0;j<columns;j++)
{
printf("a(%d,%d)=... | |
doc_14464 | Zend's DEB/RPM repositories.
..... ZendServer-RepositoryInstaller-linux]# ./install_zs.sh 5.5 ce
Modified:
install_zs.sh is as below
#!/bin/sh
usage()
{
cat <<EOF
Usage: $0 <php_version> [nginx] [java] [--automatic]
Where php_version is either 5.3 or 5.4.
... | |
doc_14465 | sapi = CreateObject("sapi.spvoice")
sapi.speak("A as an apple")
A: I just tested using SAPI via a reference in .NET 5.0, rather than late binding, and it worked. It's much better to use early binding if you can anyway. I suggest that you turn Option Strict On in your project properties, so early binding is en... | |
doc_14466 | When a bill_type = C or M and payer type = C (client) or S (Subsidiary) or T (third party)
The payer type is defined as follows:
If BLT_BILLP.PAYR_CLIENT_UNO <> HBM_MATTER.CLIENT_UNO for Lead Matter
and TBM_MATTER._HS_3PTY = 0 Then value = S ('Subsidiary')
If BLT_BILLP.PAYR_CLIENT_UNO <> HBM_MATTER.CLIENT_UNO for Lea... | |
doc_14467 | Here is what I have done so far. . .
function Integrator(value, damping, attraction)
{
this.DAMPING=0.5;
this.ATTRACTION=0.2;
this.value;
this.vel;
this.accel;
this.force;
this.mass=1;
this.damping=this.DAMPING;
this.attraction=this.ATTRACTION;
this.targeting; //boolean
this.target;
this... | |
doc_14468 | using namespace std;
class B;
class A
{
int a = 10;
int b = 20;
public:
friend void A::display(B&a);
void display(B & c);
};
class B
{
int abc = 20;
public:
friend void A::display(B&a);
};
void A::display(B & c)
{
cout << c.abc;
}
int main()
{
B b;
A a;
a.display(b);
return ... | |
doc_14469 | Error:Gradle: Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 1
Here is my build.gradle File:
apply plugin:... | |
doc_14470 | map.resources :places do |places|
places.resources :reviews
end
place model
class Place < ActiveRecord::Base
has_many :reviews
end
review model
class Review < ActiveRecord::Base
belongs_to :place
end
In my reviews controller test I have the following assert_redirect_to statement
assert_redirected_to ... | |
doc_14471 | ||
doc_14472 | <Box style={{textAlign: "right", direction: "rtl"}}>
<form style={{width: "35ch"}}>
<Box m={2} >
<TextField
name={props.id}
aria-autocomplete={"list"}
autoComplete="true"
autofill="true"
... | |
doc_14473 | I can add content to the tasks, so far so good.
Now I want to have a table to list all the content of the custom content type Task.
I ve set up a new view but I was not able to get all the fields that are
available for that content type to show in a list.
What i set up in the default view was
i ve set to rowstyle nod... | |
doc_14474 | On my smoke tests sometimes i use more than 20 asserts to verify that some information like section titles, column titles and other text that should appear are shown correct.
Would it be better to separate assert as different tests or is it ok to have multiple asserts in a single test?
If i separate in differents tests... | |
doc_14475 | UPDATE: Problem was in other place. I made 3 calls with same attribute. So if you have same issue check attribute value before $.ajax
I have jQuery ajax call:
function foo(someVar){
$.ajax({
dataType: "json",
url: 'http://some.json?callback=?',
success: function(data){
alert(som... | |
doc_14476 | I'm almost done, but when I click the button, all the rows are affected. I tried some logic with index, I also used "data attribute" ([attr.data-example]), & I tried with ng-class. Let me explain with images, also I'll attach my code.
HTML:
<div class="example-table-container">
<table mat-table [dataSource]="da... | |
doc_14477 | $diff = abs(strtotime(date('m/d/Y h:i:s')) - strtotime($latest));
$years = floor($diff / (365*60*60*24));
$months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
echo floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));
How do I get the difference in seconds? I've tried the following:
$d... | |
doc_14478 | <div id="hot-jobs-carousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<?php
if ($x == 0) {
echo '<li data-target="#hot-jobs-carousel" data-slide-to="0" class="active"></li>';
} else {
echo '<li data-target="#hot-jobs-car... | |
doc_14479 | public class Logger : ILogging
{
private ILogger _logger;
public Logger()
{
_logger = LoggerFactory<ILogging>.Resolve();
}
public void log(string priority, string message)
{
//to do the code here
}
}
and this is my config file:
<rules >
<logger name="Priority1" minlevel="Error"... | |
doc_14480 | table_orders - order_id, customer_id;
table_order_details - order_id, product_sell_price, quantity;
I want to get the order-value(sum of amount) for each of the orders. I am trying this query:
mysql> select O.order_id, sum(OD.product_sell_price * OD.quantity) from table_order_details as OD INNER JOIN table_orders as O... | |
doc_14481 | {lag1mid_quoteDiff: 1.51
lag1TradeDirection: 2.12
lag2mid_quoteDiff: 1.53
lag2TradeDirection: 2.18
lag3mid_quoteDiff: 1.59
lag3TradeDirection: 2.10}
I need a dataframe as to have two columns, lagmid_quoteDiff and lagTradeDirection, with 3 rows, index as 1, 2, 3:
lagmid_quoteDiff lagTradeDirection
1 1.51 ... | |
doc_14482 | Step1 : App in kill mode
Step2 : Got the VOIP for incoming call
Step3 : within minor milliseconds tap on answer call button from VOIP(Right Icon)
Step4 : func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {} this method doesn't call
Only cause the issue for kill-mode, working fine for background ... | |
doc_14483 | But, the weeks are placed as "53, 2, 3, 4...", but in a calendar, such as Ical, it looks like this:
"53, 1, 2, 3, 4...".
So, for some reason my calendar doesn't understand that the week starts on a Monday, even though I use "2". But the weirdest part is that for week 53 it understands it should start on the Monday...
I... | |
doc_14484 | WHERE fname LIKE '%{$query}%' OR lname LIKE '%{$query}%' OR zipcode LIKE '%{$query}%' OR city LIKE '%{$query}%'
Let's say I have the following info in my database:
*
*First Name: Bill
*Last Name: Gates
*Zipcode: 12345 AA
*City: New York
When I search for 'New York', I get the expected result (bill gates), Bu... | |
doc_14485 | Can anyone help?
Thankyou in advance.
Warning: mysqli_connect() expects parameter 5 to be long, string given in /home/a1051468/public_html/register.php on line 2
Warning: mysqli_prepare() expects parameter 1 to be mysqli, null given in /home/a1051468/public_html/register.php on line 9
Warning: mysqli_stmt_bind_param() ... | |
doc_14486 | if (argc > 2) {
int i;
for(i = 0; i < argc; i++) {
if(i != 0) {
rename_file(argv[i]);
}
}
}
if I pass in two file names only the first is renamed, whats wrong with this loop?
EDIT: Heres the rename_file function (it should work I think)
void rename_file(char const *filename) {
struct tm *clock;
... | |
doc_14487 | I have tried the following.
*
*Pass the username password in the url - Doesnt work that way.
*access by name that we get from the developer tool of chrome. -- The popup window part doesn't have a name. It is a .swf component where 'Allowscriptaccess' property is set as 'sameDomain'( I don't know whether this is rel... | |
doc_14488 | You can see my pkg conf below, the question is: How do I add a user name and password to it for HTTP Basic Auth?
I already know username:password@hostname.tld usage but I'm looking for something more like
Header("Authorization", "Basic YWRtaW46YWRtaW4zMjE")
how can I do that ? or you can suggest a better way to keep c... | |
doc_14489 | Using:
XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(
new FileOutputStream("C:/tmp/test.xml")));
encoder.writeObject(boList);
encoder.close();
I run out of memory. If, however, I do this:
for(BO bo : boList)
{
encoder.writeObject(bo);
encoder.flush();
}
encoder.close();
It runs perfectly u... | |
doc_14490 | Here's how the set up looks in my excel workbook.
|---|---------------------|--------------------|---------------------|
| | A | B | C |
|---|---------------------|--------------------|---------------------|
| 1 |image_north.001.jpg |image_north.002.j... | |
doc_14491 | I want to write the condensed form of the following query:
UPDATE Users SET Activated = 1 WHERE ID = 1 OR ID = 2 OR ID = 3 OR ID = 4 OR...
There is a way to have the WHERE attribute be a set of values, something like:
UPDATE Users SET Activated = 1 WHERE ID IN_ARRAY(1, 2, 3, 4, ...)
Can anyone tell me the exact synta... | |
doc_14492 | @Controller
@RequestMapping("CallBack")
@WebService(name = "NotificationToCP", targetNamespace = "http://SubscriptionEngine.ibm.com")
public class CallbackController {
@RequestMapping("")
@ResponseBody
@WebMethod(action = "notificationToCP")
@RequestWrapper(localName = "notificationToCP", targetNamespa... | |
doc_14493 | std::vector<int> myVector[10];
myVector[5] = 6;
Or you could alternatively use the built in '.at' to access the vector with bounds checking. When I was writing some trivial code just to understand some concepts better I ran across a peculiar situation.
int main()
{
std::vector<int> test[10];
test[3] = 5;
... | |
doc_14494 | Now, I'm trying to create a list that shows previous read events. An event should be added to this list a tag is read.
I have a list which can have events added to it. The code looks like this:
<ion-view view-title="Usage History">
<ion-content>
<button class="button button-icon" ng-click="newTask()">
<i ... | |
doc_14495 | def parse(toks):
i = 0
while(i < len(toks)):
if toks[i] + " " + toks[i+1][0:6] == "CMD_SHOW STRING" or toks[i] + " " + toks[i+1][0:3] == "CMD_SHOW NUM" or toks[i] + " " + toks[i+1][0:4] == "CMD_SHOW EXPR":
if toks[i+1][0:6] == "STRING":
doPRINT(toks[i+1])
elif to... | |
doc_14496 | /* webpackChunkName: "EmojiPicker" */
/* webpackMode: "lazy-once" */
/* webpackPreload: true */
"./EmojiPicker"
).then(module=>console.log(module))
I tried to use async import in my webpack project.
Finally, I found there are two additional bundles:
However, what I want is an additional single b... | |
doc_14497 | Can I now retrieve it back to my App?
If yes, Can anyone help with how to do that?
A: Use this to retrieve files from the Google Drive API
https://www.googleapis.com/drive/v3/files/[FILEID]?key=[YOUR_API_KEY]'
If you want the entirety of code required to retrieve a file, here it is:
import com.google.api.client.http.G... | |
doc_14498 | private void send_ss()
{
byte[] data = new byte[1024];
int sent;
IPEndPoint ipep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 306);
Socket server = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
try
{
... | |
doc_14499 | T1:
+-----+-----+
| A | B |
+-----+-----+
| a | 1 |
| a | 2 |
| a | 3 |
| b | 1 |
| b | 2 |
| b | 4 |
| c | 2 |
| c | 3 |
| c | 4 |
+-----+-----+
T2:
+-----+
| C |
+-----+
| 2 |
| 4 |
+-----+
For example, b is selected because there are records (b, 2) and (b, 4). However,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.