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
53,581,894
Extracting decision split values from tree graph<p>I am using treebagger for classification and plotted the tree graph. However, how do i extract/save values (766,4.35,2.11) from each node in the graph? Attached is the plot and below is my code:</p> <pre><code>Mdl= fitctree(Xtrain,Ytrain,'MaxNumSplits',4,'CrossVal','o...
<p>The property that you're looking for is <code>CutPoint</code>.</p> <pre><code>&gt;&gt; Mdl.Trained{1}.CutPoint ans = 766.0000 4.3500 2.1180 </code></pre>
Extracting decision split values from tree graph
matlab|treeview|matlab-figure|random-forest
-1
40
1
53,585,410
53,585,410
1
true
2018-12-02T15:49:41.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extracting decision split values from tree graph<p>I am using treebagger for classification and plotted the tree graph. However, how do i extract/save values...
53,585,688
Detect Flaming in Strings<p>I am searching for a algorithm that counts multiple sequential characters and counts all words written in caps.</p> <p>The output I want to have is that for every word written in caps a counter is increased by 1 and for every sequentially used character the counter is again increased by 1</...
<p>Regex is your friend.</p> <pre><code>import re test = "COME ON DUDE!!!" count = len(re.findall('([A-Z]{2,})|(?P&lt;r&gt;\S)(?P=r){2,}', test)) </code></pre> <p>Of course, you should look at the <code>.findall()</code> output with some more test strings to make sure it's actually counting what you want it to. (Tha...
Detect Flaming in Strings
python|python-3.x
-1
29
1
53,586,070
53,586,070
1
true
2018-12-02T23:37:57.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Detect Flaming in Strings<p>I am searching for a algorithm that counts multiple sequential characters and counts all words written in caps.</p> <p>The outpu...
53,588,382
Captcha Not accpeting on Yii<p>I implemented captcha properly , it show no error if i enter correct value , but after submission , When i checked using <code>"$model-&gt;getErrors()"</code>. It is showing me .</p> <pre><code>Array ( [verifyCode] =&gt; Array ( [0] =&gt; The verification code is...
<p>the problem is you are using <code>$model-&gt;validate()</code> and <code>$model-&gt;save()</code> together. </p> <p><code>$model-&gt;save()</code> internally calls <code>$model-&gt;validate()</code> and calling <code>$model-&gt;validate()</code> twice, changes captcha.</p> <p>Just remove additional <code>if ($mo...
Captcha Not accpeting on Yii
php|yii2|captcha
-1
46
1
53,589,110
53,589,110
1
true
2018-12-03T06:12:26.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Captcha Not accpeting on Yii<p>I implemented captcha properly , it show no error if i enter correct value , but after submission , When i checked using <cod...
53,592,930
Copy files from one folder to another and rename the files<p>I want to copy a huge number of .html-files to another folder. Additionally, I want to change the name of the file to "FoldersName_Filename".</p> <pre><code>import shutil import os for Jahr in range(2000,2014): for Datei in os.listdir("S:\\DA...
<p>Use <code>str.format</code></p> <p><strong>Ex:</strong></p> <pre><code>import shutil import os for Jahr in range(2000,2014): for Datei in os.listdir("S:\\DA\\html\\Jahrescluster\\%i" %Jahr): shutil.copy2(src="S:\\html\\Jahrescluster\\{}\\{}".format(Jahr, Datei), dst="S:\\html\\2000-2013\\{}_{}".format...
Copy files from one folder to another and rename the files
python|file|copy|shutil
-1
27
1
53,593,051
53,593,051
1
true
2018-12-03T11:31:17.587Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Copy files from one folder to another and rename the files<p>I want to copy a huge number of .html-files to another folder. Additionally, I want to change th...
53,597,085
C#. p12 contains two certificates. How to get them?<p>I have a p12 certificate that contains several certificates. How to get a collection of these certificates? </p> <p>Code:</p> <pre><code>new X509Certificate2(bytes, pass); </code></pre> <p>returns last. Thx!</p>
<p>This is a duplicate of <a href="https://stackoverflow.com/questions/7656324/importing-all-certificates-contained-in-a-p12-file">Importing all certificates contained in a .p12 file</a></p> <p>You might want to consider searching a little harder ;-)</p>
C#. p12 contains two certificates. How to get them?
c#|x509certificate2|pkcs#12
-1
266
1
53,597,304
53,597,304
1
true
2018-12-03T15:41:38.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C#. p12 contains two certificates. How to get them?<p>I have a p12 certificate that contains several certificates. How to get a collection of these certifica...
53,603,708
Terraform - populate variable values from same script<p>I'm very green to terraform; infact this is part of my training.</p> <p>I'm wondering; is there a way to get terraform to store a specific value (as variable) from the previous command within the same file.</p> <p>Example:</p> <pre><code> resource "aws_vpc" ...
<p>You can use the output from the creation of the VPC, <code>${aws_vpc.TestVPC.id}</code></p> <p>Like so: </p> <pre><code>resource "aws_vpc" "TestVPC" { cidr_block = "192.168.0.0/16" instance_tenancy = "default" enable_dns_hostnames = "True" tags { Name = "TestVpc" } } resource "aws_sub...
Terraform - populate variable values from same script
terraform|infrastructure-as-code
-1
45
1
53,603,990
53,603,990
1
true
2018-12-03T23:50:44.797Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Terraform - populate variable values from same script<p>I'm very green to terraform; infact this is part of my training.</p> <p>I'm wondering; is there a wa...
53,615,071
How to Add an Image to a Chart<p>[<img src="https://i.stack.imgur.com/aEbfY.png" alt="Chart I currently Have[1]"></p> <p>I have a Chart like this, It's not finished yet but I need to add this image to the left of the Chart.<a href="https://i.stack.imgur.com/cXPDO.png" rel="nofollow noreferrer"><img src="https://i.stac...
<p>Two ways..: </p> <ul> <li>You can add an <a href="https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.datavisualization.charting.imageannotation?view=netframework-4.7.2" rel="nofollow noreferrer">ImageAnnotation</a>.. </li> </ul> <p>In order to place it correctly you will need to know exactly what yo...
How to Add an Image to a Chart
c#|image|charts
-1
318
1
53,616,158
53,616,158
1
true
2018-12-04T14:25:16.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Add an Image to a Chart<p>[<img src="https://i.stack.imgur.com/aEbfY.png" alt="Chart I currently Have[1]"></p> <p>I have a Chart like this, It's not ...
53,619,028
Using ContactsApp from a Google spreadsheet<p><strong>Overview:</strong> When I call ContactsApp.getContact() in a GoogleAppsScript function, the function works fine when run from the Script Editor. However, when I try to use my function from a Google Spreadsheet, I get a permission error. How can I resolve this permis...
<p>I have found the answer in the documentation here: <a href="https://developers.google.com/apps-script/guides/sheets/functions#advanced" rel="nofollow noreferrer">https://developers.google.com/apps-script/guides/sheets/functions#advanced</a></p> <p><code>Unlike most other types of Apps Scripts, custom functions neve...
Using ContactsApp from a Google spreadsheet
google-apps-script|google-sheets|google-contacts-api|custom-function
-1
330
1
53,619,133
53,619,133
1
true
2018-12-04T18:08:22.030Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using ContactsApp from a Google spreadsheet<p><strong>Overview:</strong> When I call ContactsApp.getContact() in a GoogleAppsScript function, the function wo...
53,566,260
Session.send() does not work: "session is not defined"<p>I am trying to use <code>session.send</code> instead of <code>console.log</code> in <code>transporter.sendMail</code>, so that the user knows when the Email was sent successfully, but it does not work.<br> The error is "session is not defined".<br> This is how my...
<p>this is an example of how to doing it. Just make sure you call this method inside a session context 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-js lang-js prettyprint-override"><code>const sendmail = ...
Session.send() does not work: "session is not defined"
javascript|node.js|nodemailer|web-development-server
-1
276
3
53,621,576
53,621,576
1
true
2018-11-30T23:27:38.673Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Session.send() does not work: "session is not defined"<p>I am trying to use <code>session.send</code> instead of <code>console.log</code> in <code>transporte...
53,620,009
How to conditionally format (i.e. highlighting) cell contents depending on the word that appear in MS Word<p>I have created a list in SharePoint that creates a word document from a template in a document library. The 'Status' of the project is either green, yellow, or red. How the heck can I change the highlighting of ...
<p>If I understand correctly you want to highlight column values in document library list view and your field 'Status' exists in this document library and its value set in MS Word created from template. If it is your case then good choice to use CSR (Client Side Rendering).</p> <p>This is javascript code that can be a...
How to conditionally format (i.e. highlighting) cell contents depending on the word that appear in MS Word
sharepoint|ms-word
-1
34
1
53,621,761
53,621,761
1
true
2018-12-04T19:19:53.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to conditionally format (i.e. highlighting) cell contents depending on the word that appear in MS Word<p>I have created a list in SharePoint that creates...
53,624,197
How to preserve the unique IDs of rows when doing machine learning?<p>I have a dataset <code>X</code> that contains an ID column, some other features, and a target column. I am doing a classification task, and after doing the classification on the test set, I want to see which ID belongs to which class.</p> <p>So, I d...
<p>Check your last line </p> <pre><code>df1['Name']=df.loc[df1.index]['Name'].values </code></pre> <p>After <code>reset_index</code> , the index is change, so change to </p> <pre><code>df1['Name']=df.loc[pol_ids.index]['Name'].values </code></pre>
How to preserve the unique IDs of rows when doing machine learning?
python|pandas|machine-learning
-1
294
1
53,624,251
53,624,251
1
true
2018-12-05T02:15:56.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to preserve the unique IDs of rows when doing machine learning?<p>I have a dataset <code>X</code> that contains an ID column, some other features, and a ...
53,634,827
Set first calendrical ocurrence of a date as numeric "1" and then move on day by day<p>My dataset looks like this:</p> <pre><code>game_data &lt;- data.frame(player = c(1,1,1,1,2,2,2,2), dateday = c("2015-04-08","2015-05-08","2015-05-10","2015-06-28","2015-09-01","2015-09-02","2015-09-03","2015-10-11"), points = c(20,8...
<p>This is pretty simple with <code>dplyr</code> package. Convert <code>dateday</code> to a <code>Date</code> object which supports subtracting two dates to get the time difference in days, then get the day difference from day 0 for each player and add 1.</p> <pre><code>library(dplyr) game_data_new &lt;- game_data %&g...
Set first calendrical ocurrence of a date as numeric "1" and then move on day by day
r|date|dplyr|transform|panel
-1
33
2
53,634,910
53,634,910
1
true
2018-12-05T14:44:04.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Set first calendrical ocurrence of a date as numeric "1" and then move on day by day<p>My dataset looks like this:</p> <pre><code>game_data &lt;- data.frame...
53,644,655
pandasObject.index() Vs reindexing using series<p>The functionality of reindexing in python pandas can also be done python Series as below. </p> <pre><code>import pandas as pd order = ['a','c','b'] series_data = pd.Series([1,2,3],index=order) series_data </code></pre> <p>In that case why do we explicitly go for reind...
<p>Let's take an example using <code>index</code> available in <code>Series</code></p> <pre><code>s = pd.Series([1,2,3], index=['k','f','t']) s # k 1 # f 2 # t 3 # dtype: int64 </code></pre> <p>We can state that above series got assigned index with a datatype of <code>int64</code>.</p> <hr> <p>Now let's pr...
pandasObject.index() Vs reindexing using series
python-3.x|pandas|series|reindex
-1
62
2
53,644,750
53,644,750
1
true
2018-12-06T04:25:49.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pandasObject.index() Vs reindexing using series<p>The functionality of reindexing in python pandas can also be done python Series as below. </p> <pre><code>...
53,604,705
Auto-increment data validation in Google Sheets<p>I have basically zero Google Sheets experience. I have followed an infoinspired document with a section titled "How to Create a Multi-Row Dynamic Dependent Drop Down List in Google Sheets [Advanced]" to create three different lists of attributes from which to select bas...
<p>Here's thanks to a alternate forum response by James/mreighties pointing me to a couple videos by Learn Google Spreadsheets, which provided EXACTLY what I needed. The essential script giving the solutions appears here:</p> <pre><code> function onEdit(){ var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveS...
Auto-increment data validation in Google Sheets
google-apps-script|google-sheets
-1
1,569
2
53,654,965
53,654,965
1
true
2018-12-04T02:08:11.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Auto-increment data validation in Google Sheets<p>I have basically zero Google Sheets experience. I have followed an infoinspired document with a section tit...
53,625,412
swift protocol with default value<p>I am practicing swift protocols by rewriting a custom tableview implementation.</p> <pre><code>protocol PreviewModuleViewDataSource { func previewModuleView(_ moduleView: PreviewModuleView, numberOfItemsInSection section: Int) -&gt; Int func previewModuleView(_ moduleView: P...
<p>I believe you are asking how to use the value returned from <code>func previewModuleView(_ moduleView: PreviewModuleView, numberOfItemsInSection section: Int) -&gt; Int</code> within the <code>PreviewModuleView</code> object?</p> <pre><code>protocol PreviewModuleViewDataSource: class { func previewModuleView(_ ...
swift protocol with default value
swift|swift4|protocols
-1
273
1
53,656,044
53,656,044
1
true
2018-12-05T04:57:23.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: swift protocol with default value<p>I am practicing swift protocols by rewriting a custom tableview implementation.</p> <pre><code>protocol PreviewModuleVie...
53,632,820
How do I split up my project into CMake modules that can find eachother?<p>I have a project with components (e.g. Dependency) that are very modular,</p> <pre><code>Project -Dependency --Include --Src --CMakeLists.txt -Main --main.cpp --CMakeLists.txt CMakeLists.txt </code></pre> <p>Right now, I use <code>target_link_...
<p>If you have a <code>target_include_directories</code>, then the dependent targets for that target can have the includes as well, depending on the PUBLIC/PRIVATE setting.</p> <p>Same as <code>target_link_directories</code> which propagates the libraries to dependent targets.</p> <p>You never need the path to the li...
How do I split up my project into CMake modules that can find eachother?
c++|cmake
-1
513
1
53,656,969
53,656,969
1
true
2018-12-05T12:53:37.250Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I split up my project into CMake modules that can find eachother?<p>I have a project with components (e.g. Dependency) that are very modular,</p> <pr...
53,661,353
List all children in firebase database web<p>I'm new to firebase so go gentle... I have a database formatted as such:</p> <p><a href="https://i.stack.imgur.com/75rXc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/75rXc.png" alt="enter image description here"></a></p> <p>All i want is to be able to...
<p>you can use the forEach method on the snapshot</p> <pre><code>firebase.database().ref('/Comments') .once('value').then(function(snapshot) { snapshot.forEach(childSnapshot =&gt; { const comment = childSnapshot.val(); // .... } }); </cod...
List all children in firebase database web
firebase|firebase-realtime-database
-1
54
1
53,661,477
53,661,477
1
true
2018-12-06T23:47:07.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: List all children in firebase database web<p>I'm new to firebase so go gentle... I have a database formatted as such:</p> <p><a href="https://i.stack.imgur....
53,663,258
Error: 'comment' is assigned a value but never used - Javascript<pre><code>var comment = [ {"name": "name", "date": "00-00-0000", "body": "comment here"}]; </code></pre> <p>When trying to make a variable for my comments to add to my comments form on html i seem to get this ESLint error. I've been following a guide and...
<p>This is an ESLint error. It doesn't have any impact on running code whatsoever, it just warns you that you have some <a href="https://en.wikipedia.org/wiki/Programming_style" rel="nofollow noreferrer">code style</a> issues in your code.</p> <p>What it means is that you never seem to use that particular <code>commen...
Error: 'comment' is assigned a value but never used - Javascript
javascript|html|arrays|forms|var
-1
802
1
53,663,287
53,663,287
1
true
2018-12-07T04:28:32.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error: 'comment' is assigned a value but never used - Javascript<pre><code>var comment = [ {"name": "name", "date": "00-00-0000", "body": "comment here"}]; <...
53,669,425
Create a Query in Access which just lists the rows with the most recent entries/dates<p>I have a table that lists people's names. Every time their score is updated, a new row is created with their name and the date the score was updated, along with their new score.</p> <pre><code>Name Date Score James 5/10/18...
<p>Try this. Just a self-join to the same table using two aliases.</p> <pre><code> SELECT t1.* FROM myTable AS t1 LEFT JOIN myTable AS t2 ON (t1.Name = t2.Name AND t1.Date &lt; t2.Date) WHERE t2.Date IS NULL; </code></pre>
Create a Query in Access which just lists the rows with the most recent entries/dates
date|ms-access|filter|group-by|max
-1
22
1
53,670,462
53,670,462
1
true
2018-12-07T12:18:55.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create a Query in Access which just lists the rows with the most recent entries/dates<p>I have a table that lists people's names. Every time their score is u...
53,659,237
How to generate list of buttons from a list of items in a table with entityframework and wpf without MVVM?<p>I have a table [Foods] with list of my foods. I want to generate buttons for each of the food in the table with the name of the food. How can i do this in WPF application. Consider that i use Entity Framework 6x...
<p>Use an <code>ItemsControl</code> with an <code>ItemTemplate</code> and sets its <code>ItemsSource</code> to an <code>IEnumerable&lt;Food&gt;</code> that you get from Entity Framework, e.g.:</p> <pre><code>FoodContext _context = new FoodContext(); public MainWindow() { InitializeComponent(); ic.ItemsSource =...
How to generate list of buttons from a list of items in a table with entityframework and wpf without MVVM?
wpf
-1
22
1
53,670,873
53,670,873
1
true
2018-12-06T20:32:21.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to generate list of buttons from a list of items in a table with entityframework and wpf without MVVM?<p>I have a table [Foods] with list of my foods. I ...
53,670,854
Changing TextView of individual items in a ListView<p>I am in the making of a shopping list using a ListView with custom items with the posibility of increasing the amount of that item and also decreasing the amount. </p> <p>At the moment, I get the right amount of items when I load them in to the shopping list, as ca...
<p>Try this to update single value into adapter.. make public method and that method called into fragment or activity when you updated any value and refresh adapter. </p> <pre><code>/** * this method used to update list item when broad cast received. * @param percentage * @param position */ public void updateProgr...
Changing TextView of individual items in a ListView
java|android
-1
42
1
53,670,929
53,670,929
1
true
2018-12-07T13:46:07.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Changing TextView of individual items in a ListView<p>I am in the making of a shopping list using a ListView with custom items with the posibility of increas...
53,672,445
How to format calculated measure in power BI?<p>I've created a new measure in Power BI with the below DAX formula, it throws me an error of saying "The following syntax error occurred during parsing: Invalid token, Line 18, Offset 61, %." </p> <pre><code>New_Measure = if(VALUES(POC[report]) = "A", Format ( (CA...
<p>You're missing a comma before <code>0.00%</code> in the final line, and you need to enclose your format string in quotes::</p> <pre><code> )), "0.00%"), Format([Value Measure], "$#,##0;($#,##0)")) </code></pre> <p>I'd strongly recommend trying <a href="https://www.daxformatter.com" rel="nofollow noreferr...
How to format calculated measure in power BI?
powerbi|dax
-1
809
1
53,672,570
53,672,570
1
true
2018-12-07T15:26:53.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to format calculated measure in power BI?<p>I've created a new measure in Power BI with the below DAX formula, it throws me an error of saying "The foll...
53,678,433
R: replace underscore repeated non-consecutively more than twice<p>I received a dataset with phrases connected by underscores like so:</p> <pre><code>text &lt;- "hi, how_are_you? that's_great. yes_i'm_als0_@k" </code></pre> <p>As in this example, the data contain numbers, symbols, punctuation, and spaces. I want to r...
<p><code>gsubfn</code> is like <code>gsub</code> but instead of the replacing occurrences of the regular expression specified in the first argument with a fixed string it passes the matches to the function specified in the second argument replacing the input with the output of the function. The function can be specifi...
R: replace underscore repeated non-consecutively more than twice
r|regex
-1
54
1
53,678,552
53,678,552
1
true
2018-12-08T00:34:51.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R: replace underscore repeated non-consecutively more than twice<p>I received a dataset with phrases connected by underscores like so:</p> <pre><code>text &...
53,680,312
How to add if function in django html template<p>I want to add an <code>if</code> function in an html template of my django project. </p> <p>If the variables datas is null, it will show the text "The results is null", if the variables datas is not empty, it will show the table for the data in datas. </p> <p>Here's wh...
<p>I think you can use <a href="https://docs.djangoproject.com/en/2.1/ref/templates/builtins/#for-empty" rel="nofollow noreferrer">empty</a> tag. Use it like this:</p> <pre><code>&lt;table style="table-layout:fixed;"&gt; &lt;tr&gt;...&lt;/tr&gt; &lt;tr&gt; {% for i in datas %} &lt;td&gt;{{ i.1 }}&lt;/td&gt...
How to add if function in django html template
html|css|django
-1
58
2
53,680,541
53,680,541
1
true
2018-12-08T06:56:58.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add if function in django html template<p>I want to add an <code>if</code> function in an html template of my django project. </p> <p>If the variable...
53,683,478
Python 3 How to find variable named as string?<p>Sorry, i don't know how to name this problem correctly :/ I have variables for each letter in alphabet. When i check word for each letter i want to add +1 to the variable which is named the same as a letter im at currently. I want it to work like this: <code>locals(lette...
<p>You can access the variables by doing this...</p> <pre><code>locals()[letter] </code></pre> <p>But the fact you need to check the value of variables named after strings indicates a bad design choice.</p> <p>Instead you should store those values in a <code>dict</code>.</p> <pre><code>letters = { 'a': 0, '...
Python 3 How to find variable named as string?
python|python-3.x
-1
49
2
53,683,527
53,683,527
1
true
2018-12-08T14:25:14.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python 3 How to find variable named as string?<p>Sorry, i don't know how to name this problem correctly :/ I have variables for each letter in alphabet. When...
53,684,079
Token frequency of tokens in a list inside DataFrame<p>I wasn't quite sure how to phrase the titel. I have a Dataframe with one column where each row consist of a list of tokens. I need to get the frequency of the words and then sort them in order to get the most frequent words. Here is a image of the DataFrame schema:...
<p>One approach would be to use <code>explode</code> in the <code>pyspark.sql.functions</code> module. It takes an array column and returns a new row for each element in an array for the entire column that you apply the <code>explode</code> function to. Since your DataFrame has only one column, to get counts of words...
Token frequency of tokens in a list inside DataFrame
python|apache-spark|dataframe|pyspark
-1
782
1
53,684,625
53,684,625
1
true
2018-12-08T15:38:36.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Token frequency of tokens in a list inside DataFrame<p>I wasn't quite sure how to phrase the titel. I have a Dataframe with one column where each row consist...
53,690,935
Download spacy model and get AttributeError 'NoneType' object has no attribute 'ndarray'<p>I'm new on python spacy package.</p> <p>I wanted to download model 'en_core_web_sm' and I get AttributeError.</p> <p>I searched since 2 days all over the web and I couldn't fix it.</p> <p>Someone can help me please ?</p> <p>T...
<p>This happened to me once during development and the reason was that for some reason, my code tricked spaCy into thinking I was on GPU. On GPU, spaCy uses <code>cupy</code> instead of <code>numpy</code> – and if <code>cupy</code> is not installed, it <a href="https://github.com/explosion/spaCy/blob/master/spacy/compa...
Download spacy model and get AttributeError 'NoneType' object has no attribute 'ndarray'
python|spacy
-1
778
1
53,691,203
53,691,203
1
true
2018-12-09T09:26:39.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Download spacy model and get AttributeError 'NoneType' object has no attribute 'ndarray'<p>I'm new on python spacy package.</p> <p>I wanted to download mode...
53,666,811
How to order array in lexicographical order with mapped file vb.net<p>This is kinda complicated for me to understand</p> <pre><code> Dim test() As Byte = New Byte() {50, 40, 30, 10, 10} Dim answer() As UInteger = SortLexicoGraphicallyArrayMappedFile(test) </code></pre> <p>The answer is the each Rotation sorted...
<p>I don't know if this is right but I fixed it for you.</p> <pre><code>Public Function SortLexicoGraphicallyArrayMappedFile(ByRef data As Byte()) As UInteger() Dim OrderedRotations As New List(Of UInteger) Dim rotatedData As Byte() Dim rotation As UInteger = 0 Dim mmF As MemoryMappedFile mmF = M...
How to order array in lexicographical order with mapped file vb.net
vb.net|sorting|binary-search|memory-mapped-files
-1
58
1
53,701,244
53,701,244
1
true
2018-12-07T09:38:42.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to order array in lexicographical order with mapped file vb.net<p>This is kinda complicated for me to understand</p> <pre><code> Dim test() As Byte =...
53,702,983
can we Run Whats app web in react component?<p>Hello guys this is just a query you guys let me know can we run web.whatsapp.com in a component in react ? And use it as a widget is this possible does whats app allow x-frame-options. Please provide a link of whatever reference any one is having ? Thanks in Advanc...
<p>You can't. Whatsapp sets the <code>x-frame-options</code> to <code>DENY</code>. You also can't use any of their endpoints in a custom react component since all of them use the CORS headers to only allow calls from <code>web.whatsapp.com</code></p>
can we Run Whats app web in react component?
javascript|reactjs|whatsapp
-1
301
1
53,703,065
53,703,065
1
true
2018-12-10T09:43:58.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: can we Run Whats app web in react component?<p>Hello guys this is just a query you guys let me know can we run web.whatsapp.com in a component in react ?...
53,706,890
Function returned undefined, expected Promise or value. although i am returning snapshot.val();<p>I am writing a cloud function for my project . its being last 12 hours that i am stuck with this error "Function returned undefined, expected Promise or value" i have tried alot to remove it but not able to find how to sol...
<p>You are returning the value when the <code>query.once('value')</code> promises resolves. </p> <p>To clarify this, look at this:</p> <pre><code>let a = 0; asyncFunctionPromise.then(() =&gt; { a = 1; }); console.log(a); // Will print 0 instead of </code></pre> <p>Instead directly return the promise <code>return q...
Function returned undefined, expected Promise or value. although i am returning snapshot.val();
android|firebase|google-cloud-functions
-1
52
3
53,707,364
53,707,364
1
true
2018-12-10T13:39:51.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Function returned undefined, expected Promise or value. although i am returning snapshot.val();<p>I am writing a cloud function for my project . its being la...
53,728,711
Loading data from different models<p>I am trying to create a view where data is being loaded into from different models. On one side, I have line items for an order that are loaded as IEnumerable, similar to what you would do for the standard Index,</p> <p>I am then going with a new, partial view to get data from a di...
<p>It seems like you are trying to load a collection of <code>ShippingAddressFirstName</code> into a <code>ShippingAddressFirstName</code> which, I suppose, is intended for a name string.</p> <pre><code>ShippingAddressFirstName = DATADB.ShippingAddressList.Where(x =&gt; x.UserID == userID).Where(x =&gt; x.IsDefaultShi...
Loading data from different models
c#|asp.net-mvc|database|razor|controller
-1
27
1
53,729,850
53,729,850
1
true
2018-12-11T16:46:16.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Loading data from different models<p>I am trying to create a view where data is being loaded into from different models. On one side, I have line items for a...
53,739,285
Broadcast receiver only works when app is opened<p>Hi I created a auto sms application which sends SMS automatically when a firebase notification is received. I am able to send SMS extending <code>FirebaseMessagingService</code>. Now to get the sent status i created a broadcast reciever inside my main activity. Here i...
<p>did you register in manifest class.? if not then register your broadcast in manifest and use a separate class for broadcast you can read more from here. <a href="https://www.c-sharpcorner.com/UploadFile/8836be/how-to-create-global-broadcast-receiver-and-test-service-in/" rel="nofollow noreferrer">https://www.c-sharp...
Broadcast receiver only works when app is opened
android|broadcastreceiver
-1
528
2
53,739,373
53,739,373
1
true
2018-12-12T08:56:32.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Broadcast receiver only works when app is opened<p>Hi I created a auto sms application which sends SMS automatically when a firebase notification is received...
53,757,641
Using preg_match to get content between tags<p>I need some help using preg_match to get from this html code the name that is between “transferencia de” and “por” and also get the amount between “por” and “en su cuenta” thanks in advance.</p> <pre><code>&lt;span style=3D"font-weight:bold;color:#000000"&gt; Bancolombia ...
<pre><code>&lt;?php $data = 'Bancolombia in= forma recepci=C3=B3n transferencia de LUISA PEREZ por $999,000 en su cuenta *= 2465. 13/12/2018 02:11. Dudas 018000931987.'; preg_match('/(?&lt;=transferencia de)(.*)(?=por)/', $data, $name); echo $name[1]; preg_match('/(?&lt;=por)(.*)(?=en su cuenta)/', $data, $money); ...
Using preg_match to get content between tags
php
-1
30
2
53,757,777
53,757,777
1
true
2018-12-13T08:19:52.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using preg_match to get content between tags<p>I need some help using preg_match to get from this html code the name that is between “transferencia de” and “...
53,766,431
SQL GROUP BY Column Value<p>When selecting the below data I want to make it so that I can group by the columns so that there should be all "Y". The below image shows how this currently looks;</p> <p><a href="https://i.stack.imgur.com/ASCXs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ASCXs.png" a...
<pre><code>SELECT p.FirstName ,p.Surname ,CASE WHEN SUM(CASE WHEN a.ActivityName = 'Jumping' THEN 1 ELSE 0 END) &gt; 0 THEN 'Y' ELSE 'N' END AS 'Jumping' ,CASE WHEN SUM(CASE WHEN a.ActivityName = 'Dancing' THEN 1 ELSE 0 END) &gt; 0 THEN 'Y' ELSE 'N' ...
SQL GROUP BY Column Value
sql|group-by|ssms
-1
30
2
53,766,510
53,766,510
1
true
2018-12-13T16:42:28.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL GROUP BY Column Value<p>When selecting the below data I want to make it so that I can group by the columns so that there should be all "Y". The below ima...
53,790,490
Progressive point to point walk plotting in R<p>How can I to plot a progressive walk from point to point?</p> <p>Lets have p1 =[1,0], p2=[0,1], p3=[1,1]. Plot should first draw a line from p1 to p2 showing the direction, wait for a second, then draw another line from p2 to p3 and it goes on if you have more data.</p> ...
<p>One option is to use arrows. Fist you need to create a plot giving the data you want. Then you can draw lines to connect your points. Let say you have random uniform arrays of x,y. Set the limit to decide how many points you want to plot. Although I placed the points immediately ( I could not place the grid properly...
Progressive point to point walk plotting in R
r|plot|direction|timestep
-1
68
1
53,790,883
53,790,883
1
true
2018-12-15T07:35:37.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Progressive point to point walk plotting in R<p>How can I to plot a progressive walk from point to point?</p> <p>Lets have p1 =[1,0], p2=[0,1], p3=[1,1]. Pl...
53,796,329
how to make pivot more than one column value sql<p>I have this table </p> <pre><code> country weeek quantity 1 quantity 2 quantity 3 0 1 sa 3235 365 123 1 1 su 6698 32135 1234 2 1 mo 1565 5689 12345 </code></pre> <p>...
<p>Just use conditional aggregation:</p> <pre><code>select country, sum(case when week = 'sa' then quantity1 else 0 end) as sa1, sum(case when week = 'su' then quantity1 else 0 end) as su1, sum(case when week = 'mo' then quantity1 else 0 end) as mo1, sum(case when week = 'sa' then quantity2...
how to make pivot more than one column value sql
sql|sql-server|pivot
-1
34
1
53,796,609
53,796,609
1
true
2018-12-15T19:00:34.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to make pivot more than one column value sql<p>I have this table </p> <pre><code> country weeek quantity 1 quantity 2 quantity 3 0 1 ...
53,799,455
Load URL without Search Query<p>DJANGO/PYTHON I am trying to load <a href="http://127.0.0.1:8000/catalog/" rel="nofollow noreferrer">http://127.0.0.1:8000/catalog/</a>. If the user enters data into the on this page, the form sends a search_query to the database. My problem is that <a href="http://127.0.0.1:8000/catalo...
<p>you try to access GET query when it doesn't exists. you must check if search_query exists in request.GET or simply use .get function on it. see below:</p> <pre><code>def index(request): . . . num_of_word = [] bookInstance_titles = [] bookInstance_ids = [] num_of_word = BookInstance.objects....
Load URL without Search Query
python|django|http|search|get
-1
41
2
53,799,478
53,799,478
1
true
2018-12-16T04:34:18.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Load URL without Search Query<p>DJANGO/PYTHON I am trying to load <a href="http://127.0.0.1:8000/catalog/" rel="nofollow noreferrer">http://127.0.0.1:8000/ca...
53,799,912
unable to replace digits with space on text preprocessing<p>Iam trying to pre-process text as a part of NLP.I am new to it.I am not getting why i am unable to replace the digits</p> <pre><code>para = "support leaders around the world who do not speak for the big polluters, but who speak for all of humanity, for the i...
<p>For replacing all digits from a string, you can the <code>re</code> module, for matching and replacing regex patterns. From your last example:</p> <pre><code>import re processed_words = [re.sub('\d',' ', word) for word in tokenized] </code></pre>
unable to replace digits with space on text preprocessing
python|nlp
-1
552
3
53,800,939
53,800,939
1
true
2018-12-16T06:21:56.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: unable to replace digits with space on text preprocessing<p>Iam trying to pre-process text as a part of NLP.I am new to it.I am not getting why i am unable t...
53,796,776
How to get features/attributes of a data point if its distance from the cluster's center is known?<p>I have a <code>DataFrame X</code> with columns <code>A</code>, <code>B</code> and <code>C</code>. I applied <code>kMeans</code> clustering with <code>n_clusters</code>=4 and got <code>euclidean distance</code> of 10 nea...
<p>Use <code>argsort</code> if you want to get the <em>indexes</em> of the smallest values.</p> <p>Mapping distances to points is complicated.</p>
How to get features/attributes of a data point if its distance from the cluster's center is known?
python-3.x|machine-learning|cluster-analysis|k-means
-1
41
1
53,803,782
53,803,782
1
true
2018-12-15T20:00:32.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get features/attributes of a data point if its distance from the cluster's center is known?<p>I have a <code>DataFrame X</code> with columns <code>A</...
53,781,266
Paypal pay for invoice with REST API<p>Here is the situation. Someone has PayPal account and sends invoice to me. I have to PAY for the invoice. If I log into my account the invoice is there.</p> <p>Can I list the invoices that are sent to me via API and pay for them with API request?</p>
<p>Unfortunately, no, this is not something that is available right now.</p>
Paypal pay for invoice with REST API
list|api|paypal|payment|invoice
-1
34
1
53,807,404
53,807,404
1
true
2018-12-14T14:04:58.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Paypal pay for invoice with REST API<p>Here is the situation. Someone has PayPal account and sends invoice to me. I have to PAY for the invoice. If I log int...
53,587,300
Adonis js- Load common header footer,Internal css and Internal js to view<p>I am new to Adonisjs and I am trying to load header, footer and the view file from controller in a common template and display the data from controller in the view file.</p> <p>Kindly help me get through this. Thanks</p>
<p>you can try use <code>@include('yourfolder.view')</code>, refer this documentation <a href="https://edge.adonisjs.com/docs/partials" rel="nofollow noreferrer">https://edge.adonisjs.com/docs/partials</a></p>
Adonis js- Load common header footer,Internal css and Internal js to view
model-view-controller|adonis.js
-1
318
1
53,810,246
53,810,246
1
true
2018-12-03T04:02:25.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adonis js- Load common header footer,Internal css and Internal js to view<p>I am new to Adonisjs and I am trying to load header, footer and the view file fro...
53,785,371
multiasting TypeError: argument must be an int, or have a fileno() method<p>I have a problem, I've created multicasting with gui and my program need <code>sys.stdin</code> but I have text - string in my gui. </p> <pre><code>sockets_list = [sys.stdin, server] read_sockets,write_socket, error_socket = select.select(so...
<p>The problem here as stated by the author of the question is that "the code doesn't work". While the author is trying to find a solution for a particular error that results in a particular exception throw, fixing it alone won't solve the problem of the code not working. It also appears that the author is only beginni...
multiasting TypeError: argument must be an int, or have a fileno() method
python-2.7|sockets|multicastsocket
-1
571
2
53,814,002
53,814,002
1
true
2018-12-14T18:51:19.157Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: multiasting TypeError: argument must be an int, or have a fileno() method<p>I have a problem, I've created multicasting with gui and my program need <code>sy...
53,786,093
Should i use Cloudflare Accelerated Mobile Links option if I already have amp implemented on my Website since 2015?<p>I have WordPress Website with Google AMP already implemented and working.</p> <p>Currently, I transfered to CloudFlare and saw the AMP feature.</p> <p>What should I do now? Should I enable it or not?<...
<p>That's really up to the use cases you want to cater and user traffic sources. Eg. is your primary traffic coming from organic search? Your site's URLs should have been cached and served from AMP Cache already. Eg. do a lot of users open your site's URLs in a webview? maybe you can give Cloudflare a shot here?</p> <...
Should i use Cloudflare Accelerated Mobile Links option if I already have amp implemented on my Website since 2015?
wordpress|dns|cdn|amp-html|cloudflare
-1
273
1
53,953,473
53,953,473
1
true
2018-12-14T19:51:02.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Should i use Cloudflare Accelerated Mobile Links option if I already have amp implemented on my Website since 2015?<p>I have WordPress Website with Google AM...
53,530,190
Raspberry Pi and Elk stack<p>Would it be possible to setup a distributed ELK stack on multiple raspberry pi?</p> <p>I know that it is possible to run the ELK stack on a raspberry pi but I'm interested if anyone as a guess on how it would perform and the general system architecture it would require?</p> <p>Also I am a...
<p>Possible? <a href="https://www.reddit.com/r/raspberry_pi/comments/3s1ypn/i_set_up_an_elasticsearch_cluster_using_raspberry/" rel="nofollow noreferrer">Definitely</a> <a href="https://www.google.ch/search?q=elasticsearch+raspberry" rel="nofollow noreferrer">Yes</a>. </p> <p>Efficient? Probably not! Because depending...
Raspberry Pi and Elk stack
elasticsearch|raspberry-pi|logstash|kibana
-1
786
1
53,531,964
53,531,964
2
true
2018-11-29T00:38:26.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Raspberry Pi and Elk stack<p>Would it be possible to setup a distributed ELK stack on multiple raspberry pi?</p> <p>I know that it is possible to run the EL...
53,578,192
Laravel - Grouping eloquent query by date and user<p>I have the following database table 'observations' <a href="https://i.stack.imgur.com/D6boL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D6boL.jpg" alt="enter image description here"></a></p> <p>I am trying to make table by group the observatio...
<p>Usually you can start from the known SQL query statement to get these results and use the <a href="https://laravel.com/api/5.7/Illuminate/Database/Query/Builder.html" rel="nofollow noreferrer">methods provided in Query Builder</a>.</p> <pre><code>&gt;&gt;&gt; $observationsQuery = DB::table('observations') -&gt;se...
Laravel - Grouping eloquent query by date and user
mysql|laravel|group-by|eloquent
-1
47
1
53,578,255
53,578,255
2
true
2018-12-02T07:12:43.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel - Grouping eloquent query by date and user<p>I have the following database table 'observations' <a href="https://i.stack.imgur.com/D6boL.jpg" rel="no...
53,578,367
No Handler for Type Keyword declared on Field ElasticSearch 6.4.3<p>I wonder what the cause is. This is the code </p> <pre><code>package main import ( "context" "errors" "fmt" "time" "github.com/olivere/elastic" ) const ( indexName = "applications" docType = "log" appName ...
<p>You have misspelled <code>"keyword"</code> as <code>"keyowrd"</code> for <code>"message"</code> field. Corrected below:</p> <pre><code>{ "mappings" : { "log" : { "properties" : { "app" : { "type" : "keyword" }, "message" : { "type" : "keywo...
No Handler for Type Keyword declared on Field ElasticSearch 6.4.3
elasticsearch|go
-1
1,085
1
53,578,463
53,578,463
2
true
2018-12-02T07:43:07.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: No Handler for Type Keyword declared on Field ElasticSearch 6.4.3<p>I wonder what the cause is. This is the code </p> <pre><code>package main import ( ...
53,579,173
Remove any text before the last iteration of a '/' character with javascript / jquery<p>Let's assume I have something like this in the DOM: </p> <pre><code>&lt;label&gt;Canvas Mens Shirt / Black / Medium&lt;/label&gt; &lt;label&gt;Canvas Lady's Shirt / Black / Large&lt;/label&gt; </code></pre> <p>I want to remove eve...
<p>You could use <code>replace</code> with a regular expression. To also deal with the case where you would have more than one such label, use <code>each</code> to repeat the operation for all of them:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snip...
Remove any text before the last iteration of a '/' character with javascript / jquery
javascript|jquery
-1
38
2
53,579,458
53,579,458
2
true
2018-12-02T10:00:05.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove any text before the last iteration of a '/' character with javascript / jquery<p>Let's assume I have something like this in the DOM: </p> <pre><code>...
53,587,253
Thread.interrupted is changed after submitting a task<p>I observed a weird phenomenon where the value of <code>Thread.interruptted()</code> is changed after submitting a task, let me explain it using code.</p> <pre><code>package com.example; import com.google.common.util.concurrent.ThreadFactoryBuilder; import java.u...
<p><a href="https://docs.oracle.com/javase/tutorial/essential/concurrency/interrupt.html" rel="nofollow noreferrer">https://docs.oracle.com/javase/tutorial/essential/concurrency/interrupt.html</a>:</p> <blockquote> <p>When a thread checks for an interrupt by invoking the static method <code>Thread.interrupted</cod...
Thread.interrupted is changed after submitting a task
java
-1
29
1
53,587,289
53,587,289
2
true
2018-12-03T03:56:20.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Thread.interrupted is changed after submitting a task<p>I observed a weird phenomenon where the value of <code>Thread.interruptted()</code> is changed after ...
53,702,289
Compare three columns and remove entire row in Excel<p>I have big list with data that has more than 10 columns. I need to compare three of them and display some value like "Duplicate" that I can search then and delete or delete entire row straight away. The problem is that one of the result should stay and duplicates r...
<p>putting <code>=IF(COUNTIFS($F$1:$F1,$F1,$G$1:$G1,$G1,$H$1:$H1,$H1)&gt;1,"Duplicate","")</code> in Q1, then drag downwards should do. It test if any set of the 3 columns (F,G,H) content is repeated more than once, starting from row 1. if more than once, it put in the "Duplicate" text.</p>
Compare three columns and remove entire row in Excel
excel|duplicates
-1
60
1
53,702,629
53,702,629
2
true
2018-12-10T08:59:00.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Compare three columns and remove entire row in Excel<p>I have big list with data that has more than 10 columns. I need to compare three of them and display s...
53,622,771
`fold-create-marker` with default `{{{` marker not working properly when function definition contains `*`<p>I have this setting in vim</p> <pre><code>foldmarker={{{,}}} commentstring=/*%s*/ foldmethod=marker </code></pre> <p>I want to create new marker using <code>zf</code>, which does work for</p> <pre><code>void f...
<p>That strange behavior is caused by the default value of the <a href="https://vimhelp.appspot.com/options.txt.html#%27comments%27" rel="nofollow noreferrer"><code>:help 'comments'</code></a> option, in particular the <code>mb:*</code> part.</p> <p><a href="https://vimhelp.appspot.com/change.txt.html#format-comments"...
`fold-create-marker` with default `{{{` marker not working properly when function definition contains `*`
c|vim|folding
-1
69
1
53,723,398
53,723,398
2
true
2018-12-04T23:09:23.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: `fold-create-marker` with default `{{{` marker not working properly when function definition contains `*`<p>I have this setting in vim</p> <pre><code>foldma...
53,735,358
Implement function call after user taps on screen rhythmically<p>Have a question, would like to implement a function call, wherein the user taps the screen in a rhythm like Morse Code, then we can execute the function. </p> <p>(building a little easter egg thing) Would be building this for both IOS and Android</p> <p...
<p>There is absolutelly no mistery...</p> <p>you will have an list of touch timestamps and for every time users taps the desired item you add one more </p> <pre><code> public void onClickListener(){ rhythm.add(System.currtentTimemillis()); if(findPattern(rhythm)) doEasterEgg(); } </code></pre> <p>ho...
Implement function call after user taps on screen rhythmically
java|android|ios|swift
-1
73
1
53,735,481
53,735,481
2
true
2018-12-12T02:48:02.917Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Implement function call after user taps on screen rhythmically<p>Have a question, would like to implement a function call, wherein the user taps the screen i...
53,748,513
bootstrap col position wont show in the beside, always show to the bottom<p>sorry if i new to this web programming, why my product display wont show in the beside, and always show to the bottom, im already using col-md-3 to make the prodcut show sideaways, but the product shows in bottom.</p> <p><a href="https://i.sta...
<p>Each iteration of your while loop is starting a new row. Place your while loop within it.</p>
bootstrap col position wont show in the beside, always show to the bottom
php|html|css|twitter-bootstrap|image
-1
19
1
53,748,613
53,748,613
2
true
2018-12-12T17:39:30.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: bootstrap col position wont show in the beside, always show to the bottom<p>sorry if i new to this web programming, why my product display wont show in the b...
53,789,417
Error with single quoted string and mysqli_real_scape_string<p>I am trying to save a string on my database: <code>italo's house</code></p> <p>but it's not working. my code:</p> <pre><code>include 'conexao.php'; $organizacao = mysqli_real_escape_string($con, $_POST['organizacao']); //italo's house $result = mysqli_q...
<p>Using a prepared statement will resolve the issue with quotes and at the same time help protect you from SQL injection. Try this:</p> <pre><code>$organizacao = $_POST['organizacao']; $stmt = $con-&gt;prepare("update organizacao set organizacao = ?"); $stmt-&gt;bind_param('s', $organizacao); if (!$stmt-&gt;execute()...
Error with single quoted string and mysqli_real_scape_string
php|mysqli
-1
52
1
53,789,945
53,789,945
2
true
2018-12-15T04:02:48.813Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error with single quoted string and mysqli_real_scape_string<p>I am trying to save a string on my database: <code>italo's house</code></p> <p>but it's not w...
53,602,524
App crash if use NSMutableArray instead of NSArray<pre><code>plot2.graphPoints = graphPointsMutableArray; // plot2.graphPoints = @[LMGraphPointMake(CGPointMake(1, 25), @"1", @"34.5")]; </code></pre> <p>If i assign plot2.graphPoints directly an NSArray it is working fine like in the line #2, but if i assign it a NSM...
<p>Your two lines are not equivalent.</p> <p>This:</p> <pre><code> plot2.graphPoints = @[LMGraphPointMake(CGPointMake(1, 25), @"1", @"34.5")]; </code></pre> <p>Assigns an <code>NSArray</code> containing a single <code>LMGraphPoint</code> to <code>plot2.graphPoints</code></p> <p>while this:</p> <pre><code>[graphPoi...
App crash if use NSMutableArray instead of NSArray
objective-c|linegraph
-1
50
1
53,602,719
53,602,719
3
true
2018-12-03T21:55:22.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: App crash if use NSMutableArray instead of NSArray<pre><code>plot2.graphPoints = graphPointsMutableArray; // plot2.graphPoints = @[LMGraphPointMake(CGPoin...
53,677,264
Python merge 2 vector (shape(1,10,1) arrays into matrix (shape(2,10,1)<p>I have my array:</p> <pre><code>A= np.array(zeros((1,10,1))) </code></pre> <p>and </p> <pre><code>B = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] </code></pre> <p>I need to merge A and B into C:</p> <pre><code>C = [[[0], [0], [0], [0], [0], [0], [0], [0],...
<p>IIUC, assuming <code>A = np.zeros(1,9,1)</code> based on your expected output</p> <pre><code>np.concatenate([A, np.array(B).reshape(A.shape)], axis=0) </code></pre>
Python merge 2 vector (shape(1,10,1) arrays into matrix (shape(2,10,1)
python|arrays|numpy
-1
40
1
53,677,303
53,677,303
3
true
2018-12-07T21:53:57.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python merge 2 vector (shape(1,10,1) arrays into matrix (shape(2,10,1)<p>I have my array:</p> <pre><code>A= np.array(zeros((1,10,1))) </code></pre> <p>and ...
53,720,902
VBA: Split sheet on certain rule<p>I need help with VBA which will split current sheet <strong>Test1</strong> depending values from A rows.</p> <p><strong>Test1</strong> sheet is in format:</p> <p><a href="https://i.stack.imgur.com/6WRq4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6WRq4.png" al...
<p>With the below code the output will be:</p> <p>Two Sheets:</p> <ol> <li>Test1-1</li> <li>Test1-4</li> </ol> <p>If you want to get this output:</p> <ol> <li>Test1-1</li> <li>Test1-2</li> </ol> <p>You should:</p> <ol> <li>Sort data based on the first column</li> <li>Create another variable with initial value 1 a...
VBA: Split sheet on certain rule
excel|vba
-1
69
1
53,721,587
53,721,587
3
true
2018-12-11T09:20:44.250Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VBA: Split sheet on certain rule<p>I need help with VBA which will split current sheet <strong>Test1</strong> depending values from A rows.</p> <p><strong>T...
53,702,638
A library to get position with accelerometer gyro and magneto<p>I'm using a sensor which is a accelerometer+gyro+magneto (all in one chip). I was wondering if anyone knows a library which can help me get the position from those values.</p> <p>I mean starting with a 0.0 (lat/long) and updating values. If there are no l...
<p>If it can help anyone, I've found the exact topic I was looking for. Here it is :</p> <p><a href="https://lb.raspberrypi.org/forums/viewtopic.php?t=127930" rel="nofollow noreferrer">https://lb.raspberrypi.org/forums/viewtopic.php?t=127930</a></p> <p>[EDITED]</p> <p>Here's the idea : </p> <p><a href="https://i.st...
A library to get position with accelerometer gyro and magneto
python|position|accelerometer
-1
1,568
1
53,739,027
53,739,027
3
true
2018-12-10T09:21:48.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: A library to get position with accelerometer gyro and magneto<p>I'm using a sensor which is a accelerometer+gyro+magneto (all in one chip). I was wondering i...
53,750,948
CodePen: How to swap these blocks in this specific order, in responsive?<p>Consider these 4 blocks.</p> <p><a href="https://i.stack.imgur.com/xieL2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xieL2.png" alt="enter image description here"></a></p> <p>In HTML, they are ordered like that: first, t...
<p>possible with <code>flexbox</code> and <code>order</code></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>#parent { width: 1400px; max-width: 100%; margin: auto; ...
CodePen: How to swap these blocks in this specific order, in responsive?
css|flexbox|responsive
-1
70
2
53,751,057
53,751,057
3
true
2018-12-12T20:36:00.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CodePen: How to swap these blocks in this specific order, in responsive?<p>Consider these 4 blocks.</p> <p><a href="https://i.stack.imgur.com/xieL2.png" rel...
53,778,627
How to create controls based on the backend response in sapui5?<p>I want to generate a UI based on backend data provided in a service.</p> <p>My Service will look like below:</p> <pre><code> { "ControlData": { "results": [{ "Label": "Gender?", "Type": "COMBOBOX" }], ...
<p>You need to use factory functions</p> <p><a href="https://ui5.sap.com/#/topic/335848ac1174435c901baaa55f6d7819" rel="nofollow noreferrer">Using Factory Functions </a></p> <p><a href="https://ui5.sap.com/#/topic/284a036c8ff943238fb65bf5a2676fb7" rel="nofollow noreferrer">Step 15: Aggregation Binding Using a Factory...
How to create controls based on the backend response in sapui5?
javascript|odata|sapui5
-1
53
1
53,794,335
53,794,335
3
true
2018-12-14T11:11:04.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create controls based on the backend response in sapui5?<p>I want to generate a UI based on backend data provided in a service.</p> <p>My Service wil...
53,691,860
Django: AttributeError: 'AdminSite' object has no attribute 'reqister'<p>So I am starting with Django and I am working on the Django tutorial-project, that includes a poll application. The tutorial gave me the Code: from django.contrib import admin</p> <pre><code>from .models import Question admin.site.register(Q...
<p>The correct method name is <code>register</code>, you typed <code>reqister</code>.</p>
Django: AttributeError: 'AdminSite' object has no attribute 'reqister'
python|django
-1
4,872
1
53,691,921
53,691,921
4
true
2018-12-09T11:30:04.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django: AttributeError: 'AdminSite' object has no attribute 'reqister'<p>So I am starting with Django and I am working on the Django tutorial-project, that i...
53,719,432
How to get non-null sorted ascending data from Spark DataFrame?<p>I load the data into data frames where one of the columns is <code>zipCode</code> <code>(String type).</code> I wonder how to get non-null values for that column in ascending order in Scala? Many thanks in advance.</p>
<pre><code>scala&gt; val df = Seq("2", "1", null).toDF("x") df: org.apache.spark.sql.DataFrame = [x: string] scala&gt; df.orderBy($"x".asc_nulls_last).show +----+ | x| +----+ | 1| | 2| |null| +----+ </code></pre>
How to get non-null sorted ascending data from Spark DataFrame?
apache-spark|apache-spark-sql|spark-streaming
-1
1,338
1
53,719,755
53,719,755
4
true
2018-12-11T07:39:37.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get non-null sorted ascending data from Spark DataFrame?<p>I load the data into data frames where one of the columns is <code>zipCode</code> <code>(St...
53,759,077
C# Trying to get a list of questions from one class into my Main() class loop<p>I'm trying to call questions that I made up from one class and then implement them into my <code>Main()</code> method. The part that I am having trouble with is having the list read and looped through in my <code>Main()</code> method. </p> ...
<p>First of all, you assign to a variable result of method, which doesn't have return type! So it won't return anything, thus you cannot assign result of that method to variable.</p> <p>But your intention is clearly to return <code>List</code> in that method, so you should write your method like this:</p> <pre><code>...
C# Trying to get a list of questions from one class into my Main() class loop
c#|.net
-1
63
4
53,759,212
53,759,212
4
true
2018-12-13T09:52:47.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# Trying to get a list of questions from one class into my Main() class loop<p>I'm trying to call questions that I made up from one class and then implement...
53,730,731
Sorting a table result based on a column but without it's natural ordering?<p>I want to order the employees based on their designation; i.e Not the natural order of the job_name (Alphabetical) but in the following order </p> <blockquote> <p>President -> Manager -> Clerk -> Salesman.</p> </blockquote> <p>I was think...
<p>You can use a <code>case</code> statement for that:</p> <pre><code>select * from yourtable order by case when job_name = 'President' then 1 when job_name = 'Manager' then 2 when job_name = 'Clerk' then 3 when job_name = 'Salesman' then 4 end, emp_name </code></pr...
Sorting a table result based on a column but without it's natural ordering?
mysql|sql
-1
57
2
53,730,763
53,730,763
5
true
2018-12-11T19:02:29.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sorting a table result based on a column but without it's natural ordering?<p>I want to order the employees based on their designation; i.e Not the natural o...
53,575,385
How to implement info about error when send message in MessageKit? SWIFT<p>How to implement info about error when send message in MessageKit? I need show info when message not send. Any ideas?</p>
<blockquote> <p>How to implement info about error when send message in <strong><a href="https://github.com/MessageKit/MessageKit" rel="noreferrer">MessageKit</a></strong> ?</p> </blockquote> <p>To display information about a message with <strong><a href="https://github.com/MessageKit/MessageKit" rel="noreferrer">Mes...
How to implement info about error when send message in MessageKit? SWIFT
ios|swift|messagekit
-1
1,074
1
53,578,336
53,578,336
7
true
2018-12-01T21:54:03.673Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to implement info about error when send message in MessageKit? SWIFT<p>How to implement info about error when send message in MessageKit? I need show in...
53,648,097
Linux fonts missing. Stackoverflow code samples displaying completely blank<p>Help. I cannot view code samples in stackoverflow. I am running ubuntu 14.04 and mozilla firefox. Even as I am typing this, I cannot see what I am typing in the body box, allthough I can see the preview output. There seems to be an issue wit...
<p>Looks like the issue relates to mozilla firefox. The Fonts are appearing in chrome. Update: the problem was resolved by reinstalling firefox.</p>
Linux fonts missing. Stackoverflow code samples displaying completely blank
linux|ubuntu|fonts
-1
42
1
53,649,130
53,649,130
-1
true
2018-12-06T09:21:20.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Linux fonts missing. Stackoverflow code samples displaying completely blank<p>Help. I cannot view code samples in stackoverflow. I am running ubuntu 14.04 a...
53,657,166
Facing problem in storing User data in Angular<p>I am working on a Angular based application , I want to store data of all the fields of the form , without using service because for that I need to require a server side Language like php and .net which I don't know. </p> <p>so can I store form data using other way from...
<p>You could set up a Firebase Environment and use its real-time database. Firebase is a Backend as a Service (BaaS), so it’s exactly what you need.</p>
Facing problem in storing User data in Angular
angular|ionic-framework|ionic2|ionic3|angular5
-1
30
1
53,657,207
53,657,207
-1
true
2018-12-06T17:55:50.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Facing problem in storing User data in Angular<p>I am working on a Angular based application , I want to store data of all the fields of the form , without u...
53,787,360
How to SELECT three data results based on comparission of one data item between two tables?<p>I am new to databases;</p> <p>I am trying to query (SELECT) <strong><em>naam</em></strong>, <strong><em>functie</em></strong> and <strong><em>schaal</em></strong> (salary-scale) of an employee.</p> <p>But there is a catch, b...
<p>You need a left [outer] join to do that, as in:</p> <pre><code>select w.wnaam, w.functie, s.schaal from werknemer w left join s_schaal s on w.salaris &gt;= s.ondergrens and w.salaris &lt;= s.bovengrens </code></pre>
How to SELECT three data results based on comparission of one data item between two tables?
mysql|sql
-1
39
1
53,787,478
53,787,478
-1
true
2018-12-14T21:52:02.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to SELECT three data results based on comparission of one data item between two tables?<p>I am new to databases;</p> <p>I am trying to query (SELECT) <s...
53,520,189
Is it possible to communicate between two android telephones through a USB hub?<p>I have the following:</p> <p>Two Android devices connected to a USB-hub with its own power supply that supplies power to the two Android devices. The hub is also connected to my computer and both of them can be found by the Android Debug...
<p>Unfortunately, due to the electonics and security behind the usb-HUB it is not possible to make two devices communicate directly. Now you have two ways: the difficult one is to do sone tricks with your pc in order to make a virtual bridge between you two devices, the simplier one is to make sure that at least one of...
Is it possible to communicate between two android telephones through a USB hub?
android|usb
-1
63
1
53,520,781
53,520,781
0
true
2018-11-28T13:07:04.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to communicate between two android telephones through a USB hub?<p>I have the following:</p> <p>Two Android devices connected to a USB-hub wi...
53,545,761
How to remove the echo command from the Linux system?<p>I removed the file </p> <blockquote> <p>/usr/bin/echo</p> </blockquote> <p>But still the echo commands executes normally after, even though when I execute</p> <pre><code>$ which echo </code></pre> <p>It says that it can't find it.</p> <p>What else can i do ...
<p><code>which</code> searches for a name in the path. It does not tell you how a shell will interpret a name.</p> <p>Use <code>type</code> instead:</p> <pre><code>$ type echo echo is a shell builtin </code></pre> <p>Since it's built into this shell, <code>echo</code> commands do not use or require an external execu...
How to remove the echo command from the Linux system?
linux|echo
-1
1,581
1
53,545,790
53,545,790
0
true
2018-11-29T18:53:04.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove the echo command from the Linux system?<p>I removed the file </p> <blockquote> <p>/usr/bin/echo</p> </blockquote> <p>But still the echo com...
53,571,086
Generating a Board in python for a table game<p>I have to generate a board like this in python.</p> <p>This is the desired outcome:</p> <pre><code> 0 1 2 3 4 5 6 7 8 9 0 1 2 0 * * * 1 * D * 2 * D * 3 * D * 4 * D * 5 *...
<p>Strangely enough I got a lot of errors trying to compile your code: indent errors, and somehow your code is able to run using <code>`..`</code> characters instead of the usual <code>".."</code> and <code>'..'</code>. I adjusted my code so it runs on my system; you may have to change it back.</p> <p>That said: you w...
Generating a Board in python for a table game
python|python-3.x
-1
306
2
53,572,322
53,572,322
0
true
2018-12-01T13:08:44.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Generating a Board in python for a table game<p>I have to generate a board like this in python.</p> <p>This is the desired outcome:</p> <pre><code> 0 1 2 ...
53,565,038
How do I have different fields/attributes dependent on multiple time-based fields/attributes in Microsoft Access?<p>Difficult to explain, but essentially: I am producing a database for a business where customers rent vehicles and perhaps drivers for a short period of time. I am struggling to prevent vehicles and drive...
<p>Your question is very high level in being about fundamental database application design. Yes one needs the 3 tables you identify. All tables should have an autonumber primary key. For this type of rental app it is always challenging to get a handle on managing the dates to avoid double booking - but it is a matter...
How do I have different fields/attributes dependent on multiple time-based fields/attributes in Microsoft Access?
ms-access|time|relational-database|primary-key|composite-primary-key
-1
46
1
53,572,783
53,572,783
0
true
2018-11-30T21:17:46.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I have different fields/attributes dependent on multiple time-based fields/attributes in Microsoft Access?<p>Difficult to explain, but essentially: I ...
53,584,487
Problem on displaying UIPickerView value on TextEditor swift<p>I'm having a problem displaying a value selected from a UIPickerView on a UITextField. I added all required functions to make it work but the textfield doesn't get updated. </p> <p>Here is the ViewController.swift code</p> <pre><code>@IBOutlet weak var re...
<p>You have the wrong <code>didSelectRow</code> signature so it is never called. You missed the <code>_</code>. Let Xcode complete the methods for you instead of trying to type them yourself.</p> <pre><code>func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) { </code></pre>
Problem on displaying UIPickerView value on TextEditor swift
ios|swift|uipickerview
-1
45
1
53,584,516
53,584,516
0
true
2018-12-02T20:51:00.773Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problem on displaying UIPickerView value on TextEditor swift<p>I'm having a problem displaying a value selected from a UIPickerView on a UITextField. I added...
53,639,038
Is there any difference between these ways of importing in Python?<p>Is it the same in Python ?</p> <pre><code>import time.sleep </code></pre> <p>and </p> <pre><code>from time import sleep </code></pre> <p>Can anyone describe what is the difference between those. </p>
<p>If <code>time.sleep</code> is a module or a package, then <code>import time.sleep</code> and <code>from time import sleep</code> are almost the same.</p> <p>Both will import <code>time</code> and <code>time.sleep</code>, but they will bind different things to local variables.</p> <p>In a way, you could say that th...
Is there any difference between these ways of importing in Python?
python
-1
39
1
53,639,100
53,639,100
0
true
2018-12-05T18:59:10.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there any difference between these ways of importing in Python?<p>Is it the same in Python ?</p> <pre><code>import time.sleep </code></pre> <p>and </p> ...
53,644,160
Generate list of pointer to numpy array<p>I am implementing in Cython (0.29) and use numpy (1.15.1)</p> <pre><code>cdef double *proj_points[1024] cdef np.ndarray[double, ndim=2, mode="c"] array_ptr for i in range(2): array_ptr = np.ascontiguousarray(self.projection[i] @ points, dtype=np.float) proj_points[i] ...
<p>Pointers to arrays are not part of the Python reference counting scheme so they don't stop the array from being destroyed.</p> <p>Therefore, once <code>array_ptr</code> is reassigned at the start of each loop Python destroys the array it used to hold. This means that the previous element of <code>proj_points</code>...
Generate list of pointer to numpy array
arrays|numpy|pointers|cython
-1
257
1
53,648,484
53,648,484
0
true
2018-12-06T03:23:46.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Generate list of pointer to numpy array<p>I am implementing in Cython (0.29) and use numpy (1.15.1)</p> <pre><code>cdef double *proj_points[1024] cdef np.nd...
53,649,426
mysql query to array<p>Hi all My SQL is like that:</p> <pre><code>SELECT group_id,subject_id, GROUP_CONCAT(value order by group_id, subject_id, q_num SEPARATOR ';') val FROM `exam_answers` where exam_id=6 group by group_id,subject_id; </code></pre> <p>it is output is like that:</p> <pre><code>-------...
<pre><code>$response = $bdd-&gt;query('SELECT...'); $my_array=[]; while ($data = $response-&gt;fetch()) { $my_array[$data['group_id']][$data['subject_id']] = $data['val']; } </code></pre>
mysql query to array
php|mysql|arrays
-1
33
1
53,649,687
53,649,687
0
true
2018-12-06T10:34:24.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: mysql query to array<p>Hi all My SQL is like that:</p> <pre><code>SELECT group_id,subject_id, GROUP_CONCAT(value order by group_id, subject_...
53,655,671
how to convert utc time ti ist tim in c#<p>my server is in other country . so i'm storing time in utc in c#. but i want to store in ist(indian standard time). how to save the time in ist? i want to store current datetime in ist timzone</p> <pre><code>gps.updatedDate = DateTime.UtcNow; </code></pre> <p>datatype of upd...
<p>You can get the list of possible timezones <a href="https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones" rel="nofollow noreferrer">here</a>.</p> <p>For example, for the <code>(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna</code> you could to this way:</p> <pre><co...
how to convert utc time ti ist tim in c#
c#|datetime
-1
834
1
53,655,766
53,655,766
0
true
2018-12-06T16:24:50.907Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to convert utc time ti ist tim in c#<p>my server is in other country . so i'm storing time in utc in c#. but i want to store in ist(indian standard time)...
53,678,694
how to build clusters that are approximately balanced in size in sklearn<p>As seen above,how to build clusters that are approximately balanced in size in sklearn?I have a question,clustering is done according to certain rules,Why can we specify the number in cluster?Anyway, I want to know how to achieve this step.</p>
<p>Some methods (for example, non-sklearn's HDBSCAN: <a href="https://hdbscan.readthedocs.io/en/latest/parameter_selection.html" rel="nofollow noreferrer">https://hdbscan.readthedocs.io/en/latest/parameter_selection.html</a>) have parameters like minimal_cluster_size. Probably, sklearn's DBSCAN's min_samples will work ...
how to build clusters that are approximately balanced in size in sklearn
python|scikit-learn|cluster-computing
-1
530
2
53,679,251
53,679,251
0
true
2018-12-08T01:24:57.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to build clusters that are approximately balanced in size in sklearn<p>As seen above,how to build clusters that are approximately balanced in size in skl...
53,681,505
Javascript gives me wrong image name from php listing<p>so, I'm beginner in javascript and I don't know why it gives me wrong image src. Actually it gives me just the src of first image from php listing.</p> <p>Here's my code:</p> <pre><code>&lt;php $files = glob("./images/*.*"); for ($i=0; $i&lt;count($files)...
<p>You are using html id attribute to get the image name, id means unique.But here all of your image ids are same, so you need to assign unique id for every elements. And change your code like this</p> <pre><code> &lt;?php $files = glob("./images/*.*"); for ($i=0; $i&lt;count($files); $i++) { $image = $files[$i];...
Javascript gives me wrong image name from php listing
javascript|php|html|image
-1
39
2
53,681,602
53,681,602
0
true
2018-12-08T10:16:17.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Javascript gives me wrong image name from php listing<p>so, I'm beginner in javascript and I don't know why it gives me wrong image src. Actually it gives me...
53,691,821
Python3: Adding equal elements together from json format<pre><code>Data = [{'Ferrari': 51078}, {'Volvo': 83245, 'Ferrari': 70432, 'Skoda': 29264, 'Lambo': 862}, {'Ferrari': 306415, 'Jeep': 4025, 'Saab': 2708, 'Lexus': 161}, {'Fiat': 27583, 'Maserati': 11030, 'Renault': 3194, 'Volvo': 259, 'Skoda': 164}, {'Ferrari': ...
<p>You can use <code>defaultdict</code>. The code below iterates over the list of dicts. Then taking out a random key-value pair until each dict is empty and summing the results.</p> <pre><code>from collections import defaultdict data = [{'Ferrari': 51078}, {'Volvo': 83245, 'Ferrari': 70432, 'Skoda': 29264, '...
Python3: Adding equal elements together from json format
json|python-3.x|list
-1
24
1
53,691,908
53,691,908
0
true
2018-12-09T11:25:11.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python3: Adding equal elements together from json format<pre><code>Data = [{'Ferrari': 51078}, {'Volvo': 83245, 'Ferrari': 70432, 'Skoda': 29264, 'Lambo': 8...
53,690,881
Before and after login, I want to use same URL but use different class based view<p>Before and after user login, URL is not changed in many websites. How should I implement this in Django? For example, <a href="http://example.com" rel="nofollow noreferrer">http://example.com</a> (show login page) → login → <a href="htt...
<p>Each URL can only be served by one view. Handling multiple actions (showing the index page and handling logins) on the same view will make it more complicated.</p> <p>In Django, the usual approach is to use a separate URL for the login.</p> <pre><code>urlpatterns = [ path('', UserIndexView.as_view(), name='ind...
Before and after login, I want to use same URL but use different class based view
python|django
-1
71
1
53,692,412
53,692,412
0
true
2018-12-09T09:18:13.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Before and after login, I want to use same URL but use different class based view<p>Before and after user login, URL is not changed in many websites. How sho...
53,737,758
Need create dynamic form in Angular 6<p><a href="https://stackblitz.com/edit/angular-h2syhv?file=src%2Fapp%2Fapp.component.ts" rel="nofollow noreferrer">https://stackblitz.com/edit/angular-h2syhv?file=src%2Fapp%2Fapp.component.ts</a></p> <p>My Requirement is to create a form with formFields array which is list of form...
<p>I see a lot of issues with your implementation. So I decided to create my own.</p> <p>What you're looking for is to create a <code>FormArray</code> with <code>FormGroup</code>s, where each <code>FormGroup</code> has <code>FormControl</code>s that are dynamically created.</p> <p>To do that, you can write your Compo...
Need create dynamic form in Angular 6
angular|angular-reactive-forms
-1
3,403
1
53,738,177
53,738,177
0
true
2018-12-12T07:09:41.770Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Need create dynamic form in Angular 6<p><a href="https://stackblitz.com/edit/angular-h2syhv?file=src%2Fapp%2Fapp.component.ts" rel="nofollow noreferrer">http...
53,740,584
I wanted to CREATE a Database Table, which datatype is better for storing alphanumeric values?<p>The variable must be able to contain a maximum of 12 alphanumeric characters and uniquely identify the row. For this which datatype do you advise?</p>
<p>For alphanumeric values obviously you will have to use varchar and to specify length use it like below</p> <p>YourField varchar(12)</p>
I wanted to CREATE a Database Table, which datatype is better for storing alphanumeric values?
database
-1
31
1
53,741,931
53,741,931
0
true
2018-12-12T10:07:36.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I wanted to CREATE a Database Table, which datatype is better for storing alphanumeric values?<p>The variable must be able to contain a maximum of 12 alphanu...
53,745,204
Function not changing the data frame<p>I've recently made a simple for loop that outputs the Max and Min of the past 5 prices and it works perfectly, creating 2 new columns showing MaxH and MinL: </p> <pre><code>for(i in 5:nrow(XBTUSD_df_s)){ XBTUSD_df_s$MaxH[i] = max(XBTUSD_df_s$Price[(i-(5-1)):i]) XBTUSD_df_s$MinL[i...
<p>You need to <code>return</code> the object from the function and then assign it later:</p> <pre><code>FindMaxMin = function(x, XBTUSD_df_s){ for(i in x:nrow(XBTUSD_df_s)){ XBTUSD_df_s$MaxH[i] = max(XBTUSD_df_s$Price[(i-(x-1)):i]) XBTUSD_df_s$MinL[i] = min(XBTUSD_df_s$Price[(i-(x-1)):i]) print(XBTUSD_d...
Function not changing the data frame
r|function|loops|for-loop|environment
-1
26
1
53,746,402
53,746,402
0
true
2018-12-12T14:27:45.860Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Function not changing the data frame<p>I've recently made a simple for loop that outputs the Max and Min of the past 5 prices and it works perfectly, creatin...
53,746,120
Organizing arrays within arrays<p>I'm having trouble finding a clue to this.</p> <p>I have a function that takes a list of JSON data and forms it into a php multidimensional array. I'm trying to plug this array into an add_theme_support function for Wordpress to add some color options.</p> <p>For some reason, the arr...
<p>The problem came from the addNewColors() function. It wasn't needed and the options in Gutenberg appear fine now. Pushing to a variable was un-needed. </p> <pre><code>add_theme_support('editor-color-palette', $new_palette); </code></pre>
Organizing arrays within arrays
php|arrays|json|wordpress|wordpress-gutenberg
-1
45
1
53,747,322
53,747,322
0
true
2018-12-12T15:18:48.703Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Organizing arrays within arrays<p>I'm having trouble finding a clue to this.</p> <p>I have a function that takes a list of JSON data and forms it into a php...
53,750,845
ios swift cannot invoke map with argument list oftype<p>I'm new in xCode (Swift) development and I'm trying to create the following structure:</p> <pre><code>struct artistSection : Comparable { var artist : String var vinyls : [Vinyl] var collapsed : Bool static func group(vinyls : [Vinyl]) -&gt; [artistSecti...
<p>You need to supply the input arguments to the initializer of <code>ArtistSection</code> in <code>map</code>.</p> <pre><code>struct ArtistSection:Comparable { var artist : String var vinyls : [Vinyl] var collapsed : Bool static func group(vinyls : [Vinyl]) -&gt; [ArtistSection] { let groups ...
ios swift cannot invoke map with argument list oftype
swift|dictionary
-1
35
1
53,751,003
53,751,003
0
true
2018-12-12T20:28:16.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ios swift cannot invoke map with argument list oftype<p>I'm new in xCode (Swift) development and I'm trying to create the following structure:</p> <pre><cod...
53,788,958
enter (sub) selection not firing<p>Given the following doc,</p> <p>running example here: <a href="https://blockbuilder.org/max-l/497143f7e012e488d413c43d098db462" rel="nofollow noreferrer">https://blockbuilder.org/max-l/497143f7e012e488d413c43d098db462</a></p> <pre><code>var svg = d3.select("body").append("svg") .a...
<p>Give the text some location</p> <pre><code> counter .enter() .append("text") .attr("class","counter") .attr("y", 50) .merge(counter) .text(c =&gt; c.counter); </code></pre>
enter (sub) selection not firing
d3.js
-1
25
1
53,789,390
53,789,390
0
true
2018-12-15T02:00:28.537Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: enter (sub) selection not firing<p>Given the following doc,</p> <p>running example here: <a href="https://blockbuilder.org/max-l/497143f7e012e488d413c43d098...
53,794,058
VLOOKUP with each 2 comparison arguments in Google Spreadsheets?<p>In Excel this is possible but in Google Spreadsheets somehow not. what else can you do?</p> <p>Comparison arguments:</p> <ul> <li><strong>comparison1:</strong> A1=1 and B1=1,</li> </ul> <p>Must be the same as</p> <ul> <li><strong>comparison2:</stron...
<p>Google Sheets is more transparent than Excel when it comes to combining different columns into an array. You can use {..}</p> <pre><code>=vlookup(A1&amp;B1,{C1&amp;D1,E1},2,false) </code></pre> <p>It's unusual to do a vlookup just on one row though - you can do it in an array the same way</p> <pre><code>=ArrayFor...
VLOOKUP with each 2 comparison arguments in Google Spreadsheets?
google-sheets
-1
47
1
53,795,314
53,795,314
0
true
2018-12-15T14:19:50.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VLOOKUP with each 2 comparison arguments in Google Spreadsheets?<p>In Excel this is possible but in Google Spreadsheets somehow not. what else can you do?</p...
53,505,648
Why do I have to add the Permission into the Manifest although I do request them on start<p>On startup I ask for permission with a Codeblock like this:</p> <pre><code> if (ContextCompat.checkSelfPermission(getContext(), Manifest.permission.WRITE_SETTINGS) != PackageManager.PERMISSION_GRAN...
<p>Becouse Google needs to know what permissions your app uses for multiple purposes. One of them is to show the app permissions on your app's store listing.</p> <p>Scanning all your codebase just to figure out what permissions your app is using is not really the best way to deal with it, is it?</p>
Why do I have to add the Permission into the Manifest although I do request them on start
android
-1
32
1
53,505,754
53,505,754
1
true
2018-11-27T18:07:12.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why do I have to add the Permission into the Manifest although I do request them on start<p>On startup I ask for permission with a Codeblock like this:</p> ...
53,507,389
python trim tab from file<p>I am importing a tab separated file. </p> <pre><code>import csv with open(logfile) as f: csvlines = csv.reader(f,delimiter='\t') for row in csvlines: print(row) prints [' mike john steve'] </code></pre> <p>Is there a way to have it print</p> <pre><...
<p>Unable to reproduce:</p> <pre><code>import csv logfile = "t.txt" with open(logfile,"w") as f: f.write('mike\tjohn\tsteve\n') f.write('mike john steve\n') # no tabs, just spaces with open(logfile) as f: csvlines = csv.reader(f,delimiter='\t') for row in csvlines: print(...
python trim tab from file
python-3.x|readfile
-1
36
1
53,507,449
53,507,449
1
true
2018-11-27T20:11:32.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: python trim tab from file<p>I am importing a tab separated file. </p> <pre><code>import csv with open(logfile) as f: csvlines = csv.reader(f,delimiter='...
53,518,955
How to generate array dynamically inside an array?<p>How can create array inside an array .For example suppose <strong>MainArray[]</strong> is the one I have defined and based on some conditions like </p> <pre><code>if(something happen){ then push object into array inside MainArray In other iteration make new array an...
<p>hope this is what you are looking for:</p> <pre><code>// pushes an array at the end of MainArray MainArray.push([]); // pushes elements into that newly created array inside MainArray MainArray[MainArray.length-1].push('whatever u want...'); </code></pre>
How to generate array dynamically inside an array?
javascript|arrays
-1
54
2
53,519,201
53,519,201
1
true
2018-11-28T11:57:43.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to generate array dynamically inside an array?<p>How can create array inside an array .For example suppose <strong>MainArray[]</strong> is the one I have...
53,536,192
MAX value of matrix and saving indexes in the same loop<p>I get a NxM sized matrix and I have to find the max value, the number of max values and the lines that contain it. I tired using three for{for{}} loops, but it took too long. This method seems to work for small inputs, but when I try it with a 1000x1000 matrix, ...
<p><code>int vekt[m];</code> is not standard C++, it is a variable length array (which some compilers allow as extension). Use <a href="https://en.cppreference.com/w/cpp/container/vector" rel="nofollow noreferrer"><code>std::vector</code></a> instead.</p> <p>That would also fix the <strong>bug</strong> you currently h...
MAX value of matrix and saving indexes in the same loop
c++|matrix|max
-1
65
3
53,536,753
53,536,753
1
true
2018-11-29T09:54:55.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MAX value of matrix and saving indexes in the same loop<p>I get a NxM sized matrix and I have to find the max value, the number of max values and the lines t...
53,386,228
Types of parameters 'err' and 'error' are incompatible. Type 'ExecException | null' is not assignable to type 'Error'<p><strong>Here is my program:</strong></p> <pre><code>import * as child_process from 'child_process' let global_npm_modules = '' const initial_command = 'npm ls -g --depth=0 --json' const shell = 'po...
<p>The type of the first argument of callback is defined as <code>ExecException | null</code> and <code>ExecException</code> extends <code>Error</code>. And since a callback function is provided by the programmer to the library and would be called by the library, it should cover all the possibilities of the arguments t...
Types of parameters 'err' and 'error' are incompatible. Type 'ExecException | null' is not assignable to type 'Error'
node.js|typescript
-1
2,365
2
53,550,461
53,550,461
1
true
2018-11-20T04:27:16.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Types of parameters 'err' and 'error' are incompatible. Type 'ExecException | null' is not assignable to type 'Error'<p><strong>Here is my program:</strong><...
53,556,041
I carn't work out how to use If statements with selenium<p>I am trying to make a Python script that will search a page for an element with an xpath and if it doesn't find it it will look for another xpath and if it doesn't find that it will print error. </p> <p>There are two possibilities of what the web page will giv...
<p>you can have <code>try-except</code> in <code>except</code> block, try this</p> <pre><code>try: elem1 = driver.find_element_by_xpath('/html/body/div/div[1]/div/div/h2') if elem1.is_displayed(): print ("elem1 found and displayed") else: print ("elem1 found but not displayed") except NoSuchElementExcep...
I carn't work out how to use If statements with selenium
python|selenium|selenium-webdriver|selenium-chromedriver
-1
45
1
53,556,418
53,556,418
1
true
2018-11-30T10:49:57.857Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I carn't work out how to use If statements with selenium<p>I am trying to make a Python script that will search a page for an element with an xpath and if it...
53,568,748
golang conversion between function accepting abstract interface and function accepting struct implementation<p>An issue I met when creating a layer on top of different version of implementations. The goal is to abstract out the implementation details and the caller doesn't need to care which implementation we are using...
<p>It seems that you are trying to design your classes using class hierarchies (like Java) which is really not how Go tackles OO. I really suggest you design your code around interfaces rather than trying to mimic inheritance. Since we cannot speculate on why you have such types, below is a minimal code snippet which w...
golang conversion between function accepting abstract interface and function accepting struct implementation
go
-1
257
1
53,569,953
53,569,953
1
true
2018-12-01T07:32:34.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: golang conversion between function accepting abstract interface and function accepting struct implementation<p>An issue I met when creating a layer on top of...
53,595,017
how to deep link to open default phone app in react native to call a person<p>I'm trying to open the default phone app from my react native app on a button press. when I searched the web I came to know about the deep linking. As I'm new to react native I don't have an idea how this works. So can anyone help?</p>
<p>I suggest you to use <code>canOpenUrl()</code> to handle errors and then <code>openUrl('tel:string_of_the_number_to_call')</code>, something like this:</p> <pre><code> const phoneNumber = '1232456'; Linking.canOpenURL(`tel:${phoneNumber}`) .then(supported =&gt; { if (!supported) { ...
how to deep link to open default phone app in react native to call a person
react-native
-1
2,305
1
53,595,096
53,595,096
1
true
2018-12-03T13:33:52.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to deep link to open default phone app in react native to call a person<p>I'm trying to open the default phone app from my react native app on a button p...
53,598,206
Trying to input text and values from excel into Python Lists<p>This is my code:</p> <pre><code>for i in range(1, maxRows+1): nameContent = str(sheet.cell(row = i, column = 1).value) nameList = [] nameList.append(nameContent) print(nameList) rateContent = float(sheet.cell(row = i, column = 3).value) r...
<p>You're redefining the list inside of the loop. This means at every iteration it resets the list to an empty list. Try to put the list definitions (<code>namelist = []</code>) outside of the loop.</p>
Trying to input text and values from excel into Python Lists
python|excel|list|openpyxl
-1
47
1
53,598,240
53,598,240
1
true
2018-12-03T16:49:01.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to input text and values from excel into Python Lists<p>This is my code:</p> <pre><code>for i in range(1, maxRows+1): nameContent = str(sheet.cell...
53,598,310
Getting data into highcharts stacked bar from an array<p>I'm having quite a bit of trouble getting data into a highchart.</p> <p>I want my chart to look like <a href="https://codepen.io/GeorgeBT/pen/pQYXyw" rel="nofollow noreferrer">this</a></p> <p>But rather than adding the data in like this:</p> <pre><code>series:...
<p><strong>You can try this mate</strong></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>let arr = [5, 2, 9] let objTemp = arr.reduce((output,current)=&gt;{ output.push({da...
Getting data into highcharts stacked bar from an array
javascript|highcharts
-1
27
1
53,598,642
53,598,642
1
true
2018-12-03T16:54:29.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting data into highcharts stacked bar from an array<p>I'm having quite a bit of trouble getting data into a highchart.</p> <p>I want my chart to look lik...
53,609,381
MySql Pivotal table query group by multiple columns<p>The below MySQL table looking something like this below.</p> <pre><code>consulted_on (DATE) consulted_by (VARCHAR) --------------------------------------------- 04/12/2018 Mr.Bob 04/12/2018 Mr.Jhon 04/12/2018 Mr.Bob 05/12...
<p>Please use Below query: </p> <pre><code>SELECT consulted_on, SUM(CASE WHEN (consulted_by='Mr.Bob') THEN 1 ELSE 0 END) AS Mr_Bob, SUM(CASE WHEN (consulted_by='Mr.Jhon') THEN 1 ELSE 0 END) AS Mr_Jhon, FROM table_name GROUP BY consulted_on </code></pre>
MySql Pivotal table query group by multiple columns
mysql|pivot
-1
46
1
53,609,979
53,609,979
1
true
2018-12-04T09:16:56.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySql Pivotal table query group by multiple columns<p>The below MySQL table looking something like this below.</p> <pre><code>consulted_on (DATE) consulte...
53,635,040
Looping JSON through nested array for to see if all values are equal<p>Basically I want to see how many people purchase the same vendor and how many purchased different brands together. I already know the brands beforehand</p> <p>I would like to loop through all the objects in this JSON response and if the "vendor" va...
<p>Let's start with a function that checks if all elements of an array are equal:</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>const allEqual = ([x, ...ys]) =&gt; ys.ever...
Looping JSON through nested array for to see if all values are equal
javascript|arrays|node.js|json
-1
42
2
53,636,452
53,636,452
1
true
2018-12-05T14:55:59.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Looping JSON through nested array for to see if all values are equal<p>Basically I want to see how many people purchase the same vendor and how many purchase...
53,647,882
Error Importing .Reg file using re,exe from Powershell<p>I am performing an export of HKEY_Current_User using the following command</p> <pre><code>$path = "C:\Temp" REG EXPORT HKEY_Current_User $path\HKEY_Current_User.reg </code></pre> <p>This works and exports the file </p> <p>When i try to import the file using t...
<p>You could use regedit by sending it commandline arguments. </p> <blockquote> <p>regedit /E C:\Temp\backup.reg "HKEY_CURRENT_USER" </p> </blockquote> <p>Ref: <a href="https://ss64.com/nt/regedit.html" rel="nofollow noreferrer">https://ss64.com/nt/regedit.html</a></p>
Error Importing .Reg file using re,exe from Powershell
regex|powershell|registry
-1
805
1
53,648,063
53,648,063
1
true
2018-12-06T09:07:51.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error Importing .Reg file using re,exe from Powershell<p>I am performing an export of HKEY_Current_User using the following command</p> <pre><code>$path = "...