id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_10400 | Sql.Add('SELECT * ');
Sql.Add(' INTO [' + myTableName + ']');
Sql.Add(' FROM ' + myOtherTName);
Sql.Add(' VALUES (DEFAULT) ');
ExecSql;
The code does well execute if I remove the "VALUES (DEFAULT)" statement.
I'm using Delphi 10.
A: As explained in the documentation, DEFAULT (and DEFAULT VALUES) is part of the IN... | |
doc_10401 | I am not sure why it is happening. Can anyone help me out to resolve this issue? Any help would be greatly appreciated.
Here is my code. Added alerts to verify data, I am wondering why in second and third alerts sunday is showing Monday date and in third alert monday is showing Tuesday date. Added alert messages at the... | |
doc_10402 | {
path: '/page',
name: 'page',
component: Page,
props: true,
meta: { requiresAuth: true}
},
Then I access the view like this:
self.$router.push({ name: 'page', params: {stuff: true }})
This is my page component:
<template>
<div class="page">
{{ stuff }}
</div>
</template>
<script>
export default ... | |
doc_10403 | // setup db
mongoose.connect(secrets.db);
mongoose.connection.on('error', function() {
console.error('MongoDB Connection Error. Make sure MongoDB is running.');
});
var corsOptions = {
origin: '*'
};
// express setup
var app = express();
// This is where all the magic happens!
nunjucks.configure(path.join(__di... | |
doc_10404 | CString parameterA = _T("\"") + mycustompath + _T("identify.exe\"");
CString parameterB = _T(" -format \"%w\" ") + _T("\"") + mycustompath;
CString parameterC = parameterB + pictureName + _T("\"");
A: if you replace all _T("...") with CString( _T("...") ) it will work 100%
A: You should make CStrings out of ... | |
doc_10405 | I will be very keen to hear from anyone who has experience in securing a private docker registry via Apache & shibboleth where corporate enterprise IDs and SSO are required.
A: Shibboleth authentication via the Apache mod_shib module requires redirecting the end-user back to their home Identity Provider (IdP) where th... | |
doc_10406 | But if internet is very slow it just keep loading.......
I am using wi-fi and I face this problem when there is only a dot visible in iPhone notification bar for wifi signal.
So I want to know how can I check for slow internet connection.
A: You can send a request to your server and given that it's about 5-10 KB of da... | |
doc_10407 | Types are:
type Id1 =
| Id1 of int
type Id2 =
| Id2 of string
type Id =
| Id1
| Id2
type Child = {
Id : Id;
Smth : string list
}
type Node =
| Child of Child
| Compos of Node * Node
where Node and Child should represent replacement for Composite OOP design pattern.
The problem i... | |
doc_10408 | Look at this snippet...
var mister = "mister in the hat".replace(" ", "-");
return mister
Regular Javascript does replave only once. The result is "mister-in the hat".
SSJS does full replace. The result is "mister-in-the-hat".
Is there any documentation, in what way the SSJS is diferent from regular JS?
A: I suspect ... | |
doc_10409 | The current environment is Eclipse and Tomcat. We are developing web applications with Spring, Web Flow, and MySQL..
The new environment is going to be Eclipse, Jboss AS7 and Maven.
Question 1:
Now for the questions as the current time we run tomcat on the local workstations and I can use eclipse to write my code and t... | |
doc_10410 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
struct node {
int data;
int key;
struct node *next;
};
struct node *current = NULL;
struct node *head = NULL;
int numberOfElements = 0;
//display the list
void printList() {
struct node *ptr = head;
printf("\n[ ");
... | |
doc_10411 | return [
'Password' => 'required|min:8|max:100|regex:[a-z{1}[A-Z]{1}[0-9]{1}]',
'Password_confirmation' => 'required|min:8|max:100|regex:[a-z{1}[A-Z]{1}[0-9]{1}]',
];
I am trying to add the rule such that it must have
*
*atleast one small char
*atleast one big char
*atleast ... | |
doc_10412 | However when this object is received by the managed part of the dll the response code is still correct yet the response string seems to have become fully corrupted.
I tried returning the char pointer immediately and then turn it into a managed string using marshal and I've tried to use a standard C# string.
I tried usi... | |
doc_10413 | DBG: StatusInformation: {'errorIndication': <pysnmp.proto.errind.UnknownCommunityName instance at 0x2023248>}
I have configured PySNMP to accept packets having community name as 'public'.
config.addV1System(snmpEngine, 'agent', 'public')
When I see the packet in WireShark, it is showing community name as public but d... | |
doc_10414 | This is HTML code:
<canvas class="jSignature" width="200" height="120" style="margin: 0px; padding: 0px; border: none; height: 120px; width: 200px;"></canvas>
This code works in JS:
$('.signature').jSignature('getData','image')
This is my piece of code:
NSString *sign = [self.webView stringByEvaluatingJavaScriptFromS... | |
doc_10415 | Code in my component of which is printing the list when i subscribe.
allMsgRecipients: Observable<MsgRecipient[]>;
allRecipients: MsgRecipient[];
loadAllMsgRecipients() {
this.allMsgRecipients = this.msgRecipientService.getAllMsgRecipient();
this.msgRecipientService.getAllMsgRecipient().subscribe(recipients ... | |
doc_10416 | But looks like the 2nd row is written first and then the first row overwrites it. So I end up with bad output.
(494bce4f393b474980290b8d1b6ebef9, 2017-02-01, PT0H9M30S, WEDNESDAY)
(494bce4f393b474980290b8d1b6ebef9, 2017-02-01, PT0H10M0S, WEDNESDAY)
Is there a way to force the order of the rows written to Cassandra.... | |
doc_10417 | from keras.utils import to_categorical
from keras.layers import Embedding, Bidirectional, GRU, Dense, TimeDistributed, LSTM, Input, Lambda
from keras.models import Sequential, Model
import numpy as np
from keras import preprocessing
import keras
encoder_inputs_seq = Input(shape=(114,))
encoder_inputs = Embedding(inpu... | |
doc_10418 | see demo in github
https://github.com/coding2world/sb-jpa-batch-insert-demo
first, I write java code like this. below is pojo’s definition.
@Data
@Entity
@Table(name = "city")
@AllArgsConstructor
public class City {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "city_id_gen")
@Sequenc... | |
doc_10419 | Can you see the error:
It is really annoying and almost grash my fresh every time.
<?php
$q = "SELECT user_id FROM users WHERE id = $id";
$r = mysqli_query($dbc, $q);
while($vote_list = mysqli_fetch_assoc($r)) { ?>
<?php
if(isset($_POST['submitted']... | |
doc_10420 | .gallery {
display: grid;
grid-gap: 0.75rem;
grid-auto-flow: dense;
padding: 40px;
list-style: none;
background: white;
width: 100%;
box-sizing: border-box;
margin-top: 0;
margin-bottom: 0;
li {
figure, img {
width: 100%;
height: 100%;
margin: 0;
border-radius:15px;
display: block;
... | |
doc_10421 | module.exports = function loadMyFun() {
function activateSite($currentItem) {
...
}
...
}
And I want to import it into a JSX file, I tried to do it like this but I doesn't work:
import MyNav from './MyNav.js';
const top = MyNav.activateSite();
componentDidMount () {
var self = this;
... | |
doc_10422 | I build a connection to my server using the code presented below:
Request request = new Request.Builder()
.url(BuildConfig.WS_URL)
.build();
client.newWebSocket(request, webSocketListener);
My listener handles failure and logs UnknownHostException.
@Override
public void onFailure(WebSocket webSocket, ... | |
doc_10423 | - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
float width = [textField.text sizeWithFont:textField.font
constrainedToSize:CGSizeMake(300, textField.bounds.size.height)].width;
if (width > (textField.f... | |
doc_10424 | Example:
start.time <- Sys.time()
ggpairs(mtcars)
end.time <- Sys.time()
time.taken <- end.time - start.time
time.taken
Running this in RStudio on my machine takes on the order of 5 times longer than base R. I have experienced the same slow down regardless of OS (Windows vs. Mac).
Are there any workarounds?
Other pack... | |
doc_10425 | However, when i use the code, it seems that it decides to not show the year if there are less than 6 entries in the plot. Example 5 entries:
import matplotlib.pyplot as plt
import datetime as dt
Dates = ['2018/04/01', '2018/04/02', '2018/04/03', '2018/04/04', '2018/04/05']
y = [10, 20, 30, 56, 42]
x = [dt.datetime.str... | |
doc_10426 | there is delegate method to return activity. i want to return UIPrintActivity option.
func safariViewController(controller: SFSafariViewController, activityItemsForURL URL: NSURL, title: String?) -> [UIActivity]
| |
doc_10427 | Example :
input formControlName="Searchbycombo"
class="customcombocontrol" type="text" name="Searchbycombo" id="ctry"
But when I try to validate the page, W3c validator providing some error
"Attribute formcontrolname not allowed on element input at this
point."
I have already gone through this url but no luck http... | |
doc_10428 | This is possible in the case that an ordinary pointer like
double * point = new double [N]
was called by something like
double func (double * p){
return p[2];
}
but seem difficult to generalize to the case of class pointer members that are themselves objects with pointer members and I have been unable to find a exp... | |
doc_10429 | ||
doc_10430 | let obj1 = { foo: 'bar', x: 42 };
function abc(...aaa) {
console.log(aaa);
}
abc(obj1)
// log result: [{foo: 'bar', x: 42}]
"use strict";
let obj1 = { foo: 'bar', x: 42 };
function abc(...aaa) {
console.log(aaa);
}
abc(obj1)
// log result: [{foo: 'bar', x: 42}]
So in the above code, obj1 is an object. So I... | |
doc_10431 | I tried to do something like this:
!Split [ "," , "{Type: string, Name: type}, {Type: string, Name: timeLogged}"] - but its did not helped
AWSTemplateFormatVersion: 2010-09-09
Description: The AWS CloudFormation template for creating a Glue table
Parameters:
DestinationBucketName:
Type: String
Description: De... | |
doc_10432 | var tableHTML = "...
<li name="Item2" onclick="onCombToPie2D(\'' + id + '\');" >Pie 2D</li>
....";
$('#graphsDiv').append(tableHTML);
I was able to access this element in the function as follows
function onCombToPie2D(element) {
alert($('#element'));
}
but now i cannot access the id of this element. I have tr... | |
doc_10433 | 1. Read a document from SOLR
2. If exists, update it according to some logic.
3. If not insert it.
The problem is that the service scales and i can get dirty reads since the time they arrive matters in regards of the content I will write to SOLR
Is there a locking mechanism in SOLR so that if 2 thread grabs the same do... | |
doc_10434 | Lately we introduced continuous deployment too in the list and we opted for Docker containers.
Here is the the infrastructure:
The production cluster will have 3 RHEL machines running the following docker containers on each of them:
*
*3 instances of Wildfly
*Cassandra
*Nginx
Application IDE is Netbeans and so... | |
doc_10435 | I've set minifyEnabled true in my build.gradle
I want to exclude some resource files from dependencies. It's for example gwt.xml files and logging configuration files.
proguard copy all resource files by default. So, if I use proguard directly, I can write
-injars in.jar(!**/*.gwt.xml)
But how can I do it with grad... | |
doc_10436 | I don't know how to do this, may be I have to create a component for this or else?
Please guide me.
I see the code in com_user in built component, but it is very hard to understand..
A: You can use the code generated from the Joomla component creator to do the administration code. Then you can hack it to also edit fr... | |
doc_10437 | I am trying to have a color picker and put the value into a state variable "color".
const [color, setColor] = useState(false);
const colorPicker = () => {
console.log("colorPicker", color.target);
return(
<input type="color" value={color} onChange={setColor}/>
);
}
But this gives me just a flood of... | |
doc_10438 | I am simply trying to copy an INLINE_DRAWING from one google doc to another but I keep getting this error. If I remove the attempt to append the drawing then there is no errors, but then in my finished document there are no drawings. How do you properly copy inline drawings from one doc to another?
// fromFile & toFile... | |
doc_10439 |
A: I had to downgrade recently and used this link. And I'm not sure if a newer version is recommended. Definitely not UR12.
And for UR11, it's probably this link.
Is that what you're looking for?
| |
doc_10440 | I have this code:
if (!num || 224 == num)
Is there a way for do this using some bitwise operation?
I tried this and I have valid: 0, 31, 32, 63 ,64, 95, 96, 127, 128, 159, 160, 191, 192, 223, 224, 255. Obvious is bad because I only need 0 and 224.
!((num+1) & 30)
A: Yes, and the range of the input makes it slightly ... | |
doc_10441 |
const b = [{
"errorname": [{
"name": "Error 01",
"desc_1": "Test: 01",
"desc_2": "Testing"
}, {
"name": "Error 03",
"desc_1": "Test: 03",
"desc_2": "Testing"
}],
}, {
"errorname": [{
"name": "Error 02",
"desc_1": "Test: 02",
"desc_2": "Testing"
}, {
"name": "Error 09"... | |
doc_10442 | It's for internal usage only, so design doesn't matter.
A: in spite of using submit button you just use <type="button" onclick="function1()">
in javascript section code:
function1(){
// here you can use a textbox or a prompt box to enter some value after which
// redirect to desired page using document.getElementByI... | |
doc_10443 | It is giving following error,
FaveoHelpdeskPro_Swift[1400:370341]
-[FaveoHelpdeskPro_Swift.AppDelegate window]: unrecognized selector sent to instance 0x282efc980
and
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'-[FaveoHelpdeskPro_Swift.AppDelegate window]: unrecognized se... | |
doc_10444 | $scope.StartCPU = function () {
//Initialize the Timer to run every 1000 milliseconds i.e. one second.
$scope.GetCPUData = $interval(function(){
$http.get('http://localhost:3034/api/test/metrics').
success(function(data, status, headers, config) {
$scope.Detail... | |
doc_10445 |
void paint(Canvas canvas, Size size) {
....
var myObj = MyClass();
var myObj.configure(canvas, size);
....
}
Will this object get recreated while paint() gets called every frame
or will it be cached until something it depends on such as screen size changes?
A: It depends on how you implement ... | |
doc_10446 | example: my class:
public class myHashT : Hashtable
{
public myHashT () { }
...
public override object this[object key]
{
get
{
return base[key].ToString(); <--this doesn't work!
}
set
{
base[key] = value;
}
}
}
In an other c... | |
doc_10447 | I only found facebook and twitter. Any idea how to enable WeiBo on your device?
A: You need to enable the Chinese keyboard in the Settings app. Specifically:
Settings -> General -> Keyboard -> International Keyboards -> Add New Keyboard...
There are a number of Chinese options, I believe any of them should work but pl... | |
doc_10448 | enter image description here
I want the lines to be aligned to the left.
Sample Code
import streamlit as st
st.set_page_config(layout="wide")
st.latex(r'''
\text{This is a gradient algorithm where step size } \alpha_{k}\text{ is chosen to minimize }\phi_{k}(\alpha)=f\left(\mathbf{x}^{k}-\alpha \nabla f\left(\math... | |
doc_10449 | I basically recorded a test to go to a certain page on a web app, and I have a row called Session ID with a few randomly generated rows below it and I want to get the values from those rows, to use with code or whatever.
How would I go about doing it?
Here is a picture of what I mean:
A: This can be achieved in a co... | |
doc_10450 | Single Table Format:
|Id|Folder Path|Subject|DisplayTo|DisplayCc|DateTimeSent|DateTimeReceived|IsRead|HasAttachments|Preview|
Below are requirements:
*
*Configure MS Outlook with MySQL
*New incoming mail comes to inbox it should get triggered to MySQL table with above format
*whenever outgoing mail goes to it shoul... | |
doc_10451 | ||
doc_10452 | curl -i -H Accept:application/json -H range:bytes=1-8 -X GET http://localhost:8080/examples/text.txt
However node's request header doesn't match when it is logged
console.log(req.headers.range)
The logged value varies between different values for the exact same request
(some values logged from that request: bytes=1-2... | |
doc_10453 |
A: The closest resource to a user is a Channel (https://developers.google.com/youtube/v3/docs/channels) and according to the reference guide, it is currently not possible.
| |
doc_10454 | and i used 'Embed an AutocompleteSupportFragment' option
but i typed exactly same, that wrote by google but there's error like this
*
*Class 'Anonymous class derived from PlaceSelectionListener' must either be declared abstract or implement abstract method 'onPlaceSelected(Place)' in 'PlaceSelectionListener'
*Method... | |
doc_10455 |
A: On hosting server, in IIS Control Panel, Check whether the folder aspnet_client is there in the virtual directory listing. It consists of the webuivalidation.js file which is required for processing validations.
Running following script should fix the issue.
%windir%\Microsoft.NET\Framework[Place .Net Ver Number he... | |
doc_10456 | I created a new project selecting new "Tabbed Application" when i created it. It provided two UIViewControllers embedded in one tab bar controller. I'm trying to pass two variables between the view controllers.
The problem is that the prepare for segue function is never called. I added a print statement in it that n... | |
doc_10457 | func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) {
if (error) != nil {
return
}
print("User signed into Google")
guard let authentication = user.authentication else { return }
let credential = FIRGoogleAuthProvider.credential(withIDToken: authentic... | |
doc_10458 | Install-SitecoreConfiguration : Failed to start service 'Sitecore XConnect Search Indexer - local.xconnect-IndexWorker (local.xconnect-IndexWorker)'.
At C:\sitecore\install\install.ps1:43 char:1
+ Install-SitecoreConfiguration @xconnectParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo :... | |
doc_10459 | Ranges B11:B251 & C11:C251 may or may not have some values.
I want to be able to copy non blank cells from cell ranges M11:M251 & N11:N251 to B11:B251 & C11:C251, so if there are any values in M&N ranges they should overwrite values in the same rows in B&C but if there are blank values in M&N ranges they should not be... | |
doc_10460 | What's the solution in order to get the publish_actions permission, if you are only going to use common actions that Facebook predefines?
A: Ensure you are actually requesting the permissions in your permission scope array. For example, this doesn't set your permissions
The above is only for the App Center. Usage mus... | |
doc_10461 | Possible Duplicate:
which browsers support XSLT 2.0 already?
I am doing reserach on xslt 2.0 and need to know what browsers it will work on. I have tried looking extensively and find old information about 2.0 not being compatible with many browsers. Is this still the case? I looked at "What is involved in upgrading f... | |
doc_10462 | Once i restart the phone, it works. After that for some reason, it stopped working, and I have to restart the phone again.
Not only my phone but also happening on the other phones.
Have any one run into that issue?
Best,
A: This is a known issue with iOS 11.2. You can refer to this post mentioned in the comments. This... | |
doc_10463 | Here, the actual installation happened at /usr/java/jdk1.7.0_55/jre. I want to get this location. Can some one suggest me how to retrieve this?
A: The readlink program (part of coreutils, and available on any RHEL version) can resolve symbolic links:
foo=$(readlink -f $(which java))
echo $foo
(You may also have realp... | |
doc_10464 |
*
*I'm using java and the database is H2 embedded (although I'm seeing similar results regardless of database).
*I've profiled / timed it and the problems are definitely in the database queries, specifically the executeQuery() call.
*For this example the database table has 60K rows but my query involves a subset o... | |
doc_10465 | public class ComplexViewModel
{
public object FirstNotPostedData { get; set; }
public object SecondNotPostedData { get; set; }
//......
public object NthNotPostedData { get; set; }
public InnerModelToPost InnerModelToPost { get; set; }
}
public class InnerModelToPost
{
public string FirstPrope... | |
doc_10466 | File 1
a;c1|a|data
a;c2|a|data
b;c1|b|data
b;c1|b|data
File 2
a;c2|a_1|data
b;c1|b_1|data
a;c3|a_1|data
b;c1|b_1|data
a;c1|a_1|data
Output File
a;c1|a|data
a;c2|a|data
b;c1|b|data
b;c1|b|data
a;c2|a_1|data
b;c1|b_1|data
b;c1|b_1|data
a;c1|a_1|data
Could you please help me?
A: so... | |
doc_10467 | I have looked for that option when deploying the speech API but without success. How exactly do you switch off tracing?
By doing that, is it the case that no audio or transcript is retained or further processed or sent anywhere by Azure as a result of calling the speech API whether as part of the logging referred to in... | |
doc_10468 | This is my Private page:
const Private = (props) => {
useEffect(() => {
if (!props.isAuthenticated) {
Router.push('/login');
}
}, [props.isAuthenticated]);
return (<Layout />);
};
The Layout component contains an Header component that renders also depending on props.isAuthentic... | |
doc_10469 | Sometime when a plugin is triggered and during execution an exception has occured, the CRM 2011 form which is going to be updated showing raw data in various fields. Some fields showing data before I modified them and some showing other but not the data that I have entered. Because after save() the form reload, Is th... | |
doc_10470 | x = ['A','A','B','A','A','A', 'C', 'C', 'A', 'A']
What would be the best and most efficient way to generate the following output
# key = number of consecutives
# val = number of occurrences
>>> func(x, 'A')
{2:2, 3:1}
>>> func(x, 'B')
{1:1}
>>> func(x, 'C')
{2:1}
We may assume that the list is all strings. Any ideas... | |
doc_10471 | import Foundation
import SpriteKit
import Social
import UIKit
import GameKit
import iAd
import AudioToolbox
class GameOver: SKScene {
let won:Bool
init(size: CGSize, won: Bool) {
self.won = won
super.init(size: size)
}
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implem... | |
doc_10472 | I am cleansing a data file of 50,000 pieces of equipment (50,000 rows and 10 columns).
One column ('UNITNUMBER') should be unique for each record. However there are duplicates and I'm trying to produce two data frames: one containing all the records where UNITNUMBER is unique and a second containing all the records wh... | |
doc_10473 | The problem:
Upon returning to the main page (MainActivity), I pressed the button to re-enter activity2 and it is no longer displayed. Only if I close the application and open the application and press the activity button 2 the advertising is displayed.
MainActivity code
public class MainActivity extends Activity {
... | |
doc_10474 | When I use the bar chart and try to display the bar values labels these are covered by the margins. In my opinion this looks like a bug, is there any way to show the labels properly?
To better illustrate the problem you can see the issue on the picture and also find in red the expected values.
EDIT
Here is my progress... | |
doc_10475 | var popup = window.open("", "popup", "height=500,width=700");
var doc = popup.document;
doc.write("<!doctype html><html><head></head><body></body></html>");
var script = doc.createElement("script");
script.type = "text/javascript";
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js";
script.... | |
doc_10476 | We are able to fetch sessions and events on server but screen name isn't getting appear.
Below code is working, in which we have created one activity, on click of buttons, sending the event and screen names to analytic server.
Device details:
version : 4.4.2
A: For tracking page view, i am using this in my MainActivi... | |
doc_10477 | <StackPanel>
<Button>Normal 1</Button>
<Button>Special</Button> <!--This button should not tab focus, but still focus via arrow keys-->
<Button>Normal 2</Button>
</StackPanel>
By default, you can (1) tab between the buttons or (2) up/down arrow between the buttons. I want to make one of the buttons -- the ... | |
doc_10478 | For now I only want to get count of unread, no need to get whole msgs.
I require a C# solution.
A: for mail accouts with POP server, you can use a pop implementation like http://hpop.sourceforge.net/
A: use Gmail API:
https://developers.google.com/google-apps/gmail/
Here is a wrapper for C#:
http://sourceforge.net/pr... | |
doc_10479 | First i get all table names in database(Total 4 results)
Then i want to get all data from that table.
But i only get the data from the first table for some reason.
If i remove the loop that gets the data from the table, then it runs the first for loop all the way to the end.
#Get all tables in database file
for tablena... | |
doc_10480 | I've got this error:
FatalErrorException: Error: Class Cms\ControlPanel\UserBundle\Entity\User contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Security\Core\User\UserInterface::getUsername) in /Users/mathijs/workspaces/cms/src/Cms/ControlPanel/Use... | |
doc_10481 | Dput:
structure(list(Category = c("BNPL", "Digital profile", "Voice",
"Price matching", "Marketing opt-In", "Promo codes", "Two-factor authentication",
"Using mobile device to locate a product in a physical store",
"Profile (shopping journey among different channels)", "Inventory"
), Consumers = c(0.401189529, 0.512... | |
doc_10482 | RewriteEngine on
HostnameLookups Double
RewriteCond %{REMOTE_HOST} (\.googlebot\.com) [NC]
RewriteRule ^(.*)$ /do-something [L,R]
I worry the most for part
HostnameLookups Double
It says in some place that works only in httpd.confg, vps, directory(not shure what this last means if not .htaccess but not saying in... | |
doc_10483 | Moreover, when I made a request select * from tbl where f='TESTµTEST', I got this error:
ERROR: invalid byte sequence for encoding "UTF8": 0xb5.
Would you please give me any solutions?
A: That error shows that you are trying to decode latin-1 text as if it were utf-8. Most likely your client_encoding setting in PHP... | |
doc_10484 | My question is that how to read a value that is taken from library <NewPing>.
#define echopin 11 //set echopin
#define trigpin 12 //set trigpin
#include <Servo.h>;
Servo robotArm;
#include <NewPing.h>
#define MAX_DISTANCE 400
NewPing sonar(trigpin, echopin, MAX_DISTANCE);
int distance;
void setup() {
// put y... | |
doc_10485 | I am following current creating custom layout
Please find my code
MainActivity.java
package com.customview.compoundview;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.Toast;
import com.customview.compoundview.R;
public class MainActiv... | |
doc_10486 | bought table structure : fields (id,product_id,customer_id),
customer table structure: (customer_id,name,address) ,
product table structure: (product_id,name).
inside the product table included product a and b. From the bought table i want to get customer id (customers who bought product 'a' but did not buy product... | |
doc_10487 | I know that I can connect to other iPhone using GameKit API, But can I connect to other non apple Bluetooth devices for example an measuring device that send out real time data over blue tooth?
A: To send or receive data either by wire or over Bluetooth any device must authorize itself with the iPhone with a dedicated... | |
doc_10488 | const exercises = [
{
title: 'Abdominal Crunch',
id: '4YRrftQysvE1Kz8XACtrq4',
rest: ['30', '30', '30', '30', '30', '', '', '', '', ''],
reps: ['5', '5', '5', '5', '5', '', '', '', '', ''],
durationBased: false,
duration: ['', '', ''],
},
{
title: 'Bicep curl',
id: 'sdffsdfsdfssdfs... | |
doc_10489 | and currently working on a component which performs a put request to update details of a customer bean. however, I am experiencing a weird behavior.
Component:
function UpdateCustomer(props): JSX.Element {
const history = useHistory();
const [skipCount, setSkipCount] = useState(true);
const [firstName,... | |
doc_10490 | system ("mkdir -p Purged") or die "Failed to mkdir." ;
Executing the script does make the system call and I can find a directory called Purged, but the error message is still printed and the script dies. What is wrong with my syntax?
A: system returns 0 on success, so you want and rather than or.
See also: use autodi... | |
doc_10491 | listString.AddRange(new List<string>((string[])this.arrayList.ToArray()))
But this gives an exception of
Unable to cast object of type 'System.Object[]' to type 'System.String[]'
Please note :; I can't use .Cast as I am working in framework 4.0.
A: Use ToArray(typeof(string)) to create an Array and then cast it to... | |
doc_10492 | Array(21) {
[0] => Array(7) {
["punti"] => Integer 418
["vittorie"] => Integer 9
["podi"] => Integer 18
["gv"] => Integer 14
["id_pilota"] => Integer 1
["team"] => String(15) "Red Bull Racing"
["naz"] => String(2) "it"
}
[1] => Array(7) {
["punti"] => Integer 353
["vittorie"] =... | |
doc_10493 | I want to be able to bind an event handler from one class to the Click event of a button of an object in another class in the XAML of that control :
For Example :
<Button Click="{OtherClass.EventHandler}"/>
My Approach
I'm working from code that is nearly a decade old taken from here
I'm working with a class that in... | |
doc_10494 | I want to add all the records in Updatedb.db to Table1.
There are approx 25000 records to update.
I used:
mDataBase.openDataBaseForWrite();
SQLiteDatabase myInternalDatabase = mDataBase.getDb();
myInternalDatabase.execSQL("ATTACH DATABASE '" + ATTACH_DB_PATH
+ File.separator + ATTACH_DB_NAME + "' AS... | |
doc_10495 | Given a table with schema world(name, continent, area, population, gdp) Find the largest country (by area) in each continent, show the continent, the name and the area.
A possible solution would be:
SELECT continent, name, area
FROM world x
WHERE area >= ALL (
SELECT area FROM world y
WHERE y.continent=x.co... | |
doc_10496 | The code below generates a 10x10 button grid:
from kivy.uix.gridlayout import GridLayout
from kivy.app import App
from kivy.uix.button import Button
class MyApp(App):
def build(self):
layout = GridLayout(cols=10)
for i in range (1, 101):
layout.add_widget(Button(text=str(i)))
r... | |
doc_10497 | I know this can be done easily by using the Unix command : job: sort -n -k2 txtname | tail. But this doesn't scale to large datasets. So I'm trying to break the problem up and then combine the results.
Here is my WordCount class:
import java.util.Arrays;
import org.apache.commons.lang.StringUtils;
import o... | |
doc_10498 | When I am trying to access AWS Secret Manager Using aws-sdk@2.1215.0.
I got IncompleteSignatureException: Authorization header requires 'Credential' parameter. Authorization header requires 'Signature' parameter. Authorization header requires 'SignedHeaders' parameter.
| |
doc_10499 | Request('https://api.kucoin.com/v1/open/currencies')
Which returns this:
{"success":true,"code":"OK","msg":"Operation succeeded.","timestamp":1513157553306,"data":{"rates":{"BTC":{"CHF":16406.52,"HRK":105986.66,"MXN":315682.44,"ZAR":225142.48,"INR":1065126.38,"CNY":109471.64,"THB":539369.4,"AUD":21846.03,"ILS":58546.6... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.