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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44,012,555 | Is there any way to persist files for a web application using Amazon AWS without a full VM?<p>I would like to migrate an web application to Amazon AWS. </p>
<p>The application stores and retrieves small persistent data from a <code>content/</code> directory. I tried Amazon Elastic Beanstalk to deploy the application h... | <p>A good way to persist data in AWS is <a href="https://aws.amazon.com/efs/" rel="nofollow noreferrer">Elastic File System</a>, you can mount your folder "content".</p> | Is there any way to persist files for a web application using Amazon AWS without a full VM? | asp.net|amazon-web-services|amazon-s3|amazon-ec2 | -1 | 38 | 2 | 44,013,439 | 44,013,439 | 1 | true | 2017-05-16T22:22:37.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there any way to persist files for a web application using Amazon AWS without a full VM?<p>I would like to migrate an web application to Amazon AWS. </p>
... |
44,019,999 | select data from seperate tables with same id<p>I have 2 tables: <strong>mb_category</strong> and <strong>mb_items</strong>, I'm trying to select items from mb_items with the same ID as the category they are assigned to in mb_category.</p>
<p><strong>mb_category</strong> has 2 rows: id and category.<br>
<strong>mb_ite... | <p>I can suggest you 2 things (I didn't test the code I'm giving you, it's just to show you the idea).</p>
<p>1) You are doing too many requests, you only need one :</p>
<pre><code>SELECT c.id AS category_id, c.category AS category_name, i.id AS item_id, i.item_name
FROM mb_category c
LEFT JOIN mb_items i ON c.id = i... | select data from seperate tables with same id | php|mysqli | -1 | 71 | 1 | 44,020,386 | 44,020,386 | 1 | true | 2017-05-17T08:53:09.830Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
select data from seperate tables with same id<p>I have 2 tables: <strong>mb_category</strong> and <strong>mb_items</strong>, I'm trying to select items from ... |
44,036,953 | how to resize a grid in main window from a user control - wpf<p>I'm having a close button in a user control. When click that i want to hide a grid in the main window
I want to control via this button</p>
<pre><code>private void PWChangeClose_Click(object sender, RoutedEventArgs e)
{
DoubleAnimation dAnim =... | <p>You can access main window properties and fields by getting its instance</p>
<pre><code>private void PWChangeClose_Click(object sender, RoutedEventArgs e)
{
DoubleAnimation dAnim = new DoubleAnimation();
dAnim.From = 0;
dAnim.To = 120;
dAnim.Duration = TimeSpan.FromSeconds(0.4);... | how to resize a grid in main window from a user control - wpf | c#|wpf | -1 | 65 | 2 | 44,039,052 | 44,039,052 | 1 | true | 2017-05-18T00:56:18.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to resize a grid in main window from a user control - wpf<p>I'm having a close button in a user control. When click that i want to hide a grid in the mai... |
43,976,160 | Simple Webradiostream in OSX<p>I wanna build my first macOS-App. The aim is, that I can select a radiostream and play this. But it doesn't work.</p>
<p>Here is the code:</p>
<pre><code>import Cocoa
import AVFoundation
import AVKit
class ViewController: NSViewController {
@IBOutlet weak var RadioList: NSPopUpButton!... | <p>it is because apple is not allowing you to load any <code>http</code> contents by default. if you looks closely on debug console you might have got this below error </p>
<blockquote>
<p>App Transport Security has blocked a cleartext HTTP (http://)
resource load since it is insecure. Temporary exceptions can be
... | Simple Webradiostream in OSX | swift|xcode|macos | -1 | 46 | 1 | 44,046,421 | 44,046,421 | 1 | true | 2017-05-15T09:42:29.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Simple Webradiostream in OSX<p>I wanna build my first macOS-App. The aim is, that I can select a radiostream and play this. But it doesn't work.</p>
<p>Here... |
44,066,828 | How to have an inline image with a bullet list?<p>I haven't found a way to have a bullet list (generated by a loop) side by side with an image</p>
<p>The code is this:
<p>
</p>
<pre><code><!-- POSTS BY YEAR -->
{% for post in site.posts %}
{% capture current_year %}{{ post.date | date: "%Y" }}{% endca... | <p>You can float the image as @jbe said on his answer, but that will be a non responsive solution. Use <code>display: flex</code> instead on the top container.</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-css la... | How to have an inline image with a bullet list? | html | -1 | 50 | 2 | 44,067,229 | 44,067,229 | 1 | true | 2017-05-19T09:51:38.270Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to have an inline image with a bullet list?<p>I haven't found a way to have a bullet list (generated by a loop) side by side with an image</p>
<p>The co... |
44,073,019 | A big project on Apache Zeppelin<p>I have a streaming job that need to be launched through Zeppelin. However, it is very big project. As far as I know, the program launched on Zeppelin is notebook style, with several hundreds lines of code at most. </p>
<p>My code has several thousands of lines, with many classes and ... | <p>The correct and supported way to do this, is to extract an API to your code <strong>compile it as a jar</strong> library, and use Zeppelin's dependency handling [see interpreter settings] to <strong>add the jar</strong> of your existing project to Zeppelin. Then you can call the complex methods of your project from ... | A big project on Apache Zeppelin | apache-spark|spark-streaming|apache-zeppelin | -1 | 78 | 1 | 44,073,580 | 44,073,580 | 1 | true | 2017-05-19T14:46:14.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
A big project on Apache Zeppelin<p>I have a streaming job that need to be launched through Zeppelin. However, it is very big project. As far as I know, the p... |
44,074,984 | Square APIs for Canada and USA<p>I have my application registered with square. I am using register APIs, square oauth and square connect APIs. My app will launch in Canada soon (currently its only available in US). Do I need to have a separate app registered with square for Canada support or the same app will do? TIA.<... | <p>No. Your app will work fine for canadian merchants. </p> | Square APIs for Canada and USA | square-connect | -1 | 47 | 1 | 44,075,741 | 44,075,741 | 1 | true | 2017-05-19T16:36:40.767Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Square APIs for Canada and USA<p>I have my application registered with square. I am using register APIs, square oauth and square connect APIs. My app will la... |
44,075,732 | '?' is not a valid resource character<p>I need help adding '?' to my string values</p>
<pre><code><string name="use_budget_as_default_budget?">USE BUDGET AS DEFAULT BUDGET</string>
</code></pre>
<p><a href="https://i.stack.imgur.com/0u9Ld.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/... | <p>Replace <code>use_budget_as_default_budget?</code> with <code>use_budget_as_default_budget</code>. You cannot use <code>?</code> in the name of a resource.</p> | '?' is not a valid resource character | android|xml | -1 | 65 | 1 | 44,075,746 | 44,075,746 | 1 | true | 2017-05-19T17:23:15.070Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
'?' is not a valid resource character<p>I need help adding '?' to my string values</p>
<pre><code><string name="use_budget_as_default_budget?">USE BUD... |
44,089,047 | Merging list n items into one item in python<p>I have a list where each item contain a string of considerable length, example:</p>
<pre><code>mylist = [
'this is my string number one it is much longer than that',
'this is my string two it is much longer than that',
# ...
]
</code></pre>
<p>I want to join ... | <p>You want to apply <code>str.join()</code> to the <em>whole list</em>, not to each item:</p>
<pre><code>final = [''.join(mylist)]
</code></pre>
<p>I've put the result back into a list with one item.</p>
<p>The other question was trying to join <em>some</em> of the elements in the input list, which is why <code>str... | Merging list n items into one item in python | python|string|list | -1 | 297 | 1 | 44,089,059 | 44,089,059 | 1 | true | 2017-05-20T17:43:47.117Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Merging list n items into one item in python<p>I have a list where each item contain a string of considerable length, example:</p>
<pre><code>mylist = [
... |
44,091,940 | MySQL check 2 values already exists before insert<p>My columns are like this. column "a" is primary and auto incremantal.</p>
<pre><code>a | b | x | y
</code></pre>
<p>When inserting new data, i need to check x and y columns shouldn't be exist together. </p>
<p>To clarify, imagine this row is at database with th... | <p>You want to let the database do the work. Although you can set up a condition within a query, that condition may not be universally true or someone might use another query.</p>
<p>The database can check this with a unique constraint or index. Actually, the unique constraint is implementing using a unique index:</... | MySQL check 2 values already exists before insert | mysql | -1 | 535 | 2 | 44,092,052 | 44,092,052 | 1 | true | 2017-05-21T00:00:47.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MySQL check 2 values already exists before insert<p>My columns are like this. column "a" is primary and auto incremantal.</p>
<pre><code>a | b | x | y
<... |
44,139,385 | How to replace every comma with a new word from a file<p>I have a log file samplelog.log</p>
<pre><code> [java] 08 May 2017 21:17:37,508 INFO FoobarTests.testSomething.95e0dc44-c51e-4b2f-a048-eba70eae6d94-60e04794-2fe8-42c6-b8a3-5ea180a20431 aaaa.aaa.test.:170 - Creating account: aaaa.aaaa.test.client.FoobarSpec@4a0e... | <pre><code>COLORS=()
while read -r line; do
COLORS+=("${line}")
done </path/to/colors_file/colors_file.txt
IFS=','
while read -r logLine; do
logLineParsed=''
clrsIndx=0
for linePart in ${logLine}; do
if [ "${clrsIndx}" -eq "${#COLORS[@]}" ]; then
clrsIndx=0
fi
logLineParsed+="${linePart... | How to replace every comma with a new word from a file | bash | -1 | 55 | 1 | 44,139,980 | 44,139,980 | 1 | true | 2017-05-23T15:41:20.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to replace every comma with a new word from a file<p>I have a log file samplelog.log</p>
<pre><code> [java] 08 May 2017 21:17:37,508 INFO FoobarTests.t... |
44,147,038 | Using awk to find value, skip blanks<p>I am using awk to get a username in a huge log file, which contains multiple lines with the same value. I've figured out how to just pull that last entry, but sometimes the result is blank. I'd like to skip a blank value and move on to the next one. Here's my script:</p>
<pre><c... | <p>since there is no sample input this in untested</p>
<pre><code>awk '/Actual user for gateway login is/ && $13!="" {user=$13}
END {print "Username is", user}' logfile
</code></pre>
<p>there is no need for <code>grep</code> or <code>echo</code></p> | Using awk to find value, skip blanks | awk | -1 | 63 | 1 | 44,147,099 | 44,147,099 | 1 | true | 2017-05-24T00:24:13.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using awk to find value, skip blanks<p>I am using awk to get a username in a huge log file, which contains multiple lines with the same value. I've figured o... |
44,147,269 | NodeJS: Arithmetic series gets the wrong result for large numbers using the iteration<p>Code:</p>
<pre><code>var sum_with_formula = function (n) {
return n/2*(n+1);
}
var sum_with_loop = function (n) {
var sum = 0;
for (var i=1; i<=n; i++) {
sum = sum + i;
}
return sum;
}
var n = 1000000000;
const a... | <p>You have exceeded the largest "safe" integer value (<code>Number.MAX_SAFE_INTEGER</code>) which is <code>9007199254740991</code>. Integer values after that value lose precision due to JavaScript's use of <a href="https://en.wikipedia.org/wiki/Double-precision_floating-point_format" rel="nofollow noreferrer">double-p... | NodeJS: Arithmetic series gets the wrong result for large numbers using the iteration | node.js | -1 | 20 | 1 | 44,147,309 | 44,147,309 | 1 | true | 2017-05-24T00:57:52.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
NodeJS: Arithmetic series gets the wrong result for large numbers using the iteration<p>Code:</p>
<pre><code>var sum_with_formula = function (n) {
return ... |
44,148,428 | insert background image in row with rowspan column<p>I have a table</p>
<pre><code><table>
<tr>
<td rowspan="2"></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>... | <p>Why not just give a class to the cells that you want to affect?</p>
<p>Here I'm giving the <code>rowspan</code> cells a class of <code>background</code>, and you can see that the background is applied to both rows:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">... | insert background image in row with rowspan column | html|css | -1 | 840 | 1 | 44,148,493 | 44,148,493 | 1 | true | 2017-05-24T03:25:35.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
insert background image in row with rowspan column<p>I have a table</p>
<pre><code><table>
<tr>
<td rowspan="2"></td>
... |
44,151,408 | bash: dealing with strange filenames tail invalid option --1<p>I want my script to find a file (in the current directory) with the first line equal to <code>START</code>. Then that file should have <code>FILE <file_name></code> as the last line. So I want to extract the <code><file_name></code> - I use <cod... | <p>This error is occur to the character of the escape.
You should write it start_file variable in quotes.
last_line=$(tail -1 $start_file) --> last_line=$(tail -1 "$start_file")</p> | bash: dealing with strange filenames tail invalid option --1 | bash|filenames|tail | -1 | 2,079 | 2 | 44,152,010 | 44,152,010 | 1 | true | 2017-05-24T07:12:44.613Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
bash: dealing with strange filenames tail invalid option --1<p>I want my script to find a file (in the current directory) with the first line equal to <code>... |
44,155,818 | I cant make div float on the right side<p>I need the pockeat item place right beside the sidebar, and I tried many of the solutions I found on the Internet, but none of them work.</p>
<p>This is my code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="sni... | <p>Your border of 2% eats into your sidebar width making it a total of 22%, so your sidebar needs to be 18% with a 2% border, please see the updated CSS.</p>
<p>I have also removed all of your height attributes and they are not needed. The content within the divs will adapt naturally. Another amendment I made is making... | I cant make div float on the right side | html|css | -1 | 78 | 5 | 44,156,000 | 44,156,000 | 1 | true | 2017-05-24T10:31:57.760Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I cant make div float on the right side<p>I need the pockeat item place right beside the sidebar, and I tried many of the solutions I found on the Internet, ... |
44,164,062 | Oracle SQL query to pull data and add new created date column<p>I'm quite new to Oracle SQL so please excuse me if my question actually has a relatively schoolboy answer.</p>
<p>So I have 2 tables, Apps and Apps_history with the definitions below.</p>
<pre><code> Apps Apps_history
ID ... | <p>There are multiple ways to accomplish this. You seem to have started down the road of a correlated subquery, so to continue with that:</p>
<pre><code>select a.*,
(select ah.date_modified
from app_history ah
where a.id = ah.app_id and ah.status = 'initialized')
) as created_date
fro... | Oracle SQL query to pull data and add new created date column | sql|oracle|join | -1 | 38 | 2 | 44,164,104 | 44,164,104 | 1 | true | 2017-05-24T16:35:32.867Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Oracle SQL query to pull data and add new created date column<p>I'm quite new to Oracle SQL so please excuse me if my question actually has a relatively scho... |
44,171,670 | Prints out array when I didn't ask for it<p>I don't know why it is printing out an array. I used the same method for another checkbox and it doesn't print out an array.</p>
<p>This is the code for the view</p>
<pre><code> <%= f.label "Category: " %>
<%= Category.all.each do |category| %>
<%= check_bo... | <p>You're printing <code>Programming [#<Category id: 1, cat_name: "Programming"...]</code> because you're using <code><%= ... %></code> instead <code><% ... %></code>, that's why you're printing the result of <code>Category.all.each</code>.</p>
<p>You can remove the <code>=</code> in your <code>Categor... | Prints out array when I didn't ask for it | ruby-on-rails | -1 | 26 | 1 | 44,171,692 | 44,171,692 | 1 | true | 2017-05-25T03:12:55.520Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Prints out array when I didn't ask for it<p>I don't know why it is printing out an array. I used the same method for another checkbox and it doesn't print ou... |
44,176,687 | How to save files in linux centos<p>when i'm edit a file using
<code>sudo -e [name of file]</code> and then i want to save and close, how to do that?</p>
<p>For example, when it's nano..i press ctrl key and x to save and close.
please, help me</p> | <p>The best tools to edit files on Centos are <em>vi</em> and <em>vim</em>. Open the desired file with one of those, press <strong>i</strong> to edit, press <strong>ESC</strong> to exit edit mode and press <strong>ZZ</strong> (capital Zs) to save.
Hope this helps.</p> | How to save files in linux centos | linux|centos | -1 | 3,617 | 1 | 44,182,396 | 44,182,396 | 1 | true | 2017-05-25T09:13:44.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to save files in linux centos<p>when i'm edit a file using
<code>sudo -e [name of file]</code> and then i want to save and close, how to do that?</p>
<p... |
44,166,955 | Control many Visual Studio debugger sessions from one<p>I am writing a VSPackage and want to support starting multiple debugger sessions with a single keypress. Does anyone have any insight into how I can get access to another process's IServiceProvider? Each debugging session runs in it's own Visual Studio process ins... | <p>Kirill’s blog post outlines how to connect to another instance of VS here: </p>
<p><a href="https://blogs.msdn.microsoft.com/kirillosenkov/2011/08/10/how-to-get-dte-from-visual-studio-process-id/" rel="nofollow noreferrer">https://blogs.msdn.microsoft.com/kirillosenkov/2011/08/10/how-to-get-dte-from-visual-studio-p... | Control many Visual Studio debugger sessions from one | visual-studio|debugging|visual-studio-2013|automation | -1 | 24 | 1 | 44,192,130 | 44,192,130 | 1 | true | 2017-05-24T19:26:21.257Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Control many Visual Studio debugger sessions from one<p>I am writing a VSPackage and want to support starting multiple debugger sessions with a single keypre... |
44,103,243 | Widget weather, by user zip?<p>Anyone know of a good one for web? The only widget I've been able to find that works for the web is accuweather, but their zip code often generates the wrong city, so it's inaccurate.</p>
<p>I don't mind more, hard coding it, but I'm not aware of the code per say. Or working examples. So... | <p>2 Alternative I can think of, the <a href="https://developer.yahoo.com/yql/" rel="nofollow noreferrer">Yahoo YQL</a> and <a href="https://www.wunderground.com/weather/api" rel="nofollow noreferrer">Wunderground API</a>. This 2 are not widget based but API to return you the raw weather information (for example, in js... | Widget weather, by user zip? | widget|weather | -1 | 288 | 2 | 44,197,691 | 44,197,691 | 1 | true | 2017-05-22T00:58:16.613Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Widget weather, by user zip?<p>Anyone know of a good one for web? The only widget I've been able to find that works for the web is accuweather, but their zip... |
44,199,437 | Match character only if not first in line and other character not in same line<p>How can I match a character, say <code>=</code>, only if</p>
<ol>
<li>it's not at the beginning of a line and</li>
<li>another character, say <code>$</code>, does not appear on the same line?</li>
</ol>
<p>For clarification, in</p>
<pre... | <p>This one will do the job</p>
<pre><code>/^[^$]+=[^$]+$/
</code></pre>
<p>This matches 1 or more non <code>$</code> sign, an equal sign and 1 or more non <code>$</code> sign</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="s... | Match character only if not first in line and other character not in same line | javascript|regex | -1 | 37 | 1 | 44,199,485 | 44,199,485 | 1 | true | 2017-05-26T10:38:03.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Match character only if not first in line and other character not in same line<p>How can I match a character, say <code>=</code>, only if</p>
<ol>
<li>it's ... |
44,209,704 | Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ')' on line 59<p>I am getting the following errors, trying to setup my webform to use Swift Mailer on GoDaddy's cPanel, Linux hosting service.</p>
<p>What am I doing wrong?</p>
<p>Beginning at line 57, the code (emails hidden) is:</p>
<pre><co... | <p>Inside the array you want to use the <code>=></code> operator for pairing keys and values whereas for chaining object methods you are correctly using the <code>-></code> operator</p>
<pre><code>$mailer = Swift_Mailer::newInstance($transort);
$message = Swift_Message::newInstance('Web Inquiry')
->setFrom (a... | Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ')' on line 59 | php|forms|parsing|swiftmailer | -1 | 572 | 1 | 44,209,738 | 44,209,738 | 1 | true | 2017-05-26T20:29:22.147Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ')' on line 59<p>I am getting the following errors, trying to setup my webform to u... |
44,210,791 | PHP JSON Arrays within an Array<p>I have a script that loops through and retrieves some specified values and adds them to a php array. I then have it return the value to this script:</p>
<pre><code>//Returns the php array to loop through
$test_list= $db->DatabaseRequest($testing);
//Loops through the $test_list ar... | <p>of course I think $getList contains an array you database's columns,</p>
<p>use </p>
<pre><code>$id_export[] = $getList[0]
</code></pre>
<p>Maybe can do some checks to verify if your $getList array is effectively 1 size</p> | PHP JSON Arrays within an Array | php|arrays|json | -1 | 75 | 2 | 44,210,851 | 44,210,851 | 1 | true | 2017-05-26T22:13:37.610Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP JSON Arrays within an Array<p>I have a script that loops through and retrieves some specified values and adds them to a php array. I then have it return ... |
44,221,577 | Bootstrap. On the left side of screen is white stripe<p><a href="https://i.stack.imgur.com/6m7Gj.png" rel="nofollow noreferrer">enter image description here</a>
Why on the right side of screen is white stripe?
The problem only on smartphones.
I used bootstrap:</p>
<p>index.html::</p>
<pre><code><!DOCTYPE html>
... | <p>This kind of problem usually occurs when there is an overflow on the page. I can see by the link that the <code>h1</code> at the top of the site is too big to fit the viewport, hence the overflow.</p>
<p>You could use a media query to change the <code>h1</code> <code>font-size</code> in order not to have overflow, ... | Bootstrap. On the left side of screen is white stripe | html|css|twitter-bootstrap | -1 | 813 | 2 | 44,221,711 | 44,221,711 | 1 | true | 2017-05-27T21:01:52.643Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Bootstrap. On the left side of screen is white stripe<p><a href="https://i.stack.imgur.com/6m7Gj.png" rel="nofollow noreferrer">enter image description here<... |
44,224,632 | How to get image from web api url?<p>I have a url that when paste it into browser address display an image.This url call a method of webapi that return an image.I need to get image code by string format and save into database .
I use this code :</p>
<pre><code>var client = new HttpClient();
var barcode = client.GetAs... | <p>You can extract the content of the response as a byte array and convert that to a base64 string to be saved in the database.</p>
<pre><code>public async Task<string> GetBarCode(string attachmentUrl) {
using (var client = new HttpClient()) {
using (var response = await client.GetAsync(attachmentUrl... | How to get image from web api url? | asp.net-web-api | -1 | 1,287 | 1 | 44,224,849 | 44,224,849 | 1 | true | 2017-05-28T06:59:07.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get image from web api url?<p>I have a url that when paste it into browser address display an image.This url call a method of webapi that return an im... |
44,229,190 | Codeigniter - access session with some_name<p>I'am trying to access an index in my CI session with some_name. In CI documentation there's a point that tell CI could save some_value in some_name.</p>
<p>Here is the documentation:</p>
<pre><code>$this->session->set_userdata('some_name', 'some_value');
</code></p... | <p>you are trying to access array element and not object, thus the error</p>
<pre><code>$s = $this->session->userdata('user');
$id = $s['id_member'];
</code></pre>
<p>try this</p> | Codeigniter - access session with some_name | php|codeigniter | -1 | 26 | 2 | 44,229,275 | 44,229,275 | 1 | true | 2017-05-28T15:48:47.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Codeigniter - access session with some_name<p>I'am trying to access an index in my CI session with some_name. In CI documentation there's a point that tell C... |
44,180,382 | Visualizing N-dimensions on a graph<p>I have been conducting my thesis lately, and in the first stage I do some form of clustering in order to generate <code>K</code> user-specified clusters.
The size of the input matrix that I cluster is <code>N*M</code>. Where N is the population and M are the samples.</p>
<p>After... | <p>Yes, plenty. Do some research for your thesis.</p>
<ul>
<li>PCA</li>
<li>MDS</li>
<li>Parallel coordinates</li>
<li>tSNE</li>
<li>ISOMAP</li>
<li>locally linear embeddings</li>
<li>Fisher LDA</li>
<li>LMNN</li>
</ul> | Visualizing N-dimensions on a graph | cluster-analysis|dimension | -1 | 19 | 1 | 44,236,265 | 44,236,265 | 1 | true | 2017-05-25T12:16:50.100Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Visualizing N-dimensions on a graph<p>I have been conducting my thesis lately, and in the first stage I do some form of clustering in order to generate <code... |
44,245,233 | PHP search array in MySql database<p>I have an array that contain list of users ID's and i need to go over on all my "users" table in the DB, to return only the numbers that the array contain, what is the best way?</p>
<pre><code><?php
$users_ids = $_REQUEST["users_ids"];
$myArray = explode('|', $users_ids);
print... | <p>How about the following:</p>
<pre><code>$users_ids = $_REQUEST["users_ids"];
$users_ids_array = array_map('intval',explode('|', $users_ids)) ;
$query = "SELECT * FROM users WHERE id IN (" . implode(',', $users_ids_array) . ")" ;
</code></pre>
<p>The code above will generate a mysql such that only those user ids a... | PHP search array in MySql database | php|mysql|arrays | -1 | 34 | 2 | 44,245,437 | 44,245,437 | 1 | true | 2017-05-29T14:46:22.203Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP search array in MySql database<p>I have an array that contain list of users ID's and i need to go over on all my "users" table in the DB, to return only ... |
44,282,757 | How do I get the value of an entry and enter it in Ssol.txt?<pre><code>from tkinter import *
from tkinter import ttk
win = Tk()
win.title("hello")
win.geometry('510x50+200+100')
Block = IntVar()
def x():
k = open("Ssol.txt", 'w')
Entry(win, width=5, textvariable=Block).grid(column=1, row=0,sticky=(N,W,E))
ttk.Bu... | <p>You need to use <code>.get()</code> to access the value of your <code>IntVar</code>:</p>
<pre><code>from tkinter import *
win = Tk()
Block = IntVar()
def Block_to_file():
contents = str(Block.get())
with open("Ssol.txt", 'w') as f:
f.write(contents)
Entry(win, width=15, textvariable=Block).grid(c... | How do I get the value of an entry and enter it in Ssol.txt? | python|python-3.x|tkinter|pygame | -1 | 77 | 1 | 44,282,970 | 44,282,970 | 1 | true | 2017-05-31T10:50:45.413Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I get the value of an entry and enter it in Ssol.txt?<pre><code>from tkinter import *
from tkinter import ttk
win = Tk()
win.title("hello")
win.geome... |
44,283,163 | Invalid cast from 'System.String' to 'Sitecore.Analytics.Reporting.Filters.IDataSourceFilterFactory<p>Invalid cast from 'System.String' to 'Sitecore.Analytics.Reporting.Filters.IDataSourceFilterFactory issue after configuring CD server.</p> | <p>Edit SwitchMasterToWeb.config inside /app_config/Include folder and comment below section </p>
<pre><code> <!--<add key="item">
<FiltersFactory>
<param desc="definitionDatabaseName">web</param>
</FiltersFactory>
</add>-->
</code></pre> | Invalid cast from 'System.String' to 'Sitecore.Analytics.Reporting.Filters.IDataSourceFilterFactory | sitecore | -1 | 264 | 1 | 44,283,213 | 44,283,213 | 1 | true | 2017-05-31T11:08:50.003Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Invalid cast from 'System.String' to 'Sitecore.Analytics.Reporting.Filters.IDataSourceFilterFactory<p>Invalid cast from 'System.String' to 'Sitecore.Analytic... |
44,289,913 | Scala special char validation gives incorrect result<p>I am trying to some validation on a scala string </p>
<p>It gives correct result for res0 only , All others are giving false which is wrong </p>
<p>I am expecting true for res1,res2,res3 as the string has a bad character in it </p>
<pre><code>scala> val bad... | <p><a href="http://www.scala-lang.org/api/current/scala/collection/immutable/StringOps.html#forall(p:A=%3EBoolean):Boolean" rel="nofollow noreferrer">forall</a> checks whether a predicate holds true for <em>all</em> the elements in a <code>String</code>.</p>
<p>One way to do your intended check:</p>
<pre><code>str.ex... | Scala special char validation gives incorrect result | scala | -1 | 45 | 2 | 44,290,021 | 44,290,021 | 1 | true | 2017-05-31T16:18:14.643Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Scala special char validation gives incorrect result<p>I am trying to some validation on a scala string </p>
<p>It gives correct result for res0 only , All ... |
44,312,387 | Choosing between strcuts, classes and enums<p>I have some sample code I put together as I am trying to figure out how to model my first app. I'm not sure if the "shoe examples" should be enums or classes. I guess I could create one class that has all the features that each class has ( sole, string, color, fit) and then... | <p>Your current approach is almost there. If I understand you correctly, you want each property of the shoe to be ranked with a Condition enum. You might have more luck making each shoe a generic class, like so:</p>
<pre><code>class Shoe {
var sole: Condition?
var string: Condition?
var color: Condition?
... | Choosing between strcuts, classes and enums | swift|class|struct|enums | -1 | 57 | 1 | 44,312,630 | 44,312,630 | 1 | true | 2017-06-01T16:05:48.967Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Choosing between strcuts, classes and enums<p>I have some sample code I put together as I am trying to figure out how to model my first app. I'm not sure if ... |
44,296,158 | ClusterMarkers Ionic 2/3 Native GoogleMaps<p>Someone soon worked ClusterMarkers to host a lot of 2/3 ionic markers with the native GoogleMaps plugin. Thank you.</p> | <p>Thats how to add a Marker to you map. Care you need to build you map first.</p>
<pre><code>addMarker() {
// costum image
//let image = 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png';
let marker = new google.maps.Marker({
map: this.map,
animation: google.maps.An... | ClusterMarkers Ionic 2/3 Native GoogleMaps | google-maps|ionic2|ionic3 | -1 | 309 | 1 | 44,315,540 | 44,315,540 | 1 | true | 2017-05-31T23:22:02.763Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ClusterMarkers Ionic 2/3 Native GoogleMaps<p>Someone soon worked ClusterMarkers to host a lot of 2/3 ionic markers with the native GoogleMaps plugin. Thank y... |
44,317,045 | Share file using Glide<p>I'm trying to share GIF file. I want to share it via any social networking apps, I have a problem with file name. I don't how to get name file. This is my code:</p>
<pre><code>llsetwallpapers.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) ... | <p>The problem you are trying to solve is discussed at <a href="https://github.com/bumptech/glide/issues/459#issuecomment-99960446" rel="nofollow noreferrer">github issues</a>, where Róbert Papp has provided an example implementation for sharing a file downloaded by Glide.</p>
<p>The key part for you - is to get a ref... | Share file using Glide | android|android-glide|android-intent-chooser | -1 | 1,093 | 1 | 44,320,362 | 44,320,362 | 1 | true | 2017-06-01T21:03:09.897Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Share file using Glide<p>I'm trying to share GIF file. I want to share it via any social networking apps, I have a problem with file name. I don't how to get... |
44,330,519 | Why upload data from ServletContext prevents loading servlet?<p>I inject in Servlet Context object for working with DB. I use my implementation <code>ServletContextListener</code>. But when I try to use my servlet then get <code>HTTP Status [500] – [Internal Server Error]</code>.</p>
<p>My <code>ServletContextListener... | <p>The ServletContext is undefined during the construction of the servlet.</p>
<p>You need to defer initialising the <code>db</code> field until the servlet is being initialised:</p>
<pre><code>public class AddUserServlet extends HttpServlet {
private DBJoint db;
@Override
void init(ServletConfig config... | Why upload data from ServletContext prevents loading servlet? | java|servlets | -1 | 23 | 1 | 44,330,967 | 44,330,967 | 1 | true | 2017-06-02T13:47:43.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why upload data from ServletContext prevents loading servlet?<p>I inject in Servlet Context object for working with DB. I use my implementation <code>Servlet... |
44,337,826 | How to index numpy array?<p>A simple example: I have a numpy array([[5, 4, 2],[1, 8, 8],[4, 5, 6]]) and another array([2, 2, 1]). The second array contains indices of interest for each row in the first array. I want my final array to be simply a vector array([2,8,5]). I'm looking for something along the lines of first_... | <p>You could try something like the following:</p>
<pre><code>>>> arr
array([[5, 4, 2],
[1, 8, 8],
[4, 5, 6]])
>>> idx
array([2, 2, 1])
>>> arr[np.arange(arr.shape[0]), idx]
array([2, 8, 5])
</code></pre> | How to index numpy array? | python|numpy | -1 | 280 | 1 | 44,337,878 | 44,337,878 | 1 | true | 2017-06-02T21:42:19.877Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to index numpy array?<p>A simple example: I have a numpy array([[5, 4, 2],[1, 8, 8],[4, 5, 6]]) and another array([2, 2, 1]). The second array contains i... |
44,340,901 | How to find time difference between values present in two columns in a dataset in r<p>Question:Data shared below contains two columns containing time in integer format but i have to convert it into proper time format i.e in hh:mm and do the difference between times and display it in mins</p>
<p>For Ex:value1:1715 in d... | <p>You need to convert your columns to proper datetime first,</p>
<pre><code>d[] <- lapply(d, function(i) strptime(i, format = '%H%M'))
difftime(d$originaldata.df.schedtime,
d$originaldata.df.deptime, units = 'mins')
#Time differences in mins
#[1] 0 0 0 6 4
#or
as.integer(difftime(d$originaldata.df.sch... | How to find time difference between values present in two columns in a dataset in r | r|dataframe | -1 | 286 | 1 | 44,341,659 | 44,341,659 | 1 | true | 2017-06-03T06:06:44.410Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to find time difference between values present in two columns in a dataset in r<p>Question:Data shared below contains two columns containing time in inte... |
44,229,603 | Write to textbox during animation<p>I have 4 pictures that are faded in (when I click space or mouse). But I want to add a text field to every picture and ask my students what is it that is faded in next? The first picture fades in, the studens say "Oh it is a TV" and now I want to write TV into the textbox and continu... | <p>You would have to set that text box (pre-written) as an object, setting it to fade-in like you're fading in your photos. You can't type text when the PPT is in presentation mode.</p> | Write to textbox during animation | powerpoint | -1 | 21 | 1 | 44,350,060 | 44,350,060 | 1 | true | 2017-05-28T16:31:42.060Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Write to textbox during animation<p>I have 4 pictures that are faded in (when I click space or mouse). But I want to add a text field to every picture and as... |
44,347,222 | Visual Command Prompt commands not available<p>I have VS17 installed and have been studying C# for a while. Ever since I began, I was asked to run the ildasm.exe application, but that didn't work since in my Visual Stidio Command Prompt, when I type ildasm or ildasm.exe, it just says that the command doesn't exist. </p... | <p>With proper installation of VS you should have no problem with running <code>Developer Command Prompt for VS 2017</code> and access all the commands from there.</p>
<p><a href="https://i.stack.imgur.com/LFLTU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LFLTU.png" alt="enter image description ... | Visual Command Prompt commands not available | c#|visual-studio|visual-studio-2017 | -1 | 1,030 | 1 | 44,358,210 | 44,358,210 | 1 | true | 2017-06-03T18:24:27.107Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Visual Command Prompt commands not available<p>I have VS17 installed and have been studying C# for a while. Ever since I began, I was asked to run the ildasm... |
44,358,283 | Removing default padding in listview items within Android studio<p>Can someone provide me with any insights on how to remove the default padding around a listview item? I have provided an image with arrows indicating what padding I am talking about.</p>
<p><a href="https://i.stack.imgur.com/aQeAr.png" rel="nofollow no... | <p>You need to create custom a custom layout file for your list items. And a custom adapter. Then you can control all the appearance.</p> | Removing default padding in listview items within Android studio | android|xml|listview|user-interface | -1 | 293 | 1 | 44,358,476 | 44,358,476 | 1 | true | 2017-06-04T20:03:51.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Removing default padding in listview items within Android studio<p>Can someone provide me with any insights on how to remove the default padding around a lis... |
44,355,548 | How to have this textbox display a different page in browser after the first time it's clicked (winforms C#)<p>I have a button on this Winforms app that when clicked, displays an HTML file in the browser module. </p>
<p>I need the button to display one file when it is clicked the first time and a different file any ot... | <p>There is no event that only responds to the first action (you could theoretically create it yourself though). But it is much simpler to have just one <code>Click</code> event and inside it's event handler decide, which file to show - depending on value of boolean variable that "remembers" if it is first button clic... | How to have this textbox display a different page in browser after the first time it's clicked (winforms C#) | c#|winforms | -1 | 32 | 1 | 44,360,054 | 44,360,054 | 1 | true | 2017-06-04T15:11:34.223Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to have this textbox display a different page in browser after the first time it's clicked (winforms C#)<p>I have a button on this Winforms app that when... |
44,364,167 | How to hide CTRL+U View source & disable right click and text copy?<p>Can anyone having solution for hide CTRL+U and right click in Firefox also?</p> | <p>I have finally find solution for the above query. Try the below code in Firefox also it's working..</p>
<pre><code><script type='text/javascript'>
var isCtrl = false;
document.onkeyup=function(e)
{
if(e.which == 17)
isCtrl=false;
}
document.onkey... | How to hide CTRL+U View source & disable right click and text copy? | html|firefox|hide | -1 | 300 | 1 | 44,364,168 | 44,364,168 | 1 | true | 2017-06-05T07:49:08.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to hide CTRL+U View source & disable right click and text copy?<p>Can anyone having solution for hide CTRL+U and right click in Firefox also?</p> |
44,368,900 | creating a panel kind of functionality in xcode like it is present in bootstrap<p>I am looking to create panel kind of functionality in my app. I am using iOS 10 and swift 3.
It should look like</p>
<blockquote>
<p>Login + <br>
Register -</p>
</blockquote>
<p>Like it is shown down.
<a href="https://i.st... | <p>You can take tableView and Put login label and <code>+</code> button on header programmatically.Take textField inside the cell and make toggle after click on <code>+</code> button. </p> | creating a panel kind of functionality in xcode like it is present in bootstrap | ios|swift|xcode | -1 | 69 | 1 | 44,369,240 | 44,369,240 | 1 | true | 2017-06-05T12:24:46.620Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
creating a panel kind of functionality in xcode like it is present in bootstrap<p>I am looking to create panel kind of functionality in my app. I am using iO... |
43,927,709 | in p4perl what is the time format that is returned?<p>I have started using <a href="https://www.perforce.com/perforce/r15.1/manuals/p4script/perl.p4.html" rel="nofollow noreferrer">p4perl</a>. When I run p4 change using the api it returns me a strange number in place of time.</p>
<p>I am getting <code>time:1494525845<... | <p>Use <a href="http://perldoc.perl.org/functions/localtime.html" rel="nofollow noreferrer"><code>localtime</code></a> in conjunction with <a href="http://search.cpan.org/perldoc?POSIX" rel="nofollow noreferrer">POSIX</a>'s <code>strftime</code> to convert the <a href="https://en.wikipedia.org/wiki/Unix_time" rel="nofo... | in p4perl what is the time format that is returned? | perl|perforce | -1 | 37 | 1 | 43,927,849 | 43,927,849 | 2 | true | 2017-05-12T00:51:23.603Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
in p4perl what is the time format that is returned?<p>I have started using <a href="https://www.perforce.com/perforce/r15.1/manuals/p4script/perl.p4.html" re... |
43,933,618 | Nav menu for DrawerLayout and tabs for Tablayout next to each other in the app bar?<p>Im using both a <a href="https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html" rel="nofollow noreferrer">DrawerLayout</a> and a <a href="https://developer.android.com/reference/android/support/design/wid... | <p>You can remove the <code>Toolbar</code> (<code>@+id/toolbar</code>) from the <code>AppBarLayout</code> in <code>app_bar_main.xml</code>. This will make the <code>TabLayout</code> take the place of the tool bar, but then you will have to make a custom implementation of the hamburger icon click. </p>
<p>For example, ... | Nav menu for DrawerLayout and tabs for Tablayout next to each other in the app bar? | android | -1 | 56 | 1 | 43,934,512 | 43,934,512 | 2 | true | 2017-05-12T09:03:08.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Nav menu for DrawerLayout and tabs for Tablayout next to each other in the app bar?<p>Im using both a <a href="https://developer.android.com/reference/androi... |
43,955,520 | Creating A Web Game Having Issues With A Function<p>I'm currently working on a game for browsers strictly built with php, html, sql & js atm. It's just a fun project i'm working on. Yet I have come to a spot where a function is not working as intended and maybe some help can help me find where I am going wrong. So ... | <p>Try <code>$my_character['current_health']</code> instead of <code>$my_character['cur_health']</code> in <code>enemyAttack</code>? ;-)</p> | Creating A Web Game Having Issues With A Function | php|mysql | -1 | 28 | 1 | 43,955,587 | 43,955,587 | 2 | true | 2017-05-13T16:39:18.810Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Creating A Web Game Having Issues With A Function<p>I'm currently working on a game for browsers strictly built with php, html, sql & js atm. It's just a... |
43,960,512 | What is the advantage of Replace over Drop while changing a package in Oracle?<p>What are the advantages of using <code>create or replace package</code> to change a package in Oracle PL/SQL over <code>drop</code> and <code>create</code>?</p> | <p>User <code>"A"</code> has a package <code>pkg_tst</code>. They have granted privileges on it to another user, "B". They also have a procedure <code>p1</code> which depends on the package. </p>
<pre><code>SQL> select * from user_tab_privs made where table_name = 'PKG_TST';
GRANTEE OWNER TABLE_NAME GRANTOR PRIV... | What is the advantage of Replace over Drop while changing a package in Oracle? | oracle|plsql | -1 | 260 | 3 | 43,966,505 | 43,966,505 | 2 | true | 2017-05-14T04:54:59.513Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the advantage of Replace over Drop while changing a package in Oracle?<p>What are the advantages of using <code>create or replace package</code> to c... |
43,969,513 | Simplify similar loops into one<p>I am writing a braille converter. I have this method to handle the top line of a braille character:</p>
<pre><code>def top(input)
braille = ""
@output_first = ""
@top.each do |k, v|
input.chars.map do |val|
if k.include?(val)
braille = val
braille = braille... | <p>You can put the loop in a separate method.</p>
<pre><code>def top(input)
@output_first = handle_line(@top)
end
def handle_line(line)
result = ''
line.each do |k, v|
input.chars.map do |val|
if k.include?(val)
braille = val
braille = braille.gsub(val, v)
result = result + bra... | Simplify similar loops into one | ruby|enums | -1 | 61 | 2 | 43,969,669 | 43,969,669 | 2 | true | 2017-05-14T22:48:50.423Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Simplify similar loops into one<p>I am writing a braille converter. I have this method to handle the top line of a braille character:</p>
<pre><code>def top... |
43,989,161 | Ordering issue with bootstrap columns<p>I'm learning web development and I'm trying to build a tribute page for freeCodeCamp assignment. You can see my full page here: <a href="https://codepen.io/Art365/pen/ZKxPQj" rel="nofollow noreferrer">https://codepen.io/Art365/pen/ZKxPQj</a> Ideally what I want to happen with sec... | <p>Since CodePen utilizes Bootstrap 4.0.0 you need to use <code>.push-lg-6</code> and <code>.pull-lg-6</code>. Bootstrap 3 uses the <code>.col-*-push-*</code> classes.</p> | Ordering issue with bootstrap columns | html|css|twitter-bootstrap | -1 | 69 | 2 | 43,989,334 | 43,989,334 | 2 | true | 2017-05-15T21:33:26.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Ordering issue with bootstrap columns<p>I'm learning web development and I'm trying to build a tribute page for freeCodeCamp assignment. You can see my full ... |
43,999,830 | Using multiple CSS media queries, but it's only using the largest one?<p>I have multiple media queries running, however it is only using the largest query as opposed to the one that is correct.</p>
<p>See codepen here:
<a href="http://codepen.io/Not_A_Fax_Machine/pen/wdyjWO" rel="nofollow noreferrer">http://codepen.io... | <p>CSS media query stacking should be done from the biggest width down to the lowest width. This is what CSS stands for - <strong><em>cascading</em> style sheets</strong>.</p>
<blockquote>
<p><strong><em>Everything on line 2 overrides everything on line 1.</em></strong> - think about it this way when writing CSS</p>... | Using multiple CSS media queries, but it's only using the largest one? | css|media-queries | -1 | 40 | 2 | 43,999,854 | 43,999,854 | 2 | true | 2017-05-16T11:10:04.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using multiple CSS media queries, but it's only using the largest one?<p>I have multiple media queries running, however it is only using the largest query as... |
44,013,463 | OOP and widgets<p>I am trying to OOP an existing app.</p>
<p>I have a piece of data, "User Information", which is to be displayed in a text widget within a Labelframe widget which has an Entry widget as its labelwidget.</p>
<p>The "User Information" is, I presume, the data item to be OOPed and made into a class, so m... | <p>A general rule of thumb is to separate the data from its presentation, so keeping the user information in its own class is a good idea.</p>
<p>There are many advantages in doing this, primarily it allows the presentation to be easily changed without modifying the data. For example, if you later wanted to display th... | OOP and widgets | python|oop | -1 | 53 | 1 | 44,013,540 | 44,013,540 | 2 | true | 2017-05-17T00:04:13.350Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
OOP and widgets<p>I am trying to OOP an existing app.</p>
<p>I have a piece of data, "User Information", which is to be displayed in a text widget within a ... |
44,015,439 | I need to log the outputs using a button that saves the id of a color<p>I have code that produces a clickable box that changes colors from black --> green --> white by cycling through the shades of green whenever the mouse is clicked. I need to integrate code that allows the current selection (whatever shade is current... | <p>Do it like:</p>
<p>Color value will be in rgb.</p>
<p>With JS:</p>
<pre><code>document.getElementById("myDiv").style.backgroundColor - will extract the background color
</code></pre>
<p>With jQuery:</p>
<pre><code>jQuery('#myDiv').css("background-color");
</code></pre>
<p><div class="snippet" data-lang="js" d... | I need to log the outputs using a button that saves the id of a color | javascript|jquery|html|css|excel | -1 | 51 | 3 | 44,015,622 | 44,015,622 | 2 | true | 2017-05-17T04:15:44.950Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I need to log the outputs using a button that saves the id of a color<p>I have code that produces a clickable box that changes colors from black --> green --... |
44,015,620 | How to get output in django query<pre><code>Table : Demo
ID Name Score
1 A 10
2 B 5
3 B 2
4 A 12
5 A 5
</code></pre>
<p>I have created the above table with <code>data</code>. Now I need to get the <strong>output</strong> like below</p>
<pre><code>Name Name_count Nam... | <pre><code>from django.db.models import Count, Sum
Members.objects.values('name').annotate(Name_count=Count('name'), Name_score=Sum('score'))
</code></pre> | How to get output in django query | python|django | -1 | 52 | 1 | 44,015,753 | 44,015,753 | 2 | true | 2017-05-17T04:30:08.417Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get output in django query<pre><code>Table : Demo
ID Name Score
1 A 10
2 B 5
3 B 2
4 A 12
5 A 5
</... |
44,057,694 | HTTP node listen on AWS lambda using from my web site<p>Is it possible to create and app server on amazon AWS lambda servers?</p>
<p>Like this hello world function?</p>
<pre><code>var http = require('http');
http.createServer(function(request, response) {
response.writeHead(200);
response.write("Hello, this is E... | <p>AWS Lambda is a "Serverless" Computing platform. You can just write your response handler without setting up a server.</p>
<p>To do this, you would have to deploy your "Hello World" function to Lambda, and then configure it to respond to an Amazon API Gateway request. The Gateway receiving a request would be the "t... | HTTP node listen on AWS lambda using from my web site | node.js|amazon-web-services|aws-lambda | -1 | 562 | 1 | 44,057,880 | 44,057,880 | 2 | true | 2017-05-18T21:01:31.013Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
HTTP node listen on AWS lambda using from my web site<p>Is it possible to create and app server on amazon AWS lambda servers?</p>
<p>Like this hello world f... |
44,064,026 | Paypal Button with £0 Option<p>I have a PayPal form which has an three options £5, £3 & £0.</p>
<p>The button works if I choose either £5 or £3 but does not work with £0. Is there a way to capture when the "Pay" button is clicked and the option of £0 selected to redirect the user to a pre determined URL such as "... | <p>This should work. (<a href="https://jsfiddle.net/m2dpaxq5/" rel="nofollow noreferrer">JSFiddle</a>)</p>
<pre><code><script>
function myFunction() {
var sel= document.getElementById("os0");
if (sel.options[sel.selectedIndex].value == 'Basic ----->') {
window.location.replace("http://stackoverflow.co... | Paypal Button with £0 Option | html|paypal | -1 | 57 | 1 | 44,064,311 | 44,064,311 | 2 | true | 2017-05-19T07:30:22.120Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Paypal Button with £0 Option<p>I have a PayPal form which has an three options £5, £3 & £0.</p>
<p>The button works if I choose either £5 or £3 but does... |
44,072,758 | What is difference between declarations and directives in Angular?<p>I've been watching several tutorials on how to write proper Angular applications, but some reference Directives in a component while others reference Declarations in a module. </p> | <p>directives is no more , it's replaced by declaration.</p>
<p>directives used to be component level configuration/declaration that defines the directives/component that will be used in the view of the current component.</p>
<p>But when NgModule came in 2.0.0 , it replaced the directives and you should declare all y... | What is difference between declarations and directives in Angular? | angular|angular-directive | -1 | 541 | 1 | 44,072,774 | 44,072,774 | 2 | true | 2017-05-19T14:34:05.143Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is difference between declarations and directives in Angular?<p>I've been watching several tutorials on how to write proper Angular applications, but so... |
44,075,809 | Way to SELECT all rows where specified value is present, without specifying columns names?<p>I want to know if there is a way to formulate a query to select all rows where a certain value is present, without specifying columns names?</p>
<p>ex. SELECT * FROM table WHERE "any column" = 2;</p>
<p>Is this possible?</p>
... | <p>No, it's not possible in SQL. You would have to write something like:</p>
<pre><code>SELECT *
FROM table
WHERE 2 IN (col1, col2, col3, ...)
</code></pre>
<p>You could construct this query dynamically using the information in <code>INFORMATION_SCHEMA.COLUMNS</code>, so you could do it in a stored procedure.</p> | Way to SELECT all rows where specified value is present, without specifying columns names? | mysql | -1 | 37 | 1 | 44,075,877 | 44,075,877 | 2 | true | 2017-05-19T17:28:12.620Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Way to SELECT all rows where specified value is present, without specifying columns names?<p>I want to know if there is a way to formulate a query to select ... |
44,087,096 | Recoverable fatal error: Object of class PDOStatement could not be converted to string<p>I am trying to send data to a database using PHP but when I execute the query using <code>execute()</code> I get an error that says</p>
<blockquote>
<p>Recoverable fatal error: Object of class PDOStatement could not be converted... | <p>You are reassigning your <code>snippet</code> variable to a PDO object and then try to use that in your <code>execute</code>. One of those variables needs to be renamed.</p>
<p>Changing <code>$snippet = $_POST['snippet'];</code> to <code>$snippetPost = $_POST['snippet'];</code> and your <code>execute</code> to this... | Recoverable fatal error: Object of class PDOStatement could not be converted to string | php|pdo | -1 | 7,697 | 1 | 44,087,140 | 44,087,140 | 2 | true | 2017-05-20T14:31:21.030Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Recoverable fatal error: Object of class PDOStatement could not be converted to string<p>I am trying to send data to a database using PHP but when I execute ... |
44,122,310 | Timezone differences with GMT causing hours to change?<p>Below is my input date string format:</p>
<pre><code>2025-08-08T15%3A41%3A46
</code></pre>
<p>I have to convert above string date in the format as shown below:</p>
<pre><code>Fri Aug 08 15:41:46 GMT-07:00 2025
</code></pre>
<p>And I got below code:</p>
<pre>... | <p>That is the same time except in the first format you are using "HH" for hour that is "Hour in day (0-23)" and second format uses "hh" that is "Hour in am/pm (1-12)".</p> | Timezone differences with GMT causing hours to change? | java|date|simpledateformat | -1 | 54 | 2 | 44,122,419 | 44,122,419 | 2 | true | 2017-05-22T21:20:01.643Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Timezone differences with GMT causing hours to change?<p>Below is my input date string format:</p>
<pre><code>2025-08-08T15%3A41%3A46
</code></pre>
<p>I ha... |
44,131,872 | Blogger : How To Improve Recent Posts Wdget Image Quality ( Code Added )<p>Today I have an issue from blogger recent post. </p>
<p>See My Blog: <a href="https://pdfepaper.blogspot.com" rel="nofollow noreferrer">https://pdfepaper.blogspot.com</a></p>
<p>I will increase in recent post height weight but image quality is... | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.recent-posts-container {
font-family: 'Oswald', sans-serif;
font-size: 12px;
list-style-type: none;
display: inline-block... | Blogger : How To Improve Recent Posts Wdget Image Quality ( Code Added ) | javascript|blogger | -1 | 536 | 1 | 44,133,963 | 44,133,963 | 2 | true | 2017-05-23T10:11:18.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Blogger : How To Improve Recent Posts Wdget Image Quality ( Code Added )<p>Today I have an issue from blogger recent post. </p>
<p>See My Blog: <a href="htt... |
44,179,679 | Order confirmation emails not working in Magento 1.9.3.2<p>My website is live and the order confirmation emails are neither being sent to the customer nor the admin. I am using Magento 1.9.3.2.</p> | <p>Please check whether <strong>Cron jobs</strong> are working or not, you can check easily by installing <a href="https://www.magentocommerce.com/magento-connect/aoe-scheduler.html" rel="nofollow noreferrer">AOE SCHEDULER</a> extension, make sure you have proper setting in <code>System > Configuration > Advanced... | Order confirmation emails not working in Magento 1.9.3.2 | magento|magento-1.9 | -1 | 2,075 | 3 | 44,180,033 | 44,180,033 | 2 | true | 2017-05-25T11:40:00.957Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Order confirmation emails not working in Magento 1.9.3.2<p>My website is live and the order confirmation emails are neither being sent to the customer nor th... |
44,177,986 | Replacing twitter usernames (@...) with "USERNAME" - how to?<p>I want to reduce features of my twitter corpus. For that reason I intend to substitute usernames with an equivalence class token. The usernames are characterized by starting with an @. I tried using re.sub(), but it does not work as intended. It replaces na... | <p>Your regex is wrong for what you're claiming to want to do:</p>
<pre><code>line=re.sub(r"\B@\w+", "USERNAME", line)
</code></pre>
<p>If you want to match <code>@anything_anywhere</code> where <code>@</code> is preceded by a non-boundary character and replace it with <code>USERNAME</code>.</p> | Replacing twitter usernames (@...) with "USERNAME" - how to? | python|python-3.x | -1 | 320 | 2 | 44,180,560 | 44,180,560 | 2 | true | 2017-05-25T10:17:04.353Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Replacing twitter usernames (@...) with "USERNAME" - how to?<p>I want to reduce features of my twitter corpus. For that reason I intend to substitute usernam... |
44,183,693 | Removing box shadow when image scr is empty<p>I want to remove the box-shadow when the the image source is empty (src=""). How can I achieve this with javascript? I think the best way is to do is to remove the class when the source is blank but I have no idea how to do that. Does anyone know?</p>
<p><div class="snippe... | <p>Use attribute selector css <code>.property[src=""]</code></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-css lang-css prettyprint-override"><code>.property {
margin-top: 20px;
margin-left: auto;
... | Removing box shadow when image scr is empty | javascript|jquery|html|css | -1 | 316 | 3 | 44,183,760 | 44,183,760 | 2 | true | 2017-05-25T15:00:17.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Removing box shadow when image scr is empty<p>I want to remove the box-shadow when the the image source is empty (src=""). How can I achieve this with javasc... |
44,191,086 | Joining up two sql tables<p>I've got two tables that contain the data: </p>
<pre><code>GroupMembers
Users, GroupID
GroupPosts
GroupID,PostID
</code></pre>
<p>I want to get a table output that contains</p>
<pre><code>Users, GroupID, PostID
</code></pre>
<p>Users can belong to multiple groups, and each group can hav... | <p>You can use a simple <code>JOIN</code> query, e.g.:</p>
<pre><code>SELECT g.users, g.groupID, gp.postid
FROM GroupMembers g JOIN GroupPosts gp ON g.groupID = gp.groupID;
</code></pre> | Joining up two sql tables | mysql|sql|database | -1 | 29 | 3 | 44,191,125 | 44,191,125 | 2 | true | 2017-05-25T23:04:27.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Joining up two sql tables<p>I've got two tables that contain the data: </p>
<pre><code>GroupMembers
Users, GroupID
GroupPosts
GroupID,PostID
</code></pre>
... |
44,269,225 | How can i use an SQL query to pull the following infromation from a singlet bale.<p>I have a giant table that gets updated constantly and i need to pull some information from it but i am having trouble wrapping my head around how. </p>
<p>Basically i have a single table with three fields...
Username - app_name - star... | <p>It could be this simple.</p>
<pre><code>select username
, app_name
, max(start_time) mostRecent
from yourtable
group by username, app_name
</code></pre> | How can i use an SQL query to pull the following infromation from a singlet bale. | mysql|sql | -1 | 16 | 1 | 44,269,290 | 44,269,290 | 2 | true | 2017-05-30T18:17:30.750Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can i use an SQL query to pull the following infromation from a singlet bale.<p>I have a giant table that gets updated constantly and i need to pull some... |
44,293,719 | How to update front end data with node js?<p>I want to make a website that can display a plot with node.js. I also want to update the data every minute without refreshing the whole page. I am new to node.js and would like to learn how to use "get" request to update the data with a server. </p>
<p>Here I created a serv... | <p>You need to do two things:</p>
<ol>
<li>Create a route on your node server which returns the desired data.</li>
<li>Perform an Ajax Request from the Client to fetch the data from the server and display your data accordingly. (In This case you would peform this request every minute)</li>
</ol> | How to update front end data with node js? | javascript|node.js | -1 | 513 | 1 | 44,293,767 | 44,293,767 | 2 | true | 2017-05-31T20:01:26.523Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to update front end data with node js?<p>I want to make a website that can display a plot with node.js. I also want to update the data every minute witho... |
44,331,021 | Getting error in the jsp page<p>I am getting the below error - java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute</p>
<p>I have tried to search the net but non of the solution is solving this issue.</p>
<p>Please find my controller cla... | <p>I guess you should add following commandName attribute in your form in JSP:</p>
<pre><code><form:form method="POST" commandName="login">
<table>
<tr>
<td><form:label path="emailId">Name</form:label></td>
<td><form... | Getting error in the jsp page | java|jsp|spring-mvc | -1 | 40 | 1 | 44,331,131 | 44,331,131 | 2 | true | 2017-06-02T14:11:51.720Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting error in the jsp page<p>I am getting the below error - java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name '... |
44,352,198 | Does iterable list change by operations?<p>I have my own encoded iterable class and I created an iterable list in the demo section.These methods is included in my class.</p>
<pre><code>public void add(E e);
public Node<E> next();
public void hasNext();
public Node<E> previous();
</code></pre>
<p>And here ... | <p>Well, since you are implementing your own iterator, you can do whatever makes sense to you.</p>
<p>If you wish your iterator to fit the contract of <code>java.util.ListIterator</code> (you will have to choose <code>ListIterator</code>, since <code>java.util.Iterator</code> has unspecified behavior when adding eleme... | Does iterable list change by operations? | java|list|iterator | -1 | 39 | 1 | 44,352,235 | 44,352,235 | 2 | true | 2017-06-04T08:32:16.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Does iterable list change by operations?<p>I have my own encoded iterable class and I created an iterable list in the demo section.These methods is included ... |
44,369,352 | What happens if a thread re-assigns a variable in java?<p>I want to know if the following (contrived) example is thread safe:</p>
<pre><code>public class SpringSingleton
{
private MyObject _myObject = new MyObject("hello");
public void useObject()
{
_myObject.doSomethingCool();
}
public ... | <p>Assigning a reference is an atomic operation. You can never see a half-assigned reference. So the thread calling the <code>doSomethingCool()</code> method will either call it on the old reference, or on the new one. </p>
<p>But that doesn't make the code thread-safe. You can also have visibility problems: the threa... | What happens if a thread re-assigns a variable in java? | java|spring|multithreading | -1 | 39 | 2 | 44,369,450 | 44,369,450 | 2 | true | 2017-06-05T12:50:50.217Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What happens if a thread re-assigns a variable in java?<p>I want to know if the following (contrived) example is thread safe:</p>
<pre><code>public class Sp... |
44,022,676 | How to connect to Samba SMB2/SMB3 with domain authentication from Ubuntu 16.04 using GUI?<p>I can't connect to samba after blocking SMB1 protocol.
Early, I just click in Nautilus to "Connect to Server" and inputted smb://mySambaHost/. Now, I can get connected with this way.
<code>Unhandled error message: Failed to retr... | <p>Try adding the version (vers=3.0):</p>
<pre><code>sudo mount -t cifs -o username=WINDOWS_DOMAIN/WINDOWS_DOMAIN_USERNAME,password=WINDOWS_DOMAIN_PASSWORD,rw,vers=3.0 //myServer/ /media/windowsshare /media/windowsshare
</code></pre>
<p>You could also try with <code>2.0</code> & <code>2.1</code></p> | How to connect to Samba SMB2/SMB3 with domain authentication from Ubuntu 16.04 using GUI? | linux|ubuntu|samba | -1 | 2,563 | 1 | 44,047,932 | 44,047,932 | 3 | true | 2017-05-17T10:46:15.217Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to connect to Samba SMB2/SMB3 with domain authentication from Ubuntu 16.04 using GUI?<p>I can't connect to samba after blocking SMB1 protocol.
Early, I j... |
44,138,195 | Should I import strings into a class or use getString() to assign them to a variable?<p>I originally had all my url's for api calls as individual strings, but am updating to have a separate base url string and api endpoint string.</p>
<p>Previously I was using the getString() method to assign the string resource to a ... | <p>One of the design principles of software engineering is to try to use the smallest possible scope for anything that you declare in memory. This is good for a variety of reasons such as freeing memory and reducing naming collisions for variables. If you google the design principles around scope then you will find muc... | Should I import strings into a class or use getString() to assign them to a variable? | java|android | -1 | 58 | 2 | 44,138,344 | 44,138,344 | 3 | true | 2017-05-23T14:50:54.957Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Should I import strings into a class or use getString() to assign them to a variable?<p>I originally had all my url's for api calls as individual strings, bu... |
44,215,839 | How to refresh the UITableViewController view?<p>I am making a web service call to retrieve a list of research articles based on a search term. When my app started, the table view is empty. I get that bit. But once I have made a successful web service call and populate by data source with my custom objects, I do not ... | <blockquote>
<p>yourTableView.reloadData()</p>
</blockquote>
<p>call this method. This method will reload whole table.
But if you want to reload only visible cells then call this method.</p>
<blockquote>
<pre><code>tableView.reloadRows(at:tableView.indexPathsForVisibleRows!, with: .none)
</code></pre>
</blockqu... | How to refresh the UITableViewController view? | ios|swift3 | -1 | 44 | 5 | 44,215,859 | 44,215,859 | 3 | true | 2017-05-27T10:39:33.640Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to refresh the UITableViewController view?<p>I am making a web service call to retrieve a list of research articles based on a search term. When my app ... |
44,355,439 | Update query that should apply numbers to a text field fail<p>I have a simple update query that should apply numbers to a text field, but it keeps dropping the leading zero. Should be 054846, but ends up as 54846. Can't figure out what I'm missing.</p>
<pre><code>Dim strsql As String
strsql = "UPDATE [Action]" _
... | <p>It sounds like the field in the table is defined as a string. But the SQL you have has the number as an integer because you didn't surround the value with single quotes. You will see the issue if you output the SQL string you're trying to run.</p> | Update query that should apply numbers to a text field fail | vba | -1 | 24 | 2 | 44,355,459 | 44,355,459 | 3 | true | 2017-06-04T14:59:07.717Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Update query that should apply numbers to a text field fail<p>I have a simple update query that should apply numbers to a text field, but it keeps dropping t... |
44,087,565 | Decimal, Float, Double or Varchar to store Price Amount in database?<p>My question is What is the best solution to store Price value in database, keep in mind that I'm going to retrieve entries from that table by this field descending. Decimal, float, double or regular varchar ?</p> | <p>Don't ever use varchar to store monetary data. Use <code>DECIMAL</code> or <code>NUMERIC</code> type for this.</p>
<p><code>DECIMAL/NUMERIC:</code> Exact precision, operations slight slow. Use this type in data that needs exact number precision. E.g.: Monetary, factors, etc.</p>
<p><code>FLOAT/DOUBLE:</code> Inexa... | Decimal, Float, Double or Varchar to store Price Amount in database? | database|decimal|varchar | -1 | 1,080 | 2 | 44,087,903 | 44,087,903 | 4 | true | 2017-05-20T15:19:26.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Decimal, Float, Double or Varchar to store Price Amount in database?<p>My question is What is the best solution to store Price value in database, keep in min... |
44,114,901 | How to delete publish message of MQTT protocol in node js<p>developing chat application using MQTT protocol, mosca (node module) and MongoDB as a database in Node.js</p>
<p>facing the problem of how to delete publish message and remove from all subscriber in app. </p> | <p>At a MQTT level you can't, once a message has been published it's will be delivered by the broker to all connected clients (and queued for disconnected clients) with a matching subscription.</p>
<p>The only thing that is possible is to clear a retained message to prevent the same payload being re-delivered each tim... | How to delete publish message of MQTT protocol in node js | node.js|mqtt|mosca | -1 | 1,057 | 1 | 44,114,994 | 44,114,994 | 4 | true | 2017-05-22T14:02:54.423Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to delete publish message of MQTT protocol in node js<p>developing chat application using MQTT protocol, mosca (node module) and MongoDB as a database in... |
44,237,192 | How to align text both left and right side equally<p>How to align text both left and right side equally?Can anyone help me?</p>
<p>example:<br>
<a href="https://i.stack.imgur.com/3PqJAm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3PqJAm.jpg" alt="enter image description here"></a></p>
<p>my cod... | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>p {
line-height: 200%;
text-align: justify;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code... | How to align text both left and right side equally | css | -1 | 66 | 1 | 44,237,203 | 44,237,203 | 4 | true | 2017-05-29T07:48:37.960Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to align text both left and right side equally<p>How to align text both left and right side equally?Can anyone help me?</p>
<p>example:<br>
<a href="htt... |
44,006,546 | Backgroundworker blocks Pageload<p>I'm trying to load a large amount of data from Entity Framework. The request takes about a minute and blocks the page load. Since this becomes unreasonable for larger queries, I thought I would try to use a background thread or something similiar. After a little while of researching a... | <p><code>BackgroundWorker</code> only useful for freeing up the UI thread. Since you are on ASP.NET, you do not have a UI thread.</p>
<p>ASP.NET works with HTTP requests and responses. The "page" abstraction is (unfortunately) made to <em>look</em> like a UI framework, but it <strong>is not</strong>.</p>
<p>So, you n... | Backgroundworker blocks Pageload | c#|multithreading|async-await|task|backgroundworker | -1 | 256 | 2 | 44,006,913 | 44,006,913 | 5 | true | 2017-05-16T16:11:38.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Backgroundworker blocks Pageload<p>I'm trying to load a large amount of data from Entity Framework. The request takes about a minute and blocks the page load... |
44,070,372 | How to plot data points outside the plot region using the matpotlib?<p>I'm plotting data points using matplotlib.</p>
<p>Basically, I want to plot discrete points. Many of them are placed on the boundaries. However, as shown in the attached figure, the data points on the figure boundary only appears as a half circle r... | <p>Set the <code>plt.plot</code> kwarg <code>clip_on</code> to <code>False</code>, and the points will show up outside the axes.</p>
<pre><code>plt.plot(grid_point[0, i, j], grid_point[1, i, j], 'ro', markersize=15, clip_on=False)
</code></pre>
<p>From the <a href="https://matplotlib.org/api/_as_gen/matplotlib.artist.... | How to plot data points outside the plot region using the matpotlib? | python|numpy|matplotlib | -1 | 1,854 | 2 | 44,070,623 | 44,070,623 | 5 | true | 2017-05-19T12:39:05.767Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to plot data points outside the plot region using the matpotlib?<p>I'm plotting data points using matplotlib.</p>
<p>Basically, I want to plot discrete ... |
44,309,056 | how to change cells color per value next to it<p>I have the following set of 2 columns and n rows:</p>
<pre><code> A B
1 44000 44000
2 2800 2730
3 17000 21160
4 1000 1046
5 700 0
6 1500 1249
7 300 107
8 1200 400
9 0 1400
10 4500 3582
11 0 280
</code></pre>
<p>I would like to create a ... | <p>The formula:</p>
<pre><code>=$B1>$A1
</code></pre>
<p>The Applies to: </p>
<pre><code>=$B:$B
</code></pre>
<p><a href="https://i.stack.imgur.com/4Pnsh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4Pnsh.png" alt="enter image description here"></a></p> | how to change cells color per value next to it | excel|vba | -1 | 43 | 1 | 44,309,167 | 44,309,167 | 5 | true | 2017-06-01T13:35:42.187Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to change cells color per value next to it<p>I have the following set of 2 columns and n rows:</p>
<pre><code> A B
1 44000 44000
2 2800 2730
3 17... |
43,978,503 | TypeError Cannot set property of undefined<p>I'm getting a <code>TypeError: Cannot set property 'error' of undefined</code> for the following line of code: <code>this.error = error.code;</code></p>
<p>Here's what I'm trying to do (it's in an Angular Reactive Form, calling a web service):</p>
<p><div class="snippet" d... | <p>Use</p>
<pre><code> this.authService.signUp(this.signUp.value.email, this.signUp.value.password,
this.authServiceCallback.bind(this));
</code></pre>
<p>otherwise <code>this</code> won't point to the current class instance. </p>
<p>See also <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Refe... | TypeError Cannot set property of undefined | angular|typescript | -1 | 2,574 | 2 | 43,978,566 | 43,978,566 | 7 | true | 2017-05-15T11:37:44.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
TypeError Cannot set property of undefined<p>I'm getting a <code>TypeError: Cannot set property 'error' of undefined</code> for the following line of code: <... |
44,064,221 | make nested array on the basis of specific array value in php<pre><code>Array
(
[0] => Array
(
[user_id] => 40718
[name] => abc1
)
[1] => Array
(
[user_id] => 40718... | <p>Though I haven't tested it, check if it can help you to get your result :</p>
<pre><code><?php
$arrTest = [
[
'user_id' => 40718,
'name' => 'abc1'
],
[
'user_id' => 40718,
'name' => 'abc2'
],
[
'user_id' => 40719,
'name' => 'a... | make nested array on the basis of specific array value in php | php | -1 | 52 | 1 | 44,064,466 | 44,064,466 | -1 | true | 2017-05-19T07:40:53.390Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
make nested array on the basis of specific array value in php<pre><code>Array
(
[0] => Array
(
[us... |
44,147,255 | Annoying Cordova + android + JSON behavior<p>I have been far too many hours with this one. I am trying to execute the seemingly simple line of code:</p>
<pre><code>$.getJSON(SERVER_URL + '/path/', function(data) {alert(data);});
</code></pre>
<p>which works just fine with <code>cordova serve</code>. When I build the ... | <p>Very stupid of me. Turns out that there were permission problems, but by the time I had solved it, my server (also in development) had died silently. I just leave this for anyone that might have a similar problem. Suspect your server.</p> | Annoying Cordova + android + JSON behavior | android|json|cordova | -1 | 31 | 1 | 44,167,561 | 44,167,561 | -1 | true | 2017-05-24T00:56:13.317Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Annoying Cordova + android + JSON behavior<p>I have been far too many hours with this one. I am trying to execute the seemingly simple line of code:</p>
<pr... |
44,225,295 | Predicting Different Type of Dataset Instead Required One<p>I have Train and Test Dataset. I want to make prediction for my Test Dataset and save it as CSV. The problem is that, </p>
<p>I can't save the result of my Test Dataset. Everytime, I save the result of Training dataset. </p>
<p>That would be great if you tel... | <p>Reaching the Training Data again instead test. </p>
<pre><code>Train = pd.read_csv('Dataset/train.csv', delimiter=';')
Test = pd.read_csv('Dataset/test.csv', delimiter=';')
</code></pre> | Predicting Different Type of Dataset Instead Required One | python|csv|machine-learning|scikit-learn|classification | -1 | 43 | 1 | 44,225,747 | 44,225,747 | -1 | true | 2017-05-28T08:32:48.387Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Predicting Different Type of Dataset Instead Required One<p>I have Train and Test Dataset. I want to make prediction for my Test Dataset and save it as CSV. ... |
44,298,838 | Browser helper object not working properly<p>Am working on adding addon to IE11 (64bit) in windows7 and followed the below link</p>
<p><a href="https://www.codeproject.com/Articles/350432/BHO-Development-using-managed-code" rel="nofollow noreferrer">Brwserhelperobject</a></p>
<p>Iam able to see addon in my IE manage... | <p>In the given link
<strong>the following event is not triggered some times due to this message box is not popped out</strong></p>
<pre><code>webBrowser.BeforeNavigate2 += new
DWebBrowserEvents2_BeforeNavigate2EventHandler(this.OnBeforeNavigate2);
</code></pre>
<p>so instead of using above event use the bel... | Browser helper object not working properly | browser|windows-7-x64|ieaddon | -1 | 29 | 1 | 44,367,631 | 44,367,631 | -1 | true | 2017-06-01T04:59:14.730Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Browser helper object not working properly<p>Am working on adding addon to IE11 (64bit) in windows7 and followed the below link</p>
<p><a href="https://www... |
43,931,037 | Display Correct Row based on Candy Number<p>Goal:<br>
If a person has two candy number, number 1 should always display first. No need to display candy number 2.<br>
If a person does not have number 1, it should display number 2 instead.</p>
<pre><code>Display all data
(int)(int) (nvarchar) (int)
Id fId Name ... | <p>This can be using <code>row_number()</code> window function:</p>
<pre><code>select Id, fId, Name, Candy_Number from (
select your_table.*, row_number() over(partition by fId order by Candy_Number) as rn from your_table
) t
where rn = 1
order by id
</code></pre>
<p>This gives one row per <code>fId</code>, with... | Display Correct Row based on Candy Number | sql|sql-server|tsql | -1 | 41 | 2 | 43,931,175 | 43,931,175 | 0 | true | 2017-05-12T06:46:53.597Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Display Correct Row based on Candy Number<p>Goal:<br>
If a person has two candy number, number 1 should always display first. No need to display candy number... |
43,941,325 | fill a series of numbers seperated by dash or comma<p>I need to fill series of numbers where dash or comma is in use.
I'm using this code that works fine but when numbers starts with zero it's not working (the leading zero drop)</p>
<pre><code>$str = str_replace(' ', '', '11-17,19,041244-041250);
$arr = explode(',', $... | <p>Try this. Taken from here: <a href="https://stackoverflow.com/questions/10769681/incrementing-numbers-starting-from-0000-in-php">Incrementing numbers starting from 0000 in php</a></p>
<pre><code><?php
$str = str_replace(' ', '', '11-17,19,041244-041250');
$arr = explode(',', $str);
foreach ($arr as $elem) {
... | fill a series of numbers seperated by dash or comma | php | -1 | 44 | 3 | 43,941,679 | 43,941,679 | 0 | true | 2017-05-12T15:24:09.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
fill a series of numbers seperated by dash or comma<p>I need to fill series of numbers where dash or comma is in use.
I'm using this code that works fine but... |
43,959,295 | c++ array arguments not working<p>I'm trying to make a function that finds the maximum value of any array, and for some reason the function will not take the array as input (It is for a program that runs through very big numbers, as for the unsigned long ints).</p>
<pre><code> #include <iostream>
using namespace... | <p>Your prototype should be consistent with the function definition as follows:</p>
<pre><code>int findMax(int [], unsigned long int );
</code></pre>
<p>also, you can compact your function as follows:</p>
<pre><code>int findMax(int x[],unsigned long int size)
{
unsigned long int max = x[0];
for(int i = 1; i... | c++ array arguments not working | c++|arrays|function|parameters | -1 | 43 | 2 | 43,959,332 | 43,959,332 | 0 | true | 2017-05-14T00:36:19.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
c++ array arguments not working<p>I'm trying to make a function that finds the maximum value of any array, and for some reason the function will not take the... |
43,990,338 | Validation Regex for quantities with centesimal and without centesimal ...?<p>Hello to the community I have a query, I need a validation Regex, for amounts without decimals, that consider valid the following structure.</p>
<p><strong>99,999,999</strong></p>
<p>If I add a value:</p>
<pre><code>12345678 -> O... | <p>With a bit of work you can craft a pattern to do this:</p>
<p><a href="https://regex101.com/r/DKpSUR/1" rel="nofollow noreferrer">https://regex101.com/r/DKpSUR/1</a></p>
<p><code>/^-?([0-9]{1,2},?)?([0-9]{3},?){1,2}$/</code></p> | Validation Regex for quantities with centesimal and without centesimal ...? | javascript|jquery | -1 | 43 | 3 | 43,990,533 | 43,990,533 | 0 | true | 2017-05-15T23:37:40.563Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Validation Regex for quantities with centesimal and without centesimal ...?<p>Hello to the community I have a query, I need a validation Regex, for amounts w... |
44,004,640 | javaFX: TableView's cellvalue is not enough to display in columns i can't solved<p>javaFX: TableView's cellvalue is not enough to display in columns i can't solved, The following code executes, but the column is showing anything.
and display is like picture <a href="https://i.stack.imgur.com/ocTPX.png" rel="nofollow ... | <p>Your getter/setter methods <code>getN_art1</code> and <code>setN_art1</code> should be named <code>getDes_art1</code> and <code>setDes_art1</code>, respectively. <code>PropertyValueFactory<></code> searches for getters named <code>getNameOfProperty</code>.</p>
<p>See <a href="https://docs.oracle.com/javafx/2/... | javaFX: TableView's cellvalue is not enough to display in columns i can't solved | javafx|javafx-2 | -1 | 41 | 1 | 44,004,763 | 44,004,763 | 0 | true | 2017-05-16T14:43:34.330Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
javaFX: TableView's cellvalue is not enough to display in columns i can't solved<p>javaFX: TableView's cellvalue is not enough to display in columns i can't... |
44,001,184 | PHP: how to detect if youtube video is blocked on my website?<p>i have a music website that embed youtube videos,
in some of the videos i get this error:
"the video contains content from... who has blocked it from display on this website"
is there any way to check in PHP if the video is blocked on my website?
thanks</p... | <p>after i read some posts about this problem, i understand that i cant get the blacklist, so i found a dummy solution,
if the youtube cant play the video for any reason, i destroy the player and do whatever i want (show another player/video, or move the user to another page)</p>
<pre><code>function onPlayerStateChang... | PHP: how to detect if youtube video is blocked on my website? | youtube-api | -1 | 1,347 | 3 | 44,098,070 | 44,098,070 | 0 | true | 2017-05-16T12:15:18.950Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP: how to detect if youtube video is blocked on my website?<p>i have a music website that embed youtube videos,
in some of the videos i get this error:
"th... |
44,104,215 | Listview and php<p>I want to view all the appointment in my listview in Android.</p>
<p>I've created a function for it in PHP and call <code>getAppointment.php</code> as API.</p>
<p>When i do enter the first data, it appeared at my list view but when i enter the second data there is no second data on my list view. </... | <p>If you already fetch all records from DB table then why use <code>array_push</code> function</p>
<p>just simply fetch data and store into $result</p>
<pre><code>$result = array();
// $row = mysqli_fetch_array($r);
while ($row = mysqli_fetch_array($r)) {
$result[] = $row;
}
echo json_encode(array('result'=>... | Listview and php | php|android | -1 | 41 | 1 | 44,104,468 | 44,104,468 | 0 | true | 2017-05-22T03:28:53.703Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Listview and php<p>I want to view all the appointment in my listview in Android.</p>
<p>I've created a function for it in PHP and call <code>getAppointment.... |
44,108,696 | How to send crashlogs from device to registered email without syncing to itunes or without any contact to xcode<p>If any crash happens while using iOS application, crash logs are created in the device. Now I want my application crashlogs to be sent to my email address in .txt file when ever crash happens in my applicat... | <p>I suggest you to look up link below: </p>
<p><a href="https://fabric.io/kits/ios/crashlytics" rel="nofollow noreferrer">https://fabric.io/kits/ios/crashlytics</a></p>
<p>Maybe it could help you . </p> | How to send crashlogs from device to registered email without syncing to itunes or without any contact to xcode | ios|crash-reports | -1 | 50 | 3 | 44,109,191 | 44,109,191 | 0 | true | 2017-05-22T08:58:02.023Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to send crashlogs from device to registered email without syncing to itunes or without any contact to xcode<p>If any crash happens while using iOS applic... |
44,110,985 | CSS alignment right in desktop view and mobile view alignment center<p>I have an issue when it comes to viewing my website responsive one of the images is a little bit off screen but in desktop view, it supposes to be to the right however in mobile view it should it in the centre like others. </p>
<p>The image is loca... | <p>Add this css.</p>
<pre><code>@media screen and (max-width: 480px) {
img.align-right {
float: none;
margin: auto;
max-width: 256px;
}
div.article-container {
padding: 5px;
text-align: center;
max-width: 256px;
}
}
</code></pre>
<p><div class="... | CSS alignment right in desktop view and mobile view alignment center | html|css | -1 | 41 | 2 | 44,111,110 | 44,111,110 | 0 | true | 2017-05-22T10:50:31.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CSS alignment right in desktop view and mobile view alignment center<p>I have an issue when it comes to viewing my website responsive one of the images is a ... |
44,119,581 | $.map() is firing multiple times inside of an .autocomplete() success<p>I'm using the "autocomplete" function from jQuery UI to search for users in a database. The script is working and the program is finding everything I'm looking for. But when the autocomplete menu appears below the searching field, all the results a... | <p><code>$.map()</code> returns an array of all the values returned by the callback function. Your callback function is returning the entire <code>availableTagsLabeled</code> array, so <code>$.map()</code> is returning a 2-dimensional array. You should just return one element at a time.</p>
<p>But it doesn't look like... | $.map() is firing multiple times inside of an .autocomplete() success | jquery|json|jquery-ui|jquery-ui-autocomplete | -1 | 80 | 1 | 44,119,867 | 44,119,867 | 0 | true | 2017-05-22T18:18:52.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
$.map() is firing multiple times inside of an .autocomplete() success<p>I'm using the "autocomplete" function from jQuery UI to search for users in a databas... |
44,131,418 | Weird sum value for CS50 pset1- Greedy challenge<p>I have finished my code for Greedy challenge in PSET1's CS50</p>
<p>However, the total count of coins returns is quite large. When I look further into it, it seems that my nickels coins count is huge (4381344 coins for 0.48 cent).</p>
<p>Call me stupid but I have bee... | <p>You forgot to initialize your variables. Change:</p>
<pre><code>int quarters= 25, qc, dimes = 10, dc, nickels= 5, nc,pennies= 1, pc;
</code></pre>
<p>into:</p>
<pre><code>int quarters= 25, qc = 0, dimes = 10, dc = 0, nickels= 5, nc = 0, pennies= 1, pc = 0;
</code></pre>
<p>What happened was that because <code>nc... | Weird sum value for CS50 pset1- Greedy challenge | c|cs50 | -1 | 78 | 1 | 44,131,768 | 44,131,768 | 0 | true | 2017-05-23T09:51:08.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Weird sum value for CS50 pset1- Greedy challenge<p>I have finished my code for Greedy challenge in PSET1's CS50</p>
<p>However, the total count of coins ret... |
44,153,414 | Wrong path in img src. React redux app<p>What is wrong with my path to image? Everything is wrong.
<a href="https://i.stack.imgur.com/ocMsR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ocMsR.png" alt="enter image description here"></a></p> | <p><code>image.jpg</code> is different from <code>o.jpg</code> ... ?</p>
<p>Also, you need to import your image, like this :
<code>import theNameYouWant from 'path/to/your/image'</code>, and then : </p>
<p><code><img src={theNameYouWant} /></code></p> | Wrong path in img src. React redux app | image|reactjs|redux|react-redux | -1 | 548 | 1 | 44,153,617 | 44,153,617 | 0 | true | 2017-05-24T08:48:25.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Wrong path in img src. React redux app<p>What is wrong with my path to image? Everything is wrong.
<a href="https://i.stack.imgur.com/ocMsR.png" rel="nofollo... |
44,172,219 | output error: different outputs on two different compilers: Prime Cryptarithm USACO<p>The following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into the positions marked with *. If the set of prime digits {2,3,5,7} is selected, the cryptarithm is ca... | <p>Generally, when the results of a program are different with different compilers, that usually means somewhere in your program you are running into Undefined Behavior.</p>
<p>In your case, the comparison of <code>j<=numofDigs</code> in checkNum is incorrect. You are accessing past the end of arrSetN when <code>j... | output error: different outputs on two different compilers: Prime Cryptarithm USACO | c++ | -1 | 40 | 1 | 44,172,355 | 44,172,355 | 0 | true | 2017-05-25T04:22:33.170Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
output error: different outputs on two different compilers: Prime Cryptarithm USACO<p>The following cryptarithm is a multiplication problem that can be solve... |
44,183,344 | PHP doesn't redirect to specific page<p>I tried to send password to the PHP commands. But when I <code>echo</code> it to check condition, it works. But if I don't <code>echo</code> but using <code>headers()</code> instead , it won't redirect if the password is correct. But if the password isn't correct, it redirects to... | <p>Can you try this?</p>
<pre><code>if ($password == "test")
{
header('Location: survey.php', true, 302);
die();
}
else
{
header('Location: error.php', true, 302);
die();
}
</code></pre> | PHP doesn't redirect to specific page | php|html|css|twitter-bootstrap-3 | -1 | 44 | 2 | 44,183,436 | 44,183,436 | 0 | true | 2017-05-25T14:40:59.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP doesn't redirect to specific page<p>I tried to send password to the PHP commands. But when I <code>echo</code> it to check condition, it works. But if I ... |
44,201,555 | Out do I concatenate the beginning of an array subscript of a substring and the end substring<pre><code>$getRead = @($readFile)
for($i = 0; $i -lt getRead.length; $i++){
$getEnd = $readFile.substring(readFile[$i].length - 1, 4)
$getStart = $readFile.substring(readFile[$i].length 1, $getEnd)
#$findMatchREG... | <p>This will work provided you have a single driver's license number, per line in you file:</p>
<pre><code>$readFile = "c:/path/file"
$getRead = gc $readFile
foreach ($line in $getRead){
$getStart = $line.substring(0, $line.Length - 5)
$resultWithNines = $getStart + "9999"
echo $resultWithNines
}
</code>... | Out do I concatenate the beginning of an array subscript of a substring and the end substring | powershell | -1 | 17 | 1 | 44,202,134 | 44,202,134 | 0 | true | 2017-05-26T12:24:04.010Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Out do I concatenate the beginning of an array subscript of a substring and the end substring<pre><code>$getRead = @($readFile)
for($i = 0; $i -lt getRead.l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.