id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23538700 |
Here are the instructions:
Officer: 3357927
CaseNum: 701-1-60140847-3357927
Case 701 - Credible cat thief - stage 2
Kid they need you down at the precinct again.
This time it's a sneaky cat thief who has been absconding with the neighbourhoods felines for some time.
Luckily old Mrs Olivetti caught a glimpse of them ... | |
doc_23538701 | After the pre-processing for text is done we must create a classification in order to get the positive and negative, so my question is it better to have example:
first way:
*
*100 records of text to train that includes 2 fields text &
status filed that indicate if its positive 1 or negative 0.
second way:
100 reco... | |
doc_23538702 | places, it stays in null, I have tried to return it with the function but it tells me that it is not compatible Future to list.
class AppState extends ChangeNotifier {
AppState({
places,
this.selectedCategory = PlaceCategory.wantToGo,
this.viewType = PlaceTrackerViewType.map,
}){
getPois();
}
L... | |
doc_23538703 | template< class RandomIt, class URNG >
void shuffle( RandomIt first, RandomIt last, URNG&& g );
compared to:
template< class RandomIt >
void random_shuffle( RandomIt first, RandomIt last );
I mean, it seems that whatever URNG is (a uniform distribution), the result will be the same (from a statistical point of view).... | |
doc_23538704 | Thanks!
A: Python is well documented.
| |
doc_23538705 | My code is as follows:
var params = {
TableName: 'Department',
KeyConditionExpression: '#company = :companyId'
, ExpressionAttributeNames: {
'#company': 'CompanyID',
'#dType': 'DepartmentType',
'#cTime': 'CreatedTime'
}
, ExpressionAttributeValues: {
':companyId': 'Te... | |
doc_23538706 | <?php
class DB
{
private $mysqlilink;
private $errors;
function __construct($errors = array())
{
$this -> errors = $errors;
$this -> connect();
}
function connect()
{
$server = "127.0.0.1";
$user_name = "un";
$password = "pw";
$database = "db"... | |
doc_23538707 | My .htaccess looked like this:
RewriteEngine On
RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any re... | |
doc_23538708 |
I am sharing my code from template :
<div class="form-group" v-for="(input,k) in data.invoice_product" :key="k">
<div class="row mb-2">
<div class="col-md-3">
<select class="form-control" v-model="data.invoice_product.product_id"
@change="getProductCost">
<o... | |
doc_23538709 | I'm having problems understanding how to get the value of key date from this JSON.
So far, I thought maybe a double nested for loop to push an array with the values of concerts, and they iterate using map. But still, the content of concerts is an Objects (why is so hard in React this? btw)
Can anyone give me a hand her... | |
doc_23538710 | This number should not contain all repeating digits.
i.e, I have to validate if the user enters a number like (999) 999-9999. But should allow any other format.
How to write a regular expression for this.
Please help.
Thanks,
Siri
A: To validate a North American style phone number you could use:
\(?\d{3}\)?[- ]?\d{3}-... | |
doc_23538711 | C:\dev\OpenCMS\Website\Frontend\Scripts\libs\sinnovations>tsc
sinnovations.listv iewbase.ts --module amd
C:/dev/OpenCMS/Website/Frontend/Scripts/libs/sinnovations/sinnovations.listviewb
ase.ts(11,5): error TS2025: Public property 'columns' of exported
class has or i s using private type 'KnockoutObservableArray... | |
doc_23538712 | max4ReceiveSize = 9216;
max6ReceiveSize = 9216;
Is there another setting?
Edit:
I discovered that the GCDAsyncUdpSocket class did provide a method to set this value called setMaxReceiveIPv4BufferSize. Tried that but it still only received at around 9216 bytes.
A: It would help to know exactly which operating system ... | |
doc_23538713 | <html>
<head>
<script type="text/javascript">
function age(){
let x = document.getElementById('txtYear').value;
if(x.length == 0) {
alert("Numbers should be between 1970 and 2018");
return;
}
if(isNaN(x)){
alert("Value entered is not numeric");
return;
}
var age = 2018-parseInt(x);
document.getElementById('age').in... | |
doc_23538714 | it's just running for one time only.
I want know is it possible if I have some exception in my delegate can it cause timer to misbehave?
How can I solve this problem?
This Timer runs throughout the lifecyle of application and stop only when application is stoped.
tmr = new DispatcherTimer();
tmr.Interva... | |
doc_23538715 |
http://amdc.in2p3.fr/nubase/nubase2016.txt
I've cleaned it up the best I can but to cut a long story short I would like to space delimit most of each line and then fixed delimit the last column. i.e. ignore the spaces in the last section.
Cleaned Data Text File
Can anyone point me in the right direction of a resource... | |
doc_23538716 | Please help in this regard. Below is my code
class UnionFind:
def __init__(self,v):
self.parent = [-1 for i in range(v)]
self.lis=[]
def addEdge(self,i,j):
self.lis.append([i,j])
def findParent(self,i):
if self.parent[i] == -1:
return i
else :
... | |
doc_23538717 |
import Foundation
import SwiftUI
import WatchKit
final class ExtensionDelegate: NSObject, ObservableObject, WKExtensionDelegate {
func applicationDidFinishLaunching() {
NSLog("App launched")
}
func applicationWillTerminate() {
NSLog("App will terminate")
// trying to call this f... | |
doc_23538718 | The goal I want to achieve is to
*
*read a CSV file (OK)
*encode it to Dataset<Person>, where Person
object has a nested object Address[]. (Throws an exception)
The Person CSV file
In a file called person.csv, there is the following data describing some persons:
name,age,address
"name1",10,"streetA~cityA||streetB~... | |
doc_23538719 | I herd and read that, SMTP protocol is used for e-mails. If I am correct, when exactly are these email systems use the SMTP protocol?.
Why can't I see the SMTP/S port on wireshark dump of my webmail?
Can the terms WWW and Internet be used interchangeably?
A: Because Gmail uses web interface. And there is no other alte... | |
doc_23538720 | In other words: when a key is defined already, the original value should be kept and not replaced.
My use case is to load libs in a monorepo with their own translation-files. The lib translations should be defaults, but the translations defined in the app (and loaded originally), should have a higher priority and overr... | |
doc_23538721 | So, what I need:
I have HTML structure for parsing like that:
<div class="foo">
<div class='bar' dir='ltr'>
<div id='p1' class='par'>
<p class='sb'>
<span id='dc_1_1' class='dx'>
<a href='/bar32560'>1</a>
</span>
Neque porro
<a href='/xyz' class='mr'>+</a>
... | |
doc_23538722 | How can I fix it?
Here is my code:
import tweepy
import time
consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate... | |
doc_23538723 | $ apk add pkg
in an alpine linux based container that isn't starting up.
Can anyone tell what is wrong with the following commands.
$ docker run --rm --entrypoint myimage:mytag 'apk add wget curl vim lynx'
docker: invalid reference format.
See 'docker run --help'.
$ docker run --rm myimage:mytag --entrypoint 'apk ... | |
doc_23538724 |
that there is an increase in height of navigation bar, and there is a search bar in the middle and a home button to the left and a help button to the right.country and account access on the the top right aside to the help button. I want to make this navigation bar available in all screens in my application.
Please as... | |
doc_23538725 | However, unless logged into the game Bin Weevils, the contents of the page will simply be failed=99.
I used the free Chrome extension EditThisCookie to find out which cookie out of the ones that are set when you log into Bin Weevils is required to view the page and discovered that it is the cookie PHPSESSID. I have att... | |
doc_23538726 |
list_id int user_id int dest_user_id int
1 10 20
2 10 24
3 10 33
4 11 10
TABLE users_avatar
avatar_id int user_id int webavatar_thumbnail
1 10 test.jpg
2 10 test2.jpg
3... | |
doc_23538727 | Sometimes this uploads image and sometimes don't. And when it failed to upload image gives a Nil response.and sends some garbage value to server.
Here is my image upload method:
func UPLOD(){
let image = myImageView.image!
let serviceName = "http://192.168.80.21:8800/api/v1/upload/uploadfile"
var parameter... | |
doc_23538728 | public IQueryable<T> Search<T>(Expression<Func<T, bool>> predicate)
where T : EntityObject
{
return _unitOfWork.ObjectSet<T>().AsExpandable().Where(predicate);
}
And another class which uses the IQueryable return value to subset the query in ways that are not possible using the Boolean LinqKit PredicateBuilde... | |
doc_23538729 | [DEBUG] 2015-11-20 13:19:43.9444 Message type: 'MyAssembly.Messages.NewEmailEvent' could not be determined by a 'Type.GetType', scanning known messages for a match
The event definition looks like this.
namespace MyAssembly.Messages
{
public class NewEmailEvent
{
public Guid MessageId { get; set; }
... | |
doc_23538730 | ERROR: type should be string, got "https://jsfiddle.net/069bmfr0/\n<ul class=\"tabs-menu ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\" role=\"tablist\">\n<li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab1')\">tab1</a></li>\n<li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab2')\">tab2</a></li>< \n<li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab3')\">tab3</a></li>\n<li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab4')\">tab4</a></li> \n</ul>\n\n.tabs-menu{text-align:justify;width:100%;background:grey;}\n.tabs-menu:after{content:'';display:inline-block;width:100%;}\n.tabs-menu li{display:inline-block;padding:10px;border-right:2px solid white;}\n.tabs-menu a{color:white;}\n\nWhere am I going wrong?\n\nA: CSS3 Flexbox will do that using display:flex in ul and flex:1 in li, the magin is in flex:1 which is shorthand for flex-grow /flex-shrink/flex-basis, so longhanded is flex:1 0 auto.\nHaving flex-grow:1 means it will grow evenly to its siblings .\nUPDATE\nAfter Op's comment\n\njsfiddle.net/9hh86/547 could this be done using flexbox instead?\n\nyou can use justify-content:space-between in ul\n\n\nbody {\r\n margin: 0\r\n}\r\n\r\n.tabs-menu {\r\n \r width: 100%;\r\n display: flex;\r\n margin: 0;\r\n padding: 0;\r\n list-style: none;\r\n justify-content:space-between;\r\n background: grey;\r\n text-align: center;\r\n}\r\n\r\n.tabs-menu li {\r\n padding:10px;\r\n border: solid white;\r\n border-width: 0 2px;\r\n}\r\n\r\n.tabs-menu a {\r\n color: white;\r\n}\n<ul class=\"tabs-menu ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\" role=\"tablist\">\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab1')\">tab1</a></li>\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab2')\">tab2</a></li>\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab3')\">tab3</a></li>\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab4')\">tab4</a></li>\r\n</ul>\n\n\n\nA: I would use flex on the parent, and set the children to flex-grow: 1; flex-basis: 0 so they grow to fill the parent evenly based on the parent's width, and not the content in the li. Also add text-align: center; and remove the padding from the ul\n\n\n.tabs-menu {\r\n text-align: justify;\r\n background: grey;\r\n display: flex;\r\n padding: 0;\r\n}\r\n\r\n.tabs-menu li {\r\n flex: 1 0 0;\r\n padding: 10px;\r\n border-right: 2px solid white;\r\n list-style: none;\r\n text-align: center;\r\n}\r\n\r\n.tabs-menu a {\r\n color: white;\r\n}\n<ul class=\"tabs-menu ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\" role=\"tablist\">\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab1')\">tab1</a></li>\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab2')\">tab2</a></li>\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab3')\">tab3</a></li>\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab4')\">tab4</a></li>\r\n</ul>\n\n\n\nA: The best way to handle this is with flex:\n.tabs-menu {\n display: flex;\n flex-wrap: wrap;\n padding: 0; // Optional, but probably desired\n}\n\n.tabs-menu li {\n flex: 1;\n}\n\n\n\n.tabs-menu {\r\n text-align: justify;\r\n width: 100%;\r\n background: grey;\r\n display: flex;\r\n flex-wrap: wrap;\r\n padding: 0;\r\n}\r\n\r\n.tabs-menu:after {\r\n content: '';\r\n display: inlinea-block;\r\n width: 100%;\r\n}\r\n\r\n.tabs-menu li {\r\n display: inline-block;\r\n padding: 10px;\r\n border-right: 2px solid white;\r\n flex: 1;\r\n}\r\n\r\n.tabs-menu a {\r\n color: white;\r\n}\n<ul class=\"tabs-menu ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\" role=\"tablist\">\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab1')\">tab1</a></li>\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab2')\">tab2</a></li>\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab3')\">tab3</a></li>\r\n <li><a class=\"w3-bar-item w3-button\" onclick=\"openCity('tab4')\">tab4</a></li>\r\n</ul>\n\n\nI've also created a working fiddle showcasing this here.\nHope this helps! :)\n" | |
doc_23538731 | poll.find().sort({'date': -1}).toArray(function(err,docs){
res.render("home",{polls:docs});
});
The variable polls is an array of objects.I am able to access the polls array successfully in the html view but I don't know a way to access it in the client side js file to draw charts using the data inside arr... | |
doc_23538732 | The book has a property which is also a versioned entity Author.
Author author = new Author();
author.setName("foo");
save(author);
Book book = new Book();
book.setAuthor(author);
save(book);
Now if I change the author's name eg
author.setName("bar");
I want "bar" to be seen from the version of Book as of this hour... | |
doc_23538733 | rvm install 1.7.4
Below is what my output looks like
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.12/x86_64/jruby-1.7.4.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Requirements inst... | |
doc_23538734 | I want something like im = models.ImageField(upload_to="images/", blank=True, null=True) but I do not want to upload many images one by one.
How can I do that? There is a simple way to use FileField or ImageField that upload directly the folder instead of a file/image?
A: I've done some digging around and it doesn't ... | |
doc_23538735 | I get the EXC_BAD_ACCESS error on the line with strcpy:
char *invalidOption = NULL;
strcpy(invalidOption, argv[2]);
argv[1] is -v (a "valid" option) and argv[2] is -z (an "invalid" option).
I then need to change "invalidOption" for display reasons (printing the "error" message).
Any ideas as to why this is happening?
... | |
doc_23538736 | <p class ="BasicP"> Datum: <?php echo $Datum;"\r\n"?>
Betreft: <?php echo $Betreft;"<br>"?>
Offertenr: <?php echo $Offertenr;"\n"?>
<p>
And this outputs:
Datum: Betreft: Offertenr:
I would like it to output:
Datum:
Betreft:
Offertenr:
Each of them starting on a new line.
I've tried <br>, PHP_EOL and new... | |
doc_23538737 |
A: What version of Windows are you running/testing on?
There's a feature of Windows 7 (not sure if it's in Vista as well, or perhaps even XP) where if you specify a web location (be it http or ftp), Windows downloads the file from that location and passes the path of the downloaded file, hence the Temp folder, to the ... | |
doc_23538738 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>color</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
font-family: Monospace;
background-color: #000;
color: #fff;
margin: 0px... | |
doc_23538739 | When I set (in the information window) the default app for this type of file to the oldest Xcode and apply it for all of them it changes back automatically to newest.
How do I effectively change this?
I really need to use the older version for development.
Regards.
A: I'm not sure if this is an "issue" per se as my ex... | |
doc_23538740 | I'd like to find records where a text field contains text to populate an autocomplete field in a form. The challenge is that I'd like to limit the results to the first 20 records, but give preference to matches that are at the start of the field.
How I do this now is I execute a query for field LIKE "%term" for 10, and... | |
doc_23538741 | <ul id="mylist">
<li>Element 1</li>
<li>Element 2</li>
</ul>
A: var listItems = $("#myList").children();
var count = listItems.length;
Of course you can condense this with
var count = $("#myList").children().length;
For more help with jQuery, http://docs.jquery.com/Main_Page is a good place to start.
A: I... | |
doc_23538742 |
But when I do some scrolling, the progress view distorts like this:
It is definitely something to do with reusing cells. I'm familiar with all that and yes the issue occurs exactly when you'd expect it to. Here is my code; there is quite a lot going on here so perhaps some of this is in the wrong place?:
let Cell = t... | |
doc_23538743 | But it turned out to be that the port specified (50051 as the example said) was unavailable. Switching to a different port on both server and client sides solves the problem.
However, this begs a better solution because we can't ask every rpc call to hardcode a port number. What would be the best practice?
I've consult... | |
doc_23538744 | My Node code is as follows
var http = require('http');
//The url we want is: 'www.random.org/integers/?num=1&min=1&max=10&col=1&base=10&format=plain&rnd=new'
var options = {
host: 'www.random.org',
path: '/integers/?num=1&min=1&max=10&col=1&base=10&format=plain&rnd=new'
};
callback = function(response) {
var st... | |
doc_23538745 | It is working to make a static variable to hold the score and change it in other scripts when the player should be awarded, but it also advised that using static variable in C# script of Unity might not be recommended.
Flowing is what I do to construct the scoring system:
in ScoreManger which was bonded to an UI Text c... | |
doc_23538746 | Hello I am trying to build a shiny app for species sampling. For each species that is selected I need to select in which kind of sampling, and if it is selected in a pin-point sampling it needs to be counted, here is a working example:
library(shiny)
library(shinyMobile)
ui = f7Page(
title = "Show navbar",
f7Singl... | |
doc_23538747 | Is there an attribute that will avoid this?
A: Per the accepted answer and similar question/answer, in addition to [NotMapped] you can also specify it using the Fluent API:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity<TheModelAffected>().Ignore(t => t.TheIgnoredProperty... | |
doc_23538748 | It is a kind of parental control application.
I just don't know which C# class would be able to do such intercepting and which steps would involve configuring it / making it works.
Any suggestion is appreciated.
A: I think the easiest way to achive that would be creating your own HTTP proxy, for example by taking some... | |
doc_23538749 | Thanks in advance.
| |
doc_23538750 | async function getAnimalSounds(animals){
var sounds = []
for (const a of animals){
asynchronously_fetch_sound(a).then((result) => {
sounds.push(result)
})
}
return sounds // sounds returns as an empty array
}
Thank you in advance!
A: The problem here is that you are using a plain for ... | |
doc_23538751 | Resources:
EBApplication:
Type: AWS::ElasticBeanstalk::Application
Properties:
ApplicationName: !Ref ApplicationName
Description: "AWS Elastic Beanstalk Account Balance application"
I want to use this resource in another stack, so Im exporting it at the end of the same yaml file:
Outputs:
... | |
doc_23538752 | #include <math.h>
#include <stdlib.h>
void run_calc();
void scandata(char *op, double * operand);
void do_next_op(char op, double operand, double *akku);
int main()
{
run_calc();
return 0;
}
void run_calc(){
double akku = 0, operand = 0;
char op, answer;
printf("Press enter to use the calculator");
printf("\n");
sc... | |
doc_23538753 | lista=[a,b,c,d,e]
How would I ask the user to input a number that prints the letter of the corresponding index in the list?
For example , if the user enter the number 3 , the letter of index 3 in the list ie: 'd' would get printed?
A: Read the index you want and access the list using it.
In Python 3 use input():
index... | |
doc_23538754 | 2012-07-09 15:41:16 ZooKeeperSaslClient [INFO] Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
2012-07-09 15:41:16 ClientCnxn... | |
doc_23538755 | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
#open IE
driver = webdriver.Ie()
# Open new tab
driver.find_element_by_tag_name('body').send_keys(Keys.CONTROL + 't')
# Print handles
print(driver.window_handles)
The answer to the print statement above, is:
['5bd4ca0b-0095-4851-a36d-54... | |
doc_23538756 | package main
import "fmt"
func main() {
fmt.Println("hello world")
}
and compiled like this on ubuntu (pretty new version):
go build -v -a -tags netgo -ldflags '-w -extldflags "-static"' hw.go
Then I moved the binary to an older linux also 64 bit and while executing got this error:
what am I doing wrong ?
futexw... | |
doc_23538757 | interface IComponent {
type: string;
text: string;
}
interface IComponents {
cc: IComponent;
lajota: IComponent;
}
interface IMain {
components: IComponents
}
And it is working fine! But now I need to add a new component called "caneta".
SO I'll access this with .components.caneta. But this new component w... | |
doc_23538758 | The issue that is that when the anchor is clicked, the user is redirected to the agenda (the desired result), but then the ajax call to the server finishes and the table above expands and pushes the agenda down.
I have tried to wrap the table in a div with a calculated height based on the contents of the table, but the... | |
doc_23538759 | create table document (id bigint not null, version int not null,
data varchar(255), primary key(id, version));
There's another table that contains a hierarchy of views. (I'm leaving out foreign keys and other constraints in this example, but they'd apply).
create table view (id bigint primary key, parent_id bigi... | |
doc_23538760 | But, as per CocoaLumberjack's current version there is requirement of Xcode 8, they said that for backword compatibility use CocoaLumberjack 2.2.0 version for Xcode 7.2, but I'm not getting how to download CocoaLumberjack 2.2.0 version.
Thanks in advance.
A: Try this: pod 'CocoaLumberjack/Swift', '2.2.0'
if that does... | |
doc_23538761 | DB Initializer
namespace OProj.DataContext
{
public class OProjDbInitializer : System.Data.Entity.CreateDatabaseIfNotExists<OProjDBContext>
{
protected override void Seed(OProjDBContext context)
{
context.FeedEvents.Add(new FeedEventCommand
{
AnimalId ... | |
doc_23538762 |
A: After further investigation I believe I can now answer this myself. A decoder only transformer doesn't actually use any memory as there is no encoder-decoder self attention in it like there is in a encoder-decoder transformer. A decoder only transformer looks a lot like an encoder transformer only instead it uses a... | |
doc_23538763 | Element with short title (X)
Element with a very lo...(X)
The title should be ellipsized, but the X must be always visible. In my case, is not possible to use more than one TextView. Do you think there is a simple way of doing this?
Thanks!
A: You can try using something like this:
myTextView.setEllipsize(TextUtils.T... | |
doc_23538764 | My question is: what is the best practice for building out new instances? should it be includes in the scripts that setup the environment or separated? I'm a bit confused how the script could create instances (say EC2 instances) and accept inventory files.
A: May be that example playbook will help you, it will create ... | |
doc_23538765 | my error is as below.enter image description here
System.Management.Automation.CommandNotFoundException: 'The term 'Add'
is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.'
my ... | |
doc_23538766 |
A: Quad core means twice as many cores as dual. This means it is able to run more applications at once. The i7 3636QM also has a larger L3 Cache meaning more data can be stored for quick access. Therefore the quad core processor seems to be better for parallel computing; even though it has a lower clock speed.
When yo... | |
doc_23538767 | I guess that this means that the location monitoring should run in background mode, but I am fairly new to android and I don't really understand about background processes or about location monitoring. Can anyone point me to a good tutorial or information?
A: to building this app that will monitor where a user is usin... | |
doc_23538768 | Apple created the UISplitViewController for this exact scenario... seemingly. I say seemingly because although I see it used in Settings, iPod, iTunes, and so on, none of those applications use UISplitViewController inside a UITabBarController, because it's not only documented as not working, but apps can crash if thos... | |
doc_23538769 | To do that I have to read the serial data (in this case using C#) and that works fine. But because my Arduino board needs to know when to write data to the serial I first need to send a command to the Arduino board.
Using Arduino IDE's 'Serial Monitor', I tried sending some data but it doesn't get received by the Ardui... | |
doc_23538770 | I used a built-in WordPress function, sanitize_text_field():
function wpdocs_my_search_form( $form ) {
$search_query = sanitize_text_field( get_search_query() );
$form = '<form role="search" method="get" id="searchform" class="searchform" action="' . home_url( '/' ) . '" >
<div><label class="screen-rea... | |
doc_23538771 | This function gets 2 6x6 matrices and returns a vector magnified by the dimensions specified in np.linspace, i.e. 6x91. I want to store these three arrays in a file (using savetxt) by concatenating them as float numbers. Below there's a sample of the function run separately from the class, which works fine.
The proble... | |
doc_23538772 | What I'm trying to do is a Query that outputs price data on different pages, at the moment it works fine - however on each page i use the query I have to change the productpage name in the query. How can I automatically get the filename of the page (excluding .PHP) and insert that name into the query? (I have a corresp... | |
doc_23538773 | <TabControl>
<TabControl.Style>
<Style TargetType="TabControl">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsRunning, UpdateSourceTrigger=PropertyChanged}" Value="True">
<Setter Property="SelectedIndex" Value="1" />
</DataTrigger>
... | |
doc_23538774 | I would like to understand how GAMG prepares the internal structures.
Does it create the internal data structures used in GAMG only once in a single iteration on the basis of the geometry and then the entries in these data structures are only updated?
OR
Does it create the interal data structures multiple times in a... | |
doc_23538775 | How we differentiate Network & Organization
Reference : http://build.fhir.org/ig/HL7/VhDir/StructureDefinition-vhdir-network.html
A: That's a very good question. There doesn't seem to be any element in the resource that clearly distinguishes 'network' organizations from other organizations. It is not safe to use met... | |
doc_23538776 | #include <iostream>
using namespace std;
class A
{
public:
A(){}
void m(std::string* s)
{
cout<<*s;
}
void m(std::string s)
{
cout<<s;
}
};
int main()
{
A a;
string str="hi!\n";
std::thread(&A::m,a,&str);
}
this doesn't compile; it gives:
error: no matching function fo... | |
doc_23538777 | sumofsides <- function(stopvalue) {
totalsum <- 0
while (totalsum < stopvalue) {
face <- sample(6, 1, replace= TRUE)
totalsum <- totalsum + face
}
return(total value)
}
sumofsides(100)
[1] 103
When I am writing the following code to get the number of rolling till it reaches to the stop value. But it's... | |
doc_23538778 | However, I am trying to push it to a dictionary so it could be formatted as: {0 : image2, 1:image1, 2:image3}. This would allow me to see what image is at each index, so when the user clicks submit, 3 more images could be loaded in to be ranked.
Can anyone help how to get it to do this? The dictionary will not work, an... | |
doc_23538779 | {"username":"one","timestamp":"2015-10-07T15:04:46Z"}---| same day
{"username":"one","timestamp":"2015-10-07T19:22:00Z"}---^
{"username":"one","timestamp":"2015-10-25T04:22:00Z"}
{"username":"two","timestamp":"2015-10-07T19:22:00Z"}
What I want to know is to count the # of unique users for a given time period. Ex:
... | |
doc_23538780 | suma = 0
while( a <= 1000):
if (a%3 == 0 or a%5 == 0):
suma = suma + a
a = a + 1
print("The final answer is: %s " % suma)
Question:
Find the sum of all multiples of 3 or 5 up till 1000.
I do know how to solve this problem by using a for loop, what I want to know is that why, when I run this cod... | |
doc_23538781 | My question is: What is the best way to store data without using multiple files?
To my mind came CSV, but I am not sure if this is a proper solution...
Thanks for answers!
A: There's always xml. You can even use linq with that: http://msdn.microsoft.com/en-us/library/system.xml.linq%28v=vs.110%29.aspx
A: If you want ... | |
doc_23538782 | Is there a parser that can extract me all the functions from assembly and start line and endline of their body?
A: There's no foolproof way, and there might not even be a well-defined correct answer in hand-written asm.
Usually (e.g. in compiler-generated code) you know a function ends when you see the next global sy... | |
doc_23538783 | What I currently have that works is:
import datetime
cww = datetime.datetime.now().isocalendar()[1]
cy = datetime.datetime.now().isocalendar()[0]
l6ww = [str(cy)[2:]+'WW'+str(w) for w in range(cww-5,cww+1)]
print l6ww
['18WW35', '18WW36', '18WW37', '18WW38', '18WW39', '18WW40']
This will work until the first WW of n... | |
doc_23538784 | The problem is that it only works when I'm on the page with the fields I'm trying to fill in! I've tried everything but I'm at a loss. Can anyone help me out? Here's the code:
javascript: (function() {
title = document.title;
url = document.URL;
text = document.getSelection();
w = window.open('My site');
w.onload = fun... | |
doc_23538785 | http://myserver/Shared%20Documents/Adds2011.xls
However when passing this to the following web routine I receive an error. Here is the routine:
Private Sub OpenExcel(myurl As String)
Dim xlApp As New exServices.ExcelService
xlApp.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim status(10) As ... | |
doc_23538786 | rgx = "(?P<start>INSTALLED_APPS.*?)\)"
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
)
match = re.search(rgx, content, re.DOTALL)
grabs
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
but for some reason when I go to sub it, with a new app, like
INSTALLED_APPS = ... | |
doc_23538787 |
A: There is a number of "mobile" operating systems and we are not telepathic enough to figure out which one you're talking about in order to provide troubleshooting instructions. I assume you use Android as it is about 75% of market.
*
*Make sure to start JMeter's HTTP(S) Test Script Recorder prior to amending mob... | |
doc_23538788 | This Camera has available OnNewFrame event, so I'll initialize:
camera.OnNewFrame += frameAcquired;
frameAcquired is also member of Engine class.
private void frameAcquired(object sender, EventArgs e)
{
/* this event should periodically raise after ~17ms,
but sometimes it hangs for a short time
(w... | |
doc_23538789 |
=COUNTIFS(F:F,J6)
A: You have to use the IF function to check for the result.
=IF(COUNTIFS(F:F,J6)>0,COUNTIFS(F:F,J6),"")
If you have Excel 365 you can use a LET-function to avoid counting twice:
=LET(result,COUNTIFS(F:F,J6),
IF(result>0,result,""))
Or you use a special numberformat (with your original formula):
0;... | |
doc_23538790 | I could not find a JavaScript runtime. See sstephenson/ExecJS (GitHub) for a list of available runtimes (ExecJS::RuntimeUnavailable).
What do I need to do to get this working?
A: Add following gems in your gem file
gem 'therubyracer'
gem 'execjs'
and run
bundle install
you are done :)
A: In your Gem file, write
gem... | |
doc_23538791 | But cefsharp is only showing 4 options - back, forward, print, view source. There is no copy shortcut option.
I have not initialized the browser with any settings. Just created a chromiumbrowser item and added it to the controls on the form.
Anyone knows why this is happening? I also tried to add a menu item but can't ... | |
doc_23538792 | i have search on stackoverflow advice me to do network thread in background AsyncTask so before use backgroundtask,
My screen look like this http://imgur.com/PlhS03i show multiple rows in nutrition's and ingredient tags after using backgroundtask my screen look like this http://imgur.com/zUvxNpy show only single row in... | |
doc_23538793 | function testJQueryClick(){
$('#button2').click(function(){ alert ('Debug'); return false; });
}
When I call the function once (and then click on button 2), I get the expected alert. When I call the same function a second time and then click button 2, I get two alerts, third time I get three, etc. jQuery s... | |
doc_23538794 | loadLocalSubServices$: Observable<Action> = this.actions$.pipe(
ofType(LocalSubServiceTemplateActions.LocalSubServicesTemplateActionTypes.LoadLocalSubService),
map((action: LocalSubServiceTemplateActions.LoadLocalSubService) => action.payload.globalSubServiceId),
// and below I would like to pass globalSubService... | |
doc_23538795 | (id, intcol1, intcol2, intcol3, ...)
Sample data:
123, 582585, 25215718, 15519
234, 2583, 2371, 1841948
345, 42389, 234289, 234242
I want to run some aggregate calculations using outside data to group the data by. The data I have is of the form:
(id, groupcol)
Sample data:
123, "January",
234, "February"
345, "Janua... | |
doc_23538796 | extends('layouts.main')
Now in some pages, I need to send a successful message and in other pages not. I implemented that like this:
return....->with(array(
sucessfulMessage => 'asdf'
));
Please note that I do that just in some pages not in all pages.
Now I want to use that variable in JavaScript. I did this in the l... | |
doc_23538797 |
*
*Check if model is new.
*If new, AJAX GET from validate() to see if model exists already (by title).
*If response = duplicate set status invalid, if not proceed with save()
The problem Im having is that Backbone is doing the following.
*
*save()
*validate() : GET returns not duplicate
*validation passed, se... | |
doc_23538798 | Possible Duplicate:
jQuery $(this) vs this
This code in this video Tutorial
in a Very useful blog jquery for designers
$('.navigation').each(function () {
var $links = $('a',this);
$links.click(function () {
var $link = $(this),
link = this;
if ($link.is('.selected')) {
... | |
doc_23538799 | My reasoning would say yes, because the computing is distributed between machines at different physical locations and a network is required.
But i think most people considers distributed computing as strictly parallel, whereas webapps don't run in parallel ... they run sequentially.
So, could Web Apps be consid... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.