question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
37,921,891
Ajax success/error message only displaying once<p>I have created a form using <code>php</code> <code>ajax</code> and <code>JavaScript</code>. </p> <p>With ajax I successfully managed to display an error/success message while staying on the same page.</p> <p>It works alright if I use <code>console.log</code> to displa...
<p>You have to show your message <code>success-message</code> first </p> <pre><code>$('#success-message').html(response).show(); </code></pre>
Ajax success/error message only displaying once
javascript|jquery|ajax
-1
792
1
37,921,932
37,921,932
2
true
2016-06-20T11:53:23.827Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ajax success/error message only displaying once<p>I have created a form using <code>php</code> <code>ajax</code> and <code>JavaScript</code>. </p> <p>With a...
37,951,167
What is the difference between a database and a normal file based system<p>What is the difference between a database and a normal file based system (like how we store data in our drives)?</p> <p>Is it that data will be stored in form of tables in database? Can't we store files (mp3, mp4 etc.)?</p>
<p>From <a href="https://en.wikipedia.org/wiki/File_system" rel="nofollow">https://en.wikipedia.org/wiki/File_system</a>:</p> <blockquote> <p>In computing, a file system is used to control how data is stored and retrieved. Without a file system, information placed in a storage area would be one large body of dat...
What is the difference between a database and a normal file based system
database|file
-1
1,300
2
37,952,047
37,952,047
2
true
2016-06-21T17:44:21.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the difference between a database and a normal file based system<p>What is the difference between a database and a normal file based system (like how...
37,973,279
What is the correct syntax for import images<p>I recently started using React Native and have problem with displaying local and external Images on Android emulator (<a href="https://github.com/futurice/pepperoni-app-kit" rel="nofollow noreferrer">Pepperoni starter kit</a>). In example I have Simple component:</p> <pre ...
<p>The syntax that you are using to import images is the old syntax. The new syntax is </p> <pre><code>&lt;Image source={require("./images/somepic.png")}/&gt; </code></pre> <p>See <a href="https://facebook.github.io/react-native/docs/images.html" rel="nofollow">Image guide</a> for more details.</p>
What is the correct syntax for import images
react-native
-1
5,165
1
37,973,860
37,973,860
2
true
2016-06-22T16:10:47.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the correct syntax for import images<p>I recently started using React Native and have problem with displaying local and external Images on Android em...
37,991,771
Connecting many json files to one<p>i get many json strings from a mysql DB an should combine them.</p> <p>For example:</p> <pre><code>{ "type": "device", "name": "Lampe", "controls": [ { "type": "switch", "name": "Betrieb", "topic": "/lampe/schalter" } ] } </code></pre> <p>in combi...
<p>There are two ways you could do this - by working on strings, or by working with Python-JSON data structures. The former would be something like</p> <pre><code># untested code s = '''{ "name": "Test-System", "devices": [ ''' while True: j = get_json_from_DB() if not j: break # null string or None s =...
Connecting many json files to one
python|json
-1
58
2
37,992,359
37,992,359
2
true
2016-06-23T12:34:45.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Connecting many json files to one<p>i get many json strings from a mysql DB an should combine them.</p> <p>For example:</p> <pre><code>{ "type": "device"...
37,995,359
How to remove and add input type with jQuery<p>Hello Im trying to create a login, everything its ok but in my password input I want a span that when user click on it show the password and when click again hide the password at the moment I only have the first step (show the password).</p> <p><a href="http://www.bootply...
<p>You should try with this:</p> <pre><code>$('#xd').on('mouseup', function () { $('#Contraseña').attr('type', 'password') }); $('#xd').on('mousedown', function () { $('#Contraseña').attr('type', 'text') }); </code></pre> <p><a href="http://www.bootply.com/2DhSwqv3sL" rel="nofollow">Code here</a></p>
How to remove and add input type with jQuery
javascript|jquery
-1
65
4
37,995,540
37,995,540
2
true
2016-06-23T15:02:50.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove and add input type with jQuery<p>Hello Im trying to create a login, everything its ok but in my password input I want a span that when user cli...
37,995,906
django - tuple in a template only returning first character?<p>I am trying to access a tuple in a django template but for some reason i am only seeing the first character, i thought it may be because using .# returns substrings, so i took the # off, upon which it returns nothing at all</p> <p>context_processors.py</p>...
<p>When you iterate over <code>circuit_providers</code> this way:</p> <pre><code>{% for key, tuple in circuit_providers %} ... {% endfor %} </code></pre> <p>You <em>unpack</em> every inner tuple, <code>key</code> is becoming <code>KCOM</code>, <code>tuple</code> is becoming <code>KCOM</code>, then <code>key</code...
django - tuple in a template only returning first character?
python|django
-1
77
1
37,995,968
37,995,968
2
true
2016-06-23T15:28:21.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: django - tuple in a template only returning first character?<p>I am trying to access a tuple in a django template but for some reason i am only seeing the fi...
38,029,981
Office 365 Graph API or Outlook API?<p>When using Office 365 APIs to access only email items, should I use the Graph API or Outlook API? I don't need all the different services that the Graph API provides, but the Outlook API seems more full-featured. Which one is more future-proof?</p>
<p>I would actually suggest using the Graph API if it has the features that you need, simply because the fact that you do not need anything outside of Outlook now, you might in the near future seeing as different Office 365 features are starting to get more and more integrated with each other. Next to that, I personall...
Office 365 Graph API or Outlook API?
office365|office365api
-1
543
2
38,031,590
38,031,590
2
true
2016-06-25T15:24:01.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Office 365 Graph API or Outlook API?<p>When using Office 365 APIs to access only email items, should I use the Graph API or Outlook API? I don't need all the...
38,032,771
Returning an object.keys and comparing it to a function argument in JavaScript<p>I'm having problems with the code below, but I can't figure out why my tests are not passing..</p> <p>For example if I pass <code>canIGet('MacBook Air', 100);</code> this must return <code>false</code>, but instead is returning <code>true...
<p>In your if statements, you are comparing against each key in <code>itemPrices</code> manually. There's no need to do that - you are already passing the correct key into the function as a variable (<code>item</code>). You can just use that variable to get the correct key in the object: <code>itemPrices[item]</code>. ...
Returning an object.keys and comparing it to a function argument in JavaScript
javascript|object|conditional
-1
40
3
38,032,821
38,032,821
2
true
2016-06-25T20:39:29.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Returning an object.keys and comparing it to a function argument in JavaScript<p>I'm having problems with the code below, but I can't figure out why my tests...
38,032,920
cant print big strings in javascript with echo php<p>I have saved in my database some big string.. when I echo this string in php, it seems right, but when I echo in javascript something going wrong.. In javascript i use BigInteger.min.js and everything is right.</p> <p>Actually when I do:</p> <pre><code>echo 'value:...
<p>When not wrapped in quotes that "string" is handled as an integer. To have it display as a string wrap it in quotes in your code:</p> <pre><code>document.write("&lt;?php echo $row['number'];?&gt;"); </code></pre>
cant print big strings in javascript with echo php
javascript|php|string|integer
-1
60
1
38,032,931
38,032,931
2
true
2016-06-25T20:59:24.613Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: cant print big strings in javascript with echo php<p>I have saved in my database some big string.. when I echo this string in php, it seems right, but when I...
37,755,335
Replace all values of NULL in a list of List to something else/ list of list with varying lengths<p>I have a list of lists that I need to convert into the correspond dataframe.</p> <p>The position of the rows is important so that I can link them to another item later on. I tried one approach where I make it into a da...
<pre><code>first = c(1,2,3) second = c(1,2) problemrows = NULL mylist = list(first,second,problemrows) mylist &lt;- sapply(mylist, function(x) ifelse(x == "NULL", NA, x)) library(plyr) # doesn't work because of NULLs above t(plyr::rbind.fill.matrix(lapply(mylist, t))) </code></pre>
Replace all values of NULL in a list of List to something else/ list of list with varying lengths
r|list|plyr|nested-lists
-1
1,315
1
38,043,514
38,043,514
2
true
2016-06-10T18:51:49.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Replace all values of NULL in a list of List to something else/ list of list with varying lengths<p>I have a list of lists that I need to convert into the co...
38,046,037
Child class object on Parent reference accessing Parents variable<p>Here is a simple example where I am inheriting the class property.</p> <pre><code>class Xyz { int a = 10; } public class Demo extends Xyz { int a = 5; public static void main( String[] args ) { Xyz z = new Demo(); System.ou...
<p>For Variables in java , Variables are only accessible using their reference variable not about the object.</p> <pre><code>Xyz z // z is the reference variable of Xyz so it will print 10 instead of 5. Xyz z = new Demo(); // override concept only works for Method not for Variables </code></pre> <p>another conf...
Child class object on Parent reference accessing Parents variable
java|oop|inheritance
-1
1,593
3
38,046,085
38,046,085
2
true
2016-06-27T04:40:22.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Child class object on Parent reference accessing Parents variable<p>Here is a simple example where I am inheriting the class property.</p> <pre><code>class ...
38,050,100
Copy Specific Elements of JSON Array To Another<p>I am creating a Lambda Function in JavaScript which will run a NodeJs Function. For this i have a S3 function that return a list of Objects in the format</p> <pre><code> { Contents: [ { Key: '1466***', LastModified: 2016-06-27T***, ETag: '****', Size: 708, ...
<p>Use <strong><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map" rel="nofollow"><code>Array#map</code></a></strong> method</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snipp...
Copy Specific Elements of JSON Array To Another
javascript|arrays|json|node.js
-1
2,364
1
38,050,206
38,050,206
2
true
2016-06-27T09:16:44.247Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Copy Specific Elements of JSON Array To Another<p>I am creating a Lambda Function in JavaScript which will run a NodeJs Function. For this i have a S3 functi...
37,853,521
Error while running collect() action in PySpark<p>While practising Apache Spark using Python, I am getting error while running collect() command. I am trying the below code in Jupyter notebook.</p> <pre><code>vehicledata = sc.textFile("/home/newuser/Desktop/vehicle_data.csv") vehicledata.collect() [u'suzuki,gas,std,t...
<p>This issue isn't specific to Spark at all.</p> <p>First look at the Specific error message thrown: list Index out of range. Now look at the last line of your data -- its empty. Which means splitting it by ',' will give you empty result.</p>
Error while running collect() action in PySpark
python|apache-spark|pyspark
-1
4,622
2
37,855,110
37,855,110
3
true
2016-06-16T08:14:59.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error while running collect() action in PySpark<p>While practising Apache Spark using Python, I am getting error while running collect() command. I am trying...
37,873,986
How to print 'ON' for once if at least 1 'ON' of last 5 (ON/OFF) status?<p>I'm trying to see if machine is working or not. I made a circuit to see current on the cable but sometimes I see 'OFF' on the screen even machine does not stop. I decided to change code instead of the circuit. So I want to see 'ON' on the screen...
<p>Your current implementation holds a single previous state and cannot do what you want. A <a href="https://docs.python.org/3/library/collections.html#collections.deque" rel="nofollow"><code>deque()</code></a> is a nice fit for this task: it can be limited to a maximum size and it has fast appends and pops:</p> <pre>...
How to print 'ON' for once if at least 1 'ON' of last 5 (ON/OFF) status?
python|if-statement
-1
74
2
37,874,118
37,874,118
3
true
2016-06-17T05:46:04.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to print 'ON' for once if at least 1 'ON' of last 5 (ON/OFF) status?<p>I'm trying to see if machine is working or not. I made a circuit to see current on...
37,953,479
how to create an extra column in DataFrame based on a simple condition in spark<p>I have a dataframe and I'd like to add an extra column to it based on a simple condition which basically says whether the value sof another column is equal to a given string or not. I know I can create an UDF and register it and use it th...
<p>You are pretty much there:</p> <pre><code>scala&gt; val df = Seq((1,2), (3,3), (4,5)).toDF("a", "b") scala&gt; df.show +-+-+ |a|b| +-+-+ |1|2| |3|3| |4|5| +-+-+ scala&gt; df.withColumn("New", when($"a" === $"b", "equal").otherwise("not")).show +-+-+-----+ |a|b| New| +-+-+-----+ |1|2| not| |3|3|equal| |4|5| not|...
how to create an extra column in DataFrame based on a simple condition in spark
scala|apache-spark
-1
1,280
1
37,953,626
37,953,626
3
true
2016-06-21T19:56:30.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to create an extra column in DataFrame based on a simple condition in spark<p>I have a dataframe and I'd like to add an extra column to it based on a sim...
38,041,797
How do i change the header of my website when you scroll down?<p>I want so that when a user scrolls down the header changes its background and the header stays at the top of the window. I don't know if this needs javascript or you can do it in css.</p> <p>The example of what i want it too look like is at <a href="http...
<p>you can use this kind of code</p> <pre><code>html: &lt;nav id="header_nav"&gt;nav here&lt;/nav&gt; </code></pre> <p>css:</p> <pre><code>body { height: 1000px; width: 100%; background-color: #F0F0F0; } #header_nav { width: 100%; height: 100px; background-color: #666; position: fixed; ...
How do i change the header of my website when you scroll down?
javascript|html|css
-1
40
2
38,041,898
38,041,898
3
true
2016-06-26T18:31:21.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do i change the header of my website when you scroll down?<p>I want so that when a user scrolls down the header changes its background and the header sta...
38,043,715
How to properly use Bootstrap 3 grid property<p>I am using Bootstrap 3 in few of my projects, especially the container-fluid class to make my page to display properly in all devices automatically. I know the following regarding the col-xx class: xs for &lt; 768px, sm for >- 768px, md >= 992px and lg for >= 1200px. Let ...
<p>Bootstrap has 4 breakpoints:</p> <ol> <li>Phones (&lt;768px)</li> <li>Tablets (≥768px)</li> <li>Desktops (≥992px)</li> <li>Large desktops (≥1200px)</li> </ol> <p>Your code means that you have 2 columns on tablets, desktops and large desktops and 1 column on phones.</p> <p>If you look at the code in bootstrap.css:...
How to properly use Bootstrap 3 grid property
css|twitter-bootstrap
-1
541
1
38,043,784
38,043,784
3
true
2016-06-26T22:17:05.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to properly use Bootstrap 3 grid property<p>I am using Bootstrap 3 in few of my projects, especially the container-fluid class to make my page to display...
37,859,910
What are the differences between Liferay 6.2-ga2 and Liferay 6.2-ga6?<p>I want to migrate from liferay 6.2-GA2 to liferay 6.2-GA6 please kindly let me know what are the steps to be followed and major changes between two versions.</p> <p>Thank you in advance, P.V.B.Raju.</p>
<p>Check the release notes of each release here</p> <p><a href="https://web.liferay.com/community/releases" rel="nofollow">https://web.liferay.com/community/releases</a></p> <p>Also check the blog for GA6. <a href="https://web.liferay.com/web/james.falkner/blog/-/blogs/liferay-6-2-ce-ga6-now-available" rel="nofollow...
What are the differences between Liferay 6.2-ga2 and Liferay 6.2-ga6?
liferay|liferay-6|liferay-6.2
-1
297
1
37,866,091
37,866,091
4
true
2016-06-16T12:56:02.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What are the differences between Liferay 6.2-ga2 and Liferay 6.2-ga6?<p>I want to migrate from liferay 6.2-GA2 to liferay 6.2-GA6 please kindly let me know w...
37,869,206
Check if cell value exists in excel sheet, then get the values of the bottom cells and add it<p>I have different defined category (Column A) in a sheet and these categories are spread across entire data sheet(F3:I14).</p> <p>I want to add value for each category (a, b, c, d, e, f) from cell F3:I14 which is written bel...
<p>For a formula answer use this array formula:</p> <pre><code>=SUM(IF($F$3:$I$14=A2,$F$4:$I$15)) </code></pre> <p>Being an array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode. If done properly then excel will put <code>{}</code> around the formula.</p> <p><a href="h...
Check if cell value exists in excel sheet, then get the values of the bottom cells and add it
vba|excel
-1
270
2
37,869,517
37,869,517
4
true
2016-06-16T20:56:24.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if cell value exists in excel sheet, then get the values of the bottom cells and add it<p>I have different defined category (Column A) in a sheet and t...
37,981,294
What's the meaning of dash when use gcc -x c<p>Run the following command in linux bash:</p> <p><code># echo 'main() { __asm__("xorb %al, %al"); }' | gcc -x c -</code></p> <p><strong>Q1</strong>: What's the meaning of the last <code>-</code> ?</p> <p><strong>Q2</strong>: Whether the <code>-</code> is a parameter of <...
<p><a href="https://stackoverflow.com/questions/1003644/is-it-possible-to-get-gcc-to-read-from-a-pipe">Is it possible to get gcc to read from a pipe?</a></p> <p>The - tells gcc to read from stdin ie. the pipe.</p> <p><a href="https://cmake.org/cmake/help/v3.2/manual/cmake.1.html" rel="nofollow noreferrer">https://cma...
What's the meaning of dash when use gcc -x c
gcc|cmake
-1
318
1
37,981,797
37,981,797
4
true
2016-06-23T02:22:36.547Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What's the meaning of dash when use gcc -x c<p>Run the following command in linux bash:</p> <p><code># echo 'main() { __asm__("xorb %al, %al"); }' | gcc -x ...
38,023,015
SQL DateTime query not executing<p>This query executes flawlessly:</p> <pre><code>public function alter_orders() { return $this-&gt;db-&gt;query("UPDATE `orders` SET `Ready_Date_Time` = '2016-06-02 00:00:00', `Delivery_Date_Time` = '2016-06-01 00:00:00', `Status` = $Status WHERE `orders`.`Order_ID` = $primary_key;");...
<p>You still need to wrap the dates within your query in quotes. Being inside variables doesn't mean that SQL doesn't need them. The variables' values are interpolated into the query before the query is executed and is plain text text as far as MySQL is concerned.</p> <pre><code>public function alter_orders() { $...
SQL DateTime query not executing
php|mysql|sql|codeigniter|datetime
-1
23
1
38,023,026
38,023,026
4
true
2016-06-24T22:34:59.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL DateTime query not executing<p>This query executes flawlessly:</p> <pre><code>public function alter_orders() { return $this-&gt;db-&gt;query("UPDATE `o...
37,891,795
Android Studio App Wont Run through database<p>The app runs, but a particular function wont. Whenever I try to login or Register an account, The Gradle console says it skipped frames and there's too much running. What I am trying to do is take in user information and send it to a database. This is the register activity...
<p>You are probably running a network request on the main thread, that is the thread that is used by the Android Framework for rendering the UI. You need to have some kind of mechanism that does the networking tasks on another thread. <code>AsyncTask</code> is the simplest of them all to implement, and is good for your...
Android Studio App Wont Run through database
java|php|android|json|android-studio
-1
54
1
37,893,608
37,893,608
0
true
2016-06-17T23:36:47.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android Studio App Wont Run through database<p>The app runs, but a particular function wont. Whenever I try to login or Register an account, The Gradle conso...
37,950,782
EXCEL selecting columns according to value of first raw with increasing increment of 1<p>I have a 2 column very long numeric data. Data image is <a href="http://i.stack.imgur.com/ClJf8.jpg" rel="nofollow">here</a>. I am in need of sampling/selecting rows with respect to column A for each integer interval of "1". for ex...
<p>You could use <code>index(match())</code> to do this. Just create a list of integers starting at 1 and ending at whatever your max is. Then, assuming your list is in <code>A1:B27</code> and your list of INTs starts at <code>D1</code>, then in <code>E1</code>:</p> <pre><code>=INDEX(B1:B27,MATCH(D1,A1:A27,1),1) </cod...
EXCEL selecting columns according to value of first raw with increasing increment of 1
excel|macros|selection|intervals
-1
27
1
37,951,784
37,951,784
0
true
2016-06-21T17:22:15.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: EXCEL selecting columns according to value of first raw with increasing increment of 1<p>I have a 2 column very long numeric data. Data image is <a href="htt...
37,963,704
sass list to multiple selector with ','<p>i got a headache</p> <p>i tried find a solution, but there has nothing for like this problem.</p> <p>my code almost like below</p> <pre><code>@mixin test(){ &amp;:after { content: 'yes'; } } $selectors:(); @for $i from 1 through 3 { $selectors: append($selectors, ...
<p><strong>SASS</strong></p> <pre><code>%test{ &amp;:after { content: 'yes'; } } @for $i from 1 through 3 { h#{$i} { @extend %test; } } </code></pre> <p><strong>OUTPUT CSS</strong></p> <pre><code>h1:after, h2:after, h3:after { content: 'yes'; } </code></pre> <hr> <p><strong>UPDATE</strong></p> <p>If...
sass list to multiple selector with ','
sass
-1
563
1
37,965,834
37,965,834
0
true
2016-06-22T09:19:53.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: sass list to multiple selector with ','<p>i got a headache</p> <p>i tried find a solution, but there has nothing for like this problem.</p> <p>my code almo...
37,985,015
How to get id from a list?<p>I have a list, i want to select a option from the list and then send the id to a servlet, then insert the id in database:</p> <p>This is the jsp where i send the data name, </p> <pre><code>&lt;label class="etiqueta"&gt;Costumer:&lt;/label&gt; &lt;% Conexion conex = new Conexion(); St...
<p>Make sure the value you want to submit is the value of the option <code>value='"+id+"'</code></p> <pre><code>while(resultado.next()) { String name= resultado.getString("name"); int id= resultado.getInt("id"); out.println("&lt;option value='"+id+"'&gt;"+name+"&lt;/option&gt;"); } </code></pre> <p>On the servlet ...
How to get id from a list?
java|mysql|jsp|servlets
-1
793
2
37,985,365
37,985,365
0
true
2016-06-23T07:33:50.683Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get id from a list?<p>I have a list, i want to select a option from the list and then send the id to a servlet, then insert the id in database:</p> ...
38,021,862
MS Access SQL code check<p>I'm working on some SQL code, but not proficient with MS Access so wanted to make sure it would behave like I think it should.</p> <p>What I'm trying to do is get a count and the hour in military time for a set of records between june 1, 2015 to may 31, 2016. I want to know how many records...
<p>Yes your query is fine and it will do what you want it to do. I tend to prefer count('x'), and you can lose some of the parenthesis but your query will work as is.</p> <p>Or use this:</p> <pre><code>SELECT DatePart("h",[CentralTime]) AS Expr1, Count('x') AS Expr2 FROM ShipandGetCalls_Master WHERE ShipandGetCalls_M...
MS Access SQL code check
sql|ms-access
-1
262
1
38,022,036
38,022,036
0
true
2016-06-24T20:46:18.413Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MS Access SQL code check<p>I'm working on some SQL code, but not proficient with MS Access so wanted to make sure it would behave like I think it should.</p>...
38,040,981
Event Bus and Asynchronism in receptors execution<p>I challenged myself to design and implement (in Java, but still at the design level) of an Event Bus, for multithreading. There is no serious usage of this system planned in the future, the only interest is in the challenge itself and its optimization.</p> <p>Event B...
<p>Between the two, you need to pick and choose what your design requirements need.</p> <p>For option 1:</p> <p><strong>Pros:</strong> </p> <ul> <li>Sequential designs are (in my experience) easier to design and implement</li> <li>Easier to control and understand (in that you can implement even priorities as a side ...
Event Bus and Asynchronism in receptors execution
multithreading|performance|memory|optimization
-1
57
1
38,047,254
38,047,254
0
true
2016-06-26T17:03:16.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Event Bus and Asynchronism in receptors execution<p>I challenged myself to design and implement (in Java, but still at the design level) of an Event Bus, for...
38,048,677
What does the value of the column 'roles' mean in whois result<p>When I check up an IP with whois tool, I'll get the result with one of the columns named 'roles'. The value of the 'roles' column can be 'abuse', 'technical' or 'administrative'. It's easy to understand the meaning of 'technical' and 'administrative', but...
<p><code>role</code> may be used to determine the type of contact that the node describes. There are several types of contacts, such as: administrative, technical, owner, etc.</p> <p>The term "abuse" refers to a recipient that is intended to report complaints about possible illegal use of that IP address. For example,...
What does the value of the column 'roles' mean in whois result
whois
-1
32
1
38,049,047
38,049,047
0
true
2016-06-27T08:01:02.440Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What does the value of the column 'roles' mean in whois result<p>When I check up an IP with whois tool, I'll get the result with one of the columns named 'ro...
37,858,143
How to get total of my cart in Volusion<p>I am trying to create my own template to Volusion shop. On the masterpage i've got "Total" field which is sum of prices of all products in my cart. How can i get this value in any way? Maybe some javascript?</p>
<p>Add this to wherever you want the cart total to show.</p> <pre><code>&lt;div id ="mini_cart_summary"&gt;&lt;/div&gt; </code></pre> <p>Assuming you will be using the Volusion soft cart functionality you would need to add the following to your template file or create a separate JavaScript file and call it from your ...
How to get total of my cart in Volusion
javascript|html|cart|volusion
-1
279
2
37,870,914
37,870,914
1
true
2016-06-16T11:41:10.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get total of my cart in Volusion<p>I am trying to create my own template to Volusion shop. On the masterpage i've got "Total" field which is sum of pr...
37,901,688
carrierwave multiple file uploads and storing<p>I want to do a multiple file upload with carrierwave.</p> <p>When I upload I transcode a movie in sveral formats .mp4 .mov ... </p> <p>Now I want to upload all those and store them in DB?</p> <p>how can I save versions of a file with carrierwave?</p> <p>thanks</p>
<p>Add the relevant attributes to your model and introduce a before_save callback.</p> <pre><code>class Video &lt; ActiveRecord::Base mount_uploader :video, VideoUploader before_save :update_video_attributes private def update_video_attributes if video.present? &amp;&amp; video_changed? self.conten...
carrierwave multiple file uploads and storing
ruby-on-rails|ruby|ruby-on-rails-4|carrierwave
-1
268
1
37,906,399
37,906,399
1
true
2016-06-18T21:12:54.473Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: carrierwave multiple file uploads and storing<p>I want to do a multiple file upload with carrierwave.</p> <p>When I upload I transcode a movie in sveral for...
37,907,697
VB .NET Automation of selecting options in menu strip of external program<p>I am trying to automate an external application using VB .NET. The external application was written in VB .NET and uses win forms. Using Spy++, I can edit text fields and press buttons etc. However, I am unsure how to approach selecting an item...
<p>In WinForms, there are two different types of menus. The older MainMenu control implemented native Win32-style menus, the ones you can manipulate with <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms646977.aspx" rel="nofollow">standard Windows API functions</a>. The newer MenuStrip control was a ...
VB .NET Automation of selecting options in menu strip of external program
vb.net|winapi
-1
552
1
37,907,808
37,907,808
1
true
2016-06-19T13:22:25.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VB .NET Automation of selecting options in menu strip of external program<p>I am trying to automate an external application using VB .NET. The external appli...
37,928,684
node.js http.get xml is blank<p><a href="http://www.hmrc.gov.uk/softwaredevelopers/rates/exrates-monthly-0616.xml" rel="nofollow">http://www.hmrc.gov.uk/softwaredevelopers/rates/exrates-monthly-0616.xml</a></p> <p>I'm trying to get the xml from the above hrmc website url into node.js (I intend to parse it into json la...
<p>It works for me:</p> <pre><code>var http = require('http'); http.get('http://www.hmrc.gov.uk/softwaredevelopers/rates/exrates-monthly-0616.xml', (response) =&gt; { var xml = ''; response.on('data', function (chunk) { xml += chunk; }); response.on('end', function() { console.l...
node.js http.get xml is blank
xml|node.js
-1
42
1
37,929,668
37,929,668
1
true
2016-06-20T17:43:10.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: node.js http.get xml is blank<p><a href="http://www.hmrc.gov.uk/softwaredevelopers/rates/exrates-monthly-0616.xml" rel="nofollow">http://www.hmrc.gov.uk/soft...
37,924,291
Finding complex root in Fortran<p>i found some sources where algorithms are suggested to determine complex roots in general analytic functions (no polynomials). E.g. "A Fortran program for solving a nonlinear equation by Muller's method", written by I. Barrodale and K. B. Wilson. Unfortunately the code is only availabl...
<p>For the ones who are interested. I took the one from I. Barrodale and K. B. Wilson. Since the article is free to read online, I wanna post the code here. It is by far the fastest and most reliable I found. To use it, define a subroutine calcf(x,f). f is the function value for x. x and f are complex. </p> <p>for mor...
Finding complex root in Fortran
fortran|complex-numbers
-1
1,545
2
37,945,007
37,945,007
1
true
2016-06-20T13:50:14.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Finding complex root in Fortran<p>i found some sources where algorithms are suggested to determine complex roots in general analytic functions (no polynomial...
37,960,452
Change button text color to a hexavalue<p>I have 2 buttons (button-A and button-B). When I click button-A, I want to change the text color of Button-B but I want to give it in a hexadecimal value. I have seen a lot of links for hexadecimal value font color but I am unable to figure out how to use. I want to change the ...
<p>In Appdelegate file after import statement add this</p> <pre><code>extension UIColor { // Usage: UIColor(hex: 0xFC0ACE) convenience init(hex: Int) { self.init(hex: hex, alpha: 1) } // Usage: UIColor(hex: 0xFC0ACE, alpha: 0.25) convenience init(hex: Int, alpha: Double) { self.ini...
Change button text color to a hexavalue
ios|swift|uibutton
-1
816
2
37,960,629
37,960,629
1
true
2016-06-22T06:45:15.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change button text color to a hexavalue<p>I have 2 buttons (button-A and button-B). When I click button-A, I want to change the text color of Button-B but I ...
37,971,829
Node-RED get settings value in a function<p>I want to use the Function node to get a file path from settings. Is there an easy way to do this? As an example, I want to access <code>userDir</code>.</p> <p>There are multiple workarounds. I could write my own node that returns the setting value. I can add node-red to the...
<p>No, the settings are not exposed to the Function node, only the values in the functionGlobalContext.</p> <p>For the majority of users this is not needed, but if you can come up with a compelling use case post it to the mailing list and it will be considered as a feature request.</p> <p>This has been discussed on t...
Node-RED get settings value in a function
node-red
-1
583
1
37,974,287
37,974,287
1
true
2016-06-22T15:02:28.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Node-RED get settings value in a function<p>I want to use the Function node to get a file path from settings. Is there an easy way to do this? As an example,...
37,984,862
From highest to smallest loop<p>Hello i need help or how to make work loop from biggest to smallest variable.</p> <p>I have 5 peoples witch have attribute speed (speed1, speed2... speed5) and i am doing a for loop witch will be 6 times and now i want inside that loop do some action on each people but its have to be fr...
<p>Just change value $a, and change ++ to --</p> <pre><code> for($a = 6; $a &gt; 0; $a--){ // 5th man code // 4th man code // third man code // second man code // first man code } </code></pre>
From highest to smallest loop
php
-1
50
1
37,984,955
37,984,955
1
true
2016-06-23T07:26:00.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: From highest to smallest loop<p>Hello i need help or how to make work loop from biggest to smallest variable.</p> <p>I have 5 peoples witch have attribute s...
37,978,233
Protractor test<p>I need some help. This is fragment of my code, i can't return boolean from it("present or not") , so everything is working incorrectly. where I was mistaken?</p> <pre><code>describe("first TEST", function () { var boolean, parsingAllProfiles, getRandomProfile, randomProfile; it("present or ...
<p>I'm not sure exactly what you are trying to do with the boolean, but here's what it might look like in a test with chained promises.</p> <pre><code>describe("first TEST", function () { var boolean, parsingAllProfiles, getRandomProfile, randomProfile; it("present or not", function () { freelan.notF...
Protractor test
javascript|protractor|automated-tests
-1
56
2
37,995,592
37,995,592
1
true
2016-06-22T21:05:30.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Protractor test<p>I need some help. This is fragment of my code, i can't return boolean from it("present or not") , so everything is working incorrectly. whe...
38,021,746
Unable to locate requested file codeigniter centos<p>I can't load a view on my CentOS Server, i edited htaccess file to remove the index.php on the url. this is the code of controller to load the view:</p> <pre><code>&lt;?php defined('BASEPATH') OR exit('No direct script access allowed'); class Login extends CI_Con...
<p>Hard to say. My inital guess would be the capitalization of the view 'Login.php'. Your local filesystem may be case insensitive while CentOS may be case sensitive.</p>
Unable to locate requested file codeigniter centos
php|.htaccess|codeigniter|implementation|centos5
-1
50
1
38,021,840
38,021,840
1
true
2016-06-24T20:37:32.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to locate requested file codeigniter centos<p>I can't load a view on my CentOS Server, i edited htaccess file to remove the index.php on the url. this...
38,045,125
What is the best way for an user to enter their 'city' in a web app?<p>Apologies if the question is a bit vague. This is what I want to achieve in my web application, which can have users from anywhere.</p> <p>I want to be able to find the proximity of two users, from their cities. The application is not asking for an...
<p>There are lots of online plugins for lists of cities. Look into: <a href="http://www.jqueryscript.net/form/City-Autocomplete-Plugin-with-jQuery-Google-Places-API.html" rel="nofollow">http://www.jqueryscript.net/form/City-Autocomplete-Plugin-with-jQuery-Google-Places-API.html</a></p> <p>Also, for the distance approx...
What is the best way for an user to enter their 'city' in a web app?
api|google-maps|web-applications|geolocation
-1
79
1
38,045,164
38,045,164
1
true
2016-06-27T02:34:03.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the best way for an user to enter their 'city' in a web app?<p>Apologies if the question is a bit vague. This is what I want to achieve in my web app...
37,952,798
Concat String and convert them to &str<pre><code>fn lyrics_more_bottles(song_template: &amp;mut String, number: i32) { let mut template_partials = HashMap::new(); let mut start_num = number.to_string(); let mut remaining_num = (number - 1).to_string(); template_partials.insert("start", start_num + " bo...
<p><strong>If</strong> you need to return the <code>&amp;str</code> from the function, you are out of luck, see <a href="https://stackoverflow.com/questions/29428227/return-local-string-as-a-slice-str">Return local String as a slice (&amp;str)</a>.</p> <p>If you <em>just</em> need to put the slices into a <code>HashMa...
Concat String and convert them to &str
string|rust|concat
-1
546
1
37,953,074
37,953,074
2
true
2016-06-21T19:15:43.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Concat String and convert them to &str<pre><code>fn lyrics_more_bottles(song_template: &amp;mut String, number: i32) { let mut template_partials = HashMa...
37,886,533
Can Bluemix environment be replicated on developer laptops?<p>Can Bluemix environment with Liberty be replicated on developer laptops for offline development? Will I be able to run Bluemix local with Openstack on a quad core i5?</p>
<p>You can run Cloud Foundry in a VM on your laptop using <a href="https://github.com/cloudfoundry/bosh-lite" rel="nofollow">bosh-lite</a>. You could also install the <a href="https://github.com/cloudfoundry/ibm-websphere-liberty-buildpack" rel="nofollow">open source Liberty buildpack</a> into this local CF with the <a...
Can Bluemix environment be replicated on developer laptops?
ibm-cloud
-1
55
3
37,888,408
37,888,408
3
true
2016-06-17T16:44:26.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can Bluemix environment be replicated on developer laptops?<p>Can Bluemix environment with Liberty be replicated on developer laptops for offline development...
37,957,123
Lua: Making a collision system in a simple shooter and im having issues with removing the enemy object<p>I'm making a simple shooter in lua using love2d. For some reason when i launch the game the program thinks the enemy has been shot and doesn't spawn it. I think theres an issue on line 80. It seems to think enemy is...
<p>Currently, your code does </p> <pre><code>if (CheckCollision) then </code></pre> <p>If you don't provide any parameters, it will check if the variable 'CheckCollision' exists. In this case, it does because you have declared it as a function on line 53, so every update 'enemy' will be set to nil.</p> <pre><code>i...
Lua: Making a collision system in a simple shooter and im having issues with removing the enemy object
lua|collision-detection|love2d
-1
546
2
37,961,042
37,961,042
3
true
2016-06-22T01:30:24.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Lua: Making a collision system in a simple shooter and im having issues with removing the enemy object<p>I'm making a simple shooter in lua using love2d. For...
38,019,399
pyspark: remove rows that have duplicated values for a given field<p>I have the following data frame:</p> <pre><code>field_A | field_B | field_C | field_D cat | 12 | black | 11 dog | 128 | white | 19 dog | 35 | yellow | 20 dog | 21 | brown | 4 bird | 10 | blue | 7...
<p>Create data</p> <pre><code>rdd = sc.parallelize([(0,1), (0,10), (0,20), (1,2), (2,1), (3,5), (3,18), (4,15), (5,18)]) t = sqlContext.createDataFrame(rdd, ["id", "score"]) t.collect() </code></pre> <blockquote> <p>[Row(id=0, score=1), Row(id=0, score=10), Row(id=0, score=20), Row(id=1, score=2), Row(i...
pyspark: remove rows that have duplicated values for a given field
python|apache-spark|pyspark|spark-dataframe
-1
803
1
38,019,700
38,019,700
4
true
2016-06-24T17:53:04.143Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pyspark: remove rows that have duplicated values for a given field<p>I have the following data frame:</p> <pre><code>field_A | field_B | field_C | field_D ...
38,046,150
Access url parameter from angular js<p>How to access header values in angular js controller. <a href="https://i.stack.imgur.com/WbReq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WbReq.png" alt="enter image description here"></a></p> <p>Need to access the value of 'p'</p>
<p><a href="https://docs.angularjs.org/api/ng/service/$location" rel="nofollow">https://docs.angularjs.org/api/ng/service/$location</a> </p> <p><code>$location.search()</code> will give you an object containing a key named 'p'</p>
Access url parameter from angular js
angularjs|url-parameters
-1
70
2
38,046,197
38,046,197
-2
true
2016-06-27T04:52:34.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Access url parameter from angular js<p>How to access header values in angular js controller. <a href="https://i.stack.imgur.com/WbReq.png" rel="nofollow nore...
37,866,465
"Save result buffer" and "Visualize tree" via python-weka-wrapper-0.3.8?<p>Is there a way to achieve "Save result buffer" and "Visualize tree" options that are available in the weka tool, <em>through weka-python-wrapper also</em>? (As the weka tool does not provide scripting options). Not able to find it in the python-...
<p>The <a href="https://github.com/fracpete/python-weka-wrapper" rel="nofollow">python-weka-wrapper</a> library does not come with a GUI, hence the question is a bit misplaced. However, this is covered in the examples section of the python-weka-wrapper documentation (<a href="http://pythonhosted.org/python-weka-wrapper...
"Save result buffer" and "Visualize tree" via python-weka-wrapper-0.3.8?
python|weka
-1
302
1
37,871,966
37,871,966
0
true
2016-06-16T18:09:56.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: "Save result buffer" and "Visualize tree" via python-weka-wrapper-0.3.8?<p>Is there a way to achieve "Save result buffer" and "Visualize tree" options that a...
38,040,173
Doesn't work ShowWindow Run As Administrator<p>Iam writing a program for hide target program , actually its working but , when I run the program as administrator , showWindow function doesn't work.How can I solve this problem?</p> <pre><code> private void button1_Click(object sender, EventArgs e) { ...
<p>This is due to <a href="https://en.wikipedia.org/wiki/User_Interface_Privilege_Isolation" rel="nofollow">User Interface Privilege Isolation</a>. Because the window is in a higher privilege process, your call is ignored. </p> <p>To control an elevated process, run your own process elevated.</p>
Doesn't work ShowWindow Run As Administrator
c#|showwindow
-1
260
1
38,040,552
38,040,552
0
true
2016-06-26T15:38:18.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Doesn't work ShowWindow Run As Administrator<p>Iam writing a program for hide target program , actually its working but , when I run the program as administ...
38,046,806
how to add dynamically populated cost to a div using javascript<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>/* need to populate cost dynamically from a selection ex radio button...
<p>If I understand you correctly, the problem is that you try to put the html after the <code>return</code> statement. Well, once you call <code>return</code> the code below never will execute, so, move this code above the <code>return</code> statement.</p> <blockquote> <p>When a return statement is called in a func...
how to add dynamically populated cost to a div using javascript
javascript|html
-1
32
2
38,046,937
38,046,937
0
true
2016-06-27T06:01:31.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to add dynamically populated cost to a div using javascript<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false...
37,875,937
How to deploy a java application that runs as server over internet?<p>i want to host a java program that run as a server over internet accepting TCP UDP connections over internet. We have a machine with a fixed IP. It (Java program) also handles database(Mysql) that resides on same machine. My question is that do i nee...
<p>There are many ways you can go with this. It all depends on what you want really. </p> <p>If you are serving a website, I strongly suggest a framework to handle all of your requests and website logic. A good choice would be Play Framework (for both Java and Scala):</p> <ul> <li><a href="https://www.playframework.c...
How to deploy a java application that runs as server over internet?
java|mysql|server
-1
286
1
37,876,243
37,876,243
1
true
2016-06-17T07:46:47.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to deploy a java application that runs as server over internet?<p>i want to host a java program that run as a server over internet accepting TCP UDP conn...
37,887,884
ASP.NET MVC + AngularJS + PiranhaCMS + Foundation for Apps routing issue<p>I have been working on this issue for longer than I'd like to admit. I have read everything I could find closely resembling my issue, and have come up empty handed.</p> <p>The problem I am having is getting my views to show WITH _Layout.cshtml....
<p>In /home/index.cshtml</p> <p>You state that you want the Layout to be null. This literally says that you don't want a layout used with this file. If you have a _ViewStart.cshtml it most likely will be pointing to ~/Views/Shared/_Layout.cshtml by default. If not you need to make </p> <pre><code>Layout = "&lt;path&g...
ASP.NET MVC + AngularJS + PiranhaCMS + Foundation for Apps routing issue
angularjs|asp.net-mvc-4|angular-ui-router|zurb-foundation|piranha-cms
-1
285
1
37,889,537
37,889,537
1
true
2016-06-17T18:14:37.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ASP.NET MVC + AngularJS + PiranhaCMS + Foundation for Apps routing issue<p>I have been working on this issue for longer than I'd like to admit. I have read e...
37,906,924
Do i need to check whether the phone is in offline mode in every time a new activity is called?<p>I have written a code to check whether the phone is currently online or not. But my question is do i need to check whether the phone is in offline mode in every time a new activity is called? if yes then what is the better...
<blockquote> <p>Is there any oops technique so that i can access this method from other activity?</p> </blockquote> <p>You can create a Utility class, and declare this method isOnline() as a static function over there (protected or public depending on your package design).</p> <pre><code>protected static boolean ...
Do i need to check whether the phone is in offline mode in every time a new activity is called?
java|android|oop
-1
59
1
37,907,048
37,907,048
1
true
2016-06-19T11:50:24.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Do i need to check whether the phone is in offline mode in every time a new activity is called?<p>I have written a code to check whether the phone is current...
37,987,135
compare and swap using atomic_compare_exchange_weak<p>In this code is std::swap thread safe so it can be called from two execution threads at the same time or do I need use atomic_compare_exchange_weak() instead of swap()?</p> <p>How do I know if this will work on all CPUs? I am happy if it just works on Intel CPUs.</...
<blockquote> <p>is <code>std::swap</code> thread safe so it can be called from two execution threads at the same time </p> </blockquote> <p><code>std::swap</code> is thread-safe as long as different threads pass different objects into it. Otherwise a race condition arises.</p>
compare and swap using atomic_compare_exchange_weak
multithreading|c++11
-1
64
1
37,990,569
37,990,569
1
true
2016-06-23T09:10:17.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: compare and swap using atomic_compare_exchange_weak<p>In this code is std::swap thread safe so it can be called from two execution threads at the same time o...
37,990,340
Removing spaces from a selected mysql field using PHP<p>I need to select a field in mysql and put it in a hidden text field so i can select it into another file. The problem is, the name of the field has spaces in it, so it gets a little buggy. It's something like this:</p> <pre><code>$GetArea = $_GET['area']; </code>...
<p>To answer your direct queston of how to <strong>remove</strong> spaces from a variable: Use Regex,</p> <pre><code>$GetArea = $_GET['area']; /// = Area 123. $GetArea = preg_replace("/\s+/","",$_GET['area']); /// = Area123 </code></pre> <p>View <a href="https://regex101.com/r/dI0qL4/1" rel="nofollow">a re...
Removing spaces from a selected mysql field using PHP
php|html|mysql
-1
51
2
37,990,754
37,990,754
1
true
2016-06-23T11:28:13.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Removing spaces from a selected mysql field using PHP<p>I need to select a field in mysql and put it in a hidden text field so i can select it into another f...
38,019,856
Angularjs $http not returning object on promise<p>I am working with angularjs with angular material but it is not returning object from $http my full code pen is at <a href="http://codepen.io/milindsaraswala/pen/rLjLMX" rel="nofollow">http://codepen.io/milindsaraswala/pen/rLjLMX</a></p> <pre><code>&lt;md-autocomplete ...
<p>The function <code>loadAll()</code> needs to return a promise.</p> <pre><code> function loadAll() { var deferred = $q.defer(); var url = "http://webdev.kuwaitairways.com/_api/lists/getbytitle('KAC_Stations')/items?$select=Id,City_Code,City_Name_EN&amp;$filter=Active eq 1&amp;$orderby=City_Name_EN asc...
Angularjs $http not returning object on promise
javascript|css|angularjs|sharepoint-2013|angular-material
-1
66
1
38,020,190
38,020,190
1
true
2016-06-24T18:23:42.877Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angularjs $http not returning object on promise<p>I am working with angularjs with angular material but it is not returning object from $http my full code pe...
38,022,543
How to succesfully implement a OnPostExecute method inside my doInBackground method?<p>Mentioned below is my JSONTask.java class:</p> <pre><code>public class JSONTask extends AsyncTask&lt;String,String,String&gt; { public TextView tvData; @Override protected String doInBackground(String... params) { BufferedRea...
<p>The problem as it semms is that your TextView is null. Maybe, you don'set this field from fragment. Pr, you create this asynctask in fragment's on create and it fails right away so quick that view isn't inflated yet. Try to surround it by try-catch and see in debugger if your textview is null</p>
How to succesfully implement a OnPostExecute method inside my doInBackground method?
android
-1
31
2
38,022,633
38,022,633
1
true
2016-06-24T21:46:03.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to succesfully implement a OnPostExecute method inside my doInBackground method?<p>Mentioned below is my JSONTask.java class:</p> <pre><code>public clas...
38,032,549
How big is cocoapods now? (jun 2016)<p>trying to install cocoapods but I'm already at almost an hour of downloading and 338 mb so far. How big is the completed download as of 2016? Here's what I know:</p> <pre><code>Re-creating CocoaPods due to major version update. Setting up CocoaPods master repo </code></pre> <p>T...
<p><code> /Users/Name/.cocoapods/repos &gt;du -h -d 1 780M ./master </code></p>
How big is cocoapods now? (jun 2016)
rubygems|cocoapods
-1
71
1
38,046,657
38,046,657
1
true
2016-06-25T20:11:52.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How big is cocoapods now? (jun 2016)<p>trying to install cocoapods but I'm already at almost an hour of downloading and 338 mb so far. How big is the complet...
38,024,213
Fully scalable website with micro-applications<p>I'm in the process of designing a cloud deployed website for a new solution my company is looking to provide. I have been attempting to answer a few questions and haven't had any luck, so when in rome.</p> <p>First, I don't want the website to be stuck to any one partic...
<p>Sounds like your well and truly over engineering this beast. </p> <p>You may take on such an architecture for a HUGE build with many dev teams all working separately. Small agile team, the above would create so much overhead in boilerplate and brain ache in context switching between each "app" </p> <p>Micro-servi...
Fully scalable website with micro-applications
rest|reactjs|redux|react-router|scalability
-1
64
1
38,101,236
38,101,236
1
true
2016-06-25T01:48:37.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Fully scalable website with micro-applications<p>I'm in the process of designing a cloud deployed website for a new solution my company is looking to provide...
37,858,452
EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, sub code=0x0). error while making queue<p>I made Queue using list for practicing.</p> <p>When I use peek([Int]) and remove([Int])</p> <p>Xcode shows</p> <blockquote> <blockquote> <p>fatal error: Index out of range</p> </blockquote> </blockquote> <p>I made removeItem...
<p>There are a couple of problems.</p> <p>One is that you can't use a subscript to append an item to an empty array. The second is that a <code>var</code> parameter only affects mutability within the method (and is being deprecated).</p> <p>To get what I think you want, you need to change the method and the call.</p>...
EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, sub code=0x0). error while making queue
swift
-1
74
1
37,859,632
37,859,632
2
true
2016-06-16T11:54:12.270Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, sub code=0x0). error while making queue<p>I made Queue using list for practicing.</p> <p>When I use peek([Int]) an...
37,875,637
Excel find string in string in range return data in corresponding column<p>The Excel thingy again. ;-)</p> <p>I have columns like this:</p> <pre><code>A B C UserID Name Org_Name 1 Brian Green Susan Red 2 Niels Red Susan Blue 3 Susan Yellow Brian Green 4 ...
<p>Formula for FoundID column:</p> <pre><code>=INDEX($A$2:$A$5,MATCH(C2,$B$2:$B$5,0)) </code></pre> <p>Formula for FoundName column:</p> <pre><code>=INDEX($B$2:$B$5,MATCH(C2,$B$2:$B$5,0)) </code></pre> <p>Adjust the end row as required (the 5s in both formulas)</p>
Excel find string in string in range return data in corresponding column
excel
-1
32
1
37,876,059
37,876,059
2
true
2016-06-17T07:30:45.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Excel find string in string in range return data in corresponding column<p>The Excel thingy again. ;-)</p> <p>I have columns like this:</p> <pre><code>A ...
37,911,344
SQLite give me an error near "CREATE": syntax error (code 1)<p>I create DbManger Class to handle Sqlite database Operation,i try to insert value in database it give an error</p> <blockquote> <p>E/SQLiteDatabase(6729): android.database.sqlite.SQLiteException: near "CREATE": syntax error (code 1): , while compiling: I...
<p>The issues seems to be where you call <code>ourDatabase.insert</code>, you pass the query string in the place of a table name. What do you hope to achieve with this line: <code>return ourDatabase.insert(CREATE_PRO, null, cv);</code>?</p> <p>Change the line to :</p> <pre><code>return ourDatabase.insert(TABLE_INFO, ...
SQLite give me an error near "CREATE": syntax error (code 1)
android|sqlite|android-sqlite
-1
2,055
1
37,911,460
37,911,460
2
true
2016-06-19T20:06:56.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQLite give me an error near "CREATE": syntax error (code 1)<p>I create DbManger Class to handle Sqlite database Operation,i try to insert value in database ...
37,925,668
C# Call a file from a button click?<p>I have a <code>Form</code> and a <code>Class: Form1</code> &amp; <code>Timer</code></p> <p>In Form1 I have a button that looks like this</p> <pre><code>public void browseSoundToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog dialog1 = new OpenFileDialog(); ...
<p>In your example, dialog1 needs to be declared at the module level. You declared it within the browseSoundToolStripMenuItem_Click() method, so dialog1 only has scope for that method.</p> <p>Move this line:</p> <pre><code>OpenFileDialog dialog1 = new OpenFileDialog(); </code></pre> <p>to the top of the form.</p>
C# Call a file from a button click?
c#
-1
70
3
37,925,783
37,925,783
2
true
2016-06-20T14:57:40.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# Call a file from a button click?<p>I have a <code>Form</code> and a <code>Class: Form1</code> &amp; <code>Timer</code></p> <p>In Form1 I have a button th...
38,030,692
Finding keys in string enclosed with [[ ]]<p>I have a string which has some keys between [[]].</p> <pre><code> string s = "&lt;p&gt;Hi [[USER]],&lt;br/&gt;How are you doing&lt;br/&gt;Regards,&lt;br/&gt;[[SENDER]]&lt;/p&gt;"; </code></pre> <p>I want to first fetch the key names USER and SENDER in a list which i am tyr...
<p>It seems you need to escape '[':</p> <pre><code>string s = "&lt;p&gt;Hi [[USER]],&lt;br/&gt;How are you doing&lt;br/&gt;Regards,&lt;br/&gt;[[SENDER]]&lt;/p&gt;"; var keys = new List&lt;string&gt;(); foreach (Match match in Regex.Matches(s, @"\[\[(.*?)]]")) { keys.Add(match.Value.Trim('[').Trim(']')); } </code>...
Finding keys in string enclosed with [[ ]]
c#|regex
-1
79
3
38,030,756
38,030,756
2
true
2016-06-25T16:45:13.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Finding keys in string enclosed with [[ ]]<p>I have a string which has some keys between [[]].</p> <pre><code> string s = "&lt;p&gt;Hi [[USER]],&lt;br/&gt;H...
38,039,544
Why is my method not being invoked by variable name<p>When I invoke a method through a variable name i keep getting </p> <pre><code>TypeError: window[$hello] is not a function </code></pre> <p>I have been reading other posts about this in stack overflow, but its doesn't seem to be working on my code. I am not sure wh...
<p>Your <code>hello()</code> function is local to the <code>Actions()</code> function, and therefore it won't be visible on the <code>window</code> object. Only global functions are on <code>window</code>.</p> <p>You can use your own object for a similar effect:</p> <pre><code>function Actions(){ var functions =...
Why is my method not being invoked by variable name
javascript
-1
32
1
38,039,557
38,039,557
2
true
2016-06-26T14:34:00.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is my method not being invoked by variable name<p>When I invoke a method through a variable name i keep getting </p> <pre><code>TypeError: window[$hello...
38,051,446
OSPF stopped in Exstart state - Port channel<p>2 nodes are connected using port channel. Initially OSPF settled in two nodes. When I shut and no shut the port channel interface, OSPF in 1st node is stuck in EXSTART state. In 2 nd node, OSPF is in FULL state because it started receiving hello packets from 1st node withi...
<p>MTU mismatch could be the primary cause for an OSPF router to be in EXSTART state. But as you mentioned, you have already verified the MTU values on both interfaces, try to take ospf debug logs on Router which is stuck in EXSTART state.</p> <p>It could be a bug with respect to device. Check if the issue replicates...
OSPF stopped in Exstart state - Port channel
networking|ospf
-1
313
1
38,070,146
38,070,146
-1
true
2016-06-27T10:20:31.067Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: OSPF stopped in Exstart state - Port channel<p>2 nodes are connected using port channel. Initially OSPF settled in two nodes. When I shut and no shut the por...
37,865,782
How can i get some packages in deb files?<p>im wondering if is possible to get the following packages in a deb files </p> <p>asciidoc autoconf avahi-daemon bison build-essential ccache clang clang-3.7 cmake docbook-website emacs flex freeglut3 freeglut3:i386 g++-multilib gcc-5-base gcc-5-base:i386 gcc-multilib git lib...
<p>Yes, it's possible. Use:</p> <pre><code>sudo apt-get clean sudo apt-get update sudo apt-get --download-only install asciidoc autoconf avahi-daemon bison build-essential ccache clang clang-3.7 cmake docbook-website emacs flex freeglut3 freeglut3:i386 g++-multilib gcc-5-base gcc-5-base:i386 gcc-multilib git libc6 lib...
How can i get some packages in deb files?
linux|ubuntu
-1
69
1
37,865,864
37,865,864
0
true
2016-06-16T17:29:31.407Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i get some packages in deb files?<p>im wondering if is possible to get the following packages in a deb files </p> <p>asciidoc autoconf avahi-daemon ...
37,904,428
when i use ajax post json to web server(Nodejs), but the web server can't receive the data from client<p>the client code :</p> <pre><code>self.getjson = function () { var timeinfo = new Object(); timeinfo.time = self.time; timeinfo.address = self.address; timeinfo.info = self.info; return JSON.str...
<p>From <a href="http://expressjs.com/en/4x/api.html#req.body" rel="nofollow">the documentation</a>:</p> <blockquote> <p><strong><code>req.body</code></strong></p> <p>Contains key-value pairs of data submitted in the request body. <strong>By default, it is <code>undefined</code>, and is populated when you use b...
when i use ajax post json to web server(Nodejs), but the web server can't receive the data from client
javascript|json|ajax|node.js
-1
64
1
37,904,475
37,904,475
0
true
2016-06-19T06:03:50.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: when i use ajax post json to web server(Nodejs), but the web server can't receive the data from client<p>the client code :</p> <pre><code>self.getjson = fun...
37,863,103
Working with dynamically generated children<p><a href="https://jsfiddle.net/69z2wepo/45826/" rel="nofollow">jsfiddle</a></p> <pre><code> var model = ["abc","b","c"]; var RawEditableField = React.createClass({ propTypes: { value: React.PropTypes.string.isRequired, changeEvent: React.PropTypes.func.isRequir...
<p>To track the state of children add a ref to each one and grab it off: <code>this.refs</code> </p> <pre><code>&lt;input type="text" ref={this.props.keyName} key={this.props.keyName} value={this.props.value} onChange={this.props.changeEvent}/&gt; </code></pre> <p>You can grab that input in a Parent component now by ...
Working with dynamically generated children
reactjs
-1
57
1
37,863,477
37,863,477
1
true
2016-06-16T15:12:54.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Working with dynamically generated children<p><a href="https://jsfiddle.net/69z2wepo/45826/" rel="nofollow">jsfiddle</a></p> <pre><code> var model = ["abc...
37,873,803
laravel set class variable value<p>i'm going to store data through excel-sheet to database every thing is going well but i want to add user->ID individually in <strong>Item</strong> class there is field in item class <strong>Userid</strong></p> <pre><code>public function import() { Excel::load(Input::file(...
<p>I don't know the context of this import function but <code>$this</code> doesn't appear to have anything to do with the <code>Item</code> you are creating so why are you trying to set <code>$this-&gt;userid</code>?</p> <p>An easy way around this would be to just add the ID to the array you are using to create the it...
laravel set class variable value
php|laravel|laravel-5|laravel-5.1
-1
517
1
37,873,913
37,873,913
1
true
2016-06-17T05:32:33.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: laravel set class variable value<p>i'm going to store data through excel-sheet to database every thing is going well but i want to add user->ID individually ...
37,934,338
update sql table current row<p>Complete noob alert! I need to store a largish set of data fields (480) for each of many devices i am measuring. Each field is a Decimal(8,5). First, is this an unreasonably large table? I have no experience really, so if it is unmanageable, I might start thinking of an alternative sto...
<p>Instead of inserting a row and then updating it with values, you should insert an entire row, with populated values, at once, using the <code>insert</code> command.</p> <p>I.e. </p> <pre><code>insert into tTable (column1, column2, ..., column n) values (datum1, datum2, ..., datum n) </code></pre> <p>Your table's ...
update sql table current row
mysql|max|row
-1
43
1
37,934,512
37,934,512
1
true
2016-06-21T01:49:42.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: update sql table current row<p>Complete noob alert! I need to store a largish set of data fields (480) for each of many devices i am measuring. Each field ...
37,937,351
Ionic Framework installed but not working in Ubuntu 16.04<p>when i try to check the version of my installed ionic dependence or start a new blank project it gives errors.</p> <p>Please help me this <a href="http://i.stack.imgur.com/MafIU.png" rel="nofollow">error</a>.</p>
<p>You seem to be having a problem in Node.js</p> <p>re-install Node.js and make sure you have the latest version of Node.js and npm. Try this link:</p> <p><a href="https://askubuntu.com/questions/49390/how-do-i-install-the-latest-version-of-node-js">https://askubuntu.com/questions/49390/how-do-i-install-the-latest-v...
Ionic Framework installed but not working in Ubuntu 16.04
android|ionic-framework|installation|ubuntu-16.04
-1
519
1
37,938,786
37,938,786
1
true
2016-06-21T06:50:10.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ionic Framework installed but not working in Ubuntu 16.04<p>when i try to check the version of my installed ionic dependence or start a new blank project it ...
37,942,917
Mobile portrait and landscape versions exactly the same<p>@media for portrait and landscape don't seem to change when using Bootstrap for this website: <a href="http://moodisorder.com" rel="nofollow">http://moodisorder.com</a></p> <p>Can anyone please explain how I might have this site respond to single column for por...
<p>For starters under moodisorder.com you have not declared the viewport, so you must add the meta viewport there, like so:</p> <pre><code>&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; </code></pre> <p>Now under site the georgehowell.biz/sk/ there's a meta viewport, but you are pulling t...
Mobile portrait and landscape versions exactly the same
css|twitter-bootstrap|media-queries
-1
31
2
37,948,748
37,948,748
1
true
2016-06-21T11:15:37.027Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Mobile portrait and landscape versions exactly the same<p>@media for portrait and landscape don't seem to change when using Bootstrap for this website: <a hr...
37,986,981
concatination of cut putting variable inside it<p>I have coded the following code :</p> <pre><code>Fileformat=$2 Fileresource=$1 for (( j=1; j&lt;=3; j++ )) { First_Pos_resource=$(awk -F ';' 'NR=='$j'{print $3}' "${Fileformat}") Length_resource=$(awk -F ';' 'NR=='$j'{print $4}' "${Fileformat...
<p>The error message looks like your variables are not being correctly set. Without access to your precise input files, it's hard to debug this; but copy/pasting your data produces <code>range</code> values like this for me:</p> <pre><code>range=15-+2 range=6-+4 range=23-+8 </code></pre> <p>which are obviously incor...
concatination of cut putting variable inside it
linux|shell|awk|scripting|cut
-1
61
1
37,987,647
37,987,647
1
true
2016-06-23T09:04:31.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: concatination of cut putting variable inside it<p>I have coded the following code :</p> <pre><code>Fileformat=$2 Fileresource=$1 for (( j=1; j&lt;=3; j++ ...
38,029,064
Android- method is permanently changing the value of variable<p>I have this method which I dont understand. 2 global variables which are important for this questions:</p> <p>-mNextButton; -mCurrentIndex;</p> <pre><code>mNextButton.setOnClickListener(new View.OnClickListener() { @Override pub...
<p>Try to be more specific. What do you really what to know? In your code you setup a callback, which will be called, when user press the button. Inside that code you updating your "global" variables (since java has no global variables, I will assume you mean class field variable inside activity) </p> <p><code>mCurre...
Android- method is permanently changing the value of variable
android|variables|methods
-1
64
3
38,029,149
38,029,149
1
true
2016-06-25T13:32:46.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android- method is permanently changing the value of variable<p>I have this method which I dont understand. 2 global variables which are important for this ...
38,031,809
grouping a datetime column only by time<p>I have a column datedate format, with 15 min intervals and another column called datavalues with corresponding data. I want to roll up the data values to 1 hr. I am attaching a screen shot. <a href="https://i.stack.imgur.com/xICso.jpg" rel="nofollow noreferrer"><img src="https:...
<p>You can truncate the date to the hour by using this formula:</p> <pre><code>DATEADD(HOUR, DATEDIFF(HOUR, 0, the-date-value), 0) </code></pre> <p>So the full query is:</p> <pre><code>SELECT DATEADD(HOUR, DATEDIFF(HOUR, 0, KEY_POINT_DTTM_15MIN), 0), SUM(DATA_VALUE) FROM mytable GROUP BY DATEADD(HOUR, DATEDIFF...
grouping a datetime column only by time
sql|sql-server|datetime|sql-server-2012|group-by
-1
51
1
38,031,862
38,031,862
1
true
2016-06-25T18:43:39.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: grouping a datetime column only by time<p>I have a column datedate format, with 15 min intervals and another column called datavalues with corresponding data...
38,036,127
Calculation of a swivel rotation (without physics engine)<p>I try to get the rotation angle of a swiveling wheel, given the rotation angle of the connected body:</p> <p><a href="https://i.stack.imgur.com/MZFva.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MZFva.png" alt="enter image description he...
<p><strong>Simple swivels</strong></p> <p>Assuming the wheels are casters.</p> <p>To describe one</p> <pre><code>// ? for numbers save me making up numbers var wheel = { swivel : {x : ?, y : ?}, // world position of swivel (rotation point length : ?, // distance from swivel to ground Contact when viewed from...
Calculation of a swivel rotation (without physics engine)
rotation|sprite|game-physics|2d-games
-1
291
1
38,038,237
38,038,237
1
true
2016-06-26T07:22:29.917Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calculation of a swivel rotation (without physics engine)<p>I try to get the rotation angle of a swiveling wheel, given the rotation angle of the connected b...
37,971,802
Async call on GUI event<p>I've an event on an UserControl(winform) that I'm listening:</p> <pre><code>public void OnSomething(SomeEventArgs args){ SomeResult result = ?await? _businessObject.AsyncCall(); ApplySomethingOnTheGuiBasedOnTheResult(result); } </code></pre> <p><code>_businessObject.AsyncCall()</code...
<p>You simply need to mark your handler as <code>async</code>:</p> <pre><code>public async void OnSomething(SomeEventArgs args) { SomeResult result = await _businessObject.AsyncCall(); ApplySomethingOnTheGuiBasedOnTheResult(result); } </code></pre> <p>I know it's not recommended to use <code>asyc</code> with ...
Async call on GUI event
c#|.net|multithreading|asynchronous|async-await
-1
276
1
37,971,872
37,971,872
2
true
2016-06-22T15:01:38.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Async call on GUI event<p>I've an event on an UserControl(winform) that I'm listening:</p> <pre><code>public void OnSomething(SomeEventArgs args){ SomeR...
37,914,465
blur function not being first<p>I am using regex to disable registering with a apple email</p> <pre><code>if (str.match('(@me.com)') || str.match('(@icloud.com)') || str.match('(@mac.com)')) </code></pre> <p>The code is working fine if I run it with the browser console but I cant get it to work initially, Ive wrapped...
<p>You need to re-assign the value using <code>val()</code> to variable <code>str</code> inside blur event callback.</p> <pre><code>function emailValidate(){ $('#Email').blur(function() { var str = $(this).val(); if (str.match('(@me.com)') || str.match('(@icloud.com)') || str.match('(@mac.com)')) { $(...
blur function not being first
javascript|jquery|html
-1
63
2
37,914,501
37,914,501
3
true
2016-06-20T04:00:52.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: blur function not being first<p>I am using regex to disable registering with a apple email</p> <pre><code>if (str.match('(@me.com)') || str.match('(@icloud....
37,865,798
Fill area between 2 curves matlab<p>If i have 3 vectors: mean, mean+standard deviation and mean-standard deviation, how can I fill the space between mean+standard deviation and mean-standard deviation and keep visible the third vetor "mean"? I tried like this</p> <pre><code>h1 = area(x,y_m); h2= area(x,y_std1); h3= ar...
<p>Something like this may provide what you are looking</p> <pre><code>% random data x = 0:0.1:10; y = sin(x); ystd = ones(size(x))*1; y_std1 = y+ystd; y_std2 = y-ystd; figure fill([x fliplr(x)],[(y_std1) fliplr(y_std2)],'r'); hold on plot(x,y) </code></pre>
Fill area between 2 curves matlab
matlab|plot
-1
1,280
1
37,866,406
37,866,406
4
true
2016-06-16T17:30:28.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Fill area between 2 curves matlab<p>If i have 3 vectors: mean, mean+standard deviation and mean-standard deviation, how can I fill the space between mean+sta...
38,022,609
Create horizon plot<p>I have the following example data and want to create a horizon plot, showing the changes in <code>area</code> column over the <code>year</code>. Any suggestion on doing this using <code>ggplot2</code>?</p> <pre><code>year &lt;- 1990:2005 area1 &lt;- runif(16, 18,20) area2 &lt;- runif (16,6,6.7) a...
<p>You can create a horizon plot using <code>ggplot_horizon</code> from the <code>ggTimeSeries</code> package. Your data sample is a bit sparse for a good horizon plot, so I've created some fake data. The example below is based on the example in the <a href="https://www.ggplot2-exts.org/ggTimeSeries.html" rel="nofollow...
Create horizon plot
r|ggplot2|lattice
-1
1,300
2
38,022,639
38,022,639
4
true
2016-06-24T21:51:57.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create horizon plot<p>I have the following example data and want to create a horizon plot, showing the changes in <code>area</code> column over the <code>yea...
37,977,261
Filtered search with multiple fields using ASP.NET<p>The following code is what I have in my Index.cs </p> <pre><code>&lt;p&gt; @using (Html.BeginForm("Index", "Home", FormMethod.Get)) { &lt;b&gt;Search By:&lt;/b&gt; @Html.TextBox("progcd") &lt;text&gt;PROGCD&lt;/text&gt; @Html.TextBox("docrecdt") &lt;tex...
<p>You can combine your conditions using a <code>||</code> condition like</p> <pre><code> if (docrecdt.ToLower() == "docrecdt" || progcd.ToLower() == "progcd") { return View(db.vwtest21.Where(x =&gt; x.DOC_REC_DT1 == docrecdt || x.PROG_CD == progcd).ToList()); } else...
Filtered search with multiple fields using ASP.NET
c#|asp.net
-1
577
1
37,977,543
37,977,543
0
true
2016-06-22T20:04:08.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Filtered search with multiple fields using ASP.NET<p>The following code is what I have in my Index.cs </p> <pre><code>&lt;p&gt; @using (Html.BeginForm("Ind...
37,869,983
What is wrong with this small query? SQL errors<p>I have this Query:</p> <pre><code>INSERT INTO abilities_usage (id, name, usage) VALUES ("5467", "naga_siren_mirror_image", "1") ON DUPLICATE KEY UPDATE id='5467'; </code></pre> <p>SQL response:</p> <blockquote> <p>You have an error in your SQL syntax; chec...
<p>It doesn't make sense to assign to the key if it exists... I guess what you want is this:</p> <pre><code>INSERT INTO abilities_usage (id, name, `usage`) VALUES ('5467', 'naga_siren_mirror_image', '1') ON DUPLICATE KEY UPDATE name = 'naga_siren_mirror_image', `usage` = '1'; </code></pre> <p>Assuming <code>id</cod...
What is wrong with this small query? SQL errors
mysql|sql
-1
50
2
37,870,063
37,870,063
1
true
2016-06-16T21:55:09.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is wrong with this small query? SQL errors<p>I have this Query:</p> <pre><code>INSERT INTO abilities_usage (id, name, usage) VALUES ("5467", "n...
37,926,012
Find min values in field 2 by looping through certain number of records using AWK<p>I have three fields in dataset file.</p> <p>field 1 acts as id</p> <p>field 2 is used to compare the min</p> <p>field 3 is boolean either 0 or 1.</p> <p>I need to find the min value in field 2 but with respect to field 1. that is, consi...
<p>the easiest...</p> <pre><code>$ sort -n file | awk '!a[$1]++' 1 0.12 1 2 0.056 0 3 0.982 0 </code></pre> <p>to count the sum</p> <pre><code>$ sort -n file | awk '!a[$1]++{sum+=$3} END{print sum}' 1 </code></pre> <p>however, if there is a match in field two and you want to pick the record with last field 1, you...
Find min values in field 2 by looping through certain number of records using AWK
bash|shell|awk|gawk
-1
55
1
37,926,252
37,926,252
1
true
2016-06-20T15:13:26.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find min values in field 2 by looping through certain number of records using AWK<p>I have three fields in dataset file.</p> <p>field 1 acts as id</p> <p>fie...
38,016,284
Android game programming - onDraw() stuttering<p>I am creating an animation, and basically a ball is moving on the screen. However, I am experiencing stuttering, making the game less playable. Please have a look at my code, any pointing in the right direction is very welcome!</p> <p>GameActivity.java -> starts the gam...
<p>As a rule of thumb, you should absolutely avoid allocating / deallocating memory in your <code>onDraw()</code>.</p> <p>You are using it to create a <code>Paint</code> object. Since <code>onDraw()</code> is called up to 60 times per second, the performance hit of method creation there is huge. Just move your <code>P...
Android game programming - onDraw() stuttering
java|android|android-canvas|surfaceview|game-physics
-1
325
2
38,017,037
38,017,037
1
true
2016-06-24T14:51:59.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android game programming - onDraw() stuttering<p>I am creating an animation, and basically a ball is moving on the screen. However, I am experiencing stutter...
38,026,363
Download document from mysql database<p>I have uploaded a file into MySQL database but while retrieving I am having aproblem.</p> <p><strong>download.php</strong></p> <pre><code>&lt;?php $host="localhost"; $username="root"; $password=""; $db_name="application"; $con=mysqli_connec...
<pre><code>&lt;a href='download.php?contactid=".$contactid."'&gt;&lt;?php echo $filename;?&gt; &lt;/a&gt; </code></pre> <p>Above statement using two php variables <code>$contactid</code> and <code>$filename</code>. You have <code>echo</code> the <code>$filename</code> but forgot to echo <code>$contactid</code>. If ...
Download document from mysql database
php|web
-1
36
2
38,026,401
38,026,401
1
true
2016-06-25T08:05:26.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Download document from mysql database<p>I have uploaded a file into MySQL database but while retrieving I am having aproblem.</p> <p><strong>download.php</s...
37,885,457
Delete lines in a file<p>I have this code that brute forces a parameter:</p> <pre><code>import urllib import sys with open('finaltext.txt', 'r') as f: for line in f: site = urllib.urlopen("localhost/?cin="+line) if site.read() == "good": print line reponse = open("result.txt",'w') ...
<pre><code>import urllib import sys s = open('index.txt','r') indx = int(s.readlines()[0]) s.close() with open('finaltext.txt', 'r') as f: g = open('result.txt','w') finaltext = f.readlines() for line in finaltext[indx:len(finaltext)]: indx+=1 with open('index.txt','w') as ixfile: ...
Delete lines in a file
python|file
-1
37
1
37,885,576
37,885,576
0
true
2016-06-17T15:38:22.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Delete lines in a file<p>I have this code that brute forces a parameter:</p> <pre><code>import urllib import sys with open('finaltext.txt', 'r') as f: ...
37,933,116
environment with multiple python interpreter<p>On Mac, if installed multiple Python interpreter (anaconda, Python 2.7 standard, etc.), wondering when running command <code>python</code>, is there a way to specify if I run with anaconda or Python 2.7 or other Python interpreter?</p>
<p>If you only type python, it will take you to the version of python specified by this:</p> <pre><code>which python </code></pre> <p>This command will print out the location of <code>python</code> in your terminal.</p> <p>To use a version other than the one above, be it Jython or Anaconda or whatever, you can to ru...
environment with multiple python interpreter
python|macos|python-2.7|anaconda
-1
322
1
37,933,150
37,933,150
1
true
2016-06-20T22:58:56.030Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: environment with multiple python interpreter<p>On Mac, if installed multiple Python interpreter (anaconda, Python 2.7 standard, etc.), wondering when running...
38,028,403
regex to add `//` before hyperlinks<p>I use the below function to wrap/parse links in a string with an <code>a</code> tag. This supports plain links in a string, but also markdown notation, like <code>[title](link)</code>.</p> <p>But I have a problem: how to fill <code>//</code> in the href attribute, when the link d...
<p>You could use the <code>replace</code> method with a callback function. That function could then add the <code>http://</code> prefix if it is not there yet.</p> <p>By using a callback you can also treat both cases in one regexp replace call:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console...
regex to add `//` before hyperlinks
javascript|jquery|regex
-1
60
1
38,029,048
38,029,048
2
true
2016-06-25T12:11:34.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: regex to add `//` before hyperlinks<p>I use the below function to wrap/parse links in a string with an <code>a</code> tag. This supports plain links in a st...
37,997,203
Can enumerate be used to count the occurrence of some condition?<p>I want to count how many times the item of a list satisfy one condition. For example a[i] > 1:</p> <pre><code>a = [2,4,3,0] counter = 0 for value in a: if value &gt; 1: counter += 1 </code></pre> <p>Is it possible to use the <code>enumera...
<p>You can use a list comprehension- bonus points because they're damn fast (list comps are implemented in C)</p> <pre><code>a = [2,3,4,0] count = len([i for i in a if i &gt; 1]) # Or, to avoid a temporary list: (courtesy of John Kugelman) count = sum(1 for i in a if i &gt; 1) </code></pre> <p>Explain:</p> <pre><cod...
Can enumerate be used to count the occurrence of some condition?
python|list|enumeration
-1
40
1
37,997,240
37,997,240
3
true
2016-06-23T16:33:36.297Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can enumerate be used to count the occurrence of some condition?<p>I want to count how many times the item of a list satisfy one condition. For example a[i] ...
37,968,756
How can I commit reversal of last commit?<p>I've just created a huge commit. Now I want to commit the reversal of these changes.</p> <p>So basically I want to have the same files in my repo as I'll have after <code>git reset --hard HEAD~1</code>, but I'd like to keep the history of my changes, so create a new commit i...
<p>You can commit the reversal of one or more commits using <a href="https://git-scm.com/docs/git-revert" rel="nofollow"><code>git-revert</code></a>. For instance, to revert the most recent commit:</p> <pre><code>git revert HEAD </code></pre>
How can I commit reversal of last commit?
git|version-control|undo|revert|git-reset
-1
55
1
37,968,882
37,968,882
-1
true
2016-06-22T12:58:08.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I commit reversal of last commit?<p>I've just created a huge commit. Now I want to commit the reversal of these changes.</p> <p>So basically I want ...
38,007,634
Avoid Optional Words with Regex<p>I'm trying to realize a Regex for this: </p> <pre><code>Line 1: OPEN_SESSION (AAAA) xxxx.yyyy Line 2: OPEN_SESSION zzzz </code></pre> <p>to get <strong>xxxx.yyyy</strong> and <strong>zzzz</strong> but i can't avoid that annoying parenthesis. I tried with: </p> <pre><code>OPEN_SESSIO...
<p>Your expression is almost correct. The only reason it wouldn't work is that you forgot the optional space after (AAAA). Also, it should also discard the match until that point - i.e., the match (as it is in your solution) includes <code>OPEN_SESSION</code> (with space included). If you want that excluded:</p> <p>PC...
Avoid Optional Words with Regex
java|regex
-1
48
2
38,007,975
38,007,975
0
true
2016-06-24T07:13:25.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Avoid Optional Words with Regex<p>I'm trying to realize a Regex for this: </p> <pre><code>Line 1: OPEN_SESSION (AAAA) xxxx.yyyy Line 2: OPEN_SESSION zzzz </...
38,029,820
While (web services netbeans)<p>i have this method adn i have to remove all the orders from the same client. here is the .xml file from which i am removing </p> <pre><code>&lt;encomendas&gt; &lt;encomenda cod="enc4" data="2016-04-23" cliente="cli5" status="pendente"&gt; &lt;enc quant="3"&gt;9789722523288&lt;/...
<p>It's because you return the method immediately when you remove something. You can take <code>return "order removed";</code> out of the for loop, and have something like a flag variable to check whether there's something removed.</p> <pre><code>@WebMethod(operationName = "removeorder2") public String removeorder2(@W...
While (web services netbeans)
java|xml|web-services|netbeans
-1
22
1
38,029,885
38,029,885
0
true
2016-06-25T15:06:30.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: While (web services netbeans)<p>i have this method adn i have to remove all the orders from the same client. here is the .xml file from which i am removing <...
38,048,890
What is the use of Skeleton, Gesture period in Kinect application?<p>I am writing a Kinect-based application. I need to implement a wave-right gesture. I found a code snippet from the Internet using C#, but I have some doubts about this code. Can you help me?</p> <p>The code:</p> <pre><code>public class KinectClass {...
<p>The thing you need to remember is that just because the Hand's position is right, relative to the body. It does not mean that they are waving right.</p> <p>A wave right is a transition towards the right. So you cannot determine that by the current position. That is why you need to keep track of the previous posi...
What is the use of Skeleton, Gesture period in Kinect application?
c#|windows|kinect|kinect-sdk|gesture-recognition
-1
79
1
38,051,282
38,051,282
2
true
2016-06-27T08:13:49.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the use of Skeleton, Gesture period in Kinect application?<p>I am writing a Kinect-based application. I need to implement a wave-right gesture. I fou...
37,971,957
github project need to be uploaded and let other users to contribute<p>I am new to github. I have a project that I need it to be on Github.</p> <p>How I can upload my project to github.</p> <p>i heard there is a console based app, using which user can upload project and create repository. How I can download it and us...
<p>You are probably referring to <a href="https://git-scm.com/" rel="nofollow">Git</a>. Git is a version control system which one of its features is distributed remote repositories such as GitHub.</p> <p>You should start by <a href="https://help.github.com/articles/set-up-git/" rel="nofollow">setting up git</a> and re...
github project need to be uploaded and let other users to contribute
git|github
-1
18
1
37,972,809
37,972,809
1
true
2016-06-22T15:09:14.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: github project need to be uploaded and let other users to contribute<p>I am new to github. I have a project that I need it to be on Github.</p> <p>How I can...
37,853,525
Why is SELECT '1970-01-01T01:00:00.000' > '1970-01-01T01:00:00' = 1?<p>Why is in sql lite '1970-01-01T01:00:00.000' bigger than '1970-01-01T01:00:00'</p> <pre><code>SELECT '1970-01-01T01:00:00.000' &gt; '1970-01-01T01:00:00' </code></pre>
<p>Because the rules for comparing two strings in sqlite is that if the strings contains the same characters <em>up to a point</em>, and only one of the strings contains more characters <em>after that point</em>, then that string comes first.</p> <p>Same as this:</p> <pre><code>select 'aa' &gt; 'a' </code></pre>
Why is SELECT '1970-01-01T01:00:00.000' > '1970-01-01T01:00:00' = 1?
sqlite
-1
75
1
37,853,587
37,853,587
3
true
2016-06-16T08:15:11.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is SELECT '1970-01-01T01:00:00.000' > '1970-01-01T01:00:00' = 1?<p>Why is in sql lite '1970-01-01T01:00:00.000' bigger than '1970-01-01T01:00:00'</p> <p...
37,991,286
Easier way to get individual records, and write them automatically<p>Well there has got to be an easier, more automatic way to this. I'm basically querying the database for each radio button. This is all working, but it'll be a pain for me to implement more, can anyone give me some tips?</p> <p>This is what I've done ...
<p>Yes, whenever you find yourself repeating code like this, its usually a sign you need to use a simple loop:</p> <pre><code>$displayStatusResults = []; $displayStatusQuery = "SELECT Skap_Nummer, Status FROM testskap WHERE Skap_Nummer IN('A1-1','A1-2','A1-3','A1-4','A1-5')"; $result = $connect_DB-&gt;query($display...
Easier way to get individual records, and write them automatically
php|html|css|sql
-1
63
2
37,991,751
37,991,751
1
true
2016-06-23T12:12:44.547Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Easier way to get individual records, and write them automatically<p>Well there has got to be an easier, more automatic way to this. I'm basically querying t...
37,662,575
How to Query MySQL JSON Field Values with a Loopback REST API Filter<p>What's the proper Loopback filter format to query a value in a MySQL (5.7) JSON field? For example, how would we perform this query using a Loopback REST filter?</p> <p><strong>QUERY</strong></p> <pre><code>SELECT name, info-&gt;"$.id", info-&gt;"...
<p>Since this question is the first to pop from Google search, and that the loopback mysql connector still does not allow for json querying, I feel like a proper answer should be given for future readers.</p> <p>The work around is to add the feature directly on the connector by yourself, until the loopback politics set...
How to Query MySQL JSON Field Values with a Loopback REST API Filter
mysql|rest|loopbackjs|strongloop
0
1,038
2
63,341,131
63,341,131
2
true
2016-06-06T16:33:28.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Query MySQL JSON Field Values with a Loopback REST API Filter<p>What's the proper Loopback filter format to query a value in a MySQL (5.7) JSON field?...
53,760,217
InvalidKeySpecException while doing ssh with sshj using ppk<p>I am trying to ssh using sshj java library to an ec2 redhat instance with the ppk file,I am getting InvalidKeySpecException . Where as i am able to successfully ssh to other machines with same ppk. I guess i am missing some configuration in the ec2 instance...
<p>This one was pretty tricky, the sshj library uses the ssh-rsa algorithm. So we need to add the ssh-rsa algorithm in ec2 instance. steps:</p> <ol> <li>Edit the file /etc/ssh/sshd_config.</li> <li>Add the entry HostKeyAlgorithms ssh-rsa</li> </ol> <p>it started working after that.</p>
InvalidKeySpecException while doing ssh with sshj using ppk
amazon-ec2|sshj
0
272
2
60,945,153
60,945,153
0
true
2018-12-13T10:53:15.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: InvalidKeySpecException while doing ssh with sshj using ppk<p>I am trying to ssh using sshj java library to an ec2 redhat instance with the ppk file,I am ge...
53,358,930
How can I construct a path between two distant node in pathfinding3d.js?<p>To create a path in pathfinding3d.js, we have to add all nodes and their neighbors.</p> <pre><code>var nodes = [ new PF.Node(0,0,0), new PF.Node(1,0,0), new PF.Node(2,0,0), ]; nodes[0].neighbors.push(nodes[1]); nodes[1].neighbors.pu...
<p>I've managed to find a solution. First, I create three function to help me create layout, make all node connected, and, then, make only the necessary node connected using the pathfinding3d.js to calculate which node it need to connect based on proposed connected nodes. Here are the function:</p> <pre><code>function...
How can I construct a path between two distant node in pathfinding3d.js?
javascript|path-finding
0
34
1
56,005,985
56,005,985
0
true
2018-11-18T07:58:38.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I construct a path between two distant node in pathfinding3d.js?<p>To create a path in pathfinding3d.js, we have to add all nodes and their neighbors...
53,717,904
Hyperledger Fabric: Where can one find complete description of network-config.yaml?<p>Where can one find complete description and schema of the <a href="https://github.com/hyperledger/fabric-samples/blob/master/balance-transfer/artifacts/network-config.yaml" rel="nofollow noreferrer">network-config.yaml</a> file used i...
<blockquote> <p>Where can one find complete description and schema of the network-config.yaml file used in Hyperledger Fabric?</p> </blockquote> <p>documentation for v1.4 can be found at <a href="https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/connectionprofile.html" rel="nofollow noreferrer">...
Hyperledger Fabric: Where can one find complete description of network-config.yaml?
hyperledger-fabric
0
316
2
56,083,094
56,083,094
0
true
2018-12-11T05:29:16.893Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hyperledger Fabric: Where can one find complete description of network-config.yaml?<p>Where can one find complete description and schema of the <a href="http...
53,634,778
Predict Value Not In Data Set<p>Given that I have training and testing data, that may be missing a logical sequential number. Is it possible to infer a value that wasn't present?</p> <p>For example: Training / Testing Data have values 1,2,3,4,5...7,8,9,10 specified for the label.</p> <p>Is it possible that based on t...
<p>The way I solved, or in fact mitigated, the lack of a value was to do the following. For each input data type that requires to be sequential - no gaps, I only used data / rows from my data set where there was an unbroken sequence, across all entries. </p> <p>Given the following: 0,1,2,3,4,5,6,7,9</p> <p>I only use...
Predict Value Not In Data Set
machine-learning|classification|ml.net
0
544
3
56,330,942
56,330,942
0
true
2018-12-05T14:41:30.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Predict Value Not In Data Set<p>Given that I have training and testing data, that may be missing a logical sequential number. Is it possible to infer a value...
53,365,329
Cron job doesn't start nodejs correctly<p>This is a bit of a weird one and I have no clue what to do. I have a small node express api which is hosted on my Raspberry Pi which is running raspbian.</p> <p>The js file is started in a cron job: </p> <p><code>@reboot sudo /usr/bin/node /var/www/html/api/server.js &amp;</...
<p>the issue is with the PATH. </p> <p>for me I was using <code>serveStatic</code> and providing the path to the static folder like <code>./public</code>. This was resolving to the wrong path. By providing complete URL i was able to resolve the issue.</p> <p>You may solve the same issue with other solutions also, the...
Cron job doesn't start nodejs correctly
javascript|node.js|cron|raspberry-pi
0
768
2
56,333,032
56,333,032
0
true
2018-11-18T20:50:30.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cron job doesn't start nodejs correctly<p>This is a bit of a weird one and I have no clue what to do. I have a small node express api which is hosted on my R...