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,989,878
Authentication in Express Middleware<p>I'm a little new to this. I have REST API made with Node.js and Express.js. Some routes have authentication middleware. To use those routes, a header has to be set with the user's auth token which gets verified. I have been doing this with no problem with static sites using local ...
<p>There's not a whole lot of detail in your question for exactly what you're trying to do, but I can explain the general concepts available to you in Express:</p> <p>The usual scheme for Express is to authenticate the user initially and then set a session cookie that indicates that user has been authenticated. Since...
Authentication in Express Middleware
node.js|rest|express|authentication
-1
3,117
2
43,990,232
43,990,232
0
true
2017-05-15T22:40:39.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Authentication in Express Middleware<p>I'm a little new to this. I have REST API made with Node.js and Express.js. Some routes have authentication middleware...
43,991,623
Entity Framework and Linq syntax<p>I'm trying to do a select where the final two letters of an id match whats in a string enumerable passed to the method but i;m getting the syntax wrong</p> <p>I'm trying to get it down to something along these lines</p> <pre><code>setHeaders.SET_ID.Substring(setHeaders.SET_ID.Length...
<p>I think your latest testing would work better with <code>.EndsWith</code></p> <pre><code>setHeaders.SET_ID.ToUpper().EndsWith("TR") </code></pre> <p>LINQ often can't translate <code>.Contains</code> for a local collection, but if it could I don't think you would need <code>.Any</code> or <code>.ToString()</code> (...
Entity Framework and Linq syntax
c#|entity-framework|linq
-1
64
1
44,006,121
44,006,121
0
true
2017-05-16T02:32:51.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Entity Framework and Linq syntax<p>I'm trying to do a select where the final two letters of an id match whats in a string enumerable passed to the method but...
44,047,439
User typed table javascript<p>I've been trying to make a table based on user inputs, however, I can't run the writeTable function of the cell id when the input field is exited. I assume it is a syntax error with the functions, but I cannot find a solution online.</p> <p>JAVASCRIPT</p> <pre><code>&lt;script&gt; fu...
<p>Here is Your Solution :</p> <pre><code> &lt;!-- INPUT TABLE --&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt;Angle (c)&lt;/th&gt; &lt;th&gt;Voltage - Test 1&lt;/th&gt; &lt;th&gt;Voltage - Test 2&lt;/th&gt; &lt;th&gt;Voltage - Test 3&lt;/th&gt; &lt;...
User typed table javascript
javascript|html
-1
38
2
44,048,003
44,048,003
0
true
2017-05-18T12:12:29.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: User typed table javascript<p>I've been trying to make a table based on user inputs, however, I can't run the writeTable function of the cell id when the inp...
44,075,144
Trigonometry - intersection of vector, created from azimuth and elevation, with plane<p>So, look at the image. I think it is self-describing what I want to achieve. The size of <strong>T</strong> is just for example. <strong>P0</strong> can be also more up. Think the problem is, this computation counts on that the plan...
<p>You have point P0 and direction vector dirGlobal, they define parametric equation of the ray P0P1 (t is parameter)</p> <pre><code>X = P0.X + dirGlobal.X * t Y = P0.Y + dirGlobal.Y * t Z = P0.Z + dirGlobal.Z * t </code></pre> <p>Substitute these values in plane equation</p> <pre><code> A * X + B * Y + C * Z + D = ...
Trigonometry - intersection of vector, created from azimuth and elevation, with plane
intersection|trigonometry|azimuth
-1
256
1
44,103,869
44,103,869
0
true
2017-05-19T16:45:46.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trigonometry - intersection of vector, created from azimuth and elevation, with plane<p>So, look at the image. I think it is self-describing what I want to a...
44,141,763
Passing arry of custom objects then applying to textView the array variables<p>I am starting to learn java and android developement and got stuck with passing a custom array from my MainMenu activity to another activity used to print out the values. Can anybody point out where I went wrong?</p> <p>MainMenu Class: </...
<p>I think is because you have to get an array of Parcelables and be sure that class Sati is Parcelable.</p> <pre><code>Sati[] sati = getIntent().getParcelableArrayExtra("Sati"); </code></pre>
Passing arry of custom objects then applying to textView the array variables
java|android|arrays|android-activity|textview
-1
36
1
44,141,922
44,141,922
0
true
2017-05-23T17:49:35.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Passing arry of custom objects then applying to textView the array variables<p>I am starting to learn java and android developement and got stuck with passin...
44,153,590
'Array<T>' requires 1 type argument(s)<p>I have seen this error reproduced online in different threads.</p> <p>I have tried these and i am still not able to find a solution:</p> <blockquote> <p>(11,23): Generic type 'Array' requires 1 type argument(s).</p> </blockquote> <p>This is refering to the array below <code...
<p>The easiest solution is </p> <pre><code>public pulses: any[] = []; </code></pre> <p>And about the error, I guess it's because you should use <code>new Array(Type)</code> instead</p>
'Array<T>' requires 1 type argument(s)
arrays|angular
-1
1,541
1
44,153,799
44,153,799
0
true
2017-05-24T08:55:46.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 'Array<T>' requires 1 type argument(s)<p>I have seen this error reproduced online in different threads.</p> <p>I have tried these and i am still not able to...
44,193,180
Gather rows that go along with a new column from VLOOKUP<p>SampleSheet.xlsx - <a href="https://www.dropbox.com/s/ugha8sjvgrpi5w7/SampleSheet.xlsx?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/ugha8sjvgrpi5w7/SampleSheet.xlsx?dl=0</a></p> <p>This is a small, generic version of what I am really working with....
<p>You can write this as a Macro and run if you are familiar with Excel VBA.</p> <p>Variables to Consider here, you can change them according to your requirements :</p> <ul> <li>Uses Activesheet so you must use the Macro while the sheet with data is active</li> <li>Uses fix column numbers, Long data is in Column A, ...
Gather rows that go along with a new column from VLOOKUP
excel|vlookup
-1
32
1
44,193,669
44,193,669
0
true
2017-05-26T03:34:38.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Gather rows that go along with a new column from VLOOKUP<p>SampleSheet.xlsx - <a href="https://www.dropbox.com/s/ugha8sjvgrpi5w7/SampleSheet.xlsx?dl=0" rel="...
44,197,199
Default String value in number picker<p>i m using a number picker to show string values. in case when no value get from adapter then default value is shown "0". i want my number picker to be String default value when adapter not set any value.. </p> <pre><code>&lt;NumberPicker android:id="@+id/sub_category" ...
<p>try something like this--</p> <pre><code>StringFormatter implements Formatter { public String toString(int value) { switch(value) { case 0: return "String1"; case 1: return "String2"; } return "Unknown"; } } </code></pre> <p><code>picker.setFormatter(new StringFo...
Default String value in number picker
android
-1
531
1
44,197,353
44,197,353
0
true
2017-05-26T08:40:23Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Default String value in number picker<p>i m using a number picker to show string values. in case when no value get from adapter then default value is shown "...
44,215,730
When UITextView is scrolling ...?<p>I have a textView which is not editable so my textView is only readable. And there is a ImageView on the top of textView. I want that, when the textView is scrolling, ImageView (Y position) disappear slowly depends on How many the textView scrolled.. If I should give an example, it l...
<p>First of call UIScrollViewDelegate, make your viewcontroller delegate to self.Because it's subclass of UIScrollview.</p> <p>and implement scrollView function according to your need.Suppose you want to disappear image after scrolling finished. then implement this method.</p> <pre><code>- (void)scrollViewDidEndDecel...
When UITextView is scrolling ...?
ios|swift3|textview
-1
45
1
44,215,925
44,215,925
0
true
2017-05-27T10:27:50.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: When UITextView is scrolling ...?<p>I have a textView which is not editable so my textView is only readable. And there is a ImageView on the top of textView....
44,234,481
[react,ES6]I fail to access object in http script label in index.html , from my own JS page<p><strong>This is the script in my index.html</strong></p> <pre><code>&lt;script type="text/javascript" src="http://api.map.baidu.com/api v=2.0&amp;ak=eBGR7XzaPhB5UbYARl3E7ksdkMdgrCw7"&gt;&lt;/script&gt; </code></pre> <p>and ...
<p>I am guessing that you wanted to use BMap that is provided by baidu api. I changed the src that is actually pointing to the script and it seems to work. Note that you probably want to change the <code>https</code> to <code>http</code> when you are developing locally, as it may not work otherwise. See working example...
[react,ES6]I fail to access object in http script label in index.html , from my own JS page
javascript|reactjs|ecmascript-6
-1
59
1
44,235,081
44,235,081
0
true
2017-05-29T04:10:59.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: [react,ES6]I fail to access object in http script label in index.html , from my own JS page<p><strong>This is the script in my index.html</strong></p> <pre>...
44,237,956
Send and receive data from a websocket server using sockets in Vb.net<p>i am new to network programming and would really appreciate your help to receive and send data to a server. I am trying to Use Sockets to Send and Receive data from a server which is developed using WebSockets. </p> <p>Until now i have created th...
<p>'HTTP/1.1 501 Not Implemented' was sent by the server, not generated by VB.</p> <p>I would assume from this that your code works fine, and the problem lies with the command(s) you are sending after the client connects.</p>
Send and receive data from a websocket server using sockets in Vb.net
vb.net|multithreading|sockets|websocket
-1
4,651
1
44,242,303
44,242,303
0
true
2017-05-29T08:32:47.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Send and receive data from a websocket server using sockets in Vb.net<p>i am new to network programming and would really appreciate your help to receive and ...
44,249,085
Non greedy regexp eat too much<p>i have a string </p> <pre><code>&lt;div class="line"&gt;&lt;input name="sid" value="" type="hidden"&gt;&lt;img src="1.jpg" height="40" width="180"&gt;&lt;input name="word" size="30" maxlength="50" value="" type="text"&gt;&lt;/div&gt; </code></pre> <p>and i trying to find and replace w...
<p>Use this one: <code>/&lt;input[^&gt;]+name="word".+?&gt;/ui</code></p> <p>In your pattern it finds first <code>&lt;input</code> and then until <code>word</code>... If you use <code>&lt;input[^&gt;]+</code> it will find <code>&lt;input</code> and than group of simbols except closing <code>&gt;</code> until <code>na...
Non greedy regexp eat too much
php|regex|preg-replace|preg-match
-1
32
2
44,249,130
44,249,130
0
true
2017-05-29T19:08:25.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Non greedy regexp eat too much<p>i have a string </p> <pre><code>&lt;div class="line"&gt;&lt;input name="sid" value="" type="hidden"&gt;&lt;img src="1.jpg" ...
44,308,840
Unable to set Admob Banner in Bottom<p>I am trying to set my admob banner on bottom of the screen but it's not showing. I have tried all possible way to set it as bottom but I am unable to set it...its going down side of expandable list view.</p> <p>My XML is like below...let me know if someone can help me to sort out...
<pre><code>android:layout_alignParentBottom="true" </code></pre> <p>works only in RelativeLayout, but it's inside a LinearLayout.</p> <p>You could change the root layout to RelativeLayout and wrap everything but your AdView inside another LinearLayout (or better handle the behaviour of the other views as expected ins...
Unable to set Admob Banner in Bottom
java|android|android-layout
-1
20
1
44,308,913
44,308,913
0
true
2017-06-01T13:26:43.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to set Admob Banner in Bottom<p>I am trying to set my admob banner on bottom of the screen but it's not showing. I have tried all possible way to set ...
44,346,201
How to mapping from monoalphabetic cipher in java?<blockquote> <p>Encryption type being implemented: monoalphabetic cipher<p></p> <p>For example,<br> step 1. - step 2. - step 3. -</p> <p>result : -</p> </blockquote> <p>I want to encrypt the plaintext as above. How do you approach it?</p>
<p><strong>Try this <code>plainText.charAt(i) - 'a'</code> as the index of cipher</strong> </p> <p>Example : </p> <pre><code>char[] cipher = "dstuvwxuzabcdefghiklmnopqr".toCharArray(); String plainText = "iloveyouz"; StringBuilder cipherText = new StringBuilder(); for (int i = 0; i &lt; plainText.length(); i++) { ...
How to mapping from monoalphabetic cipher in java?
java|encryption|mapping
-1
295
1
44,346,466
44,346,466
0
true
2017-06-03T16:34:15.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to mapping from monoalphabetic cipher in java?<blockquote> <p>Encryption type being implemented: monoalphabetic cipher<p></p> <p>For example,<br> step 1....
44,346,497
Add a Camera Preview<p>I want my Activity background to be the Camera(Back) view,I have so far tried to add a surfaceView but no luck,the tutorials I found were for opening the camera app. P.S- I do want to add more resources over the SurfaceView/Camera. &amp; I don't want to click a picture only the preview As I do no...
<p>have you tried something like this?</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;SurfaceView android:layout_width="match_pa...
Add a Camera Preview
android|surfaceview|preview
-1
72
1
44,346,809
44,346,809
0
true
2017-06-03T17:04:24.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add a Camera Preview<p>I want my Activity background to be the Camera(Back) view,I have so far tried to add a surfaceView but no luck,the tutorials I found w...
44,348,374
Python catch int or str<p>I've written a program that generates a random number for the user to guess. I'm working on trying to catch all the possible errors. The only one I can't seem to figure out is this. At the beginning I ask the user to hit enter to continue to the game. The program catches if they type a string ...
<p>What happens when you enter a number is that the program tries to convert the number to an <code>int</code> (which works), and then to a <code>str</code> (which also works), after which it breaks. Instead, try the following:</p> <pre><code>from random import randint #imports randint from random class cont = input(...
Python catch int or str
python
-1
54
2
44,348,414
44,348,414
0
true
2017-06-03T20:42:22.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python catch int or str<p>I've written a program that generates a random number for the user to guess. I'm working on trying to catch all the possible errors...
43,991,187
I am trying to make a quiz where each time the questions get mixed up and numbers from an array correspond with functions in that order<p> Start</p> <p>So there is an array with numbers. Then it picks a random order from those numbers. those numbers correspond with functions and the functions are questions. Is there ...
<p>Okay, so first let's think about your question a bit, then we'll get down to some code. </p> <p>So first, it's awesome you thought of the array of numbers corresponding to functions! That kind of mapping, where numbers in the array correspond to the functions which represent questions is similar to a lot of what ...
I am trying to make a quiz where each time the questions get mixed up and numbers from an array correspond with functions in that order
javascript
-1
39
1
43,991,303
43,991,303
1
true
2017-05-16T01:32:51.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I am trying to make a quiz where each time the questions get mixed up and numbers from an array correspond with functions in that order<p> Start</p> <p>So t...
44,044,396
How to pass a PHP Array into jQuery AJAX $.post<p>Objective:<br> I have <code>php array</code> variable, and I need to put this array (<code>$key</code> and <code>$value</code>) into the jQuery AJAX <code>$.post</code>, and send it to another php(next.php) page.</p> <p>PHP array Variable: </p> <pre><code>$issue['key...
<p>you can use <a href="http://php.net/manual/en/function.json-encode.php" rel="nofollow noreferrer">json_encode</a> to make a valid javascript object</p> <pre><code>$("#ButtonCreate").click(function() { $.post("next.php", &lt;?php echo json_encode($issue); ?&gt;, function(data, status) { docu...
How to pass a PHP Array into jQuery AJAX $.post
jquery|ajax|.post
-1
2,109
2
44,044,751
44,044,751
1
true
2017-05-18T09:51:34.810Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass a PHP Array into jQuery AJAX $.post<p>Objective:<br> I have <code>php array</code> variable, and I need to put this array (<code>$key</code> and ...
44,046,418
JavaScript function refuses to execute in order<p>One of the case statements in the top function below is not going in order. Currently, it goes straight to the prompt, and if you click Cancel, <code>operatorPickup</code> is never heard at all. If I type 'police', I get the police recording which is in <em>a different ...
<p>you could use an event listener on the <code>play()</code> so it will only prompt once media file finished playing.</p> <p>I've never worked with HTML5's <code>audio</code> as of yet but this question: <a href="https://stackoverflow.com/questions/11103582/detecting-when-html5-audio-is-finished-playing-more-than-onc...
JavaScript function refuses to execute in order
javascript
-1
73
2
44,046,645
44,046,645
1
true
2017-05-18T11:23:38.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JavaScript function refuses to execute in order<p>One of the case statements in the top function below is not going in order. Currently, it goes straight to ...
44,078,846
Is there a workaround to submitting a form by clicking on a div without using JavaScript<p>This is the idea, there is a limited number of users, each has their own "box", when they click it, if they chose not to have a password they should be auto logged-in, if they do have a password a form will popup and they can typ...
<p>Wrap each box with a form. Post the form when user click the box. On server side depending upon user need authenticated or not load the same page in client but this time with the popup(if need authentication), you can control the popup by setting a session variable in server and access it on asp page.</p> <p>Not su...
Is there a workaround to submitting a form by clicking on a div without using JavaScript
javascript|html|asp.net-mvc
-1
31
1
44,078,912
44,078,912
1
true
2017-05-19T20:54:59.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a workaround to submitting a form by clicking on a div without using JavaScript<p>This is the idea, there is a limited number of users, each has the...
44,100,060
VBScript if typed response = Minute(now) Invalid procedure error<p>When you type the minute to be the same as the current minute (Ex. you type in 20 and its currently 1:<strong>20</strong>) I want it to end the script. Instead it gives me </p> <blockquote> <p>Invalid procedure call or argument error.</p> </blockquot...
<p>I am not sure about the logic which you are using here but I think the 'If' condition comparing the values of variables 'Mi' and 'RM' is returning False.</p> <p>Suppose the current time is 1:20.</p> <p>In your code, the variable Mi stores the input taken from the user which is of type <strong>vbString</strong>. Su...
VBScript if typed response = Minute(now) Invalid procedure error
vbscript
-1
52
1
44,100,408
44,100,408
1
true
2017-05-21T17:56:17.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VBScript if typed response = Minute(now) Invalid procedure error<p>When you type the minute to be the same as the current minute (Ex. you type in 20 and its ...
44,216,254
Tensorflow: ValueError: Cannot feed value of shape (423,) for Tensor 'Placeholder:0', which has shape '(?, 423)'<p>I'm a newbie to ML and learning TF through this <a href="https://www.youtube.com/watch?v=6rDWwL6irG0&amp;list=PLQVvvaa0QuDfKTOs3Keq_kaG2P55YRn5v&amp;index=50" rel="nofollow noreferrer">tutorial</a> - </p> ...
<p>First of all, your code is incomplete, check <code>neural_network_model</code> function.</p> <p>Anyways the following code works. For now, I have just used one network layer, you can add more layers in your <code>neural_network_model</code> function. Making sure that <code>n_classes</code> and the size of <code>out...
Tensorflow: ValueError: Cannot feed value of shape (423,) for Tensor 'Placeholder:0', which has shape '(?, 423)'
python|machine-learning|tensorflow|nlp
-1
2,072
1
44,216,540
44,216,540
1
true
2017-05-27T11:24:18.493Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Tensorflow: ValueError: Cannot feed value of shape (423,) for Tensor 'Placeholder:0', which has shape '(?, 423)'<p>I'm a newbie to ML and learning TF through...
44,248,846
Group by with 3 columns<p>I have 3 columns to get data.</p> <p>1- amount, 2- transaction_id and order_id</p> <p>Made group by (transaction_id), sum(amount) and get all order_id.</p> <pre><code>id order_id transaction_id amount 1 1 3333 698.00 1 2 3333 758.00 1 ...
<p>Assuming the db is mysql (please tag your db in the question), use <a href="http://www.w3resource.com/mysql/aggregate-functions-and-grouping/aggregate-functions-and-grouping-group_concat.php" rel="nofollow noreferrer">group_concat</a> for this like:</p> <p><code>SELECT sum(amouNt) as sum, transaction_id, group_conc...
Group by with 3 columns
php
-1
29
1
44,248,881
44,248,881
1
true
2017-05-29T18:49:45.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Group by with 3 columns<p>I have 3 columns to get data.</p> <p>1- amount, 2- transaction_id and order_id</p> <p>Made group by (transaction_id), sum(amount...
44,252,524
What does ph stand for in reinforcement learning<p>I'm reading the OpenAI baselines code for DQN. </p> <p>There's a function named <code>make_obs_ph</code> that <code>take a name and creates a placeholder of input with that name</code>.</p> <p>What does <code>ph</code> stand for ?</p>
<p>The meaning there is placeholder.</p> <p>place, holder. ph.</p>
What does ph stand for in reinforcement learning
machine-learning
-1
42
1
44,252,530
44,252,530
1
true
2017-05-30T02:27:21.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What does ph stand for in reinforcement learning<p>I'm reading the OpenAI baselines code for DQN. </p> <p>There's a function named <code>make_obs_ph</code> ...
43,935,977
Long delay for iOS consumer<p>I use RabbitMQ and CloudAMQP server to send messages between 2 applications.</p> <p>It takes <strong>less than a second</strong> to send message between two .Net console applications or from iOS app to .Net console application.</p> <p>But if I send the message from .Net console applicati...
<p>Could be improper use of UI calls from a background thread, but it's impossible to tell from the outside.</p> <p>Your receive function is making a call <code>subscribe</code> that takes a completion handler. If that completion handler is run on a background thread then you will need to wrap any UI calls inside the ...
Long delay for iOS consumer
c#|ios|.net|swift|rabbitmq
-1
49
1
43,936,130
43,936,130
2
true
2017-05-12T10:51:31.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Long delay for iOS consumer<p>I use RabbitMQ and CloudAMQP server to send messages between 2 applications.</p> <p>It takes <strong>less than a second</stron...
44,022,201
how to get information during mouseover in d3<p>I am using and working on d3 chart. Now my functionality is I create a div dynamically and put the color in div using scale.<br> Linear it's working fine now my need is i need like google pinrest like location notify i put it in all div when i mouseover it i need to show ...
<p>Append img tag to each div and set the title attribute of the image as its container div color.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var body = d3.select("body")...
how to get information during mouseover in d3
d3.js|charts|chart.js
-1
41
1
44,023,480
44,023,480
2
true
2017-05-17T10:24:36.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to get information during mouseover in d3<p>I am using and working on d3 chart. Now my functionality is I create a div dynamically and put the color in d...
44,080,217
Where is 'links' defined?<p>I'm new at Ruby and trying to understand this code. I am wondering where 'links' (@links = {}) is defined in 'def initialize'. There is the function with the same name. Is the 'links' in 'def initialize' pointing the function? Then how could @links = {} work? </p> <pre><code>#--- # Excerpte...
<p><code>@links = {}</code> is an instance variable and is available to all methods within the class. which you can later access in the links method. While having the same name one is object and one is a method.</p>
Where is 'links' defined?
ruby
-1
41
1
44,080,259
44,080,259
2
true
2017-05-19T23:16:59.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Where is 'links' defined?<p>I'm new at Ruby and trying to understand this code. I am wondering where 'links' (@links = {}) is defined in 'def initialize'. Th...
44,104,777
How I can install application like .exe or dll file by java code<p>How to install silently application in windows by java code. I have downloaded the file from server but need to install also on a single click. How can I achieve this.?</p>
<p>If I understood it correct you want to install a third application from your java application. All you can do is below (this is for exe.. not sure about dll, I do not think you can run them). That should run the installable exe. But it will install or not that depends upon how that software works.. an give it a try....
How I can install application like .exe or dll file by java code
java
-1
43
2
44,104,808
44,104,808
2
true
2017-05-22T04:39:08.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How I can install application like .exe or dll file by java code<p>How to install silently application in windows by java code. I have downloaded the file fr...
44,112,594
how to get table rows which is nested in other tables using xpath in scrapy spiders<p>How to get the table rows which is nested in other tables and form tag. I tried few codes but doesn't seem to work. </p> <p>I have used the below python code but not able to get anything</p> <pre><code>def parse(self, response): ...
<p>You can choose which tags to follow in xpath by specifying the tag in brackets. </p> <p>For your example it would be: </p> <pre><code> //table[@class="gridTable"]/... </code></pre>
how to get table rows which is nested in other tables using xpath in scrapy spiders
xpath|web-scraping|scrapy
-1
324
2
44,112,656
44,112,656
2
true
2017-05-22T12:13:09.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to get table rows which is nested in other tables using xpath in scrapy spiders<p>How to get the table rows which is nested in other tables and form tag....
44,142,864
How to call a secured route using AWS Lambda?<p>This is the "code" section of my AWS Lambda function. It works fine when I use this on our staging environment (non-SSL.)</p> <p>I've tried to use the answer from <a href="https://stackoverflow.com/questions/31673587/error-unable-to-verify-the-first-certificate-in-nodejs...
<p>You need to include ssl-root-cas in package.json, and include it when you publish your lambda code.</p> <pre><code>npm init -y npm install --save ssl-root-cas </code></pre> <p>Zip up the node_modules along with your lambda code, then publish it to Lambda</p>
How to call a secured route using AWS Lambda?
node.js|amazon-web-services|ssl|lambda
-1
821
1
44,143,044
44,143,044
3
true
2017-05-23T18:52:10.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to call a secured route using AWS Lambda?<p>This is the "code" section of my AWS Lambda function. It works fine when I use this on our staging environmen...
44,256,484
Unmarshall json reference types<p>I'm trying to write a working example to test "Reference Types" section of <a href="https://blog.golang.org/json-and-go" rel="nofollow noreferrer">this link</a>.</p> <p>But I'm unable to understand how this should work. The example I'm trying to write without success is provided below...
<p>The json you have posted in your example looks like it is missing <code>F1</code> in the body?</p> <p><a href="https://play.golang.org/p/Fl-lhH2y3X" rel="nofollow noreferrer">https://play.golang.org/p/Fl-lhH2y3X</a></p> <p><code> b := []byte(`{"F1":{"Val":13}}`) </code></p>
Unmarshall json reference types
json|go|unmarshalling
-1
71
1
44,256,618
44,256,618
3
true
2017-05-30T07:48:45.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unmarshall json reference types<p>I'm trying to write a working example to test "Reference Types" section of <a href="https://blog.golang.org/json-and-go" re...
44,046,049
How to retrieve URL content using JAVA?<p>I store the sensor data in a <em>web page</em> using GPRS and I want to retrieve this data to display it in an <strong>Android mobile</strong> application but i don't know how.</p> <p>How can I read the content from a <strong><em>URL</em></strong> using <strong>JAVA?</strong> ...
<p>Example:</p> <pre><code>import java.net.*; import java.io.*; public class URLReader { public static void main(String[] args) throws Exception { URL oracle = new URL("http://www.oracle.com/"); BufferedReader in = new BufferedReader( new InputStreamReader(oracle.openStream())); String inputLine; ...
How to retrieve URL content using JAVA?
java|android|url
-1
65
1
44,046,112
44,046,112
5
true
2017-05-18T11:06:37.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to retrieve URL content using JAVA?<p>I store the sensor data in a <em>web page</em> using GPRS and I want to retrieve this data to display it in an <str...
44,220,288
Understanding what php daemons are<p>I just Google "What is a php daemon" but I only recieved result on how to create php daemon. Please can someone clearly explain to me the concept behind it? It will help me for my test. Thank in advance...</p>
<p><strong>php daemons :</strong> Asynchronous server-side framework for Web and network applications implemented in PHP using libevent. phpDaemon can handle thousands of simultaneous connections</p> <p><strong>For Tutorial:</strong></p> <blockquote> <p><a href="http://collaboradev.com/2011/03/31/php-daemons-tutori...
Understanding what php daemons are
php|daemon|definition
-1
71
1
44,220,362
44,220,362
-2
true
2017-05-27T18:24:27.923Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Understanding what php daemons are<p>I just Google "What is a php daemon" but I only recieved result on how to create php daemon. Please can someone clearly ...
44,061,408
WPF MVVM, how to can we display a dictionary<string,List<string>> horizontally with editing enabled<p>I'm pretty new to WPF MVVM. I'm looking for a solution where I can display my dictionary in a view horizontally. Basically i want something like this<a href="https://i.stack.imgur.com/ytLVg.png" rel="nofollow noreferr...
<p>Possible duplicate of this <a href="https://stackoverflow.com/a/24361223/5134119">WPF: Dictionary> in DataGrid</a></p> <p>You need to bind inner list items dynamically. Refer above thread with similar problem.</p> <p>Good luck! (Do not forget to mark this as answer if you find it helpful) </p>
WPF MVVM, how to can we display a dictionary<string,List<string>> horizontally with editing enabled
c#|wpf|mvvm
-1
280
1
44,061,646
44,061,646
-1
true
2017-05-19T04:21:01.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: WPF MVVM, how to can we display a dictionary<string,List<string>> horizontally with editing enabled<p>I'm pretty new to WPF MVVM. I'm looking for a solution ...
44,251,282
How can I dynamically create arrays whose names are generated from source data?<p>I am processing a C++ file. Initially I store the terminal results into an array using backticks. My terminal result is as below and it varies depending on the C file. In this case I have only 3 <code>TAP</code> prefixes: <code>TAP1</code...
<p>You probably want a hash where the keys are <code>TAPn</code> and the values are array references.</p> <pre><code>use strict; use warnings; use Data::Dumper; my %data; while (&lt;DATA&gt;) { chomp; my ($key, $val) = split/\s*=\s*/; push(@{$data{$key}}, $val); } print Dumper(\%data); __DATA__ TAP1= ...
How can I dynamically create arrays whose names are generated from source data?
arrays|perl
-1
48
2
44,251,490
44,251,490
-1
true
2017-05-29T23:11:46.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I dynamically create arrays whose names are generated from source data?<p>I am processing a C++ file. Initially I store the terminal results into an ...
44,034,538
Need explanation for this command "chown -R apache.apache wp-content"<p>Problem statement: Trying to set up a webserver and install a wordpress on it.while trying to install, came across this command "apache.apache" .Wanted to know what this command does? </p>
<p><code>chown</code> is for changing the <strong>owner</strong>, in your case your are going to change the user and group owners of wp-content to <code>apache</code>, <code>apache</code>.</p> <pre><code>chown $user:$group $directoryname </code></pre> <p>and <code>-R</code> for recursive which means wp-content and al...
Need explanation for this command "chown -R apache.apache wp-content"
apache|webserver
-1
520
1
44,034,650
44,034,650
0
true
2017-05-17T20:48:26.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Need explanation for this command "chown -R apache.apache wp-content"<p>Problem statement: Trying to set up a webserver and install a wordpress on it.while t...
44,043,427
bash : replace text with partially-space-filled string<p>I have a file of the following format.</p> <pre><code>33256SOL OW 100092 1.507 1.186 0.847 33256SOL HW1100093 1.561 1.233 0.783 ... </code></pre> <p>And I would like to change it to </p> <pre><code>33256SOL OW 92 1.507 1.186 0.84...
<p><strong><em>awk</em></strong> solution:</p> <pre><code>awk -F"[[:space:]][[:space:]]+" '{$2=substr($2,1,3) " " substr($2,4)-100000}1' file </code></pre> <p>The output:</p> <pre><code>33256SOL OW 92 1.507 1.186 0.847 33256SOL HW1 93 1.561 1.233 0.783 </code></pre> <hr> <ul> <li><p><code>-F"[[:space:]][[:space:]...
bash : replace text with partially-space-filled string
bash|sed
-1
70
2
44,043,729
44,043,729
0
true
2017-05-18T09:11:38.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: bash : replace text with partially-space-filled string<p>I have a file of the following format.</p> <pre><code>33256SOL OW 100092 1.507 1.186 0.847...
44,056,695
Replacing a single numeric value in a string containing multiple copies of the same numeric value to be replaced<p>I want to remove a specific numeric value, as well as text, in the first part of a string without changing the numeric values in the latter part of the string.<br> The problem is the script I wrote if the ...
<pre><code>gsub("DA[0-9]\\*", "", 'DA1*01:01:01') [1] "01:01:01" </code></pre> <p>or id the 'DA' literal is followed by an unknown number of digits you can add '*' after the [0-9] to include any number of digits you may have ie :</p> <pre><code>gsub("DA[0-9]*\\*", "", 'DA1234569*01:01:01') [1] "01:01:01" </code></pr...
Replacing a single numeric value in a string containing multiple copies of the same numeric value to be replaced
r|replace
-1
41
1
44,056,778
44,056,778
0
true
2017-05-18T19:53:26.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Replacing a single numeric value in a string containing multiple copies of the same numeric value to be replaced<p>I want to remove a specific numeric value,...
43,940,481
How to Start programming for API testing with POSTMAN<p>Currently i have started to work with API testing with postman. But also i don't know java script and i don't know where to start with java script for Postman programming.I'd be cool if someone gave me hand </p>
<p><strong>EDIT</strong></p> <p><a href="https://www.getpostman.com/docs/postman/scripts/postman_sandbox" rel="nofollow noreferrer">Here</a> you can find all libraries and functions available in POSTMAN.</p>
How to Start programming for API testing with POSTMAN
javascript|postman|web-api-testing
-1
1,087
1
43,940,583
43,940,583
1
true
2017-05-12T14:42:20.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Start programming for API testing with POSTMAN<p>Currently i have started to work with API testing with postman. But also i don't know java script and...
43,944,570
Using constructor in a child class throws an error<p>I've been studying how to use inherited classes in <strong><code>C#</code></strong>. I have no clue whatsoever as to why my code in invalid.</p> <p>What I'm trying to achieve is to have one class (<code>Child</code>) that inherits from another (<code>Parent</code>)....
<p>You need to pass it down to the parent via the <code>base</code> keyword:</p> <pre><code>public class Parent { internal bool IsOpen; public Parent(bool isOpen) { this.IsOpen = isOpen; } } public class Child : Parent { public Child(bool isOpen) : base(isOpen) { } } </cod...
Using constructor in a child class throws an error
c#
-1
59
2
43,944,590
43,944,590
1
true
2017-05-12T18:42:48.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using constructor in a child class throws an error<p>I've been studying how to use inherited classes in <strong><code>C#</code></strong>. I have no clue what...
43,963,985
How is it possible to repeatedly read from a NamedPipe in Windows?<p>How is it possible to repeatedly read from a NamedPipe in Windows? I get an 109 error, saying it could not open pipe, if I have a ReadFile() function after another ReadFile() function.</p>
<p>of course this is possible and need do <em>after</em> your pipe is connected and until disconnect. 109 this is <code>ERROR_BROKEN_PIPE</code> - you got this error in <code>ReadFile</code> when another end is close pipe handle, by call <code>CloseHandle</code>. in this case you need call <a href="https://msdn.microso...
How is it possible to repeatedly read from a NamedPipe in Windows?
winapi|named-pipes
-1
584
1
43,964,175
43,964,175
1
true
2017-05-14T12:38:11.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How is it possible to repeatedly read from a NamedPipe in Windows?<p>How is it possible to repeatedly read from a NamedPipe in Windows? I get an 109 error, s...
43,989,783
How to add an image in jquery function generated text<p>I have a function that greets the user {GOOD MORNING, GOOD AFTERNOON, GOOD EVENING AND GOOD NIGHT} based on system time using Jquery.</p> <p>I am trying to insert an image in the various messages (sun,moon...)</p> <pre><code>function updateWeatherLocationAndTime...
<p>You can either put the <code>&lt;img&gt;</code> tag directly in the <code>greets</code> string, or you can update an existing tag.</p> <hr> <p>First example:</p> <p><code>greets = 'Night &lt;img src="moon.jpg" alt="" /&gt;';</code></p> <hr> <p>Second example:</p> <p><strong>HTML:</strong></p> <pre><code>&lt;...
How to add an image in jquery function generated text
jquery
-1
30
1
43,989,907
43,989,907
1
true
2017-05-15T22:30:52.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add an image in jquery function generated text<p>I have a function that greets the user {GOOD MORNING, GOOD AFTERNOON, GOOD EVENING AND GOOD NIGHT} ba...
44,000,486
TypeError: Image data can not convert to float. How to mitigate this error?<pre><code>from numpy import mean,cov,cumsum,dot,linalg,size,flipud import numpy as np from pylab import imread,subplot,imshow,title,gray,figure,show,NullLocator def princomp(A,numpc=0): #computing eigenvalues and eigenvectors of covariance...
<p>You cannot plot a complex array with matplotlib <code>imshow</code>. So you need to take the real or imaginary part alone, e.g.</p> <pre><code>Ar = dot(coeff,score).T+mean(A,axis=0) # image reconstruction Ar = Ar.real </code></pre>
TypeError: Image data can not convert to float. How to mitigate this error?
python-3.x|numpy|matplotlib
-1
790
1
44,000,721
44,000,721
1
true
2017-05-16T11:40:29.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: TypeError: Image data can not convert to float. How to mitigate this error?<pre><code>from numpy import mean,cov,cumsum,dot,linalg,size,flipud import numpy a...
44,031,836
Trying to understand the time complexity of a binary search<p>I am trying to understand the Big O notation for the time complexity of a binary search. I understand it is O(log n). So is this basically saying that for a list of 16 elements, it will at maximum take log2(16) = 4 attempts? If that is true how would that wo...
<p>The usefulness of big-oh notation is <strong><em>not</em></strong> that it can tell precisely how many operations it will take to process an input of a certain size. It can't.</p> <p>Big-oh notation tells us how the number of operations required to do the processing <strong><em>varies in relation</em></strong> to ...
Trying to understand the time complexity of a binary search
time-complexity|big-o|binary-search
-1
35
1
44,031,928
44,031,928
1
true
2017-05-17T17:56:30.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to understand the time complexity of a binary search<p>I am trying to understand the Big O notation for the time complexity of a binary search. I unde...
44,121,667
modify unique_together constraint to save new object and delete old<p>I have a model with a unique_together constraint on four fields. Instead of raising the normal Validation Error, however, I want to delete the old object and replace it with the newer one (or maybe update the old one? would also work). I'm a littl...
<p>overriding the <code>save</code> method is OK, but it will fetch the database every time, possibly causing performance loss. It will be better, and more <em>pythonic</em>, if you handle the <code>ValidationError</code>:</p> <pre><code>try: YourModel.objects.create( unique_together_field_1, unique_...
modify unique_together constraint to save new object and delete old
django
-1
513
1
44,126,186
44,126,186
1
true
2017-05-22T20:31:55.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: modify unique_together constraint to save new object and delete old<p>I have a model with a unique_together constraint on four fields. Instead of raising th...
44,193,539
angular2/ionic2 how to use *ngFor parameter in a function call<p>I'll preface this by saying that this by saying that I'm new to SO and to Angular2.</p> <p>I'm trying to use my *ngFor loop as a parameter to pass with navCtrl.push() down the line. The goal would be to have something like Facebook Messenger, where you c...
<p>Problem here is that in template you don't have <strong>this</strong> I mean that when you write this.navCtrl angular will look for a property this inside of your component, second problem groupVotePage is not a property, so simply speaking everything you use in templates must be properties/methods inside of your co...
angular2/ionic2 how to use *ngFor parameter in a function call
angular|ionic2
-1
293
1
44,193,601
44,193,601
1
true
2017-05-26T04:18:43.857Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: angular2/ionic2 how to use *ngFor parameter in a function call<p>I'll preface this by saying that this by saying that I'm new to SO and to Angular2.</p> <p>...
44,204,324
insert text into multiple fields such as excel cells<p>I'm configuring autohotkey for the first time and am having trouble with a script to insert text into multiple fields. The syntax I'm using does not work. </p> <pre><code>array_CCS := [] array_ccs.insert("1100580") array_ccs.insert("1098954") array_ccs.insert("103...
<p><code>for</code> returns both the key and value for each element:</p> <pre><code>f4:: for key,value in array_ccs { send Value: %value%{ERROR} } return </code></pre> <p>Output when pressing F4 in notepad:</p> <pre><code>Value: 1100580 Value: 1098954 Value: 1032801 Value: 1100579 </code></pre> <p>ref: <a...
insert text into multiple fields such as excel cells
autohotkey
-1
292
2
44,205,136
44,205,136
1
true
2017-05-26T14:40:51.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: insert text into multiple fields such as excel cells<p>I'm configuring autohotkey for the first time and am having trouble with a script to insert text into ...
44,366,495
Query Fine Tuning<p>I am fairly new to sql and would like to ask for your assistance regarding this query. Is there another way to rewrite this?</p> <pre><code> Select * From emp Where emp_no IN ( Select emp_no From dept_emp Where dept_no = 'd002' ); </code></pre> <p>Any assistance is greatly ap...
<p>You can use <code>exists</code>:</p> <pre><code>select * from emp where exists( select 1 from dept_emp where dept_emp.emp_no = emp.emp_no and dept_no = 'd002' ) </code></pre> <p>also maybe <code>inner join</code> work:</p> <pre><code>select emp.* from emp join dept_emp on dept_emp.emp_no = emp.emp_no and dep...
Query Fine Tuning
mysql
-1
31
4
44,366,544
44,366,544
1
true
2017-06-05T10:06:12.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Query Fine Tuning<p>I am fairly new to sql and would like to ask for your assistance regarding this query. Is there another way to rewrite this?</p> <pre><c...
44,027,484
Tkinter buttons bellow grid to close and save to file<p>I'm trying to create a grid of buttons that change colour with Tkinter. </p> <pre><code>from tkinter import * class App(): def __init__(self, root): self.root = root buttonQ = Button(self.root, text = "Quit", command = endProgam()) bu...
<p>First, your indentation levels for your Class are off. The methods need to be indented another level or you'll get a TypeError for each method.</p> <p>Second, for <code>buttonQ</code> and <code>buttonS</code>, make sure you are referencing the instance of the class, i.e.:</p> <pre><code>buttonQ = Button(self.root,...
Tkinter buttons bellow grid to close and save to file
python|python-3.x|button|tkinter|grid
-1
779
1
44,028,743
44,028,743
3
true
2017-05-17T14:19:29.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Tkinter buttons bellow grid to close and save to file<p>I'm trying to create a grid of buttons that change colour with Tkinter. </p> <pre><code>from tkinter...
44,169,534
Having trouble with value returning<p>During swift coding, I would like to get the value form my function, but something went wrong, it shows an error: </p> <blockquote> <p>Error: Use of unresolved Identifier 'amount'</p> </blockquote> <p>What it the correct way to get "amount" from this function?</p> <pre><code>f...
<p>The issue is that the <code>amount</code> variable is in the scope of the network request's closure, and cannot be accessed from the main body of the function. Presumably, your network request could take some time to complete, so you could use a closure instead that runs when the network request returns.</p> <pre><...
Having trouble with value returning
swift3
-1
33
1
44,169,652
44,169,652
-1
true
2017-05-24T22:33:32.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Having trouble with value returning<p>During swift coding, I would like to get the value form my function, but something went wrong, it shows an error: </p> ...
44,211,690
why doesn't d3.scale Quantize generate discrete values over my continuous range<p>I tried to use <code>d3.scaleQuantize()</code> to create a scale to outputs a number of discrete quantities defined by the range. Below is my code. </p> <pre><code>var d3 = require("d3") var domain = ["a", "b","c","d"] var color = d3.sc...
<blockquote> <p>Quantize scales are similar to linear scales, except they use a discrete rather than continuous range. The continuous input domain is divided into uniform segments based on the number of values in (i.e., the cardinality of) the output range.</p> </blockquote> <p>You misunderstood quantize scale in d3...
why doesn't d3.scale Quantize generate discrete values over my continuous range
javascript|d3.js
-1
294
1
44,211,751
44,211,751
-1
true
2017-05-27T00:19:39.810Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: why doesn't d3.scale Quantize generate discrete values over my continuous range<p>I tried to use <code>d3.scaleQuantize()</code> to create a scale to outputs...
43,924,751
How to play streaming on ionic1?<p>How to play streaming on ionic1?</p> <p>Do you recommend angularjs video <a href="http://www.videogular.com/" rel="nofollow noreferrer">http://www.videogular.com/</a>? Or some plugin?</p>
<p>How about <a href="https://github.com/nchutchind/cordova-plugin-streaming-media" rel="nofollow noreferrer">https://github.com/nchutchind/cordova-plugin-streaming-media</a></p> <p>Depends upon the source too though. A simple video tag will also suffice if you're using a common format.</p>
How to play streaming on ionic1?
angularjs|ionic-framework|video-streaming|html5-video
-1
66
1
43,925,120
43,925,120
0
true
2017-05-11T20:13:42.157Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to play streaming on ionic1?<p>How to play streaming on ionic1?</p> <p>Do you recommend angularjs video <a href="http://www.videogular.com/" rel="nofoll...
44,058,897
How to Autopatch Azure IaaS VMs<p>We have a public website hosted on two Azure IaaS VMs which are behind a Network Load Balancer. What are the available solutions to auto patch and reboot without impacting site availability? </p> <p>I am looking for a solution like this</p> <ol> <li><p>Suppress the IaaS VM in NLB to ...
<blockquote> <p>Are there any solution available for this in Azure?</p> </blockquote> <p>I suggest you could use <a href="https://docs.microsoft.com/en-us/azure/operations-management-suite/oms-solution-update-management#installing-updates" rel="nofollow noreferrer">Update Management solution</a> in the Operations Ma...
How to Autopatch Azure IaaS VMs
powershell|azure|iaas|patch
-1
330
1
44,059,970
44,059,970
0
true
2017-05-18T22:43:59.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Autopatch Azure IaaS VMs<p>We have a public website hosted on two Azure IaaS VMs which are behind a Network Load Balancer. What are the available solu...
44,080,499
Uneven pivot without aggregation (filling in the blanks)<p>I have the following table</p> <h2>Header: user, status, value</h2> <p>row1: u1,A,3</p> <p>row2: u1,B,5</p> <p>row3: u1,B,2</p> <p>row4, u2,A,4</p> <p>row5: u2,C,8</p> <p>and I want the output to be a crosstab with NULL if there are not sufficient value...
<p>Not clear if you needed Dynamic (i.e. user columns). Small matter if needed.</p> <p><strong>Example</strong></p> <pre><code>Select [Status] ,u1 = max(case when [user]='u1' then Value end) ,u2 = max(case when [user]='u2' then Value end) From ( Select * ,Grp = Value - Row_...
Uneven pivot without aggregation (filling in the blanks)
sql|sql-server|tsql
-1
28
1
44,080,912
44,080,912
0
true
2017-05-19T23:57:23.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Uneven pivot without aggregation (filling in the blanks)<p>I have the following table</p> <h2>Header: user, status, value</h2> <p>row1: u1,A,3</p> <p>row...
44,181,881
Remove whitespace to left and right of div at smaller screen resolutions using CSS<p>I am using a div.wide tag in my stylesheet to display a fullscreen graphic at the top of a page.</p> <pre><code>div.wide { height:500px; background-image: url(http://www.vidalingua.com/images/pont-des-invalides.jpg); backgrou...
<pre><code>@media (max-width: 767px){ body { padding-left: 20px; padding-right: 20px; } .navbar-fixed-top, .navbar-fixed-bottom, .navbar-static-top { margin-left: -20px; margin-right: -20px; } } </code></pre> <p>change this to </p> <pre><code> @media (max-width: 767px){ body { p...
Remove whitespace to left and right of div at smaller screen resolutions using CSS
html|css|background-image
-1
68
2
44,182,319
44,182,319
0
true
2017-05-25T13:22:13.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove whitespace to left and right of div at smaller screen resolutions using CSS<p>I am using a div.wide tag in my stylesheet to display a fullscreen graph...
44,271,902
Looping in XML file<pre><code>&lt;?php $xml = "&lt;Placemark&gt; &lt;name&gt;ED1YBY&lt;/name&gt; &lt;description&gt;&lt;![CDATA[145.750 MHz -600 kHz FM (RV60 - R6)&lt;br&gt;IN62IG&lt;br&gt;URE Ourense]]&gt;&lt;/description&gt; &lt;styleUrl&gt;#icon-503-DB4436&lt;/styleUrl&gt; &lt;Point&gt; &lt;coordinates&gt; -7.281189...
<p>I did a quick search on php.net for SimpleXMLExtractor. It did not turn up any results.</p> <p>Please replace this line:</p> <pre><code>$obj = new SimpleXMLExtractor($xml); </code></pre> <p>With this:</p> <pre><code>$obj = simplexml_load_string($xml); </code></pre> <p>The other issue is that you need a root XML...
Looping in XML file
php|xml
-1
60
1
44,271,991
44,271,991
0
true
2017-05-30T21:06:37.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Looping in XML file<pre><code>&lt;?php $xml = "&lt;Placemark&gt; &lt;name&gt;ED1YBY&lt;/name&gt; &lt;description&gt;&lt;![CDATA[145.750 MHz -600 kHz FM (RV60...
43,955,315
How to make a code run while a view is open in Django<p>I am wondering how I could get tasks running, but They will not be doing nothing until I allow by doing some action in another device that is recognized by django, but meanwhile I will need to have these tasks running while I have a view open and the actions of th...
<p>You can surely use <a href="http://www.celeryproject.org/" rel="nofollow noreferrer">Celery</a> as a task queue along with RabbitMQ as the broker, for processing your tasks asynchronously. I think you want to keep in-sync your devices, which can be achieved by handling the event from one of device and process it asy...
How to make a code run while a view is open in Django
python|django|django-views
-1
42
1
43,955,801
43,955,801
1
true
2017-05-13T16:14:58.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make a code run while a view is open in Django<p>I am wondering how I could get tasks running, but They will not be doing nothing until I allow by doi...
43,956,741
Problems with SSH when router is reset<p>I have set up port forward on my home router, so that I can SSH from anywhere to my desktop using the router's public ip. However, it appears that anytime the router looses power, this public ip changes, and I need to look up the new one before I can SSH again (which requires b...
<p>It depends on your router. Many routers support dynamic dns providers. Routers supporting dynamic dns notify your dns provider every time your public ip address changes. You don't need to know the public ip any more. You do only use the dns entry.</p>
Problems with SSH when router is reset
ubuntu|ssh
-1
62
1
43,956,831
43,956,831
1
true
2017-05-13T18:42:41.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problems with SSH when router is reset<p>I have set up port forward on my home router, so that I can SSH from anywhere to my desktop using the router's publi...
44,254,597
VB Net + Mysql + System.NullReferenceException<p>I have an error with System.NullReferenceException mysql select "COMMAND.CommandText = "select * from Users where user= @user and pass= @pass"" at click button.</p> <pre><code> MysqlConn = New MySqlConnection(ConfigurationManager.ConnectionStrings("Mydb.My.MySett...
<p>COMMAND seems be not defined before it is being used. Like you have defined READER, define COMMAND as well then use it.And also change below code:</p> <pre><code>ConfigurationManager.ConnectionStrings("Mydb.My.MySettings.Mydb") </code></pre> <p>To</p> <pre><code>ConfigurationManager.ConnectionStrings("Mydb.My.MyS...
VB Net + Mysql + System.NullReferenceException
mysql|vb.net
-1
76
2
44,254,846
44,254,846
1
true
2017-05-30T06:02:31.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VB Net + Mysql + System.NullReferenceException<p>I have an error with System.NullReferenceException mysql select "COMMAND.CommandText = "select * from Users ...
44,265,891
Laravel Guzzle getting destination and due time from a page<p>I want my website to scrape information from this page beta.tfgm.com/public-transport/tram/stops/oldham-central-tra‌​m and in particular I want to scrape destination and due time from that website and give me an output.</p> <p>At this moment my controller l...
<p><code>dd</code> is not useful for you here, try this :</p> <pre><code>$client = new \GuzzleHttp\Client(); $results = $client-&gt;get('https://beta.tfgm.com/public-transport/tram/stops/oldham-central-tram'); print_r($results-&gt;getBody()-&gt;getContents()); // The HTML content </code></pre>
Laravel Guzzle getting destination and due time from a page
laravel|laravel-5|guzzle
-1
300
1
44,266,346
44,266,346
1
true
2017-05-30T15:09:41.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel Guzzle getting destination and due time from a page<p>I want my website to scrape information from this page beta.tfgm.com/public-transport/tram/stop...
44,320,532
Trying to get this page responsive<p>I'm struggling with this, I need this page content <a href="http://stirringminds.com/partners/" rel="nofollow noreferrer">http://stirringminds.com/partners/</a> to become responsive but I overchanged the code and now don't know what to do.</p> <p>HTML:</p> <pre><code>&lt;div class...
<p>You have to include this in your css file.</p> <pre><code> @media only screen and (max-width: 768px) { .row &gt; .col-md-2 { display: flex; overflow-x: scroll; } } </code></pre> <p>Give a meaningful class name in the mark up for the .row or .col-md-2 and update the same in the ab...
Trying to get this page responsive
html|css|twitter-bootstrap|twitter-bootstrap-3
-1
51
2
44,320,615
44,320,615
1
true
2017-06-02T03:58:41.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to get this page responsive<p>I'm struggling with this, I need this page content <a href="http://stirringminds.com/partners/" rel="nofollow noreferrer...
44,367,982
pull property object as parent object<p>I have this set of data which I have no control (it's hosted API somewhere, I have no access)</p> <pre><code>let x = [ {name: "james", age: 10, school: {id:1, name:"London"}}, {name: "james_2", age: 11, school: {id:1, name:"London"}}, {name: "john", age: 12, school: ...
<p>You can use <a href="https://lodash.com/docs/4.17.4#groupBy" rel="nofollow noreferrer"><code>_.groupBy()</code></a> and map the results back into array:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true"> <div class="snippet-code"> <pre class="snippet-code-js lang-js ...
pull property object as parent object
javascript|ecmascript-6|lodash
-1
36
6
44,368,169
44,368,169
2
true
2017-06-05T11:30:11.263Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pull property object as parent object<p>I have this set of data which I have no control (it's hosted API somewhere, I have no access)</p> <pre><code>let x =...
44,365,470
Need to further optimize code<p>Following is the code which I need to optimize:</p> <pre><code> Scanner sc = new Scanner(System.in); int sum=0; //stores the result </code></pre> <p>Creating 4 lists, A B C to save the input values respectively, D to get the final list of results and S to store the sum...
<p>So basically you need to calculate the value of <code>sum</code> in the above code which is basically the sum of all possible permutations of <code>(a+b)*(b+c)</code>. I formulated this into a simple sigma equation and simplified it as follows:</p> <p><a href="https://i.stack.imgur.com/sO8R8.png" rel="nofollow nore...
Need to further optimize code
java
-1
65
1
44,385,678
44,385,678
2
true
2017-06-05T09:11:31.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Need to further optimize code<p>Following is the code which I need to optimize:</p> <pre><code> Scanner sc = new Scanner(System.in); int sum=0; ...
43,981,104
Crystal Report + VB net + Mysql How many if and ElsIf<p>I have a form with 4 comboboxes and a button. This button search the 4 values of the comboboxes:</p> <ol> <li>License</li> <li>Maker</li> <li>Type</li> <li>Scale</li> </ol> <p>How can I select 2 of the values without the other two, for example, Maker and Scale?...
<p>Add an if statement to check if the value is empty if it is empty then do not add the parameters to the command.</p> <p>As for the SQL you can add Where 1=1 then wrap each field/value in an If statement to check for blank. By adding in the 1=1 it will make all the field/values format the same AND FIELD = VALUE</p>...
Crystal Report + VB net + Mysql How many if and ElsIf
mysql|vb.net|combobox|crystal-reports
-1
34
1
44,005,735
44,005,735
1
true
2017-05-15T13:41:18.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Crystal Report + VB net + Mysql How many if and ElsIf<p>I have a form with 4 comboboxes and a button. This button search the 4 values of the comboboxes:</p>...
44,037,260
Reading page conten using beautiful soup<p>I am trying to read page content from the following link:</p> <p><a href="http://google.com" rel="nofollow noreferrer">http://google.com</a></p> <p>But, it read the "page source" instead and page source has none of the information displayed on the page.</p> <p>I have tried ...
<p>You can make a request to the ajax api and use <code>json</code> to parse the response : </p> <pre><code>import json url = 'http://esearch.hayscad.com/Search/SearchResults/?keywords=hipoc&amp;filter=&amp;page=6&amp;pageSize=25&amp;skip=125&amp;take=25' request = urlopen(url) response = json.loads(request.read()) ...
Reading page conten using beautiful soup
python-2.7|beautifulsoup
-1
64
1
44,047,316
44,047,316
1
true
2017-05-18T01:44:57.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reading page conten using beautiful soup<p>I am trying to read page content from the following link:</p> <p><a href="http://google.com" rel="nofollow norefe...
44,341,995
Why type casting is required while using itrerator object in the while loop?<p>I am learning java right now. While writing code for traversing <code>ArrayList</code> using <code>Iterator</code> I have to use the class name before using the iterator's object with <code>next()</code> function. Can anybody help me with th...
<p>Make your Iterator <code>UserId</code> type (specify the type), ie </p> <pre><code>Iterator&lt;UserId&gt; itr = details.iterator(); </code></pre> <p>Because if you don't specify the type, how will it understand what to return. So for generalized purpose it will return Object type and thats why downcasting is requi...
Why type casting is required while using itrerator object in the while loop?
java|collections
-1
801
3
44,342,022
44,342,022
4
true
2017-06-03T08:32:14.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why type casting is required while using itrerator object in the while loop?<p>I am learning java right now. While writing code for traversing <code>ArrayLis...
44,075,037
Window does not show. WPF<p>I've created a <code>DataGridTemplateColumn</code> with a button. I bound that with a <code>Command</code> but after I click on it, nothing happens. However, if I move the button to the Outside of the DataGrid, it works fine.</p> <pre><code>&lt;DataGrid AutoGenerateColumns="False" Horizonta...
<p>Your <code>Button</code> is inside of a <code>DataTemplate</code> and therefore doesn't have direct access to the outer data context. Try this.</p> <p>Give your <code>DataGrid</code> a name</p> <pre><code>&lt;DataGrid Name="myGrid" AutoGenerateColumns="False" HorizontalAlignment="Stretch" VerticalAlignment="Stret...
Window does not show. WPF
c#|wpf|xaml|binding
-1
51
1
44,075,116
44,075,116
-1
true
2017-05-19T16:39:31.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Window does not show. WPF<p>I've created a <code>DataGridTemplateColumn</code> with a button. I bound that with a <code>Command</code> but after I click on i...
43,952,279
how to check the string has been convert to vector into the data in R?<p>i wanna change my <em>string input</em> to vector that can checked to my data.<br> this my string input, </p> <pre><code>input&lt;-("i am a student") </code></pre> <p>i have been change it to vector with code bellow </p> <pre><code>a&lt;-unli...
<p>We can do this with <code>ifelse</code></p> <pre><code>ifelse(a %in% kamus, a, &quot;nothing&quot;) </code></pre> <hr /> <p>BTW, the <code>a %in% kamus</code> returns a logical vector. It is only due to the OP's post, we showed the <code>ifelse</code> to change the values</p> <h3>Update</h3> <p>Based on the update ...
how to check the string has been convert to vector into the data in R?
r
-1
30
2
43,952,313
43,952,313
0
true
2017-05-13T10:55:16.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to check the string has been convert to vector into the data in R?<p>i wanna change my <em>string input</em> to vector that can checked to my data.<br> t...
44,106,768
How to preserve Table Headers during drop down change?<p>When i am changing Drop down value , the headers of drop down are being lost </p> <p>The drop down names are all dynamic and should be picked up from JSON only . Right now at a time it is displaying only one drop down name .</p> <p>This is my code</p> <pre><c...
<p>you can save each dropdownlist's selectedItem in a specific field base on the current <code>key</code> of <code>ng-repeat</code>.</p> <pre><code>&lt;!-- save selectedItem in specific field --&gt; &lt;select ng-change="getchange(selectItem)" ng-model="selectItem[key]" &gt; &lt;!-- display value based on value kept ...
How to preserve Table Headers during drop down change?
angularjs
-1
67
1
44,107,536
44,107,536
0
true
2017-05-22T07:16:04.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to preserve Table Headers during drop down change?<p>When i am changing Drop down value , the headers of drop down are being lost </p> <p>The drop down ...
43,936,294
replacing the content of a program dynamically upon the output of grep<p>a.cpp</p> <pre><code>int main() { bool b; bool c = true; bool d; bool e ; bool f ; int x = 3; std::cout &lt;&lt; "x is " &lt;&lt; x &lt;&lt; std::endl; return 0; } </code></pre> <p>grepping for c files which...
<p>The following command will replace directly in files and create backup filename.BAK, <code>-i.BAK</code>, <code>-i</code> without extension doesn't backup.</p> <p><code>directory_path</code> must be replaced with the path <code>.</code> if current</p> <pre><code>find directory_path \( -name '*.c' -o -name '*.cpp'...
replacing the content of a program dynamically upon the output of grep
linux|bash|shell
-1
33
2
43,936,371
43,936,371
1
true
2017-05-12T11:06:01.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: replacing the content of a program dynamically upon the output of grep<p>a.cpp</p> <pre><code>int main() { bool b; bool c = true; bool d; ...
44,162,263
Request cached when using HTTP/2<p>I have a strange behaviour I can't explain with http/2:</p> <p>During an oauth authentication process, I'm trying to login on A.domain, using B.domain provider. When both servers have HTTP/2 enabled, and using the same ssl cert (a wildcard), on the same IP (so with TLS SNI) the reque...
<p>Under HTTP/2 connections can be reused under a process known as coalescing.</p> <p>This is to allow full HTTP/2 benefits even when sharding has been used to improve performance for HTTP/1.1 connection - which is no longer necessary under HTTP/2 and in fact is bad for performance (since the setting up of additional ...
Request cached when using HTTP/2
angularjs|ssl|http2
-1
562
1
44,163,462
44,163,462
1
true
2017-05-24T15:06:28.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Request cached when using HTTP/2<p>I have a strange behaviour I can't explain with http/2:</p> <p>During an oauth authentication process, I'm trying to logi...
44,062,630
Creating Generic methods<p>I am here wanted to implement some methods that coverts a list of interface references to their respective class type and then return the list is unique in some sense. </p> <p>Here is the </p> <pre><code> public bool IsFilesHavingUniqueID(List&lt;IFile&gt; files) { List&lt;Fi...
<p>You can simply specify type and interface as generic parameters:</p> <pre><code>public bool IsTablesHavingUniqueID&lt;TInterface, T&gt;(List&lt;TInterface&gt; tables) where T:TInterface { List&lt;T&gt; _tables = tables.ConvertAll(x =&gt; (T)x).ToList(); return _tables.Distinct().ToList().Count == tab...
Creating Generic methods
c#|generics
-1
53
2
44,062,739
44,062,739
0
true
2017-05-19T06:12:08.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating Generic methods<p>I am here wanted to implement some methods that coverts a list of interface references to their respective class type and then ret...
43,957,998
How to cement two xpath expressions into one?<p>Can't get any idea to cement the two expressions into one xpath. They both fall under the same class "pagination". I need to use that in a loop. I tried separately like this:</p> <pre><code>//div[@class='pagination']//a/@href //div[@class='pagination']//a[contains(@class...
<p>There are many ways you can combine two XPath expressions. One way, for example, is to use the union operator "|". Whether that's the right operator to use depends on what you want to achieve. Unfortunately you forget to tell us what you want to achieve, so that might not be the right operator for your purposes.</p>
How to cement two xpath expressions into one?
xpath
-1
47
1
43,958,854
43,958,854
1
true
2017-05-13T21:07:42.473Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to cement two xpath expressions into one?<p>Can't get any idea to cement the two expressions into one xpath. They both fall under the same class "paginat...
43,960,739
Cannot implicitly convert type 'System.Collections.Generic.List<<anonymous type:>>' to 'System.Collections.Generic.List<p>I'm trying to return a row from my DB but I get the following error </p> <blockquote> <p>Cannot implicitly convert type 'System.Collections.Generic.List&lt;&lt; anonymous type: int Id, string Fil...
<p>Your method expects to return <code>EF_Model.PDF</code> but your linq query instantiates an anonymous type.</p> <p>Instead instantiate the <code>PDF</code> type:</p> <pre><code>return from c in Context.PDFs where c.Name == _name select c; </code></pre> <p>Or:</p> <pre><code>internal List&lt;EF_Mode...
Cannot implicitly convert type 'System.Collections.Generic.List<<anonymous type:>>' to 'System.Collections.Generic.List
c#|generics
-1
1,056
1
43,960,746
43,960,746
1
true
2017-05-14T05:41:08.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot implicitly convert type 'System.Collections.Generic.List<<anonymous type:>>' to 'System.Collections.Generic.List<p>I'm trying to return a row from my ...
43,933,602
ANDROID Recieve message that another activity is destroyed<p>I have simple app with 2 activities. One of them is transparent. All process looks like :</p> <p>1) I lunch my app, at start displayed is my MainActivity </p> <p>2) I click button "show transparent activity" and after that displayed is my TransparentActivit...
<p>You should use <strong>startActivityForResult</strong> method. </p> <p>For your particular case you could implement something like this:</p> <p><strong>MainActivity.java</strong></p> <pre><code>public class MainActivity extends AppCompatActivity { private static int REQUEST_CODE = 1234; @Override pro...
ANDROID Recieve message that another activity is destroyed
android|dialog|android-lifecycle|activity-finish|ondestroy
-1
56
1
43,933,633
43,933,633
2
true
2017-05-12T09:02:14.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ANDROID Recieve message that another activity is destroyed<p>I have simple app with 2 activities. One of them is transparent. All process looks like :</p> <...
43,950,127
Initializes an array by a given size in random values between 1 and 500 in c<p>I have assignment to write program that sort an array and search for a specific number, that part I've already done, My problem is how to Initialize the array in the size that the user sets with random values ​​smaller than 500? I know how t...
<p>This will help you.</p> <pre><code>int main(void) { int n,i; n=rand()%500; // Get random value int arr[n]; // Initialize the dynamic array for(i=0;i&lt;n;i++) scanf("%d",&amp;arr[i]); // Do your stuff } </code></pre>
Initializes an array by a given size in random values between 1 and 500 in c
c|arrays|random|initializer
-1
528
2
43,950,264
43,950,264
1
true
2017-05-13T06:49:58.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Initializes an array by a given size in random values between 1 and 500 in c<p>I have assignment to write program that sort an array and search for a specifi...
43,995,430
Make combo box record as table field name , MS Access<p>I have combo box in form, i want to have it's drop down value to be Table fields name.Table name is tblCap, and the field are Year1,Year2 and Year3.I want that in the Combo box to have dropdown list as Year1,Year2,Year3 and when that year is selected it should dis...
<p>Update after comments.</p> <p>Once the <code>RowSource</code> has been set-up as per @Gustav answer, in order to hide/unhide the TextBox controls according to the value of ComboBox you need to set their <code>Visible</code> property to <code>True/False</code>.</p> <p>On the Events tab set the <code>AfterUpdate</co...
Make combo box record as table field name , MS Access
vba|ms-access|combobox|subform|ms-access-forms
-1
1,030
2
43,995,914
43,995,914
1
true
2017-05-16T07:49:39.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make combo box record as table field name , MS Access<p>I have combo box in form, i want to have it's drop down value to be Table fields name.Table name is t...
44,219,390
How to combine to shapes into one? Sketch<p>I have just installed sketch and I am trying to create a circle with a tick sign inside. The issue is that whenever I use the Union option to merge the circle and tick sign the tick sign is hidden. Here are the steps. </p> <ol> <li>Insert -> Shape -> Oval </li> <li>Insert...
<p>The union creates a newer shape with the outer boundaries of the elements. In your case, the check mark is inside the circle and the result is just the circle. The right operation would be: 1 convert the check mark into an outline (Shift + Cmd + O) 2 select the circle and the checkmark 3 use the option subtract so...
How to combine to shapes into one? Sketch
sketch-3
-1
1,591
3
46,078,461
46,078,461
0
true
2017-05-27T16:50:46.923Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to combine to shapes into one? Sketch<p>I have just installed sketch and I am trying to create a circle with a tick sign inside. The issue is that whene...
44,100,264
Active Directory unreachable in WAN<p>I'm setting up an <strong>Active Directory</strong> in Windows 2012 for user authentication in Windows 10. Server and client PCs are not in the same area, therefore, it is a Wan connection. For testing purposes, all firewalls are off. Server's public IP is 34.207.231.151 and a has...
<p>I forgot about this question. If someone has the same problem, read this:</p> <p>1.- In order to use ADDS through WAN, you do need a VPN. I could not use this solution, though, because the admins of the network did not want to open the required ports for VPN overt the firewall.</p> <p>2.- The solution was to chang...
Active Directory unreachable in WAN
active-directory|windows2012|wan
-1
1,064
2
53,250,762
53,250,762
0
true
2017-05-21T18:17:01.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Active Directory unreachable in WAN<p>I'm setting up an <strong>Active Directory</strong> in Windows 2012 for user authentication in Windows 10. Server and c...
53,355,191
git diff to find refactor name changes in c<p>Recently a large refactor of our C code occured on our code base. I wanted to come up with a quick list of changed structure / function call names using git. Below is how I did this.</p>
<ol> <li><p>Use git to find whole word differences, rather than line differences</p> <pre><code>git diff dev --word-diff-regex="([a-zA-Z0-9_]+)" </code></pre></li> <li><p>Pipe this through sed to find clean up the output. You will get output like</p> <p>[-OldName-]{+NewName+}</p></li> <li><p>Build a regex to output O...
git diff to find refactor name changes in c
c|git|refactoring
-1
73
1
53,355,192
53,355,192
0
true
2018-11-17T20:19:14.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: git diff to find refactor name changes in c<p>Recently a large refactor of our C code occured on our code base. I wanted to come up with a quick list of cha...
53,357,845
LoadException on adding a controller to fxml file in Java 8<p>Every time i add a controller to the fxml file, i get an exception: javafx.fxml.LoadException, and when i print the exception message it shows the right directory to the file</p> <p>I am using netbeans 8 IDE, Java 8 and Scene builder for the GUI</p> <p>FXM...
<p>So i found the solution, i will post here so someone might make use of that When i removed the constructor the program worked, looks like in the JavaFx applications you can only have the default constructor, however if you need to add parameters to the constructor you then need to use what is known as ControllerFact...
LoadException on adding a controller to fxml file in Java 8
java|javafx|model-view-controller|netbeans|scenebuilder
-1
525
1
53,357,986
53,357,986
0
true
2018-11-18T04:17:25.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LoadException on adding a controller to fxml file in Java 8<p>Every time i add a controller to the fxml file, i get an exception: javafx.fxml.LoadException, ...
53,356,861
How to calculate the length of UDP payload?<p>I am sending a payload <strong>TESTING</strong>. I am trying to calculate the checksum for the UDP header which requires UDP total length. UDP header length is 8 bytes. Can anyone explain me how to calculate the data length with the above given payload. I tried searching th...
<p>The length of the payload is the length of the payload in bytes. So a 7 byte payload could hold the ASCII string "TESTING". You could add a NUL terminator and make it 8 bytes.</p>
How to calculate the length of UDP payload?
networking|udp
-1
1,312
1
53,359,722
53,359,722
0
true
2018-11-18T00:33:03.750Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to calculate the length of UDP payload?<p>I am sending a payload <strong>TESTING</strong>. I am trying to calculate the checksum for the UDP header which...
53,359,436
Serving mysql data to a flip html pdf or downloadable pdf<p>I have a web application running of AWS MySQL Aurora database.</p> <p>If I want to use that data to create PDF reports, the results of which need to be served as a fliphtml pdf (or any other related service), how would I go about doing this?</p>
<p>it can be done so many ways. follow the below steps. 1) Build a spring rest service which will call the database 2) create the jasper template and fill with data. 3) render the report in browser as pdf</p>
Serving mysql data to a flip html pdf or downloadable pdf
html|amazon-web-services|pdf|pdf-generation|amazon-aurora
-1
19
1
53,360,041
53,360,041
0
true
2018-11-18T09:26:47.673Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Serving mysql data to a flip html pdf or downloadable pdf<p>I have a web application running of AWS MySQL Aurora database.</p> <p>If I want to use that data...
53,363,497
Java Import CSV intro ArrayList<p>Hello I'm a beginner and for school I'm making a contact list program. One of the requests is to import an existing CSV with various contact types.</p> <p>Generic: Type, day of birth, month of birth, year of birth, name, tags (1 to 3 of them)</p> <p>Basic: Type, day of birth, month o...
<p>I am not going to show you how, but I will point you in the right direction:</p> <p>Read the csv file one line at a time (e.g. with <a href="https://commons.apache.org/proper/commons-csv/" rel="nofollow noreferrer">Apache Commons CSV</a>)</p> <p>For each line in the csv file, figure out which type of contact it is...
Java Import CSV intro ArrayList
java
-1
41
1
53,363,540
53,363,540
0
true
2018-11-18T17:15:59.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Java Import CSV intro ArrayList<p>Hello I'm a beginner and for school I'm making a contact list program. One of the requests is to import an existing CSV wit...
53,374,275
User input in Python, after a false statement and recall the function to force the correct entry, the true statement doesn't do what it should do<p>It is my second question here in the group, I really tried to find the answer everywhere, probably I used the wrong terms when looking for it. I am a completely new in Pyth...
<p>In the method year_movie you need to always return something, otherwise you get <code>None</code>. You're calling this method recursively when the error is incorrect but you don't return the value. Try adding <code>return</code> keyword in the recursive calls:</p> <pre><code> def year_movie(): try: ...
User input in Python, after a false statement and recall the function to force the correct entry, the true statement doesn't do what it should do
python|python-3.x|pycharm
-1
267
1
53,374,407
53,374,407
0
true
2018-11-19T12:04:36.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: User input in Python, after a false statement and recall the function to force the correct entry, the true statement doesn't do what it should do<p>It is my ...
53,378,427
I'm not getting data from another activity<p>I am getting a problem with my project in Android Studio. What I am trying to do is when I click a button (what opens another activity) and in that activity I write data from a person. Then I save this data and the app get back to the main. The next button what does is crea...
<p>To send back the persons data you just write after finish the Activitat1, you need to call setResult, passing an intent and then call finish. Please, take a look at this reply here to see how to do it: <a href="https://stackoverflow.com/a/947560/3342108">https://stackoverflow.com/a/947560/3342108</a></p>
I'm not getting data from another activity
android|android-studio|android-intent|toast|android-toast
-1
315
2
53,378,753
53,378,753
0
true
2018-11-19T16:00:05.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I'm not getting data from another activity<p>I am getting a problem with my project in Android Studio. What I am trying to do is when I click a button (what...
53,378,355
Poor Accuracy of Gradient Descent Perceptron<p>I'm trying to make a start with neural networks from the very beginning. This means starting off toying with perceptrons. At the moment I'm trying to implement batch gradient descent. The guide I'm following provided the following pseudocode:<br> <a href="https://i.stack.i...
<p>There is no guarantee that you'll find the global minimum. Often, people perform multiple runs and take the best one. Advance approaches include decaying the learning rate, using an adaptive learning rate (e.g. with RMSProp or Adam), or using GD with momentum.</p> <p>There are multiple ways to monitor convergence:<...
Poor Accuracy of Gradient Descent Perceptron
python|neural-network|gradient-descent
-1
72
1
53,389,259
53,389,259
0
true
2018-11-19T15:55:58.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Poor Accuracy of Gradient Descent Perceptron<p>I'm trying to make a start with neural networks from the very beginning. This means starting off toying with p...
53,391,258
Set the character length in the field<p>can anyone help me with this: Namely, I want to set the length of the character for the Phone field in registration, and in the case if it has more than 10 characters, to display a mistake.</p> <p>Form: <a href="https://i.stack.imgur.com/LUtjX.png" rel="nofollow noreferrer">ent...
<p>You could use PHP's strlen() function to get the length of a String.<br> <code>$phoneNumberLength = strlen((string)$phone);</code> will give you the number of characters in your phone number.</p>
Set the character length in the field
php|wordpress|maxlength
-1
22
1
53,391,525
53,391,525
0
true
2018-11-20T10:43:57.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Set the character length in the field<p>can anyone help me with this: Namely, I want to set the length of the character for the Phone field in registration, ...
53,393,405
Convert a list with tabbed numbers to a numeric array or matrix<p>I have a list that each element represents a string of message information:</p> <pre><code>rawdata = ['1 1474585 1 19 3', '2 1474585 1 19 2', '3 1474585 1 27 ...
<p>You could create a <code>numpy.array</code></p> <pre><code>import numpy as np newarray = np.array([[int(i) for i in j.split()] for j in rawdata]) </code></pre> <p>Then for example</p> <pre><code>&gt;&gt;&gt; newarray array([[ 1, 1474585, 1, 19, 3], [ 2, 1474585, 1, 19,...
Convert a list with tabbed numbers to a numeric array or matrix
python|arrays|list|numpy|split
-1
45
3
53,393,503
53,393,503
0
true
2018-11-20T12:51:10.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Convert a list with tabbed numbers to a numeric array or matrix<p>I have a list that each element represents a string of message information:</p> <pre><code...
53,367,378
Can i use both bindValue and bindParam on a single prepared statement?<pre><code>$nome = 'nome'; $stmt = $db-&gt;prepare("SELECT `nome`, `mov`, `gen` FROM table WHERE gen LIKE :gen AND nome = :nome"); $stmt-&gt;bindValue(':gen', '%'.$gen.'%', PDO::PARAM_STR); $stmt-&gt;bindParam(':nome', $nome, PDO::PARAM_STR); $...
<p>For the SQL statement there is no difference between <code>bindValue()</code> and <code>bindParam()</code>. The only difference is how--or rather, when--PHP reads the input variables. So you can use both together, although that may cause hard-to-find issues (regarding the result of the SQL operation) later.</p> <p>...
Can i use both bindValue and bindParam on a single prepared statement?
pdo|prepared-statement|bindparam|bindvalue
-1
75
1
53,396,445
53,396,445
0
true
2018-11-19T02:03:04.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can i use both bindValue and bindParam on a single prepared statement?<pre><code>$nome = 'nome'; $stmt = $db-&gt;prepare("SELECT `nome`, `mov`, `gen` FROM ta...
53,398,887
Scrolling takes forever, horizontally<p>I have two tables, that depend upon eachother.<br> So when one is scrolled, the <code>onScroll</code> event updates the other.<br> But scrolling horizontally with my mouse makes it barely move.<br> If I remove the <code>onScroll</code> event I can scroll horizontally normally aga...
<p>Since you want the one you manually scroll to change the other, you only want to apply <code>scrollLeft</code> to the other one and not the one you are working with</p> <p>Try</p> <pre><code>$('#schedule-container, #shifts-container').not(e.target).scrollLeft(e.target.scrollLeft); </code></pre>
Scrolling takes forever, horizontally
javascript|jquery
-1
21
1
53,399,113
53,399,113
0
true
2018-11-20T18:00:20.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Scrolling takes forever, horizontally<p>I have two tables, that depend upon eachother.<br> So when one is scrolled, the <code>onScroll</code> event updates t...
53,402,750
How can I get rid of the message that comes at the beginning of my amp-story when visited for the first time?<p>I have made an amp-story which, when visited for the first time asks for "You must enable the amp-story experiment to view this content".</p> <p>This is the link to the story: <a href="https://www.krenovate....
<p>This is seen when using version 0.1 of amp-story. You can resolve this by using version 1.0. The version is dependent on the URL of the amp-story script you include in your document. For 1.0, you want:</p> <pre><code>&lt;script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-1.0.js"...
How can I get rid of the message that comes at the beginning of my amp-story when visited for the first time?
amp-html|amp-story
-1
65
1
53,402,955
53,402,955
0
true
2018-11-20T22:48:16.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I get rid of the message that comes at the beginning of my amp-story when visited for the first time?<p>I have made an amp-story which, when visited ...
53,417,543
To show hex color codes in batch<p>I have some hex color code:</p> <pre><code>#ff9b9b #ff5656 #ff0202 #ad0000 #871515 </code></pre> <p>and I want to show the corresponding colors at the same time as a palette to conveniently choose the ones I want.</p> <p>Is there any recommended online tools or we can do it in comm...
<p>If you want python code to that you could use <a href="https://pypi.org/project/colored/" rel="nofollow noreferrer">colored</a>, here's example where you choose font color and background color.</p> <pre><code>from colored import fg, bg, attr color = fg('#C0C0C0') + bg('#00005f') # create font and background color ...
To show hex color codes in batch
python|r|bash|colors|hex
-1
308
1
53,417,587
53,417,587
0
true
2018-11-21T17:24:01.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: To show hex color codes in batch<p>I have some hex color code:</p> <pre><code>#ff9b9b #ff5656 #ff0202 #ad0000 #871515 </code></pre> <p>and I want to show t...
53,382,785
WordPress with local MySQL server: Cannot select created database as root<p>Even though I am root and I can log into my local mysql server as root, the WordPress Setup Configuration prevents me from selecting a database I created:</p> <p><a href="https://i.stack.imgur.com/97juv.png" rel="nofollow noreferrer"><img src=...
<p>I managed to figure out the solution. I follow these instructions (without sudo) in order to completely purge my mysql installation: <a href="https://gist.github.com/vitorbritto/0555879fe4414d18569d" rel="nofollow noreferrer">https://gist.github.com/vitorbritto/0555879fe4414d18569d</a>. By reinstalling my mysql, eve...
WordPress with local MySQL server: Cannot select created database as root
mysql|wordpress|localhost|admin|mamp
-1
572
2
53,419,381
53,419,381
0
true
2018-11-19T21:19:23.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: WordPress with local MySQL server: Cannot select created database as root<p>Even though I am root and I can log into my local mysql server as root, the WordP...
53,402,492
Enabled and Disabled Previous button loads at The same Time via Reactjs<p>I used The code below to display information to database via <strong>Reactjs</strong>. When I click the next button, it works. No what to add previous button. Here is what am trying to do.</p> <p>On the First data load, I need to disable the Pr...
<p>This is how I was able to solve the Problem. I first check the records in the array and discovered that I have 9 records already and then I have to get the length of records in the array as per </p> <pre><code>const prevRec = this.state.rec.length; </code></pre> <p>Finally, the code below solve my issue</p> <p...
Enabled and Disabled Previous button loads at The same Time via Reactjs
reactjs
-1
69
1
53,420,382
53,420,382
0
true
2018-11-20T22:22:58.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Enabled and Disabled Previous button loads at The same Time via Reactjs<p>I used The code below to display information to database via <strong>Reactjs</stro...
53,425,829
How to get All Registered users, not only my contact lists on Firebase in my code<p>I have this FetchMyUsersService Class, This class gets only users on my contact list, how i can get all Firebase users ? Please Help.</p> <p>This is my Code</p> <p>This is Dont written by me.</p> <p>I Have more classes, but i think t...
<p>Please try changing the code of your fetchMyUsers() like bellow</p> <pre><code> private void fetchMyUsers() { myUsers = new ArrayList&lt;&gt;(); try { StringBuilder response = new StringBuilder(); URL url = new URL(FirebaseDatabase.getInstance().getReference().toString() + "...
How to get All Registered users, not only my contact lists on Firebase in my code
android|firebase|firebase-realtime-database
-1
42
1
53,426,025
53,426,025
0
true
2018-11-22T07:27:39.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get All Registered users, not only my contact lists on Firebase in my code<p>I have this FetchMyUsersService Class, This class gets only users on my c...
53,385,591
Should we handle InstanceIDListenerService when app is in background?<p>Should we also handle the case when service is not in foreground? I.e., should we call startForeground (for Oreo) inside the InstanceIDListenerService by ourself? Or it is ensured that the service must be started when app is in foreground only?</p>...
<p>In my opinion, we don't have to handle the background case, since it is not mentioned in google's <a href="https://developers.google.com/cloud-messaging/android/client" rel="nofollow noreferrer">official documentary</a> when implementing GCM.</p>
Should we handle InstanceIDListenerService when app is in background?
google-cloud-messaging|android-8.0-oreo|foreground|foreground-service|gcmlistenerservice
-1
27
1
53,426,273
53,426,273
0
true
2018-11-20T03:01:17.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Should we handle InstanceIDListenerService when app is in background?<p>Should we also handle the case when service is not in foreground? I.e., should we cal...
53,428,258
Date formatting and including days<p>I have a csv file which has column of dates (D/M/Y format) and I want to convert it to days column. I used following approach: </p> <pre><code>In [1]: import numpy as np import pandas as pd from pandas import Series, DataFrame #f = pd.read_csv(".some_file.c...
<p>The problem is you have incorrectly specified the <code>datetime</code> format <em>and</em> hidden the error by setting <code>errors='ignore'</code>. You need <code>'%Y'</code> for the full year (see <a href="http://strftime.org/" rel="nofollow noreferrer">Python's <code>strftime</code> directives</a>):</p> <pre><c...
Date formatting and including days
python|pandas|datetime
-1
34
1
53,428,838
53,428,838
0
true
2018-11-22T09:56:27.917Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Date formatting and including days<p>I have a csv file which has column of dates (D/M/Y format) and I want to convert it to days column. I used following app...
53,433,987
PHP: Get real image size from PNG with transparent bg<p>I have images with transparent BG an di need get real size picture in transparent BG...</p> <p>(Image can be 500x500, but picture in image can be 440x250 and i need get this size - 440x250).... How do this in PHP and GD?</p> <p>Thanks</p>
<p>so the real image size is a last non transparent pixel on x-side - first non transparent on x-side and the same on the y-side. so all you need is find them:)</p> <p>transparent is then <code>alpha</code> is 127: <code>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparen...
PHP: Get real image size from PNG with transparent bg
php|image|png|gd
-1
64
1
53,434,797
53,434,797
0
true
2018-11-22T15:19:52.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP: Get real image size from PNG with transparent bg<p>I have images with transparent BG an di need get real size picture in transparent BG...</p> <p>(Imag...
53,436,980
how to find the minimum of several dates in PSPP<p>I'm trying to extract <strong>the minimal date out of several date columns</strong> in <strong>PSPP</strong>. Here is the syntax file I'm using:</p> <pre><code>*************************************** * [1] READ FORM CSV FILE :: input.csv * ****************************...
<p>Well I finally found it. Not so straight forward, but still working. The catch is that you have to convert a date to an integer and only then take the minimum value.</p> <pre><code>*************************************** GET DATA /TYPE=TXT /FILE='input.csv' /FIRSTCASE=2 /VARIABLES= startDate1 ADATE8 endDate1 ADAT...
how to find the minimum of several dates in PSPP
date|min|pspp
-1
23
1
53,441,192
53,441,192
0
true
2018-11-22T19:18:34.183Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to find the minimum of several dates in PSPP<p>I'm trying to extract <strong>the minimal date out of several date columns</strong> in <strong>PSPP</stron...