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,777,554
CSS for first and last child<p>I need to apply CSS to first and last child.</p> <p>Here is my code:</p> <pre><code>&lt;div class="parent"&gt; &lt;div class="A B"&gt;&lt;div class="xyz"&gt;&lt;/div&gt;&lt;/div&gt; &lt;div class="A B"&gt;&lt;div class="xyz"&gt;&lt;/div&gt;&lt;/div&gt; &lt;div class="A B"&gt...
<p>Do like this, where you use the pseudo <code>:first-child</code>/<code>:last-child</code> on the group of elements you want to target, not their parent. </p> <p>You can use the type, <code>div:first-child</code>, which I used in my sample, or a class like <code>.A:first-child</code></p> <p><em>Side note:</em></p> ...
CSS for first and last child
css
-1
327
2
37,777,576
37,777,576
9
true
2016-06-12T18:13:07.097Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CSS for first and last child<p>I need to apply CSS to first and last child.</p> <p>Here is my code:</p> <pre><code>&lt;div class="parent"&gt; &lt;div c...
37,646,097
Catching only one group out of two on both sides of |<p>I need to catch something inside double or single quotes, logically, I do this:</p> <pre><code>&gt;&gt;&gt; re.match( '"(\d+)"|\'(\d+)\'', "'123'" ).groups() (None, '123') </code></pre> <p>But for some reason two groups are returned, why?..</p>
<p>Because your regex contains two groups and <code>groups()</code> returns "<em>a tuple containing all the subgroups of the match, from 1 up to however many groups are in the pattern</em>" (<a href="https://docs.python.org/3/library/re.html#re.match.groups" rel="nofollow">https://docs.python.org/3/library/re.html#re.m...
Catching only one group out of two on both sides of |
python|regex|python-3.x
-1
47
2
37,646,109
37,646,109
0
true
2016-06-05T19:48:51.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Catching only one group out of two on both sides of |<p>I need to catch something inside double or single quotes, logically, I do this:</p> <pre><code>&gt;&...
37,797,716
Simple query takes long time to execute<p>I have a long, but simple, query that seems to take an incredibly long time to return a result (over 2 seconds).<br> Here is the query:</p> <pre><code>SELECT * FROM `posts` WHERE (`title` = 'Surprise Kanye West performance ends in fans\' disappointment' AND `content` = ...
<p>If you put a compound index on <code>(title, content, poster)</code>, and another index on <code>url</code>, you should see a speedup.</p> <p><strong>Note well</strong>. Each <code>OR</code> clause of a query like this can only use one index. So, it won't help this query to put separate indexes on <code>title</code...
Simple query takes long time to execute
mysql|sql
-1
62
2
37,798,011
37,798,011
0
true
2016-06-13T19:30:12.613Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Simple query takes long time to execute<p>I have a long, but simple, query that seems to take an incredibly long time to return a result (over 2 seconds).<br...
37,787,011
static varibale cant be changed from a thread<p>in the below code, I create the class FMSHandler to process a string value passed to it from the main method as follwos</p> <pre><code>while (true) { fmsHandler.process("param1_" + (++cnt) + ", param2_" + (cnt)); } </code></pre> <p>what i want to do is, to a...
<p>You should declare the <code>sIsProcessing</code> variable as <code>volatile</code> or use an <code>AtomicBoolean</code>. </p> <p>Also, currently, a lot of the messages passed to <code>process(...)</code> will be skipped, I'm not sure if that is your intention.</p> <p>If you want to prevent messages from being ski...
static varibale cant be changed from a thread
java|multithreading
-1
59
1
37,787,205
37,787,205
1
true
2016-06-13T10:09:51.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: static varibale cant be changed from a thread<p>in the below code, I create the class FMSHandler to process a string value passed to it from the main method ...
37,821,921
How to sort a table by FirstName in Laravel?<p>I'm new to Laravel and I'm just trying to sort this table by First Name but I'm not really sure where to start.</p> <p>Here's the controller which simply renders the data on the table.</p> <pre><code> $resultArray = object_to_array($result); return view('home', [...
<p>As you're likely paginating the data, you wouldn't really want to sort on the front end, otherwise you'll just be ordering the results from the first 50 results into an order sorted alphabetically.</p> <p>Instead you'd do something like</p> <pre><code>$users = User::orderBy('firstName')-&gt;paginate(50) </code></p...
How to sort a table by FirstName in Laravel?
php|laravel|laravel-5
-1
308
2
37,822,103
37,822,103
2
true
2016-06-14T20:55:47.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to sort a table by FirstName in Laravel?<p>I'm new to Laravel and I'm just trying to sort this table by First Name but I'm not really sure where to start...
37,847,884
Call Materialize javascript from Node.js<p>I have a form for a user to fill out. On the server-side, I'm using mailgun to send an email once the form has been submitted.</p> <p>Upon an error, I want to display a toast dialog (<code>Materialize.toast("Error", 2500);</code> in Javascript). Since the error checking happe...
<blockquote> <p>Upon an error, I want to display a toast dialog (Materialize.toast("Error", 2500); in Javascript). Since the error checking happens on the server side, I'm not sure how to call that method.</p> </blockquote> <p>You'll have to return the error from your server-side script, and check the <code>data</co...
Call Materialize javascript from Node.js
javascript|html|node.js|materialize
-1
513
1
37,847,973
37,847,973
2
true
2016-06-16T00:19:58.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Call Materialize javascript from Node.js<p>I have a form for a user to fill out. On the server-side, I'm using mailgun to send an email once the form has bee...
37,816,460
How to obtain the derived class type from base when calling a method<p>Ive searched the internet and didnt immediately see a solution, should be simple but I just cant figure it out. </p> <p>I need to obtain the derived class Type within a method that only passes in the base class:</p> <pre><code>class Base { } cl...
<p><code>.GetType()</code> returns actual type of current object. It doesn't return base type. So if you do <code>SomeMethod(new Derived1())</code>, <code>obj.GetType()</code> will return <code>Derived1</code> (seems like that is what you want).</p>
How to obtain the derived class type from base when calling a method
c#|types
-1
56
2
37,816,512
37,816,512
5
true
2016-06-14T15:37:41.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to obtain the derived class type from base when calling a method<p>Ive searched the internet and didnt immediately see a solution, should be simple but I...
37,629,168
search an string array using given user and return indexes of the matched string array<p>I have this array. </p> <pre><code>var possibleValues=["contacts","delete","new contact","add","display"]; </code></pre> <p>user input can be "contacts" or "how to create a contact?".my function must return index as 0,2 which has...
<p>Your code is almost correct. But you have to compare with <code>-1</code>, not <code>1</code>. And you're using <code>arr[i]</code> instead of <code>possibleValues[i]</code>.</p> <p>And if you want to match each word in the user input, you need to split it up, and add another nested loop.</p> <p><div class="snippe...
search an string array using given user and return indexes of the matched string array
javascript|arrays
-1
27
1
37,629,277
37,629,277
0
true
2016-06-04T10:36:45.213Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: search an string array using given user and return indexes of the matched string array<p>I have this array. </p> <pre><code>var possibleValues=["contacts","...
37,734,894
Laravel 5 fetching related data using 3 models<p>hello guys I have this set of database<br></p> <pre><code>clients(#id,raison_sociale,adresse,)&lt;br&gt; delivery(#id,client_id(fk),date_del) &lt;br&gt; details(delivery_id(fk),product_id(fk),qt) product(id,code,desig,price) </code></pre> <p>and here are my eloquent r...
<pre><code>use App\Models\Client; Client::with('delivery.detail')-&gt;get(); </code></pre> <p>I can't test your relationships but assuming you are following the naming conventions your relations should be fine. The above will grab all details that are associated to the delivery by the client.</p> <p>You could improv...
Laravel 5 fetching related data using 3 models
laravel|eloquent
-1
46
1
37,735,040
37,735,040
0
true
2016-06-09T19:45:05.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel 5 fetching related data using 3 models<p>hello guys I have this set of database<br></p> <pre><code>clients(#id,raison_sociale,adresse,)&lt;br&gt; de...
37,610,522
Why is the value of date not being added to DB?<p>Here's the complete form:</p> <p> $(document).ready(function() { $( "#datepicker" ).datepicker(); }); </p> <pre><code> &lt;div class="labelContainer"&gt; &lt;label for="Date"...
<p>MySQL accept that value in its dateformat syntax.</p> <p>The date format in MySQL is <strong>YYYY-MM-DD</strong></p> <p>Try this </p> <pre><code>if(!empty($_POST['datepicker'])) { $date = date("Y-m-d",strtotime($_POST['datepicker'])); //mysql date format } </code></pre>
Why is the value of date not being added to DB?
javascript|php
-1
57
4
37,610,665
37,610,665
1
true
2016-06-03T09:19:06.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is the value of date not being added to DB?<p>Here's the complete form:</p> <p> $(document).ready...
37,729,559
Why do I have to return app in Flask create_app?<pre><code>from flask import Flask, render_template from flask.ext.bootstrap import Bootstrap from flask.ext.mail import Mail from flask.ext.moment import Moment from flask.ext.sqlalchemy import SQLAlchemy from config import config bootstrap = Bootstrap() mail = Mail() m...
<p>As far as I know you haven't copied the complete code.</p> <p>You've probably missed these lines or something similar:</p> <pre><code>if __name__ == '__main__': app = create_app('Example') app.run() </code></pre> <p>The reason the author returns the <em>app</em>, as @davidism has explained, is that we use...
Why do I have to return app in Flask create_app?
web|flask
-1
800
1
37,732,369
37,732,369
1
true
2016-06-09T14:58:28.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why do I have to return app in Flask create_app?<pre><code>from flask import Flask, render_template from flask.ext.bootstrap import Bootstrap from flask.ext....
37,835,591
Matplotlib.pyplot - Deactivate axes in figure. /Axis of figure overlap with axes of subplot<pre><code>%load_ext autoreload %autoreload 2 %matplotlib inline import numpy as np import datetime as dt import pickle import pandas as pd import datetime from datetime import timedelta, date from datetime import date as dt im...
<p>If you want to remove the axes completely, you should try:</p> <pre><code>plt.axis('off') </code></pre> <p>If that doesn't work (or doesn't do what you want it to), try: </p> <pre><code>cur_axes = plt.gca() cur_axes.axes.get_xaxis().set_visible(False) cur_axes.axes.get_yaxis().set_visible(False) </code></pre>
Matplotlib.pyplot - Deactivate axes in figure. /Axis of figure overlap with axes of subplot
python|matplotlib|axis|figure
-1
830
1
37,845,311
37,845,311
1
true
2016-06-15T12:33:40.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Matplotlib.pyplot - Deactivate axes in figure. /Axis of figure overlap with axes of subplot<pre><code>%load_ext autoreload %autoreload 2 %matplotlib inline ...
37,837,443
Make Azure VM image publically deployable<p>I have have created a Resource Manager VM image in Azure and this is publically accessible from the web and can be downloaded.</p> <p>From what I can see, users can download this image if they wanted to and upload it into their Azure subscription. </p> <p>Is it possible to...
<p>The documentation is correct, you need to first copy the image to a storage account in the subscription where you want to create the VM from. </p> <p>The alternative, and sounds like it might meet your objective, is to publish the image into the marketplace. You can also provide an ARM template to allow users to ...
Make Azure VM image publically deployable
azure|virtual-machine
-1
69
1
37,845,879
37,845,879
1
true
2016-06-15T13:50:46.030Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make Azure VM image publically deployable<p>I have have created a Resource Manager VM image in Azure and this is publically accessible from the web and can ...
37,770,019
C# - Radio button Check Change Event not responding when checked<p>Please i have a radio button that i added dynamically from a list (gotten during database read), it displays fine, but it does not fire the check change event.</p> <pre><code>public void fillradioButton() { for (int i = 0; i &lt; officeLists.Count;...
<p>Add the event to your radiobutton, for example:</p> <pre><code> public void fillradioButton() { for (int i = 0; i &lt; officeLists.Count; i++) { RadioButton rbutton = new RadioButton() { Name = "rbutton", Text = candidate_surname + " " + candidate_name, Le...
C# - Radio button Check Change Event not responding when checked
c#|winforms|radio-button
-1
2,112
2
37,770,072
37,770,072
2
true
2016-06-12T01:50:57.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# - Radio button Check Change Event not responding when checked<p>Please i have a radio button that i added dynamically from a list (gotten during database ...
37,842,032
Not performing all code in For Loop<p>I am trying to cycle through all parts of a <code>HashMap</code> using a for loop. The problem however is, that inside the body of the for loop, the code is not being fully performed. That is , it is happening only to a certain point and is then stopping.My code is:</p> <pre><code...
<p>This condition is met and the returning/exiting the method...</p> <pre><code>if (outerMapValue.get(arrayElement) &gt; 0) { return; </code></pre> <h1>Edit:</h1> <p>as <a href="https://stackoverflow.com/users/794088/petey">@petey</a> and <a href="https://stackoverflow.com/users/5647260/andrew-l">@Andrew L</a> ...
Not performing all code in For Loop
java|android
-1
64
2
37,842,096
37,842,096
3
true
2016-06-15T17:30:26.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Not performing all code in For Loop<p>I am trying to cycle through all parts of a <code>HashMap</code> using a for loop. The problem however is, that inside ...
37,616,445
What is wrong with my SVG Path Code?<p>I'm following this code pen but the author's code doesn't work for my own custom SVG from Illustrator. The original author puts a fill as an inline CSS style on the SVG path code. The white hover fill won't work if I don't make the SVG path code to white.</p> <p>By default - The ...
<p>It doesn't work because the <code>style</code> attributes in HTML have precedence over the CSS stylesheet. Hence the color never changes.</p> <p>You can solve this by defining the initial color in your stylesheet instead:</p> <pre><code>#bino { fill: #29aae1; } a:hover #bino { fill: #fff; } </code></pre> <p...
What is wrong with my SVG Path Code?
css|svg
-1
332
1
37,616,641
37,616,641
0
true
2016-06-03T14:02:09.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is wrong with my SVG Path Code?<p>I'm following this code pen but the author's code doesn't work for my own custom SVG from Illustrator. The original au...
37,783,043
Python: Break DAT files in modules and search specific lines<p>I have a large DAT file of this type: </p> <pre><code>// AC T00020 OS rat, Rattus norvegicus BS R02959; HS$APOA1_02; Quality: 6; APOA1, G000203; human, Homo sapiens. I have a large dat file of this type: // AC T00024 OS rat, Rattus norvegicus BS R001...
<p><a href="http://www.tutorialspoint.com/python/python_files_io.htm" rel="nofollow noreferrer">Open file and read</a> the contents, (not line by line) using <code>f.read()</code>.</p> <p><a href="http://www.tutorialspoint.com/python/string_split.htm" rel="nofollow noreferrer">Split</a> by a chosen character or string...
Python: Break DAT files in modules and search specific lines
python|database|file
-1
63
1
37,783,255
37,783,255
0
true
2016-06-13T06:25:36.657Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python: Break DAT files in modules and search specific lines<p>I have a large DAT file of this type: </p> <pre><code>// AC T00020 OS rat, Rattus norvegicu...
37,681,141
Reference to Unintialized collection exception using array PLSQL<p>I am getting reference to uninitialized collection exception when trying to add element to an array. Please help.Is that correct way to initialize the array as mentioned in my calling code?</p> <pre><code>CREATE OR REPLACE TYPE SCHEMA.STRARRAY AS TABLE...
<p><code>DUPARRAY.LAST</code> will get the index of the last element of the array (and not the index of the last non-<code>NULL</code> value of the array) - so if you use <code>DUPARRAY.LAST + 1</code> you will always exceed the array bounds.</p> <p>Also, you have not extended the array - which you need to do to add a...
Reference to Unintialized collection exception using array PLSQL
sql|oracle|plsql
-1
63
1
37,681,262
37,681,262
2
true
2016-06-07T13:42:56.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reference to Unintialized collection exception using array PLSQL<p>I am getting reference to uninitialized collection exception when trying to add element to...
37,700,037
creating table into the Javascript<p>Actually i am creating a Modal and in the modal some dynamic data is to shown but my problem is while i insert the Modal body through the .html tag, I am unable to iterate my object Array into the .html tag,</p> <p>Here is my Script:</p> <pre><code> echo "&lt;script&gt; function ...
<p>I guess you want something like</p> <pre><code>function myFunction(order) { var result = '&lt;table&gt;' // + '&lt;tr&gt;'... etc order.items.forEach(function(entry) { result += '&lt;tr&gt;' + '&lt;td&gt;' + order.order_id + '&lt;/td&gt;' // Or whatever field is "S. no" ...
creating table into the Javascript
javascript|php|jquery|html|twitter-bootstrap
-1
49
2
37,700,251
37,700,251
2
true
2016-06-08T10:34:04.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: creating table into the Javascript<p>Actually i am creating a Modal and in the modal some dynamic data is to shown but my problem is while i insert the Modal...
37,808,821
onclick embeded video , background music stop<p>My problem is exactly like this post </p> <blockquote> <p><a href="https://stackoverflow.com/questions/14719701/how-to-stop-music-when-embedded-youtube-video-starts?rq=1">How to stop music when embedded youtube video starts?</a></p> </blockquote> <p>But it doesn't sol...
<p>First of all, (aside from boohiss for having background music), you are better off to create a function rather than include a string of javascript in your html. You made the error of not defining 'thevid' as a variable, which i corrected. You weren't calling the audio at any point either to stop it, so i created a v...
onclick embeded video , background music stop
javascript|html|audio|embed
-1
1,101
1
37,819,850
37,819,850
0
true
2016-06-14T09:58:43.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: onclick embeded video , background music stop<p>My problem is exactly like this post </p> <blockquote> <p><a href="https://stackoverflow.com/questions/147...
37,785,328
CheckBox checked on scroll automatically in ListView in android<p>I am newbie to android and have implemented a listView with checkbox and textViews, I am facing a weird issue of selection.</p> <p>When I am checking any checkbox, all the other checkbox are automatically checked and it is changed after scrolling random...
<p>Use <code>SparseBooleanArray</code> instead of <code>ArrayList&lt;Boolean&gt;</code></p> <pre><code>SparseBooleanArray mArray; public ServiceAdapter(Context paramContext, ArrayList&lt;HashMap&lt;String, String&gt;&gt; contList) { this.mContext = paramContext; this.contArray = contList; mArray = new Spar...
CheckBox checked on scroll automatically in ListView in android
android|listview|checkbox|android-arrayadapter
-1
586
3
37,785,872
37,785,872
1
true
2016-06-13T08:47:38.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CheckBox checked on scroll automatically in ListView in android<p>I am newbie to android and have implemented a listView with checkbox and textViews, I am fa...
37,654,182
Can I use regular expressions or call a method inside a LINQ query?<p>I have this LINQ query:</p> <pre><code>var webWordForms = .Select(def =&gt; new WebWordForm { definition = def.definition, partOfSpeech = definition.partOfSpeech, sourceId = 1, synonyms = def.synonyms }) .ToL...
<p>It is possible, you could do this.</p> <pre><code>var webWordForms = webforms // this was just added, use actual collection. .Select(def =&gt; { string[] splits = def.definition.Split(new string[] {@"; """}, StringSplitOptions.RemoveEmptyEntries); return new WebWordForm { ...
Can I use regular expressions or call a method inside a LINQ query?
c#|linq
-1
74
1
37,654,353
37,654,353
3
true
2016-06-06T09:43:18.407Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can I use regular expressions or call a method inside a LINQ query?<p>I have this LINQ query:</p> <pre><code>var webWordForms = .Select(def =&gt; new We...
37,635,074
JavaFX MVC NullPointerError<p>everyone for some reason on execute I am getting null pointer exception, but I cant find reason why, I think its something with setOnAction method but not sure how I can fix it.</p> <p>In View Part I got</p> <pre><code>public void addButtonListener(EventHandler&lt;ActionEvent&gt; x) ...
<p>It might be that your login field is not initialized. I don't see it initialized anywhere in the code you provided. </p>
JavaFX MVC NullPointerError
java|model-view-controller|javafx-8
-1
37
1
37,635,199
37,635,199
0
true
2016-06-04T21:12:05.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JavaFX MVC NullPointerError<p>everyone for some reason on execute I am getting null pointer exception, but I cant find reason why, I think its something with...
37,677,800
How to assign a value to an EditorFor based on another editorFor value<p>What if after the document is ready and user enters an input in an editorfor and i want to read that input and assign it to another editorFor after user has finished inputting it?</p> <p>For example I have an editorFor called <code>basicSalary</c...
<blockquote> <p>user enters an input in an editorfor and i want to read that input and assign it to another editorFor after user has finished inputting it?</p> </blockquote> <p>Use <code>focusout</code> event as shown:-</p> <pre><code>$("#basicSalary").on('focusout',function(){ $('#grossSalary').val($(this).val(...
How to assign a value to an EditorFor based on another editorFor value
javascript|jquery|asp.net-mvc
-1
57
1
37,677,843
37,677,843
1
true
2016-06-07T11:12:32.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to assign a value to an EditorFor based on another editorFor value<p>What if after the document is ready and user enters an input in an editorfor and i w...
37,712,501
find elements in html DOM<p>I want to get Name/logo/Description/type from this HTML DOM I use python Beautiful Soup and got Description and Type using </p> <pre><code>soup = BeautifulSoup(html_data) for h in soup.findAll("span", { "class" : "description" }): print h.text </code></pre> <p>But Unable to get the N...
<p>I would get both name and logo using the class attributes:</p> <pre><code>logo = soup.find("div", class_="logo").img["src"] name = soup.find("div", class_="identity").find("div", class_="name").get_text() print(logo, name) </code></pre> <p>Or, via <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/#cs...
find elements in html DOM
python|html|beautifulsoup
-1
263
1
37,712,638
37,712,638
2
true
2016-06-08T20:40:29.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: find elements in html DOM<p>I want to get Name/logo/Description/type from this HTML DOM I use python Beautiful Soup and got Description and Type using </p> ...
37,642,863
Add divs to sections without breaking the scrolling<p>I'm making this website <a href="http://clashnow.maxfet.net:9010/" rel="nofollow">here</a>, and I'm using <code>sections</code> in order to have that smooth <strong>scrolling effect</strong> you see there.</p> <p>I now need a <code>navigation bar</code>, but <stron...
<p>Try adding "position:fixed" to the navigation bar and add padding from top to the sections equal to the height of the navigation bar.</p> <p>After inspecting you website :This is what you need to do</p> <pre><code>#cssmenu { background: #8EBEBC; width: auto; position: fixed; top: 0; left: 0; ...
Add divs to sections without breaking the scrolling
javascript|jquery|html|css
-1
49
1
37,643,487
37,643,487
1
true
2016-06-05T14:11:32.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add divs to sections without breaking the scrolling<p>I'm making this website <a href="http://clashnow.maxfet.net:9010/" rel="nofollow">here</a>, and I'm usi...
37,831,446
save a favorite page in collection list based on cookies or local storage<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;t...
<p>You can do this with javascript and jQuery easily. use the below code to add to favourite the page that user is on and save it inside cookies and then fetch the list of pages saved as favourite.</p> <p>i have made you a full file with which you can play around , inside the file i have created the functionality for ...
save a favorite page in collection list based on cookies or local storage
javascript
-1
1,546
1
37,832,664
37,832,664
3
true
2016-06-15T09:29:25.250Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: save a favorite page in collection list based on cookies or local storage<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-ba...
37,755,817
How to refresh the page in php after displaying alert<p>I am updating the records using php/mysql. and after all is done . I run this code for user confirmation about the activity.</p> <pre><code> echo '&lt;script language="javascript"&gt;'; echo 'alert("We Have credited your account")'; echo '...
<p>Alerts are weird but you can do something like the below as your echo. Alert returns an undefined. </p> <pre><code>echo "&lt;script language='javascript'&gt;"; echo "if(!alert('We Have credited your account')){ window.location.reload(); }"; echo "&lt;/script&gt;"; </code></pre> <p><strong>UPDATE</strong></p> ...
How to refresh the page in php after displaying alert
javascript|php
-1
7,173
2
37,755,889
37,755,889
2
true
2016-06-10T19:26:40.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to refresh the page in php after displaying alert<p>I am updating the records using php/mysql. and after all is done . I run this code for user confirma...
44,125,031
Error on starting the angular 2 app "getaddrinfo enoent"<p>I am new in Angular 2. </p> <p>On starting the Angular 2 application in CLI with ng-serve. I am getting an issue. Please check the link of error</p> <p><a href="http://prntscr.com/fazmzc" rel="nofollow noreferrer">http://prntscr.com/fazmzc</a></p> <p>Please...
<p>I am also faced the same error problem when running ng serve in angular 4. I resolved the issue by change the port no.(default: <a href="http://localhost:4200" rel="nofollow noreferrer">http://localhost:4200</a>)</p> <p>instead of "ng serve"</p> <p>try the below code,</p> <p>ng serve --host 0.0.0.0 --port 4201</p...
Error on starting the angular 2 app "getaddrinfo enoent"
javascript|angularjs|node.js|html|angular2-template
-1
332
1
47,608,932
47,608,932
1
true
2017-05-23T02:56:09.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error on starting the angular 2 app "getaddrinfo enoent"<p>I am new in Angular 2. </p> <p>On starting the Angular 2 application in CLI with ng-serve. I am ...
38,026,929
How to manually enable android hardware acceleration after setContentView?<p>In my SplashActivity, sometimes it will display a image view , and sometimes it will display gif. I use <a href="https://github.com/koral--/android-gif-drawable" rel="nofollow">android-gif-drawable</a> to play gif. But I found, if I don't set ...
<p>If you enable hardware accelerated that way after <code>setContentView</code>, you must use <code>WindowManager</code> to add view. Otherwise, it will not work at all. Hope to help you.</p>
How to manually enable android hardware acceleration after setContentView?
android|gif
-1
280
1
38,493,567
38,493,567
0
true
2016-06-25T09:24:04.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to manually enable android hardware acceleration after setContentView?<p>In my SplashActivity, sometimes it will display a image view , and sometimes it ...
37,855,113
Drag and Drop from Explorer to Application on Windows Server 2012 R2 not working<p>i have a c# application where i can drag and drop files from explorer to a treeview. on our old windows server 2008 r2 everything is working fine. the application is NOT elevated!</p> <p>however on the new windows server 2012 r2 the dra...
<p>the problem was the old Microsoft.Office.Interop.Outlook PIA, which is not working anymore on the new server.<br> changing it to the .COM reference solved it</p>
Drag and Drop from Explorer to Application on Windows Server 2012 R2 not working
c#|drag-and-drop|windows-server-2012-r2
-1
534
1
38,737,790
38,737,790
0
true
2016-06-16T09:27:32.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Drag and Drop from Explorer to Application on Windows Server 2012 R2 not working<p>i have a c# application where i can drag and drop files from explorer to a...
38,031,879
Use of loops and seasonal adjustment in R with multivariate timeseries<p>My goal is to adjust data seasonally and save only seasonal factors. My data consists of 60+ time series. As you see, one of my problems is that there is a lot of time series that I need to adjust at once. Here’s my try to do this in R:</p> <pre...
<p>Well, time passed, and now I'm able to give an answer to the questions. I needed to adjust seasonally a lot a data simultaneously and then to recalculate them at one time.</p> <ol> <li><p>Firstly, one problem was that the result of seasonal adjustment was saved as list. The answer is in using fuction <code>final</c...
Use of loops and seasonal adjustment in R with multivariate timeseries
r|loops|time-series
-1
527
1
38,478,216
38,478,216
3
true
2016-06-25T18:52:00.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use of loops and seasonal adjustment in R with multivariate timeseries<p>My goal is to adjust data seasonally and save only seasonal factors. My data consis...
37,843,354
Count cells in row relative to max(A) (most current date) in first column<p>The image below shows a sample of what I'm trying to accomplish.</p> <p><a href="https://i.stack.imgur.com/j7QW6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j7QW6.png" alt="Sheet Image"></a></p> <p>Basically I need a fo...
<p>You can use </p> <pre><code>=sum(arrayformula(if(array_constrain(sort(A2:F, 1, false), 1, 6) = "PRESENT", 1, 0))) </code></pre> <p>Explanation: </p> <ol> <li><code>sort</code> sorts the range A2:F by the first column, descending order. So the most recent entry is first.</li> <li><code>array_constrain</code> keeps...
Count cells in row relative to max(A) (most current date) in first column
google-sheets
-1
22
1
37,852,483
37,852,483
0
true
2016-06-15T18:41:15.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Count cells in row relative to max(A) (most current date) in first column<p>The image below shows a sample of what I'm trying to accomplish.</p> <p><a href=...
37,844,780
Method to check if Wifi is Connected with in class<p>I want to check if wifi is connected or not when the button is clicked as well as show a pop up message so i have written a separate class for it : </p> <p>public class Pop extends Activity {</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceSat...
<p><strong>Try this</strong></p> <p>add permission <code>&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;</code></p> <p><strong>in your <code>MainActivity.java</code></strong></p> <pre><code>ConnectivityManager connManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_...
Method to check if Wifi is Connected with in class
java|android|methods|android-wifi|wifimanager
-1
271
2
37,852,758
37,852,758
0
true
2016-06-15T20:06:42.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Method to check if Wifi is Connected with in class<p>I want to check if wifi is connected or not when the button is clicked as well as show a pop up message ...
37,739,126
CrossContext exception on native to managed boundary<p>I have developed managed C++ application which return an object of <code>ManagedSubscription</code> to C# clients.<br> <code>ManagedSubscription</code> receives a callback from C# clients, internally makes its own callback to communicate to native C++ code.<br> Whi...
<p>I got quiet helpful answer from other sites on my same problem: I thought to share this here as well. Here is link for that:</p> <p>[<a href="https://msdn.microsoft.com/en-us/library/367eeye0.aspx][1]" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/367eeye0.aspx][1]</a> says it is not necessary ...
CrossContext exception on native to managed boundary
c++|.net|callback|c++-cli|mixed-mode
-1
531
1
37,853,557
37,853,557
0
true
2016-06-10T02:42:30Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CrossContext exception on native to managed boundary<p>I have developed managed C++ application which return an object of <code>ManagedSubscription</code> to...
37,853,478
Get link value in div<p>I have a link in a div like this :</p> <pre><code>&lt;div id="select-document-themes" class="dropdown"&gt; &lt;a class="btn sort sort-down" href="#"&gt;All&lt;/a&gt; &lt;/div&gt; </code></pre> <p>How do you select "All" with jQuery or Javascript please?</p> <p>Thanks !</p>
<p>Try this : -</p> <pre><code>var txt = $("#select-document-themes .btn").text() </code></pre>
Get link value in div
selector
-1
18
1
37,853,726
37,853,726
0
true
2016-06-16T08:13:02.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get link value in div<p>I have a link in a div like this :</p> <pre><code>&lt;div id="select-document-themes" class="dropdown"&gt; &lt;a cla...
37,835,201
Form to Store $request and back to view in laravel<p>I have a form that posts to a the store function in my Controller called Summary.</p> <p>Store Function ( standard with laravel 5.2)</p> <pre><code>public function store(Request $request) </code></pre> <p>If i use </p> <pre><code>return $request-&gt;all() </code>...
<p>I think what you are wanting to do is share functions within your class. take a look at this documentation. <a href="https://laravel.com/docs/master/controllers" rel="nofollow">Laravel Controllers</a></p>
Form to Store $request and back to view in laravel
laravel
-1
515
1
37,854,945
37,854,945
0
true
2016-06-15T12:15:51.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Form to Store $request and back to view in laravel<p>I have a form that posts to a the store function in my Controller called Summary.</p> <p>Store Function...
37,864,107
Prevent another command from exiting Windows CLI<p>I am trying to build a Windows .bat script that includes several commands:</p> <pre><code>ionic state restore ECHO done restoring state </code></pre> <p>However, the "ionic state restore" command appears to be exiting out of my control so that I do not see the ECHO o...
<p>Found the solution with CALL:</p> <blockquote> <p>The CALL command will launch a new batch file context along with any specified parameters. When the end of the second batch file is reached (or if EXIT is used), control will return to just after the initial CALL statement.</p> </blockquote> <p><strong>Source</st...
Prevent another command from exiting Windows CLI
windows|command-line-interface
-1
19
1
37,864,390
37,864,390
0
true
2016-06-16T16:00:08.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Prevent another command from exiting Windows CLI<p>I am trying to build a Windows .bat script that includes several commands:</p> <pre><code>ionic state res...
37,864,370
Check if there are any more elements like parent - jQuery<p>I want to create a condition to check if there is iany row in the table or the row is the only one left.</p> <p>So, I have:</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;AAAAAAA&lt;/td&gt;&lt;td&gt;&lt;a class="btn-row-delete"&gt;DELETE&lt;/...
<p>You could just check the length of the array which contains the <code>&lt;tr&gt;</code> elements.</p> <pre><code>if($('table tr').length&gt;1) $(this).closest('tr').remove(); </code></pre>
Check if there are any more elements like parent - jQuery
jquery
-1
31
2
37,864,454
37,864,454
0
true
2016-06-16T16:12:24.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if there are any more elements like parent - jQuery<p>I want to create a condition to check if there is iany row in the table or the row is the only on...
37,872,592
How to add dynamic element jquery?<p>I have this html code</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Agenda&lt;/title&gt; &lt;link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"&gt; &lt;link href="css/agenda.css" rel="style...
<p>Hi please check this link </p> <pre><code>https://plnkr.co/edit/B2Nmf5wzKBqHypnLFc59 </code></pre> <p>HTML</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;title&gt;&lt;/title&gt; &lt;link rel="stylesheet" href="style.css" /&gt; &lt;link rel="sty...
How to add dynamic element jquery?
jquery|html
-1
62
2
37,872,802
37,872,802
0
true
2016-06-17T03:24:10.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add dynamic element jquery?<p>I have this html code</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UT...
37,853,059
PHP script to download root folder from EC2?<p>Is it possible to download /var/www/html folder from EC2 using a PHP script? I normally use Filezila (SSH) to download the root directory to my local machine from EC2.</p>
<p>Yes, but PHP is definitely not the ideal way to do this.</p> <p>In order to copy files from the remove EC2 server to your local computer, rsync is a very good choice:</p> <pre><code>rsync -ahv --progress user@your.server:/var/www/html/* /where/you/want/it/on/your/local/computer/ </code></pre> <p>This will copy th...
PHP script to download root folder from EC2?
php|amazon-ec2
-1
36
1
37,879,357
37,879,357
0
true
2016-06-16T07:52:41.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP script to download root folder from EC2?<p>Is it possible to download /var/www/html folder from EC2 using a PHP script? I normally use Filezila (SSH) to ...
37,815,074
How can i use idUser in a password_resets (laravel 5.2)<p>I want to use the table password_resets that I obtained with the comand php artisan make:auth, but this table use the "email" and this is not right because if my users change their email in their profile then is a problem to identify them, i want to use the "<st...
<p>thanks for your answer, finally I solved doing this:</p> <p>Dirección: ...vendor/laravel/....DatabaseTokenRepository.php</p> <pre><code>/** * Create a new token record. * * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return string */ public function create(CanResetPasswordContract $user) { ...
How can i use idUser in a password_resets (laravel 5.2)
php|laravel|laravel-5.2
-1
555
2
37,880,272
37,880,272
0
true
2016-06-14T14:36:46.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i use idUser in a password_resets (laravel 5.2)<p>I want to use the table password_resets that I obtained with the comand php artisan make:auth, but ...
37,889,139
I've been trying to get sublim text 2 to build my html projet with chrome and it doesn't seem to work,<pre><code>{ "cmd": ["open" "-a" "Google Chrome" "$file"] </code></pre> <p>}</p> <p>that's the code I'm using.</p> <p>And here is the error I get:</p> <p>Error trying to parse build systems: Unexpected character, e...
<p>You need to add commas</p> <pre><code> "cmd": ["open", "-a", "Google Chrome", "$file"] </code></pre> <p>EDIT: And if I remember well there is an <em>View in Browser</em> package for sublime so check that too</p>
I've been trying to get sublim text 2 to build my html projet with chrome and it doesn't seem to work,
html|google-chrome|sublimetext2
-1
38
1
37,889,386
37,889,386
0
true
2016-06-17T19:34:27.250Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I've been trying to get sublim text 2 to build my html projet with chrome and it doesn't seem to work,<pre><code>{ "cmd": ["open" "-a" "Google Chrome" "$file...
37,888,290
accessing CSV file in d3.js with no header row<p>I have a CSV file with data as such:</p> <pre><code>,tests,Mary,Joe,Frank 0,Test1,92,15,72 1,Test2,74,25,70 2,Test3,30,65,50 3,Test4,82,80,48 </code></pre> <p>this data has been taken from a space delimited text file, converted into a dataframe in <code>pandas</code>...
<p>First off, your CSV will not work as you haven't got a name for the first element in the header.</p> <p>If you did, and you read the first element of the dataset you will get something like :</p> <pre><code>randomname(this i made up) : 0 tests : Test1 mary : 92 joe : 15 frank : 72 </code></pre> <p>So to get it in...
accessing CSV file in d3.js with no header row
javascript|python|csv|d3.js
-1
305
1
37,890,261
37,890,261
0
true
2016-06-17T18:41:12.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: accessing CSV file in d3.js with no header row<p>I have a CSV file with data as such:</p> <pre><code>,tests,Mary,Joe,Frank 0,Test1,92,15,72 1,Test2,74,25,70...
37,905,998
Why does my GridView control in c# aspnet display an old table below the new table?<p>The objective i'm trying to achieve is to display filtered data in the same gridcontrol. So what I do is e.g A-DROPDOWN clicked, display XDATA in GRIDVIEW1. Then FilterA selected, this filter calls the "ADROPDOWN" clicked event agai...
<p>SOLVED !!!</p> <p>Incase it is of help to someone. my update panel in my front end was only updating the gridview, not the table where the grid view was located . I simple made it so that my entire table where the gridview was located was updating. Many thanks.</p>
Why does my GridView control in c# aspnet display an old table below the new table?
c#|mysql|asp.net|gridview|gridcontrol
-1
24
1
37,906,760
37,906,760
0
true
2016-06-19T09:59:42.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does my GridView control in c# aspnet display an old table below the new table?<p>The objective i'm trying to achieve is to display filtered data in the...
37,879,537
Concerns about Facebook integration in website. access-token<p>First of all I use express and passport. I was wondering if I go with that method why I don't need to include the javascript "SDK" that a read about on the developer site. I'm a little confused why passport doesn't discuss the SDK. I guess because the SDK i...
<ol> <li>Why don't I need the Facebook Javascript SDK with PassportJS?</li> </ol> <p>Facebook's client-side SDK allows you to get authentication (<code>FB.api('/me')</code>) and session data (<code>FB.getLoginState</code>) directly from Facebook and set it in the client-side's cookies. When using Passport, passport.j...
Concerns about Facebook integration in website. access-token
javascript|node.js|facebook|authentication|passport.js
-1
45
1
37,909,823
37,909,823
0
true
2016-06-17T10:41:30.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Concerns about Facebook integration in website. access-token<p>First of all I use express and passport. I was wondering if I go with that method why I don't ...
37,911,037
Make nav bar change color on scroll?<p>It's complicated to put it in words, but here I go. Alright so at the moment I'm working on a project that requires me too do one thing. That thing being when the nav bar gets too a certain point I want the color to change. So let's say I have a nav bar white, and underneath that ...
<p>I don't think you can do it with HTML/CSS but this work </p> <p><strong>Javascript/jQuery</strong></p> <pre><code>$( window ).scroll(function() { if ($( window ).scrollTop() &gt; 500) { $('.nav').addClass('updated-color') } else { $('.nav').removeClass('updated-color') } }) </code></pre> <p><strong>...
Make nav bar change color on scroll?
html|css
-1
45
1
37,911,073
37,911,073
0
true
2016-06-19T19:30:36.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make nav bar change color on scroll?<p>It's complicated to put it in words, but here I go. Alright so at the moment I'm working on a project that requires me...
37,904,703
Highlight Current Navbar Link?<p><strong>Update!</strong></p> <p>I've done about 4 hours more research and have designed my code to work without having hard-coded directories/paths.</p> <p>The idea is that the <code>currentLinkFunction()</code> function is called from the <code>onload</code> attribute in the <code>&l...
<p>The issue is that the script is being called for every element.</p> <p>The solution is to use this script once and loop through each element of the <code>nav-link</code> class.</p> <pre><code>var i = 0; var navLinkCount = document.getElementsByClassName("nav-link"); for (i; i &lt; navLinkCount.length; i = i + 1) ...
Highlight Current Navbar Link?
javascript|html|css
-1
540
2
37,912,632
37,912,632
0
true
2016-06-19T06:52:56.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Highlight Current Navbar Link?<p><strong>Update!</strong></p> <p>I've done about 4 hours more research and have designed my code to work without having hard...
37,919,048
Mongodb does not use index when value is null<p>I have created index for three attributes - a:1, b:1, c:-1</p> <p>When searching for:</p> <pre><code>{a: false, b: null, c: {"$lt" : ISODate("2016-06-19T12:19:37.177Z")}} </code></pre> <p>Mongo uses created index, but still needs to fetch "b". So index is used only for...
<p>After some research I have learned that indexing and searching for null works exactly the same way like for other values. </p> <p>Anyway when doing explain you can notice that for "null" you have extra stage called "FETCH" that can be quite confusing. Despite that number of docs/keys examined is exactly the same (t...
Mongodb does not use index when value is null
mongodb|optimization|indexing
-1
47
1
37,922,060
37,922,060
0
true
2016-06-20T09:32:53.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Mongodb does not use index when value is null<p>I have created index for three attributes - a:1, b:1, c:-1</p> <p>When searching for:</p> <pre><code>{a: fa...
37,922,500
How do i copy data ,if i assigned one number to each row in one column,map this column data with another column using number in 3rd column in VBA?<p><a href="https://i.stack.imgur.com/mLbrh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mLbrh.jpg" alt="enter image description here"></a></p> <p>Depe...
<p>This should be what you're after</p> <pre><code>Dim findMappingNo As Range Dim mapNum As Integer For i = 2 to 11 Range("A" &amp; i).Copy Destination:= Range("H" &amp; i) mapNum = Range("D" &amp; i).Value Set findMappingNo = Range("B2:B11").Find(what:=mapNum) If Not findMappingNo Is Nothing Then ...
How do i copy data ,if i assigned one number to each row in one column,map this column data with another column using number in 3rd column in VBA?
vba|excel
-1
35
1
37,923,165
37,923,165
0
true
2016-06-20T12:22:33.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do i copy data ,if i assigned one number to each row in one column,map this column data with another column using number in 3rd column in VBA?<p><a href=...
37,924,462
Assigning variable amounts of new Objects<p>I am trying to create a JMenu using names grabbed from tables of a database, so the amount of JMenu items is going to be variable. </p> <pre><code>public static JMenuBar drawMenuBar(){ ArrayList List = grabSQLTableNames(); JMenuBar menu = new JMenuBar(); JMen...
<p>Would something like this work?</p> <pre><code>for (int i = 0; i &lt; List.size(); i++) { JMenuItem item = new JMenuItem(List.get(i)); contracts.add(item); } </code></pre> <p>Also, I highly recommend changing <code>List</code> to <code>list</code></p>
Assigning variable amounts of new Objects
java
-1
25
1
37,924,775
37,924,775
0
true
2016-06-20T13:58:41.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Assigning variable amounts of new Objects<p>I am trying to create a JMenu using names grabbed from tables of a database, so the amount of JMenu items is goin...
37,928,883
Run nodejs functions from a web server<p>I'm running a web server on raspberry pi and I want to call a node.js function when clicking on a button on a page. Is there a way of doing that?</p>
<p>Yes.</p> <p>You need to have a Node app listening on some port on your server. The simplest way would be to have a very simple Express app, for example:</p> <pre><code>var app = require('express')(); app.post('/some/path', function (req, res) { // call your function here }); app.listen(3000, function () { ...
Run nodejs functions from a web server
node.js|raspberry-pi|webserver
-1
38
1
37,929,093
37,929,093
0
true
2016-06-20T17:56:35.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Run nodejs functions from a web server<p>I'm running a web server on raspberry pi and I want to call a node.js function when clicking on a button on a page. ...
37,910,045
Autoposting on facebook page<p>I am trying to create a simple web app, that when someone posts a message in the app, automatically posts an info about it on a facebook page. Ideally it would use a permanent token for the posting.</p> <p>I have created an app and a page, and obtained a page access token using the app s...
<p>I have found a way with a help from people on IRC. This is the flow that can be used:</p> <p>Go to Graph API explorer. Select your application from the upper dropdown. Select your page from the bottom dropdown (generate page access token). Select the 'Request publish pages' option. Copy the access token. Now exchan...
Autoposting on facebook page
facebook|api|facebook-graph-api|oauth
-1
263
2
37,937,086
37,937,086
0
true
2016-06-19T17:41:58.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Autoposting on facebook page<p>I am trying to create a simple web app, that when someone posts a message in the app, automatically posts an info about it on ...
37,940,585
Alert Dialog show when clicked on drop down list in Button<p>I have a button that when clicked show drop down list, in that I have 2 menu, Feedback menu and Log Out menu</p> <pre><code>mRightButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Popup...
<p>Instead of <code>this</code>, add <code>YourActivity.this</code>.</p> <p>Like</p> <pre><code>AlertDialog.Builder alertDialog = new AlertDialog.Builder(YourActivity.this); </code></pre>
Alert Dialog show when clicked on drop down list in Button
android|drop-down-menu|android-alertdialog|android-button
-1
785
1
37,940,714
37,940,714
0
true
2016-06-21T09:29:52.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Alert Dialog show when clicked on drop down list in Button<p>I have a button that when clicked show drop down list, in that I have 2 menu, Feedback menu and ...
37,941,272
Inserting an image in a Word document from add-in where the image type is not yet known<p>Inserting an image in a Word document from add-in where the image type is not yet known. I'm trying to insert an image in a Word document from an Add-in in the Word 2016 client. However, I cannot use the way described here: <a ...
<p>While you could figure out programmatically in JS wat type the image file is and then prepend the right format to the base64 string, an easier way might be to actually use the SetSelectedDataAsync function together with the Office.CoercionType.Html instead. In that way Word will simply insert whatever html is there ...
Inserting an image in a Word document from add-in where the image type is not yet known
windows|add-in
-1
44
1
37,946,600
37,946,600
0
true
2016-06-21T09:59:42.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Inserting an image in a Word document from add-in where the image type is not yet known<p>Inserting an image in a Word document from add-in where the image t...
37,952,847
When I hover over the menu item, i want to display the line at bottom? What is wrong with my code?<p>When i hover over menu item it displays the line (border) at bottom, but the problem is that it pushes down the border of the <code>ul</code>, i want that when i hover over menu item it displays the <strong>border-botto...
<p>One method to solve this is write</p> <pre><code>.menu li { border-bottom: 2px solid transparent; } .menu li:hover { border-color: red; } </code></pre>
When I hover over the menu item, i want to display the line at bottom? What is wrong with my code?
html|css|hover
-1
258
3
37,953,447
37,953,447
0
true
2016-06-21T19:18:20.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: When I hover over the menu item, i want to display the line at bottom? What is wrong with my code?<p>When i hover over menu item it displays the line (border...
37,955,639
My queries aren't working<p><a href="https://i.stack.imgur.com/7nWhA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7nWhA.png" alt="enter image description here"></a></p> <p>Hey everyone I'm trying to do these 2 queries but I can't seem to get them right. I'm not sure what I'm doing wrong, can anyo...
<p>a. You have to join both Student and Result table like </p> <pre><code>SELECT * FROM Result r JOIN Student s ON r.SID = s.SID WHERE s.Faculty = 'Business' </code></pre> <p>b. The question is not clear or the expectation is wrong. You cannot display columns like ( Sid, name etc) , but only the columns in Group clau...
My queries aren't working
sql|subquery|libreoffice-base
-1
70
2
37,955,739
37,955,739
0
true
2016-06-21T22:30:40.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: My queries aren't working<p><a href="https://i.stack.imgur.com/7nWhA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7nWhA.png" alt="enter...
37,904,635
how to load swf as2 in android?<p>I have some swf files in as2 format. I wrote a loader in as3 format that loads my as2 files. It is correct in windows but doesn't work in android. I know Adobe air android doesn't support as2.</p>
<p>The Android AIR runtime does not include the AS2 virtual machine - so it doesn't know how to play AS2 content.</p> <p>It is possible to get AS2 into an AIR for Android app, however this only works via the browser, and the browser needs to have a Flash player.</p> <p>If you plan to keep using actionscript The best...
how to load swf as2 in android?
android|flash|actionscript-2
-1
264
1
37,966,436
37,966,436
0
true
2016-06-19T06:42:22.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to load swf as2 in android?<p>I have some swf files in as2 format. I wrote a loader in as3 format that loads my as2 files. It is correct in windows but d...
37,881,876
Shipyard not showing containers after docker daemon switch to TCP port<p>I've switched docker daemon to listen on TCP port (<a href="https://stackoverflow.com/questions/37881599/docker-command-cli-defaulting-to-port-instead-of-socket/37881686">more here</a>). Docker command (cli) is already working, but when I run ship...
<p>Solution was to configure the service (in my case on CentOs)</p> <p>creating file <code>/etc/systemd/system/docker.service.d/override.conf</code> with content</p> <p><code> [Service] ExecStart= ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H fd:// --insecure-registry 10.0.1.70:5000 </code></p> <p>and re...
Shipyard not showing containers after docker daemon switch to TCP port
docker|docker-compose
-1
281
1
37,994,687
37,994,687
0
true
2016-06-17T12:43:02.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Shipyard not showing containers after docker daemon switch to TCP port<p>I've switched docker daemon to listen on TCP port (<a href="https://stackoverflow.co...
37,996,731
Extracting article links only using jsoup<p>I am trying to use JSoup to extract links of articles from stock symbols.</p> <p>For example on this page: <a href="http://finance.yahoo.com/q/p?s=+AAPL+Press+Releases" rel="nofollow">http://finance.yahoo.com/q/p?s=+AAPL+Press+Releases</a> there are a bunch of press release ...
<p>Try this code: </p> <pre><code> Document document = Jsoup.connect("http://finance.yahoo.com/q/p?s=+AAPL+Press+Releases") .get(); Element div = document.select("div.mod.yfi_quote_headline.withsky").first(); Elements aHref = div.select("a[href]"); for(Element element : aHref...
Extracting article links only using jsoup
java|html|jsoup
-1
79
1
37,997,398
37,997,398
0
true
2016-06-23T16:08:27.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extracting article links only using jsoup<p>I am trying to use JSoup to extract links of articles from stock symbols.</p> <p>For example on this page: <a hr...
38,002,831
Array List Taking only One element<p>HI I am trying to execute the following code snippet </p> <pre><code> dim lst(10) as string dim arlist As New ArrayList Dim dr As SqlDataReader = cmd.ExecuteReader() While dr.Read() lst(0) = dr(0).ToString() lst(1) = dr(1).ToSt...
<p>This is happening because the reference of the current instance of the <code>lst</code> is added to the <code>ArrayList</code> so the modification you made in the lst will affect in the ArrayList too. And hence you will get the Last value repeated in all index of the arrayList. What you can do is, define the <code>l...
Array List Taking only One element
arrays|vb.net|arraylist
-1
42
1
38,004,953
38,004,953
0
true
2016-06-23T22:20:31.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Array List Taking only One element<p>HI I am trying to execute the following code snippet </p> <pre><code> dim lst(10) as string dim arlist A...
37,995,138
Bootstrap calendar get currently showing events<p>I'm currently working on this project where I need to show events in a calendar and in tiles. </p> <p>Everything from this calendar is working, but I wonder if there is any way to get the elements that are currently shown. What I mean is: you select a week, in this wee...
<p>If anyone comes across this article and needs the answer, the function</p> <pre><code>calendar.options.events </code></pre> <p>returns an array that contains the event objects.</p>
Bootstrap calendar get currently showing events
jquery|twitter-bootstrap|calendar
-1
53
1
38,008,878
38,008,878
0
true
2016-06-23T14:53:12.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bootstrap calendar get currently showing events<p>I'm currently working on this project where I need to show events in a calendar and in tiles. </p> <p>Ever...
38,010,379
Unable make table responsive using Bootstrap<p>I have no idea of Bootstrap. Can you guide me how to make one table responsive. how to make this body responsive?</p> <pre><code> &lt;body style="background-color:#F1F3F6 "&gt; &lt;div align="center"&gt; &lt;h1 style="color:#0083CA;"&gt; &lt...
<p><a href="http://getbootstrap.com/css/#tables-responsive" rel="nofollow"><strong>Read a Manual: Responsive tables</strong></a></p> <blockquote> <p>Create responsive tables by wrapping any <code>.table</code> in <code>.table-responsive</code> to make them scroll horizontally on small devices (under <code>768px</cod...
Unable make table responsive using Bootstrap
html|css|twitter-bootstrap
-1
266
2
38,010,442
38,010,442
0
true
2016-06-24T09:46:24.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable make table responsive using Bootstrap<p>I have no idea of Bootstrap. Can you guide me how to make one table responsive. how to make this body responsi...
38,010,828
How to remove "copy" folder in linux terminal<pre><code>rm -r demo (copy); </code></pre> <p>The error is:</p> <blockquote> <p>No such file or directory</p> </blockquote> <p>But the directory is there. How to remove it?</p>
<p>you need to escape yor path string:</p> <p><code>rm -r demo\ \(copy\)</code></p>
How to remove "copy" folder in linux terminal
linux|shell
-1
79
3
38,010,902
38,010,902
0
true
2016-06-24T10:08:11.810Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove "copy" folder in linux terminal<pre><code>rm -r demo (copy); </code></pre> <p>The error is:</p> <blockquote> <p>No such file or directory</...
38,011,523
Python format a string with a double inside quote with a dict<p>Why formatting with a dict when there is a double quote in the string fails?</p> <pre><code>'%(x)"%(y)' % {'x': 1, 'y':2} Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ValueError: unsupported format character '"' ...
<p>Just as you use <code>%s</code>, you should use <code>%(x)s</code>. Just as <code>%"</code> is wrong, <code>%(x)"</code> is wrong. You just need to add that little <code>s</code>:</p> <pre><code>'%(x)s"%(y)s' % {'x': 1, 'y':2} </code></pre> <p>That letter is required for the same reason it is required in normal ...
Python format a string with a double inside quote with a dict
python|string|string-formatting
-1
306
2
38,011,568
38,011,568
0
true
2016-06-24T10:45:20.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python format a string with a double inside quote with a dict<p>Why formatting with a dict when there is a double quote in the string fails?</p> <pre><code>...
38,011,479
XML data save in NSUserDefaults or in Documents Directory<p>I am making an simple news app, and trying to save (title, description, date, image with its data) in NSUserDefaults for offline read. I want when it save data in NSUserDefaults, it shows in offline and also when new data is available it rewrite or replace wit...
<p>In order to save images to NSUserDefaults you will need to turn it into NSData as there are only certain types that are allowed in there. </p> <p>As for the idea of storing information in there for offline viewing.... That sounds more like a job for the Applications Document directory. You should be able to use t...
XML data save in NSUserDefaults or in Documents Directory
ios|swift|swift2|nsuserdefaults|nsdocumentdirectory
-1
324
2
38,012,207
38,012,207
0
true
2016-06-24T10:42:16.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: XML data save in NSUserDefaults or in Documents Directory<p>I am making an simple news app, and trying to save (title, description, date, image with its data...
38,010,487
Apache server not going online on ubuntu<p>I have done all steps to make my apache2 server to work online but failed to do . My isp has not blocked port 80 and i have also forwarded my routers port 80. Please help me . Thanks in advance.</p>
<p>If your website is accessible in your LAN, the most probable issue is coming from your nat translation rule.</p> <p>Also verify your local firewall on your webserver with :</p> <pre><code>sudo iptables -L </code></pre>
Apache server not going online on ubuntu
linux|apache|ubuntu|server|port
-1
71
1
38,012,582
38,012,582
0
true
2016-06-24T09:51:47.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apache server not going online on ubuntu<p>I have done all steps to make my apache2 server to work online but failed to do . My isp has not blocked port 80 ...
38,013,592
How to sort result based on matching<p>I have this problem with <a href="http://mystockalarm.com" rel="nofollow">this site</a> where user can search by stock symbol or stock name</p> <p>If it matchs exact with a symbol, results need to be displayed first then the remaining.</p> <p>Table structure is like this : <code...
<p>You can use e.g.</p> <pre><code>select symbol, stockname from yourtable where ... order by (symbol = 'eta') desc </code></pre> <p><code>(symbol = 'eta')</code> will have the value 1 when it matches, 0 if it doesn't match.</p>
How to sort result based on matching
mysql|search
-1
22
1
38,014,251
38,014,251
0
true
2016-06-24T12:34:43.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to sort result based on matching<p>I have this problem with <a href="http://mystockalarm.com" rel="nofollow">this site</a> where user can search by stock...
38,015,452
How do <scripts> load inside of comment tags?<p>The following code is in head section of a page:</p> <pre><code>&lt;!--[if lt IE 9]&gt; &lt;script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"&gt;&lt;/script&gt; &lt;script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"&gt;&l...
<p>It's called Conditional Comments</p> <p><a href="https://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx</a> <a href="http://www.quirksmode.org/css/condcom.html" rel="nofollow">http://www.quirksmode.org/css/condcom.html</a></p> ...
How do <scripts> load inside of comment tags?
html|internet-explorer|script-tag
-1
21
2
38,015,482
38,015,482
0
true
2016-06-24T14:10:14.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do <scripts> load inside of comment tags?<p>The following code is in head section of a page:</p> <pre><code>&lt;!--[if lt IE 9]&gt; &lt;script src="...
37,982,740
Using Google Map APIs<p>I am currently working on a personal project to develop a REST API which would perform tasks similar to what UBER, OLA like taxi aggregators do. Below is the brief about the functionality that I plan to add:</p> <p>1)I have a fleet of cabs whose location is determined by its latitude and longit...
<p>You may use the following references:</p> <ul> <li>Choose from the <a href="https://developers.google.com/maps/documentation/" rel="nofollow">Google Maps APIs</a> documentations depending on your needs. There are actually tutorials given within the documentations.</li> <li>Answers to <a href="https://developers.goo...
Using Google Map APIs
rest|google-maps-api-3
-1
68
1
38,018,253
38,018,253
0
true
2016-06-23T05:05:51.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Google Map APIs<p>I am currently working on a personal project to develop a REST API which would perform tasks similar to what UBER, OLA like taxi aggr...
38,024,895
Why can't I set a variable on my custom class?<p>I'm creating my first iOS app in Swift, and I'm stuck on a basic thing. I want to create a custom class and set a variable. I keep seeing the error "Value of type [Item] has no member [name]. </p> <p>This is my custom class:</p> <pre><code>import UIKit import Foundatio...
<p><em>listItem</em> is an array of <strong>Item</strong>, so if you want to change the name of one thing in this list you should specify the index you wanna change, like </p> <pre><code>listItem[0].name = "text" </code></pre>
Why can't I set a variable on my custom class?
ios|xcode|swift
-1
62
3
38,024,932
38,024,932
0
true
2016-06-25T04:18:07.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why can't I set a variable on my custom class?<p>I'm creating my first iOS app in Swift, and I'm stuck on a basic thing. I want to create a custom class and ...
38,024,910
What is the purpose of delete $get prop in angular Provider?<p>I saw a piece of code about Angular's Provider like below:</p> <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>angul...
<p>Apparently, the author of this provider thought it was a good idea to return the provider itself from the $get method. So, the service created by the provider is the provider itself.</p> <p>Since $get should obviously not be part of the methods of the service, but only of the methods of the provider, he/she removed...
What is the purpose of delete $get prop in angular Provider?
angularjs
-1
30
1
38,025,883
38,025,883
0
true
2016-06-25T04:20:20.493Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the purpose of delete $get prop in angular Provider?<p>I saw a piece of code about Angular's Provider like below:</p> <p><div class="snippet" data-l...
38,027,495
Making table and it's content via JavaScript<p>Hw to download arr content into the table cells from left to right and from up to down? What is wrong with my code? How to solve the problem? Thanks in advance.</p> <pre><code> &lt;button onclick="myFunction()&gt;&lt;/button&gt; &lt;table id="myTable" border='1px'&gt;...
<p>Well i am not sure about your data structure but if you get your data in the following form.</p> <pre><code>[ { N: 1, Name: 2, Surname: 3, Tel: 4, email: 'a' }, { N: 5, Name: 6, Surname: 7, Tel: 8, email: 'b' }, { N: 9, Name: 10, Surname: 11, Tel: 12, email: 'c' } ] </code></pre> <p>You can use the following <...
Making table and it's content via JavaScript
javascript
-1
24
1
38,027,647
38,027,647
0
true
2016-06-25T10:34:51.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Making table and it's content via JavaScript<p>Hw to download arr content into the table cells from left to right and from up to down? What is wrong with m...
38,027,283
Javascript runs function only once<p>The </p> <p><strong>HTML</strong></p> <pre><code>&lt;p&gt;What factorial would you want to calculate?&lt;/p&gt; &lt;input id="factorium" type="number"&gt; &lt;input id="submission" type="submit" value="Calculate"&gt; </code></pre> <p><strong>Javascript</strong></p> <pre><code>fu...
<p>I created a new function that only executes the above code as follows:</p> <pre><code>function getVals(){ var inputBox = document.getElementById('factorium').value; var submission = document.getElementById('submission'); console.log(factorial(inputBox)); } </code></pre> <p>and on the input submit butt...
Javascript runs function only once
javascript
-1
70
3
38,028,262
38,028,262
0
true
2016-06-25T10:06:49.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Javascript runs function only once<p>The </p> <p><strong>HTML</strong></p> <pre><code>&lt;p&gt;What factorial would you want to calculate?&lt;/p&gt; &lt;in...
38,031,911
Android SQLITE not working<p>Guys I was testing my sql code in a demo application but i am getting an error like this:</p> <pre><code>Caused by: android.database.sqlite.SQLiteException: near "Phone": syntax error (code 1): , while compiling: Create table SMS(_id INTEGER PRIMARY KEY AUTOINCREMENT Phone TEXT Msg TEXT Ho...
<p>You're missing all commas between the column definitions. Just print out what you're running. </p>
Android SQLITE not working
database
-1
22
1
38,032,049
38,032,049
0
true
2016-06-25T18:56:20.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android SQLITE not working<p>Guys I was testing my sql code in a demo application but i am getting an error like this:</p> <pre><code>Caused by: android.dat...
38,039,829
How I can make my own command with arguments in cmd?<p>Something like <code>echo hello!</code>.</p> <p>I made only a command that executes immutable code.</p>
<p>you can do so, using parameters. Say, you have a batchfile <code>say.bat</code> which is supposed to be your own implementation of <code>echo</code>, and you want to use it like <code>say hello world</code>.</p> <pre><code>@echo off echo first parameter: %1 echo first parameter: %~1 (without quotes) echo second par...
How I can make my own command with arguments in cmd?
windows|batch-file|cmd|command
-1
55
1
38,041,674
38,041,674
0
true
2016-06-26T15:04:23.343Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How I can make my own command with arguments in cmd?<p>Something like <code>echo hello!</code>.</p> <p>I made only a command that executes immutable code.</...
37,988,839
Can't receive e-mail from external server<p>I'm trying to make my email server.<br/> I used <a href="http://www.krizna.com/ubuntu/setup-mail-server-ubuntu-14-04/#postfix" rel="nofollow">this</a> tutorial.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- I can send message (Yeah !)<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- T...
<p>I had to update DNS settings : change my MX-record. It was my host one and i set it to mymail.fr and mail.mymail.fr</p>
Can't receive e-mail from external server
email|postfix-mta
-1
54
1
38,049,940
38,049,940
0
true
2016-06-23T10:20:17.827Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't receive e-mail from external server<p>I'm trying to make my email server.<br/> I used <a href="http://www.krizna.com/ubuntu/setup-mail-server-ubuntu-14...
38,039,717
c++ debugger stops in wrong place on crash, VS10 win7<p>This is a small program i wrote to reproduce the error i get:</p> <pre><code>#include &lt;assert.h&gt; int main(int argc, char **argv) { int* nPtr = 0; *nPtr = 5; //assert(0 &amp;&amp; "testing"); //static int nZero = 0; //static float x = 5...
<p>I found the answer i was looking for in <a href="http://www.os2museum.com/wp/avx-support-disrupts-wow64-debugging/" rel="nofollow">here</a></p> <p>in short, the AVX causes an error in the call stack after exceptions.</p> <p>you can tern AVX off by:</p> <pre><code>bcdedit /set xsavedisable 1 </code></pre> <p>rest...
c++ debugger stops in wrong place on crash, VS10 win7
c++|debugging|callstack
-1
51
3
38,054,292
38,054,292
0
true
2016-06-26T14:52:52.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: c++ debugger stops in wrong place on crash, VS10 win7<p>This is a small program i wrote to reproduce the error i get:</p> <pre><code>#include &lt;assert.h&g...
38,048,695
How to upload an image to FTP without mulitpart only on FTP client<p>I am trying to upload an image to my FTP what i have done so far is i have successfully invoked the image and i have the image location in</p> <pre><code>file:///storage/sdcard0/Android/data/com.ionicframework.ftptranfer949961/cache/1467013143014.png ...
<p>First thing i notice is that your ping variable holds the file path. Hence you cannot use <code>"/ping"</code> as it will be treated as a string not variable. Try <code>"/" + ping</code>.</p> <p>Also your ping variable just holds the file path not name. So try using <code>"/" + ping + FILE_NAME</code></p> <p>To av...
How to upload an image to FTP without mulitpart only on FTP client
angularjs|cordova|file-upload|ionic-framework|ftp
-1
1,035
1
38,058,490
38,058,490
0
true
2016-06-27T08:02:13.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to upload an image to FTP without mulitpart only on FTP client<p>I am trying to upload an image to my FTP what i have done so far is i have successfully ...
37,743,555
Access to polygon matrix from json files<p>I load polygons from json file using loadGeoJson. In json file I have properties name and id. All Polygons loads correctly on the map. How can I get matrix of all polygons? I need to check that my point containsLocation of one from this polygons. TIA 4 answer</p>
<p>I use :</p> <pre><code>var woj =[]; map.data.addListener('addfeature', function(event) { var adm=event.feature.getProperty('id'); woj.push(adm); }); </code></pre> <p>That solves my problem.</p>
Access to polygon matrix from json files
google-maps|google-maps-api-3
-1
50
1
38,091,271
38,091,271
0
true
2016-06-10T08:32:23.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Access to polygon matrix from json files<p>I load polygons from json file using loadGeoJson. In json file I have properties name and id. All Polygons loads c...
37,771,315
Accessing Azure Virtual Machine (Ubuntu 14.04LTS) using xRDP<p>Yesterday, I setup a new Ubuntu Box with Password (Classic VM) from my Azure Dashboard ( I am using classing Azure dashboard).</p> <p>I am able to login using Putty (it means credentials are working).</p> <p>To access this machine remotely (already setup ...
<p>I repeat these step(s) once again and its working now:</p> <ul> <li>sudo apt-get update</li> <li>sudo apt-get install ubuntu-desktop</li> <li>sudo apt-get install xrdp</li> <li>sudo systemctl start xrdp</li> <li>sudo systemctl enable xrdp</li> <li>sudo apt-get install xfce4</li> </ul> <p>Now do RDP (Run mstsc.exe)...
Accessing Azure Virtual Machine (Ubuntu 14.04LTS) using xRDP
linux|azure|ssh|ubuntu-14.04|remote-access
-1
306
2
38,153,150
38,153,150
0
true
2016-06-12T06:21:44.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Accessing Azure Virtual Machine (Ubuntu 14.04LTS) using xRDP<p>Yesterday, I setup a new Ubuntu Box with Password (Classic VM) from my Azure Dashboard ( I am ...
37,718,990
how can i store Foreign id in user table<p>Here is my Controller:-</p> <pre><code> [HttpPost] public ActionResult Registor(User_CV cvfiles, User_CVviewModel cvmodel, User_Account useraccount,RegisterModel model) { if (ModelState.IsValid) { int count = ...
<pre><code> db.User_Account.Add(new User_Account { Full_Name = model.Full_Name, Email = model.Email, Contact_No = model.Contact_No, Password = m...
how can i store Foreign id in user table
asp.net-mvc|razor
-1
30
2
38,430,824
38,430,824
0
true
2016-06-09T07:04:35.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can i store Foreign id in user table<p>Here is my Controller:-</p> <pre><code> [HttpPost] public ActionResult Registor(User_CV cvfiles, U...
37,869,087
openMPI Compiler error when trying to create vector of random Integers<p>I'm trying to create a vector of random integers but when I try to compile with <code>mpic++</code> it gives an error that leads me to believe my compiler doesn't like the <code>#include &lt;random&gt;</code>. Below is the code I'm trying compile...
<p>Do as the compiler suggests and use <code>std</code> flag:</p> <pre><code>-std=c++11 </code></pre> <p>Header <code>random</code> is really a C++11 extension. This issue is not related to openMPI.</p>
openMPI Compiler error when trying to create vector of random Integers
c++|c++11
-1
36
1
37,869,198
37,869,198
1
true
2016-06-16T20:48:05.380Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: openMPI Compiler error when trying to create vector of random Integers<p>I'm trying to create a vector of random integers but when I try to compile with <cod...
37,880,814
Stack panels not auto stretching<p>I have to confess that at this point I don't actually know if I am goign about this the right way, but if I stick with it I am going to learn the principles needed. I will stick to the issue in hand.</p> <p>Here is the WPF syntax:</p> <pre><code>&lt;Window x:Class="OCLMEditor.MainWi...
<p>For those interested:</p> <pre><code>&lt;Window x:Class="OCLMEditor.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schem...
Stack panels not auto stretching
wpf|gridsplitter
-1
43
1
37,883,642
37,883,642
1
true
2016-06-17T11:48:19.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Stack panels not auto stretching<p>I have to confess that at this point I don't actually know if I am goign about this the right way, but if I stick with it ...
37,885,851
File Structure Best Practices when Managing Cloud Hosts?<p>I have a Ubuntu 16.04 VPS server with Digital Ocean. I connect as root user through ssh.</p> <p>Upon connecting I land in the <code>root@cloudserver:~</code> home directory which is empty by default. To access anything else I need to <code>cd /</code> to root....
<p>Your cloud host server is no different than your local machine.</p> <p>Download the applications (when needed) to local directories and the installation will know a default location, if you're not sure leave this default location. The same if you install app through package manager, they will know where to install ...
File Structure Best Practices when Managing Cloud Hosts?
ubuntu|vagrant|virtual-machine|vps
-1
46
1
37,889,422
37,889,422
1
true
2016-06-17T16:01:03.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: File Structure Best Practices when Managing Cloud Hosts?<p>I have a Ubuntu 16.04 VPS server with Digital Ocean. I connect as root user through ssh.</p> <p>U...
37,914,374
Defining configuration values under specific namespaces?<p>I'm writing a framework, and have just added namespaces. I've had no trouble converting everything, save for configuration values. </p> <p>I can define constants easily, so single values are not a problem...but what about an array of values?</p> <p>Take this ...
<p>You can use .ini files and break them into sections like so: </p> <pre><code>; This is a sample configuration file ; Comments start with ';', as in php.ini [first_section] one = 1 five = 5 animal = BIRD [second_section] path = "/usr/local/bin" URL = "http://www.example.com/~username" [third_section] phpversion[]...
Defining configuration values under specific namespaces?
php|arrays|configuration|namespaces|global
-1
26
1
37,914,517
37,914,517
1
true
2016-06-20T03:48:24.303Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Defining configuration values under specific namespaces?<p>I'm writing a framework, and have just added namespaces. I've had no trouble converting everything...
37,928,957
Why all the page is cleared after sent the form?<p>Why all my page is cleared after sent the form ?</p> <p>My code : <a href="http://jsbin.com/belikusate/edit?html,js,output" rel="nofollow noreferrer">http://jsbin.com/belikusate/edit?html,js,output</a> <code> </code></p>
<p>The thing is, the default behavior for a form with an input field of type submit is to do a full post. In order to insert the element into the div and prevent the default behavior, just change this</p> <pre><code>document.getElementById("add").addEventListener("click", function(){ creerElementLien(test); }); </...
Why all the page is cleared after sent the form?
javascript|dom-events
-1
75
2
37,929,571
37,929,571
1
true
2016-06-20T18:00:34.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why all the page is cleared after sent the form?<p>Why all my page is cleared after sent the form ?</p> <p>My code : <a href="http://jsbin.com/belikusate/edi...
37,929,647
In jQuery AJAX request where the callback paramer comes from?<p>In a website when submitting a search, a GET request is made, e.g. <code>https://a.somesite.com/file.php?callback=jQuery1111076252760730124087_1466446816179&amp;v=abc&amp;f=mp3&amp;_=1466446816180</code></p> <p>I want to faciliate the request in C# withou...
<p>The callback parameter may be related to a <strong>JSONP</strong> call. You can check about JSONP at <a href="https://learn.jquery.com/ajax/working-with-jsonp/" rel="nofollow">https://learn.jquery.com/ajax/working-with-jsonp/</a></p>
In jQuery AJAX request where the callback paramer comes from?
jquery|ajax
-1
31
1
37,930,024
37,930,024
1
true
2016-06-20T18:45:00.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In jQuery AJAX request where the callback paramer comes from?<p>In a website when submitting a search, a GET request is made, e.g. <code>https://a.somesite.c...
37,931,193
Linux command to find the difference between two folders<p>I have two folders, each with sub folders, and I want to see if there are any sub folders in one file that does not exist the other folder. I have tried this command:</p> <p>diff -r file1 file2 </p> <p>but it does not provide the results that I want.</p> <p>...
<pre><code>diff -r dir1 dir2 | grep dir1 | awk '{print $4}' &gt; difference1.txt </code></pre> <h2>Explanation:</h2> <ol> <li><code>diff -r dir1 dir2</code> shows which files are only in dir1 and those only in dir2 and also the changes of the files present in both directories if any.</li> <li><code>diff -r dir1 dir2 ...
Linux command to find the difference between two folders
linux|command
-1
62
1
37,931,242
37,931,242
1
true
2016-06-20T20:22:08.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Linux command to find the difference between two folders<p>I have two folders, each with sub folders, and I want to see if there are any sub folders in one f...
37,937,174
How to truncate fraction using NSNumberFormatter<p>How can I format decimal values with next rules</p> <pre><code>0.12345 =&gt; 0.12 10.12345 =&gt; 10.12 100.12345 =&gt; 100.1 1000.12345 =&gt; 1,000 </code></pre> <p>Please, notice that idea is to take the same space. C style <code>printf</code> allows to do thi...
<p>Since <code>NSNumberFormatter</code> ignores <code>maximumFractionDigits</code> when significant mode enabled I created custom class</p> <pre><code>class TRNumberFormatter: NSNumberFormatter { override func stringFromNumber(number: NSNumber) -&gt; String? { let digitsCount = "\(number.integerValue)".ch...
How to truncate fraction using NSNumberFormatter
ios|nsnumberformatter
-1
300
2
37,940,357
37,940,357
1
true
2016-06-21T06:39:29.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to truncate fraction using NSNumberFormatter<p>How can I format decimal values with next rules</p> <pre><code>0.12345 =&gt; 0.12 10.12345 =&gt; 10....
37,865,740
sub links of webview are not open on all devices?<p>i am receiving json string and show in Android webview using <code>webview.loadData(content, "text/html; charset=UTF-8", null);</code> json string content showing fine and its links is working correctly on my device(4.1.2)but same links not open on other some devices ...
<p>you should use</p> <pre><code> final ProgressDialog progressDialog = new ProgressDialog(Webview_news.this); WebView webview= (WebView) findViewById(R.id.wv_news); webview.loadData(content, "text/html", "UTF-8"); webview.setWebChromeClient(new WebChromeClient() { ...
sub links of webview are not open on all devices?
android|json|webview
-1
33
1
37,954,395
37,954,395
1
true
2016-06-16T17:26:41.810Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: sub links of webview are not open on all devices?<p>i am receiving json string and show in Android webview using <code>webview.loadData(content, "text/html; ...
37,974,498
Filter that will pass a message only if it contains one of words in list<p>I want to filter incoming info:</p> <pre><code>news = [ 'One day bla-bla-bla', 'Long time ago bla-bla', ] </code></pre> <p>and pass messages that have one of the words that I specify:</p> <pre><code>mywords = ['ago', 'time', 'hero'] </cod...
<pre><code>mywords = %w(ago time hero) news = [ 'One day bla-bla-bla', 'Long time ago bla-bla' ] news.select { |n| mywords.any? { |w| n =~ /\b#{w}\b/ } } #⇒ ["Long time ago bla-bla"] </code></pre> <p>or even better:</p> <pre><code>news.select { |n| n =~ Regexp.union(mywords) } #⇒ ["Long time ago bla-bla"] </code>...
Filter that will pass a message only if it contains one of words in list
ruby
-1
47
4
37,974,558
37,974,558
1
true
2016-06-22T17:17:02.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Filter that will pass a message only if it contains one of words in list<p>I want to filter incoming info:</p> <pre><code>news = [ 'One day bla-bla-bla', ...
37,989,934
Find entry's count of array elements in each array in documents<p>I have collection with such documents:</p> <pre><code>[ {p: [1, 2, 3, 4]}, {p: [1, 2, 7, 9, 10]}, {p: [3, 5]} ] </code></pre> <p>I want to know how many times each element of <code>p</code> in all documents appear in other document's <code>...
<p>You should use an <a href="https://docs.mongodb.com/manual/aggregation/#aggregation-pipeline" rel="nofollow"><em>Aggregation Pipeline</em></a> with the following stages:</p> <ol> <li>Decompose the <code>p</code> arrays and generate one document for each element. You can use <a href="https://docs.mongodb.com/manual/...
Find entry's count of array elements in each array in documents
mongodb
-1
41
1
37,990,663
37,990,663
1
true
2016-06-23T11:10:25.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find entry's count of array elements in each array in documents<p>I have collection with such documents:</p> <pre><code>[ {p: [1, 2, 3, 4]}, {p: [1,...
37,992,011
Assigning data to class variables in c#<p>I have two classes as below-</p> <pre><code>public class dayInOutLog { public string status{ get; set;} public int inTime{ get; set;} public int outTime{ get; set;} } public class Emp_dayInOutLog { public string id{ get; set;} public List&lt;dayInOutLog&gt; l...
<p>You need to do only :</p> <pre><code> Emp_dayInOutLog obj = new Emp_dayInOutLog() { id = "1", listOf_inOut = new List&lt;dayInOutLog&gt; { new dayInOutLog(){ status = "Absent", inTime = 585, outTime ...
Assigning data to class variables in c#
c#|class|object
-1
66
5
37,992,230
37,992,230
1
true
2016-06-23T12:44:20.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Assigning data to class variables in c#<p>I have two classes as below-</p> <pre><code>public class dayInOutLog { public string status{ get; set;} publ...
38,004,398
Video not showing Drupal<p>I am having an issue displaying a video with Drupal.</p> <p>Here is the test page: <a href="http://audi.edelmandigital.com.au/post/test-video" rel="nofollow">http://audi.edelmandigital.com.au/post/test-video</a></p> <p>I use Mediabrowser to select a thumbnail then Edit and add the video fil...
<p>Seems it's css issue I have add the below code in firebug and video is showing </p> <pre><code>.media .fill-area { position: relative; } </code></pre> <p><a href="https://i.stack.imgur.com/RVyn9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RVyn9.png" alt="enter image description here"></...
Video not showing Drupal
drupal|html5-video
-1
41
1
38,007,752
38,007,752
1
true
2016-06-24T01:35:17.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Video not showing Drupal<p>I am having an issue displaying a video with Drupal.</p> <p>Here is the test page: <a href="http://audi.edelmandigital.com.au/pos...
38,020,087
Elasticsearch getting http request performance<p>I have 10 ES Servers each one with 32Cores Cpu, 256G memory and 10Gb NIC. The ES cluster will face about 9000 times request(index or query) per second. Do you think this would be a problem, or any optimization I should do please. </p>
<p>It depends on the index structure, data amount and the queries you're doing. Hardware alone does not guarantee anything. I have seen clusters two times less powerful than yours which were capable to handle 10k/sec. However I can easily imagine queries and aggregations that will take some time to run on your cluster....
Elasticsearch getting http request performance
elasticsearch
-1
24
1
38,021,004
38,021,004
1
true
2016-06-24T18:40:11.300Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Elasticsearch getting http request performance<p>I have 10 ES Servers each one with 32Cores Cpu, 256G memory and 10Gb NIC. The ES cluster will face about 900...
38,022,125
How to format by comparing values in another sheet using conditional formatting in excel<p>I have two sheets with exact same structure. I want compare the values (check if values in sheet1 is greater than values in sheet 2) and highlight them as red. I am a complete beginner when it comes to equations in excel. </p> <...
<p>Consider the following worksheets:</p> <p><strong>Sheet1</strong></p> <p><a href="https://i.stack.imgur.com/Y0ly3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y0ly3.png" alt="Sheet1"></a></p> <p><strong>Sheet2</strong></p> <p><a href="https://i.stack.imgur.com/ZG7ra.png" rel="nofollow noref...
How to format by comparing values in another sheet using conditional formatting in excel
excel|conditional-formatting
-1
71
1
38,022,265
38,022,265
1
true
2016-06-24T21:06:04.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to format by comparing values in another sheet using conditional formatting in excel<p>I have two sheets with exact same structure. I want compare the va...
38,036,121
Pass callback to function in other file<p>Im working on a MEAN-stack project and in my model on the server i use the following mongoose hook:</p> <pre><code>File: user.server.controller.js exports.preSave = function(next) { this.wasNew = this.isNew; console.log('I got called from another file..') next(); } ......
<p>This just means, you're not passing a next() callback to the .pre() middleware function as required by Mongoose.</p> <p><a href="http://mongoosejs.com/docs/middleware.html" rel="nofollow">Docs</a></p> <pre><code>userSchema.pre('save', function(next){ console.log('I am the extra work') theFile.preSave() next() }...
Pass callback to function in other file
node.js|mongoose
-1
296
1
38,036,185
38,036,185
1
true
2016-06-26T07:21:34.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass callback to function in other file<p>Im working on a MEAN-stack project and in my model on the server i use the following mongoose hook:</p> <pre><code...
37,987,978
IoT Hub Gateway availabillity<p>I heard there is an IoT Hub Gateway. Would this allow me to add custom steps for handling messaging when they go from the device through the gateway?</p>
<p>Yes, there is an Azure IoT Hub Gateway SDK which is designed to be modular so any step you need to take can be a custom build module running within the Gateway. You can 'stack' modules to determine a flow for message handling. </p> <p>Like this: Decrypt->Convert2JSON->Add Metadata->Map to IoT Hub device ID-> Encryp...
IoT Hub Gateway availabillity
iot|gateway
-1
294
4
38,046,759
38,046,759
1
true
2016-06-23T09:44:52.213Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: IoT Hub Gateway availabillity<p>I heard there is an IoT Hub Gateway. Would this allow me to add custom steps for handling messaging when they go from the dev...
38,049,105
Count from two different columns from same table based on range<p>I have a tbale like this:</p> <pre><code>MONTHS CUST CATEGORY 10 1 1 20 2 1 10 3 NULL 30 4 1 40 5 NULL </code></pre> <p>I want to count no of cust and no of category based on...
<p>You can use a query like the following:</p> <pre><code>SELECT CASE WHEN MONTHS BETWEEN 10 AND 19 THEN '10-19' WHEN MONTHS BETWEEN 20 AND 29 THEN '20-29' WHEN MONTHS BETWEEN 30 AND 39 THEN '30-39' WHEN MONTHS BETWEEN 40 AND 49 THEN '40-49' ELSE '50-' ...
Count from two different columns from same table based on range
sql
-1
33
3
38,049,195
38,049,195
1
true
2016-06-27T08:26:05.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Count from two different columns from same table based on range<p>I have a tbale like this:</p> <pre><code>MONTHS CUST CATEGORY 10 1 1 20...