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,752,928 | Is there a way to execute a query on SOLR where I have a list of words that need to be in different fields?<p>everybody. I'm trying to elaborate a query that complies with the following:<br>
Find a set of words that appear in a group of fields. For example, i want to find the documents that have the words soccer, ball ... | <p>You can do this by using the edismax handler (<code>defType=edismax</code>), setting <code>q.op=AND</code> (since all the terms has to be present) and using <code>qf=sport_name description</code> to tell Solr to search for the given terms in both fields.</p>
<p>You can also use <code>qf=sport_name^2 description</co... | Is there a way to execute a query on SOLR where I have a list of words that need to be in different fields? | solr | 0 | 19 | 1 | 53,753,124 | 53,753,124 | 0 | true | 2018-12-12T23:25:38.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way to execute a query on SOLR where I have a list of words that need to be in different fields?<p>everybody. I'm trying to elaborate a query that... |
53,734,397 | App erasure, when different apps use the same library<p>I have created a project, using library from another my earlier project as in this example</p>
<p><a href="https://stackoverflow.com/questions/24658422/android-studio-creating-modules-without-copying-files">Android Studio - Creating Modules without copying files?... | <p>I have fixed it by correction <code>applicationId</code> parameter in build.gradle</p> | App erasure, when different apps use the same library | android|android-studio|module | 0 | 31 | 1 | 53,753,289 | 53,753,289 | 0 | true | 2018-12-12T00:29:14.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
App erasure, when different apps use the same library<p>I have created a project, using library from another my earlier project as in this example</p>
<p><a... |
53,743,665 | Reading from CosmosDB and write to Azure SQL<p>I have an Azure function to read from Cosmos DB and write to SQL. Since I am new to coding I have a little of struggle to understand how to read the incoming document. I can see that documents are shown at <strong>input</strong>: </p>
<pre><code> public static asyn... | <p>You want to get data from a json document,we can use the Newtonsoft.Json.dll file to parse the json document.
I think you can change you code like this:</p>
<pre><code>List<Info> jobInfoList = JsonConvert.DeserializeObject<List<Info>>(json);
</code></pre>
<p>And here is a sample about how to get ... | Reading from CosmosDB and write to Azure SQL | sql-server|database|function|azure|azure-cosmosdb | 0 | 309 | 1 | 53,754,250 | 53,754,250 | 0 | true | 2018-12-12T13:03:31.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reading from CosmosDB and write to Azure SQL<p>I have an Azure function to read from Cosmos DB and write to SQL. Since I am new to coding I have a little of ... |
53,588,916 | Exoplayer Aspect Ratio in Android 7+<p>I'm having a problem when making video apps for android tv using exoplayer. In android 6 (Api 23), I can make the aspect ratio like this:</p>
<p><a href="https://i.stack.imgur.com/VeIGq.jpg" rel="nofollow noreferrer">
<img src="https://i.stack.imgur.com/VeIGq.jpg" width="350"/></... | <p>I just figure it out that the problem is with the STB device. When I try in another STB device with the same version (Android 7.1.2), its working fine.</p> | Exoplayer Aspect Ratio in Android 7+ | android|aspect-ratio|android-tv|exoplayer|exoplayer2.x | 0 | 320 | 1 | 53,754,774 | 53,754,774 | 0 | true | 2018-12-03T07:00:22.330Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Exoplayer Aspect Ratio in Android 7+<p>I'm having a problem when making video apps for android tv using exoplayer. In android 6 (Api 23), I can make the aspe... |
53,754,891 | React JS :Cannot read property 'dataTransfer' of undefined in children component<p>i want make a drag-drop app
but a has 1 error here</p>
<blockquote>
<p>Cannot read property 'dataTransfer' of undefined in children component</p>
</blockquote>
<pre><code>class DragDrop extends Component {
render() {
retu... | <p>You need to pass a function to <code>onDragStart</code> to access <code>event</code></p>
<pre><code>onDragStart={(event) => event.dataTransfer.setData('text/plain',null)}
</code></pre>
<p>Of course, a better way to handle this is to create a separate function, for readability.</p>
<pre><code>class DragDrop ext... | React JS :Cannot read property 'dataTransfer' of undefined in children component | javascript|reactjs | 0 | 1,039 | 1 | 53,754,916 | 53,754,916 | 0 | true | 2018-12-13T04:07:15.947Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React JS :Cannot read property 'dataTransfer' of undefined in children component<p>i want make a drag-drop app
but a has 1 error here</p>
<blockquote>
<p>... |
53,410,628 | persist custom data in NVRAM<p>My requirement is that I need to write some custom application data (that I currently store in a file) to NVRAM for persistence during imaging on Windows 10. How to achieve this? </p>
<p>Note: By using SetFirmwareEnvironmentVariable() API with firmware environment variable name as "myVar... | <p>The NVRAM variables can be created using these Windows API. The created variables can be viewed using EFI shell command 'dmpstore'. Following link explains on how to create a bootable EFI shell.</p>
<p><a href="https://github.com/tianocore/edk2/raw/master/ShellBinPkg/UefiShell/X64/Shell.efi" rel="nofollow noreferre... | persist custom data in NVRAM | visual-c++|windows-10|uefi | 0 | 288 | 1 | 53,755,644 | 53,755,644 | 0 | true | 2018-11-21T10:58:12.263Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
persist custom data in NVRAM<p>My requirement is that I need to write some custom application data (that I currently store in a file) to NVRAM for persistenc... |
53,748,972 | Having trouble using int(), split(), and nosetests with Python<p>This is my first post.</p>
<p>I have a block of code that I am trying to run nosetests on. </p>
<p>There is a very simple fix to make this code run and that is by putting the integers in quotes.</p>
<p>What I want to accomplish is to have a dictionary ... | <p>You can use isnumeric() method to check if the string is numeric and than do a conversion to int.</p>
<pre><code>lexicon = {
'1234': 'number',
3: 'number',
91234: 'number'
}
def scan(sentence):
results = []
words = sentence.split()
for word in words:
if word.isnumeric(): #change
... | Having trouble using int(), split(), and nosetests with Python | python|string|dictionary|integer|nose | 0 | 43 | 1 | 53,756,021 | 53,756,021 | 0 | true | 2018-12-12T18:11:23.190Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Having trouble using int(), split(), and nosetests with Python<p>This is my first post.</p>
<p>I have a block of code that I am trying to run nosetests on. ... |
53,737,032 | ziparchive() issue in server<p>I am not able to create a .zip file using ziparchive()
I am using below piece of code</p>
<pre><code>$zip = new ZipArchive();
$filename = "./mynewzip.zip";
if ($zip->open($filename, ZipArchive::CREATE)!==TRUE) {
echo ("<script LANGUAGE='JavaScript'> window.alert('Error ope... | <p>Updated the php.ini as </p>
<pre><code>extension=zip.so
</code></pre>
<p>Below the</p>
<pre><code>; extension=msql.so
</code></pre> | ziparchive() issue in server | php|linux|centos|ziparchive | 0 | 31 | 1 | 53,756,141 | 53,756,141 | 0 | true | 2018-12-12T06:10:19.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ziparchive() issue in server<p>I am not able to create a .zip file using ziparchive()
I am using below piece of code</p>
<pre><code>$zip = new ZipArchive()... |
53,741,240 | Is there a better approach to update complex interfaces so that changes reflect in view<p>How do I update a complex interface as props in the views after it is being updated in the store? </p>
<p>In the following case, I am trying to do a validation in the reducer. Based on the validation, I have to update the label ... | <p>Ah! I just see the pb.
Always add current typed state in inputs value.
Example: </p>
<pre><code><Input name={props.user.FirstName.Name}
label= {props.user.FirstName.Name}
placeholder= ''
value={props.user.Email.Text}
onChange={props.onChange}
error= {props.user.FirstName.ErrorMessage}
/>
</code></pre>
... | Is there a better approach to update complex interfaces so that changes reflect in view | react-redux | 0 | 20 | 2 | 53,756,852 | 53,756,852 | 0 | true | 2018-12-12T10:43:18.710Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a better approach to update complex interfaces so that changes reflect in view<p>How do I update a complex interface as props in the views after it ... |
53,709,061 | Rekognition namespaces aren't resolved in Eclipse AWS toolkit<p>In the Amazon Rekognition Developer Guide there is a tutorial "Create the AWS Toolkit for Eclipse Lambda Project" </p>
<p>It tells me to resolve namespace issues in Eclipse by doing this : </p>
<pre><code> The Rekognition namespaces aren't resolved. ... | <p>According to an AWS support representive : </p>
<pre><code>The AWS Rekognition SDK is configured in the pom.xml file which is managed by Maven. You should see something like this in your pom.xml
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-rekognition&l... | Rekognition namespaces aren't resolved in Eclipse AWS toolkit | eclipse|amazon-web-services|aws-java-sdk|aws-toolkit | 0 | 260 | 1 | 53,757,195 | 53,757,195 | 0 | true | 2018-12-10T15:46:29.523Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Rekognition namespaces aren't resolved in Eclipse AWS toolkit<p>In the Amazon Rekognition Developer Guide there is a tutorial "Create the AWS Toolkit for E... |
53,734,275 | To Add colors for column cell text based on conditions in react-virtualised table<p>I am using table & column components from react-virtualised module.</p>
<p>I have a requirement to add color to cell text based on few conditions. I did not find a way to do so.</p>
<p><a href="https://github.com/bvaughn/react-vir... | <p>Found a solution using cell renderer</p>
<pre><code>getColorPalate(risk) {
let riskColor;
switch (true) {
case risk < 25:
riskColor = '#00CD63';
break;
case risk > 25 && risk < 50:
riskColor = '#F8E71C';
break;
case ris... | To Add colors for column cell text based on conditions in react-virtualised table | reactjs|react-virtualized | 0 | 50 | 1 | 53,757,394 | 53,757,394 | 0 | true | 2018-12-12T00:10:16.120Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
To Add colors for column cell text based on conditions in react-virtualised table<p>I am using table & column components from react-virtualised module.</... |
53,757,963 | Exception on orientation change from two-pane mode to one-pane mode<p>I have a demo app which supports both smartphones and tablets. </p>
<p>Also it supports orientation change. </p>
<p>On tablets there is one pane and two pane modes. Two pane modes works only in landscape mode. All UI is exposed into fragments. </p>... | <p>The issue was in setRetainInstance(true) in detailed fragment (it was missed due refactoring). </p>
<p>When it was removed everything starts work well. </p> | Exception on orientation change from two-pane mode to one-pane mode | android|screen-orientation | 0 | 28 | 1 | 53,758,056 | 53,758,056 | 0 | true | 2018-12-13T08:43:34.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Exception on orientation change from two-pane mode to one-pane mode<p>I have a demo app which supports both smartphones and tablets. </p>
<p>Also it support... |
53,485,837 | ASP.NET User Control - Build on Every Change<p>I am working on building a User Control Asp.net - VB.Net.</p>
<p>When we do any change to User Control Code we have to build the project to see the code change.</p>
<p>Since the project is huge take a long time to build - can you suggest any shorter or better way or tips... | <p>I was able to reduce the build time by doing a command line build. using msbuild - it was faster.</p>
<p>Additionally, I tweaked command to just build the web project only</p>
<pre><code>msbuild EBR.Web.vbproj
</code></pre>
<p>Hope it helps someone else as well.</p> | ASP.NET User Control - Build on Every Change | asp.net|.net|msbuild|user-controls|development-environment | 0 | 28 | 1 | 53,758,462 | 53,758,462 | 0 | true | 2018-11-26T17:01:48.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ASP.NET User Control - Build on Every Change<p>I am working on building a User Control Asp.net - VB.Net.</p>
<p>When we do any change to User Control Code w... |
53,655,837 | mat table column with filter the sort arrows is not visible<p>I am new to angular...
My mat-table is working fine, but when column has filter and sorting functionality the sort arrows is not visible on columns with filter.
I was trying to adjust the column wight, but no matter how small or big the column the arrows is... | <p>It will only be visible for the column width greater than mat form field</p>
<p>and for reducing the width of form field use exact size not %. percentage doesn't change sort header width</p>
<pre><code>.mat-form-field {
font-size: 13px;
width: 110px; //put the value you need
}
</code></pre>
<p>here is t... | mat table column with filter the sort arrows is not visible | angular|angular-material|angular-filters|angular-material-table | 0 | 2,886 | 2 | 53,758,572 | 53,758,572 | 0 | true | 2018-12-06T16:34:57.893Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
mat table column with filter the sort arrows is not visible<p>I am new to angular...
My mat-table is working fine, but when column has filter and sorting fu... |
53,741,968 | Transitions & Hovers are overlapping/overriding eachother, how to fix?<p>I'm making a soundboard for and I've stumbled upon a problem. I was styling the buttons and here's how it has to look...
When you hover over the button the planet should:</p>
<ul>
<li>Rotate around it's axis (that works)</li>
<li>Saturate the pla... | <p>I found the solution, I changed some CSS:</p>
<pre><code> .number-under {
position: absolute;
left: 0;
z-index: 1;
opacity: 0;
transform: rotate(0deg);
transition: transform 300s, opacity 2s;
}
.number:hover ~ .number-under {
opacity: 1;
... | Transitions & Hovers are overlapping/overriding eachother, how to fix? | hover|overriding|transition|overlap | 0 | 41 | 1 | 53,759,229 | 53,759,229 | 0 | true | 2018-12-12T11:22:26.603Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Transitions & Hovers are overlapping/overriding eachother, how to fix?<p>I'm making a soundboard for and I've stumbled upon a problem. I was styling the butt... |
53,749,051 | Insert node into XML without using sql:variable<p>I have looked throughout the interwebs (including SO but I have probably missed it) for a way to insert a node into existing XML which is contained in a variable without first creating as XML in a variable a string of the node which I would like to insert and using "set... | <p>You hit various flaws of SQL Server's XML support here... </p>
<p>With nested XML there's no other way then to use sub-queries. But the <em>repeating namespaces</em> in sub-queries are a very annoying issue. The XML produced is perfeclty okay, but the repeated namespace declarations can really bloat your XML enormo... | Insert node into XML without using sql:variable | xml|sql-server-2008-r2|xquery | 0 | 46 | 1 | 53,759,726 | 53,759,726 | 0 | true | 2018-12-12T18:16:17.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Insert node into XML without using sql:variable<p>I have looked throughout the interwebs (including SO but I have probably missed it) for a way to insert a n... |
53,760,019 | laravel 5.7 console test how to create Artisan::command()<p>Hi Where to put this code ,it must be something like class or maybe I will have to generate file and how to do it ?</p>
<pre><code>Artisan::command('question', function () {
$name = $this->ask('What is your name?');
$language = $this->choice('W... | <p>You have 2 options.</p>
<p><strong>First option:</strong> In console routing file (routes/console.php)</p>
<pre><code>Artisan::command('question', function () {
$name = $this->ask('What is your name?');
$language = $this->choice('Which language do you program in?', [
'PHP',
'Ruby',... | laravel 5.7 console test how to create Artisan::command() | laravel | 0 | 61 | 1 | 53,760,127 | 53,760,127 | 0 | true | 2018-12-13T10:42:07.963Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
laravel 5.7 console test how to create Artisan::command()<p>Hi Where to put this code ,it must be something like class or maybe I will have to generate file ... |
53,754,312 | How to use SQL Server Compact edition as embedded source in desktop application and also to bakup in application itself?<p>I'm using SQL Server Compact Edition version 4.0 in my WPF application using the .NET framework 4.0. Can I use my DB packed as embedded source within my application and also backup at certain time?... | <p>Yes, you can include it as an embedded resource, but you must write it to disk before you can use it from your app.</p>
<p>You can backup by stopping all threads using the database and performing a file copy.</p> | How to use SQL Server Compact edition as embedded source in desktop application and also to bakup in application itself? | c#|sql|visual-studio|sql-server-ce | 0 | 68 | 1 | 53,760,134 | 53,760,134 | 0 | true | 2018-12-13T02:41:24.757Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use SQL Server Compact edition as embedded source in desktop application and also to bakup in application itself?<p>I'm using SQL Server Compact Editi... |
53,758,843 | Access Reports don't show up<p>I have a Problem with my Access forms. I'm hiding the Access Database to the users with this code. </p>
<pre><code>Const SW_HIDE = 0
Const SW_NORMAL = 1
Private Declare Function ShowWindow Lib "user32" _
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
In der Öffnen-Sub dei... | <p>I never used that code, but it seems that the reason for your problem is described here in chapter 1.11: <a href="http://www.donkarl.com/FAQ/FAQ1Grundlagen.htm" rel="nofollow noreferrer">http://www.donkarl.com/FAQ/FAQ1Grundlagen.htm</a></p>
<p>(In the article there also is a link to a Microsoft article, but unfortu... | Access Reports don't show up | vba|ms-access | 0 | 66 | 1 | 53,760,340 | 53,760,340 | 0 | true | 2018-12-13T09:38:05.763Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Access Reports don't show up<p>I have a Problem with my Access forms. I'm hiding the Access Database to the users with this code. </p>
<pre><code>Const SW_H... |
53,485,946 | CMS version 2.2 SHA256WithRSAEncryption<p>I need to sign a json document with these requirements: CMS version 2.2, with SHA256WithRSAEncryption algorithm. I am trying this code, but I did not find property to be cms version 2.2.</p>
<p>the code that works is written in Java, This code was developed by the api provider... | <p>I work at this company. Follows a functional example implement in C# using BouncyCastle + DOC-ICP Policy Version 2.2:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using Org.BouncyCastle.Cms;
using Org.BouncyCastle.Pkcs;
using... | CMS version 2.2 SHA256WithRSAEncryption | c#|.net|digital-signature|sign | 0 | 826 | 2 | 53,760,707 | 53,760,707 | 0 | true | 2018-11-26T17:08:48.157Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CMS version 2.2 SHA256WithRSAEncryption<p>I need to sign a json document with these requirements: CMS version 2.2, with SHA256WithRSAEncryption algorithm. I ... |
53,760,475 | Page to route 404 with login<p>My problem is when I started using a <code>router.beforeEach()</code> he won't go to the page of 404 when I typ a not existing link. He just go to page with the defaukt layout I use. I use <code>router.beforeEach()</code> for checking if a user is logged in or not. Is there something miss... | <p>If I understand well your problem, when a user type something wrong in the url and is <strong>not logged in</strong>, this user is redirected to '/' instead of 404.</p>
<p>It's because the beforeEach hook is used before your route redirect <code>{path: '*', redirect: '/404'}</code> and your condition to redirect an... | Page to route 404 with login | vue.js|vue-router | 0 | 45 | 1 | 53,761,106 | 53,761,106 | 0 | true | 2018-12-13T11:07:14.933Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Page to route 404 with login<p>My problem is when I started using a <code>router.beforeEach()</code> he won't go to the page of 404 when I typ a not existing... |
53,744,458 | PayPal Express return configuration produces couldn't find Order without an ID<p>I am working on a PayPal express integration and successfully connect to PayPal and place the payment, but on return I get:</p>
<pre><code>ActiveRecord::RecordNotFound in CheckoutController#success
Couldn't find Order without an ID
</cod... | <p>The solution was to change the routes to:</p>
<pre><code>match '/checkout/success/:id', :to => 'checkout#success', :as => :checkout_success
</code></pre>
<p>Now the return_url works.</p>
<p>I had tried <code>match '/checkout/success/:id', :to => 'checkout#success'</code> before, but only the <code>:as =&... | PayPal Express return configuration produces couldn't find Order without an ID | ruby-on-rails|ruby-on-rails-3|paypal | 0 | 21 | 1 | 53,761,880 | 53,761,880 | 0 | true | 2018-12-12T13:46:41.413Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PayPal Express return configuration produces couldn't find Order without an ID<p>I am working on a PayPal express integration and successfully connect to Pay... |
53,761,832 | If stdout file get close where Data get saved or flushed<p>If we closed stdout file using close function and we print data using printf function where Data gets store are flushed</p> | <p>When stdout is closed, printf returns an error, and nothing is output (data is lost).</p>
<p>Excerpt from the printf man page:</p>
<blockquote>
<p>If an output error is encountered, a negative value is returned.</p>
</blockquote> | If stdout file get close where Data get saved or flushed | stdout | 0 | 19 | 1 | 53,762,092 | 53,762,092 | 0 | true | 2018-12-13T12:26:22.533Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
If stdout file get close where Data get saved or flushed<p>If we closed stdout file using close function and we print data using printf function where Data g... |
53,735,136 | what is difference between writing oracle services vs using oraclize in corda?<p>I was reading about oracles in corda <a href="https://docs.corda.net/oracles.html" rel="nofollow noreferrer">https://docs.corda.net/oracles.html</a> , <a href="https://docs.oraclize.it/#c-corda-details" rel="nofollow noreferrer">https://do... | <p>Oracles are a general-purpose concept in Corda whereby a trusted third-party (the <em>oracle</em>) attests to whether a piece of data is correct (optionally, they can also provide the piece of data they are attesting to). You can use an oracle to assert that a given company is bankrupt, or that a natural catastrophe... | what is difference between writing oracle services vs using oraclize in corda? | corda | 0 | 68 | 1 | 53,763,479 | 53,763,479 | 0 | true | 2018-12-12T02:14:05.400Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
what is difference between writing oracle services vs using oraclize in corda?<p>I was reading about oracles in corda <a href="https://docs.corda.net/oracles... |
53,755,120 | Remove parent key from object in array of other objects with no parent key<p>I am fetching data from different sources and have ended up with a several correctly formed json objects and one which has parent keys like below:</p>
<pre><code>{
"0": {
"term_id": 3,
"name": "Burger"
},
"1": {
"term_i... | <p>Use <code>Object.values</code></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const data = {
"0": {
"term_id": 3,
"name": "Burger"
},
"1": {
"term_id": 6... | Remove parent key from object in array of other objects with no parent key | javascript|json|ecmascript-6 | 0 | 529 | 2 | 53,763,658 | 53,763,658 | 0 | true | 2018-12-13T04:42:20.250Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Remove parent key from object in array of other objects with no parent key<p>I am fetching data from different sources and have ended up with a several corre... |
53,616,853 | python-shell javascript not finding my Module<p>I'm trying to call my Python script with python3. The script uses a third party library installed with pip3 called webuntis.</p>
<p>The python script works perfectly on the command line so no errors there.</p>
<p><strong>My Javascript code:</strong>
const python = requi... | <p>Somehow the <strong>pycache</strong> folder in the same directory didn't let my python script import anything. I had to delete the folder AND rename the file since the folder created itself at runtime.</p> | python-shell javascript not finding my Module | javascript|python|node.js|python-3.x | 0 | 75 | 1 | 53,764,863 | 53,764,863 | 0 | true | 2018-12-04T15:59:41.543Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
python-shell javascript not finding my Module<p>I'm trying to call my Python script with python3. The script uses a third party library installed with pip3 c... |
53,765,179 | Ms access 2010, XML<p>I have created a xslt file which transform data thats been exported from mc access as XML.</p>
<p>When the data is exported in a xml format, the data is shown like this:</p>
<pre><code> <StudentDetails>
<StudentNumber>0112142</StudentNumber>
<SiteCode>0... | <p>Assuming you are in the context of <code>StudentDetails</code>, you could do:</p>
<pre><code><StudentDetails>
<StudentNumber extension="{StudentNumber}"/>
<SiteCode extension="{SiteCode}"/>
</StudentDetails>
</code></pre>
<hr>
<p>Read about <a href="https://www.w3.org/TR/1999/REC-x... | Ms access 2010, XML | ms-access|xslt | 0 | 26 | 1 | 53,765,307 | 53,765,307 | 0 | true | 2018-12-13T15:31:25.277Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Ms access 2010, XML<p>I have created a xslt file which transform data thats been exported from mc access as XML.</p>
<p>When the data is exported in a xml f... |
53,653,678 | Censored least absolute deviation (CLAD) regression using CRQ in library QUANTREG<p>I would like to perform a CLAD regression with</p>
<ul>
<li>y = EQ-5D-5L utility scores (bounded from above by 1.0)</li>
<li>x = various patient characteristics</li>
</ul>
<p>I already found out that I need to use <em>CRQ</em> in the ... | <p>If anyone ever comes across the same obstacle: for every y, yc needs to be the value at which y is censored, not a 0/1 censoring indicator.</p>
<p>In my case (y=utility score of the EQ-5D-5L) yc needs to be 1.</p>
<p>The following command does the trick: daten$d <- rep(1.000,377) (because I have 377 observation... | Censored least absolute deviation (CLAD) regression using CRQ in library QUANTREG | r|quantreg | 0 | 317 | 1 | 53,765,939 | 53,765,939 | 0 | true | 2018-12-06T14:34:00.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Censored least absolute deviation (CLAD) regression using CRQ in library QUANTREG<p>I would like to perform a CLAD regression with</p>
<ul>
<li>y = EQ-5D-5L... |
53,752,190 | Populating properties at runtime<p>I have an view object (esri, javascript 4.9) and i am trying to populate the properties.</p>
<p>The code block works fine when i hard code in the values, but it is failing when i try to use a string variable at runtime.</p>
<p>Here is the code, populated with hard coded values</p>
... | <p>The answer to the question is.... it is a unicode issue, javascript does not represent unicode into a string as i was expecting it. So i found a quick fiddle
from
user4322543
on this thread...
<a href="https://stackoverflow.com/questions/17267329/converting-unicode-character-to-string-format">Converting unicode... | Populating properties at runtime | javascript | 0 | 36 | 1 | 53,766,071 | 53,766,071 | 0 | true | 2018-12-12T22:14:01.377Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Populating properties at runtime<p>I have an view object (esri, javascript 4.9) and i am trying to populate the properties.</p>
<p>The code block works fine... |
53,686,899 | Firestore updates using python api are not persisting<p>I have the following code. </p>
<pre><code>from firebase_admin import firestore
db = firestore.client()
collection = db.collection('word_lists')
word_list = collection.get()
for item in word_list:
item_dict = item.to_dict()
print item_dict['next_practic... | <p>I did not find the solution to the problem but instead switched <code>from firebase_admin import firestore</code></p>
<p>to <code>from google.cloud import firestore</code> and everything works well now.</p> | Firestore updates using python api are not persisting | python|firebase|google-cloud-firestore|firebase-admin | 0 | 31 | 1 | 53,766,359 | 53,766,359 | 0 | true | 2018-12-08T20:55:32.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Firestore updates using python api are not persisting<p>I have the following code. </p>
<pre><code>from firebase_admin import firestore
db = firestore.clie... |
53,762,995 | Doctrine2 orderBy in Symfony4 UnitTest<p>I'm having an issue in Symfony when it comes to test my API. I want to get a field and its values that I insert with an orderBy in my DQL. I'm using a getSingleResult to get the result.</p>
<p>When I get it in Postman, the orderBy is functionnal.
When I try to get it in my cons... | <p>I found the answer : when I'm testing my API I'm adding the entity, then I try to get it, but the collection in the parent entity is kept in cache. The fact is Doctrine needs to know that in this particular case the entity must be refreshed so I told my entity manager to use the HINT_REFRESH. Now it's working just f... | Doctrine2 orderBy in Symfony4 UnitTest | doctrine-orm|phpunit|symfony4 | 0 | 24 | 1 | 53,766,773 | 53,766,773 | 0 | true | 2018-12-13T13:30:31.723Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Doctrine2 orderBy in Symfony4 UnitTest<p>I'm having an issue in Symfony when it comes to test my API. I want to get a field and its values that I insert with... |
53,766,007 | How to create android XML file which supports all screen<p>Actually am new to android development, I have created a small calculator app, in which I have developed xml for 5 inch device, which worked in my 5 inch phone . But when I switch this app to bigger size device, items get misaligned. My question is how to creat... | <p>You can use <code>LinearLayout</code> with <code>android:weightSum</code> and <code>android:layoutWeight</code> property to make layouts with having same aspect ratio.</p>
<blockquote>
<p>LinearLayout also supports assigning a weight to individual children with the android:layout_weight attribute. This attribute ... | How to create android XML file which supports all screen | android-studio|android-layout | 0 | 21 | 2 | 53,766,813 | 53,766,813 | 0 | true | 2018-12-13T16:17:31.840Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to create android XML file which supports all screen<p>Actually am new to android development, I have created a small calculator app, in which I have dev... |
53,742,065 | How to exit out of a remote server when jenkins user invokes a script<p>I am trying to implement a continuous deployment pipeline with jenkins and i have two servers namely:</p>
<ol>
<li>Jenkins server</li>
<li>remote server where i am running my application</li>
</ol>
<p>I have managed to send an artifact from the j... | <p>Turns out i just needed to add > /dev/null 2>&1 & at the end of the ssh command so that it looks like this :</p>
<pre><code>> ssh -p 22 myname@myServer '/home/test/ubuntu/server/start.sh >
> /dev/null 2>&1 &'
</code></pre>
<p>This blog gives more information about how to setup jenkins a... | How to exit out of a remote server when jenkins user invokes a script | java|bash|jenkins | 0 | 326 | 1 | 53,766,861 | 53,766,861 | 0 | true | 2018-12-12T11:28:34.977Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to exit out of a remote server when jenkins user invokes a script<p>I am trying to implement a continuous deployment pipeline with jenkins and i have two... |
53,641,192 | Save pm2 logs to USB with ssh script<p>I have ssh script (auto run from usb) to export logs to usb once it plugged in.
Have no problems with all other logs.
But how to export pm2 logs?</p>
<p>Also it's nice to rotate logs on the usb.</p> | <p>To export pm2 logs, copy the file <code>~/.pm2/pm2.log</code></p> | Save pm2 logs to USB with ssh script | shell|logging|ssh|usb|pm2 | 0 | 33 | 1 | 53,767,120 | 53,767,120 | 0 | true | 2018-12-05T21:43:37.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Save pm2 logs to USB with ssh script<p>I have ssh script (auto run from usb) to export logs to usb once it plugged in.
Have no problems with all other logs.
... |
53,767,003 | social share icon and text are not refreshing in wordpress (either meta text or text in yeost SEO)<p>I have a wordpress website with a survey that is shareable using social sharing plugins (I currently have mashshare as well as a hand coded button and both have the same issue). This survey is hardcoded in PHP file so ... | <p>Facebook cacheds the OG data, it is not meant to be changed the whole time and will even be locked after a while afaik. You can refresh it manually in the debugger: <a href="https://developers.facebook.com/tools/debug/" rel="nofollow noreferrer">https://developers.facebook.com/tools/debug/</a></p> | social share icon and text are not refreshing in wordpress (either meta text or text in yeost SEO) | wordpress|facebook|sharing|yoast | 0 | 24 | 1 | 53,767,331 | 53,767,331 | 0 | true | 2018-12-13T17:16:31.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
social share icon and text are not refreshing in wordpress (either meta text or text in yeost SEO)<p>I have a wordpress website with a survey that is shareab... |
53,754,183 | The browser based authentication dialog failed to complete<p>I have a WPF application, and I'm following this tutorial: <a href="https://blogs.msdn.microsoft.com/dsnotes/2017/05/10/adal-secure-web-api-with-adfs-3-0-for-desktop-client/" rel="nofollow noreferrer">https://blogs.msdn.microsoft.com/dsnotes/2017/05/10/adal-s... | <p>I finally figured this problem out after a few hours of silly debugging. On another thread, I encountered a solution that said "enable forms authentication" and I checked and it was enabled, so I thought that's good. But, I had other items checked (again, I'm still new to ADFS) and that caused my system to not use f... | The browser based authentication dialog failed to complete | c#|wpf|adfs|adal | 0 | 6,688 | 1 | 53,768,020 | 53,768,020 | 0 | true | 2018-12-13T02:23:43.807Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
The browser based authentication dialog failed to complete<p>I have a WPF application, and I'm following this tutorial: <a href="https://blogs.msdn.microsoft... |
53,769,033 | Accessing django website hosted on vm with mobile device<p>I run my django website with <code>python manage.py runserver 0.0.0.0:8080</code> on Vagrant which is set up to forward <code>8080</code> port to <code>8081</code> on host machine. I'm able to access this website on host by going to it's local ip (<code>192.168... | <p>Never mind, I've forgot to enable <code>public_network</code> in my Vagrantfile.</p> | Accessing django website hosted on vm with mobile device | django|vagrant | 0 | 17 | 1 | 53,769,133 | 53,769,133 | 0 | true | 2018-12-13T19:45:05.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Accessing django website hosted on vm with mobile device<p>I run my django website with <code>python manage.py runserver 0.0.0.0:8080</code> on Vagrant which... |
53,768,080 | Hhow to create a react element and apply a javascript method to it<p>Is there a way to create a function such that I could apply a javascript method to the React element variable within a function.</p>
<pre><code>getTextBoxWidth(){
var myTextBox = <text>Words here</text>;
return myTextBox.textLength.ba... | <p>There is a way to do that but not in exact way you want to do it. It is doable via <code>ref</code>s: <a href="https://reactjs.org/docs/refs-and-the-dom.html" rel="nofollow noreferrer">https://reactjs.org/docs/refs-and-the-dom.html</a> (<a href="https://reactjs.org/docs/refs-and-the-dom.html#adding-a-ref-to-a-class-... | Hhow to create a react element and apply a javascript method to it | javascript|html|reactjs | 0 | 36 | 1 | 53,770,006 | 53,770,006 | 0 | true | 2018-12-13T18:29:46.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Hhow to create a react element and apply a javascript method to it<p>Is there a way to create a function such that I could apply a javascript method to the R... |
53,471,651 | Running an eclipse project in command line<p>How would I run an eclipse project with specific methods in the command line? Like, how could I rename a method with a longer name to something shorter so that I don't have to type the whole thing in the command line? basically abbreviations</p>
<p>I've done this in Python,... | <p>My question may not have been clear enough. Here is the solution I found though</p>
<pre><code>public static void main(String[] args) {
if (args.length == 1) {
//do a thing
} else if (args.length == 2){
if(args[1].toUpperCase().equals("string i'm looking for"))
//do a thing
} e... | Running an eclipse project in command line | java|eclipse|command-line|command | 0 | 31 | 2 | 53,770,070 | 53,770,070 | 0 | true | 2018-11-25T20:32:33.897Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Running an eclipse project in command line<p>How would I run an eclipse project with specific methods in the command line? Like, how could I rename a method ... |
53,768,389 | Forget not modifying the original collection Laravel 5.7<p>I'm attempting to to remove random elements from a collection while iterating through a for loop. The idea is that each time it goes through the for loop, the items in the collection available doesn't include items found and removed in previous iterations. I'... | <p>The problem here is that forget will remove the item by its index. You are giving as argument the id of the object inside the collection, but its index is not the same as the id.</p>
<p>Try this:</p>
<pre><code>$data = SomeModel::get()->keyBy('id');
for($i = 1; $i <= $max; $i++) {
$random = $data->rando... | Forget not modifying the original collection Laravel 5.7 | php|laravel|laravel-5.7 | 0 | 63 | 1 | 53,770,160 | 53,770,160 | 0 | true | 2018-12-13T18:54:43.067Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Forget not modifying the original collection Laravel 5.7<p>I'm attempting to to remove random elements from a collection while iterating through a for loop. ... |
53,769,363 | Setting up image sprites using 1 url in the CSS<p>What I want to do is use only 1 image url in the CSS.</p>
<p>So I would only need to change 1 url in the CSS, instead of all of them if I change an image or something.</p>
<p>The code is already using an image sprite.
I just want it to use 1 image url in it, instead o... | <p>David M's solution is correct. The only issue that I can see with it is a missing comma after .wrapd .img (see below)</p>
<pre><code>.jacketb,
.jacketc,
.jacketd,
.wrapb,
.wrapb::before,
.wrapd .img,
.wrape,
.wraph,
.wrapf {
background-image: url("https://i.imgur.com/Y0CrMX2.png");
background-repeat: no-rep... | Setting up image sprites using 1 url in the CSS | css|image|sprite|css-sprites | 0 | 34 | 2 | 53,770,178 | 53,770,178 | 0 | true | 2018-12-13T20:09:54.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Setting up image sprites using 1 url in the CSS<p>What I want to do is use only 1 image url in the CSS.</p>
<p>So I would only need to change 1 url in the C... |
53,766,112 | neo4j query execution<p>I have setup a Neo4j cluster with 5 core servers and no read replicas. I want to understand how Neo4j does load balancing and distributes the query execution. As far as I know each query issued to a cluster is executed on only one of the nodes (core/read replica) and each node will maintain a co... | <p>That's likely something we can improve upon, making sure we have an overview of routing operations in that section.</p>
<p>The routing doesn't happen within the cluster, but <a href="https://neo4j.com/docs/driver-manual/1.7/sessions-transactions/#driver-transactions-access-mode" rel="nofollow noreferrer">via the dr... | neo4j query execution | neo4j | 0 | 286 | 1 | 53,770,342 | 53,770,342 | 0 | true | 2018-12-13T16:23:11.763Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
neo4j query execution<p>I have setup a Neo4j cluster with 5 core servers and no read replicas. I want to understand how Neo4j does load balancing and distrib... |
53,767,375 | Filestack iOS getting 400 error "Parameters are invalid" on the image upload<p>I'm trying to use <a href="https://github.com/filestack/filestack-ios" rel="nofollow noreferrer">Filestack iOS SDK</a> inside React Native project. So I passing local file URL from JavaScript and using the following code to upload image</p>
... | <p>Following pull request <a href="https://github.com/filestack/filestack-swift/pull/12" rel="nofollow noreferrer">https://github.com/filestack/filestack-swift/pull/12</a> resolve my issue.</p> | Filestack iOS getting 400 error "Parameters are invalid" on the image upload | ios|swift|filestack | 0 | 295 | 1 | 53,770,610 | 53,770,610 | 0 | true | 2018-12-13T17:41:11.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Filestack iOS getting 400 error "Parameters are invalid" on the image upload<p>I'm trying to use <a href="https://github.com/filestack/filestack-ios" rel="no... |
53,726,989 | Rails app in EC2 is not reachable but Python is<p>I'm trying to deploy a rails app to a EC2 instance, if I made a basic index in html an run it with <code>python -m SimpleHTTPServer 3001</code> I can see the html file in my browser and responds to a <code>wget</code> from my local computer, unfortunately if I made a ba... | <p><code>rails server</code> binds to localhost in the development environment by default. You can configure it with the <code>-b</code> switch. Per <code>rails server --help</code>:</p>
<blockquote>
<p>-b, [--binding=IP] # Binds Rails to the specified IP - defaults to 'localhost' in development and '0.0.0.0' in o... | Rails app in EC2 is not reachable but Python is | ruby-on-rails|amazon-ec2 | 0 | 40 | 1 | 53,770,862 | 53,770,862 | 0 | true | 2018-12-11T15:09:28.617Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Rails app in EC2 is not reachable but Python is<p>I'm trying to deploy a rails app to a EC2 instance, if I made a basic index in html an run it with <code>py... |
53,770,979 | Can you get the high resolution cover photo for your page through the Graph API?<p>When I get the cover photo for my page, for example (with Node.js):</p>
<p><code>FB.api(pageId, { fields: cover } )</code></p>
<p>The resulting JSON has a <code>source</code> property which is an image, but it's 720 by 405 and has JPG ... | <p>One of the properties on the <code>cover</code> is an <code>id</code>. You can fetch this endpoint with the <code>images</code> field to return an array of sizes for that image, from 1080 height down to 130 (as of this writing).</p>
<p><code>FB.api(coverId, { fields: images } )</code></p>
<p>Unfortunately that's 2... | Can you get the high resolution cover photo for your page through the Graph API? | node.js|facebook|facebook-graph-api | 0 | 57 | 1 | 53,770,980 | 53,770,980 | 0 | true | 2018-12-13T22:28:36.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can you get the high resolution cover photo for your page through the Graph API?<p>When I get the cover photo for my page, for example (with Node.js):</p>
<... |
53,769,823 | How to enable scrolling in Expander without a fixed height<p>I'm having problems with scrolling inside the <a href="https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/expander" rel="nofollow noreferrer">Expander control</a>. Since the default behaviour of the Expander is to grow to fit all content, scro... | <p>You're pretty close to getting it to work, you just need to change the <code>VerticalScrollBarVisibility</code> of your <code>ScrollViewer</code> to <code>Disabled</code></p>
<pre><code> <ScrollViewer VerticalScrollMode="Disabled"
VerticalScrollBarVisibility="Disabled"
... | How to enable scrolling in Expander without a fixed height | xaml|uwp|expander|windows-community-toolkit | 0 | 284 | 1 | 53,770,992 | 53,770,992 | 0 | true | 2018-12-13T20:47:26.120Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to enable scrolling in Expander without a fixed height<p>I'm having problems with scrolling inside the <a href="https://docs.microsoft.com/en-us/windows/... |
53,772,112 | mysql how to mulitply some values in the same column but not others if it meets a condition<p>Is it possible to mulitply some values in the same column but not others if the value meets a certain condition? I don't want to create another column.</p>
<p>Query I am working with:</p>
<pre><code>SELECT
name ,
ROU... | <p>you can use CASE.</p>
<pre><code> SELECT
CASE WHEN YEAR > 2017 THEN
ROUND(SUM(orderline_sales.amount * orderline_sales.price) *
orders_sales.discount *
customers.annual_discount)
ELSE
(orderline_sales.price * orders_sales.discount * customers.annual_discount)
END AS total_rev... | mysql how to mulitply some values in the same column but not others if it meets a condition | mysql|calculated-field | 0 | 21 | 1 | 53,772,190 | 53,772,190 | 0 | true | 2018-12-14T00:48:17.483Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
mysql how to mulitply some values in the same column but not others if it meets a condition<p>Is it possible to mulitply some values in the same column but n... |
53,775,174 | Only one Azure subscription is showing in the IoT Workbench: Cloud Azure provision command<p>I have set up my MXChip(Azure IoT Dev Kit) with Azure Provision. But I moved all of my Azure resources to a different subscription now. And I need to do the Azure Device Provisioning again so that the MXChip device can be provi... | <p>I figured out the problem here. If you look at the Extension Azure IoT Device Workbench, you can see that there are dependencies of Azure IoT Hub Toolkit and Azure Account.</p>
<p><a href="https://i.stack.imgur.com/mT9VA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mT9VA.jpg" alt="enter image ... | Only one Azure subscription is showing in the IoT Workbench: Cloud Azure provision command | azure|iot|azure-iot-hub|iot-workbench|mxchip | 0 | 30 | 1 | 53,775,175 | 53,775,175 | 0 | true | 2018-12-14T07:25:43.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Only one Azure subscription is showing in the IoT Workbench: Cloud Azure provision command<p>I have set up my MXChip(Azure IoT Dev Kit) with Azure Provision.... |
53,771,803 | SSRS Expression SQL Server 2016 - Tablix filtered by two codes now divide them with each other<p>I have a tablix that I have filtered by two codes and this returns two lines each with the code and the relevant value associated with them. </p>
<p>I would like to write an expression that allows me to divide each value w... | <p>If your two values are not in the detail section you can use the following expresseion as your Gorss Profit:</p>
<pre><code>=ReportItems!TextboxName500.Value / ReportItems!TextboxName250.Value
</code></pre>
<p>Where <code>TextboxName500</code> is the name of the textbox which holds the value <code>500</code>.</p> | SSRS Expression SQL Server 2016 - Tablix filtered by two codes now divide them with each other | reporting-services|reportbuilder | 0 | 39 | 1 | 53,775,380 | 53,775,380 | 0 | true | 2018-12-14T00:03:33.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SSRS Expression SQL Server 2016 - Tablix filtered by two codes now divide them with each other<p>I have a tablix that I have filtered by two codes and this r... |
53,775,075 | css changed - inserted element is not visible<p><code>title</code> is initially hidden. </p>
<p>Its css is changed (click on <code>btnview</code>) but new inserted <code>title</code> (click on <code>btninsert</code>) is not visible?</p>
<p>How to get it visible automatically by inserting (if previously <code>btnview... | <p>You can check visibility of previous <code>.title</code> then use <code>.show()</code> or <code>.css('','')</code> to display/hide added title.</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 prettypr... | css changed - inserted element is not visible | jquery|css | 0 | 52 | 3 | 53,775,501 | 53,775,501 | 0 | true | 2018-12-14T07:17:37.803Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
css changed - inserted element is not visible<p><code>title</code> is initially hidden. </p>
<p>Its css is changed (click on <code>btnview</code>) but new ... |
53,773,537 | what the bars in keras training show?<p>I am using keras and part of my network and parameters are as follows:</p>
<pre><code> parser.add_argument("--batch_size", default=396, type=int,
help="batch size")
parser.add_argument("--n_epochs", default=10, type=int,
help="number of epoch")
... | <p>Yes it shows cumulative results. You can change the verbose parameter to 2, that will stop showing multiple lines and you'll get one line for each epoch, or 0 which doesn't show results.</p> | what the bars in keras training show? | python-3.x|keras|neural-network|deep-learning|training-data | 0 | 70 | 1 | 53,775,519 | 53,775,519 | 0 | true | 2018-12-14T04:30:26.777Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
what the bars in keras training show?<p>I am using keras and part of my network and parameters are as follows:</p>
<pre><code> parser.add_argument("--batc... |
53,775,242 | Reactjs gets values of the only last selected records<p><strong>Reactjs</strong> gets userid/values of the only last selected records.</p>
<p>Here I have 3 records in the array via reactjs.</p>
<pre><code>{ id: 1, name: "Tony", Age: "18" , gender: "male" },
{ id: 2, name: "John", Age: "21" , gender: "female"},
{ id: ... | <p>here is your updated code that will work as you want - </p>
<pre><code><!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src="build/react.min.js"></script>
<script src="build/react-dom.min.js"></script>
<script src="build/browser.min.js">&... | Reactjs gets values of the only last selected records | javascript|reactjs|forms | 0 | 308 | 3 | 53,775,532 | 53,775,532 | 0 | true | 2018-12-14T07:30:35.010Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reactjs gets values of the only last selected records<p><strong>Reactjs</strong> gets userid/values of the only last selected records.</p>
<p>Here I have 3 ... |
53,774,964 | JQuery AJAX call not reaching Flask view<p>My JQuery AJAX call isn't reaching my Flask view. In my app, when I click the button with the id #myId, it should return the value from its "data" attribute. I'm having a hard time figuring out why the data is not being returned.</p>
<p>Here's the javascript:</p>
<pre><code>... | <p>You should stringfy your data like JSON.stringify({'data': data}).
And you forget "," after "dataType: 'json'".</p>
<p>The following code is after the fix. </p>
<pre><code>$(document).ready(function(){
var clicked;
$("#myId").click(function() {
data = $(this).attr("data");
$.ajax({
type : 'POS... | JQuery AJAX call not reaching Flask view | jquery|ajax|flask | 0 | 73 | 1 | 53,775,881 | 53,775,881 | 0 | true | 2018-12-14T07:08:19.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JQuery AJAX call not reaching Flask view<p>My JQuery AJAX call isn't reaching my Flask view. In my app, when I click the button with the id #myId, it should ... |
53,774,126 | I want to find if tv is sony in the output list, how to write xpath<p>How to write Xpath for below code?
I want to verify if TV is sony in the output list</p>
<p>Below is the path shown.</p>
<pre><code><span class="label_con ng-binding"><any translate="" class="ng-scope" style="">TV</any> : Sony &... | <p>You can simply use:</p>
<pre><code>//span[contains(., 'Sony')]
</code></pre>
<p>see this link: <a href="http://xpather.com/srA1KB2q" rel="nofollow noreferrer">http://xpather.com/srA1KB2q</a></p> | I want to find if tv is sony in the output list, how to write xpath | xpath | 0 | 31 | 1 | 53,776,769 | 53,776,769 | 0 | true | 2018-12-14T05:49:40.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want to find if tv is sony in the output list, how to write xpath<p>How to write Xpath for below code?
I want to verify if TV is sony in the output list</p... |
53,581,768 | Ruby on rails web app and api side by side issue<p>I'm new to Ruby on rails. I need to maintain a project which is a complete web app. Now I need to introduce APIs in it. I've searched and got many tutorials on API and web app separately. But didn't get any of them showing how these things will work together. I'm confu... | <p>The solution worked for me is to use friendly token with devise_token_auth for api. And here is my before filter now:</p>
<pre><code>before_filter do
if check_api_request
authenticate_api_request
else
authenticate_user!
end
</code></pre>
<p>end</p> | Ruby on rails web app and api side by side issue | ruby-on-rails|ruby|authentication|jwt | 0 | 64 | 2 | 53,777,175 | 53,777,175 | 0 | true | 2018-12-02T15:34:09.430Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Ruby on rails web app and api side by side issue<p>I'm new to Ruby on rails. I need to maintain a project which is a complete web app. Now I need to introduc... |
53,728,361 | Ionic3 - Testing. Test if a Page is pushed on the NavigationStack<p>Im really new to Testing. I set up TedBed. Now i try to test my first Component "MyApp" which looks like this:</p>
<pre><code>@Component({
templateUrl: 'app.html'
})
export class MyApp implements OnInit {
rootPage:any = HomePage;
constructor(
... | <p>So, after some research i got it working. It was easier than i thought:</p>
<pre><code> it('should navigate to Antoherpage if pageTwo() is called', () => {
component.pageTwo()
expect(nav.push).toHaveBeenCalledWith(AnotherPage);
});
</code></pre>
<p>since i use the ionic-mocks package (<a href="https:... | Ionic3 - Testing. Test if a Page is pushed on the NavigationStack | testing|ionic3 | 0 | 22 | 1 | 53,777,681 | 53,777,681 | 0 | true | 2018-12-11T16:24:51.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Ionic3 - Testing. Test if a Page is pushed on the NavigationStack<p>Im really new to Testing. I set up TedBed. Now i try to test my first Component "MyApp" w... |
53,759,092 | Dynamically create then assign arrays with loadtxt (Python3)<h1>Description</h1>
<p><strong>Basically</strong> my problem is about loading data from CSV files. I already made a code able to load a <strong>given</strong> number of columns inside arrays (see example). <strong>Now</strong> I would like to improve the cod... | <p>Well, I found a solution to this problem I had in my mind since few weeks. Asking it here surely helped me make the problem clearer.</p>
<p>I learned more about dictionaries, as it was something new for me, and I understood it was very powerfull. I could replace the whole code by few lines :</p>
<pre><code>def imp... | Dynamically create then assign arrays with loadtxt (Python3) | arrays|python-3.x|dynamically-generated | 0 | 24 | 1 | 53,777,943 | 53,777,943 | 0 | true | 2018-12-13T09:53:25.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dynamically create then assign arrays with loadtxt (Python3)<h1>Description</h1>
<p><strong>Basically</strong> my problem is about loading data from CSV fil... |
53,773,787 | Meaning of flags in the class Wikipedia Edit Event<p>The Wikipedia Edit Event class has 6 flags
1. isBotEdit
2. isMinor
3. isNew
4. isSpecial
5. isTalk
6. isUnpatrolled
There is no description written in the official link <a href="https://ci.apache.org/projects/flink/flink-docs-stable/api/java/org/apache/flink/streamin... | <p>The information content of the Wikipedia change stream is described in <a href="https://meta.wikimedia.org/wiki/Help:Recent_changes" rel="nofollow noreferrer">https://meta.wikimedia.org/wiki/Help:Recent_changes</a>:</p>
<ul>
<li>isMinor indicates that the user marked the edit "minor". Only logged in users can mark ... | Meaning of flags in the class Wikipedia Edit Event | apache-flink|flink-streaming | 0 | 26 | 1 | 53,779,046 | 53,779,046 | 0 | true | 2018-12-14T05:06:10.157Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Meaning of flags in the class Wikipedia Edit Event<p>The Wikipedia Edit Event class has 6 flags
1. isBotEdit
2. isMinor
3. isNew
4. isSpecial
5. isTalk
6. is... |
53,638,331 | ES5 bundled Polymer 3 component fails to load in Safari 10<p>I'm running into "TypeError: Constructor requires 'new' operator" at line 4 of</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-ove... | <p>The <code>Constructor requires 'new' operator</code> - in this setting - has to do with the browser's CustomElements support. As I said, I tried to load the ES5 representation of my component in Safari. It turns out this is not necessary because Safari 10 seems to have native CustomElements support. So I now serve t... | ES5 bundled Polymer 3 component fails to load in Safari 10 | javascript|polymer|web-component|polymer-3.x | 0 | 282 | 2 | 53,779,742 | 53,779,742 | 0 | true | 2018-12-05T18:10:54.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ES5 bundled Polymer 3 component fails to load in Safari 10<p>I'm running into "TypeError: Constructor requires 'new' operator" at line 4 of</p>
<p><div clas... |
53,778,933 | Adding a property to array items results in "The positional operator did not find the match needed from the query"<p>I'm trying to add a property into nested arrays</p>
<pre><code>var names = [...]; // long list of names, omitted for the sake of brevity
var isNotCriteria = {
"Persons.Name": {
$nin: names
... | <p>Issue turns out to be <code>teams</code> documents that do not have <code>Persons</code> array (or array is empty).
I changed the criteria query to</p>
<pre><code>var isNotCriteria = {
$and: [
{
"Persons": {
$exists: true,
$not: {$size : 0}
}... | Adding a property to array items results in "The positional operator did not find the match needed from the query" | mongodb | 0 | 57 | 1 | 53,780,072 | 53,780,072 | 0 | true | 2018-12-14T11:31:35.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Adding a property to array items results in "The positional operator did not find the match needed from the query"<p>I'm trying to add a property into nested... |
53,780,268 | How should I validate a token passed in URL in a form<p>I'm doing a form to reset password.</p>
<p>So, the user receive and email, click a button that send him to a page to reset the password.</p>
<p>the url can be:</p>
<pre><code>http://localhost:4200/password/reset?token=YyG30e4YyZqvbxu5Q99AhwUOAuEywD
</code></pre... | <p>Set the value of token in formbuilder to token from the queryParams.</p>
<pre><code>ngOnInit() {
let token = this.route.snapshot.queryParamMap.get('token');
this.resetForm = this.formBuilder.group({
email: ['', Validators.required],
password: ['', Validators.required],
password_confirmation: ['', Validators.r... | How should I validate a token passed in URL in a form | angular | 0 | 39 | 2 | 53,780,511 | 53,780,511 | 0 | true | 2018-12-14T12:57:42.653Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How should I validate a token passed in URL in a form<p>I'm doing a form to reset password.</p>
<p>So, the user receive and email, click a button that send ... |
53,780,687 | AWS Cognito returning undefined error async/await<p>My question is very similar to <a href="https://stackoverflow.com/questions/52408607/how-to-return-response-from-cognito-async-function-and-display-it-on-the-page">this one</a> as I am attempting to wrap the <code>authenticateUser</code> SDK method in a <code>Promise<... | <p>Figured it out. One of my colleagues pointed out that I running babel over my server code by having this in my <code>index.js</code> <em>(my entry point for the server)</em>:</p>
<pre><code>require("@babel/polyfill");
require("@babel/register");
</code></pre>
<p>A transpilation issue in Node. As soon as I took tha... | AWS Cognito returning undefined error async/await | javascript|node.js|aws-sdk | 0 | 577 | 1 | 53,781,365 | 53,781,365 | 0 | true | 2018-12-14T13:27:07.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
AWS Cognito returning undefined error async/await<p>My question is very similar to <a href="https://stackoverflow.com/questions/52408607/how-to-return-respon... |
53,781,381 | add or remove from line or character from txt file in cpp<p>I am working on a program of Airlines.
it have 4 options on main screen as:</p>
<blockquote>
<p>1.Our Services \tells the timings of flights
2.Flight Information \**here is the problem defined below.
3.Book Your Seat \as name shows for book... | <p>Except if you explicitly change the write position in the file all the writes will be done at the end of the file, whatever you also read into it or not</p>
<p>Look at fstream::seekg fstream::seekp</p> | add or remove from line or character from txt file in cpp | c++|file|file-handling | 0 | 29 | 1 | 53,781,571 | 53,781,571 | 0 | true | 2018-12-14T14:13:38.537Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
add or remove from line or character from txt file in cpp<p>I am working on a program of Airlines.
it have 4 options on main screen as:</p>
<blockquote>
<... |
53,754,236 | Device Guard Code Integrity policy pop-up "Invalid Public Key Security Object File"<p>I have already followed the instructions (<a href="https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-test-windows-s" rel="nofollow noreferrer">here</a>) on renaming the desired policy file to <code>SIPolicy.P7B</code... | <p><a href="https://social.microsoft.com/Forums/en-US/6ec11d36-7544-4527-a65c-983b465a797e/unable-to-install-the-device-guard-code-integrity-policies?forum=windowsgeneraldevelopmentissues" rel="nofollow noreferrer">Link to the answer from the Microsoft Forum</a></p>
<p>The error pop-up is just the normal behavior when... | Device Guard Code Integrity policy pop-up "Invalid Public Key Security Object File" | uwp|windows-10|windows-10-universal|windows-10-desktop | 0 | 268 | 1 | 53,781,822 | 53,781,822 | 0 | true | 2018-12-13T02:31:54.640Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Device Guard Code Integrity policy pop-up "Invalid Public Key Security Object File"<p>I have already followed the instructions (<a href="https://docs.microso... |
53,778,771 | dataItem(element) returns incorrect item inside of KendoDraggable - KendoUI JQuery<p>I have a draggable defined on kendo grid rows like:</p>
<pre><code>$(grid.element).kendoDraggable({
filter: "table > tbody > tr.grid-row.k-master-row",
group: "grid-items",
hint: function (element) {
grid.col... | <p>I found the issue. </p>
<p>Whenever the item would be dropped I would call:</p>
<pre><code>e.draggable.currentTarget.remove();
</code></pre>
<p>On the Droppable, in order to remove it from the containing grid but since the dataSource for the grid was not refreshed, the items would dissapear from the grid but the... | dataItem(element) returns incorrect item inside of KendoDraggable - KendoUI JQuery | javascript|jquery|kendo-ui|kendo-grid|kendo-draggable | 0 | 305 | 1 | 53,782,417 | 53,782,417 | 0 | true | 2018-12-14T11:20:17.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
dataItem(element) returns incorrect item inside of KendoDraggable - KendoUI JQuery<p>I have a draggable defined on kendo grid rows like:</p>
<pre><code>$(gr... |
53,782,408 | Wrap element with anchor based on parameters of current url<p>I use .wrap() to turn an element into an anchor like so:</p>
<pre><code>$( "img.ct-logo" ).wrap( "<a href='http://www.mywebsite.com'></a>" );
</code></pre>
<p>However, the href should be different depending on the current url.</p>
<p>For examp... | <p>You probably just need to check if "/es/" is included in the URL, so I would do something like this:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>let theUrl = "www.websi... | Wrap element with anchor based on parameters of current url | javascript|jquery | 0 | 22 | 2 | 53,782,561 | 53,782,561 | 0 | true | 2018-12-14T15:16:12.877Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Wrap element with anchor based on parameters of current url<p>I use .wrap() to turn an element into an anchor like so:</p>
<pre><code>$( "img.ct-logo" ).wra... |
53,782,198 | When giving Google Authentication a user-created password, what are the password requirements?<p>When creating a new user using Google Authentication in Firebase, what are the requirements for the user-created password? What is the character limit? Can the password contain unicode? Are there any encoding requirements, ... | <p>All unicode characters are allowed in the passwords for email+password authentication in Firebase. There is no documented limit to the password length.</p>
<p>In the case where you use the Google authentication provider, Firebase has no knowledge of the password, so is not involved in its requirements.</p> | When giving Google Authentication a user-created password, what are the password requirements? | firebase|google-authentication | 0 | 24 | 1 | 53,782,645 | 53,782,645 | 0 | true | 2018-12-14T15:03:41.167Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
When giving Google Authentication a user-created password, what are the password requirements?<p>When creating a new user using Google Authentication in Fire... |
53,782,341 | Wordpress - Custom order on CPT and Taxonomy pages<p>I am creating a function to order a specific custom post type (ex : produit). It works well on the CPT archive page but it doesn't work on the custom taxonomy pages (ex: categories) :</p>
<pre><code>function my_pre_get_posts( $query ) {
// do not modify queries in ... | <p>You'll want to use the <code>is_tax()</code> function to check if it's the taxonomy archive you want to alter the sort order on. So something like this...</p>
<pre><code>if ( $query->is_tax( 'produit-category' ) && $query->is_main_query() ) {
$query->set('orderby', 'meta_value');
$query... | Wordpress - Custom order on CPT and Taxonomy pages | php|wordpress|filter|custom-post-type|custom-taxonomy | 0 | 298 | 1 | 53,783,067 | 53,783,067 | 0 | true | 2018-12-14T15:12:08.080Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Wordpress - Custom order on CPT and Taxonomy pages<p>I am creating a function to order a specific custom post type (ex : produit). It works well on the CPT a... |
53,783,122 | Intellij vcs plugin, view changed files AND file changes in the same window<p>I normally do <code>git diff</code> for this but want to leverage the intellij gui.</p>
<p>The Version Control tab just shows me all the files that changed:
<a href="https://i.stack.imgur.com/NnKXB.png" rel="nofollow noreferrer"><img src="ht... | <p>Just found it, I wanted "preview diff"</p>
<p><a href="https://i.stack.imgur.com/de7BS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/de7BS.png" alt="enter image description here"></a></p> | Intellij vcs plugin, view changed files AND file changes in the same window | intellij-idea | 0 | 62 | 1 | 53,783,182 | 53,783,182 | 0 | true | 2018-12-14T16:01:54.463Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Intellij vcs plugin, view changed files AND file changes in the same window<p>I normally do <code>git diff</code> for this but want to leverage the intellij ... |
53,770,606 | Database.getQueryLocator return wrong data<p>I am very puzzled on the result returned by the Database.getQueryLocator(). </p>
<pre><code>global Database.QueryLocator start(Database.BatchableContext BC) {
string query = 'Select Label, Batch_Name__c, SObject_Name__c, External_system__c from Batch_Upload_Config__mdt ... | <p>Looks like this is related to query on custom metadata types. When I changed to use custom object, I was able to get the correct result using Database.getQueryLocator().</p> | Database.getQueryLocator return wrong data | salesforce | 0 | 587 | 1 | 53,783,365 | 53,783,365 | 0 | true | 2018-12-13T21:51:33.240Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Database.getQueryLocator return wrong data<p>I am very puzzled on the result returned by the Database.getQueryLocator(). </p>
<pre><code>global Database.Que... |
53,782,769 | Postgres: return true/false if matches found from inner join?<p>I have implemented a tagging system in my application, using Postgres 9.6. There are three tables. </p>
<p>Projects</p>
<pre><code> Table "public.project"
Column | Type | Collation | Nu... | <p>Here's a possibility (unfiltered for tag_id; add to inner select if necessary):</p>
<pre><code>select project.*, exists(select * from project_tag where id=project.id) as has_project_tag from project;
</code></pre> | Postgres: return true/false if matches found from inner join? | postgresql | 0 | 536 | 1 | 53,783,417 | 53,783,417 | 0 | true | 2018-12-14T15:38:57.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Postgres: return true/false if matches found from inner join?<p>I have implemented a tagging system in my application, using Postgres 9.6. There are three ta... |
53,753,495 | How to Resize a Canvas in UWP<p>I have a view that extends Canvas.
Such view is positioned inside another Canvas.</p>
<pre><code>public class MyView : Canvas
{
//this is my view
}
protected override void OnNavigatedTo(NavigationEventArgs e)
{
PointerEventManager manager = new PointerEventManager(); // utility to ... | <p>For the sake of who will bump into this question in the future, I managed it using a <code>RelativePanel</code> rather than a Canvas.
With that I can move&drag changing Margin property, and resizing using Width&Height properties.</p> | How to Resize a Canvas in UWP | c#|canvas|uwp|resize|runtime | 0 | 800 | 3 | 53,783,573 | 53,783,573 | 0 | true | 2018-12-13T00:48:52.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to Resize a Canvas in UWP<p>I have a view that extends Canvas.
Such view is positioned inside another Canvas.</p>
<pre><code>public class MyView : Canva... |
53,782,615 | Gatling - Setting Authorization header as part of request<p>I'm trying to set my Authorization header based on a value from a feeder. It looks like the authorization header is being stripped/overwritten, when other headers are being successfully set. </p>
<pre><code> exec(http("Initialise Transaction")
.put("/t... | <p>I found what I was doing wrong - I'd mistakenly set my url to be <a href="http://hostname/path" rel="nofollow noreferrer">http://hostname/path</a> - my server was set to redirect to <a href="https://hostname/path" rel="nofollow noreferrer">https://hostname/path</a>, but the Authorization header wasn't being sent aft... | Gatling - Setting Authorization header as part of request | gatling | 0 | 1,041 | 1 | 53,783,680 | 53,783,680 | 0 | true | 2018-12-14T15:29:11.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Gatling - Setting Authorization header as part of request<p>I'm trying to set my Authorization header based on a value from a feeder. It looks like the autho... |
53,767,318 | Unrecognised field when insert in a ManyToMany relationship in symfony<p>I try to make a flush with a relationship manytomany, but I have an error that tells me "unrecognised field: insurance".</p>
<p>I would like to register one or two insurance (s) that the doctor has chosen, but I have errors during the flush with ... | <p>finally I found a solution to my backup problem in my relationship ManyToMany, I made changes in my two entities, at the level of the collections of my entities.</p>
<p><strong>Entity Medecin</strong></p>
<pre><code> /**
* Add assurance
*
* @param \Doctix\MedecinBundle\Entity\Assurance $assurance
*
* @retur... | Unrecognised field when insert in a ManyToMany relationship in symfony | symfony|many-to-many | 0 | 51 | 2 | 53,784,265 | 53,784,265 | 0 | true | 2018-12-13T17:36:57.747Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unrecognised field when insert in a ManyToMany relationship in symfony<p>I try to make a flush with a relationship manytomany, but I have an error that tells... |
53,784,566 | Responsibility of a function<p>I was writing a function on PHP and a thing made me confused while writing the function. What is the best way to describe the responsibility of a function?</p>
<pre><code>function createWallet(int $userId) {
// validate if user exists
//create wallet
}
or
**client will validate if u... | <p>According to SOLID Principal, each class / function / method should have only one responsibility so I suggest the later option, Client should call the method to validate user and on success call createWallet() method. Also this will benefit if user is not authorize then client can inform some kind of message.</p> | Responsibility of a function | function|oop|single-responsibility-principle | 0 | 62 | 1 | 53,784,753 | 53,784,753 | 0 | true | 2018-12-14T17:45:38.093Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Responsibility of a function<p>I was writing a function on PHP and a thing made me confused while writing the function. What is the best way to describe the ... |
53,502,944 | Form builder for a related entity Symfony 3<p>Well let's say I have 2 entities:</p>
<ol>
<li>category</li>
<li>product</li>
</ol>
<p>I want to create a form builder for the entity product in which there is a select to choose the category of the product.</p>
<p>How can I do that with Symfony 3.4?</p>
<p>Can you guys giv... | <p>You want to use the <a href="https://symfony.com/doc/3.4/reference/forms/types/entity.html" rel="nofollow noreferrer">EntityType</a>. </p>
<p>See below for an example:</p>
<pre><code>use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Doctrine\ORM\EntityRepository;
// ...
->add('category', EntityType::class,... | Form builder for a related entity Symfony 3 | symfony-3.4 | 0 | 45 | 1 | 53,785,359 | 53,785,359 | 0 | true | 2018-11-27T15:28:30.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Form builder for a related entity Symfony 3<p>Well let's say I have 2 entities:</p>
<ol>
<li>category</li>
<li>product</li>
</ol>
<p>I want to create a form ... |
53,785,250 | UserDataSource doesnt have data property in Angular<p>I am trying to add multiselect to an Angular Material table following <a href="https://material.angular.io/components/table/overview#selection" rel="nofollow noreferrer">this guide</a>. It makes reference to <code>data</code> in masterToggle, but I don't have that p... | <p>The example you are following I believe is using the <code>MatTableDataSource</code> class, which has a public getter <code>data</code>... </p>
<pre><code>get data() { return this._data.value; }
</code></pre>
<p>And the private variable <code>_data</code> is the <code>BehaviorSubject</code> with the initialized da... | UserDataSource doesnt have data property in Angular | angular | 0 | 74 | 1 | 53,785,670 | 53,785,670 | 0 | true | 2018-12-14T18:41:52.063Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
UserDataSource doesnt have data property in Angular<p>I am trying to add multiselect to an Angular Material table following <a href="https://material.angular... |
53,773,560 | How to set download expiration to output URN on Design Automation API<p>Please tell me how to delete result content from S3, Or change the content expiration to short.
By security reasons, I don't want to keep the result content on S3 for one hour.</p>
<p>I try to delete Output files from "<a href="https://acadio.s3.a... | <p>In version 2 of the API we provide "temporary storage" when you don't specify output URLs in your workitem. This temporary storage is <a href="https://acadio.s3.amazonaws.com/aces-workitem-outputs/" rel="nofollow noreferrer">https://acadio.s3.amazonaws.com/aces-workitem-outputs/</a>. You cannot delete or customize t... | How to set download expiration to output URN on Design Automation API | autodesk-forge|autodesk-designautomation | 0 | 36 | 1 | 53,785,956 | 53,785,956 | 0 | true | 2018-12-14T04:34:00.233Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to set download expiration to output URN on Design Automation API<p>Please tell me how to delete result content from S3, Or change the content expiration... |
53,785,325 | Enable jquery panzoom on some event<p>I'm using a jquery plugin that allows zooming and pan functionality, however I want this to be done only at some event( say when checkbox is clicked) because after having it by all the time, the default functionalities are getting affected which are through another plugin.</p>
<p>... | <p>It can be done something like this,</p>
<pre><code>$("#ID").panzoom("disable"); - To disable panzoom for this element
$("#ID").panzoom("enable"); - To enable panzoom for this element
</code></pre> | Enable jquery panzoom on some event | jquery|plugins|jquery.panzoom | 0 | 291 | 1 | 53,786,067 | 53,786,067 | 0 | true | 2018-12-14T18:47:18.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Enable jquery panzoom on some event<p>I'm using a jquery plugin that allows zooming and pan functionality, however I want this to be done only at some event(... |
53,786,257 | angular bind to a table of select tags - how to get the value?<p>I have a table which has a select tag for each table row, and quickly realised i cant use ngModel, at least not in the way you would use it for a single select. </p>
<p>Is there anyway of using angular to bind to each select, and to get the users selecte... | <p>To achieve expected result, append index value to ngModel to differentiate each dropdown instead using same ngModel for all dropdowns</p>
<pre><code><tr *ngFor="let item of owner; let i = index">
<td>{{i + 1}}</td>
<td>
<select [(ngModel)]="selectedId[i]" class="form-control">
... | angular bind to a table of select tags - how to get the value? | html|angular|angular5 | 0 | 1,068 | 2 | 53,786,457 | 53,786,457 | 0 | true | 2018-12-14T20:04:38.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
angular bind to a table of select tags - how to get the value?<p>I have a table which has a select tag for each table row, and quickly realised i cant use ng... |
53,784,601 | React MaterialUI - ExpansionPanelSummary - Add counter to div id<p>I need a functionality that can <strong>add a counter to the div id</strong> whenever the <strong>render function</strong> is called. The purpose is to have unique div's.</p>
<p>Here is my render function - </p>
<pre><code>render() {
return (
... | <p>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map" rel="nofollow noreferrer">map</a> function has an index/counter that's passed on to the function callback.</p>
<p>So what you want to do is:</p>
<pre><code>{someFunction.map((output, index) =>
<Expansio... | React MaterialUI - ExpansionPanelSummary - Add counter to div id | javascript|reactjs|material-ui | 0 | 55 | 1 | 53,786,868 | 53,786,868 | 0 | true | 2018-12-14T17:48:29.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React MaterialUI - ExpansionPanelSummary - Add counter to div id<p>I need a functionality that can <strong>add a counter to the div id</strong> whenever the ... |
53,786,925 | Django - Use the slug from the view in the template<p>How do I use a (class-based) view's slug in the template? I want to use it again in other urls.</p> | <p>You can include the slug from your views with:</p>
<pre><code>{{ view.kwargs.slug }}
</code></pre>
<p>If you want to use in another url:</p>
<pre><code>{% url 'my_url_name' view.kwargs.slug %}
</code></pre> | Django - Use the slug from the view in the template | django|django-templates | 0 | 38 | 1 | 53,786,926 | 53,786,926 | 0 | true | 2018-12-14T21:11:06.687Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Django - Use the slug from the view in the template<p>How do I use a (class-based) view's slug in the template? I want to use it again in other urls.</p> |
53,770,461 | Location filter tweepy module<p>Hi I am trying to get tweets from Brazil only. This is my code, but I want to know if there is a way to get the location more tight so that it doesnt include the neighboring countries (i.e. having other shape for the region instead of the square).</p>
<pre><code>class CustomStreamListen... | <p>I solved it. The answer can be found here: <a href="https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/basic-stream-parameters.html" rel="nofollow noreferrer">https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/basic-stream-parameters.html</a></p> | Location filter tweepy module | location|coordinates|tweepy | 0 | 811 | 1 | 53,787,476 | 53,787,476 | 0 | true | 2018-12-13T21:38:40.667Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Location filter tweepy module<p>Hi I am trying to get tweets from Brazil only. This is my code, but I want to know if there is a way to get the location more... |
53,698,902 | Basic htaccess question, redirect middle dir<p>I want to redirect/rewrite a middle directory 'test' (removing it) </p>
<pre><code>RewriteRule ^test(.*)$ /$1 [L,R=301]
RedirectMatch 301 ^/test/([^/]+)(?:/.*)?$ /$1
</code></pre>
<p>test url: <a href="https://my.domain/en-us/test/my/cool/path" rel="nofollow noreferrer">... | <p>this is what worked for me </p>
<pre><code>RewriteRule ^(.*?)test/(.*)?$ /$1$2 [L,R=301]
</code></pre> | Basic htaccess question, redirect middle dir | apache|url-rewriting | 0 | 20 | 1 | 53,788,349 | 53,788,349 | 0 | true | 2018-12-10T02:55:22.330Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Basic htaccess question, redirect middle dir<p>I want to redirect/rewrite a middle directory 'test' (removing it) </p>
<pre><code>RewriteRule ^test(.*)$ /$1... |
53,788,383 | Displaying state as css prop with state. Inline styling in reactJS<p>I have a progress bar from a bootstrap theme, that I want to use to display the progress, of signing up on a submission form.
I have made a state variable called progress, which I increment using different handlers, that configure the input.</p>
<p>F... | <p>I figured the answer was to use a template string literal, so i could access the state using the dollar sign notation</p>
<pre><code>style={{width: `${this.state.progress}%`}}
</code></pre> | Displaying state as css prop with state. Inline styling in reactJS | css|reactjs | 0 | 28 | 1 | 53,788,414 | 53,788,414 | 0 | true | 2018-12-15T00:04:45.567Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Displaying state as css prop with state. Inline styling in reactJS<p>I have a progress bar from a bootstrap theme, that I want to use to display the progress... |
53,788,967 | Angular: when clicking on the picture, the subsequent comments do not show up<p>It is frustrating that the following code doesn't work properly. This is the code I directly copy and paste from an online course from which I learn Angular.
The purpose of the code is that when I click on the picture, a card view and subs... | <p>One little thing I see is this:</p>
<pre><code>selectedDish : Dish;
</code></pre>
<p>And then this:</p>
<pre><code><app-dishdetail [dish] = "SelectedDish"></app-dishdetail>
</code></pre>
<p>Angular is case sensitive. So it should be:</p>
<pre><code><app-dishdetail [dish] = "selectedDish"></... | Angular: when clicking on the picture, the subsequent comments do not show up | angular|typescript | 0 | 273 | 1 | 53,788,986 | 53,788,986 | 0 | true | 2018-12-15T02:02:20.577Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular: when clicking on the picture, the subsequent comments do not show up<p>It is frustrating that the following code doesn't work properly. This is the ... |
53,789,076 | Training in batch does not converge while training samples individually does<p>I'm learning Tensorflow and trying some test models to get the feeling how Tensorflow works. The model is pretty simple (a linear model) and it has the following input and output:</p>
<pre><code>X = tf.placeholder(tf.float32, shape=(None, 1... | <p>As it turned out, the problem was in the cost function definition. Originally, the cost function was defined like this:</p>
<pre><code>cost = tf.pow(Y - y_model, 2)
</code></pre>
<p>I realized it's missing the average component (the previous one is returning a matrix instead of a single value).</p>
<pre><code>cos... | Training in batch does not converge while training samples individually does | python|tensorflow | 0 | 26 | 1 | 53,789,179 | 53,789,179 | 0 | true | 2018-12-15T02:34:57.770Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Training in batch does not converge while training samples individually does<p>I'm learning Tensorflow and trying some test models to get the feeling how Ten... |
53,791,529 | Runime.getRuntime().totalMemory() and ActivityManager.MemoryInfo()<p>Why total memory extracted from <code>getRuntime().totalMemory()</code> is not equal with when we use <code>ActivityManager.MemoryInfo()</code>? In below two code part I get different values:</p>
<pre><code>long totalMemory = Runtime.getRuntime().tot... | <p><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Runtime.html#totalMemory--" rel="nofollow noreferrer"><code>Runtime.getRuntime().totalMemory()</code></a> is</p>
<blockquote>
<p>Returns the total amount of memory in the Java virtual machine. The value returned by this method may vary over time, depending... | Runime.getRuntime().totalMemory() and ActivityManager.MemoryInfo() | java|android|android-memory | 0 | 538 | 2 | 53,791,637 | 53,791,637 | 0 | true | 2018-12-15T10:34:53.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Runime.getRuntime().totalMemory() and ActivityManager.MemoryInfo()<p>Why total memory extracted from <code>getRuntime().totalMemory()</code> is not equal wit... |
53,791,709 | Power BI. Combine 2 legends in bar chart<p>I have 2 tables:</p>
<p><a href="https://i.stack.imgur.com/dildb.png" rel="nofollow noreferrer">This is the relationship between the tables.</a></p>
<p><a href="https://i.stack.imgur.com/6tu3h.png" rel="nofollow noreferrer">This is the Channel table</a></p>
<p><a href="http... | <p>You could add a Calculated Column to the Channel Table:</p>
<pre><code>Report Name =
IF (
Channel[Name] IN { "Mail", "Fax" },
"Mail / Fax",
Channel[Name]
)
</code></pre>
<p>Then use that <code>Report Name</code> field for your chart legend</p> | Power BI. Combine 2 legends in bar chart | powerbi|dax|m | 0 | 4,880 | 1 | 53,793,725 | 53,793,725 | 0 | true | 2018-12-15T10:57:06.857Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Power BI. Combine 2 legends in bar chart<p>I have 2 tables:</p>
<p><a href="https://i.stack.imgur.com/dildb.png" rel="nofollow noreferrer">This is the relat... |
53,785,220 | unittest.mock: how to mock two calls on method?<p>How to i mock datetime.datetime.now with two calls on same method?</p>
<p>Below my tried:</p>
<pre><code>from datetime import datetime as dt
def metodo():
return dt.today().strftime('%Y'), dt.today().strftime('%Y-%m-%d %X %z')
def test_metodo(self):
expecte... | <p>I have sucess with this.</p>
<pre><code>@patch('mypackage.dt')
def test_metodo(self, mock_date):
expected = ('2018', "2018-12-14 12:34:56")
mock_date.today.return_value = mypackage.dt(2018, 12, 14, 12, 34, 56)
mock_date.today.return_value.strftime.side_effect = list(expected)
self.assertIsNotNone(me... | unittest.mock: how to mock two calls on method? | python-3.x|mocking|python-unittest.mock | 0 | 49 | 1 | 53,794,396 | 53,794,396 | 0 | true | 2018-12-14T18:39:26.453Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
unittest.mock: how to mock two calls on method?<p>How to i mock datetime.datetime.now with two calls on same method?</p>
<p>Below my tried:</p>
<pre><code>... |
53,791,084 | problem with writing to mifareclassic tag<p>I am trying to read and write to a MifareClassic tag. so far I have been able to set up my application to receive intents in foreground. to read a tag I first get a MifareClassic instance, authenticate to it and read a block. it works fine.</p>
<p>but when I write to the tag... | <p>I figured it out.</p>
<p>the access bits on the card for the data block in question is set to 100. so according to the MifareClassic documentation to be able to write to this block I should have used key B.(but I am able to read a block with key A)</p>
<p>apparently if you use the wrong key to authenticate to the ... | problem with writing to mifareclassic tag | android|exception|mifare | 0 | 75 | 1 | 53,794,640 | 53,794,640 | 0 | true | 2018-12-15T09:19:42.260Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
problem with writing to mifareclassic tag<p>I am trying to read and write to a MifareClassic tag. so far I have been able to set up my application to receive... |
53,791,047 | ag-grid + AngularJS dynamically load new table failed<p>According to <a href="https://stackoverflow.com/questions/31743534/angular-grid-ag-grid-columndefs-dynamically-change">this thread</a>, I tried to call <code>api.setColumnDefs</code> and <code>api.setRowData</code> to dynamically load new table definition with new... | <p>This is solved by calling <code>api.setRowData();</code> to clear all data before calling <code>api.setColumnDefs</code> to reset column-defintions.</p> | ag-grid + AngularJS dynamically load new table failed | angularjs|ag-grid | 0 | 44 | 1 | 53,794,825 | 53,794,825 | 0 | true | 2018-12-15T09:13:26.663Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ag-grid + AngularJS dynamically load new table failed<p>According to <a href="https://stackoverflow.com/questions/31743534/angular-grid-ag-grid-columndefs-dy... |
53,795,140 | How to return Right class from Either?<p>If I have a method that returns <code>Either</code> like this</p>
<pre><code>def myMethod(s: String): Either[List[SomethingElse], Color] = {
....
}
</code></pre>
<p>And I have a case class like this:</p>
<pre><code>case class ColorShade (color: Color, shade: Shade = Shade())... | <p>Because <code>Either</code> is right biased, you can do this.</p>
<pre><code>myMethod("string").map(ColorShade(_, shadeValue))
</code></pre>
<p>The result is <code>Either[List[SomethingElse],ColorShade]</code>.</p>
<p>It might be more idiomatic to use a <code>fold</code> where you can specify what happens when <c... | How to return Right class from Either? | scala | 0 | 75 | 3 | 53,795,424 | 53,795,424 | 0 | true | 2018-12-15T16:37:34.787Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to return Right class from Either?<p>If I have a method that returns <code>Either</code> like this</p>
<pre><code>def myMethod(s: String): Either[List[S... |
53,789,541 | how to handle the padding when brush moving<p>I encountered a problem when using d3.brush.<a href="https://i.stack.imgur.com/17sNt.png" rel="nofollow noreferrer">the problem</a>
The graph is outside the limit.</p>
<p>related code(var xScale is for the bigger graph and xScale_ is for the graph which has a brush):</p>
... | <p>See this example: <a href="https://bl.ocks.org/mbostock/4015254" rel="nofollow noreferrer">Zoomable Area</a></p>
<p>You can define a <code>clipPath</code> to crop the graph to the area you wish. Code from the example:</p>
<pre><code>var areaPath = g.append("path")
.attr("clip-path", "url(#clip)")
.attr("fi... | how to handle the padding when brush moving | d3.js | 0 | 30 | 2 | 53,796,084 | 53,796,084 | 0 | true | 2018-12-15T04:30:25.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to handle the padding when brush moving<p>I encountered a problem when using d3.brush.<a href="https://i.stack.imgur.com/17sNt.png" rel="nofollow norefer... |
53,796,016 | How to assign function to question in POST?<p>I would like to assign the function <code>renderAnswers()</code> to question in POST. How to do it correctly to work. That should work what I did?</p>
<pre><code>methods: {
renderAnswers() {
let answers = this.question;
let newAnswers = answers.map((i... | <p>You need to return a value from <code>renderAnswers</code>.</p>
<pre><code>methods: {
// add a return statement
renderAnswers() {
return this.question.map((isAnswer) => ({ answers: isAnswer }))
},
async createQuiz(quiz, question) {
try {
let add = await axios.post("http://lo... | How to assign function to question in POST? | javascript|vue.js|vuejs2 | 0 | 27 | 1 | 53,796,544 | 53,796,544 | 0 | true | 2018-12-15T18:24:10.203Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to assign function to question in POST?<p>I would like to assign the function <code>renderAnswers()</code> to question in POST. How to do it correctly to... |
53,791,754 | How do I update my collection in mongoDB so i add an userId<p>My actually collection looks like this </p>
<pre><code> ID: ...,
param1: value1
param2: value2
</code></pre>
<p>But i want to add a user id to this object so that this will be look like this </p>
<pre><code>userid:{
ID: ...,
param1: value1,
param... | <p>make a new schema name user_detail
now u have 2 schema one is user and other is user_detail
user schema will be like
schema:{
userid:{
type:Object,
ref:user_detail
}
}</p>
<p>user_detail schema:{
ID: ...,
param1: value1,
param2: value2
}
By doing this your end result will be like this</p>
<p>_Id:'',
userid:{
_Id:'... | How do I update my collection in mongoDB so i add an userId | angularjs|mongodb|mongoose|mongodb-query|key-value | 0 | 35 | 1 | 53,796,702 | 53,796,702 | 0 | true | 2018-12-15T11:04:04.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I update my collection in mongoDB so i add an userId<p>My actually collection looks like this </p>
<pre><code> ID: ...,
param1: value1
param... |
53,785,514 | How to db:setup mysql2 database?<p>I'm using mysql2 gem on rails 5. Also I use AWS Cloud9 EC2 instance for development if that helps.</p>
<p>Here is error I'm getting:</p>
<pre><code>$ RAILS_ENV=development bundle exec rake db:setup
rake aborted!
Mysql2::Error::ConnectionError:
Can't connect to local MySQL server... | <p>I believe this is not about Rails.</p>
<p>Are you using RDS or the DB is at same machine?</p>
<p>Have you read this or tryed any of thoses? I believe this is releated</p>
<p><a href="https://stackoverflow.com/questions/4448467/cant-connect-to-local-mysql-server-through-socket-var-lib-mysql-mysql-sock">Can't c... | How to db:setup mysql2 database? | mysql|ruby-on-rails|database|ruby-on-rails-5|mysql2 | 0 | 47 | 1 | 53,796,704 | 53,796,704 | 0 | true | 2018-12-14T19:03:35.730Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to db:setup mysql2 database?<p>I'm using mysql2 gem on rails 5. Also I use AWS Cloud9 EC2 instance for development if that helps.</p>
<p>Here is error I... |
53,797,650 | Called the same javascript array function and behaving is different<p>I tried to write 2 actions for React app.</p>
<pre><code>export const changeFilter = (newFilter) => {
return (dispatch) => {
dispatch({type:types.GET_EVENTS_BY_FILTER});
axios.get( 'http://localhost:8762/event/events?') // + eventsSel... | <p>I called these methods differently. Both of them were declared in eventActions file and I had this in component that called this functions:</p>
<pre><code>const mapDispatchToProps = dispatch => {
return {
getEvents: () => dispatch(eventActions.getEvents()),
getEventsByFilter: () => disp... | Called the same javascript array function and behaving is different | javascript|reactjs|redux|react-redux | 0 | 44 | 1 | 53,797,762 | 53,797,762 | 0 | true | 2018-12-15T22:03:54.593Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Called the same javascript array function and behaving is different<p>I tried to write 2 actions for React app.</p>
<pre><code>export const changeFilter = (... |
53,797,589 | RShiny - Same time last year<p>I am trying to display two plots side-by-side in a Shiny app.</p>
<p>In the first plot, data is displayed as the user chooses from the daterange selector. In the second plot, I would like it to display the exact same daterange selected by the user, but in the previous year. </p>
<p>The ... | <p>I've found "something that works" (i'll stop short of calling this a "solution" as my level of experience is low).</p>
<pre><code>reactive_data <- reactive({
filter(data, between(date, input$dateRange[1],
input$dateRange[2]))
})
last_year <- reactive({
data_frame("dateFrom" ... | RShiny - Same time last year | r|shiny|dplyr|lubridate | 0 | 27 | 1 | 53,797,924 | 53,797,924 | 0 | true | 2018-12-15T21:54:40.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
RShiny - Same time last year<p>I am trying to display two plots side-by-side in a Shiny app.</p>
<p>In the first plot, data is displayed as the user chooses... |
53,797,240 | Using separate Dockerrun.aws.json files for separate branch deployments with Travis CI<p>So I'm trying to setup a simple Multicontainer Elastic Beanstalk application that deploys automatically through Travis CI.</p>
<p>Additionally, I have two environments set up on Elastic Beanstalk, a production environment and a st... | <p>Turns out the problem was with how Travis passes the code to the deploy command.
Apparently, Travis uses git to pass the result of the build phase to the deploy stage. Normally, Travis will clean up all the code changes made during the build by running 'git stash --all.' </p>
<p>Setting skip_cleanup: true in the .t... | Using separate Dockerrun.aws.json files for separate branch deployments with Travis CI | travis-ci|amazon-elastic-beanstalk | 0 | 812 | 1 | 53,798,802 | 53,798,802 | 0 | true | 2018-12-15T21:04:35.720Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using separate Dockerrun.aws.json files for separate branch deployments with Travis CI<p>So I'm trying to setup a simple Multicontainer Elastic Beanstalk app... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.