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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71,955,491 | TS2339: Property 'SOLDE' does not exist on type 'AdvTitres'<p>I have an array and I just want to retrieve the value of the <code>SOLDE</code> variable.</p>
<p>The JSON file is available <a href="http://jsonblob.com/966692805254856704" rel="nofollow noreferrer">here</a>.</p>
<p>The error message is the following:</p>
<p... | <pre><code>export interface InternalTransfertWatchResponse extends ApiResponse {
TRANS: AdvTitres[];
}
export interface AdvTitres {
TITRE: {
LABEL: string,
ISIN: string,
SVM: number,
},
SOLDE: number,
QTE_VENTE: number,
QTE_BLOQ: number,
QTE_TRF: number,
}
</code></p... | TS2339: Property 'SOLDE' does not exist on type 'AdvTitres' | angular|typescript | -2 | 29 | 2 | 71,956,315 | 71,956,315 | 0 | true | 2022-04-21T13:38:58.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
TS2339: Property 'SOLDE' does not exist on type 'AdvTitres'<p>I have an array and I just want to retrieve the value of the <code>SOLDE</code> variable.</p>
<... |
71,972,668 | Inner join on unknown amount of rows<p>I have the following table in my DB (postgres)</p>
<pre><code>CREATE TABLE "quarterly" (
"ticker" varchar,
"quarter_date" date,
"statement_type" int4,
"statement" jsonb,
PRIMARY KEY ("ticker", "qu... | <p>Maybe use crosstab with row_number () function</p>
<pre><code>SELECT * FROM crosstab
(
'select
ticker,
quarter_date,
row_number() over (partition by ticker,quarter_date order by statement_type) as r,
statement
from quarterly order by 1,2,3')
AS ct (
ticker varchar(15),
quarter_date date,
s... | Inner join on unknown amount of rows | sql|postgresql|join | -2 | 33 | 2 | 71,972,925 | 71,972,925 | 0 | true | 2022-04-22T17:36:17.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Inner join on unknown amount of rows<p>I have the following table in my DB (postgres)</p>
<pre><code>CREATE TABLE "quarterly" (
"ticker&qu... |
71,900,168 | How can I identify the recipient of the email?<pre class="lang-java prettyprint-override"><code>//Intent to gmail
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.setData(Uri.parse("mailto:"));
//how can ı add this part
sendIntent.putExtra(Intent.EXTRA_EMAIL,fromE... | <p>I don't know exactly how the design is. I'm also not sure where you got the recipient email from, but maybe this code will be useful for you.</p>
<pre class="lang-java prettyprint-override"><code>public void contact() {
final Intent send = new Intent(Intent.ACTION_SENDTO);
final String email = "yourema... | How can I identify the recipient of the email? | java|android|email | -2 | 33 | 1 | 71,900,228 | 71,900,228 | 0 | true | 2022-04-17T07:48:20.787Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I identify the recipient of the email?<pre class="lang-java prettyprint-override"><code>//Intent to gmail
Intent sendIntent = new Intent();
s... |
71,807,305 | Convert while loop to recursive<p>I have the following code and I want to make the while loop recursive since I need a recursive function of the nth root of a number but I don't know how to do it</p>
<pre><code>public static void main(String[] args) {
float x = 0f;
int n = 0;
float result = 0f;
float au... | <p>Actually you should break the function down first:</p>
<p>A loop has a few parts:</p>
<p>the header, and processing before the loop. May declare some new variables</p>
<p>the condition, when to stop the loop.</p>
<p>the actual loop body. It changes some of the header's variables and/or the parameters passed in.</p>
... | Convert while loop to recursive | java | -2 | 30 | 1 | 71,807,435 | 71,807,435 | 0 | true | 2022-04-09T10:42:16.767Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Convert while loop to recursive<p>I have the following code and I want to make the while loop recursive since I need a recursive function of the nth root of ... |
71,439,903 | How to update multiple objects off a OneToMany relationship at a time?<p>I'm using <code>ApiPlatform</code></p>
<p>Let's say I have an entity <code>User</code> with a <code>OneToMany</code> on another entity called <code>Experience</code>, so my user can have mulitple experiences.</p>
<p>The experiences are already loa... | <p>Unfortunately sending nested documents is a not very mature feature in Api Platform. As long as you configured the properties of $user accordingly it <em>will</em> update the <code>Experience</code> objects, but at the same time the PUT / PATCH (?) operation is actually replacing (not merging) the value of <code>$us... | How to update multiple objects off a OneToMany relationship at a time? | php|symfony|api-platform.com | -2 | 45 | 1 | 71,688,549 | 71,688,549 | 1 | true | 2022-03-11T14:19:11.847Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to update multiple objects off a OneToMany relationship at a time?<p>I'm using <code>ApiPlatform</code></p>
<p>Let's say I have an entity <code>User</cod... |
71,802,545 | How to set an argument in a function to False unless the user specifies otherwise?<p>I have a function which contains two arguments. It doesn't really matter what the function does for it self. What it's important that when calling the function I want to set the second argument to a default boolean <code>False</code> v... | <p>In python, what you want involves using a keyword argument; these always take a default value. The syntax is almost identical to what you already have:</p>
<pre class="lang-py prettyprint-override"><code>def example(stringy, printable=False):
if printable == True:
print(stringy, "Printable is set to... | How to set an argument in a function to False unless the user specifies otherwise? | python|function|if-statement|typeerror|nameerror | -2 | 282 | 2 | 71,802,592 | 71,802,592 | 1 | true | 2022-04-08T19:55:25.933Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to set an argument in a function to False unless the user specifies otherwise?<p>I have a function which contains two arguments. It doesn't really matter... |
71,837,483 | Trying to extract matches from a string matching an expression in JavaScript<p>I have spent two days on this and I can't figure it out. Sorry to sound specific. I am trying to match phone numbers in a string and store them in an array. For example:</p>
<pre><code>// An example string
let string = "30000 loaves of ... | <p>this regex has ^ on the beginning and $ in the end so I'm pretty sure it matches only on phone numbers that are separated by line breaks, or that are alone in their String.</p>
<p>This regex should work for your needs:</p>
<pre><code>let string = "30000 loaves of bread were purchased by +1777654352"
const... | Trying to extract matches from a string matching an expression in JavaScript | javascript|regex | -2 | 33 | 2 | 71,837,554 | 71,837,554 | 1 | true | 2022-04-12T05:23:27.023Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trying to extract matches from a string matching an expression in JavaScript<p>I have spent two days on this and I can't figure it out. Sorry to sound specif... |
71,857,137 | How to change indexes in array with sub arrays with subarray property value in PHP<p>I need help. I have an array of items like this one:</p>
<pre><code>[7646] => Array
(
[0] => Array
(
[id] => 156153
[tmplvarid] => 5
[value] => 2
... | <p>set index value from array value using <code>foreach loop</code></p>
<p><strong>Code</strong></p>
<pre><code><?PHP
$arr = [
"7646" => array
(
[
"id"=> 156153,
"tmplvarid" => 5,
"value" =&... | How to change indexes in array with sub arrays with subarray property value in PHP | php|arrays|indexing | -2 | 23 | 1 | 71,857,261 | 71,857,261 | 1 | true | 2022-04-13T11:58:38.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change indexes in array with sub arrays with subarray property value in PHP<p>I need help. I have an array of items like this one:</p>
<pre><code>[764... |
71,894,043 | How can I rewrite a python 2D vector in C#?<p>The following is a 2D array of vectors in Python:</p>
<pre><code> neighbor = [[1, 3, 0, 0], [2, 4, 0, 1], [2, 5, 1, 2],
[4, 6, 3, 0], [5, 7, 3, 1], [5, 8, 4, 2],
[7, 6, 6, 3], [8, 7, 6, 4], [8, 8, 7, 5]];
</code></pre>
<p>How can I rewrite this in... | <p>You can do like this:</p>
<pre><code>int[,] neighbor = new int[,] {{1, 3, 0, 0}, {2, 4, 0, 1}, {2, 5, 1, 2},
{4, 6, 3, 0}, {5, 7, 3, 1}, {5, 8, 4, 2},
{7, 6, 6, 3}, {8, 7, 6, 4}, {8, 8, 7, 5}};
</code></pre>
<p>Or like this</p>
<pre><code>int[,] neighbor = ... | How can I rewrite a python 2D vector in C#? | python|c#|c#-2.0 | -2 | 29 | 1 | 71,894,079 | 71,894,079 | 1 | true | 2022-04-16T12:53:31.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I rewrite a python 2D vector in C#?<p>The following is a 2D array of vectors in Python:</p>
<pre><code> neighbor = [[1, 3, 0, 0], [2, 4, 0, 1], [2, ... |
71,897,359 | How to add a column default?<p>I created a Postgres DB which contains 5 tables. Then I realized that the column <code>student.student_id</code> lacks a column default to generate an <em>UUID</em>:</p>
<pre><code>CREATE TABLE student (
student_id UUID PRIMARY KEY,
first_name VARCHAR(100) NOT NULL,
last_na... | <p>Use <a href="https://www.postgresql.org/docs/current/sql-altertable.html" rel="nofollow noreferrer"><code>ALTER TABLE</code></a>:</p>
<pre><code>ALTER TABLE student
ALTER COLUMN student_id SET DEFAULT uuid_generate_v4();
</code></pre>
<p>Column defaults do not conflict with <code>FOREIGN KEY</code> references.</p> | How to add a column default? | sql|postgresql|database-design | -2 | 22 | 1 | 71,897,405 | 71,897,405 | 1 | true | 2022-04-16T20:42:32.203Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add a column default?<p>I created a Postgres DB which contains 5 tables. Then I realized that the column <code>student.student_id</code> lacks a colum... |
71,995,947 | Ban IP Ranges php<p>I found this code:</p>
<pre><code><?php
$ban_ip_range = array('10.49.*.*');
$user_ip = $_SERVER['REMOTE_ADDR'];
if(!empty($ban_ip_range)) {
foreach($ban_ip_range as $range) {
$range = str_replace('*','(.*)', $range);
if(preg_match('/'.$... | <p>Use a flag, toggle it when you find a match, evaluate it after the loop.</p>
<pre><code>$ban_ip_range = array('10.49.*.*','10.65.*.*');
$user_ip = '10.65.1.2'; //$_SERVER['REMOTE_ADDR'];
$access = true;
if(!empty($ban_ip_range)) {
foreach($ban_ip_range as $range) {
$range = str_replace('*','(.*)', $rang... | Ban IP Ranges php | php|ip | -2 | 27 | 1 | 71,996,029 | 71,996,029 | 1 | true | 2022-04-25T07:34:03.200Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Ban IP Ranges php<p>I found this code:</p>
<pre><code><?php
$ban_ip_range = array('10.49.*.*');
$user_ip = $_SERVER['REMOTE_ADDR'];... |
72,021,785 | Master branch won't pull updates from local branch<p>I created a branch using these commands "git branch placeorder" in my terminal locally, and it was created successfully but when I had committed and pushed my changes, they were not overwritten in my master branch. When I went on Github I saw that I had a b... | <p>You can just <code>merge</code> your placeorder branch into your master branch.</p>
<p>First <code>git checkout master</code> to assure you are in master branch;</p>
<p>Then <code>git merge placeorder</code> to perform the merge.</p>
<p>You can find more information about merge in git documentation <a href="https://... | Master branch won't pull updates from local branch | git|github|git-branch|git-pull | -2 | 33 | 1 | 72,022,253 | 72,022,253 | 1 | true | 2022-04-26T23:53:52.480Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Master branch won't pull updates from local branch<p>I created a branch using these commands "git branch placeorder" in my terminal locally, and it... |
71,941,249 | Getting scraped href linked with our website<p>I am trying to scrap thorough this anchor tag <code><a href="/user/all?tag=114"> </a></code>
But I am getting the result as <code>mywebsite.com/user/all?tag=114</code> any way to avoid it and only get what's on anchor tag no need of linking the href l... | <p>Here are two ways to get the <code>href</code> attribute value:</p>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/href" rel="nofollow noreferrer"><code>HTMLAnchorElement.href</code></a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute" rel... | Getting scraped href linked with our website | javascript|html|web-scraping | -2 | 34 | 1 | 71,941,399 | 71,941,399 | 1 | true | 2022-04-20T14:13:27.253Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting scraped href linked with our website<p>I am trying to scrap thorough this anchor tag <code><a href="/user/all?tag=114"> </a></c... |
71,427,703 | Change Icon on click with JS<p>I have the following html tags:</p>
<pre class="lang-HTML prettyprint-override"><code><p class=font-ms>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet,
nulla et dictum interdum, nisi lorem egestas vitae scel
<span id="dots">...<... | <p>So select the element and toggle the class to change the icons. Check the state and set the text.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>function changeIcon(anchor)... | Change Icon on click with JS | javascript|html|css|web|web-frontend | -2 | 3,346 | 1 | 71,427,831 | 71,427,831 | 1 | true | 2022-03-10T16:38:33.697Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change Icon on click with JS<p>I have the following html tags:</p>
<pre class="lang-HTML prettyprint-override"><code><p class=font-ms>
Lorem ipsum do... |
72,034,401 | MySQL convert a column into dat format<p>The column type is bigint and the values are</p>
<p>20211123<br />
20220125</p>
<p>How can I change it to date:</p>
<p>2021-11-23<br />
2022-01-25</p> | <p>Use string functions to extract the characters, they'll automatically convert the number to a string.</p>
<pre><code>SELECT CAST(CONCAT_WS('-', LEFT(colname, 4), SUBSTR(colname, 5, 2), RIGHT(colname, 2))
AS DATE) AS date
FROM yourTable
</code></pre> | MySQL convert a column into dat format | mysql|date|date-format | -2 | 20 | 1 | 72,034,494 | 72,034,494 | 1 | true | 2022-04-27T19:38:57.070Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MySQL convert a column into dat format<p>The column type is bigint and the values are</p>
<p>20211123<br />
20220125</p>
<p>How can I change it to date:</p>
... |
71,858,269 | Change InfoWindow text and update radius inside it<p>I have a InfoWindow where I want to display circle radius, however I have no idea how can I update the text whenever radius changes. Whenever I console log my marker I don't see the infoWindow content. Also is there circle listener that reacts instantly whenever the ... | <p>You can change the content of the <a href="https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindow" rel="nofollow noreferrer"><code>InfoWindow</code></a></p>
<p>(you currently don't have much interesting content in the InfoWindow, it gets more complicated if you want to display m... | Change InfoWindow text and update radius inside it | javascript|google-maps|google-maps-api-3 | -2 | 22 | 1 | 71,859,101 | 71,859,101 | -1 | true | 2022-04-13T13:25:22.217Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change InfoWindow text and update radius inside it<p>I have a InfoWindow where I want to display circle radius, however I have no idea how can I update the t... |
53,448,728 | Can't select something else the starts with the same in Select2 dropdown<p>I have a select2 dropdown in my application. Zipcodes and cities are loaded into this select. When I type "2800" I get "2800 Mechelen" and "2800 Walem" because the two cities have to same zipcode.</p>
<p>When I've selected "2800 Mechelen", I ca... | <p>I've fixed this issue by removing the tags in the when you click on the select2 span element.</p>
<pre><code>$('span.select2').click(function(e){
if ($('select#zipcode_belgium').has('option').length == 0) {
//no options
} else {
//has options
$('select#zipcode_belgium').empty();
... | Can't select something else the starts with the same in Select2 dropdown | jquery|jquery-select2 | -2 | 37 | 1 | 53,517,019 | 53,517,019 | 0 | true | 2018-11-23T14:42:47.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't select something else the starts with the same in Select2 dropdown<p>I have a select2 dropdown in my application. Zipcodes and cities are loaded into t... |
53,522,226 | What networking protocol does Kubernetes use?<p>I've heard that Kubernetes uses their own networking protocol that is neither TCP or UDP, but something on top of IP.</p>
<p>What is the name of that protocol? Where can I read about how it works and what advantages it has?</p> | <p>Please read this article <a href="https://sookocheff.com/post/kubernetes/understanding-kubernetes-networking-model/" rel="nofollow noreferrer">A Guide to the Kubernetes Networking Model</a></p> | What networking protocol does Kubernetes use? | kubernetes|network-protocols | -2 | 49 | 1 | 53,523,741 | 53,523,741 | 0 | true | 2018-11-28T14:54:08.340Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What networking protocol does Kubernetes use?<p>I've heard that Kubernetes uses their own networking protocol that is neither TCP or UDP, but something on to... |
53,543,985 | SQL Wrong syntax near 'END'<p>Ill try create a some rule from account creation method. And see You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'END' at line 1</p>
<pre><code>string query1 = "IF account.char_count_max > 0 THEN IN... | <p>SqlCommand.ExecuteNonQuery is normally used for executing INSERT, UPDATE or DELETE statements directly, and not as part of an IF. Bearing this in mind I suggest you change your code to:</p>
<pre><code>if (accountCharCount > 0)
{
string query1 = "INSERT INTO playercharacter(id, connection_ID) VALUES((SELECT i... | SQL Wrong syntax near 'END' | c#|sql|syntax | -2 | 60 | 1 | 53,544,211 | 53,544,211 | 0 | true | 2018-11-29T16:54:36.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL Wrong syntax near 'END'<p>Ill try create a some rule from account creation method. And see You have an error in your SQL syntax; check the manual that co... |
53,547,054 | How to execute my superb.activity(); prototype function in 'console.log' with other strings ? is that possible?<pre><code> var date = new Date();
var establishCalc = date.getFullYear();
var Textile = function(firm, job, establish, adress ){
this.firm = firm;
this.job = job;
this.establish = establish;
... | <p>First return some value from <code>Textile.prototype.activity</code></p>
<pre><code>Textile.prototype.activity = function(){
return establishCalc - this.establish;
}
</code></pre>
<p>then change <code>this.activity</code> to <code>this.activity()</code> in <code>Textile.prototype.intro</code> method</p>
<pr... | How to execute my superb.activity(); prototype function in 'console.log' with other strings ? is that possible? | javascript | -2 | 25 | 1 | 53,547,169 | 53,547,169 | 0 | true | 2018-11-29T20:27:36.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to execute my superb.activity(); prototype function in 'console.log' with other strings ? is that possible?<pre><code> var date = new Date();
var esta... |
53,555,830 | how to convert object list in python to pandas dataframe<p>I have a class <code>event</code>.</p>
<pre><code>class event:
def __init__(self,Day,Month,Name,Location,Time):
self.Day = Day
self.Month = Month
self.Name= Name
self.Location= Location
self.Time = Time
</code></pre>... | <p>If you give the <code>DataFrame</code> constructor a list of dicts, each dict will be interpreted as a record (row).</p>
<pre><code>>>> events = [event(1, 2, 3, 4, 5), event(6, 7, 8, 9, 10)]
>>> pd.DataFrame([vars(e) for e in even... | how to convert object list in python to pandas dataframe | python|pandas|dataframe | -2 | 65 | 1 | 53,555,882 | 53,555,882 | 0 | true | 2018-11-30T10:38:01.300Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to convert object list in python to pandas dataframe<p>I have a class <code>event</code>.</p>
<pre><code>class event:
def __init__(self,Day,Month,Na... |
53,578,817 | shadow happened when no object declared with the same name in function<p>This is my code:</p>
<pre><code>#include <iostream>
#include <chrono>
#include <thread>
#include <stdlib.h>
using namespace std;
int absolute(int);
class Data{
public:
Data(int);
~Data();
int length();
in... | <p>The message is reasonably self explanatory, you have a parameter of your method named <code>one</code> and you have tried declaring a variable with the same name. Choose a different name for your variable.</p>
<p>A general programming technique is to make your variable names as descriptive as possible as this makes... | shadow happened when no object declared with the same name in function | c++|shadow | -2 | 51 | 1 | 53,578,859 | 53,578,859 | 0 | true | 2018-12-02T08:56:00.603Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
shadow happened when no object declared with the same name in function<p>This is my code:</p>
<pre><code>#include <iostream>
#include <chrono>
#... |
53,583,851 | Changing a value of an element in an object that is stored in a vector in another object through an external function in C++<p>So made a class called ‘Item’, and the object of that class will have a 100% condition at the start, the Player stores items (with name “apple” in this case) whenever I tell him to. In the degr... | <p>I'm not sure what your question is, but your error is related to the function <code>void degradeT(vector<Item> & Itemss)</code>. </p>
<p>This functions expects a reference but you are passing an r-value. You can either return a reference with <code>getPlItems()</code> or pass an l-value to <code>degradeT<... | Changing a value of an element in an object that is stored in a vector in another object through an external function in C++ | c++|function|object|vector | -2 | 37 | 1 | 53,583,945 | 53,583,945 | 0 | true | 2018-12-02T19:32:35.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Changing a value of an element in an object that is stored in a vector in another object through an external function in C++<p>So made a class called ‘Item’,... |
53,578,701 | randomforestSRC node cost measure<p>How is node cost measured in the randomForestSRC multivariate regression case? Is it by the Euclidean distance or by the Mahalanobis distance (as with the MultivariateRandomForest package)?</p> | <p>randomForestSRC does not use MD, which only applies to continuous settings. We use a composite univariate splitting rule thus allowing us to handle mixed outcome regression settings (ie. when you have mixture of categorical and ordinal Y values).</p>
<p>The composite rule is an average of the individual outcome sp... | randomforestSRC node cost measure | mahalanobis | -2 | 33 | 1 | 53,596,085 | 53,596,085 | 0 | true | 2018-12-02T08:35:04.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
randomforestSRC node cost measure<p>How is node cost measured in the randomForestSRC multivariate regression case? Is it by the Euclidean distance or by the ... |
53,637,196 | How to update the list only when certain conditions match<p>I'm doing the following to map and update a list:</p>
<pre><code>if (colors.map(_.id).contains(updated.id)) {
val newColorList = updated :: colors.filterNot(s => s.id == updated.id)
SomeMethod(newColorList)
}
else {
this
}
</code></pre>
<p>The above... | <p>something like </p>
<pre><code>val hasColor=color.map(_.id).contains(updated.id)
newColorList = (hasColor,updated.quantity) match {
case (true,0) => updated.copy(enddate = Instant.now().toEpochMilli) :: colors.filterNot(s => s.id == updated.id)
case (true,_) => updated :: colors.filterNot(s =>... | How to update the list only when certain conditions match | scala | -2 | 43 | 2 | 53,638,520 | 53,638,520 | 0 | true | 2018-12-05T16:56:56.187Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to update the list only when certain conditions match<p>I'm doing the following to map and update a list:</p>
<pre><code>if (colors.map(_.id).contains(u... |
53,641,914 | How to find out if 'map[string][][]int' has a value<p>Given this code:</p>
<pre><code>var a map[string][][]int
var aa map[string][][]int = map[string][][]int{"a": [][]int{{10, 10}, {20, 20}}}
var bb map[string][][]int = map[string][][]int{"b": [][]int{{30, 30}, {40, 40}}}
fmt.Println(aa) // >> map[a:[[10 10] [... | <p>You'll have to iterate over the contents of your map to check whether an element is contained in that map or not.</p>
<p>For example:</p>
<pre><code>target := []int{30, 30}
for _, v := range myMap {
for _, sub := range v {
if len(sub) == len(target) && sub[0] == target[0] && sub[1] == ... | How to find out if 'map[string][][]int' has a value | dictionary|go | -2 | 52 | 2 | 53,642,036 | 53,642,036 | 0 | true | 2018-12-05T22:44:58.847Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to find out if 'map[string][][]int' has a value<p>Given this code:</p>
<pre><code>var a map[string][][]int
var aa map[string][][]int = map[string][][]i... |
53,644,875 | how to connect circles with line vertically if clicked on circle it should fill with color<p>I want to create structure as shown in the image below with unordered list item if user click on the list item the circle should fill with color. i have created on div inside that i have took list items and inside list span ele... | <p>Try this..</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$('.dot').on('click', function(){
$(this).toggleClass("filled");
$(this).siblings().removeClass("filled");
});<... | how to connect circles with line vertically if clicked on circle it should fill with color | javascript|jquery|html|css | -2 | 60 | 4 | 53,645,963 | 53,645,963 | 0 | true | 2018-12-06T04:54:05.463Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to connect circles with line vertically if clicked on circle it should fill with color<p>I want to create structure as shown in the image below with unor... |
53,655,261 | where to save the downloaded data?<p>I download big json files 8x(2mb) and used Gson to convert them into java objects. Now I need to make these objects available to all the activities. is it safe to save them as static variables? </p> | <p>You must be very lucky to avoid the out of the memory exception.</p>
<p>I would probably store the object to Room database(or any sort of SQL) while parsing and read when required. </p>
<p>Or just store the JSON as a binary file and read again necessary bits when its required since I don't know the usage of the JS... | where to save the downloaded data? | java|android|json|api|static | -2 | 42 | 1 | 53,655,471 | 53,655,471 | 0 | true | 2018-12-06T16:01:03.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
where to save the downloaded data?<p>I download big json files 8x(2mb) and used Gson to convert them into java objects. Now I need to make these objects avai... |
53,657,693 | Using Javascript to read from an array<p>I'm pulling some JSON data from an API source into Google Sheets and getting ready to push it into an array. I've used <code>JSON.parse</code> to put the data into the following format:</p>
<pre><code>[{EmployeeRef={name=value, value=value}, NameOf=value, Hours=value, TxnDate=v... | <p>You're missing the <code>CustomerRef</code> object inside your array of objects, and that's why when trying to add to the array <code>elem["CustomerRef"]['name']</code> you're getting that error.</p>
<p>(It's not related to <code>EmployeeRef</code> which is there)</p>
<p>You should probably just add some kind of <... | Using Javascript to read from an array | javascript|arrays|json | -2 | 56 | 1 | 53,657,748 | 53,657,748 | 0 | true | 2018-12-06T18:35:24.610Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using Javascript to read from an array<p>I'm pulling some JSON data from an API source into Google Sheets and getting ready to push it into an array. I've us... |
53,660,780 | Creating a node att random CGPoint on screen<p>I want to create a shape at a random position on a screen in a universal app.
If I make a <code>GKRandomDistribution</code> the <code>shape.position.x</code> or <code>shape.position.y</code> gives me an error saying that it cannot convert an <code>Int</code> into a <code>C... | <p>I'm assuming you'll be calling this within one of your SKScene subclasses. If I understand your question correctly, this should do the trick </p>
<pre><code>func randomPosition() -> CGPoint {
let x = CGFloat.random(in: 0...frame.maxX)
let y = CGFloat.random(in: 0...frame.maxY)
return CGPoint(x: x, ... | Creating a node att random CGPoint on screen | swift|sprite-kit | -2 | 67 | 1 | 53,675,812 | 53,675,812 | 0 | true | 2018-12-06T22:40:54.173Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Creating a node att random CGPoint on screen<p>I want to create a shape at a random position on a screen in a universal app.
If I make a <code>GKRandomDistri... |
53,675,968 | Merge Two Data Frames based on Matching Row Criteria and Shared Columns<p>So here are the data sets I'm working with:</p>
<p>Data1:</p>
<pre><code>ID Grade Year
1 A 2000
2 B 2001
3 C 2002
</code></pre>
<p>Data2: </p>
<pre><code>ID NewGrade Year
1 B 2000
2 C 2001
... | <p>Your <code>merge</code> should look like this</p>
<pre><code>newData = merge(Data1, Data2, by = c("ID", "Year"), all.x = TRUE)
</code></pre>
<p>There are no <code>col</code> or <code>x.all</code> arguments to <code>merge</code>.</p> | Merge Two Data Frames based on Matching Row Criteria and Shared Columns | r|merge | -2 | 44 | 1 | 53,676,086 | 53,676,086 | 0 | true | 2018-12-07T19:48:22.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Merge Two Data Frames based on Matching Row Criteria and Shared Columns<p>So here are the data sets I'm working with:</p>
<p>Data1:</p>
<pre><code>ID Gra... |
53,677,176 | How do i send the results of a fomula to the audio stream in android?<p>I am working on something that requires some raw data to be sent to the speaker in real time on an device that runs on android. </p>
<p>Example
I have a formula that generates the wave form. how do I send that data to the speaker for listening in... | <p>The simplest way to write raw PCM data is via the <code>AudioTrack</code> class: <a href="https://developer.android.com/reference/android/media/AudioTrack" rel="nofollow noreferrer">https://developer.android.com/reference/android/media/AudioTrack</a></p>
<p>You can operate it in a streaming mode, if needed.</p> | How do i send the results of a fomula to the audio stream in android? | android|signal-processing | -2 | 32 | 1 | 53,677,699 | 53,677,699 | 0 | true | 2018-12-07T21:44:57.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do i send the results of a fomula to the audio stream in android?<p>I am working on something that requires some raw data to be sent to the speaker in re... |
53,680,529 | Where woocommerce file send emails<p>When I send an email, I need to send a part of this data using the POST request to send an JSON array. Where is the executable file?</p> | <p>WordPress/WooCommerce uses hooks if you want to modify any behaviour, in your case lets say you want to capture the data that is being sent in the email. you can use the following hooks for that.</p>
<pre><code>add_action( 'woocommerce_low_stock_notification', array( $object, 'low_stock' ) );
add_action( 'woocommer... | Where woocommerce file send emails | wordpress|woocommerce | -2 | 49 | 1 | 53,680,799 | 53,680,799 | 0 | true | 2018-12-08T07:33:30.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Where woocommerce file send emails<p>When I send an email, I need to send a part of this data using the POST request to send an JSON array. Where is the exec... |
53,680,970 | Android studio NPE when passing bundle<p>I want to receive string from another activity. But it gave me an NPE.</p>
<p>MainActivity.class</p>
<pre><code>private void searchProcess(final String searchPhone) {
String tag_string_req = "req_search";
Intent i2 = new Intent(MainActivity.this, DbActivity.class);
... | <p>If <code>searchPhone</code> is null when you put into Bundle ,you would get null by <code>bundle1.get("searchPhone")</code>. So you should do as following code :</p>
<pre><code>String searchPhoneReceived = bundle1.get("searchPhone");
if (searchPhoneReceived != null) {
// do something
}
</code></pre> | Android studio NPE when passing bundle | java|android|nullpointerexception | -2 | 32 | 3 | 53,681,549 | 53,681,549 | 0 | true | 2018-12-08T08:49:36.323Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android studio NPE when passing bundle<p>I want to receive string from another activity. But it gave me an NPE.</p>
<p>MainActivity.class</p>
<pre><code>pr... |
53,703,527 | How to use SQL Conditional statements in SQL<p>I'm working on a BIRT Reporting. What I need to do is, If the Column1 value is Approved, Copy Column 2 value to Column 3 else <em>null</em></p>
<hr>
<pre><code>SELECT pr.prnum,prline.prlinenum,prline.itemnum,prline.description,prline.orderqty,prline.ponum,pr.status as "P... | <p>You may try doing an <code>UPDATE</code> with a <code>CASE</code> expression, something like this:</p>
<pre><code>UPDATE yourTable
SET Column3 = CASE WHEN Column1 = 'Approved' THEN Column2 ELSE NULL END;
</code></pre> | How to use SQL Conditional statements in SQL | sql|db2|birt|maximo | -2 | 73 | 1 | 53,703,580 | 53,703,580 | 0 | true | 2018-12-10T10:16:15.910Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use SQL Conditional statements in SQL<p>I'm working on a BIRT Reporting. What I need to do is, If the Column1 value is Approved, Copy Column 2 value t... |
53,746,067 | How to add date from the inputbox to populate the whole column in chosen Access table by the use of VBA<p>I would like to know how to add date (dd.mm.yyyy) with the use of inputbox to populate the whole column in chosen Access table by the use of VBA.
As here:</p>
<p>Inserted 12.07.2018 into the Inputbox</p>
<pre><co... | <p>Try something like this:</p>
<pre><code>Dim sDate as String
sDate = InputBox("What is the date?")
Rem Here add code to make sure sDate is in expected format "dd.mm.yyyy"
DoCmd.RunSql "UPDATE [MyTableName] SET CH_DATE=#" & Mid(sDate,4,2) & "/" & Left(sDate,2) & "/" Right(sDate,4) & "#"
</code></p... | How to add date from the inputbox to populate the whole column in chosen Access table by the use of VBA | ms-access|vba | -2 | 56 | 2 | 53,749,598 | 53,749,598 | 0 | true | 2018-12-12T15:15:40.500Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add date from the inputbox to populate the whole column in chosen Access table by the use of VBA<p>I would like to know how to add date (dd.mm.yyyy) w... |
53,791,667 | Jquery for validate 2 fields when a value changes<p>I have two fields - tare weight and cargo weight. If I change any values, the sum should be within 5000. If I entered a value more than that, this two fields should highlight and error should be shown. </p> | <p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$("#first").change(function(){
var one = $('#first').val();
var two = $('#second').val();
if (one + two > 5000)
{... | Jquery for validate 2 fields when a value changes | jquery | -2 | 25 | 1 | 53,791,739 | 53,791,739 | 0 | true | 2018-12-15T10:51:45.340Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Jquery for validate 2 fields when a value changes<p>I have two fields - tare weight and cargo weight. If I change any values, the sum should be within 5000. ... |
53,797,638 | PageControl dosn't animate when swiping to next picture<p>I have an array of pictures that are past to an imageView on a new ViewController. I'm able to have my pageControl show the dots, but they do not animate when I swipe to the next picture. Any ideas on what I am missing as I cannot figure it out? Thanks!</p>
<pr... | <p>You need to update your <code>pageControl</code>'s <code>currentPage</code> with your new index as well, try to update your <code>IBAction</code> methods as following.</p>
<pre><code> @IBAction func pictureswipe(_ sender: Any) {
let pictureString = self.passedArray[index]
self.myImageView.image = picture... | PageControl dosn't animate when swiping to next picture | swift|uipagecontrol|pagecontrol | -2 | 45 | 1 | 53,798,514 | 53,798,514 | 0 | true | 2018-12-15T22:01:43.897Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PageControl dosn't animate when swiping to next picture<p>I have an array of pictures that are past to an imageView on a new ViewController. I'm able to have... |
53,549,974 | Change font size with a button<p>I was trying to change the font size of the posts on my blog with a button...
Something like this:</p>
<pre><code><p><a href="#" onclick="document.body.style.fontSize='x-large';">BIG</a></p>
</code></pre>
<p>The problem is, every other text but the post text ch... | <p>In the end i managed to found a solution thanks to a friend who knows some programming.
I used the following javascript code:</p>
<pre><code><script type="text/javascript">function
SuperGrande() {var ss = document.querySelectorAll(".entry-content span,
.entry-content div");
for (var n=0;n<ss.length;n++) s... | Change font size with a button | javascript|button|fonts|size | -2 | 257 | 2 | 53,825,292 | 53,825,292 | 0 | true | 2018-11-30T01:30:16.390Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change font size with a button<p>I was trying to change the font size of the posts on my blog with a button...
Something like this:</p>
<pre><code><p>... |
53,519,856 | view in android studio<p>In android studio while creating a button , I am using a function name in onclick attribute to invoke a code execution </p>
<p>example : onClick : myButton</p>
<p>public void myButton (View a)</p>
<p>1) what is meant by view in the above command ?
2) why they are specifing view in the functi... | <blockquote>
<p>1) what is meant by view in the above command ?</p>
</blockquote>
<p>The view that is calling that function.</p>
<blockquote>
<p>2) why they are specifing view in the function that is related to Button?</p>
</blockquote>
<p>Because you could call that function from different views (like layouts o... | view in android studio | android|android-studio|android-layout | -2 | 60 | 2 | 53,519,925 | 53,519,925 | 1 | true | 2018-11-28T12:47:45.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
view in android studio<p>In android studio while creating a button , I am using a function name in onclick attribute to invoke a code execution </p>
<p>exam... |
53,522,925 | server crash or just call `shutdown(fd, SHUT_WR)`?<p>When server crash or just call <code>shutdown(fd, SHUT_WR)</code>, client all <code>read()</code> return <code>0</code>.</p>
<p>How to distinguish them?</p>
<p>I will appreciate it if you help me.</p> | <p>The only reliable way for a peer to distinguish between the other peer crashing vs intentionally closing the connection is if the communication protocol defines a goodbye message for that purpose.</p>
<p>If possible, each peer should send a protocol-defined goodbye message when it is closing its side of the connect... | server crash or just call `shutdown(fd, SHUT_WR)`? | linux|unix-socket | -2 | 41 | 1 | 53,532,167 | 53,532,167 | 1 | true | 2018-11-28T15:30:48.727Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
server crash or just call `shutdown(fd, SHUT_WR)`?<p>When server crash or just call <code>shutdown(fd, SHUT_WR)</code>, client all <code>read()</code> return... |
53,579,182 | Using Streams filter a list of maximum values based on Conditions<p>I have a list like below with custom Object, i need to filter out the maximum stake values , based on customer id and betOfferId, but customer id should not repeat(duplicate) , basically for a particular betofferid i want to get a list of highest stake... | <p>This is how I would go about it:</p>
<pre><code>List<T> result = source.stream()
.filter(x -> x.getOfferId() == offerId)
.collect(toMap(T::getCustomerId,
Function.identity(),
BinaryOperator.maxBy(Comparator.comparingInt(T::getStake))))
... | Using Streams filter a list of maximum values based on Conditions | java-8 | -2 | 53 | 1 | 53,579,400 | 53,579,400 | 1 | true | 2018-12-02T10:00:43.507Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using Streams filter a list of maximum values based on Conditions<p>I have a list like below with custom Object, i need to filter out the maximum stake value... |
53,580,311 | Why is a new CMD window opened on using command START in cmd to open an MP3 file?<p>When I type in a Windows CMD window on which a MINGW64 remote desktop connection session was started before</p>
<pre><code>start 'Vicetone - Nevada (ft. Cozi Zuehlsdorff).mp3'
</code></pre>
<p>to open an MP3 file, a new CMD window is ... | <p>This happens because the syntax of the <code>start</code> command in batch file is as follows:</p>
<pre class="lang-bat prettyprint-override"><code>start /options "title_of_new_window" "file_to_start" -Arguments
</code></pre>
<ul>
<li><p>If <code>"title_of_new_window"</code> (title to be displayed in window titl... | Why is a new CMD window opened on using command START in cmd to open an MP3 file? | cmd | -2 | 49 | 1 | 53,580,489 | 53,580,489 | 1 | true | 2018-12-02T12:40:40.913Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is a new CMD window opened on using command START in cmd to open an MP3 file?<p>When I type in a Windows CMD window on which a MINGW64 remote desktop con... |
53,585,451 | How to create struct which is composed of another<p>I have a struct like so:</p>
<pre><code>type Docs struct {
Methods []string
Route string
}
</code></pre>
<p>and then I import that from another file like:</p>
<pre><code>import tc "huru/type-creator"
</code></pre>
<p>and use it like so:</p>
<pre><code>typ... | <p>You can do</p>
<pre><code>d := DocsLocal{tc.Docs{[]string{"foo"}, "biscuit"}}
</code></pre>
<p>or </p>
<pre><code>d := DocsLocal{Docs: tc.Docs{[]string{"foo"}, "biscuit"}}
</code></pre>
<p><a href="https://play.golang.org/p/b7gjx64waJP" rel="nofollow noreferrer">Go Playground</a></p> | How to create struct which is composed of another | go | -2 | 55 | 1 | 53,585,781 | 53,585,781 | 1 | true | 2018-12-02T23:01:16.177Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to create struct which is composed of another<p>I have a struct like so:</p>
<pre><code>type Docs struct {
Methods []string
Route string
}
</cod... |
53,613,259 | Html table with fixed size and text wrapping<p>I'm trying to do a html table that won't go outside its DIV and if the text of a column is too big, it would wrap to the next line.</p>
<p>I already added <code>word-wrap:break-word;</code> but somehow is not working. As you can see in the image below, the column text is ... | <p>remove </p>
<pre><code>table.gridtable th, td {
white-space:nowrap;
}
</code></pre>
<p>section from code </p>
<p><a href="https://jsfiddle.net/keq63ygw/1/" rel="nofollow noreferrer">https://jsfiddle.net/keq63ygw/1/</a> </p> | Html table with fixed size and text wrapping | html|css | -2 | 20 | 2 | 53,613,403 | 53,613,403 | 1 | true | 2018-12-04T12:41:34.670Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Html table with fixed size and text wrapping<p>I'm trying to do a html table that won't go outside its DIV and if the text of a column is too big, it would w... |
53,560,167 | authenticationmanager.getexternallogininfo() returns null always with linkedin<p>I have used <code>Oauth2</code> in my MVC project. We can connect successfully with our app with credentials but after authenticating user return always null in external login call back method.</p>
<p>Checked many solutions but no luck bu... | <p>Finally, I got the solutions after long time.</p>
<p>Add this line in <code>Startup.cs</code> file of <code>ConfigureAuth(IAppBuilder app)</code> function. Same as per below code.</p>
<pre><code>public void ConfigureAuth(IAppBuilder app)
{
//Add this line at first inside the function.
System.Net.Servi... | authenticationmanager.getexternallogininfo() returns null always with linkedin | c#|asp.net-mvc|oauth-2.0|linkedin | -2 | 329 | 1 | 53,618,206 | 53,618,206 | 1 | true | 2018-11-30T15:14:21.587Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
authenticationmanager.getexternallogininfo() returns null always with linkedin<p>I have used <code>Oauth2</code> in my MVC project. We can connect successful... |
53,621,669 | Finish recursive promise function execution in Javascript<p>I have 3 functions, func1() returns some api data to func2() and func2() is called from func3().Func2() has a Promise return type, in Func2() I resolve only of certain conditions are met else I want to call same Func2() until condition met but when I execute f... | <p>In the <code>if</code> condition where you create the <code>new Promise(…).then(…)</code>, you never resolve the outer promise.</p>
<p>You could solve that by adding <code>resolve</code> in the right places, but you shouldn't create promises within promises anyway. You should promisify at the lowest possible level.... | Finish recursive promise function execution in Javascript | javascript|node.js|promise|es6-promise | -2 | 57 | 3 | 53,622,396 | 53,622,396 | 1 | true | 2018-12-04T21:27:37.210Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Finish recursive promise function execution in Javascript<p>I have 3 functions, func1() returns some api data to func2() and func2() is called from func3().F... |
53,640,075 | How do classes differ from methods? Java not recognizing external classes<p>Apologies for an elementary question, as this is my first ever programming class.</p>
<p>I've been going over
<a href="https://stackoverflow.com/questions/6151218/method-calls-inside-a-java-class">this</a> and <a href="https://stackoverflow.c... | <p>Don't need to ask for apologies for a question. Here is the right place to ask questions about Java in this case.</p>
<p>One thing is clear from the code you've posted. You lack of Java fundamental knowledge so you should study the language in order to understand them. </p>
<p><strong>What went wrong</strong></p>
... | How do classes differ from methods? Java not recognizing external classes | java|class|methods | -2 | 56 | 2 | 53,641,190 | 53,641,190 | 1 | true | 2018-12-05T20:16:57.210Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do classes differ from methods? Java not recognizing external classes<p>Apologies for an elementary question, as this is my first ever programming class.... |
53,546,854 | Is there an API to make use of the Windows Speech Recognition's MouseGrid feature?<p>I'm hoping to use Microsoft's built in Mouse Grid feature. The feature is typically used via the Windows Speech Recognition feature to systematically narrow down where to click the screen via your voice. </p>
<p>Does anyone know if t... | <p>No. It's entirely part of the Windows Speech Recognition app.</p> | Is there an API to make use of the Windows Speech Recognition's MouseGrid feature? | windows|api|speech-recognition|pinvoke | -2 | 51 | 1 | 53,642,332 | 53,642,332 | 1 | true | 2018-11-29T20:13:57.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there an API to make use of the Windows Speech Recognition's MouseGrid feature?<p>I'm hoping to use Microsoft's built in Mouse Grid feature. The feature ... |
53,693,983 | Where can I find more detailed help about apoc relationShipFilter in Neo4j<p>I used some apoc funtions (thx to <a href="https://stackoverflow.com/users/92359/inversefalcon">InversFalcon</a>). And I found some helpful information on this <a href="https://neo4j-contrib.github.io/neo4j-apoc-procedures/" rel="nofollow nore... | <p>Relationship syntax and examples are <a href="https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_relationship_filter" rel="nofollow noreferrer">here</a>, but there currently isn't a means to exclude relationships. </p>
<p>Instead you would need to get all relationship types in the graph, filter out those you d... | Where can I find more detailed help about apoc relationShipFilter in Neo4j | c#|neo4j|cypher|neo4j-apoc | -2 | 59 | 1 | 53,696,377 | 53,696,377 | 1 | true | 2018-12-09T15:47:05.587Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Where can I find more detailed help about apoc relationShipFilter in Neo4j<p>I used some apoc funtions (thx to <a href="https://stackoverflow.com/users/92359... |
53,690,818 | How do I use the REST API to upload files in codenameone?<p>I will like to upload some files to my server. When a file is uploaded, i receive a son response. Is it possible to upload files with the REST API in codenameone?</p> | <p>The <code>Rest</code> API doesn't support multipart file upload. You would need to use the <code>MultipartRequest</code> class e.g.:</p>
<pre><code>MultipartRequest request = new MultipartRequest();
request.setUrl(url);
request.addData("myFileName", fullPathToFile, "text/plain")
NetworkManager.getInstance().addToQu... | How do I use the REST API to upload files in codenameone? | codenameone | -2 | 60 | 1 | 53,699,759 | 53,699,759 | 1 | true | 2018-12-09T09:08:52.200Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I use the REST API to upload files in codenameone?<p>I will like to upload some files to my server. When a file is uploaded, i receive a son response.... |
53,705,368 | What is the difference between those two join usage?<p>Could anyone simply explain why the first method doesnt work as expected but inside console.log works perfect?</p>
<p>Simply I expected that It needs to return string but returns array in the first console</p>
<p><div class="snippet" data-lang="js" data-hide="fal... | <p>You need to assign <code>elements.join('');</code> to a variable:</p>
<pre><code>var elements = ['Fire', 'Wind', 'Rain'];
elements = elements.join('');
console.log(elements);
</code></pre> | What is the difference between those two join usage? | javascript|arrays|join|arraylist | -2 | 64 | 1 | 53,705,460 | 53,705,460 | 1 | true | 2018-12-10T12:09:13.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the difference between those two join usage?<p>Could anyone simply explain why the first method doesnt work as expected but inside console.log works ... |
53,706,528 | Form table inputs doesn't get aligned in HTML<p>I have HTML form in a table like:</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>.settings-and-performance-edit-form {
di... | <p>Just add each field in each <code>td</code> like below</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.settings-and-performance-edit-form {
display: table;
}</code></... | Form table inputs doesn't get aligned in HTML | html|css | -2 | 39 | 2 | 53,706,622 | 53,706,622 | 1 | true | 2018-12-10T13:18:26.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Form table inputs doesn't get aligned in HTML<p>I have HTML form in a table like:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console=... |
53,709,480 | Create a function that test marshalling/unmarshalling from an interface<p>I want to create a simple function to test that marshalling/unmarshalling a record works as intended. I'm just using JSON for this example:</p>
<pre><code>package test
import (
"encoding/json"
"fmt"
"testing"
"reflect"
"git... | <p>Use <a href="https://godoc.org/reflect#New" rel="nofollow noreferrer">reflect.New</a> to create an addressable value. </p>
<pre><code>data, err := json.Marshal(record)
require.NoError(t, err)
dst := reflect.New(reflect.TypeOf(record))
err = json.Unmarshal(data, dst.Interface()) // dst.Interface() is pointer to th... | Create a function that test marshalling/unmarshalling from an interface | go|reflection | -2 | 2,312 | 1 | 53,710,801 | 53,710,801 | 1 | true | 2018-12-10T16:12:51.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create a function that test marshalling/unmarshalling from an interface<p>I want to create a simple function to test that marshalling/unmarshalling a record ... |
53,728,556 | Extracting texts from pdf files for building a model with Gensim<p>I would like to train a model with Gensim using news texts from electronic newspapers (in pdf format). What is the best way to extract texts from pdf files and to process the texts ready for training? Any sample codes?</p> | <p>You can extract text on a per-page basis with <a href="https://pypi.org/project/PyPDF2/" rel="nofollow noreferrer">PyPDF2</a>. The simplest code would look something like this:</p>
<pre><code>import PyPDF2
reader = PyPDF2.PdfFileReader("your_file.pdf")
for page in reader.pages:
text = page.extractText()
#... | Extracting texts from pdf files for building a model with Gensim | python-3.x|nlp|gensim | -2 | 321 | 1 | 53,738,781 | 53,738,781 | 1 | true | 2018-12-11T16:36:43.127Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extracting texts from pdf files for building a model with Gensim<p>I would like to train a model with Gensim using news texts from electronic newspapers (in ... |
53,747,678 | Index out of bounds Java merge sort?<p>I am working on a merge sort algorithm. Below is what i have written so far. The problem is when I try and run it to see if it is working I get the index out of bounds error on the if statement I marked with a <strong><em>comment</em></strong>. </p>
<p><strong>Why am I getting i... | <p>Indexes run from 0, this means when list1.length = 5 then the index can be 0 through 4 <br>
change </p>
<pre><code>for (int j =0; j<= list1.length; j++)
</code></pre>
<p>to</p>
<pre><code>for (int j =0; j < list1.length; j++)
</code></pre> | Index out of bounds Java merge sort? | java|arrays|sorting|indexoutofboundsexception|mergesort | -2 | 303 | 2 | 53,747,802 | 53,747,802 | 1 | true | 2018-12-12T16:47:28.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Index out of bounds Java merge sort?<p>I am working on a merge sort algorithm. Below is what i have written so far. The problem is when I try and run it to ... |
53,794,442 | Confusion matrix for numerical output? - Python<p>I want to evaluate the performance of my model, but the problem I have is I have always used a confusion matrix because I have always done models with categorical output (classification). Now, I have this model with numerical output and I find neither a way nor explanat... | <p>The most popular techniques used to evaluate regression models that come to my mind are: </p>
<ul>
<li><p><a href="https://www.dataquest.io/blog/understanding-regression-error-metrics/" rel="nofollow noreferrer">Mean Square Error</a> (and all it's possible variations e.g. Mean Absolute Error, Mean Absolute Percenta... | Confusion matrix for numerical output? - Python | python|validation|machine-learning|confusion-matrix | -2 | 57 | 1 | 53,794,695 | 53,794,695 | 1 | true | 2018-12-15T15:07:12.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Confusion matrix for numerical output? - Python<p>I want to evaluate the performance of my model, but the problem I have is I have always used a confusion ma... |
53,603,671 | R: visualising calendar predictions with ggplot2?<p>You have numeric predictions that you want to show on a calendar. </p>
<p><em>How can you visualise predictions about calendar data in R with ggplot2?</em></p> | <p><em>I gather below some ideas, I haven't found any single general-purpose package for this yet.</em></p>
<hr>
<p><strong>General ideas to visualise calendar data in R</strong></p>
<ol>
<li>Heatmap like green-red to illustrate large-small predictions</li>
<li>Star symbol on dates to show special days</li>
<li>Line... | R: visualising calendar predictions with ggplot2? | r|ggplot2|charts|calendar | -2 | 71 | 1 | 53,603,672 | 53,603,672 | 2 | true | 2018-12-03T23:47:06.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
R: visualising calendar predictions with ggplot2?<p>You have numeric predictions that you want to show on a calendar. </p>
<p><em>How can you visualise pred... |
53,667,424 | Swift trouble with operator priority<p><strong>UPDATED</strong></p>
<p>Expression: <code>a ?? 0 + b</code>, where <code>a</code> is <code>CGFloat?</code>, <code>b</code> is <code>CGFloat</code> and <code>a != nil</code>.</p>
<p>Concrete example:</p>
<pre><code>//a == 99
//b == 253
let t = ((a ?? 0) + b)
let t2 = (a ... | <p>Both results are “correct.” They can be different because <code>+</code> has a higher precedence than <code>??</code>. In particular, if <code>a != nil</code>:</p>
<pre><code> t == (a ?? 0) + b == a! + b
t2 == (a ?? 0 + b) == a ?? (0 + b) == a!
</code></pre>
<p>The complete list of operator precedences can be fo... | Swift trouble with operator priority | swift|operators|operator-precedence | -2 | 34 | 1 | 53,668,155 | 53,668,155 | 2 | true | 2018-12-07T10:14:58.853Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Swift trouble with operator priority<p><strong>UPDATED</strong></p>
<p>Expression: <code>a ?? 0 + b</code>, where <code>a</code> is <code>CGFloat?</code>, <... |
53,687,982 | Universal Cross-platform GUI for Python Scripts?<p>Is there a way to create a GUI for Python scripts that works on Mac, Windows and Linux?</p>
<p>There surely must be a universal way.</p>
<p>Anyone having an Idea? What about GTK? Any good alternative?</p> | <p>The default way to make GUI applications with python is using the <code>tkinter</code> module <a href="https://docs.python.org/3/library/tkinter.html#module-tkinter" rel="nofollow noreferrer">https://docs.python.org/3/library/tkinter.html#module-tkinter</a></p>
<p>If however <code>tkinter</code> does not meet your ... | Universal Cross-platform GUI for Python Scripts? | python|python-3.x|python-2.7|gtk | -2 | 273 | 2 | 53,688,011 | 53,688,011 | 2 | true | 2018-12-08T23:20:36.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Universal Cross-platform GUI for Python Scripts?<p>Is there a way to create a GUI for Python scripts that works on Mac, Windows and Linux?</p>
<p>There sure... |
53,690,679 | printing out 2d array from files<p>How do i print out this text file in form of a 2D array to the console window. </p>
<p><a href="https://i.stack.imgur.com/82MU3.png" rel="nofollow noreferrer">maze</a></p>
<p>I wrote this code but it seems to disregard the spaces as characters.</p>
<pre><code>ifstream mazefile("maz... | <p>By default, <code>std::istream::operator<<()</code> skips all whitespaces (spaces, tabs, newlines). Since you need the whitespaces, you should consider using <code>istream::get()</code> or <code>istream::getline()</code>.</p>
<p>Pick one of below to start with, note you may need to manually handle the newline... | printing out 2d array from files | c++ | -2 | 40 | 1 | 53,690,697 | 53,690,697 | 2 | true | 2018-12-09T08:42:22.750Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
printing out 2d array from files<p>How do i print out this text file in form of a 2D array to the console window. </p>
<p><a href="https://i.stack.imgur.com... |
53,761,195 | C, minus operator in multiply<p>The question concerns implicit multiplication by the <code>-</code> operator.
For example</p>
<pre><code>float a = 10;
float b;
</code></pre>
<p><code>b = -a;</code> Is this valid? does <code>b = -10</code>?</p> | <p>This isn't implicit multiplication, but use of the unary <code>-</code> operator. </p>
<p>The code is valid, since the operator works on all arithmetic types, including floating point.</p> | C, minus operator in multiply | c|operators | -2 | 58 | 1 | 53,761,336 | 53,761,336 | 2 | true | 2018-12-13T11:48:30.463Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
C, minus operator in multiply<p>The question concerns implicit multiplication by the <code>-</code> operator.
For example</p>
<pre><code>float a = 10;
float... |
53,753,752 | Is there a way to Cancel Apple Subscriptions from a nodejs server?<p>i am trying to cancel some subscriptions created in ios app but from the server side.</p>
<p>Does anyone know how to make it from a node js server? i have the next data: paymentRecipt details and shared secret.</p> | <p>As of iOS 12, there is currently no way to cancel, modify, edit subscriptions on the server side for Apple IAP's. Apple places a lot of limits on In App Purchases. You also can't offer refunds, extended trial periods, etc. on the server side. Apple's system is very much what you see is what you get. There is very li... | Is there a way to Cancel Apple Subscriptions from a nodejs server? | node.js|in-app-purchase | -2 | 323 | 1 | 53,768,655 | 53,768,655 | 2 | true | 2018-12-13T01:25:21.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way to Cancel Apple Subscriptions from a nodejs server?<p>i am trying to cancel some subscriptions created in ios app but from the server side.</p... |
53,549,038 | Weird tab error, can't put my finger on where I went wrong<p>I'm trying to make use of a while loop to iterate through a list of three variables that's are also assigned to three queues implemented through linked lists. I called this list full. My while loop is supposed to keep running while my list of full queues is s... | <p>You have at least one tab character in your code at the start of your <code>else:</code> line. (There are two tabs in this editor--there may be only one in your code.) The other lines use spaces.</p>
<p>In Python it is a <em>very good idea</em> to use only spaces in your code and <em>never use tabs</em>. It is poss... | Weird tab error, can't put my finger on where I went wrong | python|python-3.x | -2 | 66 | 2 | 53,549,071 | 53,549,071 | 3 | true | 2018-11-29T23:20:49.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Weird tab error, can't put my finger on where I went wrong<p>I'm trying to make use of a while loop to iterate through a list of three variables that's are a... |
53,569,680 | vector range constructor with updated data from another vector<p>Is it possible to create <code>vector< pair <int,int> ></code> using range constructor from another <code>vector<int></code>?
eg.</p>
<pre><code>vector < pair <int, int>>
</code></pre>
<p>in that first is <code>vector<in... | <p>You want to transform your original vector, so for instance, with mutable lambdas:</p>
<pre><code>int main () {
std::vector<int> foo{1, 2, 3, 4};
std::vector<std::pair<int, int>> bar;
int i = 0;
std::transform(foo.begin(), foo.end(), std::back_inserter(bar), [i](int x) mutable {r... | vector range constructor with updated data from another vector | c++|vector|constructor | -2 | 40 | 1 | 53,569,753 | 53,569,753 | 3 | true | 2018-12-01T10:02:35.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
vector range constructor with updated data from another vector<p>Is it possible to create <code>vector< pair <int,int> ></code> using range const... |
53,571,637 | Command Line Arguments vs Input - What's the Difference?<p>What is the difference between command line arguments and input?</p>
<p>Given some program running:</p>
<pre><code>$ java JavaProgram 4 5
Hi! give me some input!
6
now give me some more input!
7
</code></pre>
<p>In this example 4 5 are command line arguments... | <p>Command line arguments and input are two different things. </p>
<p>Command line arguments are given to the application that is being run, before it is run. Let's look at an example:</p>
<pre><code>$ java JavaProgram 30 91
</code></pre>
<p>First we give the app <code>JavaProgram</code> the command line arguments <... | Command Line Arguments vs Input - What's the Difference? | java|language-agnostic | -2 | 2,067 | 1 | 53,571,638 | 53,571,638 | 3 | true | 2018-12-01T14:12:33.017Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Command Line Arguments vs Input - What's the Difference?<p>What is the difference between command line arguments and input?</p>
<p>Given some program runnin... |
53,616,031 | Rails localization with SEO requirements<p>Is it possible always to have <code>http://sitename/en/some_url</code> for english version and <code>http://sitename/some_url</code> for ukrainian</p>
<p>Default rails behavior: store <code>locale</code> in session, that is why I can get english or ukrainian version on same u... | <p>All the info you need can be found here:</p>
<p><a href="https://guides.rubyonrails.org/i18n.html" rel="nofollow noreferrer">https://guides.rubyonrails.org/i18n.html</a></p>
<p>For a nice, easy to follow tutorial on setting up locales, see:</p>
<p><a href="https://phraseapp.com/blog/posts/rails-i18n-guide/" rel="... | Rails localization with SEO requirements | ruby-on-rails | -2 | 64 | 1 | 53,616,602 | 53,616,602 | 3 | true | 2018-12-04T15:16:36.763Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Rails localization with SEO requirements<p>Is it possible always to have <code>http://sitename/en/some_url</code> for english version and <code>http://sitena... |
53,786,360 | What means closure after init?<p>Xcode playground game boilerplate generates the code, with the class:</p>
<pre><code>class GameScene: SKScene {
// no init override here
}
</code></pre>
<p>then instantiating the class:</p>
<pre><code>if let scene = GameScene(fileNamed: "GameScene") {
// Set the scale mode to sc... | <p>That is not a closure, but optional binding. The <code>GameScene(fileNamed:)</code> is a failable initializer, so might return <code>nil</code>. The <code>if let</code> optional binds the return value, meaning that the <code>if</code> branch is hit in case the return value was not <code>nil</code> and inside the <co... | What means closure after init? | swift|syntax | -2 | 59 | 1 | 53,786,390 | 53,786,390 | 4 | true | 2018-12-14T20:15:35.217Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What means closure after init?<p>Xcode playground game boilerplate generates the code, with the class:</p>
<pre><code>class GameScene: SKScene {
// no init... |
53,590,971 | Module 'KissXML' not found<p>I read this and I try to solve it and didn't solved:
<a href="https://stackoverflow.com/questions/41487744/module-kissxml-not-found-error-in-ios">Module 'KissXML' not found Error in IOS</a></p>
<p>I setup my podfile like this: </p>
<pre><code>platform :ios, '9.0'
target 'iPhoneXM... | <p>try to input</p>
<h1>import "KissXML.h" insted of @import KissXML</h1> | Module 'KissXML' not found | objective-c|cocoapods|xmppframework|kissxml | -2 | 323 | 1 | 53,593,657 | 53,593,657 | -1 | true | 2018-12-03T09:40:16.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Module 'KissXML' not found<p>I read this and I try to solve it and didn't solved:
<a href="https://stackoverflow.com/questions/41487744/module-kissxml-not-fo... |
53,717,890 | Removing string characters form mysqli database and utilize two variables derived from database<p>Good Day</p>
<p>Can anyone please just help me in the right direction with PhP and mysqli function ?</p>
<p>I have the following in a field called 'speed' in my database: 10240k/10240k.The first 10240k is the Upload spee... | <p>You can first explode on the basis of "/" then you can substr(string,0,-1) to remove the last character from the string. After getting both upload speed and download speed you can convert them into Mb. I didn't convert it into Mb because you did not mention it is Kb or GB?</p>
<pre><code> <?php
$str = "10240k... | Removing string characters form mysqli database and utilize two variables derived from database | php|mysqli | -2 | 20 | 1 | 53,718,122 | 53,718,122 | 0 | true | 2018-12-11T05:28:01.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Removing string characters form mysqli database and utilize two variables derived from database<p>Good Day</p>
<p>Can anyone please just help me in the righ... |
53,775,141 | How to change public IPv4 so that it is unique<p>So, I'm using ssh to connect my phone to my pc. I am able to connect when I'm connected to my LAN. so entering like </p>
<pre><code>ssh username@192.168.1.7
</code></pre>
<p>will connect and I can list all my directories and everything.
but I don't want this. I want to... | <p>The first thing you will need is a public IP at home where your PC is located.
If it's dynamic, it will change and you will fail to connect as soon as it does so - which can be in a day/week/month depending on your ISP.</p>
<p>Second - and for you the important part: Is this PC connected directly to your ISP router... | How to change public IPv4 so that it is unique | linux|ssh|openssh | -2 | 38 | 1 | 53,777,213 | 53,777,213 | 0 | true | 2018-12-14T07:22:42.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change public IPv4 so that it is unique<p>So, I'm using ssh to connect my phone to my pc. I am able to connect when I'm connected to my LAN. so enteri... |
53,534,514 | Html: How to put two images one above the other in the same line with text?<p>Is there a way to put two images one above the other in the same line with text? This example for three lines, and the second line has two images one above the other after the words "of text" and then continue the text normally? whether usi... | <p><a href="https://jsfiddle.net/kb1tc9r4/11/" rel="nofollow noreferrer">https://jsfiddle.net/kb1tc9r4/11/</a></p>
<p>Here is a solution where the css code uses flexbox to achieve that</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre ... | Html: How to put two images one above the other in the same line with text? | html|css|image|text | -2 | 1,568 | 3 | 53,534,598 | 53,534,598 | 1 | true | 2018-11-29T08:17:49.943Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Html: How to put two images one above the other in the same line with text?<p>Is there a way to put two images one above the other in the same line with text... |
53,643,280 | HttpClient put issue in Angular<p>I'm developing an Angular app with Web api.</p>
<p>I have created a service (sellerService) in which I can update some data in my database with <code>HttpClient put</code>.</p>
<p>Above works but it update all the data of my table, something like follows;</p>
<p><strong>Before I upd... | <p>You missed <a href="https://www.w3schools.com/sql/sql_where.asp" rel="nofollow noreferrer">where</a> clause in SQL query. So it will update all records. </p>
<pre><code>public static readonly string UPDATE = "update " + TABLE_NAME + " set "
+ COLUMN_USERNAME + " =@username"
+ ", " + COLUMN_N... | HttpClient put issue in Angular | c#|angular|httpclient|put | -2 | 47 | 1 | 53,643,323 | 53,643,323 | 1 | true | 2018-12-06T01:26:07.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
HttpClient put issue in Angular<p>I'm developing an Angular app with Web api.</p>
<p>I have created a service (sellerService) in which I can update some dat... |
53,671,182 | How to ask user for number of items and then assign each item a number?<p>I couldn't find anything online, so I was wondering if someone could help. I have the following code:</p>
<pre><code>x = str(input("Enter number of unique customers then press enter: "))
</code></pre>
<p>I want it to then ask the user for a sp... | <p>I think you need loops:</p>
<pre><code>num = int(input('How many customers there are?')
list_customer = []
for i in range(num):
a = input('number for customer x')
list_customer.append(a)
print(list_customer[0]) # Number for customer 1
print(list_customer[1]) # Number for customer 2
</code></pre> | How to ask user for number of items and then assign each item a number? | python|python-3.x|dictionary|syntax|user-input | -2 | 318 | 2 | 53,671,911 | 53,671,911 | 1 | true | 2018-12-07T14:06:29.503Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to ask user for number of items and then assign each item a number?<p>I couldn't find anything online, so I was wondering if someone could help. I have ... |
53,700,692 | how to jquery append only one time if i have two hosts?<p>i have dinamically crated page that fetch db data and print it on page. Project stored on claster contains two hosts. If i use <code>append()</code> method it dublicate data, because each host make <code>append()</code> call. So my question is how to make append... | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>function onlyUnique(value, index, self) {
return self.indexOf(value) === index;
}
// usage example:
var arr = ["NY", "LA", "CA... | how to jquery append only one time if i have two hosts? | javascript|jquery|html | -2 | 43 | 1 | 53,701,026 | 53,701,026 | 1 | true | 2018-12-10T06:45:58.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to jquery append only one time if i have two hosts?<p>i have dinamically crated page that fetch db data and print it on page. Project stored on claster c... |
53,531,981 | What machine learning model should I use?<p>I'm currently making a machine learning model for a student project, and I'm still deciding what model I should use. Here's the brief I was given: </p>
<p><strong>Global Terrorism Database (GTD) is an open-source database including information on terrorist events around the ... | <p>It would be easier to answer this question if you tried several candidate methods and described why they don't suffice, but here's one place to start... If you didn't have access to a computer and someone gave you this table and asked you to qualitatively describe how terrorism works, you might notice very quickly,... | What machine learning model should I use? | machine-learning|neural-network|random-forest|backpropagation | -2 | 67 | 1 | 53,532,184 | 53,532,184 | 2 | true | 2018-11-29T04:44:49.630Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What machine learning model should I use?<p>I'm currently making a machine learning model for a student project, and I'm still deciding what model I should u... |
53,708,070 | Javascript's Boolean translation to Golang<p>In JavaScript I see functions like:</p>
<pre><code>function SomeFunc(i) {
var f = 0x80000000;
return Boolean(i & f);
}
</code></pre>
<p>What would be an analog in Golang? First of all, I see <strong>0x80000000</strong> is not possible, syntax is the second que... | <p>In JavaScript, coercing any non-boolean value to boolean just does a "falsiness" check; for the most part, any non-empty value is false and everything else is true. So the Go equivalent for an integer value would simply be:</p>
<pre><code>return i != 0
</code></pre> | Javascript's Boolean translation to Golang | go | -2 | 66 | 2 | 53,708,111 | 53,708,111 | 2 | true | 2018-12-10T14:48:03.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript's Boolean translation to Golang<p>In JavaScript I see functions like:</p>
<pre><code>function SomeFunc(i) {
var f = 0x80000000;
return B... |
53,736,564 | Sort cells that have the same date but different time<p>I currently have a large data set sorted largest to smallest in terms of <code>demand-(solar+wind)</code> and I would like to choose the top 12 cells in terms of demand-(solar+wind) but occuring 12 different days.</p>
<p>This is the top of my spreadsheet.</p>
<p... | <p>Simply insert a new pivot table, select "Trading interval" as a rows field and demand-(solar+wind) as values. In your new pivot table right-click on the Trading interval field and select "Group" and "Days".</p>
<p><a href="https://i.stack.imgur.com/eCyRB.png" rel="nofollow noreferrer"><img src="https://i.stack.img... | Sort cells that have the same date but different time | excel|sorting|pivot-table|conditional-formatting | -2 | 72 | 1 | 53,736,721 | 53,736,721 | 2 | true | 2018-12-12T05:25:07.330Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Sort cells that have the same date but different time<p>I currently have a large data set sorted largest to smallest in terms of <code>demand-(solar+wind)</c... |
53,755,998 | Is it necessary to overload operator in this specific case<pre><code>#include <iostream>
class Complex
{
double *arr;
int n;
public:
Complex() :n(0), arr(nullptr) {};
Complex(const Complex &a)
{
if (this != a)
{
this->~Complex();
copy(a);
... | <p>The line</p>
<pre><code>if (this != a)
</code></pre>
<p>is a syntactic error since type of <code>this</code> is a pointer while <code>a</code> is a reference to an object. A syntactially correct form would be:</p>
<pre><code>if (this != &a)
</code></pre>
<p>However, that is totally unnecessary in a copy cons... | Is it necessary to overload operator in this specific case | c++|class | -2 | 58 | 3 | 53,756,117 | 53,756,117 | 2 | true | 2018-12-13T06:18:38.353Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it necessary to overload operator in this specific case<pre><code>#include <iostream>
class Complex
{
double *arr;
int n;
public:
Comp... |
53,717,205 | Static variable being fed into JTextfield is only JTextfield that I am failing to update. Can't figure out why but I think it's a scope issue<p>I am working on a simple game and have my main method inside my GUI class and have managed to get rid of all my issues with JTextfields not updating from my game loop that way ... | <p>Just creating the JTextField object and assigning it to a variable <strong>does not place it into the GUI</strong>, and in fact I'd recommend against trying to create a GUI in this way. Note that this has nothing to do with the static money field and all to do with creating a GUI in the wrong way. </p>
<p>What you ... | Static variable being fed into JTextfield is only JTextfield that I am failing to update. Can't figure out why but I think it's a scope issue | java|swing|jframe | -2 | 30 | 1 | 53,717,223 | 53,717,223 | 3 | true | 2018-12-11T04:01:55.777Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Static variable being fed into JTextfield is only JTextfield that I am failing to update. Can't figure out why but I think it's a scope issue<p>I am working ... |
53,652,229 | How to store a large amount of resource images?<p>I want to create an offline android app. On the main activity there is a recyclerview with 100+ items (icon and title of item). Each item has detail information with image which appears inside second activity when user clicks on particular item of recyclerview.</p>
<p>... | <p>An other option would be for example to put all these images into a zip and add it to the applications assets. Then on first application start-up, you extract all the images of this zip to your application's local directory.
This would increase performance because accessing the assets is more time consuming than dir... | How to store a large amount of resource images? | android | -2 | 59 | 1 | 53,652,299 | 53,652,299 | 0 | true | 2018-12-06T13:10:25.250Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to store a large amount of resource images?<p>I want to create an offline android app. On the main activity there is a recyclerview with 100+ items (icon... |
53,660,549 | How to get Gmail API error code by Struct field name?<p>The Gmail API err response struct includes a Code field according to <a href="https://medium.com/capital-one-tech/learning-to-use-go-reflection-822a0aed74b7" rel="nofollow noreferrer">Examiner</a></p>
<pre><code>_, err := gmailService.Users.Messages.Send("me", &a... | <p>According to the <a href="https://godoc.org/google.golang.org/api/gmail/v1#UsersMessagesSendCall.Do" rel="nofollow noreferrer">documentation</a> it returns a <code>*googleapi.Error</code>. Simply assert to this type and you have full access to everything it contains. This is a prime example of the power of interface... | How to get Gmail API error code by Struct field name? | go | -2 | 48 | 1 | 53,660,785 | 53,660,785 | 0 | true | 2018-12-06T22:18:26.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get Gmail API error code by Struct field name?<p>The Gmail API err response struct includes a Code field according to <a href="https://medium.com/capi... |
53,753,150 | How to use a Priority Queue?<p>Will a priority queue work if I want to process elements in FIFO, but have priority to an element that is greater than a certain number? What do I use if I want FIFO but also want some element to have priority if it is greater than 60?</p>
<p>Thanks!</p> | <p>Yes, you use a priority queue. If the element's priority is less than your threshold amount (such as 60), then simply assign it a constant priority (such as 1). Those lower elements will go in the queue FIFO.</p> | How to use a Priority Queue? | algorithm|priority-queue | -2 | 27 | 1 | 53,753,270 | 53,753,270 | 0 | true | 2018-12-12T23:55:05.770Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use a Priority Queue?<p>Will a priority queue work if I want to process elements in FIFO, but have priority to an element that is greater than a certa... |
53,770,843 | Your app uses the “prefs:root=” non public URL scheme. Best plan to update old code?<p>so I posted previously about this issue <a href="https://stackoverflow.com/questions/53755550/ios-app-store-rejection-your-app-uses-the-prefsroot-non-public-url-scheme?noredirect=1#comment94365312_53755550">here.</a></p>
<p>As you c... | <blockquote>
<p>I'm getting a Type 'UIApplication' has no member 'openSettingsURLString' </p>
</blockquote>
<p>Well, you can see from the documentation that the type UIApplication <em>does</em> have this member. Here it is:</p>
<p><a href="https://developer.apple.com/documentation/uikit/uiapplication/1623042-opense... | Your app uses the “prefs:root=” non public URL scheme. Best plan to update old code? | ios|swift | -2 | 293 | 1 | 53,771,579 | 53,771,579 | 0 | true | 2018-12-13T22:15:03.857Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Your app uses the “prefs:root=” non public URL scheme. Best plan to update old code?<p>so I posted previously about this issue <a href="https://stackoverflow... |
53,776,782 | silent notification to alert in ios?<p>I'm sending a silent notification to a user that gets picked up trough "didReceiveRemoteNotification fetchCompletionHsndler" where I want to check som conditions and if it returns "true" for thoese want to make notificaton visible to a user -any idea on how can I accomplish that?... | <p>Yes, there are 2 ways for that. </p>
<p>If your condition returns true then:</p>
<p>1) Your app is an <strong>active state</strong> then use any third party/alert to show that navigation content.</p>
<p>2) Your app is in the <strong>background</strong> then fire local notification with exact content of the silent... | silent notification to alert in ios? | ios|objective-c|firebase-cloud-messaging | -2 | 49 | 1 | 53,776,945 | 53,776,945 | 0 | true | 2018-12-14T09:26:07.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
silent notification to alert in ios?<p>I'm sending a silent notification to a user that gets picked up trough "didReceiveRemoteNotification fetchCompletionHs... |
53,784,839 | When rounding swift double it shows different numbers<p>When I got two numbers, like 5.085 and 70.085. My code rounds the first number to 5.09, but the second one it goes to 70.08. For some reason, when making <code>let aux1 = aux * 100</code> the value goes to 7008.49999999. Any one have the solution to it?</p>
<p>He... | <p>If you want to format the Double by rounding it's fraction digits. Try't:</p>
<p>First, implement this method</p>
<pre><code> func formatDouble(_ double: Double, withFractionDigits digits: Int) -> String{
let formatter = NumberFormatter()
formatter.maximumFractionDigits = digits
... | When rounding swift double it shows different numbers | swift|double|rounding | -2 | 36 | 1 | 53,785,451 | 53,785,451 | 0 | true | 2018-12-14T18:09:35.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
When rounding swift double it shows different numbers<p>When I got two numbers, like 5.085 and 70.085. My code rounds the first number to 5.09, but the secon... |
53,532,715 | compare input value with database value using spring mvc<p>how to compare input value item_code1,item_code2 and so on with another table column item_code and then also compare stock with Quantity_reqd1,Quantity_reqd2() and so on based upon item_code. If compare is true then generate report1 of that item otherwise gene... | <p>If I have understood you question and given code correctly, then below is the solution:</p>
<p>I just need an explanation for this below query you have written in saveRequirement() controller method:</p>
<pre><code>SELECT item_code, stock FROM stock_requirement_register WHERE item_code=?, and
stock=?
</code></pr... | compare input value with database value using spring mvc | java|sql|spring-mvc | -2 | 1,324 | 1 | 53,533,545 | 53,533,545 | 1 | true | 2018-11-29T05:56:49.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
compare input value with database value using spring mvc<p>how to compare input value item_code1,item_code2 and so on with another table column item_code and... |
53,798,624 | is addSubview by default (0,0)<p>Hello I have added a view to my viewcontroller and all I did was call the addSubview and by default it is setting it (0,0) I never set these coordinates I just wanted to confirm it is 0,0 the default coordinates when you dont specify any ?</p> | <p>A subview is added at a size and position determined by its frame or autolayout constraints. If you never assign it a frame or constraints its frame is <code>.zero</code>. </p> | is addSubview by default (0,0) | ios | -2 | 37 | 1 | 53,798,641 | 53,798,641 | 1 | true | 2018-12-16T01:13:39.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
is addSubview by default (0,0)<p>Hello I have added a view to my viewcontroller and all I did was call the addSubview and by default it is setting it (0,0) I... |
53,564,651 | Lidar data Graph<blockquote>
<p>SLAM Using RpLiDar and ROS</p>
</blockquote>
<p>Hello, I have a table with two columns [Degrees, Distance] and I need to display that info to make a map around my position. Anyone knows a good way to do that, for example every time im in the center and i detect that at 90 degrees is s... | <p>Your aim is to visualize SLAM and therefore, i assume you want to visualize the particle clouds in real time. The lidar you specify can measure 8000 particles per second. This is not very low and hard to plot with typical python modules such as <a href="https://matplotlib.org/" rel="nofollow noreferrer">Matplotlib</... | Lidar data Graph | python|ros|lidar|slam | -2 | 827 | 1 | 53,565,564 | 53,565,564 | 2 | true | 2018-11-30T20:43:27.497Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Lidar data Graph<blockquote>
<p>SLAM Using RpLiDar and ROS</p>
</blockquote>
<p>Hello, I have a table with two columns [Degrees, Distance] and I need to d... |
53,716,963 | Better way to perform logic in one line<p>Is there a better way to perform this logic in one line?</p>
<pre><code>- (BOOL)isValueInRange {
return ((level.integerValue > 100) || (level.integerValue < 0)) ? NO : YES;
}
</code></pre> | <p>You can do:</p>
<pre><code>return level.integerValue >= 0 && level.integerValue <= 100;
</code></pre>
<p>This will return true if the value is in the range, false if it is not.</p> | Better way to perform logic in one line | objective-c|ternary-operator|boolean-logic | -2 | 41 | 2 | 53,716,986 | 53,716,986 | 2 | true | 2018-12-11T03:28:52.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Better way to perform logic in one line<p>Is there a better way to perform this logic in one line?</p>
<pre><code>- (BOOL)isValueInRange {
return ((leve... |
53,736,575 | I am trying to execute simple SQL code which executes after every 30 seconds<pre><code>declare @timeToRun nvarchar(50);
declare @t1 int;
set @t1=10;
set @timeToRun = right(rtrim(CONVERT(VARCHAR(70), GETDATE(), 108)),2)
if @timeToRun = @t1
begin
-- waitfor time @timeToRun
begin
print 'Hello';
end
end
<... | <p>SQL Server code that needs to run repeatedly may better be done using a SQL Server Agent job. <a href="https://docs.microsoft.com/en-us/sql/ssms/agent/create-a-job?view=sql-server-2017" rel="nofollow noreferrer">Here is the documentation to create a SQL Server Agent job</a>. Briefly, the procedure to do this in SQL ... | I am trying to execute simple SQL code which executes after every 30 seconds | sql|sql-server-2008|sql-server-2012 | -2 | 40 | 2 | 53,736,630 | 53,736,630 | 0 | true | 2018-12-12T05:26:04.060Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I am trying to execute simple SQL code which executes after every 30 seconds<pre><code>declare @timeToRun nvarchar(50);
declare @t1 int;
set @t1=10;
set @ti... |
53,586,471 | Get titleLabel during drag and drop<p>An array of UIButton are generated programmatically. Is it possible to get the titleLabel of the UIButton triggering the drag? Or are there any ways to get info of the UIButton in the drag function? </p>
<pre><code>override func viewDidLoad() {
super.viewDidLoad()
for q in... | <pre><code>class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let button = UIButton.init(frame: CGRect.init(x: 0, y: 0, width: 100, height: 100))
button.backgroundColor = .yellow
button.center = CGPoint.init(x: view.bounds.width / 2, y: view.b... | Get titleLabel during drag and drop | ios|swift|uibutton|uikit|drag | -2 | 60 | 1 | 53,586,589 | 53,586,589 | 0 | true | 2018-12-03T01:54:34.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get titleLabel during drag and drop<p>An array of UIButton are generated programmatically. Is it possible to get the titleLabel of the UIButton triggering th... |
53,672,634 | Python mutidimensional array<p>In python, preferably as numpy array, how can I get datastructure, exactly like this, in php:</p>
<pre><code>$mdmat = array();
for($i=0;$i<50;$i++)
for($x=90;$x<=510;$x+=30)
for($y=50;$y<470;$y+=30)
$mdmat[$i][$x][$y] = rand(0,1000);
</code></pre>
<p>So I can later... | <p>you are skipping over the indices in the inside loops. If you wish to retain that, then this is not really an array, but a key value pair mapping, aka dictionary.</p>
<p>You cannot have mutable keys in a dictionary, but can use a tuple instead. </p>
<pre><code>import random
mdmat = {}
for i in range(0,... | Python mutidimensional array | python|arrays|numpy|matrix | -2 | 66 | 2 | 53,672,819 | 53,672,819 | 1 | true | 2018-12-07T15:40:08.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python mutidimensional array<p>In python, preferably as numpy array, how can I get datastructure, exactly like this, in php:</p>
<pre><code>$mdmat = array()... |
53,690,412 | jQuery generated elements won't call function<p>i have generate anchore from ajax here is the code</p>
<pre><code> html+=' <a class="btn-floating activator btn-move-up z-depth-4 modal-trigger right" href=".update-topic-modals" >'
html+='<i class="material-icons blue-text text-darken-4 whit... | <p>You need to make several changes</p>
<ol>
<li>move the onclick</li>
<li>store the data in a data attribute</li>
<li>delegate the click</li>
<li>preventDefault on the click to not load the href</li>
</ol>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="sn... | jQuery generated elements won't call function | jquery|node.js|ajax|mongodb | -2 | 24 | 1 | 53,690,568 | 53,690,568 | 1 | true | 2018-12-09T07:51:53.113Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
jQuery generated elements won't call function<p>i have generate anchore from ajax here is the code</p>
<pre><code> html+=' <a class="btn-floating activ... |
53,754,065 | Erase Label Constraints<p>I named a custom Label MyLabel, and it works somewhat odd. MyLabel is a Label, which just extended JLabel.</p>
<pre><code>public class MyLabel extends JLabel {
public MyLabel() {
// TODO Auto-generated constructor stub
}
public MyLabel(String arg0) {
super(arg0);
... | <p>First, you need to go read <a href="https://docs.oracle.com/javase/tutorial/uiswing/layout/index.html" rel="nofollow noreferrer">Laying Out Components Within a Container</a> and <a href="https://docs.oracle.com/javase/tutorial/uiswing/layout/border.html" rel="nofollow noreferrer">How to Use BorderLayout</a> in parti... | Erase Label Constraints | java|swing|constraints|jlabel | -2 | 27 | 1 | 53,754,095 | 53,754,095 | 1 | true | 2018-12-13T02:05:23.273Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Erase Label Constraints<p>I named a custom Label MyLabel, and it works somewhat odd. MyLabel is a Label, which just extended JLabel.</p>
<pre><code>public c... |
53,800,625 | Replace strings in file with list values<p>I have a list as :
result=[[0.0, 12.053600000000001], [0.01, 14.2272], [0.02, 15.314000000000002], [0.04, 18.5744], [0.05, -18.772000000000002], [0.67, -1.54]]</p>
<p>I have a file in.txt which contains values as:</p>
<pre><code>NPTH 6
THTIM
0.0 0.00 0.001 -1.22
0.0... | <p>You can follow these with either Jupyter notebook or in Python IDE:</p>
<p><a href="https://i.stack.imgur.com/EjljR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EjljR.png" alt="enter image description here"></a></p>
<p><a href="https://i.stack.imgur.com/GNJfo.png" rel="nofollow noreferrer"><i... | Replace strings in file with list values | python|string|file|arraylist|replace | -2 | 272 | 2 | 53,800,776 | 53,800,776 | 1 | true | 2018-12-16T08:30:52.277Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Replace strings in file with list values<p>I have a list as :
result=[[0.0, 12.053600000000001], [0.01, 14.2272], [0.02, 15.314000000000002], [0.04, 18.5744... |
53,660,983 | Setting the class of a variable automatically in R?<p>I work with large datasets with individual ID coded as five digit numbers <code>20234</code>. Let's call it <code>DF$id.var</code>. The data are scattered over hundreds of surveys over dozens of years, so I'm constantly wrangling (loading, merging, subsetting, filte... | <p>you can use the <code>read_delim()</code> family of functions from the <code>readr</code> package to read in the data and include the argument <code>col_types = cols(id.var = col_character())</code>, e.g.:</p>
<pre><code>library(readr)
DF <- read_csv("example.csv", col_types = cols(id.var = col_character()))
</... | Setting the class of a variable automatically in R? | r|class|character | -2 | 36 | 1 | 53,661,186 | 53,661,186 | 3 | true | 2018-12-06T23:02:24.737Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Setting the class of a variable automatically in R?<p>I work with large datasets with individual ID coded as five digit numbers <code>20234</code>. Let's cal... |
53,802,027 | Collect Senders Email Addresses From Specific Folder At Thunderbird<p>as my title mentioned I am searching for a solution to get all email addresses that I have received from people and saved inside a certain folder in my Thunderbird. </p>
<p>I need them for marketing purposes, because those email addresses belong to ... | <p>You can use Message Filter in order to organize your messages.</p>
<p>Read this article: <a href="https://support.mozilla.org/en-US/kb/organize-your-messages-using-filters" rel="nofollow noreferrer">https://support.mozilla.org/en-US/kb/organize-your-messages-using-filters</a></p>
<p><strong>Updated:</strong> </p>
... | Collect Senders Email Addresses From Specific Folder At Thunderbird | thunderbird|thunderbird-addon | -2 | 771 | 1 | 53,802,062 | 53,802,062 | 4 | true | 2018-12-16T12:18:29.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Collect Senders Email Addresses From Specific Folder At Thunderbird<p>as my title mentioned I am searching for a solution to get all email addresses that I h... |
53,630,316 | Getting Error while building solution on Server<p>I'm getting <strong>Error CS0234</strong> <strong>(are you missing an assembly reference?)</strong> on Server.
All files are working fine on my Local System (localhost) as well as on my peers' systems.
All the references have been added and Checked In in <strong>TFS</st... | <p>Finally, I got a solution.
I have noticed that we have a Total 10 Instance in Azure.
When the Main CI/CD pipeline builds it will dump all files in all instances.</p>
<p>When we have developed a new project we have configured it but the new CI/CD pipeline will dump code into 2 Instance of that new project.</p>
<p>A... | Getting Error while building solution on Server | c#|asp.net-mvc|tfs|azure-devops | -2 | 64 | 2 | 60,390,755 | 60,390,755 | 0 | true | 2018-12-05T10:36:17.817Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting Error while building solution on Server<p>I'm getting <strong>Error CS0234</strong> <strong>(are you missing an assembly reference?)</strong> on Serv... |
43,937,857 | Case condition on Mysql query<p>I am facing a problem. I could not find the error. I have a database name test. There are some field on that like Id, cl1, cl2,cl3....... My expectation is when I select(using checkbox) some id database table field(cl1) will updated by 1 and rest of updated by 3.
I think it can make some... | <p>In you loop <code>for ($i=0; $i <$max ; $i++)</code>, it looks like you are trying to update the rows one at a time to either 1 or 3.</p>
<p>But what your query is ACTUALLY doing, is updating all the rows in your database on every iteration of your loop.</p>
<p>In the last iteration of your loop, the correspond... | Case condition on Mysql query | php|mysql|mysqli | -2 | 37 | 2 | 43,938,461 | 43,938,461 | 0 | true | 2017-05-12T12:31:23.307Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Case condition on Mysql query<p>I am facing a problem. I could not find the error. I have a database name test. There are some field on that like Id, cl1, cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.