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
43,949,717
How to set the domain name for tornado<p>I'm using tornado to build a web server. Now everything's ready, I can visit my website with the IP address of my server.<br></p> <p>Also, I've got a domain name but I don't know how to use the domain name to visit my server.<br></p> <p>For example, the IP is <code>a.a.a.a</co...
<p>I've found the solution.<br></p> <p>In fact it is because I use IP address in the backend code and the frontend code.<br></p> <p>So there exists a cross-domain problem.<br></p> <p>I replace all of IP with the domain name and it works. Here is an example:<br> backend:<br> replace <code>self.write("http://a.a.a.a/s...
How to set the domain name for tornado
python|web|server|tornado
-2
570
1
43,951,862
43,951,862
0
true
2017-05-13T05:53:16.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set the domain name for tornado<p>I'm using tornado to build a web server. Now everything's ready, I can visit my website with the IP address of my se...
43,962,223
Inner join query in PHP tell me all others join query like that?<p>this code is correct or not for inner join how i improve this PHP code if any more suggestions for all type of join query comments </p> <pre><code>&lt;?php $conn = mysqli_connect('localhost', 'root','','sql_joins'); $sql = "select depar...
<p>There are couple of things wrong in your code, such as:</p> <ul> <li><p>Your SQL query is wrong, plus you didn't make use of <code>INNER JOIN</code> in your query. Your query should be like this:</p> <pre><code>SELECT department.depname , employee.Name FROM employee INNER JOIN department ON department.Empid = em...
Inner join query in PHP tell me all others join query like that?
php|sql
-2
60
1
43,962,316
43,962,316
0
true
2017-05-14T09:12:12.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Inner join query in PHP tell me all others join query like that?<p>this code is correct or not for inner join how i improve this PHP code if any more suggest...
43,970,590
mutate two new columns based on splitting another<p>I have a columns within my tibble called sourceMedium with strings like so:</p> <pre><code>"apples / pears" </code></pre> <p>I want to mutate this into two new columns and then to remove the original one. I'm trying to do this within a dplyr chain of operations and ...
<p>Dplyr doesn't handle elements of list columns in the same way as it does vector columns. So pass <a href="https://www.rdocumentation.org/packages/dplyr/versions/0.5.0/topics/rowwise" rel="nofollow noreferrer"><code>dplyr::rowwise()</code></a> before you mutate/unlist:</p> <pre><code>library(dplyr) library(stringr) ...
mutate two new columns based on splitting another
r|dplyr
-2
2,091
1
43,972,199
43,972,199
0
true
2017-05-15T02:01:56.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: mutate two new columns based on splitting another<p>I have a columns within my tibble called sourceMedium with strings like so:</p> <pre><code>"apples / pea...
43,980,239
Is there any method that can deal with high dimension reduction for regresssion model?<p>I have a training data set which is so huge, about 15gb, that I can't fit it into my computer memory for training any type of regression model. Each sample of the data set is a 4d matrix. You can flatten the sample as a vector but...
<p>I suggest trying the following as a test, since you are using a linear model. This is a step toward a final solution, and should give you an idea of what the final solution might look like.</p> <p>Filter the data so that you have max, min, and median values for each dimension. That should produce a working data s...
Is there any method that can deal with high dimension reduction for regresssion model?
python|regression|dimensionality-reduction
-2
25
1
44,000,195
44,000,195
0
true
2017-05-15T13:00:10.787Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there any method that can deal with high dimension reduction for regresssion model?<p>I have a training data set which is so huge, about 15gb, that I can...
44,017,135
How to uninstall a software from command line silently without user intervention?<p>I have installed Btrieve 12 from command line silently using the "/qn" option provided by the Btrieve vendor. I have to uninstall the same program from command line silently. How to do that? Can any windows program be uninstalled from c...
<p>You can use this command</p> <pre><code>msiexec /x [Installer path] /q /L*VX [LogFilePath] </code></pre>
How to uninstall a software from command line silently without user intervention?
windows|installation|installshield|uninstallation
-2
551
1
44,017,194
44,017,194
0
true
2017-05-17T06:27:16.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to uninstall a software from command line silently without user intervention?<p>I have installed Btrieve 12 from command line silently using the "/qn" op...
44,051,479
How to evaluate 3 subsets in R<p>I have 3 subsets with an id property. How can I check if one specific id is present in all 3 subsets?</p> <p>And then I would like to store this id.</p> <p>Here an Example:</p> <pre><code>Subset1$ID = 1, 2, 3 Subset2$ID = 1, 3, 4 Subset3$ID = 1, 5, 6 </code></pre> <p>So the result h...
<pre><code>&gt; Subset1 &lt;- data.frame('ID'=c(1,2,3)) &gt; Subset2 &lt;- data.frame('ID'=c(1,3,4)) &gt; Subset3 &lt;- data.frame('ID'=c(1,5,6)) &gt; Reduce(intersect, list(Subset1$ID,Subset2$ID,Subset3$ID)) [1] 1 &gt; common_id &lt;- Reduce(intersect, list(Subset1$ID,Subset2$ID,Subset3$ID)) &gt; common_id [1] 1 </co...
How to evaluate 3 subsets in R
r
-2
36
3
44,051,619
44,051,619
0
true
2017-05-18T15:07:22.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to evaluate 3 subsets in R<p>I have 3 subsets with an id property. How can I check if one specific id is present in all 3 subsets?</p> <p>And then I wou...
44,067,689
ASP.NET MVC: DropDownList grouped by name not id<p>I have a dropdown list for locations which is currently grouped by country in an ASP MVC program. <br> The locations' drop down list is populated using the following line in my ViewModel:</p> <pre><code>ViewBag.Locations = new MultiSelectList(db.tblLocations, "Locatio...
<p>you can do it like this :</p> <pre><code>ViewBag.Locations = new MultiSelectList(db.tblLocations, "LocationID", "LocationName", "tblCountries.CountryName"); </code></pre> <p>but you need to include the tblCountries in tblLocations</p>
ASP.NET MVC: DropDownList grouped by name not id
asp.net|asp.net-mvc|html.dropdownlistfor|selectlist
-2
49
1
44,067,892
44,067,892
0
true
2017-05-19T10:29:49.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ASP.NET MVC: DropDownList grouped by name not id<p>I have a dropdown list for locations which is currently grouped by country in an ASP MVC program. <br> The...
44,068,929
Crashing during segue and dismiss<p>I have a problem, my app is crashing during a segue in my tableViewController </p> <pre><code>import UIKit import MapKit import CoreLocation class CourseClass: UITableViewController, CLLocationManagerDelegate, MKMapViewDelegate { @IBOutlet weak var map: MKMapView! struct ...
<pre><code>guest.local = sender as! String guest.localImage = UIImage(named: (sender as! String) + ".png")! guest.localType = sender as! String </code></pre> <p>the issue seems to be here, try getting the type of "sender" as its Any and I assume it to be of user type that is the cause of the...
Crashing during segue and dismiss
ios|swift|uitableview|uiviewcontroller|uistoryboard
-2
42
2
44,069,199
44,069,199
0
true
2017-05-19T11:30:48.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Crashing during segue and dismiss<p>I have a problem, my app is crashing during a segue in my tableViewController </p> <pre><code>import UIKit import MapKit...
44,081,460
Android XML Layout Design<p>I have the xml design code of android. I want the design a bit different. Following is the relative layout what I have tried:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schem...
<p>here you go.. this is just basic layout.. you need to color and custom it by your self</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_hei...
Android XML Layout Design
android|xml
-2
77
2
44,081,893
44,081,893
0
true
2017-05-20T02:54:34.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android XML Layout Design<p>I have the xml design code of android. I want the design a bit different. Following is the relative layout what I have tried:</p>...
44,113,510
regex query text between < and > symbols<p>I have a big list of email addresses in a format that I can't use for script them, I need help to build a regex that can match the email addresses.</p> <pre><code>name1 surname1 &lt;name1.surname1@domain.com&gt; name2 surname2 &lt;name2.surname2@domain.com&gt; </code></pre>
<p>The regex query to achieve it is </p> <pre><code>\&lt;(.*?)\&gt; </code></pre>
regex query text between < and > symbols
regex
-2
38
1
44,113,789
44,113,789
0
true
2017-05-22T12:58:55.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: regex query text between < and > symbols<p>I have a big list of email addresses in a format that I can't use for script them, I need help to build a regex th...
44,117,368
datatable not recognised outside of class?<p>I have the following code which write the contents of my datagrid to a text file:</p> <pre><code> string FSYear = "FS_" + DateTime.Now.Year.ToString() + "_Grids"; string sql2 = "SELECT DISTINCT [ProductCode] FROM " + FSYear; DataTable Temp = SqlConne...
<p>First, to check if you have a number, you can do something like this: </p> <pre><code> int result; if (int.TryParse(productCode, out result)) { //Number , count? } else { // Not number } </code></pre> <p>Now, in your temp DataTable, you have all the values, why not just cou...
datatable not recognised outside of class?
c#
-2
32
1
44,117,691
44,117,691
0
true
2017-05-22T16:02:20.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: datatable not recognised outside of class?<p>I have the following code which write the contents of my datagrid to a text file:</p> <pre><code> string...
44,109,090
Hiding div's in a webpage using CSS<p>I have a div and that div contains text.</p> <pre><code>&lt;div style='visibility:hidden;' id='emailid'&gt;$email&lt;/div&gt; </code></pre> <p>The visibility attribute does the job of hiding the text contained. The problem is it takes up space (as blank white space) in the webpag...
<p>You are supposed to use <code>display:none;</code> in your CSS code for hiding a div completly from your displayed page. </p> <p>Your CSS line of code will change to,</p> <pre><code>&lt;div style='display:none;' id='emailid'&gt;$email&lt;/div&gt; </code></pre> <p>Using the <code>visibility:hidden;</code> will onl...
Hiding div's in a webpage using CSS
php|html|css
-2
53
7
44,152,066
44,152,066
0
true
2017-05-22T09:16:32.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hiding div's in a webpage using CSS<p>I have a div and that div contains text.</p> <pre><code>&lt;div style='visibility:hidden;' id='emailid'&gt;$email&lt;/...
44,154,401
swift variable param compare with array<p><code>func gradientOfView(withColours: UIColor..., locations: [NSNumber])</code></p> <p><code>func gradientOfView(withColours: [UIColor], locations: [NSNumber])</code></p> <p>Which is better?</p> <p>When to use variable param replace array as param?</p>
<p>variadic function accept 0 or more parameters, see next snippet</p> <pre><code>func f0(items: Any...) { print(type(of: items)) items.forEach { (i) in print("\t",i) } } func f1(items: [Any]) { print(type(of: items)) items.forEach { (i) in print("\t",i) } } f0(items: 1,2) f1(...
swift variable param compare with array
swift|variadic-functions
-2
70
1
44,154,928
44,154,928
0
true
2017-05-24T09:29:35.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: swift variable param compare with array<p><code>func gradientOfView(withColours: UIColor..., locations: [NSNumber])</code></p> <p><code>func gradientOfView(...
44,218,238
Duplicate randomly multiple objects inside a javascript for loop<p>I found this platform game on the Internet and I modified it a bit:</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...
<p>In you code there are two syntax error. first one is you didn't close for loop and second one is inside for loop first push operation was not close properly. i have update code. </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre cla...
Duplicate randomly multiple objects inside a javascript for loop
javascript|loops|for-loop
-2
25
1
44,218,294
44,218,294
0
true
2017-05-27T14:47:51.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Duplicate randomly multiple objects inside a javascript for loop<p>I found this platform game on the Internet and I modified it a bit:</p> <p><div class="sn...
44,227,311
Passing php results into an html script as arguments<p>I have an html script that includes several data numbers.. i want to replace these numbers by other numbers form my database using php code.. i have the html form and the php code but i don't know how to pass the php results as parameters to my form..</p> <p>here ...
<p>You should use json_encode function:</p> <pre><code>&lt;script&gt; var barChartData = { labels : ["Jan","Feb","Mar","Apr","May","Jun","jul"], datasets : [ { fillColor : "#FC8213", ...
Passing php results into an html script as arguments
javascript
-2
28
1
44,227,357
44,227,357
0
true
2017-05-28T12:26:47.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Passing php results into an html script as arguments<p>I have an html script that includes several data numbers.. i want to replace these numbers by other nu...
44,234,431
Rails creating a user specific domain when user logs in<p>I have created a blog <code>blog.com</code>, when a user logs in , I need to create a domain for this user, like <code>username.blog.com</code>, and he can customize this url, like <code>anywords.blog.com</code>, what can I do for this?</p>
<p>You should use some kind of route constraint checking for subdomain. Check Rails routing documentation for that kind of feature: <a href="http://guides.rubyonrails.org/routing.html#advanced-constraints" rel="nofollow noreferrer">http://guides.rubyonrails.org/routing.html#advanced-constraints</a></p>
Rails creating a user specific domain when user logs in
ruby-on-rails|dns|subdomain
-2
38
1
44,251,257
44,251,257
0
true
2017-05-29T04:04:30.483Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Rails creating a user specific domain when user logs in<p>I have created a blog <code>blog.com</code>, when a user logs in , I need to create a domain for th...
44,275,865
How to combine equals method in java and html link in jsp<p>If I want to write code for</p> <pre><code>if(("a").equals("a")) then some html code i.e, link to hide(&lt;a href="index.html"style="visibility:hidden"&gt;&lt;/a&gt;) </code></pre> <p>How should I write?</p>
<pre><code>&lt;% if ("a".equals("a")){ %&gt; &lt;a href="index.html"style="visibility:hidden"&gt;&lt;/a&gt; &lt;% } %&gt; </code></pre>
How to combine equals method in java and html link in jsp
jsp
-2
66
2
44,277,482
44,277,482
0
true
2017-05-31T04:48:32.303Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to combine equals method in java and html link in jsp<p>If I want to write code for</p> <pre><code>if(("a").equals("a")) then some html code i.e, link t...
44,307,556
Comparing two Dictionaries with different keys in python?<p>I have two dictionaries containing IP addresses. E.g </p> <pre><code>site_scope1 = {'Servers': ['1.1.1.1', '1.1.1.2']} </code></pre> <p>and another which contains addresses pulled from a device which looks like</p> <pre><code>vlan_helpers = {'300': ['1.1.1...
<p>To check if both keys have the same value, you can directly access them and do the comparison this way:</p> <pre><code>if site_scope1['Servers'] == vlan_helpers['300']: # Do something. </code></pre> <p>If you just want to check if some keys of the Servers list is also in the 300 list, you can do this:</p> <pr...
Comparing two Dictionaries with different keys in python?
python|dictionary
-2
66
4
44,307,911
44,307,911
0
true
2017-06-01T12:28:09.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Comparing two Dictionaries with different keys in python?<p>I have two dictionaries containing IP addresses. E.g </p> <pre><code>site_scope1 = {'Servers': [...
44,316,139
All graphs are written to the same plot<p>I am using <code>Spyder 3.1.2, Python 3.6.0 (Annaconda)</code></p> <p>When I run the code - all of these graphs show up on the same plot?</p> <p>Data is a data table</p> <pre><code>import seaborn as sns #======================================================================...
<p>You should use the <code>ax</code> keywords here. </p> <pre><code>import matplotlib.pyplot as plt import seaborn as sns #if you want them stacked vertically f, (ax1, ax2, ax3) = plt.subplots(1, 3) sns.heatmap(corrmat, vmax=1., square=True, ax=ax1) ax1.xaxis.tick_top() sns.lmplot("PC1", "PC2", bar, hue="Class", ...
All graphs are written to the same plot
python|anaconda|heatmap|seaborn|spyder
-2
56
1
44,316,436
44,316,436
0
true
2017-06-01T20:00:12.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: All graphs are written to the same plot<p>I am using <code>Spyder 3.1.2, Python 3.6.0 (Annaconda)</code></p> <p>When I run the code - all of these graphs sh...
44,275,743
Control MediaPlayer from personal app in background<p>Have searched for solution but none has worked as i want.</p> <p>Am developing a app for personal usage and want to control MediaPlayer from it, while application is in background. Is it possible and if so, how to achieve that ? Targeting Android 6.0+ and to contro...
<p>Found the best working example here:<a href="https://stackoverflow.com/a/37418442/1071184">Control Spotify</a> Works great on A7.1.1 However when Spotify I brought to front, it's state is reset to home-screen.</p>
Control MediaPlayer from personal app in background
android|android-mediaplayer
-2
44
1
44,323,799
44,323,799
0
true
2017-05-31T04:36:26.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Control MediaPlayer from personal app in background<p>Have searched for solution but none has worked as i want.</p> <p>Am developing a app for personal usag...
44,345,882
How to fix my index.html + bootstrap4<blockquote> <pre><code> *Whenever I reload the page the default bootstrap navbar style appears before my overridden styles apply Please any help </code></pre> <p>- Whenever I reload the page the default bootstrap navbar style appears before my overridden styles...
<p>bootstrap need jquery tether.js and boostrap.min.js</p> <p><a href="https://v4-alpha.getbootstrap.com/getting-started/introduction/#quick-start" rel="nofollow noreferrer">https://v4-alpha.getbootstrap.com/getting-started/introduction/#quick-start</a></p>
How to fix my index.html + bootstrap4
jquery|html|css|bootstrap-4
-2
38
1
44,346,070
44,346,070
0
true
2017-06-03T16:02:37.537Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to fix my index.html + bootstrap4<blockquote> <pre><code> *Whenever I reload the page the default bootstrap navbar style appears before my overridde...
44,358,380
Android RadioGroup Radiobutton Java<p>I have two radiogroups - RadioGroupSelect, questionRG. In RadioGroupSelect is radioButton1, radioButton2. In questionRG is radiobutton questionRB1. How to set any text in questionRB1 if i will select radioButton1 and set other text, if i will select radioButton2? </p>
<p>Use the following code</p> <pre><code> if(radioButton1.isChecked()){ questionRB1.setText("your text"); } </code></pre> <p>Do similarly for the other radio button.</p>
Android RadioGroup Radiobutton Java
java|android|radio-button
-2
43
1
44,358,465
44,358,465
0
true
2017-06-04T20:16:39.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android RadioGroup Radiobutton Java<p>I have two radiogroups - RadioGroupSelect, questionRG. In RadioGroupSelect is radioButton1, radioButton2. In questionR...
44,142,838
How to stop Windows Auto leveling on audio (mic specifically)<p>Hello Stackoverflow community!</p> <p>My mic always sets itself on 100, but i don't want that to happen. </p> <p><a href="https://i.stack.imgur.com/xKhcq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xKhcq.png" alt="That&#39;s what i...
<p>Meanwhile, i have written a little program myself which fixes the issue for me. It sets the volume to 70% Read the Readme file for more information</p> <p><a href="https://www.dropbox.com/s/rw4962krpwgqxax/Stop%20Auto-Leveling.zip?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/rw4962krpwgqxax/Stop%20Auto...
How to stop Windows Auto leveling on audio (mic specifically)
windows|registry|microphone
-2
49
1
44,455,812
44,455,812
0
true
2017-05-23T18:50:39.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to stop Windows Auto leveling on audio (mic specifically)<p>Hello Stackoverflow community!</p> <p>My mic always sets itself on 100, but i don't want tha...
43,957,893
How to separate numbers from a slice?<p>Let's say I have a list with 10 numbers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]</p> <p>I would like my program to slice every 3 numbers, for example:</p> <pre><code>[1,2,3] [4,5,6] [7,8,9] </code></pre> <p>How can I do it? Grateful</p>
<p>For example, with n = 3,</p> <pre><code>package main import "fmt" func main() { list := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10} for a, n := list, 3; len(a) &gt;= n; a = a[n:] { slice := a[:n] fmt.Println(slice) } } </code></pre> <p>Output:</p> <pre><code>[1 2 3] [4 5 6] [7 8 9] </code><...
How to separate numbers from a slice?
go
-2
54
2
43,958,713
43,958,713
1
true
2017-05-13T20:54:30.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to separate numbers from a slice?<p>Let's say I have a list with 10 numbers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]</p> <p>I would like my program to slice eve...
43,969,886
Group by col A and set col C for all rows in each group based on values in col B in excel<p>I need to run over a single, active sheet in Excel, grouping together all rows where column A matches. This includes individual rows that have a unique value for column A. Once the subsets have been determined, column B must be...
<p>An Excel formula to achieve this would be (in C1, and copied down)</p> <pre><code>=IF(COUNTIF(A:A,A1)=COUNTIFS(A:A,A1,B:B,"pass"),"keep","remove") </code></pre> <p>Obviously, one way this could be put into VBA is by using something like</p> <pre><code>Range("C1:C" &amp; Cells(Rows.Count,"B").End(xlUp).Row).Formul...
Group by col A and set col C for all rows in each group based on values in col B in excel
vba|excel|excel-2010
-2
57
1
43,969,993
43,969,993
1
true
2017-05-14T23:52:10.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Group by col A and set col C for all rows in each group based on values in col B in excel<p>I need to run over a single, active sheet in Excel, grouping toge...
44,022,672
Java generic methods difference between two arrays<p>I am trying to write a method that will find the difference between elements of two arrays of the same length and here is what I did until now:</p> <pre><code> public static &lt;T extends Object&gt; T method(T[] array,T[] array1){ T[]difference; differe...
<p>There are two problems with your code:</p> <ol> <li><p>Java doesn't support generic array creation. You can get round this by creating an array of <code>Object</code>s and then casting.</p></li> <li><p>The bigger problem is that java doesn't support operator overloading, and subtraction (i.e. <code>-</code>) is onl...
Java generic methods difference between two arrays
java|generic-method
-2
303
2
44,024,760
44,024,760
1
true
2017-05-17T10:46:05.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Java generic methods difference between two arrays<p>I am trying to write a method that will find the difference between elements of two arrays of the same l...
44,031,310
Mysql query for fetching videos posted by friends of a particular user<p>Could anyone please help me to write a query in mysql to fetch the videos posted by friends of a particular user. I have 3 tables (users,friends and videos) and the table structure are as follows.</p> <hr> <p>users - id</p> <hr> <p>friends - i...
<p><code>JOIN</code> is what you are looking for. This can be used to "link" multiple tables based on what is common between them. This is the backbone of <em>Normalization</em></p> <p>The first part will be to link the "Friends" table back to the "Users" table. I am going to use a local variable (@UserID) and set it ...
Mysql query for fetching videos posted by friends of a particular user
mysql
-2
32
1
44,032,337
44,032,337
1
true
2017-05-17T17:25:38.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Mysql query for fetching videos posted by friends of a particular user<p>Could anyone please help me to write a query in mysql to fetch the videos posted by ...
44,063,780
Why isn't my PHP program working?<p>I am a beginner at PHP and I wrote a code to justify a piece of text in the Google Chrome browser. Here is the code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Text Justification with PHP&lt;/title&gt; &lt;link rel="stylesheet" type="text/css...
<p>You are trying to justify the text by inserting spaces between words.</p> <p>HTML is a language that specifies the structure of the document, not its formatting. By design, any program that renders HTML replaces a sequence of two or more white space characters (spaces, new lines, tabs) with a single space.</p> <p>...
Why isn't my PHP program working?
php|html
-2
62
1
44,064,032
44,064,032
1
true
2017-05-19T07:16:29.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why isn't my PHP program working?<p>I am a beginner at PHP and I wrote a code to justify a piece of text in the Google Chrome browser. Here is the code:</p> ...
44,087,072
PHP: RegEx fails to match on HTML page retrieved using file_get_contents<pre><code> $url = "http://steamcommunity.com/profiles/7656119XXXXXXXXX/"; $content = file_get_contents($url); $regExd = '/&lt;div class=\"profile_in_game_joingame\"&gt;\n\s+.?&lt;a href=\"(steam.+?)\"[\s]class=\".+\"/i'; ...
<p>Okay nevermind, apparently I am an idiot, I went over documentation for regex and found issue.</p> <p>I am not supposed to store preg_match in a variable, it generates array instead $matches.</p>
PHP: RegEx fails to match on HTML page retrieved using file_get_contents
php|regex
-2
47
1
44,087,211
44,087,211
1
true
2017-05-20T14:29:10.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP: RegEx fails to match on HTML page retrieved using file_get_contents<pre><code> $url = "http://steamcommunity.com/profiles/7656119XXXXXXXXX/"; ...
44,088,638
Error with function newrb in Matlab<p>I have got data set and I have to train Radial Basis Network. Size of P is 258x420, size of T is 1x420. When I run script (below) training stops when reach 283 epochs. Then show me some errors in command window. Could you tell me what I have to do? Where is the problem?</p> <block...
<p>To clarify, the problem occurs for large number of epochs, after 183 epochs of training in my case.</p> <p>After that, SSE gets smaller and smaller (about $10^{-25}$) and in some moment it turns 0, so some other result turns NaN probably. </p> <p>In <strong>newrb.m</strong> you have assignment:</p> <pre><code>% P...
Error with function newrb in Matlab
matlab|function
-2
321
1
44,090,568
44,090,568
1
true
2017-05-20T17:01:40.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error with function newrb in Matlab<p>I have got data set and I have to train Radial Basis Network. Size of P is 258x420, size of T is 1x420. When I run scri...
44,110,932
Error : Arithmetic overflow error converting expression to data type int<p>The below query returns the below error.</p> <blockquote> <p>Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type int. Warning: Null value is eliminated by an aggregate or other SET operation.</...
<p>There are a lot of milliseconds between your dates - which you then divide - meaning that SQL needs to do a conversion - which apparently, with the dates you have overflows the integer type it is trying to convert o.</p> <p>So, you are getting the difference between your dates as milliseconds, then dividing by 60,0...
Error : Arithmetic overflow error converting expression to data type int
sql|sql-server
-2
1,603
2
44,111,023
44,111,023
1
true
2017-05-22T10:47:11.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error : Arithmetic overflow error converting expression to data type int<p>The below query returns the below error.</p> <blockquote> <p>Msg 8115, Level 16...
44,145,158
Why does removing this dropdown menu break this app?<p>This is not my code, but I'm working with an application that contains two activities and a dropdown menu. You can navigate between the two activities via the dropdown. My goal is to remove one of the activities and the dropdown menu. What I have accomplished is si...
<p>Because all your activity does is show a fragment. And the fragment is selected during onNavigationItemSelected. If that isn't called, then you never set a default fragment. So in your onCreate, add a transaction to add the fragment you want to keep. Then you can kill the dropdown.</p>
Why does removing this dropdown menu break this app?
java|android|android-fragments|drop-down-menu
-2
37
1
44,145,205
44,145,205
1
true
2017-05-23T21:14:07.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does removing this dropdown menu break this app?<p>This is not my code, but I'm working with an application that contains two activities and a dropdown m...
44,146,407
No route matches [POST] "/stories/id/invites"<p>All of the sudden I am getting this error even though it has been working for a while:</p> <blockquote> <p>No route matches [POST] “/stories/id/invites”</p> </blockquote> <p>Routes:</p> <pre><code>story_invites_path GET /stories/:story_id/invites(.:format) invite...
<p>You have all sort of icky things...</p> <p>This: </p> <pre><code>resources :stories do match '/stories/:id/invite', to: 'invite#show', via: 'get' resources :invites , only: [:index, :show, :destroy ] end </code></pre> <p>Should be: </p> <pre><code>resources :stories do resources :invites end </c...
No route matches [POST] "/stories/id/invites"
ruby-on-rails|post|routes
-2
70
2
44,146,982
44,146,982
1
true
2017-05-23T23:04:42.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: No route matches [POST] "/stories/id/invites"<p>All of the sudden I am getting this error even though it has been working for a while:</p> <blockquote> <p...
44,166,087
Importing any 3d model in unreal engine 4 in-game from local disk<p>I want to import a 3d model/mesh inside a game. Kinda like import a mesh from file explorer kinda thing. Is there any good way to do this? Without much coding.</p>
<p>I'm assuming you want to load custom 3D meshes (like .fbx or .obj) that weren't preprocesed by editor first and are not in game folders, and you want to do it at runtime while game is playing. </p> <p>What I get know from recent reaseach in this topic: UE4 dosen't support any kind of API for loading such meshes, yo...
Importing any 3d model in unreal engine 4 in-game from local disk
import|virtual-reality|unreal-engine4|fbx|daydream
-2
2,128
1
44,166,533
44,166,533
1
true
2017-05-24T18:30:48.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Importing any 3d model in unreal engine 4 in-game from local disk<p>I want to import a 3d model/mesh inside a game. Kinda like import a mesh from file explor...
44,196,816
Export data from some tables in oracle<p>Oracle 11g Express Edition:</p> <p>My schema is named <code>ConData</code> and i want to export only the tables <code>SGSI_proyectos</code> and <code>SGSI_controles</code> and import only this tables in another schema. is this possible? I've looked expdp and export but only I s...
<blockquote> <h3>Table Mode</h3> <p>A table mode export is specified using the TABLES parameter. In table mode, only a specified set of tables, partitions, and their dependent objects are unloaded.</p> </blockquote> <p><a href="https://docs.oracle.com/cd/B28359_01/server.111/b28319/dp_export.htm#g1022624" rel="...
Export data from some tables in oracle
oracle|oracle11g|export
-2
1,553
1
44,196,947
44,196,947
1
true
2017-05-26T08:18:39.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Export data from some tables in oracle<p>Oracle 11g Express Edition:</p> <p>My schema is named <code>ConData</code> and i want to export only the tables <co...
44,206,013
Hover Animation Color Switch<p>I'm trying to achieve a color switch with a hover but the problem I'm encountering is that the text (closed within a span) is in a list item and the only way I can achieve the effect is if I hover over the word but I want it to switch when I hover over the whole list item element.</p> <p...
<p>You can target <code>span</code> while hovering over <strong><code>#ob</code></strong>, <strong><code>#ot</code></strong>. Like:</p> <pre><code>#ob:hover #black { color: black; } #ot:hover #black { color: black; } </code></pre> <p>Have a look at the snippet below:</p> <p><div class="snippet" data-lang="js" d...
Hover Animation Color Switch
html|css
-2
48
2
44,206,151
44,206,151
1
true
2017-05-26T16:14:39.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hover Animation Color Switch<p>I'm trying to achieve a color switch with a hover but the problem I'm encountering is that the text (closed within a span) is ...
44,226,036
Association loop returning all attributes of a Model instead of just one<p>Working with two models: Casts and Lessons. Cast has many Lessons and Lesson belong to Cast.</p> <p>I'm trying to loop the content of Lessons within a Cast view with:</p> <pre><code> &lt;%= @cast.lessons.each do |lesson| %&gt; &lt;%= le...
<p>The equals sign in the loop definition specifies that the output of that line if code should be rendered. Try this :</p> <pre><code> &lt;% @cast.lessons.each do |lesson| %&gt; &lt;%= lesson.title %&gt; &lt;% end %&gt; </code></pre>
Association loop returning all attributes of a Model instead of just one
ruby-on-rails
-2
15
1
44,226,140
44,226,140
1
true
2017-05-28T10:00:21.300Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Association loop returning all attributes of a Model instead of just one<p>Working with two models: Casts and Lessons. Cast has many Lessons and Lesson belon...
44,241,297
Are `if model.variable` and `unless model.variable.nil?` equivalent?<p>There are two if-statements to evaluate whether the object is <code>nil</code>.</p> <p>Method: A</p> <pre><code>if object blahblahblah end </code></pre> <p>Method: B</p> <pre><code>unless object.nil? blahblahblah end </code></pre> <p>Are A ...
<p>Other than the <code>false</code> case as stated in <a href="https://stackoverflow.com/a/44241346/2423164">@Sergio's answer</a>, your object might not have a <code>#nil?</code> method. For example:</p> <pre><code>BasicObject.new.nil? # !&gt; NoMethodError: undefined method `nil?' for #&lt;BasicObject:0x007fd0aa21...
Are `if model.variable` and `unless model.variable.nil?` equivalent?
ruby|if-statement
-2
43
2
44,241,580
44,241,580
1
true
2017-05-29T11:22:04.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Are `if model.variable` and `unless model.variable.nil?` equivalent?<p>There are two if-statements to evaluate whether the object is <code>nil</code>.</p> <...
44,265,958
Matplotlib Frame Invisible<p>The frame of my axis inside my figure are invisible. I tried ax.spines.set_visible(True), ax.axis("on"), etc. but nothing seems to work. Below you can find the code for the specific plot I am trying to draw and the settings I use at the beginning. Anyone know how to make the frame around th...
<p>You're mixing a lot of styles here. It would be best to decide for either seaborn style or matplotlib style and only use one of them to define the style. Since it seems you don't actually need seaborn here, you may leave it out completely.</p> <pre><code>import numpy as np import matplotlib as mpl mpl.use('Agg') i...
Matplotlib Frame Invisible
python-3.x|matplotlib|seaborn
-2
288
1
44,266,377
44,266,377
1
true
2017-05-30T15:13:25.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Matplotlib Frame Invisible<p>The frame of my axis inside my figure are invisible. I tried ax.spines.set_visible(True), ax.axis("on"), etc. but nothing seems ...
44,282,332
Error with schema update<p>When I use FOSBundle to get in relation with attribute handledBy and createdBy and run command update schema I get this error <a href="https://i.stack.imgur.com/RQ4WP.png" rel="nofollow noreferrer">enter image description here</a></p> <pre><code>//Entity /** @ORM\ManyToOne(targetEntity=...
<p>There is an extra whitespace in your target entity definition.</p>
Error with schema update
symfony|fosuserbundle
-2
57
1
44,282,742
44,282,742
1
true
2017-05-31T10:31:19.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error with schema update<p>When I use FOSBundle to get in relation with attribute handledBy and createdBy and run command update schema I get this error <a h...
44,307,689
MySql Query to retrieve a a set number from each group<p>If I have the table:</p> <pre><code>------------------ | Provider | ID | ------------------ | X | 125 | ------------------ | X | 133 | ------------------ | X | 342 | ------------------ | X | 327 | ------------------ | Y | 123 ...
<p>Order by rand() and limit to 2 with a where clause for x and y and union all the results. Plainly obvious what you're trying to do and easy to maintain.</p> <pre><code>SELECT Provider, ID FROM tableName WHERE provider = 'X' ORDER BY Rand() LIMIT 2 UNION ALL SELECT Provider, ID FROM tableName WHERE provider = 'Y'...
MySql Query to retrieve a a set number from each group
mysql
-2
26
2
44,308,792
44,308,792
1
true
2017-06-01T12:34:38.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySql Query to retrieve a a set number from each group<p>If I have the table:</p> <pre><code>------------------ | Provider | ID | ------------------ | X ...
44,317,586
Curl a webpage, edit text, then re-open webpage programatically<p>I am having a bit of a problem. I want to curl a webpage, which is working fine.</p> <pre><code>URL url5 = new URL("put URL here!"); try (BufferedReader reader = new BufferedReader(new InputStreamReader(url5.openStream(), "UTF-8"))) { ...
<p>You don't need to do this way. You can use Selenium WebDriver along with HtmlUnit or FireFox to do emulate this behavior.</p> <p>In Selenium, we create a driver that drives the browser (firefox, chrome, htmlunit etc.). We can perform the operations we want and take screenshots too along the way.</p> <p>Please read...
Curl a webpage, edit text, then re-open webpage programatically
java|curl
-2
49
1
44,317,672
44,317,672
1
true
2017-06-01T21:47:04.410Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Curl a webpage, edit text, then re-open webpage programatically<p>I am having a bit of a problem. I want to curl a webpage, which is working fine.</p> <pre>...
44,328,699
Error in related DropDownList's when page refreshes<p>I have two related ddl's. When page loads, I can POST them to controller and everything is ok. But also I have some fields in page, and if they are empy I call <code>ModalError</code> in my controller, then page should be reloaded with text of errors. But it through...
<p>As you invoke the Checkout Action in your Controller via HttpPost you then return the Checkout View in case the ModelState is invalid. However you do net set your ViewBag Variables as you do in your HttpGet Action. </p> <p>You have to set ViewBag Variables in each and every Action. In this case I would recommend a ...
Error in related DropDownList's when page refreshes
c#|asp.net-mvc|entity-framework
-2
21
1
44,328,981
44,328,981
1
true
2017-06-02T12:13:58.657Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error in related DropDownList's when page refreshes<p>I have two related ddl's. When page loads, I can POST them to controller and everything is ok. But also...
44,328,965
Python - Combine two lists - Title and Data<p>I'm working with SQLite. </p> <p>I have two lists. <code>res1</code> which holds the title of my sql query results, which consists of only two values (/ columns of the final list) and <code>res2</code> which is the list that holds the data (two dimensional).</p> <p>How ca...
<p>Either I do not understand what you ask for or the answer is very simple:</p> <pre><code>res = [res1] + res2 </code></pre>
Python - Combine two lists - Title and Data
python|list|sqlite|iterable
-2
60
1
44,329,013
44,329,013
1
true
2017-06-02T12:27:34.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python - Combine two lists - Title and Data<p>I'm working with SQLite. </p> <p>I have two lists. <code>res1</code> which holds the title of my sql query res...
44,046,334
How can I let users upload videos to website?<p>I am trying to let users upload videos to my site. I am using ruby on rails with windows. I am also using devise for user authentication. What do I need to do to let them upload videos? Someone told me I can use paperclip, but I'm not exactly sure how to.</p>
<p><strong>try : Install Paperclip and Model class</strong></p> <pre><code> validates_attachment :videos, content_type: ['video/mp4'], message: "Sorry, only MP4 Videos allow", if: :is_video? private def is_video? url.instance.attachment_content_type =~ %r(video) e...
How can I let users upload videos to website?
ruby-on-rails|video|paperclip
-2
48
1
44,046,590
44,046,590
2
true
2017-05-18T11:19:32.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I let users upload videos to website?<p>I am trying to let users upload videos to my site. I am using ruby on rails with windows. I am also using dev...
44,057,667
Gat Array of form inputs Angular2<p>I am building an application in Angular2 and am struggling to get the value for the following inputs.</p> <p><strong>HTML Form</strong></p> <pre><code>&lt;form (ngSubmit)="createPage(f)" #f="ngForm"&gt; &lt;textarea name="meta[keywords]" id="keywords" class="form-control"&gt;&l...
<p>You can either use template driven forms or model driven forms. If you're looking for a basic template driven approach, this would fix it:</p> <pre><code>&lt;form (ngSubmit)="createPage()"&gt; &lt;textarea [(ngModel)]="meta.keywords" name="meta[keywords]" id="keywords" class="form-control"&gt; &lt;/textarea...
Gat Array of form inputs Angular2
javascript|arrays|angular|angular2-forms
-2
57
2
44,057,974
44,057,974
2
true
2017-05-18T20:59:40.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Gat Array of form inputs Angular2<p>I am building an application in Angular2 and am struggling to get the value for the following inputs.</p> <p><strong>HTM...
44,084,624
Why is this loop not running?<pre><code>n=int(input("Kiek elementų turės tavo sąrašas")) A=[] n=0 t=0 teig=int(input("Įvesk teigiamą elementą kurį noprėsi pridėti prie sąrašo")) neig=int(input("Įvesk neigiamą elementą kurį norėsi pridėti prie sąrašo")) for a in range(1,n+1): # HERE ######### t=int(input("Įvesk %i m...
<p>You say <code>range(1, n+1)</code> when <code>n=0</code>. The <code>range(1, 1)</code> is empty, so the loop never executes. Increase <code>n</code>.</p>
Why is this loop not running?
python
-2
52
5
44,084,654
44,084,654
2
true
2017-05-20T10:12:30.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is this loop not running?<pre><code>n=int(input("Kiek elementų turės tavo sąrašas")) A=[] n=0 t=0 teig=int(input("Įvesk teigiamą elementą kurį noprėsi pr...
44,220,007
Dynamic generation of images with JS<p>As part of a Coursera exercise, I am trying to show the same photo at 5 different positions of a <code>&lt;div&gt;</code>. Although I used <code>absolute</code> positioning, all photos seem to be stacked above each other.</p> <p>here is the code I am trying to use in the body ta...
<p>You left out units in the positions. If you only provide number it is ignored</p> <p>Try changing to :</p> <pre><code>var topPosition = Math.floor(Math.random()*401) +'px'; var leftPosition = Math.floor(Math.random()*401) +'px'; // ^^ units needed </code></pre> <...
Dynamic generation of images with JS
javascript|html|css
-2
36
2
44,220,118
44,220,118
2
true
2017-05-27T17:54:14.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dynamic generation of images with JS<p>As part of a Coursera exercise, I am trying to show the same photo at 5 different positions of a <code>&lt;div&gt;</co...
44,242,632
Commented an xml node through python<p>I have xml file in which looks like this</p> <pre><code>&lt;Configuration&gt; .... ... &lt;Toolkit name="Logging"&gt; &lt;Logger&gt; ... ... &lt;/Logger&gt; &lt;/Toolkit&gt; &lt;/Configuration&gt; </code></pre> <p>I want to transform this into -</p> <pre>...
<p>Try with <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/" rel="nofollow noreferrer">bs4</a>:</p> <p>from bs4 import BeautifulSoup, Comment</p> <pre><code>div_test='&lt;Configuration&gt;\ &lt;Toolkit name="Logging"&gt;\ &lt;Logger&gt;\ &lt;/Logger&gt;\ &lt;/Toolkit&gt;\ &lt;Toolkit nam...
Commented an xml node through python
python|xml|python-2.7|elementtree
-2
46
1
44,242,843
44,242,843
2
true
2017-05-29T12:34:00.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Commented an xml node through python<p>I have xml file in which looks like this</p> <pre><code>&lt;Configuration&gt; .... ... &lt;Toolkit name="Logging"&g...
44,247,258
What is it kind of data?<p><a href="https://i.stack.imgur.com/axB0M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/axB0M.png" alt="enter image description here"></a></p> <p>I use Starscream pod. When I send "KID: NOOP - sendMessage: Test from kid" from client, server got data as at picture</p> <p>...
<p>This kind of data is just a string <code>"Test from kid"</code>, it is <strong>not</strong> JSON.</p> <p>To get the string write</p> <pre><code>let responseString = String(data: data, encoding: .utf8) </code></pre> <hr> <p>A hint: </p> <p>When you print Swift 3 <code>Data</code> bridge cast the object to <code>...
What is it kind of data?
swift|websocket
-2
44
1
44,247,349
44,247,349
2
true
2017-05-29T16:50:57.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is it kind of data?<p><a href="https://i.stack.imgur.com/axB0M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/axB0M.png" alt="enter ...
44,289,386
Why all markers show up in the map after entering a query?<p>I am working on an Android Map application. It usually works fine when I enter a query but sometimes all markers show up unexpectedly.</p> <p>What correction(s) do I need to make to my code?</p> <p>This is my code:</p> <pre><code>mSearchView.setOnQueryText...
<p>I guess the situation is when you delete all your query text, the <code>queryText</code> becomes <code>""</code>. Then all the markers show up because they all contain <code>""</code>.</p> <p>Try to add this code into your methods of the <code>OnQueryTextListener</code>:</p> <pre><code>if (!queryText.equals("")) a...
Why all markers show up in the map after entering a query?
java|android|google-maps
-2
32
1
44,289,572
44,289,572
2
true
2017-05-31T15:52:57.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why all markers show up in the map after entering a query?<p>I am working on an Android Map application. It usually works fine when I enter a query but somet...
44,353,045
How to simplify and optimize the function?<p>A now write this function for my script. It works well type but a little slows down. Consider the function and if you have options for optimally ask me to help.</p> <p>Here is my code:</p> <pre><code>function izada($array) { foreach ($array as $key =&gt; $value) { ...
<p>Jakub's answer is not optimized and is potentially incorrect according to your posted method.</p> <ul> <li><p>It allows the possibility of a value with 2 ӣ's but not ending with ӣ to qualify. (If this is acceptable, then you should clarify your question requirements.)</p></li> <li><p>It calls <code>substr_count()<...
How to simplify and optimize the function?
php|arrays|performance|function|optimization
-2
51
2
44,356,401
44,356,401
2
true
2017-06-04T10:25:50.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to simplify and optimize the function?<p>A now write this function for my script. It works well type but a little slows down. Consider the function and i...
44,095,375
Ruby for loop 2 lists<p>I have a ruby on rails aplication with a model called Serie. A Serie has multiple Seasons and a season has multiple Chapters.</p> <p>This is the view controller for Serie. </p> <pre><code>@series = Serie.all </code></pre> <p>The main problem is that I want to calculate the numbers of chapters...
<pre><code>class Season &lt; ActiveRecord has_many :chapters end class Serie &lt; ActiveRecord has_many :seasons has_many :chapters, through: :seasons end </code></pre> <p>You can now do...</p> <pre><code>my_serie.chapters.count </code></pre>
Ruby for loop 2 lists
ruby-on-rails|ruby|loops
-2
42
1
44,095,801
44,095,801
3
true
2017-05-21T09:45:51.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ruby for loop 2 lists<p>I have a ruby on rails aplication with a model called Serie. A Serie has multiple Seasons and a season has multiple Chapters.</p> <p...
44,134,288
How to test "if the width of the svg is bigger than the screen one"?<p>I need to do a test to resize my SVG because I though by putting :</p> <pre><code>widht:100% !important height:100% !important </code></pre> <p>would make my SVG as I wanted a good idea but no it's not a good idea because when the SVG is small t...
<p>use <code>max-width:100%</code> and <code>height:auto</code> instead</p>
How to test "if the width of the svg is bigger than the screen one"?
javascript|css|svg
-2
56
1
44,134,337
44,134,337
3
true
2017-05-23T12:01:47.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to test "if the width of the svg is bigger than the screen one"?<p>I need to do a test to resize my SVG because I though by putting :</p> <pre><code>wid...
44,213,271
showing error cordova.inAppBrowser is undefined<p>My application was working fine.</p> <p>Yesterday I installed SQLite plugin in my app, then suddenly inappbrowser plugin stops working.</p> <p>When I run the project it says, open of undefined error</p>
<p>Also add refrence in config.xml file in res folder</p>
showing error cordova.inAppBrowser is undefined
android|inappbrowser
-2
1,856
2
44,213,354
44,213,354
-1
true
2017-05-27T05:27:01.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: showing error cordova.inAppBrowser is undefined<p>My application was working fine.</p> <p>Yesterday I installed SQLite plugin in my app, then suddenly inapp...
44,353,245
Page system in back end or front end<p>I want make a page system to a data base values, what is correct?</p> <p>1-) Get all values of backend and create a page system with front end.</p> <p>2-) Get only values that will be show in select page on back end?</p> <p>My concern is with website performance</p> <p>I'm usi...
<p>I would use the option 2 because:</p> <ul> <li><p>You won´t have in your front end data that you don´t need</p> </li> <li><p>Your front end will use less memory (as you have less data)</p> </li> <li><p>You will have less data to comunicate</p> </li> <li><p>You will have less security problems</p> </li> <li><p>Your f...
Page system in back end or front end
php|mysql|performance|angular
-2
45
1
44,353,300
44,353,300
-1
true
2017-06-04T10:50:42.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Page system in back end or front end<p>I want make a page system to a data base values, what is correct?</p> <p>1-) Get all values of backend and create a p...
43,925,769
rhe rails server does not work after changing gemfile<p>when i use <code>rails new (khar)</code> and go to khar dir run <code>rails server</code> its very good and nice but when i change gem file to</p> <pre><code> source 'https://rubygems.org' git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_...
<p>Did you read the log file?</p> <blockquote> <p>Could not load the 'listen' gem. Add <code>gem 'listen'</code> to the development group of your Gemfile (LoadError)</p> </blockquote>
rhe rails server does not work after changing gemfile
ruby-on-rails|ruby|rubygems|bundler
-2
289
2
43,925,930
43,925,930
0
true
2017-05-11T21:23:19.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: rhe rails server does not work after changing gemfile<p>when i use <code>rails new (khar)</code> and go to khar dir run <code>rails server</code> its very go...
43,984,626
Listview grouping(not based on specific properties) and without code behind WPF<p>I'm still a newbie so take it easy on me please :p I have three ObservableCollections of Type <code> Coll1 = new ObservableCollection&lt;Type&gt;(); Coll2 = new ObservableCollection&lt;Type&gt;(); Coll3...
<p>Look here (It works like charm ):</p> <p><a href="https://social.msdn.microsoft.com/Forums/windowsapps/en-US/812ed260-e113-4a8b-9322-226ed56ac90c/grouping-of-items-in-listview-wpf?forum=wpdevelop&amp;prof=required" rel="nofollow noreferrer">https://social.msdn.microsoft.com/Forums/windowsapps/en-US/812ed260-e113-4a...
Listview grouping(not based on specific properties) and without code behind WPF
c#|wpf|listview
-2
57
1
43,984,752
43,984,752
0
true
2017-05-15T16:33:05.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Listview grouping(not based on specific properties) and without code behind WPF<p>I'm still a newbie so take it easy on me please :p I have three ObservableC...
43,983,709
jmeter stress/break point performance test using constant throughput timer<p>IN JMETER , How can we change the constant throughput timer value Using a ( JavaScript or Bean Shell) function ? Say for example, test duration is 60 mins . constant throughput timer initially set to 4000 samples per min then hold the load fo...
<p>I believe better option would be using <a href="https://jmeter-plugins.org/wiki/ThroughputShapingTimer/" rel="nofollow noreferrer">Throughput Shaping Timer</a> available via <a href="https://jmeter-plugins.org/" rel="nofollow noreferrer">JMeter Plugins</a> project</p> <p>The relevant configuration would be somethin...
jmeter stress/break point performance test using constant throughput timer
java|performance|jmeter|stress-testing|beanshell
-2
836
1
43,987,169
43,987,169
0
true
2017-05-15T15:44:23.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: jmeter stress/break point performance test using constant throughput timer<p>IN JMETER , How can we change the constant throughput timer value Using a ( Jav...
44,055,384
MySQL PHP generate XML<p>Team I have a problem generating XML from MySQL thru PHP</p> <p>The XML I need to needs to have this structure</p> <pre><code>&lt;markers&gt; &lt;line width="4" html="CAR1" colour="#0000FF" label="CAR1" &gt; &lt;point label="04:57PM" lat="32.75" lng="-117.27" html="CAR1" /&gt; &lt;point label...
<p>Add a test against the previous value before starting a new element.</p> <pre><code># Initialize Empty Var for Label Comparison $prev_label = ""; while ($row = @mysqli_fetch_assoc($result)){ # New Node if Label Changes if ($prev_label != $row['label']) { // Add to XML document node $node = $dom-&gt;crea...
MySQL PHP generate XML
php|mysql|xml
-2
76
1
44,055,672
44,055,672
0
true
2017-05-18T18:30:14.473Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySQL PHP generate XML<p>Team I have a problem generating XML from MySQL thru PHP</p> <p>The XML I need to needs to have this structure</p> <pre><code>&lt;...
44,062,535
Android Horizontal Graph Matrix (see atached design)<p>I try MPChart Android Library but unable to create this type of layout .</p> <p>There are 1-24 are fixed and 5 type of hours fix, only we have to set data for these 5 hours.</p> <p>Please see this image and help me for the solution </p> <p><a href="https://i.sta...
<p>try this below code:</p> <p>activity_graph.xml:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas...
Android Horizontal Graph Matrix (see atached design)
android|android-layout|mpandroidchart|android-graphview
-2
51
1
44,062,661
44,062,661
0
true
2017-05-19T06:05:31.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android Horizontal Graph Matrix (see atached design)<p>I try MPChart Android Library but unable to create this type of layout .</p> <p>There are 1-24 are fi...
44,086,865
Delphi: extract path file from uninstallstring registry key<p>How detect, in Delphi Seattle, file is exists, if in SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall on UninstallString is parameters e.g:</p> <pre><code>1) "C:\Users\Radek\AppData\Local\Microsoft\OneDrive\OneDrive.exe" /background 2) C:\Users\Radek\App...
<p>In the first case, use <a href="http://docwiki.embarcadero.com/Libraries/en/System.SysUtils.AnsiExtractQuotedStr" rel="nofollow noreferrer"><code>AnsiExtractQuotedStr()</code></a> or <a href="http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.SysUtils.AnsiDequotedStr" rel="nofollow noreferrer"><code>AnsiDequot...
Delphi: extract path file from uninstallstring registry key
delphi
-2
322
2
44,086,924
44,086,924
0
true
2017-05-20T14:09:57.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Delphi: extract path file from uninstallstring registry key<p>How detect, in Delphi Seattle, file is exists, if in SOFTWARE\Microsoft\Windows\CurrentVersion\...
44,109,909
In the backend of WordPress, widgets are not loaded completely<p>In the backend of WordPress, widget page not loaded completely. I have tested with 1024M of RAM, but the problem still exists.</p>
<p>Have you tried disabling all of your active plugins, and does this happen with the default TwentySixteen theme as the active theme? </p> <p>Also PLease check if you are using latest vergion of wordpress or not?</p>
In the backend of WordPress, widgets are not loaded completely
wordpress|widget|admin
-2
27
1
44,111,347
44,111,347
0
true
2017-05-22T09:54:53.260Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In the backend of WordPress, widgets are not loaded completely<p>In the backend of WordPress, widget page not loaded completely. I have tested with 1024M of...
44,134,052
Correct way to layout a form<p>I have the following code:</p> <pre><code>&lt;div class="col-sm-5 content"&gt; &lt;h2&gt;Network Configuration&lt;/h2&gt; &lt;div class="modal-body"&gt; &lt;div class="checkbox"&gt; &lt;label&gt;&lt;input type="checkbox" id="cbDhcp" value...
<p>Wrap the form in a form tag. Give it the "form-control" class. Group the inputs with the "form-group" class.</p>
Correct way to layout a form
twitter-bootstrap
-2
22
1
44,134,283
44,134,283
0
true
2017-05-23T11:50:55.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Correct way to layout a form<p>I have the following code:</p> <pre><code>&lt;div class="col-sm-5 content"&gt; &lt;h2&gt;Network Configuration&lt;/h2...
44,208,243
Why does return type of the methods are abstract?<p>Link:<a href="https://developer.android.com/reference/android/view/Menu.html#NONE" rel="nofollow noreferrer">https://developer.android.com/reference/android/view/Menu.html#NONE</a></p> <p>In the above link everymethod has abstract added to it .Which class or classes ...
<blockquote> <p>What does it mean?</p> </blockquote> <p>It means that <a href="https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html" rel="nofollow noreferrer">those methods are abstract</a>. From the standpoint of JavaDocs, all methods on an interface are abstract.</p> <blockquote> <p>Which class or c...
Why does return type of the methods are abstract?
android|methods
-2
25
1
44,208,315
44,208,315
0
true
2017-05-26T18:41:21.290Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does return type of the methods are abstract?<p>Link:<a href="https://developer.android.com/reference/android/view/Menu.html#NONE" rel="nofollow noreferr...
44,231,910
How to make links clickable in Bootstrap via mobile?<p>I have a website that works fine normally but when in mobile mode, all the links (with exception of the navigation) are no longer clickable. Does anybody know how to change this? I'm not too familiar with Bootstrap though I've tried to troubleshoot as much as I can...
<p>Remove the following code from your theme css file (agency.min.css) at line 477:</p> <pre><code> div { height: 100%; } </code></pre> <p>Or you can override that property by adding the following code in your custom css file:</p> <pre><code>div{ height: auto !important; } </code></pre> <p>The problem in your cod...
How to make links clickable in Bootstrap via mobile?
html|css|twitter-bootstrap
-2
34
1
44,232,232
44,232,232
0
true
2017-05-28T20:51:13.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make links clickable in Bootstrap via mobile?<p>I have a website that works fine normally but when in mobile mode, all the links (with exception of th...
44,268,848
Hi I am trying to create a e commerce app UI design like the image below<p><a href="https://i.stack.imgur.com/Uvvfp.png" rel="nofollow noreferrer">enter image description here</a></p> <p>I have a activity and i have to display multiple fragments cards as shown in the below image.How do i organize layouts. Please help m...
<p>Add a view pager at the place where your images re being shown if you want to change them on swipe. Otherwise you can just put an image view and a text view to show the data of first item and replace the image and text on the imageview and textview one by one for all the items whenever you need. Let's say you can ch...
Hi I am trying to create a e commerce app UI design like the image below
android|e-commerce|cardview
-2
50
1
44,270,081
44,270,081
0
true
2017-05-30T17:56:16.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hi I am trying to create a e commerce app UI design like the image below<p><a href="https://i.stack.imgur.com/Uvvfp.png" rel="nofollow noreferrer">enter imag...
44,308,780
Convert Array of Objects to flat object without title names<p>What I currently have is structure like this:</p> <p><a href="https://i.stack.imgur.com/tQaaB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tQaaB.png" alt="enter image description here"></a></p> <p>What I actually trying to accomplish ...
<p>Something like this, maybe?</p> <pre><code>let map = []; list.forEach(el =&gt; map[el.id] = el.text); </code></pre>
Convert Array of Objects to flat object without title names
javascript
-2
58
1
44,308,826
44,308,826
0
true
2017-06-01T13:24:05.953Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Convert Array of Objects to flat object without title names<p>What I currently have is structure like this:</p> <p><a href="https://i.stack.imgur.com/tQaaB....
44,320,795
Dynamic Programming (how to send a message in the most efficient way)<p>I'm having a hard time with dynamic programming, I'm new in this, so I hope you could help me with anything you can, the problem is this: </p> <p>As the Communications Officer of the IKS B'Moth Klingon battle cruiser, your duty is to manage commun...
<p>You can make a 3 dimensional array, and use <code>previousCode</code>, <code>newCode</code>, and <code>ithSymbol</code> as indices. The array will store the least number of bits while scanned upto <code>ithSymbol</code> and when it switches code from <code>previousCode</code> to <code>newCode</code>.</p> <p>The rec...
Dynamic Programming (how to send a message in the most efficient way)
java
-2
68
1
44,321,709
44,321,709
0
true
2017-06-02T04:27:21.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dynamic Programming (how to send a message in the most efficient way)<p>I'm having a hard time with dynamic programming, I'm new in this, so I hope you could...
43,987,017
JQuery:nothing is loaded into iframe<p>I took this code from this <a href="http://jsfiddle.net/praveenscience/292wF/" rel="nofollow noreferrer">jsfiddle</a> and it's working on that but when I tried to use it on my site it doesn't work</p> <p>you can see my page <a href="http://www.sagisepr.com/CLEANMAPS/dropdown.html...
<p>The problem is that you are attempting to use one <code>script</code> tag to both link to JQuery and to embed your page script. A single <code>&lt;script&gt;</code> element can be used to link to an external script:</p> <pre><code>&lt;script src="PATH HERE"&gt;&lt;/script&gt; </code></pre> <p>...or to embed an int...
JQuery:nothing is loaded into iframe
javascript|jquery|html|iframe
-2
30
1
43,987,074
43,987,074
1
true
2017-05-15T19:05:23.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JQuery:nothing is loaded into iframe<p>I took this code from this <a href="http://jsfiddle.net/praveenscience/292wF/" rel="nofollow noreferrer">jsfiddle</a> ...
44,058,035
CARTO Animation Time Series Map<p>Hello I am making a animation time series map in CARTO builder. The animation works fine, but I would like my points to continuously move from point A to B, not just populate from point A to B like its doing now if theres a vast distance for the particular ID for that point. I know thi...
<p>CARTO BUILDER allows you to analyze and visualize your data according to your values. So as you pointed out, you would need to enrich your dataset with data among those dates and locations. Regarding dates, you can use <code>generate_series</code> PostgreSQL function as explained <a href="https://stackoverflow.com/q...
CARTO Animation Time Series Map
animation|gis|cartodb
-2
281
1
44,115,598
44,115,598
1
true
2017-05-18T21:26:23.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CARTO Animation Time Series Map<p>Hello I am making a animation time series map in CARTO builder. The animation works fine, but I would like my points to con...
44,222,179
Attr() is not showing<p>I don't understand why attr() isn't working (see code below). I can see correct tag with the attribute in sources, tag is creating but it's not visible on the website.</p> <pre><code>app.html('&lt;h1&gt;' + product.name + '&lt;/h1&gt;&lt;img src="' + product.img + '" width="300"&gt;&lt;/img&gt...
<p>No content is in the <code>&lt;a&gt;</code> tag. That's why.</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-html lang-html prettyprint-override"><code>&lt;a&gt;1st tag&lt;/a&gt; &lt;a&gt;&lt;/a&gt;&lt;!--Second...
Attr() is not showing
jquery
-2
70
2
44,222,198
44,222,198
1
true
2017-05-27T22:31:32.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Attr() is not showing<p>I don't understand why attr() isn't working (see code below). I can see correct tag with the attribute in sources, tag is creating b...
44,363,339
Wrong positions of group bars in plot<p>Trying to draw group bar plot using <code>MatPlotLib</code> but positions of my bars is wrong. </p> <p>So, I have a data:</p> <pre><code>groups = [ np.array([ group1.count(0), group1.count(1) ]), np.array([ group2.count(0), group2.count(1) ]), ] </code></pre> <p>The <...
<p>You may transpose the input array</p> <pre><code>groups = numpy.array([[1, 3], [0, 5]]).T </code></pre> <p><a href="https://i.stack.imgur.com/407xS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/407xS.png" alt="enter image description here"></a></p>
Wrong positions of group bars in plot
python|matplotlib
-2
30
1
44,365,147
44,365,147
1
true
2017-06-05T06:57:45.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Wrong positions of group bars in plot<p>Trying to draw group bar plot using <code>MatPlotLib</code> but positions of my bars is wrong. </p> <p>So, I have a ...
44,222,469
python about linking sublist with same number together<p>I need to group sublists with the same elements together For example:</p> <pre><code>list1 =[[1, 0], [2, 1], [30, 32]] </code></pre> <p>would link <code>[1, 0]</code> and <code>[2, 1]</code> together since they both contain <code>1</code> and those two would co...
<p>To group the sublists in a general way you can:</p> <h3>Code:</h3> <pre><code>def linking_sublists(lists): index = {} sets = [] for l in lists: found = None for i in l: if i in index: # this list has an element we have already seen if found: ...
python about linking sublist with same number together
python|list
-2
67
2
44,222,747
44,222,747
2
true
2017-05-27T23:27:47.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: python about linking sublist with same number together<p>I need to group sublists with the same elements together For example:</p> <pre><code>list1 =[[1, 0]...
44,268,449
Is there a good way to use Node and PHP in conjunction<p>Recently I have become quite attached to JavaScript. I have begun learning frameworks such as React and Vue and have set up a fully operational Node environment on my laptop with webpack and Babel etc. These things have made development a lot easier and I feel ha...
<p>It appears that you are conflating Node.JS, which is server-side JavaScript, with frontend development frameworks, such as Vue and React. While it is possible to use React to achieve server-side rendering, you can use React solely on the client-side. As a result, you are asking two questions:</p> <p><strong>Can you...
Is there a good way to use Node and PHP in conjunction
php|node.js|e-commerce
-2
59
1
44,268,577
44,268,577
2
true
2017-05-30T17:30:27.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a good way to use Node and PHP in conjunction<p>Recently I have become quite attached to JavaScript. I have begun learning frameworks such as React ...
44,346,876
Running javascript on Khan academy page<p><a href="https://i.stack.imgur.com/igkvF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/igkvF.png" alt="enter image description here"></a></p> <p>I'm working through The Algorithms section of Khan Academy. I'm working on the challenge at <a href="https://w...
<p>It runs automatically. Try removing the <code>println</code> line of code and you will see the black box that is outputting the result disappears.</p>
Running javascript on Khan academy page
javascript|khan-academy
-2
328
1
44,346,910
44,346,910
2
true
2017-06-03T17:43:39.580Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Running javascript on Khan academy page<p><a href="https://i.stack.imgur.com/igkvF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/igkvF.p...
44,335,261
Control Divergence with simple matrix multiplication kernel<p>Given the following simple matrix multiplication kernel</p> <pre><code>`__global__ void MatrixMulKernel(float* M, float* N, float* P, int Width) { int Row = blockIdx.y*blockDim.y+threadIdx.y; int Col = blockIdx.x*blockDim.x+threadIdx.x; if ((Row &lt;...
<p>Each block covers a 16x16 array of elements. To cover a matrix of 1000x1000 elements, I need a square threadblock array that has dimensions of 1000/16 = 62.5 blocks in the horizontal direction and 62.5 blocks in the vertical direction.</p> <p>But I can't launch 62.5x62.5 blocks, so in order to have full coverage I...
Control Divergence with simple matrix multiplication kernel
parallel-processing|cuda|computer-science|gpu|gpu-warp
-2
788
1
44,337,092
44,337,092
3
true
2017-06-02T18:23:32.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Control Divergence with simple matrix multiplication kernel<p>Given the following simple matrix multiplication kernel</p> <pre><code>`__global__ void Matrix...
44,219,061
How to access SparkContext on executors to save DataFrame to Cassandra?<p>How can I use <code>SparkContext</code> (to create <code>SparkSession</code> or Cassandra Sessions) on executors?</p> <p>If I pass it as a parameter to the <code>foreach</code> or <code>foreachPartition</code>, then it will have a <code>null</co...
<p>If I'd rephrase your question, what you want is to:</p> <ol> <li>Read a directory with millions of XML files</li> <li>Parse them</li> <li>Insert them into a database</li> </ol> <p>That's a typical <strong>Extract, Transform and Load</strong> (ETL) process that <em>terribly</em> easy in Spark SQL.</p> <p>Loading X...
How to access SparkContext on executors to save DataFrame to Cassandra?
java|apache-spark|apache-spark-sql|cassandra|spark-cassandra-connector
-2
2,859
2
44,228,403
44,228,403
4
true
2017-05-27T16:15:22.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to access SparkContext on executors to save DataFrame to Cassandra?<p>How can I use <code>SparkContext</code> (to create <code>SparkSession</code> or Cas...
44,248,787
Binary Search Tree Print Nodes by Level in C++ Recursively<p>Hi Everyone i know this is kind of simple question for most of the guys ,So please help me,what i am trying to achieve how can we print the nodes of a binary search tree Recursively By Level Like</p> <pre><code> 5 ...
<p>That's called a level-order tree traversal. You can check the link here, it will give you the algorithm: </p> <p><a href="http://www.geeksforgeeks.org/level-order-tree-traversal/" rel="nofollow noreferrer">http://www.geeksforgeeks.org/level-order-tree-traversal/</a></p>
Binary Search Tree Print Nodes by Level in C++ Recursively
c++|recursion|linked-list|binary-search-tree
-2
798
1
44,248,810
44,248,810
-1
true
2017-05-29T18:45:36.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Binary Search Tree Print Nodes by Level in C++ Recursively<p>Hi Everyone i know this is kind of simple question for most of the guys ,So please help me,what ...
43,989,630
Using CSS To Style Posts in Ruby on Rails<p>I'm trying to create a feed of posts for my bloglike application. I'm trying to arrange it so posts are grouped by month and there are 3 posts displayed per line.</p> <p>This is my code for my feed partial:</p> <pre><code>&lt;% @posts_by_month.each do |monthname, posts| %&g...
<p>You could wrap the month name in:</p> <pre><code>&lt;div style="clear:left"&gt;&lt;%= monthname %&gt;&lt;/div&gt; </code></pre> <p>This will make the <code>monthname</code> 'clear' anything that is floated left.</p> <p>You could make it easier on yourself though by using a grid system or using flexbox like this: ...
Using CSS To Style Posts in Ruby on Rails
css|ruby-on-rails
-2
35
1
43,989,838
43,989,838
0
true
2017-05-15T22:17:15.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using CSS To Style Posts in Ruby on Rails<p>I'm trying to create a feed of posts for my bloglike application. I'm trying to arrange it so posts are grouped b...
43,997,142
binary search tree recursive insert method<p>I'm studying <code>Java</code>, and I have some questions:</p> <p>This is a <code>binary search tree</code> and I want to create the <code>insert</code> method. What is wrong with what I did?</p> <p>I think <code>left</code> and <code>right</code> are <code>Node</code>, bu...
<p>you are not doing the insert correctly , when you find the position you need to create a new Node with the new key and make it the leaf, for example in your first check </p> <pre><code> if (key.compareTo(this.key) &lt; 0) { if (this.left == null) { System.out.println(key + " : insert success"); ...
binary search tree recursive insert method
java|binary-search-tree
-2
311
1
43,997,221
43,997,221
0
true
2017-05-16T09:13:23.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: binary search tree recursive insert method<p>I'm studying <code>Java</code>, and I have some questions:</p> <p>This is a <code>binary search tree</code> and...
44,035,381
Understand cmd command which runs java application<p>I have the following code in the batch:</p> <blockquote> <p>"C:/EDI_Module/jre1.8.0_121/bin/java" -Xms2g -Xmx10g -cp .;C:/EDI_Module/jar/<em>;C:/EDI_Module/lib/</em>; com/solverelogistics/edi/MainGenerator</p> </blockquote> <p>Can you please tell me what is going...
<p>The JRE executable (the bytecode interpreter):</p> <pre><code>"C:/EDI_Module/jre1.8.0_121/bin/java" </code></pre> <p>The starting memory size:</p> <pre><code>-Xms2g </code></pre> <p>The maximum memory size:</p> <pre><code>-Xmx10g </code></pre> <p>The <a href="https://en.wikipedia.org/wiki/Classpath_(Java)" rel...
Understand cmd command which runs java application
java|cmd
-2
32
1
44,035,663
44,035,663
1
true
2017-05-17T21:54:59.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Understand cmd command which runs java application<p>I have the following code in the batch:</p> <blockquote> <p>"C:/EDI_Module/jre1.8.0_121/bin/java" -Xm...
44,050,595
How to iterate through Active Records relation and find information based on it in Ruby on Rails?<p>Lets say I have three classes. Users, UserOrganisation, Organisations.</p> <p>Users have their userids, encrypted passwords etc.</p> <p>UserOrganisation have organisationid as foreign key, userid also as foreign key. O...
<pre><code>class User &lt; ApplicationRecord has_many :user_organizations has_many :organizations, through: :user_organizations end # rails g model user_organization user:belongs_to organization:belongs_to class UserOrganization &lt; ApplicationRecord belongs_to :user belongs_to :organization end class Organ...
How to iterate through Active Records relation and find information based on it in Ruby on Rails?
ruby-on-rails|ruby
-2
50
2
44,050,922
44,050,922
1
true
2017-05-18T14:28:18.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to iterate through Active Records relation and find information based on it in Ruby on Rails?<p>Lets say I have three classes. Users, UserOrganisation, O...
44,133,327
Why Can't I load google map?<p>I am new to programming and trying to learn it. For a projecti wanted to load a google map but i have been trying since hours but cant seem to load the google map and yet I dont see any javascript errors in the console. Can anyone points me to what mistake I am doing</p> <pre><code>&lt;!...
<p>You should add CSS as </p> <pre><code>#map { height: 400px; width: 400px; } </code></pre> <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;htm...
Why Can't I load google map?
javascript|google-maps
-2
77
2
44,134,042
44,134,042
1
true
2017-05-23T11:19:49.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why Can't I load google map?<p>I am new to programming and trying to learn it. For a projecti wanted to load a google map but i have been trying since hours ...
44,153,930
How to revert One-Hot Enoding in Spark (Scala)<p>After running k-means (mllib spark scala) I want to make sense of the cluster centers I obtained from data which I pre-processed using (among other transformers) mllib's OneHotEncoder.</p> <p>A center looks like this:</p> <p>Cluster Center 0 [0.3496378699559276,0.0548...
<p>For the cluster centroids it is not possible (strongly disrecommended) to reverse the encoding. Imagine you have the original feature "3" out of 6 and it is encoded as <code>[0.0,0.0,1.0,0.0,0.0,0.0]</code>. In this case it's easy to extract 3 as the correct feature from the encoding.</p> <p>But after kmeans applic...
How to revert One-Hot Enoding in Spark (Scala)
scala|apache-spark|cluster-analysis|apache-spark-mllib|one-hot-encoding
-2
545
1
44,160,678
44,160,678
1
true
2017-05-24T09:10:25.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to revert One-Hot Enoding in Spark (Scala)<p>After running k-means (mllib spark scala) I want to make sense of the cluster centers I obtained from data w...
44,207,448
When i try to use method it give error<p>i have a <code>switch</code> statement in which i try to check for <code>string</code> values, i want that after checking for name it should ask for marks. But when i try to make an <code>if else</code> statement in a method it gives error.</p> <p>here is the code which runs fi...
<p>A <code>switch</code> statement is not a <code>while switch</code> statement.<br></p> <p>To allow to take another input, include the <code>switch</code> in a <code>while</code> that goes on while the student String is not valid.<br> Besides, you should respect conventions : the variable name should start with a low...
When i try to use method it give error
java|if-statement|methods|switch-statement|goto
-2
70
3
44,207,504
44,207,504
1
true
2017-05-26T17:46:35.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: When i try to use method it give error<p>i have a <code>switch</code> statement in which i try to check for <code>string</code> values, i want that after che...
44,286,670
XElement parsing from XDocument, far below, repeated 2<p>I asked the same question yesterday. I solved it beautifully by the help of a nice person.</p> <p>Now, I have found that I lost one item. I'd like to make like this;</p> <pre><code>1 Boo1 // "1" is from &lt;sdl:seg id="1"&gt; 2 Boo2 3 Boo3 ... .. . </cod...
<pre><code>var q = from elem in myDoc.Descendants() where elem.Name.LocalName == "seg" from sub in elem.Descendants() where sub.Name.LocalName == "value" &amp;&amp; sub.Attribute("key").Value == "Created" select new { Id = elem.Attribute("id").Value, Creat...
XElement parsing from XDocument, far below, repeated 2
c#|xml|linq
-2
59
2
44,287,883
44,287,883
1
true
2017-05-31T13:52:40.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: XElement parsing from XDocument, far below, repeated 2<p>I asked the same question yesterday. I solved it beautifully by the help of a nice person.</p> <p>N...
44,336,845
Prevent multiple adds to listview<p>A user selects a pizza, size, etc. and the pizza is added to the basket (listview). The form clears but the user can click the add button again which adds unwanted rows to the listview. I've tried to implement a for loop to check if a check box is checked before a new record can be a...
<p>It's not exactly clear what you are trying to do, but I think your problem lies in the fact that you only want the code inside your for loop to execute once. In other words, rather than this:</p> <pre><code>For Each rb In radioButtons If rb.Checked Then ' This happens once per radio button ' Add ite...
Prevent multiple adds to listview
vb.net|listview
-2
26
1
44,336,998
44,336,998
1
true
2017-06-02T20:19:37.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Prevent multiple adds to listview<p>A user selects a pizza, size, etc. and the pizza is added to the basket (listview). The form clears but the user can clic...
44,355,090
seaborn pairplot seperate bins in diagonal<pre><code>sns.pairplot(iris, hue='class', palette='husl',kind='reg') plt.show() </code></pre> <p>That is the code I used to generate the plot(picture below). There is also a picture of how I want it to look.</p> <p>This is how it looks now: <img src="https://i.stack.imgur.co...
<p>The main difference is that compared to the example you show on the bottom, you use a different palette and a regression line. </p> <p>Once you leave out <code>palette='husl',kind='reg'</code> you get the plot on the bottom.</p> <p>The remaining difference is due to a different style in different matplotlib versio...
seaborn pairplot seperate bins in diagonal
python|matplotlib|seaborn
-2
2,108
2
44,355,240
44,355,240
1
true
2017-06-04T14:20:06.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: seaborn pairplot seperate bins in diagonal<pre><code>sns.pairplot(iris, hue='class', palette='husl',kind='reg') plt.show() </code></pre> <p>That is the code...
44,092,618
Post-tax pay calculator is returning incorrect amounts<p>I'm working on a project for a class that has me calculate gross pay, overtime pay, and net pay after taxes. Anything below $600 is taxed at 15% and anything above $600 is taxed at 20%. I believe I have all of my calculations correct; however, when I run the pro...
<blockquote> <pre><code>int hoursWorked, hourlyWage; </code></pre> <p>a wage of $15.25</p> </blockquote> <p>Your <code>int</code> variable cannot hold 15.25. And the <code>scanf</code> format code <code>%i</code> will not read decimals.</p> <p>Therefore all your calculations are happening with a wage of 15, not 15.25....
Post-tax pay calculator is returning incorrect amounts
c|rounding
-2
40
1
44,092,626
44,092,626
2
true
2017-05-21T02:34:14.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Post-tax pay calculator is returning incorrect amounts<p>I'm working on a project for a class that has me calculate gross pay, overtime pay, and net pay afte...
44,156,439
Javascript collection find values with Lodash<p>I have an array shown as below. I want to know which values inside departure and arrival fields.</p> <p>Array :</p> <pre><code>var data = { "origin": "Antalya", "destination": "IST", "flights": [{ "provider": "thy", "time": "2017-07-07 10:30...
<p>Here's a solution using lodash:</p> <pre><code>let result = _(data.flights) .flatMap('legs') .flatMap(_.values) .uniq() .value(); </code></pre> <p>First we get a flattened array of legs, transform that into a flattened array of the values of the properties of each leg, before finally getting the un...
Javascript collection find values with Lodash
javascript|lodash
-2
57
2
44,158,035
44,158,035
2
true
2017-05-24T11:00:34.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Javascript collection find values with Lodash<p>I have an array shown as below. I want to know which values inside departure and arrival fields.</p> <p>Arra...
44,324,602
Creating Pair RDDs<p>From the below RDD , I would like to create a pair RDD.</p> <pre><code>val line = sc.parallelize(Array("2,SMITH,AARON")) </code></pre> <p>I used the below code:</p> <pre><code>val pair = line.map(x =&gt; (x.split(",")(0).toInt, x)) </code></pre> <p>The output generated is <code>Array[(Int, Stri...
<p>Easy way to do this is to split and get the array in each position</p> <pre class="lang-scala prettyprint-override"><code>line.map(r =&gt; { val split = r.split(",") (split(0).toInt, (split.tail.mkString(","))) }) </code></pre>
Creating Pair RDDs
apache-spark
-2
321
2
44,324,909
44,324,909
-1
true
2017-06-02T08:48:28.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating Pair RDDs<p>From the below RDD , I would like to create a pair RDD.</p> <pre><code>val line = sc.parallelize(Array("2,SMITH,AARON")) </code></pre> ...
44,071,663
jsp/servlet Pages redirection<p>i have two page JSP <code>profile.jsp</code> and <code>comprofile.jsp</code> I will make a direction towards page <code>profile.jsp</code> if my attribut booleen <code>etat</code>in my table <code>etat=1</code> redirection <code>profile.jsp</code> else if <code>etat=0</code> redirection...
<p>your etat variable's scope is restricted to while{} loop alone..... then at your if condition <strong>etat</strong> will not be resolved to a variable</p>
jsp/servlet Pages redirection
java|jsp|servlets
-2
56
2
44,072,079
44,072,079
0
true
2017-05-19T13:42:08.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: jsp/servlet Pages redirection<p>i have two page JSP <code>profile.jsp</code> and <code>comprofile.jsp</code> I will make a direction towards page <code>profi...
44,139,004
Show an alert from hour X to hour Y<p>Hi I want to show an alert from hour X to hour Y</p> <p>I have: </p> <pre><code> $currday = date('l'); $starting_hour = DB::table('time')-&gt;select('starting_hour')-&gt;where('day' == $currday)-&gt;get(); $ending_hour = DB::table('time')-&gt;select('ending_hour')-&gt;wh...
<p>you should check the start time and end time first.</p> <pre><code>$currhour = date('H') $start = 18; $end = 9; if($start &lt; $end &amp;&amp; $currhour &gt; $start &amp;&amp; $currhour &lt; $end) return 'yes alert'; else if ($start &gt; $end) { if ($currhour &lt; $start &amp;&amp; $currhour &gt; $end) ...
Show an alert from hour X to hour Y
php
-2
65
3
44,140,048
44,140,048
0
true
2017-05-23T15:24:00.247Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Show an alert from hour X to hour Y<p>Hi I want to show an alert from hour X to hour Y</p> <p>I have: </p> <pre><code> $currday = date('l'); $starting...
44,325,091
mysql select table drop list order by in group<p>I want to group by and in group show order by list what can I do?</p> <p><a href="https://i.stack.imgur.com/BKEg9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BKEg9.jpg" alt="enter image description here"></a></p> <p>I want to view like this</p> ...
<p>Providing I understand correctly, that you want <code>num</code> in ascending order, and within that <code>serial</code> in descending order, then this query will work for you:</p> <pre><code>SELECT * from mytable ORDER BY num, serial DESC </code></pre> <p><a href="http://sqlfiddle.com/#!9/a80ab/1" rel="nofollow n...
mysql select table drop list order by in group
php|mysql
-2
28
1
44,325,920
44,325,920
0
true
2017-06-02T09:12:53.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: mysql select table drop list order by in group<p>I want to group by and in group show order by list what can I do?</p> <p><a href="https://i.stack.imgur.co...
43,992,575
Reverse the given number program in PL/SQL<p>I was trying to execute this program but it only outputs the <code>~</code> symbol. </p> <p>This is the code:</p> <pre><code>DECLARE N_NUM NUMBER := 234; N_REM NUMBER; N_REV NUMBER := 0; BEGIN WHILE N_NUM != 0 LOOP N_REM := MOD (N_NUM, 10); ...
<p>A second option is using the <code>REVERSE()</code> function. <br> However, that function would like to input a CHAR, not a NUMBER. <br> So you will have to convert that first. <br></p> <p>For example: <br></p> <pre><code>DECLARE N_Num NUMBER := 234; N_Rev NUMBER := 0; BEGIN SELECT REVERSE(TO_CHAR(N_Num))...
Reverse the given number program in PL/SQL
oracle|plsql
-2
5,183
4
43,994,941
43,994,941
1
true
2017-05-16T04:35:01.913Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reverse the given number program in PL/SQL<p>I was trying to execute this program but it only outputs the <code>~</code> symbol. </p> <p>This is the code:</...
44,019,308
add onclick event on table created by js using append and navigate to show relevant data<p>I have created 1 table on html using data from an array. Now what i want is a user to click on the names showing in the table [page name -showlist.html] and then on the next page it should show the description inside a div. How c...
<p>You should add an click event to your table row. Something like this:</p> <pre><code>function fetch_section_data_1(){ var keys = Object.keys(localStorage).filter(function(key) { return /^section\d+$/.test(key); }); var dataArray = [{ title: "test1", description: "&lt;h1&gt;test1&lt;/h1&gt;" }, ...
add onclick event on table created by js using append and navigate to show relevant data
javascript|jquery|html|arrays
-2
46
1
44,019,932
44,019,932
1
true
2017-05-17T08:21:16.027Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: add onclick event on table created by js using append and navigate to show relevant data<p>I have created 1 table on html using data from an array. Now what ...
44,099,358
PHP line breaks in email form<p>I am having a problem with an email php form. When the user submits the form the email format doesn't come out right. I want it to be something like this:</p> <p>Contact form below:<br> Name:<br> Surname:<br> email:<br> telephone:<br> message: </p> <p>Using my code below the message c...
<p>it depends on whether you send the email as plain text or html. if you use plain text you can insert a new line character</p> <pre><code>echo "........" . "\n" </code></pre> <p>or if you use html you can use the <code>&lt;br&gt;</code> tag</p> <p>You set your content-type to text/html. So you need to use <code>&l...
PHP line breaks in email form
php|forms|email|line|break
-2
827
1
44,099,405
44,099,405
1
true
2017-05-21T16:45:41.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP line breaks in email form<p>I am having a problem with an email php form. When the user submits the form the email format doesn't come out right. I want ...
44,281,847
AWS Elastic Compute Cloud charging more than 24hrs a day<p>I am using Amazons Elastic Beanstalk to host a Tomcat server. I am using the t1.micro free tier. However, for this month, my bill is for over the free 750 hours. <a href="https://i.stack.imgur.com/D37wf.png" rel="nofollow noreferrer"><img src="https://i.stack....
<p>This Billing contains All Ec2 instance. Which includes all the running ec2 instance not only ec2 instance launched using elastic beanstalk.</p> <p>Can you check have you launch any other instance other than elasticbeanstalk..? </p>
AWS Elastic Compute Cloud charging more than 24hrs a day
amazon-web-services|amazon-ec2|amazon-elastic-beanstalk
-2
56
2
44,282,516
44,282,516
1
true
2017-05-31T10:09:22.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AWS Elastic Compute Cloud charging more than 24hrs a day<p>I am using Amazons Elastic Beanstalk to host a Tomcat server. I am using the t1.micro free tier. H...
44,320,209
Fetch ID value from given JSON<p>How can I get the value of id from given sample below..</p> <pre><code>{ "photoId": { "id": "CAoSLEFGMVFpcE5tbW82VTNhZ210ZDlLQ0J4dTEtNk5nZlNTV25CeXhzTHJxZ3Rk" } } </code></pre> <p>I am getting this value from </p> <pre><code>$response_meta = curl_exec($curl_meta); </code></pre> <p>I...
<p>You will be able to access it the following way. </p> <pre><code>$response_meta['photoID']['id'] </code></pre>
Fetch ID value from given JSON
regex|curl
-2
40
3
44,320,248
44,320,248
1
true
2017-06-02T03:14:40.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Fetch ID value from given JSON<p>How can I get the value of id from given sample below..</p> <pre><code>{ "photoId": { "id": "CAoSLEFGMVFpcE5tbW82VTNhZ210ZD...