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,659,934
How to check if an LI from a UL has a string (where there are any number of UL)<p>Example 1: City is Calgary</p> <pre><code>&lt;div class="listresults"&gt; &lt;ul id="company_1" class="companylist"&gt; &lt;li&gt;&lt;b&gt;HEATCRAFT Freezing LTD., a Division of Lennox Inc.&lt;/b&gt;&lt;/li&gt; &lt;li...
<p>I realize the problem with my xPath was that in a UL, i am looking for a TD when I am actually looking for an LI. Oops. Thanks for the help everyone!</p> <p>Slightly modified answer posted by Kiril S. solves the problem</p> <pre><code>List&lt;WebElement&gt; elements = driver.findElements(By.xpath("//ul[@class='com...
How to check if an LI from a UL has a string (where there are any number of UL)
java|selenium|parsing|xpath
0
54
2
53,661,274
53,661,274
0
true
2018-12-06T21:29:02.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check if an LI from a UL has a string (where there are any number of UL)<p>Example 1: City is Calgary</p> <pre><code>&lt;div class="listresults"&gt; ...
53,647,890
SMTP without IMAP/POP communication<p>I would like to know if it's possible to use SMTP protocol to receive emails. In other words I'm not able to use IMAP or POP protocols because of some internal regulations of a company. If it's possible, could someone give me some example of how to do it? If not, is there a way to ...
<p>Yes, this is possible. In fact, the SMTP protocol was designed explicitly for the purpose of sending and receiving emails. The wikipedia page has some examples of email sent using the SMTP protocol: <a href="https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol" rel="nofollow noreferrer">https://en.wikipedia...
SMTP without IMAP/POP communication
email|smtp
0
50
1
53,661,593
53,661,593
0
true
2018-12-06T09:08:07.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SMTP without IMAP/POP communication<p>I would like to know if it's possible to use SMTP protocol to receive emails. In other words I'm not able to use IMAP o...
53,458,488
How can I define writable computed observables in Dukescript?<p>I'm trying to replicate <a href="https://knockoutjs.com/documentation/computed-writable.html" rel="nofollow noreferrer">the example 1</a> on Dukescript, the example consists on modifying the <strong>generated full name</strong> and automatically modify the...
<p>It turns out that even if <strong>by default computed properties are read only</strong>, you can make them editable by specifying a function on the annotation <code>@ComputedProperty</code> which receives the <strong>Data Model</strong> as parameter and the data that will be used to mutate.</p> <p>HTML:</p> <pre><...
How can I define writable computed observables in Dukescript?
knockout.js|dukescript
0
50
1
53,661,601
53,661,601
0
true
2018-11-24T13:11:19.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I define writable computed observables in Dukescript?<p>I'm trying to replicate <a href="https://knockoutjs.com/documentation/computed-writable.html"...
53,661,720
android Cloud database<p>which language is used to write an android sever(the server on the web)? I mean the server that sends the information to the android app from the web(not sharedpreferences or any local database) is that server different from the website server? please help me.</p>
<p>There is client-server architecture. Server does the processing and presents information to the client. A client can be a web browser,an app or many other things. Android is used for building apps. Which means it is used to build client. To build backend server, you use server side languages and/or frameworks. Some ...
android Cloud database
android|database|server|cloud
0
73
1
53,662,254
53,662,254
0
true
2018-12-07T00:41:20.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: android Cloud database<p>which language is used to write an android sever(the server on the web)? I mean the server that sends the information to the android...
53,416,997
How do I make Macbooks properly size objects on my site?<p>I recently switched from using pixel values to using rem to size my objects on my site. My old format was like this:</p> <pre><code>.some-class{ @media (max-width: $split-dimension) { width:10px; } @media (min-width: $split-dimension) { width:15...
<p>I found that by changing </p> <pre><code>:root { @media (max-width: $split-dimension) { font-size: 41.666%; } @media (min-width: $split-dimension) { font-size: 62.5%; } body { font-size: 1.6rem; } } </code></pre> <p>to</p> <pre><code>:root { @media (max-width: $split-dimension) { fon...
How do I make Macbooks properly size objects on my site?
css|macos
0
21
1
53,662,493
53,662,493
0
true
2018-11-21T16:53:30.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I make Macbooks properly size objects on my site?<p>I recently switched from using pixel values to using rem to size my objects on my site. My old fo...
53,644,387
Authorization Header from my console not received in Restful WCF webservice<p>I'm actually new in C# and i'm currently building a simple basic Restful WCF webservice which using custom header authorization to proceed request</p> <pre><code> public void validateHeader(string requestBody) { try { ...
<p>i found the solution, it turns out i missed the trailing <code>/</code> in my requestURL.</p> <p>My <code>UriTemplate</code> in <code>[OperationContract]</code> is like this</p> <pre><code>UriTemplate = "/GetDataStatusPembayarans/" </code></pre> <p>but i call URL <code>http://localhost:62146/GetDataStatusPembayar...
Authorization Header from my console not received in Restful WCF webservice
c#|rest|wcf|httpwebrequest|weboperationcontext
0
259
2
53,662,871
53,662,871
0
true
2018-12-06T03:52:20.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Authorization Header from my console not received in Restful WCF webservice<p>I'm actually new in C# and i'm currently building a simple basic Restful WCF we...
53,656,092
How do I make Intent Slots dynamic?<p>I am trying to make my intent slots dynamic allowing users to say anything for the slot. </p> <hr> <p><strong>Example:</strong></p> <p><strong>Alexa Skill:</strong> <em>What is your email address</em></p> <p><strong>User:</strong> <em>my email is example@example.com</em></p> <...
<p>Use <a href="https://developer.amazon.com/docs/custom-skills/slot-type-reference.html#amazonsearchquery" rel="nofollow noreferrer">AMAZON.SearchQuery</a> Slot Type to capture whatever user say in your endpoint.It will capture the whole phrase that the user said and then you can apply your business logic on it.</p>
How do I make Intent Slots dynamic?
node.js|aws-lambda|alexa-skills-kit
0
28
1
53,663,557
53,663,557
0
true
2018-12-06T16:48:02.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I make Intent Slots dynamic?<p>I am trying to make my intent slots dynamic allowing users to say anything for the slot. </p> <hr> <p><strong>Example...
53,645,095
Is it necessary use `.primary()` method after `.increment()` method?<p>I read <code>knex.js</code> docs and find there is a little difference between some examples.</p> <p><a href="https://knexjs.org/#Schema-createTable" rel="nofollow noreferrer">https://knexjs.org/#Schema-createTable</a> use <code>table.increment()</...
<p>Yes, they are equivalent. <code>.increment</code> (sadly) creates a primary key by default.</p>
Is it necessary use `.primary()` method after `.increment()` method?
knex.js
0
52
1
53,665,321
53,665,321
0
true
2018-12-06T05:21:03.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it necessary use `.primary()` method after `.increment()` method?<p>I read <code>knex.js</code> docs and find there is a little difference between some ex...
53,648,933
React's changing controlled to uncontrolled error driving me crazy, what am I doing wrong?<p>I've asked for more information about the error here: <a href="https://stackoverflow.com/questions/53646594/should-i-ignore-react-warning-input-elements-should-not-switch-from-uncontrolle/">Should I ignore React warning: Input ...
<p>So after giving it a night's rest I solved my own problem. <br/> This is for everyone who needs to switch between a controlled and uncontrolled object and has the same error. <br /> <br /> Use a Switch statement to switch between a controlled and uncontrolled object. This way, React will see them both as a separate ...
React's changing controlled to uncontrolled error driving me crazy, what am I doing wrong?
reactjs|components|state
0
57
2
53,665,385
53,665,385
0
true
2018-12-06T10:09:23.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React's changing controlled to uncontrolled error driving me crazy, what am I doing wrong?<p>I've asked for more information about the error here: <a href="h...
53,665,120
why it is not taking 100% height in material design?<p>Hi could you please tell me why it is not taking 100% height in material design ? here is my code <a href="https://codesandbox.io/s/m34pw4km2x" rel="nofollow noreferrer">https://codesandbox.io/s/m34pw4km2x</a></p> <pre><code> toolbar__logo: { backgroundColor: ...
<pre><code>toolbar__logo: { width: 250px; height: 100%; background-color: #db3131; align-self: stretch; } </code></pre> <p>Use this code, please. hope it will be useful for you. The same solution like @Abhishek Anand already posted below. you are using a flex property so you show give CSS property alig...
why it is not taking 100% height in material design?
css|reactjs|flexbox|material-design
0
528
4
53,665,979
53,665,979
0
true
2018-12-07T07:33:09.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: why it is not taking 100% height in material design?<p>Hi could you please tell me why it is not taking 100% height in material design ? here is my code <a h...
53,664,687
TypeError: float() argument must be a string or a number, not 'method' - Multiple variable regression<p>I've been getting the error: TypeError: float() argument must be a string or a number, not 'method'. Below is my snippet of code.</p> <p>I've checked other posts like this one: <a href="https://stackoverflow.com/qu...
<p><em>Typo:</em></p> <p><code>df_raw['daily pct return'] = df_raw['daily pct return'].replace(...).dropna()</code></p> <p>In the very first statement of your code, you are assigning to <code>'daily pct return'</code> column the <code>dropna</code> method of the dataframe. You probably want it to be the output of the...
TypeError: float() argument must be a string or a number, not 'method' - Multiple variable regression
python|pandas|typeerror
0
1,553
1
53,666,081
53,666,081
0
true
2018-12-07T06:57:45.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: TypeError: float() argument must be a string or a number, not 'method' - Multiple variable regression<p>I've been getting the error: TypeError: float() argum...
53,666,361
How to insert date+id into SQL<p><strong>How to insert date+id into SQL</strong></p> <p>like this 20181207001 </p> <p>2018-12-07 is date</p> <p>001 is id</p> <p>I want the current date and ID. Add to database By pulling out the show. thank for help.</p> <pre><code>function GenIDInv() { $CI = get_instance(); ...
<p>Try - </p> <pre><code>echo date('Ymd') . sprintf("%'.03d\n", 1); </code></pre> <p><code>date('Ymd')</code> will return the date in required format.</p> <p><code>sprintf()</code> will return a string as needed. and the concatenate them accordingly.</p> <p><strong>Output</strong></p> <pre><code>20181207001 </code...
How to insert date+id into SQL
php|codeigniter
0
72
1
53,666,480
53,666,480
0
true
2018-12-07T09:09:02.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to insert date+id into SQL<p><strong>How to insert date+id into SQL</strong></p> <p>like this 20181207001 </p> <p>2018-12-07 is date</p> <p>001 is id<...
53,665,944
jQuery: Building a form on modal with role field as select and user field as other. Have to disable role if it is selected on other select<p>Writing a dynamic form which updates the role of a user. There are 2 role leader(which can be given to 1 person) and member user and a team consist of 4 members(including leader)....
<p>Changing the <code>dissRole()</code> function and giving select a similar id's here is the working answer</p> <pre><code>function dissRole(){ // List of ids that are selected in all select elements var selected = new Array(); // Get a list of the ids that are selected $('select[id^="ro...
jQuery: Building a form on modal with role field as select and user field as other. Have to disable role if it is selected on other select
javascript|jquery
0
30
1
53,667,338
53,667,338
0
true
2018-12-07T08:40:56.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: jQuery: Building a form on modal with role field as select and user field as other. Have to disable role if it is selected on other select<p>Writing a dynami...
53,594,828
How to remove unneccesary View behind DatePickerDialog?<p>I implemented this example from <a href="https://www.youtube.com/watch?v=hwe1abDO2Ag" rel="nofollow noreferrer">here</a>. There in that example you can see he is running with a dialog style like this <a href="https://i.stack.imgur.com/T7i8G.png" rel="nofollow no...
<p>Try:</p> <pre><code>dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); </code></pre>
How to remove unneccesary View behind DatePickerDialog?
android-dialog|android-datepicker|datepickerdialog
0
25
1
53,667,514
53,667,514
0
true
2018-12-03T13:24:33.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove unneccesary View behind DatePickerDialog?<p>I implemented this example from <a href="https://www.youtube.com/watch?v=hwe1abDO2Ag" rel="nofollow...
53,666,429
Typo3 Backend JS ContextMenu - open Extensionmanager<p>In 'sysext/beuser/Resources/Public/JavaScript/ContextMenuActions.js' there is an action which defines the following:</p> <pre><code>ContextMenuActions.openPermissionsModule = function(table, uid) { if (table === 'pages') { top.TYPO3.Backend.ContentContai...
<p>I found a solution, just use:</p> <pre><code>showModule: function(mod, params) { params = params || ''; var record = this.getRecordFromName(mod); this.loadModuleComponents(record, params); this.ensurePageInTreeSelected(); }, </code></pre>
Typo3 Backend JS ContextMenu - open Extensionmanager
typo3
0
48
1
53,667,825
53,667,825
0
true
2018-12-07T09:13:19.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Typo3 Backend JS ContextMenu - open Extensionmanager<p>In 'sysext/beuser/Resources/Public/JavaScript/ContextMenuActions.js' there is an action which defines ...
53,668,702
Floated box with top-left margin with vertically aligned and font-size responsive text divs<p>I have a div with fixed height and another box which is set on the bottom right of the parent box. Its height is fixed. </p> <p>What I am thinking is to make it responsive. The font size will be responsive but it will not exc...
<p>I set a limit for over the 728px.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>@import url(https://fonts.googleapis.com/css?family=Karla); body{ overflow:hidden; m...
Floated box with top-left margin with vertically aligned and font-size responsive text divs
html|css
0
33
1
53,668,811
53,668,811
0
true
2018-12-07T11:31:09.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Floated box with top-left margin with vertically aligned and font-size responsive text divs<p>I have a div with fixed height and another box which is set on ...
53,667,700
laravel php artisan migrate error occured db not creted?<p><a href="https://i.stack.imgur.com/xfiHh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xfiHh.png" alt="enter image description here"></a></p> <p>when i run php artisan migrate command for creating db table in database then i got this error...
<p>The error is quite clear. The table already exists. To resolve that, login to your database and drop the table.</p> <pre><code>DROP TABLE users; </code></pre>
laravel php artisan migrate error occured db not creted?
laravel-5.5
0
48
1
53,668,940
53,668,940
0
true
2018-12-07T10:31:04.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: laravel php artisan migrate error occured db not creted?<p><a href="https://i.stack.imgur.com/xfiHh.png" rel="nofollow noreferrer"><img src="https://i.stack....
53,668,361
Error deleting character in summernote only in google chrome<p><strong>Code Summernote HTML</strong></p> <pre><code>&lt;div class="col-lg-12 col-md-12 col-xs-12"&gt; &lt;div class="form-group"&gt; &lt;div id="optionContext"&gt; &lt;label for="InputText"&gt;{% trans "Crie um contexto da oportu...
<p>error in code above summernote, I missed close tags</p>
Error deleting character in summernote only in google chrome
javascript|html|summernote
0
68
1
53,669,408
53,669,408
0
true
2018-12-07T11:11:27.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error deleting character in summernote only in google chrome<p><strong>Code Summernote HTML</strong></p> <pre><code>&lt;div class="col-lg-12 col-md-12 col-x...
53,665,913
How do you get the source element which fired an event when using an object method<p>When you do</p> <pre><code>event.addeventlistener("event", somefunction, false); </code></pre> <p><code>somefunction</code> gets called with <code>this</code> set to the element on which the event fired and gets called with the event...
<p>I have just discovered that an event object has a <code>currentTarget</code> property. which is precisely what the 'this' is set to. Couldn't find any documentation that said that explicitly though.</p>
How do you get the source element which fired an event when using an object method
javascript|dom|addeventlistener
0
37
3
53,669,626
53,669,626
0
true
2018-12-07T08:38:23.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do you get the source element which fired an event when using an object method<p>When you do</p> <pre><code>event.addeventlistener("event", somefunction...
53,418,840
Enable Replication on two Compose for MySQL instances?<p>I'm using IBM Cloud Services, and I've created a Compose for MySQL service instance, and I can see it has 2 access portals. Both on the same location as the server (let's say US West).</p> <p>I want to create a new instance, on another location (f.e Us East), an...
<p>After some IBM consulting, their response:</p> <blockquote> <p>Out-of-the-box, <strong>I don't think that's achievable with Compose for MySQL on the IBM Cloud</strong>. In addition, we don't permit customer configuration changes such as the one you are asking about. Is this what you are attempting to do? <a href="ht...
Enable Replication on two Compose for MySQL instances?
mysql|ibm-cloud|replication
0
61
1
53,670,613
53,670,613
0
true
2018-11-21T18:55:46.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Enable Replication on two Compose for MySQL instances?<p>I'm using IBM Cloud Services, and I've created a Compose for MySQL service instance, and I can see i...
53,633,934
NoClassDefFoundError in Spring Objenesis in JBoss<blockquote> <p>I'm sorry for the long post ahead but it's required for understanding the problem correctly in my opinion</p> </blockquote> <p><strong>Context</strong></p> <p>I'm using a Spring Multi Module application on Jboss EAP with all of the dependency jars i...
<p><a href="https://github.com/HotswapProjects/HotswapAgent/issues/275#issuecomment-445225662" rel="nofollow noreferrer">Solution</a></p> <blockquote> <p>To solve "Could not initialize class org.springframework.objenesis.instantiator.util.UnsafeUtils" issue, please add followings to your jboss module.xml file. Unsaf...
NoClassDefFoundError in Spring Objenesis in JBoss
java|spring|spring-mvc|jboss|jvm
0
307
1
53,671,256
53,671,256
0
true
2018-12-05T13:53:11.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NoClassDefFoundError in Spring Objenesis in JBoss<blockquote> <p>I'm sorry for the long post ahead but it's required for understanding the problem correc...
53,635,670
bootstrap 4 navbar fixed to top, transparent over the slider and with background if out slider<p>I would like to create navbar fixed to top of the viewport, but with transparent background, so the slider underneath is not covered, but after sliding page when navbar goes out of the carousel slider I would like it to get...
<p>Please find the below code. It will help you. </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>jQuery(window).scroll(function() { var scrolled = jQuery(window).scrollTop(...
bootstrap 4 navbar fixed to top, transparent over the slider and with background if out slider
twitter-bootstrap|sass|slider|navbar
0
45
1
53,671,554
53,671,554
0
true
2018-12-05T15:30:21.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: bootstrap 4 navbar fixed to top, transparent over the slider and with background if out slider<p>I would like to create navbar fixed to top of the viewport, ...
53,671,665
Visual Studio does not highlight matching braces in JavaScript/TypeScript<p>My Visual Studio no longer highlights matching braces in JS/TS files. It works in C#. How to get it back?</p>
<p>Close Visual Studio and delete your user settings file (e.g. <code>MyProject.csproj.user</code>) in the porject folder. Worked for me!</p>
Visual Studio does not highlight matching braces in JavaScript/TypeScript
visual-studio
0
34
1
53,671,666
53,671,666
0
true
2018-12-07T14:37:24.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Visual Studio does not highlight matching braces in JavaScript/TypeScript<p>My Visual Studio no longer highlights matching braces in JS/TS files. It works in...
53,668,600
Golang scan same line multiple times using bufio.Scanner<p>I am writing a code which scans a test file and replaces the text with something else. Would like to replace same set of lines with different texts stacked one below the other. One option i found is using the tee function of ioreader, but is there a better way ...
<p>In order to replace text, you can use text/template instead of bufio:</p> <p>Playground: <a href="https://play.golang.org/p/7HYBqxtJ3KB" rel="nofollow noreferrer">https://play.golang.org/p/7HYBqxtJ3KB</a></p> <pre><code>package main import ( "fmt" "text/template" "os" ) type method struct { Metho...
Golang scan same line multiple times using bufio.Scanner
file|go
0
575
1
53,673,857
53,673,857
0
true
2018-12-07T11:26:02.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Golang scan same line multiple times using bufio.Scanner<p>I am writing a code which scans a test file and replaces the text with something else. Would like ...
53,671,798
C# Localized Resources.resx doesn't allow for other languages<p>Good evening,</p> <p>I happen to have an issue with Winforms and Resources.resx.</p> <p>The app I'm working on is built via 'Winforms App' template selectable via Visual Studio. The issue I'm having is kind of outside of winforms localization - which I t...
<p>I found a solution.</p> <p>If you guys ever have issue with the <code>Resources.resx</code>, make sure the localized file isn't: <code>Resources.de-DE.resx</code> or <code>Resources.pl-PL.resx</code>, instead - use only the first bit (Resources.de.resx) and make sure to open the file and set accessors to 'Internal'...
C# Localized Resources.resx doesn't allow for other languages
c#|winforms
0
556
3
53,674,631
53,674,631
0
true
2018-12-07T14:46:15.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# Localized Resources.resx doesn't allow for other languages<p>Good evening,</p> <p>I happen to have an issue with Winforms and Resources.resx.</p> <p>The...
53,638,292
How can I name the HTML input ID differently than than the address_component for Google Places API?<p>This code works correctly by extracting the address components into separate form fields but my problem is that it is forcing me to name the HTML input ID the same as the address component. For example, with the .js c...
<blockquote> <p>By the way, I think the "short name" "long name" entries are just to tell the Google Places API whether or not to abbreviate country names, etc.</p> </blockquote> <p>More like the API response includes a lot of fields, and you are using that data structure to choose which field to pick for each place...
How can I name the HTML input ID differently than than the address_component for Google Places API?
javascript|google-places-api|data-mapping
0
58
2
53,675,098
53,675,098
0
true
2018-12-05T18:08:33.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I name the HTML input ID differently than than the address_component for Google Places API?<p>This code works correctly by extracting the address com...
53,509,823
Tensorflow Implement Multivariate Student T diagonal distribution<p>I'm implementing a diagonal multivariate student t distribution (so logP(x1,x2,x3,..xD) = logP(x1) + logP(x2)+ ....+ logP(xD) ) such that it can be used as base distribution for bijectors in TensorFlow</p> <pre><code>import tensorflow_probability as t...
<p>TensorFlow Probability provides a way to create vector-valued distributions from scalar distributions via the <a href="https://www.tensorflow.org/probability/api_docs/python/tfp/distributions/Independent" rel="nofollow noreferrer">tfd.Independent</a> meta-distribution. That would automatically perform the summation ...
Tensorflow Implement Multivariate Student T diagonal distribution
python|tensorflow|tensorflow-probability
0
307
1
53,675,410
53,675,410
0
true
2018-11-27T23:28:58.860Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Tensorflow Implement Multivariate Student T diagonal distribution<p>I'm implementing a diagonal multivariate student t distribution (so logP(x1,x2,x3,..xD) =...
53,672,356
custom Filter and apply Char index in Oracle<p>I am trying to apply filtering logic and also searching from specific string in a column but unable to figure it out.</p> <p>here is the sample script below:</p> <pre><code>CREATE TABLE [Test]( service_id int, category_id int, employee_name varchar(50) ) ...
<p>How about this?</p> <pre><code>SQL&gt; select distinct 2 t.service_id, 3 t.category_id, 4 t.employee_name, 5 substr(m.manager_name, instr(m.manager_name, 'by') + 3) manager 6 from test t join major m on m.spec_id = t.service_id 7 where instr(m.manager_name, 'by') &gt; 0; SERVICE_ID CATEGO...
custom Filter and apply Char index in Oracle
oracle|oracle-sqldeveloper
0
26
1
53,675,747
53,675,747
0
true
2018-12-07T15:21:11.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: custom Filter and apply Char index in Oracle<p>I am trying to apply filtering logic and also searching from specific string in a column but unable to figure ...
53,528,934
Azure Autopilot: Serial Numbers for Custom Built PCs<p>I've been using autopilot with some of our Dell workstations and I've used the Powershell scripts online to generate the CSV files for importing our current devices. But when expanding to the rest of our workstations, I realized that the following doesn't work for ...
<p>It actually turns out that there was no need to change anything in the first place. </p> <p>The default entry from</p> <pre><code>wmic bios get serialnumber </code></pre> <p>Will show the serial number as "System Serial Number" which is a perfectly acceptable result for Autopilot. You just use that as the Serial ...
Azure Autopilot: Serial Numbers for Custom Built PCs
azure|deployment|mdm|intune
0
307
1
53,675,909
53,675,909
0
true
2018-11-28T22:16:15.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure Autopilot: Serial Numbers for Custom Built PCs<p>I've been using autopilot with some of our Dell workstations and I've used the Powershell scripts onli...
53,676,395
In what scenario we use Linked List implementation for Stack<p>In python a Stack implementation can be created using list. However, what are the benefits of creating stacks using Linked List</p>
<p>It doesn't matter that much in Python, since it can expand the list capacity when needed in constant time. A linked list implementation allows for the stack to dynamically change size without redefining the structure. So in this case, the benefits are pretty minimal, but it would be more important in other languages...
In what scenario we use Linked List implementation for Stack
python|data-structures|stack
0
33
1
53,676,488
53,676,488
0
true
2018-12-07T20:26:34.567Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In what scenario we use Linked List implementation for Stack<p>In python a Stack implementation can be created using list. However, what are the benefits of ...
53,676,490
update query copy source to destination table access 2010<p>just trying to figure out how to do the following:</p> <p>I have a 2 tables (<code>tbl_WBint</code>: destination and <code>temp_Agtpinwb</code> : source) and need to use update query to copy over fields in <code>tbl_WBint</code>. The issue is initially I use...
<p>It sounds like some of the values from temp_Agtpinwb are null values and are over-writing your 0'd values, you could use </p> <pre><code>UPDATE tbl_WBint INNER JOIN temp_Agtpinwb ON tbl_WBint.[Agent Pin] = temp_Agtpinwb.[Agent Pin] SET tbl_WBint.[Agent Pin] = [temp_Agtpinwb]![Agent Pin], tbl_WBint.[...
update query copy source to destination table access 2010
sql|ms-access
0
44
2
53,677,109
53,677,109
0
true
2018-12-07T20:34:16.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: update query copy source to destination table access 2010<p>just trying to figure out how to do the following:</p> <p>I have a 2 tables (<code>tbl_WBint</co...
53,676,918
What does the loggedin column of vBulletins session table mean?<p>In vBulletin 4.2 the <code>session</code> table has a column <code>loggedin</code>. Since VB doesn't seem to have a official database documentation, I want to know what exactly it means because the column it's a <code>SMALLINT</code> instead of simple bo...
<p>I learned that my filter to <code>*.php</code> files broke <code>greps</code> recursive scanning method. The correct command to scan <em>all</em> php files for <code>'loggedin'</code> (in quotes since vB use them this way on it's <code>$vbulletin-&gt;session</code> object) is:</p> <pre><code>grep -rn --include \*.p...
What does the loggedin column of vBulletins session table mean?
session|vbulletin
0
32
1
53,677,163
53,677,163
0
true
2018-12-07T21:17:51.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What does the loggedin column of vBulletins session table mean?<p>In vBulletin 4.2 the <code>session</code> table has a column <code>loggedin</code>. Since V...
53,641,338
Ruby on Rails modal form submitting to wrong DB<p>I have a modal on a searches/show page:</p> <pre><code>&lt;button name="button" type="button"&gt; &lt;a class="nav-link" data-toggle="modal" data-target="#emailFriendModal" href=""&gt;Email Results to Friend&lt;/span&gt;&lt;/a&gt; &lt;/button&gt; </code></pre> <p>On...
<p>I figured out the problem. I had two modals in the application layout and the code referenced the same javacript submit() function. The fix was to change the name of the submit() function like this:</p> <pre><code>&lt;div class="actions"&gt; &lt;%= f.submit "Send Email", class: 'btn btn-primary', "onclick":...
Ruby on Rails modal form submitting to wrong DB
ruby-on-rails|routing|ruby-on-rails-5.2
0
49
1
53,677,678
53,677,678
0
true
2018-12-05T21:54:22.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ruby on Rails modal form submitting to wrong DB<p>I have a modal on a searches/show page:</p> <pre><code>&lt;button name="button" type="button"&gt; &lt;a ...
53,677,966
R - Matching strings to dictionary and replacing<p>I making bar charts in R and want to change the x-axis strings using a dictionary that I have defined containing more readable names. Here is an example of the code.</p> <pre><code> mydata name value &lt;chr&gt; &lt;dbl&gt; 1 jd 20 2 mk...
<p>You can do:</p> <pre><code># reverse the vector convert_vec &lt;- names(readable_strings) names(convert_vec) &lt;- readable_strings # replace the values and plot mydata$name &lt;- sapply(mydata$name, function(x) convert_vec[[x]]) ggplot(mydata, aes(x = name, y=values)) + geom_bar(stat="identity") </code></pre>
R - Matching strings to dictionary and replacing
r|ggplot2|replace|match
0
46
1
53,678,024
53,678,024
0
true
2018-12-07T23:17:40.507Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R - Matching strings to dictionary and replacing<p>I making bar charts in R and want to change the x-axis strings using a dictionary that I have defined cont...
53,678,358
How to change url php parameter to subdomain and as a variable<p>i want to do it but i don't know how to, i've tried a lots of tutorials but doesn't work for me.</p> <p>I have a website (PHP), that show several info depending of a parameter on URL (i interpret it with php) like this:</p> <p><em>example.com/about.php?...
<p>You can extract the subdomain from the <code>SERVER_NAME</code> environment variable:</p> <pre><code>$subdomin = (explode('.', $_SERVER['SERVER_NAME']))[0]; var_dump($subdomain); </code></pre> <p>So if you hit <code>some.domain.com</code>, you'll get:</p> <pre><code>string(4) "some" </code></pre>
How to change url php parameter to subdomain and as a variable
php|apache|web|subdomain
0
31
1
53,678,425
53,678,425
0
true
2018-12-08T00:19:47.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to change url php parameter to subdomain and as a variable<p>i want to do it but i don't know how to, i've tried a lots of tutorials but doesn't work for...
53,676,946
Creating a Unique Key in R for time series data based on a binary starttime and endtime columns<p>I'm trying to plot lane data for trips taken in driving studies. The data-set looks like this: <a href="https://i.stack.imgur.com/9fw5h.png" rel="nofollow noreferrer">Dataset</a></p> <p>Using the following code, I was abl...
<p>Consider creating a new column as multiplies to the <em>time</em> variable. Then run a multiple variable <code>facet_wrap</code> or <code>facet_grid</code>. As example:</p> <pre><code>time &lt;- c(523490 + seq(0, 70, 10), 764350 + seq(0, 50, 10)) time # [1] 523490 523500 523510 523520 523530 523540 523550 523560 76...
Creating a Unique Key in R for time series data based on a binary starttime and endtime columns
r|ggplot2
0
46
1
53,679,093
53,679,093
0
true
2018-12-07T21:22:31.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating a Unique Key in R for time series data based on a binary starttime and endtime columns<p>I'm trying to plot lane data for trips taken in driving stu...
53,679,110
Why is onPress listed as an event in the documentation of marker in react-native-maps?<p>I am a person who recently started learning react native and I was under the impression that everything that was passed, was a prop. But when I was looking at the documentation of a Marker , onPress was listed under Events and not ...
<p>According to the documentation:</p> <blockquote> <p>Most components can be customized when they are created, with different parameters. These creation parameters are called props. Basically anything between the angle brackets of a component can be viewed as a prop.</p> </blockquote> <p>If you notice for the Butt...
Why is onPress listed as an event in the documentation of marker in react-native-maps?
android|reactjs|react-native
0
262
1
53,679,271
53,679,271
0
true
2018-12-08T03:00:38.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is onPress listed as an event in the documentation of marker in react-native-maps?<p>I am a person who recently started learning react native and I was u...
53,678,914
Codrova XMLHttpRequest File Download<p>I am working with Cordova and trying to download a file with XMLHttpRequest</p> <p>I am trying to use this example</p> <pre><code>https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html </code></pre> <p>Here is my code</p> <pre><code>var fileName = "test.mp3"...
<p>figured it out...</p> <p>use the following cordova function</p> <pre><code>saveFile(file, blob); </code></pre>
Codrova XMLHttpRequest File Download
cordova|xmlhttprequest
0
805
1
53,680,147
53,680,147
0
true
2018-12-08T02:08:33.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Codrova XMLHttpRequest File Download<p>I am working with Cordova and trying to download a file with XMLHttpRequest</p> <p>I am trying to use this example</p...
53,680,286
"Cannot find module 'async'" error when trying to deploy to Heroku<p>When trying to deploy to Heroku I didn't have a problem however when trying to access my Heroku URL I got an <code>"Application error"</code>. After executing <code>heroku logs</code>, I got the error <code>Cannot find module 'async'</code>. I install...
<p>Check 'async' in node_modules ,because your loader log "Cannot find module 'async'"</p>
"Cannot find module 'async'" error when trying to deploy to Heroku
javascript|node.js|asynchronous|heroku|deployment
0
801
2
53,680,542
53,680,542
0
true
2018-12-08T06:53:17.657Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: "Cannot find module 'async'" error when trying to deploy to Heroku<p>When trying to deploy to Heroku I didn't have a problem however when trying to access my...
53,680,514
express js can't redirect user<pre><code>var express = require('express'); var firebase = require('firebase'); var admin = require('firebase-admin'); var router = express.Router(); router.post('/api/login', function(req, res) { var email = req.body.email; var pass = req.body.password; ...
<p>If the POST request is coming from an Ajax call in a browser web page, then the response to the request goes only to your script that made the Ajax call. The browser does not see it at all, thus the browser does nothing itself with the response to the POST. The response just goes to your script. So, if you want t...
express js can't redirect user
node.js|express|monodevelop
0
34
1
53,680,745
53,680,745
0
true
2018-12-08T07:31:49.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: express js can't redirect user<pre><code>var express = require('express'); var firebase = require('firebase'); var admin = require('firebase-admin'); var rou...
53,674,505
counter starting from 0 after pause<p>Trying to create count-up timer but it is starting from 0 after pausing the counter. what is causing the issue? </p> <p>Here is typescript code. Am new to typescript so any help can be appreciated. </p> <pre><code> export class TrackPage { newTime; interval; constructor(pu...
<p>You can move below variable outside of <code>startTimer()</code> function and that should work.</p> <pre><code>let seconds=0; let minutes=0; let hours=0; </code></pre> <p>Why is that required? So whenever you make call to <code>startTimer()</code> function, variables like <code>seconds</code>, <code>minutes</code>...
counter starting from 0 after pause
typescript
0
26
1
53,680,762
53,680,762
0
true
2018-12-07T17:44:28.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: counter starting from 0 after pause<p>Trying to create count-up timer but it is starting from 0 after pausing the counter. what is causing the issue? </p> <...
53,378,221
Chrome Error - This site can’t be reached XXX.com refused to connect<p>I have a website up and running on an Amazon EC2 instance. The website works everywhere except for the Chrome Desktop version. It outputs this error: <a href="https://i.stack.imgur.com/R39D0.png" rel="nofollow noreferrer"><img src="https://i.stack.i...
<p><strong>UPDATE</strong></p> <p>I don't know why, but without changing anything, typing <code>mydomain.com</code> now works fine.</p>
Chrome Error - This site can’t be reached XXX.com refused to connect
amazon-web-services|google-chrome|url|amazon-ec2|amazon-route53
0
5,650
1
53,680,776
53,680,776
0
true
2018-11-19T15:49:00.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Chrome Error - This site can’t be reached XXX.com refused to connect<p>I have a website up and running on an Amazon EC2 instance. The website works everywher...
53,679,585
ContextCompat.CheckSelfPermission (this, permission) was not found, which I need so that the method does not send me error<p>When I call this method to see the checked permissions, it sends me an error, since I do not know if it has a reference and I have not passed it on, and I need to know if anything is needed to ma...
<p>I recommend trying the Permissions Plugin by @jamesmontemagno <a href="https://github.com/jamesmontemagno/PermissionsPlugin" rel="nofollow noreferrer">PermissionsPlugin</a></p>
ContextCompat.CheckSelfPermission (this, permission) was not found, which I need so that the method does not send me error
xamarin.forms
0
31
1
53,680,801
53,680,801
0
true
2018-12-08T04:45:34.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ContextCompat.CheckSelfPermission (this, permission) was not found, which I need so that the method does not send me error<p>When I call this method to see t...
53,584,562
How to hook into a pages title to filter it in wordpress<p>I have a page called <code>used-cars</code> and I'm trying filter its title and display it as an H1 header. I have <code>rewrite</code> the permalink structure to pass double terms e.g example.com/used-cars/term1/term2 and it works like a charm</p> <p>So at th...
<p>For anybody in search for this solution. This is how I finally resolved this problem.</p> <p>I hooked into <code>wpseo_title</code> instead of <code>wp_title</code> which has been discontinued since Wordpress 4.4</p> <p>Hope this helps.</p>
How to hook into a pages title to filter it in wordpress
php|wordpress|filter|taxonomy
0
287
1
53,681,032
53,681,032
0
true
2018-12-02T20:59:30.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to hook into a pages title to filter it in wordpress<p>I have a page called <code>used-cars</code> and I'm trying filter its title and display it as an H...
53,660,423
Corona SDK newSwitch - switch.isOn is opposite to the actual state<p>I have added a switch to the page:</p> <pre><code>local function highlightSwitchPress( event ) local switch = event.target print( "Switch with ID '"..switch.id.."' is on: "..tostring(switch.isOn) ) end local highlightSwitch = widget.newSwitc...
<p>After doing some reading around I found that is is because the <code>onPress</code> variable. the <code>onPress</code> triggers before the switch changes. </p> <p>By using the <code>onRelease</code>, the event happens after the switch changes and will report the state you want. </p> <p><a href="https://forums.cor...
Corona SDK newSwitch - switch.isOn is opposite to the actual state
lua|coronasdk
0
61
2
53,681,477
53,681,477
0
true
2018-12-06T22:07:23.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Corona SDK newSwitch - switch.isOn is opposite to the actual state<p>I have added a switch to the page:</p> <pre><code>local function highlightSwitchPress( ...
53,586,587
drools integer type difference between quoted and not quoted<p>I have a Integer type bar in Foo class, I want to know is there any difference between quoted and not quoted in Drools rule? just as follows:</p> <pre><code>bar == 123 </code></pre> <p>vs. </p> <pre><code>bar == "123" </code></pre> <p>by the way, I h...
<p>Drools rules use MVEL language syntax. MVEL applies value type correction in cases where two incomparable types are compared. You can read more about this here: <a href="https://github.com/imona/tutorial/wiki/MVEL-Guide#value-coercion" rel="nofollow noreferrer">https://github.com/imona/tutorial/wiki/MVEL-Guide#value...
drools integer type difference between quoted and not quoted
integer|drools|quotes
0
70
1
53,681,914
53,681,914
0
true
2018-12-03T02:16:01.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: drools integer type difference between quoted and not quoted<p>I have a Integer type bar in Foo class, I want to know is there any difference between quoted ...
53,680,734
Too many queries in production environment<p>In dev environment there are 16 database queries (using doctrine 2.6 &amp; only dql queries in my repositories). Somehow in production the exact same page shows 101 queries - because all the relations are queried, even most of them are not used. I have tried different fetch ...
<p>Solved it – the root cause was apcu. When I switched from:</p> <pre><code>doctrine: orm: metadata_cache_driver: apcu query_cache_driver: apcu result_cache_driver: apcu </code></pre> <p>to </p> <pre><code>doctrine: orm: metadata_cache_driver: apc query_cache_driver...
Too many queries in production environment
doctrine-orm|doctrine
0
12
1
53,682,158
53,682,158
0
true
2018-12-08T08:12:21.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Too many queries in production environment<p>In dev environment there are 16 database queries (using doctrine 2.6 &amp; only dql queries in my repositories)....
53,683,150
redux: getting rid of boilerplate when updating reducers<p>Suppose you are creating a product and saving product's property in a reducer.</p> <p>When product has a few properties, you could define <code>action type</code> for updating each property and a <code>case</code> handler inside reducer to update the property....
<p>In your action you can define as below:</p> <pre><code>const update_product_field = ({ prop, value, id }) =&gt; { return { type: ACTION_TYPE_UPDATE_PRODUCT, payload: { prop, value, id } }; }; </code></pre> <p>Then in your reducer you can define the case as below:</p> <pre><code>case ACTION_TYPE_UPDATE...
redux: getting rid of boilerplate when updating reducers
reactjs|redux
0
27
2
53,683,348
53,683,348
0
true
2018-12-08T13:46:58.217Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: redux: getting rid of boilerplate when updating reducers<p>Suppose you are creating a product and saving product's property in a reducer.</p> <p>When produc...
53,683,785
How to localize a newly created storyboard?<p>I have simply created a new Single App project in Xcode 10.1. Then I have created a new storyboard named "Login.storyboard". I want to localise my project and to do that I have tried adding a new language from "Localizations" in project property but it shows me a list with ...
<p>Follow these steps.</p> <ul> <li>Select <em>Login.storyboard</em> in <em>Project Navigator</em>.</li> <li>Go to the <em>File Inspector</em>.</li> <li>At the bottom you should see a <em>Localization Section</em>, with a big <em>Localize...</em> button.</li> <li>Click on the button, and Xcode will ask you for which l...
How to localize a newly created storyboard?
ios|xcode|localization|storyboard
0
26
1
53,684,127
53,684,127
0
true
2018-12-08T15:05:09.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to localize a newly created storyboard?<p>I have simply created a new Single App project in Xcode 10.1. Then I have created a new storyboard named "Login...
53,684,225
Set Variable Offsets Based on Empty Cell Location<p>I am trying to set up "x" and "y" as vaiable integers where "x" will take the place of 9 and "y" will take the place of 10 in the offset locations listed below. "x" and "y" will need to change value based on where the first blank cell in the Row corresponding to "t" ...
<p>Do you mean this? When using Find you should check you've found something before proceeding to avoid an error. Also, I would suggest giving your variables more meaningful names, particularly as you have so many. Could get confusing.</p> <pre><code>Sub z() Dim t As Range, x As Long, y As Long, n As Long With Works...
Set Variable Offsets Based on Empty Cell Location
excel|vba
0
34
1
53,684,605
53,684,605
0
true
2018-12-08T15:55:16.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Set Variable Offsets Based on Empty Cell Location<p>I am trying to set up "x" and "y" as vaiable integers where "x" will take the place of 9 and "y" will tak...
53,678,641
Flask wtf-form not validating after I add default values?<p>Flask Wtf Form no longer validates on submit after I add <code>form.field.default = value</code> and then <code>form.process()</code></p> <p>For example my form class,</p> <pre><code>class SelectFoo(FlaskForm): var1 = SelectField('Var 1') var2 = Sele...
<p>It looks like you need to process the form in the 'GET' request.</p> <pre><code>if request.method == 'GET': form.process() </code></pre> <p>Then everything works fine.</p>
Flask wtf-form not validating after I add default values?
flask|flask-wtforms|wtforms
0
49
1
53,685,835
53,685,835
0
true
2018-12-08T01:14:28.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flask wtf-form not validating after I add default values?<p>Flask Wtf Form no longer validates on submit after I add <code>form.field.default = value</code> ...
53,685,982
Unwanted SyntaxError Exception in Python 3<p>I am trying harder and harder to understand why this SyntaxError exception is being thrown every time but still unable to figure out what actually triggers this exception.</p> <p>Below is the code with the error thrown :</p> <pre><code>try: f = open('file.txt') s =...
<p>in python you have do indentation,with you have a inner value something like class to method or loop with do something inside loop So your code must be like this :</p> <pre><code>try: f = open('name.txt') s = str(f.readline()) print(s) except OSError as err: print(err) #and you cant just leave this ...
Unwanted SyntaxError Exception in Python 3
python-3.x|exception-handling
0
32
3
53,686,061
53,686,061
0
true
2018-12-08T19:09:58.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unwanted SyntaxError Exception in Python 3<p>I am trying harder and harder to understand why this SyntaxError exception is being thrown every time but still ...
53,637,785
Mysql2::Error: Unknown column with msql table in foreign language<p>I've built an rails app that is connected to a mysql database which as its table names and columns in Spanish. I've made models representing the tables with English names and put inside each model <code>self.table_name = "table_name_in_spanish"</code> ...
<p>I found the answer. I forgot to set the foreign-key inside the Ad model to 'id_anuncio'. If you don't explicitly tell rails that the the name of the foreign-key column is different then it will just call it by the models name + id: <code>ad_id</code>. You can see this in the error inside the console: <code>WHERE anu...
Mysql2::Error: Unknown column with msql table in foreign language
mysql|ruby-on-rails|activerecord
0
47
1
53,686,225
53,686,225
0
true
2018-12-05T17:33:35.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Mysql2::Error: Unknown column with msql table in foreign language<p>I've built an rails app that is connected to a mysql database which as its table names an...
53,681,630
Properties, Arrays and ArrayLists using vb.net<p>In my code behind in my Web project I have a Property<br/></p> <pre><code>Public Shared UserAttributes(2) As String Public Property _UserAttributes(ByVal Index As Integer) As String Get Return UserAttributes(Index) End Get Set(val...
<p>Finally I've made it to solve this puzzle as follows <br> One Property as <code>ArrayList</code> <br></p> <pre><code>Public Property _UserParameters As ArrayList Get Return UserParameters End Get Set(value As ArrayList) UserParameters = value End Set End P...
Properties, Arrays and ArrayLists using vb.net
vb.net|arraylist
0
43
1
53,686,574
53,686,574
0
true
2018-12-08T10:31:02.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Properties, Arrays and ArrayLists using vb.net<p>In my code behind in my Web project I have a Property<br/></p> <pre><code>Public Shared UserAttributes(2) A...
53,685,270
"Parsing error: Unexpected token )" with bot<p>I'm making a discord bot and I'm trying to make a timer that every second it edits the message to time + 1 second like a real clock (Like 0:00). I'm a noob at this. This is my script:</p> <pre class="lang-js prettyprint-override"><code>const Discord = require("discord.j...
<p>It says that there's an unexpected token <code>)</code> because you wrote your loop like this:</p> <pre class="lang-js prettyprint-override"><code>for (i = 0, 10000000000) {...} </code></pre> <p>You forgot to add the third argument (usually <code>i++</code>). Also, if you want it to run 10000000000 times you shoul...
"Parsing error: Unexpected token )" with bot
scripting|discord.js
0
553
2
53,686,711
53,686,711
0
true
2018-12-08T17:47:04.550Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: "Parsing error: Unexpected token )" with bot<p>I'm making a discord bot and I'm trying to make a timer that every second it edits the message to time + 1 sec...
53,687,521
Can webpack expose a var from the top level of a vanilla js file?<p>I want to use the var from a javascript file structured like this...</p> <pre><code>var thing = 123; </code></pre> <p>I added the repo with the file like <code>yarn add git://repo</code> and I need to access <code>thing</code> in my webpack-built pro...
<p>The answer is <code>exports-loader</code>.</p> <p>After adding the repo with yarn, the folder is in <code>node_modules/</code>. Add <code>exports-loader</code> with </p> <pre><code>yarn add exports-loader </code></pre> <p>and add a rule to webpack.config.js:</p> <pre><code>module.exports = { module: { rule...
Can webpack expose a var from the top level of a vanilla js file?
webpack
0
71
1
53,687,834
53,687,834
0
true
2018-12-08T22:17:32.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can webpack expose a var from the top level of a vanilla js file?<p>I want to use the var from a javascript file structured like this...</p> <pre><code>var ...
53,688,374
Nodejs, sent post insert values to database but after this, browser waiting for locahost.<p>Trying insert value to mysql database, so far I can insert values, but after insert, browser have infinite loop with "Waiting for localhost". I was trying to close connection - con.end(); but this does not solve issue. </p> <p...
<p>You method isn't never responding with nothing.</p> <p>You have to call <code>res.status(200).send()</code> to respond with HTTP 200 status code and close the connection with your client. You should check <a href="http://expressjs.com/it/api.html#res" rel="nofollow noreferrer">Express documentation</a> to understan...
Nodejs, sent post insert values to database but after this, browser waiting for locahost.
javascript|mysql|node.js|insert
0
40
1
53,688,528
53,688,528
0
true
2018-12-09T00:34:04.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Nodejs, sent post insert values to database but after this, browser waiting for locahost.<p>Trying insert value to mysql database, so far I can insert values...
53,688,491
Generating new variable that removing values less than 0 and greater than 1<p>Currently, I have generated variable <code>pscore &lt;- reg1$fit</code> and created a overlapping histogram with the following code:</p> <pre><code>hist(pscore[data$smoke==1],breaks=40,col=col.alpha("red",.5),freq=FALSE, xlim=c(-0.025,...
<p>You should do it like this:</p> <pre><code>pscore2 &lt;- reg1$fit[reg1$fit &gt;=0 &amp; reg1$fit &lt;=1] </code></pre> <p>Hope it helps.</p>
Generating new variable that removing values less than 0 and greater than 1
r
0
38
1
53,688,566
53,688,566
0
true
2018-12-09T01:00:44.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Generating new variable that removing values less than 0 and greater than 1<p>Currently, I have generated variable <code>pscore &lt;- reg1$fit</code> and cre...
53,679,654
Java-like stepping out of a bash function when tracing it<p>While tracing a function in <code>bash</code>, I can return non-zero value (say,<code>1</code>) from by <code>DEBUG</code> <code>trap</code> handler to skip the execution of the next line.</p> <p>Also, I can return the value <code>2</code> to execute a <code>...
<p>Tedious sure, but it seems this can be done with the existing callstack information provided by Bash.</p> <p>Here's how.</p> <p>Keep executing your <code>DEBUG</code> trap handler till you reach the next callstack frame, F2, sitting right under the current one, F1, and stop on a line number that is greater than or...
Java-like stepping out of a bash function when tracing it
bash|debugging|trace
0
27
1
53,688,719
53,688,719
0
true
2018-12-08T04:57:41.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Java-like stepping out of a bash function when tracing it<p>While tracing a function in <code>bash</code>, I can return non-zero value (say,<code>1</code>) f...
53,689,257
Creating webpack bundle from custom directory files<p>I am able to compile and run a react application using <code>public/src/index.js</code>. I want to create a completely different build from js files within <code>public/design/albert/js</code>. When I try compiling the file I get parse errors</p> <p>My questions ar...
<p>In your <code>webpack.config.js</code> file you can try something like this:</p> <pre><code>... entry: { 'bundle_1': 'src/index.js', 'bundle_2': 'design/albert/js/index.js' }, output: { filename: '[name].js' ... </code></pre>
Creating webpack bundle from custom directory files
javascript|reactjs|webpack
0
65
1
53,689,361
53,689,361
0
true
2018-12-09T04:00:02.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating webpack bundle from custom directory files<p>I am able to compile and run a react application using <code>public/src/index.js</code>. I want to crea...
53,557,385
Close Activity on closing PlacePicker<p>As I understand, PlacePicker is a widget that comes on top of an Activity or Fragment. <br/><br/> I want to handle the back button to close the activity as well as the PlacePicker when I click on it. <br/></p> <p><a href="https://i.stack.imgur.com/tgFZB.png" rel="nofollow norefe...
<p>Though I could not find a direct solution, I was able to solve this with initiating the PlacePicker at the calling activity only.</p> <p>To show the details returned by the PlacePicker, I used another activity with the help of an Intent.</p>
Close Activity on closing PlacePicker
android|google-places-api|google-places
0
45
1
53,689,456
53,689,456
0
true
2018-11-30T12:13:46.627Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Close Activity on closing PlacePicker<p>As I understand, PlacePicker is a widget that comes on top of an Activity or Fragment. <br/><br/> I want to handle th...
53,690,342
Prop I can access in component can't be rendered<p>My MERN app's purpose is to take a 3-digit input from a user and return the first prime number that contains those digits (ex: you enter 026, the app returns 10267). If my <code>checker()</code> function finds a match, I run <code>updatePrimeNumber()</code> to update t...
<p>About your problem:primeNumbers is not defined.UpdatePrimeNumber is async, you need to check it first and add constructor to initial this.props.</p> <pre><code> constructor(){ super(props) } renderprime(){ this.checker(this.props.data.primeNumbers) if (this.props.data.primeNumbers){ retur...
Prop I can access in component can't be rendered
reactjs|mongodb|graphql|react-apollo
0
33
2
53,690,644
53,690,644
0
true
2018-12-09T07:38:40.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Prop I can access in component can't be rendered<p>My MERN app's purpose is to take a 3-digit input from a user and return the first prime number that contai...
53,690,997
Cannot connect to localDB after creating from CMD<p>So this is my first time setting up SQL Server 2014, I looked up online and try to make and connect to Local database, but it still gave me an error.</p> <p><a href="https://i.stack.imgur.com/5rlPS.png" rel="nofollow noreferrer">Cannot Connect</a></p> <p>Is there an...
<p>Try using <strong><code>(localdb)\SQLArra</code></strong> (with a <strong>backslash</strong> instead of forward slash) to connect. The SQL Server server+instance name <strong>requires</strong> a backslash and does <strong>not</strong> support forward slashes instead.</p> <p>In my case (SQL Server 2016 LocalDB) this...
Cannot connect to localDB after creating from CMD
sql-server
0
27
1
53,691,104
53,691,104
0
true
2018-12-09T09:34:45.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot connect to localDB after creating from CMD<p>So this is my first time setting up SQL Server 2014, I looked up online and try to make and connect to Lo...
53,691,535
How can I create table in database without using laravel default way using command line<p>I am trying to take input from user as table name, field list with their type (integer or text) and save that in on table and then create a table dynamically using that input. </p>
<p>i can assure you that you need to pick a newer way of doing your work, if you intend to work with Laravel then you need to work with Eloquent models big time. If you can you can share with us the idea and we can help you refine the logic. You should learn to use one table and find means to separate entries.</p> <p>...
How can I create table in database without using laravel default way using command line
laravel|command-line|database-migration
0
41
1
53,691,989
53,691,989
0
true
2018-12-09T10:51:52.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I create table in database without using laravel default way using command line<p>I am trying to take input from user as table name, field list with ...
53,692,415
How to join with Eloquent?<p>I would like to do automatic join-grouping when selecting from an Eloquent model in Laravel. </p> <p>Let's suppose I have these tables:</p> <pre><code>humans pets ------ ---- int id int id varchar name varchar name varchar category int ...
<p>Your magic is done in two steps: </p> <pre><code>class Human extends Eloquent { public function pets() { return $this-&gt;hasMany('Pet'); } } </code></pre> <p>And for your query</p> <pre><code>function wish() { return Human::with('pets')-&gt;all()-&gt;toJson(); } </code></pre> <p>You can ...
How to join with Eloquent?
php|database|orm|eloquent
0
57
1
53,692,542
53,692,542
0
true
2018-12-09T12:44:29.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to join with Eloquent?<p>I would like to do automatic join-grouping when selecting from an Eloquent model in Laravel. </p> <p>Let's suppose I have these...
53,687,947
Centering a dygraph plot in R Markdown<p>I'm trying to center a dygraph but it remains left aligned. Below is my minimal example, highlighting how <code>fig.align='center'</code> workings with a normal plot:</p> <pre><code>--- output: html_document --- ```{r fig.align='center'} plot(cars) ``` ```{r fig.align='center...
<p>The <strong>dygraph</strong> package creates HTML widgets, which behave differently to standard figures in R Markdown which are static images. Based on <a href="https://stackoverflow.com/questions/52112119/center-leaflet-in-a-rmarkdown-document">this answer</a>, we can add some custom CSS to force the HTML widgets t...
Centering a dygraph plot in R Markdown
r|r-markdown|knitr|centering|r-dygraphs
0
324
1
53,693,165
53,693,165
0
true
2018-12-08T23:15:45.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Centering a dygraph plot in R Markdown<p>I'm trying to center a dygraph but it remains left aligned. Below is my minimal example, highlighting how <code>fig....
53,692,859
Populate labels when selecting item in listbox<p>I have a listbox that contains the first index of every line in a text file. the indexes are seperated with a ','. I would like to select an item in the listbox and have it populate the labels I have in place with the rest of the line from the text file.</p> <pre><code>...
<p>I changed my code a little, added some code that I used to populate the listbox itself, and now it all works just fine.</p> <pre><code>private void listsup_MouseClick(object sender, MouseEventArgs e) { Supfile = System.AppDomain.CurrentDomain.BaseDirectory + "data\\Suppliers.txt"; try { ...
Populate labels when selecting item in listbox
listbox|label|populate|selecteditem
0
17
1
53,693,302
53,693,302
0
true
2018-12-09T13:34:41.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Populate labels when selecting item in listbox<p>I have a listbox that contains the first index of every line in a text file. the indexes are seperated with ...
53,694,173
Python Requests module, Json, & APIs<ol> <li>I need to identify any accounts that the "account_type" in the API is listed as "Unknown" instead of "Linked" from an API.</li> <li>I will need to then compare the "owner_id" field we identified as "Unknown" "account_type" against the owner_id's listed in a csv.</li> <li>I w...
<p>For example if your csv file looks like this:</p> <pre><code>id,sample_data 1,sample 2,sample 3,sample 4,sample 5,sample </code></pre> <p>try following code:</p> <pre><code>import requests import csv r = requests.get("https://chapi.cloudhealthtech.com/v1/aws_accounts", params={"api_key": "xxxxxxxxxxxxxxxx"}) ...
Python Requests module, Json, & APIs
python|python-requests
0
67
1
53,694,492
53,694,492
0
true
2018-12-09T16:10:29.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python Requests module, Json, & APIs<ol> <li>I need to identify any accounts that the "account_type" in the API is listed as "Unknown" instead of "Linked" fr...
53,694,129
Sending custom headers and cookies<p><strong>Scenario :</strong> I want a form to be posted with my custom headers and cookies when i click the submit button .</p> <p>I tried the below code to do , but it was failure </p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;form action="https://www.example.com/test/alter/" meth...
<p>It looks like your function isn't closed. Have you considered using the <a href="https://github.com/axios/axios" rel="nofollow noreferrer">Axios HTTP client</a>? <a href="https://github.com/axios/axios" rel="nofollow noreferrer">https://github.com/axios/axios</a> Many designers prefer to avoid using old-school style...
Sending custom headers and cookies
javascript|http|cookies|header|xmlhttprequest
0
49
1
53,694,653
53,694,653
0
true
2018-12-09T16:05:26.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sending custom headers and cookies<p><strong>Scenario :</strong> I want a form to be posted with my custom headers and cookies when i click the submit button...
53,694,768
gitignore propagating exlusions to lower levels into directories<p>I have a in <code>gitignore</code></p> <pre><code>* !.* </code></pre> <p>and I would expect that I see all the subdirectories of <code>.*</code> but indeed git sees only the ones where the subdirectory starts again with <code>.</code>. For example, I ...
<p>You want to include the path at the same level as your <code>.gitignore</code> file</p> <pre><code>!./.* </code></pre>
gitignore propagating exlusions to lower levels into directories
git|gitignore
0
35
3
53,694,971
53,694,971
0
true
2018-12-09T17:20:22.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: gitignore propagating exlusions to lower levels into directories<p>I have a in <code>gitignore</code></p> <pre><code>* !.* </code></pre> <p>and I would exp...
53,694,537
How to extract single field from Tiny DB search<p>I populate my db, then make a search, I can print the results but I want extract the fields to populate labels or entries, how can I do it ? This is my code</p> <pre><code>from tinydb import TinyDB, Query, where db = TinyDB('rubrica.json') def populate(): Item1 = ...
<p>You can get list of any field like this</p> <pre><code>def getFieldData(fieldName): result = [r[fieldName] for r in db] return result print(getFieldData('NAME')) print(getFieldData('SURNAME')) </code></pre>
How to extract single field from Tiny DB search
python|tinydb
0
1,084
2
53,695,250
53,695,250
0
true
2018-12-09T16:52:56.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to extract single field from Tiny DB search<p>I populate my db, then make a search, I can print the results but I want extract the fields to populate lab...
53,695,209
Automatically download txt document response<p>I am currently working on a python project and I would like to know how to serve a txt file to a browser. Ex: Accessing page.html will make a get request for a file with the same name to download. No FE processing is needed for the received file. Thanks!</p>
<p>You have to change the MIME type of the content. Take a look at MDN docs provided below. <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types?fbclid=IwAR0gPmy2j2e1fTE6sUIWtGf-MvHtH5joTCjQ_atkmJrhD1V-rPTxd5p9n-M" rel="nofollow noreferrer">the list of current content types accepted</a><...
Automatically download txt document response
python|html
0
24
1
53,695,271
53,695,271
0
true
2018-12-09T18:07:49.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Automatically download txt document response<p>I am currently working on a python project and I would like to know how to serve a txt file to a browser. Ex: ...
53,694,630
Screen.width seems to be strafing from the center of the screen instead of relative to the screen size on full screen<p>I have a C# script controlling my main camera on my top down perspective of a tower defense game I'm working on. To my knowledge, Screen.width is supposed to scale with screen size so using Screen.wid...
<p>use </p> <p>Screen.height-Input.mousePosition.y</p> <p>the y in screen position and input are opposite, its not your left right its your up down.</p>
Screen.width seems to be strafing from the center of the screen instead of relative to the screen size on full screen
c#|unity3d|camera|screen
0
27
1
53,695,291
53,695,291
0
true
2018-12-09T17:03:08.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Screen.width seems to be strafing from the center of the screen instead of relative to the screen size on full screen<p>I have a C# script controlling my mai...
53,695,116
How to calculate value with code for specific formule in Oracle SQL?<p>I have Oracle SQL query. In results I get something like that:</p> <pre><code>CODE || VALUE I || 10 II || 30 III || 50 IV || -20 V || 60 VII || -45 VIII || 0 IX || 100 X || 0 </code></pre> <p>Next I want for CODE = X create formule like:</p> <p>C...
<pre><code> select sum(value) from table where code not like 'VI%' Union select sum(case when code in ('IV', 'V' ) then -value else value end case) from table where code not like 'VI%' </code></pre> <blockquote> <p>Just a different way of doing the same as above via union</p> </...
How to calculate value with code for specific formule in Oracle SQL?
sql|oracle
0
42
2
53,695,293
53,695,293
0
true
2018-12-09T17:59:08.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to calculate value with code for specific formule in Oracle SQL?<p>I have Oracle SQL query. In results I get something like that:</p> <pre><code>CODE ||...
53,696,558
Refresh table using ajax<p>I store some user's data in cookies and then I append all data to the table:</p> <pre><code>$.ajax({ url: "http://127.0.0.1:8000/recent/", dataType: 'json', type: 'get', cache:false, success: function(data){ var recent = JSON.parse(data['recent']).reverse(); ...
<p>Nope, it won't refresh everytime you change data in cookies. That's because you only append the first data you received and you saved in cookies.</p> <p>If you want to refresh your table everytime you change data in cookies you will need to create a listener that tells you that the data has changed.</p>
Refresh table using ajax
javascript|ajax
0
36
1
53,697,116
53,697,116
0
true
2018-12-09T20:50:53.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Refresh table using ajax<p>I store some user's data in cookies and then I append all data to the table:</p> <pre><code>$.ajax({ url: "http://127.0.0.1:8...
53,615,626
Creating a Salesforce report on Master Detail relationship<p>I am trying to create a report on one to many Master-Detail relationships. I need to get results on Opportunity(Master) related to the many financiers(Detail). The financiers have a picklist field that can approve or deny or approve conditionally. Some oppor...
<p>This is a SF admin question rather than coding. You might have better luck at <a href="https://salesforce.stackexchange.com">https://salesforce.stackexchange.com</a>.</p> <p>As a rule of thumb - si this report going to be the only place you need this kind of data. For "clean" solution I'd be tempted to make up to 3...
Creating a Salesforce report on Master Detail relationship
salesforce|apex|visualforce|master-detail
0
72
1
53,697,638
53,697,638
0
true
2018-12-04T14:55:26.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating a Salesforce report on Master Detail relationship<p>I am trying to create a report on one to many Master-Detail relationships. I need to get result...
53,697,444
Why is EF core datacontext updating foreign key object collections?<p>The following correctly updates the "review" object but also updates all other review objects that had the same original value of 'status'.</p> <pre><code>review=_context.Review.Where(q=&gt;q.id==1).Include(q=&gt;q.Status).SingleOrDefaultAsync(); re...
<p>You are updating the Status1 property of a Status record rather than assigning a different status to the review.</p> <p>For instance lets say you have 3 statuses, "Pending", "Approved", and "Rejected". This would be 3 status records. A Review has a Status ID which points to a Status record. Your EF review entity al...
Why is EF core datacontext updating foreign key object collections?
entity-framework|asp.net-core
0
29
1
53,697,851
53,697,851
0
true
2018-12-09T22:47:00.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is EF core datacontext updating foreign key object collections?<p>The following correctly updates the "review" object but also updates all other review o...
53,697,780
HTTP Post to curl syntax<p>I have an HTTP Post (below) that I need to run as a curl command but can't seem to get it to work no matter what I try. What should my curl syntax look like?</p> <pre><code>POST /ABRXMLSearch.asmx/ABRSearchByABN HTTP/1.1 Host: abr.business.gov.au Content-Type: application/x-www-form-urlenco...
<p><code>curl -d "searchString=XXX&amp;includeHistoricalDetails=N&amp;authenticationGuid=YYY" -X POST https://example.com/ABRXMLSearch.asmx/ABRSearchByABN</code></p> <p><a href="https://gist.github.com/subfuzion/08c5d85437d5d4f00e58" rel="nofollow noreferrer">See</a> </p>
HTTP Post to curl syntax
curl
0
50
1
53,697,928
53,697,928
0
true
2018-12-09T23:34:08.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: HTTP Post to curl syntax<p>I have an HTTP Post (below) that I need to run as a curl command but can't seem to get it to work no matter what I try. What shou...
53,697,940
BeautifulSoup Matching on Incorrect Class<p>I'm working with HTML that looks like the below:</p> <pre><code>&lt;td class="hidden-xs BuildingUnit-price" data-sort-value="625000"&gt; &lt;span class="price"&gt;$625,000 &lt;/span&gt; &lt;/td&gt; &lt;td class="hidden-xs BuildingUnit-bedrooms" data-sort-value="4.0"&gt; ...
<p>Found a way to test the class of each match:</p> <pre><code>#Extract the baths lst_baths=list() temp_lst=list() baths=soup.find_all("td", class_=["hidden-xs"]) for item in baths: if item['class']==['hidden-xs']: temp_lst.append(item) else: pass bath_lines=[td.get_text().strip() for td in tem...
BeautifulSoup Matching on Incorrect Class
html|python-3.x|beautifulsoup
0
13
1
53,698,009
53,698,009
0
true
2018-12-10T00:02:44.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: BeautifulSoup Matching on Incorrect Class<p>I'm working with HTML that looks like the below:</p> <pre><code>&lt;td class="hidden-xs BuildingUnit-price" data...
53,698,355
Making center a inline-block<p>I am having a hard time centering a inline block. </p> <pre><code>.content { width: 85%; margin: 0 auto; } #main-wrapper { text-align: center; display: inline-block; } #main-column { width: 85%; margin: 0 auto; } #image { width: 150px !important; height...
<p>It's hard to be certain without seeing the surrounding code, but try moving the <code>#main-wraper</code> and <code>#main-column</code> elements out of the <code>@foreach</code> loop.</p> <pre><code>&lt;div id="main-wrapper"&gt; &lt;div id="main-column"&gt; @foreach($estates as $estate) &lt;...
Making center a inline-block
html|css
0
26
2
53,698,559
53,698,559
0
true
2018-12-10T01:17:27.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Making center a inline-block<p>I am having a hard time centering a inline block. </p> <pre><code>.content { width: 85%; margin: 0 auto; } #main-wra...
53,693,562
Class File for org.apache.jmeter.testelement.TestIterationListene not found<p>I'm getting the following error:</p> <pre><code>Error:(87, 20) java: cannot access org.apache.jmeter.testelement.TestIterationListener class file for org.apache.jmeter.testelement.TestIterationListener not found </code></pre> <p>I don't k...
<p>Most probably the error is caused by so called <a href="https://dzone.com/articles/what-is-jar-hell" rel="nofollow noreferrer">jar hell</a> when different JMeter libraries are relying on different dependencies versions which clash somewhere somehow. </p> <p>Is there any specific reason for having JMeter libraries f...
Class File for org.apache.jmeter.testelement.TestIterationListene not found
java|maven|jmeter
0
522
1
53,699,580
53,699,580
0
true
2018-12-09T14:57:27.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Class File for org.apache.jmeter.testelement.TestIterationListene not found<p>I'm getting the following error:</p> <pre><code>Error:(87, 20) java: cannot ac...
53,699,253
Variable return data with local state in Apollo<p>So, I'm using <code>Apollo-link-state</code> to manage my local state in a React GraphQL app, I'm trying to store column sorting values for different paths in global state, so for example if you're on <code>/people</code>, you may be sorting by <code>firstName</code>. I...
<p>You can <a href="https://www.apollographql.com/docs/link/links/state.html#resolver" rel="nofollow noreferrer">define custom resolvers</a> for queries as well as mutations when using <code>apollo-link-state</code>. That means your underlying data can be just an array of preference objects, each one having three prope...
Variable return data with local state in Apollo
reactjs|graphql|apollo|react-apollo|graphql-js
0
272
1
53,700,024
53,700,024
0
true
2018-12-10T03:50:32.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Variable return data with local state in Apollo<p>So, I'm using <code>Apollo-link-state</code> to manage my local state in a React GraphQL app, I'm trying to...
53,645,640
Angular test with karma fake XmlHttpRequest problems<p>I'm trying to test an angular service (based on feathersJS) with the standard angular testing tools (Karma and Jasmine).</p> <p>As my service make XHR call to a back end (using socket.io), I want to mock those calls to test the service.</p> <p>I use sinon.js libr...
<p>After a lot of tests, I believe that mocking socket.io is bad idea. So i embeded a fake server in my project that provide static response to Ajax/socket.io query.</p>
Angular test with karma fake XmlHttpRequest problems
angular|jasmine|mocking|xmlhttprequest|karma-runner
0
816
1
53,700,096
53,700,096
0
true
2018-12-06T06:17:01.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular test with karma fake XmlHttpRequest problems<p>I'm trying to test an angular service (based on feathersJS) with the standard angular testing tools (K...
53,700,180
Test framework quit unexpectedly - Cucumber tests<p>after test launch the result is test passed, but test framework quit unexpectedly. How to resolve it?</p> <p><strong>Test sample</strong></p> <p><img src="https://i.stack.imgur.com/DDFar.png" alt="Screen Shot"></p> <p><strong>Test feature</strong></p> <p><img src=...
<p>Actually, you need to specified the location of feature file in the @CucumberOptions.</p> <p>Such as:</p> <pre><code>@CucumberOptions( format={"pretty", "html:reports/test-report"}, tags= "@smokeTest", features = "Features") </code></pre>
Test framework quit unexpectedly - Cucumber tests
java|maven|automated-tests|cucumber
0
1,804
1
53,700,597
53,700,597
0
true
2018-12-10T05:52:38.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Test framework quit unexpectedly - Cucumber tests<p>after test launch the result is test passed, but test framework quit unexpectedly. How to resolve it?</p>...
53,700,381
How to convert MySQL query to Eloquent Relationships?<p>I don't really know what words or terms I would search. I have also read the documentation in laravel 5.7, <a href="https://laravel.com/docs/5.7/eloquent-relationships#many-to-many-polymorphic-relations" rel="nofollow noreferrer">https://laravel.com/docs/5.7/eloqu...
<p>You should use <code>belongsTo()</code> relation. Transaction belongs to one product, product has many transactions.</p> <p>Also, you can (or better should) rename model to a singlular. Then you don't need to use <code>protected $table</code>.</p> <p>It is not necessarily to select only <code>name</code>.</p> <p>...
How to convert MySQL query to Eloquent Relationships?
relationship|laravel-5.7
0
54
1
53,700,884
53,700,884
0
true
2018-12-10T06:15:57.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to convert MySQL query to Eloquent Relationships?<p>I don't really know what words or terms I would search. I have also read the documentation in laravel...
53,573,533
How to permanently disable audio and camera in openmeetings room?<p>I am using Apache Openmeetings. Since I don't use audio and Camera features on a particular room, i would like to permanently disable the camera/audio popup when Guests login to the meeting room.</p> <p>Any help is much appreciated.</p> <p>Thanks</p>
<p>There are several options available out-of the box:</p> <ol> <li>Use room of type "presentation" and make it "Moderated". This way Audio/Video popup will not be automatically displayed, only moderators will have rights to share their Camera/Microphone</li> <li>You can also made room "Audio only". This way there wil...
How to permanently disable audio and camera in openmeetings room?
openmeetings
0
284
1
53,700,918
53,700,918
0
true
2018-12-01T17:54:58.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to permanently disable audio and camera in openmeetings room?<p>I am using Apache Openmeetings. Since I don't use audio and Camera features on a particul...
53,701,239
Instant updaing with codepush<p>Does expo do the job codePush does for us. I want to have the ability to update the app instantly without the need for the user to update the app on appStore or playStore. any help would be appreciated.</p>
<blockquote> <p>when you want to update your app, just Publish again from Expo CLI. Your users will download the new JS the next time they open the app. To ensure your users have a seamless experience downloading JS updates, you may want to enable background JS downloads. However, there are a couple of reason...
Instant updaing with codepush
react-native|expo
0
19
1
53,701,474
53,701,474
0
true
2018-12-10T07:32:51.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Instant updaing with codepush<p>Does expo do the job codePush does for us. I want to have the ability to update the app instantly without the need for the us...
53,642,391
How to retrieve version history information and run history of a azure logic app<p>I'm kind of new developing in Azure, I developed a <strong>logic app</strong> that works correctly and I need to import to an <strong>azure sql datawarehouse</strong> the version history and the run history of this logic app. I created a...
<p>To answer your first question, there are two possible issues in your operation.</p> <ol> <li>As the answer of <a href="https://stackoverflow.com/questions/46739126/cant-create-external-data-source-in-sql">your refered SO thread</a> said, the issue might be caused by the incompatible version of SQL Server. Please ch...
How to retrieve version history information and run history of a azure logic app
azure|azure-logic-apps
0
557
1
53,701,530
53,701,530
0
true
2018-12-05T23:30:05.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to retrieve version history information and run history of a azure logic app<p>I'm kind of new developing in Azure, I developed a <strong>logic app</stro...
53,670,970
get calendarrules by servicenameid<p>In Dynamics 365 (on premise) I need to delete Service Restrictions, Associated with a specific service. It looks like they are stored in "calendarrules", but when i try to find some info in my collection of calendarrules, I do not see any attributes similar to "ServiceNameId". I fou...
<p>Ok, it can be found on innercalendars and updated by this way:</p> <pre><code>SystemUser user = service.Retrieve(SystemUser.EntityLogicalName, serviceappointment.OwnerId.Id, new ColumnSet("calendarid")).ToEntity&lt;SystemUser&gt;(); Calendar userCalendar = service.Retrieve(Calendar.EntityLogical...
get calendarrules by servicenameid
dynamics-crm|dynamics-365
0
29
1
53,701,896
53,701,896
0
true
2018-12-07T13:53:18.917Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: get calendarrules by servicenameid<p>In Dynamics 365 (on premise) I need to delete Service Restrictions, Associated with a specific service. It looks like th...
53,589,423
Gerrit Rest API not working when query string contains Hour, Minute, Second<p>With <code>curl</code> command and Gerrit Rest api, querying like below does not work well.</p> <p>(Not OK)</p> <p>/changes/?q=after:"2018-12-03 09:00:00"</p> <p>Surely, without HH:MM:SS part, it works well.</p> <p>(OK)</p> <p>/changes/?...
<p>I found a solution.</p> <p>Replace the space for "%20" is not enough.</p> <p>Quotation mark also should be encoded as "%22".</p> <p>If you add time zone also, you should encode "+" as "%2B" too. </p> <p>Here is full working query string. Below query fetch changes which are updated after 2018-12-03 09:00:00.000 +...
Gerrit Rest API not working when query string contains Hour, Minute, Second
rest|gerrit
0
321
2
53,701,965
53,701,965
0
true
2018-12-03T07:43:41.097Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Gerrit Rest API not working when query string contains Hour, Minute, Second<p>With <code>curl</code> command and Gerrit Rest api, querying like below does no...
53,696,728
Dynamic proxies in Azure Functions Core Tools?<p>I'm using Azure Functions Core Tools v2.3.148 on my mac. I'm using it for local development and publishing my app. My app needs proxies, so I've defined all proxies in proxies.json file. During local development, Core Tools recognises the file but points to backendUris w...
<p>As long as the backendurl locates in the same Function app, we can take advantage of <code>localhost</code> to represent the host no matter it's on Azure site or locally. Check the <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-proxies#reference-localhost" rel="nofollow noreferrer">doc</a>...
Dynamic proxies in Azure Functions Core Tools?
azure|azure-functions|serverless|azure-functions-core-tools
0
278
1
53,702,404
53,702,404
0
true
2018-12-09T21:12:31.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dynamic proxies in Azure Functions Core Tools?<p>I'm using Azure Functions Core Tools v2.3.148 on my mac. I'm using it for local development and publishing m...
53,704,116
Postgres & JSONB - Levenshtein argument<p>I have two tables and want to do a left join from the second to the first by way of a Levenshtein fuzzy matching algorithm. The ita_public table contains jsonb data, and the matching takes place between a string (supplier_name) and some nested data within the json string.</p> ...
<p>From <a href="https://www.postgresql.org/docs/current/fuzzystrmatch.html#id-1.11.7.24.6" rel="nofollow noreferrer">the documentation</a>:</p> <blockquote> <p>levenshtein(text source, text target) returns int</p> <p>Both source and target can be any non-null string, with a maximum of 255 characters.</p> </blockquote>...
Postgres & JSONB - Levenshtein argument
postgresql|jsonb
0
583
1
53,704,334
53,704,334
0
true
2018-12-10T10:50:03.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Postgres & JSONB - Levenshtein argument<p>I have two tables and want to do a left join from the second to the first by way of a Levenshtein fuzzy matching al...
53,613,375
Make interactive console active by default in pycharm while debugging<p>I've been using interactive console while debugging in PyCharm. But with each rerun of debugger I have to press button for console over and over again. I wonder is it possible to make it active by default without need of pressing the button?</p> <...
<p>I don't know if this was really a problem, but it resolved when I installed professional edition of PyCharm.</p>
Make interactive console active by default in pycharm while debugging
python|debugging|console|pycharm
0
24
1
53,704,404
53,704,404
0
true
2018-12-04T12:47:11.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make interactive console active by default in pycharm while debugging<p>I've been using interactive console while debugging in PyCharm. But with each rerun o...
53,704,425
How to make function as Directive and I have to use that in other components<p>How to make function as Directive and I have to use that in other components. Right now it is in one component but I have to use that in other components also.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true"...
<pre><code>&lt;input [funCtionDirective]="@someValues@" type="file" (change)="onFileChange($event)" style="visibility: hidden;"/&gt; </code></pre> <p>you can create one custom directive and pass the necessary value to it like above. and then you can access it via <code>@Input</code> decorator in that directives call<...
How to make function as Directive and I have to use that in other components
html|css|angular
0
25
1
53,704,649
53,704,649
0
true
2018-12-10T11:10:53.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make function as Directive and I have to use that in other components<p>How to make function as Directive and I have to use that in other components. ...
53,704,764
Shape equals ()<p>I am reading the tests in the <a href="https://github.com/tensorflow/models/blob/master/official/mnist/mnist_test.py" rel="nofollow noreferrer">TensorFlow MNIST official model</a>. Line 49 has:</p> <pre><code>self.assertEqual(loss.shape, ()) </code></pre> <p>and selected lines leading up to it are:<...
<p>Your <code>loss</code> is a NumPy object and not a TensorFlow object:</p> <pre><code>print(type(loss)) # prints &lt;class 'numpy.float32'&gt; print(loss) # prints 2.2745261 </code></pre> <p>I assume that a shape of <code>()</code> in NumPy means a scalar, though I could not find a documentation for it. You can see...
Shape equals ()
tensorflow
0
27
1
53,704,765
53,704,765
0
true
2018-12-10T11:31:22.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Shape equals ()<p>I am reading the tests in the <a href="https://github.com/tensorflow/models/blob/master/official/mnist/mnist_test.py" rel="nofollow norefer...
53,499,030
Clone a GIT repository with NGit in VB.net<p>My objective is to perform clone and pull operations on a <code>GIT</code> repository through <code>.NET</code> code. When cloning, I specifically want to clone a particular branch. If a particular repository is already cloned but with a different branch, then I would like t...
<p>I figured out that while in jGit you can use the exact branch name like <code>MyBranch</code>, in case of NGit you need to pass <code>refs/heads/MyBranch</code> for it work. Apparently though nGit claims to be an automatic port of jGit, there are some minor differences in how they work.</p>
Clone a GIT repository with NGit in VB.net
.net|git|jgit|ngit
0
326
1
53,705,063
53,705,063
0
true
2018-11-27T11:50:39.860Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Clone a GIT repository with NGit in VB.net<p>My objective is to perform clone and pull operations on a <code>GIT</code> repository through <code>.NET</code> ...
53,691,480
texttooltip not shown for a button. (LIBGDX)<p>I have coded a button with a texttooltip, but tooltip is not shown when hovered over. Button is visible and clickable. Why is my tooltip not shown for a button ?</p> <p>I have the following code in my ApplicationAdapter.create() :</p> <pre><code> TextButton textButton...
<p><code>TextTooltip</code> has a Constructor where you can give a <code>ToolptipManager</code>.</p> <p>In the <code>TooltipManager</code> you have a function <code>instant()</code> after calling this method the Tooltip will appear instantly.<br> <a href="https://libgdx.badlogicgames.com/ci/nightlies/docs/api/com/badl...
texttooltip not shown for a button. (LIBGDX)
libgdx
0
312
1
53,705,275
53,705,275
0
true
2018-12-09T10:44:10.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: texttooltip not shown for a button. (LIBGDX)<p>I have coded a button with a texttooltip, but tooltip is not shown when hovered over. Button is visible and cl...
53,705,348
How to provide search input with python selenium liberary?<p>from the following website, I want to provide a search input "3M" in "Type organization's name" box and then hit on 'Go' button.</p> <p>I was able to open the website using the following script in python however required help on searching part.</p> <pre><co...
<p>You can use an <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors" rel="nofollow noreferrer">attribute=value</a> css selector to target the input box and an id to target the go button. You might consider adding expected conditions and wait but seems to run fine without.</p> <pre><code>fro...
How to provide search input with python selenium liberary?
python|web-scraping|selenium-chromedriver
0
38
1
53,705,659
53,705,659
0
true
2018-12-10T12:07:48.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to provide search input with python selenium liberary?<p>from the following website, I want to provide a search input "3M" in "Type organization's name" ...
53,706,234
Overflow: content on left side is hiding on overflow is set to auto<p>I am trying to show a <a href="https://i.stack.imgur.com/CL8yT.png" rel="nofollow noreferrer">box of content</a> as same as in computer and mobile by using fixed width and overflow </p> <p><div class="snippet" data-lang="js" data-hide="false" data-c...
<p>You just chage this </p> <pre><code>.squad-table&gt;.col-12 { border: 2px solid var(--background); display: flex; justify-content: left; overflow-x: auto; } </code></pre> <p>Because its start center. You change position left.</p>
Overflow: content on left side is hiding on overflow is set to auto
html|css|flexbox|bootstrap-4|overflow
0
36
1
53,706,380
53,706,380
0
true
2018-12-10T13:00:31.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Overflow: content on left side is hiding on overflow is set to auto<p>I am trying to show a <a href="https://i.stack.imgur.com/CL8yT.png" rel="nofollow noref...
53,706,863
Python3 - print string and list<p>Is it possible to write the code below shorter, on one line?</p> <pre><code>print("Start line ", end="") print(*list, sep=", ", end="") print(" end of line.") </code></pre>
<p>You may try using a single <code>print</code> call, with the help of <code>join</code>:</p> <pre><code>list = ['one', 'two', 'three'] print("Start line [" + ", ".join(list) + "] end of line.", end="") Start line [one, two, three] end of line. </code></pre>
Python3 - print string and list
python-3.x
0
56
2
53,706,939
53,706,939
0
true
2018-12-10T13:38:30.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python3 - print string and list<p>Is it possible to write the code below shorter, on one line?</p> <pre><code>print("Start line ", end="") print(*list, sep=...