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,609,720
How can I turn this dplyr statement to an R function<p>Essentially, I want to turn this:</p> <pre><code>sum_user_daily_p1 &lt;- raw_user_daily_agg %&gt;% group_by(UserID) %&gt;% filter(ProductID == 1) %&gt;% summarize( LOR_months = (difftime(max(Date), min(Date), units = "weeks")), bets_total = sum(Bets), max_be...
<p>Use <code>assign</code> inside the function to save the data and <code>paste0</code> to create the name:</p> <pre><code>sum_by_p &lt;- function(data, x) { name &lt;- paste0('sum_user_daily_p', x) data &lt;- data %&gt;% group_by(UserID) %&gt;% filter(ProductID == x) %&gt;% summarize( LOR_mont...
How can I turn this dplyr statement to an R function
r|function|formula|user-defined
0
35
1
53,609,797
53,609,797
0
true
2018-12-04T09:34:27.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I turn this dplyr statement to an R function<p>Essentially, I want to turn this:</p> <pre><code>sum_user_daily_p1 &lt;- raw_user_daily_agg %&gt;% gr...
53,603,425
Different Projections on Resource and Item Endpoints in Python Eve<p>I'm fairly new to RESTful API. So please bear with my ignorance.</p> <p>Suppose I have a MongoDB collection <code>foobars</code> with some documents. The structure is like: <code>[{'_id': 1, 'foo': 1, 'bar': 1}, {'_id': 2, 'foo': 2, 'bar': 2},...] </...
<p>I came up with a workaround. Perhaps not the RESTful way as it seems redundant.</p> <pre><code>DOMAIN = { 'foobar_list': { 'schema': {...}, 'datasource': {'source': 'foobars'}, 'projection': {'_id': 1} }, 'foobar_item': { 'schema': {...}, 'datasource': {'source': ...
Different Projections on Resource and Item Endpoints in Python Eve
python|mongodb|eve
0
309
1
53,610,477
53,610,477
0
true
2018-12-03T23:20:03.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Different Projections on Resource and Item Endpoints in Python Eve<p>I'm fairly new to RESTful API. So please bear with my ignorance.</p> <p>Suppose I have ...
53,610,341
Save CSV for every functioncall with another name<p>at the moment I am able to create one CSV file with all the content I get at once. </p> <p>Now <strong>I would like to create a list where I have different names in it</strong>.</p> <p>How can I produce for every functioncall a different CSV file name? I thought abo...
<p>The simplest and most obvious solution is to pass the full file path to your <code>parse_entry</code> function, ie:</p> <pre><code>def parse_entry(entry, filepath): # ... if 'Path : ' in pluginText: for line in pluginText.splitlines(0): if 'Path : ' in line: # ... ...
Save CSV for every functioncall with another name
python-3.x
0
50
2
53,611,306
53,611,306
0
true
2018-12-04T10:03:52.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Save CSV for every functioncall with another name<p>at the moment I am able to create one CSV file with all the content I get at once. </p> <p>Now <strong>I...
53,583,296
Stream output result text to speech<p>I need to live stream an output text to speech message Made by pressed button from a website. How can I achieve this? I tried Node.js to stream but I don't know how to stream after pressed button that generates the text to speech file.</p>
<p>I found this solution that solves my problem... but return back an infinite loop after new mp3 is dynamically generated and played. how can I pause it while check for the new track and play new track dynamically built?</p> <pre><code>&lt;audio id="audio" autoplay controls src="richiesta.php" type="audio/mpeg"&gt;&l...
Stream output result text to speech
javascript|php|node.js|html
0
65
1
53,611,476
53,611,476
0
true
2018-12-02T18:28:01.247Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Stream output result text to speech<p>I need to live stream an output text to speech message Made by pressed button from a website. How can I achieve this? I...
53,595,148
Get RST right after OCI function call<p>I have a business layer .NET program connecting .NET front end application and backend Oracle 12c database. When I come in office and run the application first time. I always get a time out error on application server. I looked at error log on business layer server and found Orac...
<p>I turned off pooling in connection string. It starts to work now. It seems Oracle .net library has issue with idle pooling sessions.</p>
Get RST right after OCI function call
.net|oracle12c
0
71
1
53,613,693
53,613,693
0
true
2018-12-03T13:45:03.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get RST right after OCI function call<p>I have a business layer .NET program connecting .NET front end application and backend Oracle 12c database. When I co...
53,608,749
How to request access to AppDiagnosticInfo after being denied?<p>Is there a way to ask for permission again? I never get the prompt again after pressing no. If there is no way to prompt for it again, what is the proper way of handling it? Should I make a popup stating that the user needs to enable it in the settings? O...
<p>This is a system behavior, and is not specific to this permission. Once a permission is denied by the user, the system does not prompted the dialog again but raise an AccessDenied exception instead when the permission is requested subsequently.</p> <p>For better UX, I would choose to display a dialog explaining the...
How to request access to AppDiagnosticInfo after being denied?
uwp|system.diagnostics|desktop-bridge
0
41
1
53,613,759
53,613,759
0
true
2018-12-04T08:39:21.923Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to request access to AppDiagnosticInfo after being denied?<p>Is there a way to ask for permission again? I never get the prompt again after pressing no. ...
53,434,249
Codesynthesis - Compare string value with sequence in C++<p>I'm new to Codesynthesis and i'm wondering about how i can compare string values with a sequence.</p> <p>For example i have a Message id "0x100" and i want to check if its in the Send sequences. If its there, i just want to get the Signal name of the Message ...
<p>FYI: I found the solution. It was quite easy.</p> <pre><code>string filename = "test.xml"; unique_ptr&lt;record&gt; h(record(filename)); signals::Send_sequence&amp; s(h-&gt;signals().Send()); for (signals::Send_iterator i(s.begin()); i != s.end(); ++i) { Send::Message_sequence&amp; s2(i-&gt;Message()); ...
Codesynthesis - Compare string value with sequence in C++
c++|compare|sequence|codesynthesis
0
64
1
53,614,162
53,614,162
0
true
2018-11-22T15:36:23.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Codesynthesis - Compare string value with sequence in C++<p>I'm new to Codesynthesis and i'm wondering about how i can compare string values with a sequence....
53,614,273
Excel to firebase using reactjs<p>I am creating an attendance website using Reactjs.</p> <p>I want teachers to upload their student details as an excel file and then I want that to be uploaded to firebase so that I can compare the students ID from firebase and the Students who signed up and sort them out accordingly.<...
<p>It really depends on the format you are outputting the Excel file in. </p> <p>Currently i'm working a react project, with both Firbase realtime-db and storage, where we have to parse CSV files, and map the data from those. If you export your Excel file as CSV, i recommend looking at <a href="https://www.papaparse.c...
Excel to firebase using reactjs
reactjs|firebase|react-native
0
559
1
53,614,612
53,614,612
0
true
2018-12-04T13:42:12.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Excel to firebase using reactjs<p>I am creating an attendance website using Reactjs.</p> <p>I want teachers to upload their student details as an excel file...
53,615,323
Node.js Script on the web-page with arguments(parameters)<p>I'm a noob with NODE.js . Here we come.</p> <p>This is my NODE.js CODE:</p> <pre><code>// CONFIGURATION var ISOCODE = process.argv[2]; var DATE_FROM = process.argv[3]; var DATE_TO = process.argv[4]; var express = require('express'); var app = express(); var ...
<p>I think the Url will be: <code>http://website.com/?ISOCODE=GB&amp;DATE_FROM=2018-11-03&amp;DATE_TO=2018-11-03</code> (notice the <code>?</code>)</p> <p>You need to create a <code>GET</code> route for that application.</p> <pre><code>// STEP 1. Create ROUTE app.get('/', (req, res) =&gt; { // STEP 2. Extract the...
Node.js Script on the web-page with arguments(parameters)
html|node.js|arguments|command-line-arguments
0
50
1
53,615,492
53,615,492
0
true
2018-12-04T14:37:57.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Node.js Script on the web-page with arguments(parameters)<p>I'm a noob with NODE.js . Here we come.</p> <p>This is my NODE.js CODE:</p> <pre><code>// CONFI...
53,615,473
List locations near by to a lat, lon point from stored lat, lon in database<p>I have <code>[lat, lon]</code> pairs of different locations stored in <em>MongoDb</em>. Now I want to compare a certain coordinates pair by distance like in circle of <em>2 km</em> from that point and want to take results of all from database...
<p>You should have a look at <a href="https://docs.mongodb.com/manual/reference/command/geoNear/#command-syntax" rel="nofollow noreferrer">geoNear</a> command.</p> <p>Generic example is the following:</p> <pre><code>db.runCommand( { geoNear: "places", // Your target collection near: { type: "Point", co...
List locations near by to a lat, lon point from stored lat, lon in database
node.js|mongodb|google-maps|gis|geojson
0
37
1
53,615,910
53,615,910
0
true
2018-12-04T14:46:09.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: List locations near by to a lat, lon point from stored lat, lon in database<p>I have <code>[lat, lon]</code> pairs of different locations stored in <em>Mongo...
53,598,343
ini4j INI key length > 80 chars<p>I need to communicate with a 3th party software through INI files, and I'm using the ini4j library for this. </p> <p>All was going well, until I need to be able to use a key length of >80 chars. </p> <p>The library is returning :</p> <blockquote> <p>Exception in thread "main" java...
<p>I was able to fix my problem by using the JIniFile library (<a href="https://github.com/SubZane/JIniFile" rel="nofollow noreferrer">https://github.com/SubZane/JIniFile</a>) instead of the Ini4j library. All working fine now.</p>
ini4j INI key length > 80 chars
java|ini|ini4j
0
72
1
53,616,188
53,616,188
0
true
2018-12-03T16:57:09.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ini4j INI key length > 80 chars<p>I need to communicate with a 3th party software through INI files, and I'm using the ini4j library for this. </p> <p>All w...
53,619,223
How to add text to a file in python3<p>Let's say i have the following file,</p> <p>dummy_file.txt(contents below)<br> first line<br> third line<br></p> <p>how can i add a line to that file right in the middle so the end result is:</p> <p>first line<br> second line<br> third line<br></p> <p>I have looked into openin...
<p>The standard file methods don't support inserting into the middle of a file. You need to read the file, add your new data to the data that you read in, and then re-write the whole file. </p>
How to add text to a file in python3
python-3.x
0
54
2
53,619,407
53,619,407
0
true
2018-12-04T18:22:55.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add text to a file in python3<p>Let's say i have the following file,</p> <p>dummy_file.txt(contents below)<br> first line<br> third line<br></p> <p>...
53,620,127
Filter variable by number of records in a dataframe with multiple variables<p>I have a dataframe with 2461 observations and 80 variables retrieved from BOLD.</p> <pre><code>Scleractinia &lt;- read_tsv("http://www.boldsystems.org/index.php/API_Public/combined?taxon=Scleractinia&amp;format=tsv") </code></pre> <p>Curren...
<p>Using dplyr, you just need to slightly change your pipe operation. Group by species name and then filter</p> <pre><code>library(tidyverse) ##Filter first Scleractinia.COI5P &lt;- Scleractinia %&gt;% filter(markercode == "COI-5P") %&gt;% filter(str_detect(nucleotides, "[ACGT]")) ##Group by and then filter fil...
Filter variable by number of records in a dataframe with multiple variables
r
0
31
1
53,620,270
53,620,270
0
true
2018-12-04T19:28:58.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Filter variable by number of records in a dataframe with multiple variables<p>I have a dataframe with 2461 observations and 80 variables retrieved from BOLD....
53,619,316
Discovering the dependency relations among the samples of a data set<p>In the R environment; Let say I have a data set similar to the one in below: </p> <pre><code>ID Activity 1 a 1 b 2 a 3 c 2 a 1 c 4 a 4 b 3 b 4 c </code></pre> <p>As you can see each ID has a sequence of activities. What is imp...
<p>Here is a solution with data.table</p> <pre><code>library(data.table) dt &lt;- data.table(ID=c(1,1,2,3,2,1,4,4,3,4),Activity=c("a","b","a","c","a","c","a","b","b","c")) </code></pre> <ol> <li><p>IDs per Sequence:</p> <pre><code>dt[,.(seq=paste(Activity,collapse = ",")),ID][,.(ids=paste(ID,collapse = ",")),seq] </...
Discovering the dependency relations among the samples of a data set
r|process
0
47
1
53,620,452
53,620,452
0
true
2018-12-04T18:28:46.193Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Discovering the dependency relations among the samples of a data set<p>In the R environment; Let say I have a data set similar to the one in below: </p> <pr...
53,620,718
How to interpret this wierd if(dwRet &lt; bufsize) statement?<p>I'm trying to compile <a href="https://docs.microsoft.com/ru-ru/windows/desktop/api/fileapi/nf-fileapi-getfinalpathnamebyhandlea" rel="nofollow noreferrer">this</a> C++ code snippet and get stuck at this piece of code which gives compiler error</p> <pre><...
<p>Interpret it as someone not knowing how to escape or unescape HTML properly. <code>&amp;lt;</code> is HTMLese for the character <code>&lt;</code>, and would not be valid C++ otherwise.</p> <p>So the snippet should say <code>if (dwRet &lt; BUFSIZE)</code>. </p>
How to interpret this wierd if(dwRet &lt; bufsize) statement?
if-statement|syntax
0
33
1
53,620,872
53,620,872
0
true
2018-12-04T20:13:07.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to interpret this wierd if(dwRet &lt; bufsize) statement?<p>I'm trying to compile <a href="https://docs.microsoft.com/ru-ru/windows/desktop/api/fileapi/n...
53,401,840
Hololens Perception Simulation sample test crashes device<p>The sample code for perception simulation crashes my device. The device do respond to voice commands but there is not response to hand gestures neither no visuals. I have to use WDR to reset it everytime</p> <p>Link to the documentation <a href="https://docs...
<p>After a week of troubleshooting, I noticed the control mode switches to simulation that suspends all sensors to detect human gestures which makes the device unresponsive. Switching it back to Default resolves this problem. </p> <p>Solved !!</p>
Hololens Perception Simulation sample test crashes device
hololens
0
70
1
53,621,194
53,621,194
0
true
2018-11-20T21:29:37.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hololens Perception Simulation sample test crashes device<p>The sample code for perception simulation crashes my device. The device do respond to voice comma...
53,601,712
mapper.readValue not honoring JSON Views<p>I'm using JSONView to hide things from being shown to the API. Everything works if I want to have non-human readable JSON. The problem is, I'm also trying to <em>prettify</em> the json to make it look more readable. The second-to-last line in the below method does this: </p> ...
<p>I "fixed" this by adding <code>@JsonInclude(JsonInclude.Include.NON_EMPTY)</code> to the fields in said null or empty entities. NON_EMPTY hides all values, empty or null, NON_NULL only null values. I probably asked about the wrong thing in the first place.</p>
mapper.readValue not honoring JSON Views
json|serialization|mapper
0
16
1
53,621,299
53,621,299
0
true
2018-12-03T20:52:57.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: mapper.readValue not honoring JSON Views<p>I'm using JSONView to hide things from being shown to the API. Everything works if I want to have non-human readab...
53,613,012
Returning gtm.elementId as category in Google Analytics from Tag Manager<p>I'm currently using Google Tag Manager to track when users of a site open a dropdown. I'm using the "Element Visibility" trigger which fires when the class of the dropdowns can be seen on screen. The Tag fires correctly when the dropdown appears...
<p>it's not obvious, but you can catch this with built-in variable:</p> <blockquote> <p>gtm.elementId - the ID value of the element that became visible. You can capture this with the Click / Form ID Built-in Variable.</p> </blockquote> <p>as noted by Simo Ahava (<a href="https://www.simoahava.com/analytics/elemen...
Returning gtm.elementId as category in Google Analytics from Tag Manager
google-analytics|google-tag-manager
0
537
1
53,622,430
53,622,430
0
true
2018-12-04T12:27:30.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Returning gtm.elementId as category in Google Analytics from Tag Manager<p>I'm currently using Google Tag Manager to track when users of a site open a dropdo...
53,622,638
Travis Error doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS<p>I am trying to build my app in Travis but I keep getting the following error which I am unable to debug. Can anybody see anything obvious that I may be doing wrong?</p> <p><a href="https://i.stack.imgur.com/viCyl.png" re...
<p>I was able to resolve this. It turns out that my tests.py file was not correctly formatted and was producing this error. Once I rectified this the build passed. Thank you.</p>
Travis Error doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS
python|django|travis-ci
0
273
1
53,623,043
53,623,043
0
true
2018-12-04T22:51:04.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Travis Error doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS<p>I am trying to build my app in Travis but I keep getting t...
53,617,454
Using wicked_pdf, save as pdf including user supplied data<p>I have a template to be filled out by a user. My goal is to convert the template into a pdf (containing information supplied by the user) using wicked_pdf.</p> <p>Also, none of the user input is hitting the model/database. I simply need to convert the templa...
<p>I was sending everything to the correct route, but none of the data was actually being passed. Instead, I needed to wrap everything in a form_tag and use a submit_tag.</p> <pre><code>&lt;%= form_tag(save_grade_sheet_result_path(@result), method: :post) %&gt; &lt;div&gt; &lt;h2&gt;PERSONNEL INFORMATION&lt;/h2&...
Using wicked_pdf, save as pdf including user supplied data
ruby|ruby-on-rails-5|wkhtmltopdf|wicked-pdf
0
320
1
53,623,060
53,623,060
0
true
2018-12-04T16:29:08.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using wicked_pdf, save as pdf including user supplied data<p>I have a template to be filled out by a user. My goal is to convert the template into a pdf (con...
53,623,050
CSS Grown Animation with Inline SVG<p>How can I make these circuits appear as if they are running downwards. I seem to have the right movement, but I can't figure out how to get them to start out their actual size, as now they appear skewed when the animation starts but then move to full size later on completion.</p> ...
<p>Found a better way without scale shape using translateY:</p> <pre><code>@keyframes circuitGrow { 0% { -webkit-transform:translateY(-100%); -moz-transform: translateY(-100%); -o-transform: translateY(-100%); -ms-transform:translateY(-100%); transform: translateY(-100%); } 100% { -web...
CSS Grown Animation with Inline SVG
css|animation|svg|css-animations
0
33
2
53,623,460
53,623,460
0
true
2018-12-04T23:41:24.340Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CSS Grown Animation with Inline SVG<p>How can I make these circuits appear as if they are running downwards. I seem to have the right movement, but I can't f...
53,623,442
Parse Json array in android / java file<p>I am facing a problem to reach to an object which is inside an array of another object of another array. To make it simpler i am attaching the image (attached below), basically i want to reach to json object "0" inside jsonarray ticket itmes.</p> <p>my codes are</p> <pre><cod...
<p>It's case sensitive. It should be </p> <pre><code>jsonarray1 = jsonobject.getJSONArray("ticketItems"); </code></pre>
Parse Json array in android / java file
java|android|json
0
37
2
53,623,483
53,623,483
0
true
2018-12-05T00:30:25.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Parse Json array in android / java file<p>I am facing a problem to reach to an object which is inside an array of another object of another array. To make it...
53,623,578
How to check if two objects contain the same words regardless of order?<p>So I have two objects, names1 and names2 and they're just an array of names that the user chooses to input. I want to create a code that checks if the two objects contain the same words, regardless of the order. Like</p> <pre><code>Enter names (...
<p>Use <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html#containsAll-java.util.Collection-" rel="nofollow noreferrer"><code>List.containsAll(Collection)</code></a> like,</p> <pre><code>public boolean sameCoins(Name n) { return name.size() == n.name.size() &amp;&amp; name.containsAll(n.name); }...
How to check if two objects contain the same words regardless of order?
java|arrays|object|arraylist|boolean-operations
0
289
2
53,623,610
53,623,610
0
true
2018-12-05T00:46:57.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check if two objects contain the same words regardless of order?<p>So I have two objects, names1 and names2 and they're just an array of names that th...
53,619,389
Dynamic Response in Twilio with Node (Wait for response)<p>I am currently trying to build a <strong>Twilio SMS</strong> app that responds to incoming sms message based on their previous message using conditional statements. </p> <p>My app gets a request and post a respond.</p> <p>I want the app to wait for a respond ...
<p>Twilio developer evangelist here.</p> <p>When you respond to incoming messages like that, you are actually returning a response to the incoming HTTP request. The response is XML (<a href="https://www.twilio.com/docs/sms" rel="nofollow noreferrer">TwiML</a>) and methods like <code>twiml.message</code> build up that ...
Dynamic Response in Twilio with Node (Wait for response)
node.js|express|post|twilio
0
308
1
53,623,720
53,623,720
0
true
2018-12-04T18:33:51.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dynamic Response in Twilio with Node (Wait for response)<p>I am currently trying to build a <strong>Twilio SMS</strong> app that responds to incoming sms mes...
53,619,819
Trying to output information from xml api using nokogiri<p>I'm trying to output information to a web page taken from an XML transport api for a college project. I'm using ruby on rails and the nokogiri gem. I can take in the information but when I try to output it on the results page it is just blank. </p> <p>The belo...
<p>Your XML at <a href="http://api.irishrail.ie/realtime/realtime.asmx/getAllStationsXML" rel="nofollow noreferrer">http://api.irishrail.ie/realtime/realtime.asmx/getAllStationsXML</a> has <a href="https://en.wikipedia.org/wiki/XML_namespace" rel="nofollow noreferrer">namespace </a>(<em>I modified the xml to reflect wh...
Trying to output information from xml api using nokogiri
ruby-on-rails|ruby|xml|api|nokogiri
0
37
1
53,624,248
53,624,248
0
true
2018-12-04T19:06:25.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to output information from xml api using nokogiri<p>I'm trying to output information to a web page taken from an XML transport api for a college proje...
53,623,579
Properly wrap text in bs4 boxes<p>I'm having a lot of trouble with my bs4 boxes that I cant sort out. The most major problem is that at some browser sizes the text in the middle 3 boxes does not wrap properly, and thus does not stay inside the box. This occurs at a size of 600-767.98px, and 768-991.98px (numbers taken ...
<p>You just remove the unwanted padding class like <code>mr-3,pl-2,pt-md-5</code>. Just add the <code>col-sm-4</code> to split the column and add only one equal padding class. Try this example hope this will suitable for you.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="...
Properly wrap text in bs4 boxes
html|css|bootstrap-4
0
321
1
53,624,262
53,624,262
0
true
2018-12-05T00:47:05.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Properly wrap text in bs4 boxes<p>I'm having a lot of trouble with my bs4 boxes that I cant sort out. The most major problem is that at some browser sizes th...
53,594,883
python - object() takes no parameters error<p>I have following python classes. </p> <pre><code>class FileMaster(db.Entity): id = PrimaryKey(int, auto = True) description = Required(str) filesource = Required(str) createdby = Optional(int) createddate = Optional(datetime.datetime...
<p>I am not sure what was the issue, but I solved it by removing the tables in the database and used different names for the classess.</p>
python - object() takes no parameters error
python|object|parameters|runtime-error
0
55
1
53,624,817
53,624,817
0
true
2018-12-03T13:27:33.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: python - object() takes no parameters error<p>I have following python classes. </p> <pre><code>class FileMaster(db.Entity): id = PrimaryKey(int, aut...
53,624,760
ReactJS: Building Custom Camera Component<p>Im trying to write a custom camera component inside my ReactJS component because i cant seem to find any npm library that really fits my requirement. So i found this article <a href="https://frontendnews.io/editions/2018-08-15-simple-camera-component" rel="nofollow noreferrer...
<p>First thing I notice, you're extending React.Component, but you're missing a call to <code>render()</code></p> <p>When you use a Class component, a call to the <code>render()</code> lifecycle method is REQUIRED. Here is some more info on React Components:</p> <p><a href="https://reactjs.org/docs/react-component.ht...
ReactJS: Building Custom Camera Component
javascript|reactjs|jsx
0
538
1
53,625,016
53,625,016
0
true
2018-12-05T03:31:01.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ReactJS: Building Custom Camera Component<p>Im trying to write a custom camera component inside my ReactJS component because i cant seem to find any npm libr...
53,624,866
in Python how to find the sum of point-to-centroid distance in each cluster<p>in Matlab the kmeans function can give sumd, which is the within-cluster sums of point-to-centroid distances in the k-by-1 vector.</p> <pre><code>[idx,C,sumd] = kmeans(___) </code></pre> <p>i need to do this in python.</p> <p>I have found...
<p>You can use <code>np.bincount</code>:</p> <pre><code>dists = np.array([[0.13894406, 2.90411146], [3.25560603, 0.21255051], [2.43748321, 0.60557231], [1.16330349, 4.20635901], [0.53391368, 2.50914184], [3.43498204, 0.39192652]]...
in Python how to find the sum of point-to-centroid distance in each cluster
python|numpy|sklearn-pandas
0
567
2
53,625,371
53,625,371
0
true
2018-12-05T03:44:50.657Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: in Python how to find the sum of point-to-centroid distance in each cluster<p>in Matlab the kmeans function can give sumd, which is the within-cluster sums o...
53,626,227
Python 3.x How to access the element of the index before the index of element of my i in for loop?<p>a = [1,2,3,4,5]</p> <p>for i in a:</p> <pre><code> list1.append(i) list1.append(i-2) `i-2` is not functioning why? </code></pre> <h1>Like for example, I am now in the index of element 4</h1>
<p><code>i</code> is not an index. It is the element present in the list itself. When you say you are now in the index of element 4, you are actually having element 4 not the index. So, you cannot treat like an index. </p> <p>Python For loop is an interator based loop. It is used to step through items in lists, string...
Python 3.x How to access the element of the index before the index of element of my i in for loop?
indexing
0
48
1
53,626,276
53,626,276
0
true
2018-12-05T06:14:49.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python 3.x How to access the element of the index before the index of element of my i in for loop?<p>a = [1,2,3,4,5]</p> <p>for i in a:</p> <pre><code> lis...
53,624,130
How to set Default Dialer for functions under test?<p>I know from <a href="https://developer.android.com/guide/topics/connectivity/telecom/selfManaged" rel="nofollow noreferrer">https://developer.android.com/guide/topics/connectivity/telecom/selfManaged</a>, that you can set the default dialer by having the necessary i...
<p>you can try adb command:</p> <pre><code>adb shell settings put secure dialer_default_application com.google.android.dialer </code></pre> <p>replacing com.google.android.dialer with your package.</p>
How to set Default Dialer for functions under test?
android|integration-testing|android-dialer
0
1,344
1
53,628,588
53,628,588
0
true
2018-12-05T02:07:18.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set Default Dialer for functions under test?<p>I know from <a href="https://developer.android.com/guide/topics/connectivity/telecom/selfManaged" rel="...
53,629,876
How to catch error promises in infinite while-loop with async/await?<p>I've faced the problem of catching errors in an infinite while-loop. So i want my code to exit node.js with proccess.exit(-1) if there's some errors cathed in the loop. So here's the code:</p> <pre><code>while (true) { await promisifiedDelay(20...
<p>You can wrap your block in a <code>try catch</code>:</p> <pre><code>while (true) { try { await promisifiedDelay(20000); users.map(async client =&gt; { //await client.login(); const allRequests = await client.getFollowRequests(); const requests = allRequests.slice(0, 100); const cur...
How to catch error promises in infinite while-loop with async/await?
javascript|node.js|async-await|try-catch
0
833
2
53,630,061
53,630,061
0
true
2018-12-05T10:14:03.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to catch error promises in infinite while-loop with async/await?<p>I've faced the problem of catching errors in an infinite while-loop. So i want my code...
53,630,346
running a python script several times using a virtual environment by means of a bash script<p>I am tuning hyper parameters of a deep learning network, therefore I need to run a command iteratively trying different values. I would like to run such command using a virtual environment. I have the following script to do so...
<hr> <p>Instead of using the command line: <code>source /home/javier/anaconda3/bin/activate AIenv</code></p> <p>Just use: <code>export PATH="/home/javier/anaconda3/envs/AIenv/bin:$PATH"</code></p> <p>Hope it help to activate the AIenv.</p>
running a python script several times using a virtual environment by means of a bash script
python|bash|virtualenv
0
51
1
53,631,415
53,631,415
0
true
2018-12-05T10:37:33.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: running a python script several times using a virtual environment by means of a bash script<p>I am tuning hyper parameters of a deep learning network, theref...
53,584,194
Betfair Non-interactive Login does not work<p>I have been struggling to achieve Non-interactive login to Betfair using certificate. I'm using C# and on Windows 10. I'm just testing with sample project: <a href="https://github.com/betfair/API-NG-sample-code" rel="nofollow noreferrer">https://github.com/betfair/API-NG-sa...
<p>everyone. Sorry, there was misunderstanding. The login process asks password during running and I thought it's for the password of certificate. But now I see that it's the password for an account of Betfair. If anyone spent time because of my stupid question, sorry.</p> <p>I decided to post this as an answer hoping...
Betfair Non-interactive Login does not work
c#|api|authentication|certificate|betfair
0
522
1
53,632,156
53,632,156
0
true
2018-12-02T20:13:24.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Betfair Non-interactive Login does not work<p>I have been struggling to achieve Non-interactive login to Betfair using certificate. I'm using C# and on Windo...
53,633,375
Ruby request headers but also a ?tag=tag<p>I am trying to send an API call to consul using a ruby script and I have a command that should be close to what I need but I can't get the rest to work.</p> <pre><code>RestClient::Request.execute(method: :get, url: path, timeout: 10, headers: {params: {"tag": tag, "X-Consul-T...
<p>You are extremely close, right now this does not work for you because the <code>"X-Consul-Token" =&gt; 'AUTH_TOKEN'</code> is being seen as a url parameter and not a header. </p> <pre><code>req.url #=&gt; "http://example.com?tag=tag&amp;X-Consul-Token=AUTH_TOKEN" req.headers #=&gt; {} </code></pre> <p>To fix thi...
Ruby request headers but also a ?tag=tag
ruby|curl|rest-client
0
28
1
53,634,677
53,634,677
0
true
2018-12-05T13:23:26.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ruby request headers but also a ?tag=tag<p>I am trying to send an API call to consul using a ruby script and I have a command that should be close to what I ...
53,635,161
Regular expression type definition<p>How to use a regular expression to break a string into tokens and call a function for the required token. For example:</p> <pre><code>Привет -&gt; ru_word_func () SPACE -&gt; space_func () world -&gt; en_word_func () ! -&gt; pnct_func () </code></pre>
<p>Something like this?</p> <pre><code>#!/usr/bin/python3 # -*- coding: utf-8 -*- import re input = """ Привет SPACE world ! """ d = { "Привет": "ru_word_func", "SPACE": "space_func", "world": "en_word_func", "!": "pnct_func" } def ru_word_func(): print("ru_word_func") def space_func(): pr...
Regular expression type definition
regex|string|python-3.x
0
22
1
53,635,837
53,635,837
0
true
2018-12-05T15:03:05.413Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Regular expression type definition<p>How to use a regular expression to break a string into tokens and call a function for the required token. For example:</...
53,595,359
Searching for a word in a file<p>I'm new to erlang, and I want to lern it. I want to implement a simple word search from a file, it only should display the word, if it is in the file.</p> <p>I starts like this:</p> <pre><code>readlines(FileName, Word) -&gt; {ok, File} = file:open(FileName ,[read]), try get_all_l...
<p>I dont know if it's good enough but you may try to read file then split it in words</p> <p>and check whether lists contains the word you passing through </p> <pre><code>readlines(FileName, Word) -&gt; {ok, Data} = file:read_file(FileName), ListOfWords = binary:split(Data, [&lt;&lt;"\n"&gt;&gt;, &lt;&lt;" "...
Searching for a word in a file
search|erlang
0
35
1
53,636,458
53,636,458
0
true
2018-12-03T13:59:34.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Searching for a word in a file<p>I'm new to erlang, and I want to lern it. I want to implement a simple word search from a file, it only should display the w...
53,636,564
Heroku deploy fails on build<p>I am trying to deploy my React application with Node to Heroku, but my build every time fails. I tried to google this issue but no luck, nothing works for me. Any suggestions? </p> <p>I have a client and server folder. Here is my package:</p> <pre><code>{ "name": "game", "version": "1....
<p>event-stream 3.3.6 was removed from npm due to malicious code being added (you can read more about it here: <a href="https://www.theregister.co.uk/2018/11/26/npm_repo_bitcoin_stealer/" rel="nofollow noreferrer">https://www.theregister.co.uk/2018/11/26/npm_repo_bitcoin_stealer/</a>). Update the package and you should...
Heroku deploy fails on build
reactjs|git|heroku|deployment
0
1,065
1
53,636,854
53,636,854
0
true
2018-12-05T16:22:21.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Heroku deploy fails on build<p>I am trying to deploy my React application with Node to Heroku, but my build every time fails. I tried to google this issue bu...
53,556,464
Writing function calls to a function within a unity game does not work<p>I am attempting to write a mod engine for a game.</p> <p>To achieve this, i decided i would add a reference to my engine dll in Unity's Assembly-CSharp game code file, then using Mono.cecil i wrote a call to the engine into one of the functions t...
<p>It appears you cant mess with the Assembly-CSharp file because of unity, instead i am using UnityEngine.CoreModule.dll and injecting into Display or Input</p>
Writing function calls to a function within a unity game does not work
c#|unity3d|mono.cecil
0
285
1
53,637,308
53,637,308
0
true
2018-11-30T11:14:42.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Writing function calls to a function within a unity game does not work<p>I am attempting to write a mod engine for a game.</p> <p>To achieve this, i decided...
53,637,574
how to get artistID from an array in rails and redirect using artistID as a param<p>I am new to rails and am making a test app but am having a bit of trouble with getting a key/value from an array.</p> <p>I want to search for an artist by artistName. Once a match has been found, I want to go to a bio page based on the...
<p>That first line isn't a valid array, also you're not doing any comparison's to find the ID. In the first one you're assigning the <code>@artistID</code> variable to every artistID, which in the end leaves you with only the last one. The other example you're copying all of the IDs into an array. Take a look at thi...
how to get artistID from an array in rails and redirect using artistID as a param
ruby-on-rails|arrays|ruby
0
20
1
53,637,797
53,637,797
0
true
2018-12-05T17:19:12.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to get artistID from an array in rails and redirect using artistID as a param<p>I am new to rails and am making a test app but am having a bit of trouble...
53,624,968
Find the biggest file with criteria and copy it to a specific directory<p>I have directory <code>/usr/process</code> with many sub-directories. I want to find the biggest file named <code>*calculation*</code>. There could be millions of files to search through.</p> <p>When I use the command below and sort based on siz...
<p>If you know the file name ("calculation"), I see no interest for running <code>find</code>.</p> <p>If you need to find the n (here, n=3) largest files, you can just use <code>du</code>, which stands for "disk usage" :</p> <pre><code>du -a /usr/bin/ 2&gt;/dev/null | sort -n -r | head -n 3 478328 /usr/bin/ 26024 ...
Find the biggest file with criteria and copy it to a specific directory
linux|shell|find
0
265
1
53,638,093
53,638,093
0
true
2018-12-05T03:58:31.160Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find the biggest file with criteria and copy it to a specific directory<p>I have directory <code>/usr/process</code> with many sub-directories. I want to fin...
53,638,913
Can't resolve './lib' in '/Users/johnnynolan/Repos/simple-component-library/src'<p>I'm trying to build a simple component library using React. The file structure is as follows:</p> <pre><code>-src --index.js --lib ---TextInput.css ---TextInput.js </code></pre> <p>In my index.js file I'm referencing the lib folder lik...
<p>Duh...okay, I realised what I didn't do! I didn't have an index.js file within my lib folder so I could export the component, like so:</p> <pre><code>import TextInput from "./TextInput"; export { TextInput }; </code></pre> <p>So the new file structure will look like this:</p> <pre><code>-src --index.js --lib ---i...
Can't resolve './lib' in '/Users/johnnynolan/Repos/simple-component-library/src'
reactjs
0
20
1
53,639,023
53,639,023
0
true
2018-12-05T18:51:07.547Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't resolve './lib' in '/Users/johnnynolan/Repos/simple-component-library/src'<p>I'm trying to build a simple component library using React. The file struc...
53,638,873
Angular 6 restore passed parameter to its original values after close ngbModal<p>I have a table with objects with edit and delete buttons, so when I pass a paremeter(object in row) from parentComponent to an "edit" modal (using ngbModal) and then change some values but then I regret and I close it with the X in the hea...
<p>You are able to utilize Spread syntax to pass a copy of data from parent component to the child</p> <pre><code>modalRefCity.componentInstance.horario = {...element}; </code></pre> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax" rel="nofollow noreferrer">Spread...
Angular 6 restore passed parameter to its original values after close ngbModal
angular|typescript|angular6|bootstrap-modal|ng-bootstrap
0
309
1
53,639,420
53,639,420
0
true
2018-12-05T18:48:11.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular 6 restore passed parameter to its original values after close ngbModal<p>I have a table with objects with edit and delete buttons, so when I pass a p...
53,619,767
How to create chef databags with chef-vault<p>I want to create a databag with credentials of servers which needs to be encrypted. Do I need to create chef-vault first ?</p>
<p>I hope this <a href="https://blog.chef.io/2016/01/21/chef-vault-what-is-it-and-what-can-it-do-for-you/" rel="nofollow noreferrer">https://blog.chef.io/2016/01/21/chef-vault-what-is-it-and-what-can-it-do-for-you/</a> will help you. When it comes to editing a vault, I would rather delete and recreate a vault than edit...
How to create chef databags with chef-vault
json|windows|chef-infra|databags|chef-vault
0
44
1
53,639,627
53,639,627
0
true
2018-12-04T19:02:40.067Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create chef databags with chef-vault<p>I want to create a databag with credentials of servers which needs to be encrypted. Do I need to create chef-va...
53,637,349
After calling a second Window in PyQt4 the buttons in the second window not working<p>So Basically i'm trying to design my program using PyQt4 which have more than one window, and everytime i call a window by clicking on buttons the buttons in the new window ain't working. Any help?</p> <pre><code>from PyQt4 import Qt...
<p>First of all PyQt recommends not modifying the .py file generated by pyuic, for more information read <a href="https://stackoverflow.com/a/46545116/6622587">this</a>. What you must do is create a class that inherits the appropriate widget and use the interface that Qt Designer provides.</p> <p>On the other hand, do...
After calling a second Window in PyQt4 the buttons in the second window not working
python|python-2.7|pyqt|pyqt4
0
63
1
53,639,713
53,639,713
0
true
2018-12-05T17:05:48.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: After calling a second Window in PyQt4 the buttons in the second window not working<p>So Basically i'm trying to design my program using PyQt4 which have mor...
53,640,032
Using Bitwise OR in MongoDB<p>I am working on a project where I want to toggle a value between 0 and 1 within my Mongo Database. I have set every value from the default double to a 32 bit Int. However, every time I run this code, I get this error:</p> <pre><code>&gt; db.players.update({name: "Patrick Mahomes"}, {$bit:...
<p>Numbers passed in the mongo shell are deduced to be <code>double</code> to match javascript-style conventions. So the <code>1</code> in <code>{xor: 1}</code> is a <code>double</code>. </p> <p>You'll need to specify <code>NumberInt(1)</code> to get a 32-bit integer (or <code>NumberLong(1)</code> for a 64-bit integer...
Using Bitwise OR in MongoDB
mongodb|mongodb-query|bitwise-xor
0
541
2
53,640,148
53,640,148
0
true
2018-12-05T20:13:40.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Bitwise OR in MongoDB<p>I am working on a project where I want to toggle a value between 0 and 1 within my Mongo Database. I have set every value from ...
53,639,373
AWS DMS Start replication task<p>I am able to create the DMS instances through through the YAML file. But I am not able to start the task to migrate the data. Is there any way I add the script in YAML to start the process automatically once the task gets created?</p>
<p>You can follow the official white paper for this yes I have done migration to DynamoDB using replication task through YAML automatically.</p> <p>Please follow this for help: <a href="https://github.com/aws-samples/specialty-practice-code-samples/tree/master/migrate-delimited-files-to-nosql" rel="nofollow noreferrer...
AWS DMS Start replication task
amazon-web-services|aws-dms
0
1,842
1
53,640,730
53,640,730
0
true
2018-12-05T19:23:29.397Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AWS DMS Start replication task<p>I am able to create the DMS instances through through the YAML file. But I am not able to start the task to migrate the data...
53,636,508
How can I get the siblings of a newly inserted inline?<p>The following code doesn't work and I see the first inserted entity only when the code is running the second time:</p> <pre><code>editor.insertInline({ key: 'XX', data: {}, nodes: List([ Text.create({ 'Hello World!', }) ]), type: 'deletio...
<p>After further investigating, I found that I need to get the value directly from the editor instance:</p> <pre><code>const insertedDeletion = editor.value.document.getInlinesByType('deletion').first() </code></pre>
How can I get the siblings of a newly inserted inline?
slate.js
0
290
1
53,641,432
53,641,432
0
true
2018-12-05T16:19:53.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I get the siblings of a newly inserted inline?<p>The following code doesn't work and I see the first inserted entity only when the code is running th...
53,641,532
Problem at sending email with SwiftMailer library in Laravel 5.5.44<p>I have this problem in Laravel 5.5.44 with Swift Mailer package trying to sending emails. This is the mail that the Swift Mailer package send to the server responsible for sending e-mails to the users:</p> <pre><code>This is the mail system at host ...
<p>Well, the error message that you received from googlemail is quite clear:</p> <blockquote> <p>As a policy, Gmail does not accept messages from IPs 550-5.7.1 with missing PTR records.</p> </blockquote> <p>This means that the domain that you use in the <code>FROM:</code> header of your mail must have a DNS A-rec...
Problem at sending email with SwiftMailer library in Laravel 5.5.44
php|laravel|email|swiftmailer
0
305
1
53,641,766
53,641,766
0
true
2018-12-05T22:11:10.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problem at sending email with SwiftMailer library in Laravel 5.5.44<p>I have this problem in Laravel 5.5.44 with Swift Mailer package trying to sending email...
53,641,046
ansible - archive files, with a dated filename, by archive date<p>I want to archive all files, containing a date in their names, present in a same folder, in the same archive by date with Ansible.</p> <p>Let me explain:</p> <p>Files can be of this type: (attention the date can be separated by dashes or underscores)</...
<blockquote> <p>And archive my files, but my var file contains only one file</p> </blockquote> <p>That's because you're setting the variable <code>file</code> to a single value:</p> <pre><code>- set_fact: file: - "name": "{{ item.path | basename | regex_replace( '[A-Z-_.a-z]' , '') }}" "path": [ "{{ ite...
ansible - archive files, with a dated filename, by archive date
date|ansible|archive
0
822
2
53,642,099
53,642,099
0
true
2018-12-05T21:28:42.620Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ansible - archive files, with a dated filename, by archive date<p>I want to archive all files, containing a date in their names, present in a same folder, in...
53,639,518
How to work with guest Circuit users from smartphone apps?<p>I want to use circuit as a videocall system in a B2C environment in which only the backend call agents are Circuit users (but the end-clients are not!!). The only way I see to establish a videocall would be by creating a new conversation, get the url guest li...
<p>That's a good question. There are two problems as pointed out by you.</p> <p><strong>1. SDK cannot be used without an authenticated Circuit user</strong></p> <p>I.e. the SDK has no support for guest access other than retrieving the guest access link. Workarounds are:</p> <p>a) use the guest link and have the non-...
How to work with guest Circuit users from smartphone apps?
circuit-sdk
0
47
1
53,642,625
53,642,625
0
true
2018-12-05T19:35:12.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to work with guest Circuit users from smartphone apps?<p>I want to use circuit as a videocall system in a B2C environment in which only the backend call ...
53,641,727
Error in converting array with decimals into array with binaries in python<p>I am trying to covert and array filed with decimals from 0 to 63 , x=[0 1 2 ... 63] into an array with the equal binaries, but I get the following error: "invalid literal for int() with base 10: '0b0'". My code is the following (in Python) :</...
<p>Using Python 3: Initialize the g array first, then append it in the loop.</p> <pre><code>g = '{0:06b}'.format(0) for x in range(1,64,1): g=np.append(g,'{0:06b}'.format(x)) print(g) </code></pre> <p><strong>extra:</strong> Python is very well <a href="https://stackoverflow.com/questions/7687928/convert-dec-n...
Error in converting array with decimals into array with binaries in python
python|arrays
0
34
2
53,642,657
53,642,657
0
true
2018-12-05T22:28:04.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error in converting array with decimals into array with binaries in python<p>I am trying to covert and array filed with decimals from 0 to 63 , x=[0 1 2 ... ...
53,641,812
Handling Null DataType<p>I'm using the <a href="https://pig.apache.org/docs/r0.17.0/api/org/apache/pig/piggybank/evaluation/Over.html" rel="nofollow noreferrer">Over</a> function from Piggybank to get the Lag of a row</p> <pre><code>res= foreach (group table by fieldA) { Aord = order table by fieldB; generate flatten(...
<p>Ok after some looking around into the code of the Over function I found that you can instantiate the Over class to set the return type. What worked for me was:</p> <pre><code>DEFINE ChOver org.apache.pig.piggybank.evaluation.Over('chararray'); res= foreach (group table by fieldA) { Aord = order table by fieldB; gen...
Handling Null DataType
apache-pig
0
48
1
53,642,703
53,642,703
0
true
2018-12-05T22:35:56.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Handling Null DataType<p>I'm using the <a href="https://pig.apache.org/docs/r0.17.0/api/org/apache/pig/piggybank/evaluation/Over.html" rel="nofollow noreferr...
53,642,774
MSTest: Blocking a test until another test caches data<p>I am writing unit tests for an Api client. One test, <code>ListAll()</code>, loads all entries from the Api for the given account, and the other, <code>Get()</code>, loads a specific order.</p> <p><code>Get()</code> requires a unique Id of an entry, so I would l...
<p>It is usually recommended that your tests be independent of each other.</p> <p>However, if you need to share data between tests for speed reasons, you could have a LoadDataIfNeeded() function which both tests call. The first time LoadDataIfNeeded() is run, it loads the data, puts the data into a static member, and ...
MSTest: Blocking a test until another test caches data
c#|mstest
0
40
1
53,642,951
53,642,951
0
true
2018-12-06T00:17:52.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MSTest: Blocking a test until another test caches data<p>I am writing unit tests for an Api client. One test, <code>ListAll()</code>, loads all entries from ...
53,642,964
remove dynamically created collection jquery<p>Hello i am displaying a collection that is dynamically created and I want to remove them when a delete button is clicked i want to fade off and remove that particular ul collection.When i tried to do it, it removes every collection.Thanks for the help</p> <pre><code>&lt;d...
<p>That is because you're essentially doing a <code>$('.collection').closest().remove()</code> which will remove the <code>closest()</code> parent to each element with a collection class on it.</p> <p>You need to specify the relevant id using a <code>$('#&lt;id here&gt;')</code> to only delete the relevant element's p...
remove dynamically created collection jquery
jquery|ajax
0
15
1
53,643,049
53,643,049
0
true
2018-12-06T00:42:31.683Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: remove dynamically created collection jquery<p>Hello i am displaying a collection that is dynamically created and I want to remove them when a delete button ...
53,642,688
Applying criteria from one SELECT DISTINCT data column, to match a second data column of examples<p>I am working with a set of vehicle data, all in the same table, that uses the following query:</p> <pre><code>SELECT a.VIN_NUM AS [Registration VIN] ,DISTINCT STUFF(SUBSTRING(a.VIN_NUM, 1, 10),9,1,'_') AS [VIN ...
<pre><code>SELECT Max(a.VIN_NUM) AS [Registration VIN] , STUFF(SUBSTRING(a.VIN_NUM, 1, 10),9,1,'_') AS [VIN STRING] FROM dbo.DMV_All_Tests AS a WHERE KeyDateTime between '2017/12/01' and '2018/11/30' AND INSP_TEST_TYPE = 'B' AND INSP_ATTEMPT_NUM = '1' AND EPA_VEHICLE_TYPE = 'HDV' GROUP...
Applying criteria from one SELECT DISTINCT data column, to match a second data column of examples
sql-server|join|select
0
53
1
53,643,067
53,643,067
0
true
2018-12-06T00:06:54.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Applying criteria from one SELECT DISTINCT data column, to match a second data column of examples<p>I am working with a set of vehicle data, all in the same ...
53,577,791
Sluggish response from custom slider<p>I am trying to create a custom slider that uses a <code>UIButton</code> as the thumb. Since I can't seem to find a way to use a <code>UIView</code> as the thumb in a slider, I decided to build a custom one. However, when I run it, the thumb is sluggish to respond on the initial ...
<p>Finally figured it out. It only happens in the iPhone XR simulator. Tried the iPhone XS, among others, and they were smooth as glass.</p>
Sluggish response from custom slider
ios|swift|custom-controls|uislider
0
35
2
53,643,515
53,643,515
0
true
2018-12-02T05:54:11.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sluggish response from custom slider<p>I am trying to create a custom slider that uses a <code>UIButton</code> as the thumb. Since I can't seem to find a wa...
53,643,540
Changing position of embeded youtube video in CSS<p>This is my first time posting here and don't really know much about web coding or CSS. I'm a CGI artist who is trying to implement a simple feature. I would like to showcase my Demoreel on my website, figured out how to add the video in, but the position is on the far...
<p>In the iframe, add: </p> <pre><code>&lt;iframe style='display: block; margin: 0 auto;'&gt; </code></pre> <p>And that should work.</p> <p>I tried it on JSFiddle: <a href="https://codepen.io/Rohittt/pen/eQwLYe" rel="nofollow noreferrer">https://codepen.io/Rohittt/pen/eQwLYe</a></p> <p>you can just copy the code f...
Changing position of embeded youtube video in CSS
html|css
0
534
1
53,643,855
53,643,855
0
true
2018-12-06T02:03:19.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Changing position of embeded youtube video in CSS<p>This is my first time posting here and don't really know much about web coding or CSS. I'm a CGI artist w...
53,607,813
How to setup cron dynamically via admin in Magento 2<p>How can I setup cron dynamically in config.xml (custom module) in Magento 2?</p>
<p>Magento2 has a different scheme to merge layout config so you have to create a new file that called crontab.xml under your_custom_module/etc folder. And then you can add your cron config like this one:</p> <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt; &lt;config xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-in...
How to setup cron dynamically via admin in Magento 2
cron|magento2
0
520
2
53,643,867
53,643,867
0
true
2018-12-04T07:32:31.923Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to setup cron dynamically via admin in Magento 2<p>How can I setup cron dynamically in config.xml (custom module) in Magento 2?</p>
53,643,650
JAVA: using maps with the value as an array list of string<p>This code prompts the user asking their name and the school they attend. Storing both into a map. I then want to print out the school and the name of every person that attended that school in this format.</p> <p>School : name, name , name. /new line School :...
<p>The last for loop is using wrong key. Following would be right for loop:</p> <pre><code>for (String s : sAtt.keySet()) { System.out.println("\t" + s + ": " + sAtt.get(s)); } </code></pre> <p>You are getting null because school variable has DONE as key which is removed in earlier statement.</p> <p>Also, I woul...
JAVA: using maps with the value as an array list of string
java
0
38
1
53,643,876
53,643,876
0
true
2018-12-06T02:17:34.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JAVA: using maps with the value as an array list of string<p>This code prompts the user asking their name and the school they attend. Storing both into a map...
53,643,615
script gets a bug when I record Shell output<p>I wanted to know how to record all the input and output of my terminal.</p> <p>Of course, I can use the <code>script</code> command but I am going to record every user's input and output. So I put script into file: <code>.barhrc</code> for every user's home directory. Jus...
<p>You can set a variable and also check that input is a TTY:</p> <pre><code>if [[ -z "$RECORDING" &amp;&amp; -t 0 ]] then RECORDING="YES" exec script -afq "$RECORDFILE" fi </code></pre> <ul> <li><p>The variable ensures that you will not start recording in a session that is already being recorded.</p></li> <li><p>C...
script gets a bug when I record Shell output
linux|shell
0
30
1
53,643,888
53,643,888
0
true
2018-12-06T02:14:04.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: script gets a bug when I record Shell output<p>I wanted to know how to record all the input and output of my terminal.</p> <p>Of course, I can use the <code...
53,643,881
ASP.NET Core Object Reference not set to an instance for foreign key search<p>I have these queries. The first initialData gets a list of Ids without a filter and the second query filters out the results based on user inputs. FieldId and CategoryId are foreign/primary keys of their own table. The issue is when the appli...
<p>It's very difficult to answer but based on the information that you have provided.</p> <p>It looks like in the first data load in "initialData" you forgot to initialize "Data" property. </p>
ASP.NET Core Object Reference not set to an instance for foreign key search
asp.net-core|entity-framework-core
0
273
1
53,644,084
53,644,084
0
true
2018-12-06T02:50:24.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ASP.NET Core Object Reference not set to an instance for foreign key search<p>I have these queries. The first initialData gets a list of Ids without a filter...
53,644,022
Return fails despite everything else in conditional working<p>I wrote a simple recursive function to test whether a is a power of b. </p> <pre><code>def is_power(a, b): """ returns True if a is a power of b""" if a == b: print('True!') return True elif a%b != 0: return False elif a ...
<p>The last alternative is missing 'return'</p>
Return fails despite everything else in conditional working
python-2.7|return|conditional
0
16
2
53,644,272
53,644,272
0
true
2018-12-06T03:07:08.063Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Return fails despite everything else in conditional working<p>I wrote a simple recursive function to test whether a is a power of b. </p> <pre><code>def is_...
53,644,178
Merge array to object, using lodash<p>I'm trying to manipulate this sample array of objects.</p> <pre><code>var data = [ { id: 'A1', name: 'Test', gender: 0, pet: 'dog', petname: 'huahua' }, { id: 'A1', name: 'Test', gender: 0, pet: 'cat', petname: 'meo' }, { id: 'A1', name: 'Test', gender: 0, pet: 'snake', petn...
<p>No need for any libraries, just use a reduce.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var data= [ { id: 'A1', name: 'Test', gender: 0, pet: 'dog', petname: 'huahu...
Merge array to object, using lodash
javascript|lodash
0
51
2
53,644,452
53,644,452
0
true
2018-12-06T03:25:32.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Merge array to object, using lodash<p>I'm trying to manipulate this sample array of objects.</p> <pre><code>var data = [ { id: 'A1', name: 'Test', gender:...
53,646,584
Why the input show the half text while ajax response having full string<p>I have an script which fetching the data from the apis and in ajax success response ajax got:-</p> <pre><code>date: "2018-12-06" date_time: 1544077867 description: "This is second image" id: 2 image_url: "image_url/image.jpg" name: "Second Image...
<p>Put your result stirngs into quotes:</p> <pre><code>&lt;input id="name" type="text" value="'+response.response.data.name+'"&gt; ^ ^ </code></pre>
Why the input show the half text while ajax response having full string
jquery
0
32
2
53,646,837
53,646,837
0
true
2018-12-06T07:36:09.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why the input show the half text while ajax response having full string<p>I have an script which fetching the data from the apis and in ajax success response...
53,647,573
In this code javascript validation is not working<p>How it will work? I want to know how javascript connect with html and div tag is correct. I didn't get which code is doing mistake.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre cl...
<p>you are using assignment operator in <code>if (document.myForm.name.value = "")</code></p> <p>Try with this code </p> <pre><code> function validate() { if (document.forms["myForm"]["name"].value == "") { alert("should be fill"); document.myForm.name.focus(); return false; } return (t...
In this code javascript validation is not working
javascript|html|css
0
41
3
53,647,741
53,647,741
0
true
2018-12-06T08:45:46.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In this code javascript validation is not working<p>How it will work? I want to know how javascript connect with html and div tag is correct. I didn't get wh...
53,647,767
how to add all individual Untitled.cpp from every folder to .gitignore?<p>Suppose this is the structure of my file system.</p> <pre><code>root/ folder1/ Untitled1.cpp code.cpp folder2/ Untitled2.cpp Untitled3.cpp .git .gitignore </code></pre> <p>i want to add all untitled.c...
<p>Based on <a href="https://git-scm.com/docs/gitignore" rel="nofollow noreferrer">the documentation</a>, this should do the trick:</p> <pre><code>**/root/Untitled?.cpp </code></pre> <blockquote> <p>A leading "**" followed by a slash means match in all directories.</p> <p>Git treats the pattern as a shell glob...
how to add all individual Untitled.cpp from every folder to .gitignore?
git|github
0
38
1
53,647,916
53,647,916
0
true
2018-12-06T08:59:28.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to add all individual Untitled.cpp from every folder to .gitignore?<p>Suppose this is the structure of my file system.</p> <pre><code>root/ folder1/...
53,647,937
Change the values of itemssource at runtime<p>I have two buttons and combobox: </p> <pre><code>&lt;Button Click="Btn2_Click"/&gt; &lt;Button Click="Btn_Click"/&gt; &lt;ComboBox x:Name="myCombo" IsEditable="True" IsReadOnly="True" Text="-- Choose --" SelectionChanged="MyCombo_SelectionChanged"/&gt; </code></pre> <p...
<ol> <li><p>Replace <code>List&lt;string&gt;</code> with <code>ObservableCollection&lt;string&gt;</code></p></li> <li><p>You've already set <code>myCombo.ItemsSource</code> to lst, so no need manually update its <code>Items</code> as well. Just add to / clear the lst collection and the control will automatically update...
Change the values of itemssource at runtime
c#|wpf|xaml
0
52
1
53,648,031
53,648,031
0
true
2018-12-06T09:10:49.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change the values of itemssource at runtime<p>I have two buttons and combobox: </p> <pre><code>&lt;Button Click="Btn2_Click"/&gt; &lt;Button Click="Btn_Clic...
53,560,051
GearVRf - SceneObject not visible with GVSphere Image<p>I am trying to show a dot/pointer on <code>GVRSphereSceneObject</code> in <code>GearVR</code>. But, only the <code>GVRSphereSceneObject</code> is showing where as scene object hides once the texture image becomes visible. If I add both sphere and object using <cod...
<p>If anyone is struggling with this. Please have a look at <a href="https://github.com/Samsung/GearVRf/issues/2021" rel="nofollow noreferrer">this issue</a>.</p> <blockquote> <pre><code>Pointer.getRenderData().setDepthTest(false); Pointer.getRenderData().setRenderingOrder(SXRRenderData.SXRRenderingOrder.OVERLAY); </c...
GearVRf - SceneObject not visible with GVSphere Image
android|gear-vr
0
22
1
53,648,049
53,648,049
0
true
2018-11-30T15:07:12.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: GearVRf - SceneObject not visible with GVSphere Image<p>I am trying to show a dot/pointer on <code>GVRSphereSceneObject</code> in <code>GearVR</code>. But, o...
53,643,799
Show server errors into html<p>I am validating a form that I have to send via ajax, I am using axios to do this, but I'd like to now if is there someway to show the errors that I receive from server into my html, these are the errors I want to show <a href="https://i.stack.imgur.com/hKTAf.png" rel="nofollow noreferrer"...
<p>Try something like:</p> <pre><code>var errors = {} ... .then(response =&gt; { window.location.href = '/success.html'; console.log(response) errors = Object.assign({}) }) .catch(err =&gt; { errors = Object.assign({}, err.data['error']) console.log(`It works ${err.message}`); }) </code></pre> <p>...
Show server errors into html
django|python-3.x|error-handling|django-rest-framework
0
36
1
53,648,113
53,648,113
0
true
2018-12-06T02:38:15.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Show server errors into html<p>I am validating a form that I have to send via ajax, I am using axios to do this, but I'd like to now if is there someway to s...
53,498,339
Why isn't my hashmap returning a word count?<p>I am creating a hashmap that does linear probing to find an index for the key. If the key is already in the index, I want to increase its value, not add one to a new index. </p> <p>For example, if I get a word count for the string "five, five, five" my output is five 1, f...
<p><strong>Refer this example</strong> </p> <pre><code>import java.util.*; import java.lang.*; import javax.swing.JOptionPane; import java.io.*; public class TestingTables { public static void main(String args[]) { { String s = "Any text for word word count"; String[] splitted = s.split(" "); ...
Why isn't my hashmap returning a word count?
get|hashmap|keyvaluepair|containskey|linear-probing
0
25
1
53,648,350
53,648,350
0
true
2018-11-27T11:09:02.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why isn't my hashmap returning a word count?<p>I am creating a hashmap that does linear probing to find an index for the key. If the key is already in the in...
53,610,348
setRowData Not Work on First Call Angular 6<p>I have an ag-grid that has buttons for changing the data of each row. When I click the button, it supposed to show another ag-grid within a bootstrap modal; But the problem is when the grid loads for the first time, it does not show any data as it said "No Rows To Show". An...
<p>As I investigate further in Angular, I found that this type of calling the service is Async and it's normal to show that "Cannot read property 'setRowData'" because data is not loaded completely. I just do this:</p> <pre><code>private loadQuestion() { this.Questions = []; this.managementService.getQuestions...
setRowData Not Work on First Call Angular 6
angular|ag-grid
0
581
2
53,650,036
53,650,036
0
true
2018-12-04T10:04:22.683Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: setRowData Not Work on First Call Angular 6<p>I have an ag-grid that has buttons for changing the data of each row. When I click the button, it supposed to s...
53,372,777
How to use YiiConditionalValidator to work on client side?<p>I'm using YiiConditionalValidator.php extension to Yii 1.1.20. I want to have required field (master_id) when i switch button (is_master) from 1 to 0 ...</p> <p>is_master - 1 or 0 master_id - if "is_master" = 0 make "master_id required...</p> <p>So... my mo...
<p>While no one knows ^____^ ... I made little research and the answer is that in YiiConditionalValidator.php one function is missing...</p> <p>When you look at yii 1.1.x framework/validators most of them have 2 functions:</p> <ol> <li>protected function validateAttribute($object,$attribute) and</li> <li>public funct...
How to use YiiConditionalValidator to work on client side?
php|yii|yii1.x
0
57
1
53,650,257
53,650,257
0
true
2018-11-19T10:36:59.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use YiiConditionalValidator to work on client side?<p>I'm using YiiConditionalValidator.php extension to Yii 1.1.20. I want to have required field (ma...
53,647,936
Adjust cropper instead of image zoom react native image crop picker<p>I am trying to adjust the cropper instead of zoom in and zoom out of image.</p> <p>I am using <code>react-native-image-crop-picker</code>. I want the cropper to move rather than the image clicked.</p> <p>Here is my code:</p> <pre><code>imageCropVi...
<p>done by using the property:</p> <blockquote> <p><code>freeStyleCropEnabled</code> to true</p> </blockquote>
Adjust cropper instead of image zoom react native image crop picker
javascript|android|ios|reactjs|react-native
0
816
1
53,650,425
53,650,425
0
true
2018-12-06T09:10:45.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adjust cropper instead of image zoom react native image crop picker<p>I am trying to adjust the cropper instead of zoom in and zoom out of image.</p> <p>I a...
53,650,637
Occasional "Permissions Error" returned when running a program that creates many files<p>Currently I have the following code:</p> <pre><code># Open a place holding output file with open('out.txt', 'w') as f: # Run BOLSIG- r = Popen("%s %s" % (bolsig, infile), stdout=f, cwd=outputdir) # Wai...
<p>It seems that from time to time you try to write to <code>out.txt</code> before it was fully removed. What you can do:</p> <ol> <li>Add some <code>time.sleep()</code> at before starting a new script</li> <li>Check if <code>out.txt</code> is not existing before running <code>Popen</code></li> <li>Use this library fo...
Occasional "Permissions Error" returned when running a program that creates many files
python|python-3.x|permissions|subprocess|popen
0
19
1
53,650,783
53,650,783
0
true
2018-12-06T11:39:42.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Occasional "Permissions Error" returned when running a program that creates many files<p>Currently I have the following code:</p> <pre><code># Open a place ...
53,650,864
Can we save from/input data to same html file<p>I have a requirement where I need to produce data in table format and send the html file to team.</p> <p>For example: Column 1<br> list of jobs running </p> <p>I have created the above with the help of HTML table.</p> <p>I need to add another column "Remarks" where...
<p>No.</p> <p>HTML is a data format. You need a programming language.</p> <p>Typically this would be handled by using an HTML form, which POSTs data to an HTTP server where server-side code (written in the programming language of your choice) would store it in a database.</p> <p>The HTML document with the table woul...
Can we save from/input data to same html file
html|file|input|save
0
70
2
53,650,962
53,650,962
0
true
2018-12-06T11:52:09.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can we save from/input data to same html file<p>I have a requirement where I need to produce data in table format and send the html file to team.</p> <p>For...
53,651,407
calling functions in console.log not outputting anything in firefox console?<p>I'm still new to programming in general and need some help! Here's my code block under the script tag in my html file, trying to make a simple rock, paper, scissors game work. My problem is that nothing is appearing in my firefox console at ...
<ol> <li>Tidying the code shows the error was a surplus bracket in <code>Math.floor((Math.random() * rpsLength)</code></li> <li>You need to have the array defined BEFORE calling the function so in your code, move <code>var computerSelection = computerPlay();</code> to before the console.log</li> <li>No need for a switc...
calling functions in console.log not outputting anything in firefox console?
javascript|firefox|console
0
42
1
53,651,571
53,651,571
0
true
2018-12-06T12:24:20.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: calling functions in console.log not outputting anything in firefox console?<p>I'm still new to programming in general and need some help! Here's my code blo...
53,619,781
Arrangement of diamond-shaped buttons<p>View have a background diamond pattern. It is necessary to place the "buttons" as in the picture.</p> <p>I did this kind of markup, but if the size of the space that these buttons start plusits. How can I get rid of static sizes in my case? Or you can prompt as it is possible on...
<pre><code>implementation 'com.android.support.constraint:constraint-layout:1.1.3' &lt;android.support.constraint.ConstraintLayout android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintDimensionRatio="1:1" ...
Arrangement of diamond-shaped buttons
android
0
71
1
53,651,608
53,651,608
0
true
2018-12-04T19:03:48.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Arrangement of diamond-shaped buttons<p>View have a background diamond pattern. It is necessary to place the "buttons" as in the picture.</p> <p>I did this ...
53,650,126
Doctrine ODM bundle document mapping in XML format<p>I'm using Doctrine ODM bundle with Symfony 4. Trying to use XML mapping format for Documents and getting the following error: </p> <p><code> No mapping file found named 'Post.mongodb.xml' for class 'App\Document\Post'. </code></p> <p>My <strong>doctrine_mongodb.yam...
<p>Everything was correct in my configs from the question execpt trailing slash in <code>prefix</code> value.</p> <p>According to the <a href="https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/1.2/reference/xml-mapping.html#xml-mapping" rel="nofollow noreferrer">documentation</a>:</p> <blockquote> <...
Doctrine ODM bundle document mapping in XML format
mongodb|symfony|doctrine-orm|doctrine-odm|odm
0
787
2
53,651,948
53,651,948
0
true
2018-12-06T11:11:51.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Doctrine ODM bundle document mapping in XML format<p>I'm using Doctrine ODM bundle with Symfony 4. Trying to use XML mapping format for Documents and getting...
53,646,249
How to add dedicated master node to existing elasticsearch cluster<p>We have 6 elasticsearch 6.4 with 3 of them are master eligible does both master and data node operations.</p> <p>We are thinking of getting 3 dedicated Master as we see the 3 Master/Data node uses high resource utilization sometime and feel that it m...
<p>We found our procedure on how to do this from below link.</p> <p><a href="https://discuss.elastic.co/t/introduction-of-dedicated-master-nodes/43601" rel="nofollow noreferrer">https://discuss.elastic.co/t/introduction-of-dedicated-master-nodes/43601</a></p> <p>We followed following steps (except disabling http port...
How to add dedicated master node to existing elasticsearch cluster
elasticsearch|elasticsearch-6
0
804
1
53,652,280
53,652,280
0
true
2018-12-06T07:10:16.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add dedicated master node to existing elasticsearch cluster<p>We have 6 elasticsearch 6.4 with 3 of them are master eligible does both master and data...
53,512,484
WSO2 EMM emm-agent-Android Agent compatibality with wso2 2.2.0<p>I am using wso2 emm version 2.2.0 and using EMM Agent Android version 3.0.3. Users complaint on frequent disconnect and require re enrollment. Sometimes reenrollment also fails. Is it advisable using a different version agent with EMM server? What is the ...
<p>No, it is not advisable to use incompatible versions of WSO2 client and server.</p> <p>You can check compatibility in the <a href="https://docs.wso2.com/display/EMM330/WSO2+IoT+Server+and+Agent+Compatibility" rel="nofollow noreferrer">documentation</a></p>
WSO2 EMM emm-agent-Android Agent compatibality with wso2 2.2.0
wso2|wso2-iot
0
42
1
53,652,360
53,652,360
0
true
2018-11-28T05:05:19.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: WSO2 EMM emm-agent-Android Agent compatibality with wso2 2.2.0<p>I am using wso2 emm version 2.2.0 and using EMM Agent Android version 3.0.3. Users complaint...
53,637,630
Slick filter nscala-time DateTime by greaterEqual or smallerEqual<p>I am trying to filter <code>nscala-time</code> <code>DateTime</code> with <code>Slick</code></p> <pre><code>package models.repositories.tables import java.sql.Timestamp import com.github.nscala_time.time.Imports._ import models.entities.User import s...
<p>All I need was to explicitly import the <code>implicit def dateTimeMapping</code> where I need to use it</p> <pre><code>import models.repositories.tables.UserTable.dateTimeMapping </code></pre>
Slick filter nscala-time DateTime by greaterEqual or smallerEqual
scala|slick|nscala-time
0
61
1
53,652,430
53,652,430
0
true
2018-12-05T17:22:56.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Slick filter nscala-time DateTime by greaterEqual or smallerEqual<p>I am trying to filter <code>nscala-time</code> <code>DateTime</code> with <code>Slick</co...
53,630,135
How do i create a grid (Matrix 4xn) with checkboxes in vaadin?<p>I'm trying to create a grid matrix with checkboxes (see picture 1). But I want the checkboxes to be as big as the grid (see picture 2). How can I realize that? Is it possible in Vaadin to make the grid clickable, then you can leave the checkboxes out comp...
<p>Extend the Button class. Use the style BUTTON_LINK and have no caption. Then use resource icons to swap what is shown. The swapping of icons and saving state should be added as a click listener.</p>
How do i create a grid (Matrix 4xn) with checkboxes in vaadin?
java|grid|vaadin|grid-layout|vaadin7
0
49
1
53,652,508
53,652,508
0
true
2018-12-05T10:27:24.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do i create a grid (Matrix 4xn) with checkboxes in vaadin?<p>I'm trying to create a grid matrix with checkboxes (see picture 1). But I want the checkboxe...
53,435,161
Loop detection in connected graph<p>Most example I found only treat single linked lists. I need a solution for a multiple linked list.</p> <p>Image is easier (valid):</p> <p><a href="https://i.stack.imgur.com/21goY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/21goY.png" alt="enter image descript...
<p>Just check if a route from 'end of connection node (B)' to 'start of connection node (C)' exists, if yes, a new loop would be created. Doesn't quite answer it, but good enough...</p>
Loop detection in connected graph
loops|detection|cycle
0
63
1
53,652,812
53,652,812
0
true
2018-11-22T16:37:14.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Loop detection in connected graph<p>Most example I found only treat single linked lists. I need a solution for a multiple linked list.</p> <p>Image is easie...
53,652,063
Make advanced Search with Inner Join Tables<p>I have a question. I have two tables with an NN relationship. They are perfectly well linked in base (verified by the console with a Tips.find(1).categories). The two tables are Tip and Category. My objective is to create a search form that allows you to select a category, ...
<p>If I am reading it correct you are looking for a category so that you can display all the tips related to the category. Why don't you just do this in youre controller.</p> <p><code>@tip = Category.where("name LIKE ?", "#{params[:search]}%").includes(:tips).map(&amp;:tips).uniq</code></p> <p>name would be the datab...
Make advanced Search with Inner Join Tables
mysql|ruby-on-rails|ruby|inner-join
0
46
1
53,652,859
53,652,859
0
true
2018-12-06T13:01:45.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make advanced Search with Inner Join Tables<p>I have a question. I have two tables with an NN relationship. They are perfectly well linked in base (verified ...
53,652,989
Python : nested list comprehension<p><strong>I have a nested list issue that I cannot solve.</strong></p> <p><strong>Input</strong></p> <hr> <pre><code>li= [1, 2, 3, 4] [5, 6, 7, 8] [9,10,11,12] </code></pre> <hr> <pre><code>newList = [[0 if kk==6 or kk==7 else kk for kk in x] for x in li] </code></pre> <h2><stro...
<p>Slice numpy arrays</p> <pre><code>a=[[1, 2, 3, 4], [5, 0, 0, 8], [9,10,11,12]] b=np.array(a) list(b[0:1][0]) + list(b[1:,-1]) + list(b[-1:][0])[-2::-1] + list(b[1:,0])[-2::-1] </code></pre> <p><strong>Output</strong></p> <pre><code>[1, 2, 3, 4, 8, 12, 11, 10, 9, 5] </code></pre>
Python : nested list comprehension
python
0
64
1
53,653,463
53,653,463
0
true
2018-12-06T13:55:33.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python : nested list comprehension<p><strong>I have a nested list issue that I cannot solve.</strong></p> <p><strong>Input</strong></p> <hr> <pre><code>li...
53,654,400
Migrate attributes from a table to another table<p>I have two tables : </p> <pre><code>TEST1 : attribut1, attribut2, attribut3 TEST2 : attribut4 </code></pre> <p><strong>attribut4 pattern is like "xxxxx yyyyy zzzzz"</strong> </p> <p>My question is, is it possible to put in TEST1 attribut1 all the "xxxxx", in the...
<p>You can use <code>split_part()</code>:</p> <pre><code>insert into TEST1 (attribut1, attribut2, attribut3) SELECT split_part(attribut4, ' ', 1)::int, split_part(attribut4, ' ', 2)::int, split_part(attribut4, ' ', 3)::int FROM TEST2; </code></pre>
Migrate attributes from a table to another table
sql|postgresql|migrate
0
44
1
53,654,458
53,654,458
0
true
2018-12-06T15:13:36.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Migrate attributes from a table to another table<p>I have two tables : </p> <pre><code>TEST1 : attribut1, attribut2, attribut3 TEST2 : attribut4 </code>...
53,654,330
How to create grid with bootstrap<p>Using bootstrap 4, what is the difference between the sections "test 1" and "test 2"? Im trying to create a layout that puts a modest gutter between the columns. One has elements within the row and the other does not</p> <pre><code> &lt;style type="text/css"&gt; .section { fon...
<p>The "gutter" (spacing between columns is created with padding). To change it, adjust the padding...</p> <pre><code> &lt;div class="row"&gt; &lt;div class="col-sm-4 px-2"&gt;&lt;div class="section"&gt;.col-sm-4&lt;/div&gt;&lt;/div&gt; &lt;div class="col-sm-8 px-2"&gt;&lt;div class="section"&gt;.col-sm-8&lt;...
How to create grid with bootstrap
bootstrap-4
0
12
1
53,654,498
53,654,498
0
true
2018-12-06T15:09:58.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create grid with bootstrap<p>Using bootstrap 4, what is the difference between the sections "test 1" and "test 2"? Im trying to create a layout that ...
53,648,160
Return epilogue after test executed in cloud<p>Hi I have a question about reporters output using browserstack. When I start to run test's in cloud reporter output stopped showing epilogue, can I return it somehow? using spec</p>
<p>I manage to do this by commenting this line:</p> <pre><code>if (!this.printEpilogue) { return; </code></pre> <p>In basereporter.js</p>
Return epilogue after test executed in cloud
selenium|mocha.js|webdriver-io|browserstack
0
28
1
53,654,562
53,654,562
0
true
2018-12-06T09:25:32.887Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Return epilogue after test executed in cloud<p>Hi I have a question about reporters output using browserstack. When I start to run test's in cloud reporter o...
53,604,950
Drill "VALIDATION ERROR: A table or view with given name already exists in schema" for empty directory<p>After upgrading drill on our cluster to drill-1.12.0-mapr, testing our daily ETL scripts (which all use drill for converting parquet files to tsv), a validation error ("<em>table or view with given name already exis...
<p>Looks like you have made some mistake in the process of updating Drill version on your MapR cluster. <p>Please see this doc for more info: <a href="http://doc.mapr.com/display/MapR/Upgrading+to+the+Latest+Version+of+Drill" rel="nofollow noreferrer">http://doc.mapr.com/display/MapR/Upgrading+to+the+Latest+Version+of+...
Drill "VALIDATION ERROR: A table or view with given name already exists in schema" for empty directory
apache-drill
0
1,070
2
53,654,748
53,654,748
0
true
2018-12-04T02:42:20.440Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Drill "VALIDATION ERROR: A table or view with given name already exists in schema" for empty directory<p>After upgrading drill on our cluster to drill-1.12.0...
53,655,929
How to access an uploaded file in the browser in Lumen<p>I can successfully upload files to the /storage/app folder but now I'm wondering how I can view these (image) files in the browser. </p> <p>I've setup a symlink /public/storage that points to /storage/app</p> <p>I'm trying to access the file through <a href="ht...
<p>Sorry, my bad. My symlink was incorrect. I executed this command (my current path was the root of my application):</p> <pre><code>ln -s storage/app public/storage </code></pre> <p>This should be (complete paths): </p> <pre><code>ln -s /var/www/storage/app /var/www/public/storage </code></pre>
How to access an uploaded file in the browser in Lumen
php|lumen
0
1,355
1
53,656,250
53,656,250
0
true
2018-12-06T16:39:43.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to access an uploaded file in the browser in Lumen<p>I can successfully upload files to the /storage/app folder but now I'm wondering how I can view thes...
53,650,876
Swap image using setInterval() with class – p5.js<p>I'm working on a project on p5.js</p> <p>My goal is to swap image every X seconds as I did in this example <a href="https://editor.p5js.org/shannon/sketches/ryqmclV1E" rel="nofollow noreferrer">here</a>. <br></p> <p>The problem is that when <a href="https://editor.p...
<p>Let's start with a simpler example:</p> <pre><code>class Test { constructor(testMessage) { this.testMessage = testMessage; } show() { println(this.testMessage); } } </code></pre> <p>What would you expect to happen with this code?</p> <pre><code>var message = 'hello'; var test = new Test(message); ...
Swap image using setInterval() with class – p5.js
javascript|class|setinterval|p5.js
0
269
1
53,656,578
53,656,578
0
true
2018-12-06T11:52:53.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Swap image using setInterval() with class – p5.js<p>I'm working on a project on p5.js</p> <p>My goal is to swap image every X seconds as I did in this examp...
53,654,605
H2o issue: classification model gradient boost and random Forrest<p>I am trying to predict the Costa Rican Household Poverty Level Prediction. There are 4 levels in the "Target" column which I already converted to factor. However, I could not look up my AUC or do grid search. I keep encountering this error </p> <bloc...
<p>AUC is only available for binary classification, if you are interested in a multi-class classification metric you can try using logloss, for example.</p> <p>Here's a description for AUC from the <a href="http://AUC%20(Area%20Under%20the%20ROC%20Curve)%20This%20model%20metric%20is%20used%20to%20evaluate%20how%20well...
H2o issue: classification model gradient boost and random Forrest
r|gradient|random-forest|h2o
0
306
1
53,656,670
53,656,670
0
true
2018-12-06T15:26:41.193Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: H2o issue: classification model gradient boost and random Forrest<p>I am trying to predict the Costa Rican Household Poverty Level Prediction. There are 4 le...
53,568,880
How to change media url structure for special formats<p>i want to change media url for special formats automaticlly, How can i do it ?</p> <p>for example :</p> <blockquote> <p>(images) site.com/wp-content/uploads/2018/2/sample.jpg</p> <p>(video) site.com/?vid=sample.mp4</p> </blockquote>
<p>actually it's not possible, because the url of media library will generate automaticlly with wp_upload_dir url, so we can't change one of them.</p>
How to change media url structure for special formats
php|wordpress
0
27
1
53,656,808
53,656,808
0
true
2018-12-01T07:51:18.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to change media url structure for special formats<p>i want to change media url for special formats automaticlly, How can i do it ?</p> <p>for example :<...
53,657,098
IF in SELECT Clause<p>How can I return one column or another depending of its value?</p> <p>I have the following stored procedure (this is just an example):</p> <pre><code>SELECT Stds.FirstName, Addrs.Address FROM Students AS Stds INNER JOIN Address AS Addrs ON Addrs.StdId = Stds.StdId GROUP BY ...
<p>Ok, for my particular case, and maybe in general I wanted to use ISNULL().</p> <p>Response here: <a href="https://stackoverflow.com/questions/9878523/select-a-column-if-other-column-is-null">Select a column if other column is null</a></p>
IF in SELECT Clause
sql-server-2012
0
34
3
53,657,158
53,657,158
0
true
2018-12-06T17:51:16.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: IF in SELECT Clause<p>How can I return one column or another depending of its value?</p> <p>I have the following stored procedure (this is just an example):...
53,581,639
Docker Nginx Reverse Proxy for Protection of Docker Container<p>I have two docker services (an angular web-app and a tomcat backend), which I want to protect with a third docker service, which is an nginx configured as a reverse-proxy. My proxy configuration is working, but I'm suffering with the basic authorization my...
<p>I've solved my issue, by listining on port <code>80</code> for request with <code>/api</code> and redirected them to the tomcat on port 8080. For that I also had to adjust my front- and backend requests, now all my backend request begin with <code>/api</code>. By this solution I'm able to implement the basic auth on...
Docker Nginx Reverse Proxy for Protection of Docker Container
docker|nginx|reverse-proxy|basic-authentication
0
2,347
2
53,657,423
53,657,423
0
true
2018-12-02T15:20:22.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Docker Nginx Reverse Proxy for Protection of Docker Container<p>I have two docker services (an angular web-app and a tomcat backend), which I want to protect...
53,659,613
Removing data attribute on mouseleave<p>I have some navigation links that when hovered over creates a data attribute on the body tag which enables me to add a background color to different links which is exactly what I want however what I'd like is when I hover out of those links the data attribute is removed or a clas...
<p><strong>The opposite of <code>mouseover</code> is <code>mouseout</code>.</strong> The example below demonstrates how you can use <code>data-nav</code> as a parameter to effect the styling of elements within the body. </p> <p>I've added a second javascript function adding a <code>mouseout</code> event to each of the...
Removing data attribute on mouseleave
javascript
0
300
3
53,659,812
53,659,812
0
true
2018-12-06T21:00:23.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Removing data attribute on mouseleave<p>I have some navigation links that when hovered over creates a data attribute on the body tag which enables me to add ...
53,601,433
How to ensure plugin menu items are correctly greyed out or not (enabled / disabled) ( javascript, Adobe Bridge)<p>I'm making some Adobe Bridge (CS 5.1) plugins.</p> <p>My problem is that I cannot figure out how to ensure that their respective menu items will be greyed out unless the user has selected valid items for ...
<p>Okay, I figured out what was wrong. I have changed it to...</p> <pre><code>function greyOutMenu () { var doc = app.document; var here = doc.presentationPath; var thisFolder = Folder ( here ); if ( decodeURI ( thisFolder.name ) === "correct folder name" ) { menuItem.enabled = true; } else { men...
How to ensure plugin menu items are correctly greyed out or not (enabled / disabled) ( javascript, Adobe Bridge)
javascript|menu|adobe|menuitem|adobe-bridge
0
42
1
53,660,120
53,660,120
0
true
2018-12-03T20:32:24.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to ensure plugin menu items are correctly greyed out or not (enabled / disabled) ( javascript, Adobe Bridge)<p>I'm making some Adobe Bridge (CS 5.1) plug...
53,659,815
Using Bootstrap my nav bar is too long on mobile<p>I am having a little trouble with the code of my website <a href="https://bjmrq.github.io/foyer.html" rel="nofollow noreferrer">https://bjmrq.github.io/foyer.html</a> everything is fine on laptop but as soon as I go check it with my mobile the navbar seem to be too lon...
<p>The <code>&lt;hr&gt;</code> element just under the first <code>&lt;h1&gt;</code> tag has a set width <code>width: 500px;</code> which is causing the rest of the body to be pushed left on smaller screens.</p>
Using Bootstrap my nav bar is too long on mobile
html|css|bootstrap-4|navbar|nav
0
543
2
53,660,453
53,660,453
0
true
2018-12-06T21:18:17.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Bootstrap my nav bar is too long on mobile<p>I am having a little trouble with the code of my website <a href="https://bjmrq.github.io/foyer.html" rel=...
53,660,840
Sum Total QTY of Widgets<p>I would like Cell E11 to be a "Smart Cell" that can SUM the total QTY of only items that match a catalog of items</p> <p>In this example I'd like a formula that will SUM the QTYs of only a certain list of items. . </p> <p>Example - what would be a formula for cell E11 that would only SUM th...
<p>SUMPRODUCT a SUMIFS():</p> <pre><code>=SUMPRODUCT(SUMIFS(A:A,D:D,{"HDU5","HDU2","A35","298"})) </code></pre>
Sum Total QTY of Widgets
excel-formula
0
35
1
53,660,875
53,660,875
0
true
2018-12-06T22:47:03.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sum Total QTY of Widgets<p>I would like Cell E11 to be a "Smart Cell" that can SUM the total QTY of only items that match a catalog of items</p> <p>In this ...