title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
JavaScript firebase "=>" in addEventListener
<p>I'm new to JS and Firebase so my question is probably very easy, but I couldn't find anything on the WEB that would answer my question.</p> <p>I'm working with the firebase tutorial available on youtube. The code I have to capture username and password and pass it to firebase looks like this:</p> <pre><code>btnLog...
2
1,289
custom_data parameter is not triggered in terraform script
<p>I am creating virtual machine in azure using terraform in which i am passing custom data parameter which should actually trigger a yaml file which does few installations. But it's not being triggered. Could you please advise on this issue.<code>enter code here</code></p> <h1>Controller VM</h1> <pre><code>resource ...
2
1,092
Issue launching Phantomjs Selenium Web Driver
<p>I'm using phantom.js driver for selenium in some java code. It's a large project so i'll only copy what I think is the relevant code.</p> <p>I had it working fine with the firefox driver.</p> <p>I instantiate it here: </p> <pre><code> Capabilities caps = new DesiredCapabilities(); ((DesiredCap...
2
1,571
.NET MVC2 custom subpage routes
<p>In searching I came across <a href="https://stackoverflow.com/questions/411054/asp-net-mvc-page-subpage-routing">ASP.NET MVC page/subpage routing</a> and the wildcard was somewhat of a lifesaver, but presented a new problem.</p> <p>Consider the following routes, if you will. The goal here is to have the index (<em>...
2
1,467
How to pass parameter a in the newElement.setAttribute in JavaScript
<p>I am using this code to generate the textbox dynamically by using the JavaScript. It's working fine. But my issue is all generated textboxes have the same name. Is there is possible to prefix the textbox count with the textbox' name so that it is easy to post the textbox values?</p> <pre><code>&lt;html&gt; &l...
2
1,066
How do I copy HTML source into clipboard?
<p>I have a segment of code I would like to copy and subsequently paste into an HTML reader (MS Word or Outlook). </p> <p>It should retain the HTML formatting, but not paste the HTML as text. </p> <p>I have three functions: </p> <pre><code>copyHTMLToClipboard(id:string): void { const fromHtml = this._eRef.nativ...
2
1,347
Unable to setup Google Play Services
<p>I have been stuck over a day to use the Google Play Service. This is a very bad procedure created by Google. Why it is that difficult?? I want to use Google Play Service in order to develop some apps which depends on the Map. I have been tried everything step by step, discussed on many sites but still unable to get ...
2
2,966
What is the practical difference between dynamic and T in C#
<p>I read about Type <code>dynamic</code> in C# 2010. (the corresponding <a href="http://msdn.microsoft.com/en-us/library/vstudio/dd264736.aspx" rel="noreferrer">msdn</a> entry)</p> <p>I am confused about the practical difference between <code>T</code> and <code>dynamic</code> while developing generic functions. My cu...
2
1,232
boost::qi::parse seems to cause compilation errors
<p>I'm trying to write a parser using Boost::Spirit, and I have the parser written and compiling. The problem is, when I try to compile the parsing function, the compiler throws out a bunch of template errors. Here's the Qi grammar:</p> <pre><code>template&lt;typename Iterator&gt; struct etf_parser : qi::grammar&lt;It...
2
4,307
How to prevent FAB from scrolling with CoordinateLayout in Android
<p>I've the below layout xml for my activity</p> <pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_p...
2
1,574
Servlets on Tomcat: Requested resource is not found
<p>I am on Mac OSX. This is my first Servlet. I have Tomcat 8.0.14 </p> <p>I have created a Servlet that simply takes three parameters via HTTP POST method. This is my Servlet: </p> <p><strong><em>HelloWorld.java:</em></strong></p> <pre><code>package com.hello.world; import javax.servlet.http.HttpServlet; import j...
2
2,660
How to INSERT DATA in CLOUDANT DATABASE from ANDROID APP
<p>I am working on a <strong>ANDROID APP</strong> which's database is <strong>CLOUDANT</strong> stored on <strong>IBM's</strong> cloud. Actually I am working on PERSONALITY INSIGHTS service of <strong>IBM</strong>. I want to store quiz data to <strong>CLOUDANT</strong> database of specific user. I have manually added 2...
2
1,399
Drawing irregular concentric circles using Google Maps
<p>I have a bit of a problem. I am trying to do the following using Javascript &amp; the Google Maps API v2: </p> <p><a href="http://www.flickr.com/photos/joshipoo/3888966064/" rel="nofollow noreferrer" title="myhurricane.net - Wind Radii Profile by Josh Delsman, on Flickr"><img src="https://farm3.static.flickr.com/25...
2
1,149
XML Literal with Linq statement
<p>I am going to be performing an XSLT transformation, transforming XML to an HTML table. It's tabular data, so that's why I'm not using div's. ;) </p> <p>Anyway, I need to repeat one part of the XSLT for the size of one of my collections. Here's a snippet of the code...</p> <pre><code>Dim styleSheet = &lt;?xml versi...
2
1,407
null is not an object in component state in react native
<p>I'm trying to implement <a href="https://www.npmjs.com/package/react-native-modal-datetime-picker" rel="nofollow noreferrer">react-native-modal-datetime-picker</a> in my app</p> <p><strong>Source code</strong></p> <pre><code>import React, { Component } from "react"; import { View, ScrollView, ...
2
1,401
How do i filter a range in another sheet with VBA without activating the sheet
<p>Good day,</p> <p>I am having problems with Set Ranges and it has been quite frustrating when using set ranges from non-active sheets. </p> <p>The problem is:</p> <p>I have a sheet called "Dashboard". In this sheet i have a Listbox that when selected will filter values (based on listbox.column value) on a Table in...
2
1,392
Drag and Drop large virtual files with IStream using VirtualFileDataObject
<p>I am successfully using <a href="http://blogs.msdn.com/b/delay/archive/2009/10/26/creating-something-from-nothing-developer-friendly-virtual-file-implementation-for-net.aspx" rel="nofollow noreferrer">VirtualFileDataObject code from Delay's blog</a>, but i want to avoid streaming the entire file into memory.</p> <p...
2
1,473
Monitor a folder and find if a file is open in windows app
<p><strong>Edit:</strong> So apparently there is <strong>no simple or convenient way of knowing if a file is open / being held by a process</strong>. I think this is a problem or design decision of Windows OS itself because even programs like Process Explorer can't tell when I have "mytext.txt" file is open in notepad ...
2
3,278
Browser keep a confusing cached version of angular app on root index.html hosted with azure app service
<p>We currently have 2 versions of our Angular application on Azure/App services to support internalization.</p> <p>There are hosted in the same place but on different folders <strong>/en</strong> and <strong>/fr</strong>. Our folders tree looks like this </p> <pre><code>-&gt; wwwroot/index.html wwwroot/web.config w...
2
2,578
Outlook newsletter background image and text
<p>I'm having some difficulties adding text and a background image to a TD in a newsletter, below the code I've used to display them. The background is visible, but the text is not being displayed.</p> <pre><code> {if !empty($aModules.mkNews)} {foreach name=mkNews from=$aModules.mkNews item=mkNews} ...
2
1,117
Gridview Edit Bootstrap Modal Dialog populating first row only
<p>I have a gridview with template column for edit button, which opens a bootstrap modal dialog with data populated without a postback.</p> <p>Here's the Gridview :</p> <pre><code>&lt;asp:GridView ID="gvLocAddresses" runat="server" CssClass="table table-bordered table-striped table-condensed" GridLine...
2
1,693
Calendar Controls, Event Handler for Load Event
<p>I have been working on this for quite a while now. My code will show all the different ways and things that I have tried to get the problem fixed, but with no luck...so far. What I need to do is:</p> <ol> <li>Start an event handler for the Load event of the form. Then add code to display the current date in the for...
2
2,110
Calling Classic ASP from ASP.NET MVC5 Controller on the same server
<p>I am migrating an old classic asp project over to ASP.NET, but as it is such a big old thing I am doing it in pieces. So I am at a stage where I need them to work together. The files for both classic asp and .NET are all in the same project. The old classic asp project uses Session variables (the new .NET project do...
2
1,819
Abstracting EntityFramework.dll reference using Repository/UoW/DI
<p>I've been researching best practice for a new project when using EF (5.0 Beta Code First) as my ORM/DAL. Key considerations are testability, loosely coupled design and unit of work/transactional support across repositories.</p> <p>I understand that within EF DbContext is UoW and DbSet is Repository and in a service...
2
1,051
AWS Lambda: Redis ElastiCache connection timeout error
<p>I have a lambda function using Node 12.</p> <p>I need to add a new connection to a Redis database hosted in AWS ElastiCache.</p> <p>Both are in one private VPC and the security groups/subnets are configured properly.</p> <p><strong>Solution:</strong></p> <p>globals.js:</p> <pre><code>const redis = require('redis'); ...
2
1,137
Phonegap - displaying Image from external url
<p><strong>EDIT:</strong> The browser, both on my laptop and even when I open the address via my phone's Chrome, it works fine. Only when I connect it with the Phonegap client app from my phone it behaves like that.</p> <p>I've created a basic template with the Phonegap desktop application. When I try to display an im...
2
4,604
Visual C++ with included OpenCV 2.4.9 compile error
<p>I am trying to write a code to display a video from camera on a windows form in Visual Studio 2010 environment. Here below is my code:</p> <pre><code>#pragma once #include &lt;opencv\cv.h&gt; #include &lt;opencv\highgui.h&gt; extern CvCapture* cam; extern IplImage* image,*image_copy; static CvMemStorage* storage...
2
2,162
Problem in storing value in database (cakePHP)
<p>I have a checkbox named required,where if the checkbox is clicked its value is 1,otherwise its 0. The value is correctly passed form the view file to the controller. The model file gets the value from the controller, but the value is not being saved.</p> <p>I echoed the required value in the model,to check if the v...
2
2,088
Homework: Counting number of times an item occurs in a linked list
<p>Here's the assignment: Implement a method <code>countValue()</code> that counts the number of times an item occurs in a linked list. Remember to use the STL list.</p> <pre class="lang-cpp prettyprint-override"><code>int countValue(list&lt;int&gt; front, const int item); </code></pre> <p>Generate 20 random numbers ...
2
1,353
Plotly to pdf report
<p>I'd like to add a plotly plot to a pdf file. This should be done locally (without plotly_IMAGE). Unfortunately I do not have access to webshot (since I do not have the rights to install PhantomJS). Therefore I tried a workaround described here: <a href="https://github.com/ropensci/plotly/issues/311" rel="noreferrer"...
2
1,194
Why would my IFRAME not fit its container DIV one to one?
<p>I create a popup using jQuery and when the popup includes a path, I include an IFRAME as the content of the popup. The code resizes the IFRAME to take the whole available space in the parent DIV of that IFRAME tag.</p> <p>The relevant code looks like this:</p> <pre><code>jQuery("&lt;div class='snap-popup' id='" ...
2
1,125
java.lang.IllegalStateException: Cannot find any build directories
<p>I want to run spark master and worker in Intellij. I have started the spark master and worker successfully. The worker is also connected to master without any problem. I can confirm this by looking at logs and spark web UI. But the problem starts when I try to run any application on this setup. currently, I am tryi...
2
4,335
SQL query return null results yet there are values in the database
<p>I am creating a certain report that requires joining two tables and creating a sub queries. Below is the code</p> <pre><code>WITH temp_ticket_rows (client_id, last_name,first_name, pet_name) AS ( SELECT C.fldClientID, C.fldLastName, C.fldFirstName, P.fldName FROM [OneTwoThreePet]....
2
1,447
hadoop: reduce happened between flush map output and finish spill before maps done
<p>I'm new to hadoop, and i'm trying the examples wordcount/secondsort in src/examples.</p> <p>wordcount test environment:</p> <p>input:</p> <p>file01.txt</p> <p>file02.txt</p> <p>secondsort test environment:</p> <p>input:</p> <p>sample01.txt</p> <p>sample02.txt</p> <p>Which means both the two test would have ...
2
3,569
FFMPEG :Adjusting PTS and DTS of encoded packets with real timestamps information
<p>I am trying to record a video of activities in desktop using muxing in FFMPEG Library. I referred following link for my implementation. <a href="https://ffmpeg.org/doxygen/trunk/muxing_8c_source.html" rel="nofollow noreferrer">https://ffmpeg.org/doxygen/trunk/muxing_8c_source.html</a></p> <p>I observe that the encod...
2
1,203
Exporting crystal report to pdf
<p>I want to know about how to export crystal report with 4 parameters by code. and i tried the following code and "invalid index error' is returned.</p> <pre><code>Dim crParameterFieldDefinitions As ParameterFieldDefinitions Dim crParameterFieldDefinition As ParameterFieldDefinition Dim crParameterVa...
2
1,799
Chrome bug: Grey border showing up in chrome on page load?
<p>I am noticing when i first load the page, I am noticing a grey border at the bottom of the chrome. It only happens when i open the browser after clearing all the cache. it does not happen when a 2nd tab is opened for the same page</p> <p>Can any show me how to fix this and what could be causing this? I am attaching...
2
5,022
How to Create a Multiple Choice Android List View with result gotten from Mysql database using PHP?
<p>i have gone through numerous ariticles both on google and here at stack overflow,but i can't seem to find a solution to my problem.The code fragment i'm about to place below is a tutorial i studied and decided to expand it.I have tried converting the listview to a multiple choice listview,but can't seem to go around...
2
4,102
Behavior of relative URIs in XML when declaration source is parameter entity replacement text
<p>I’m trying to understand the correct behavior of relative system ID URIs. First, let me quote the spec:</p> <blockquote> <p>4.2.2 External Entities</p> <p>[...]</p> <p>[The location of the resource within which the entity declaration occurs] is defined to be the external entity containing the '&lt;' whi...
2
1,285
Set buttons at the rightmost part of the page
<p>Sorry if this is such a simple question but I'm really having a hard time when it comes to CSS and stuff like that.</p> <p>So my question is how to put these two buttons at the rightmost part. Just that.</p> <p>Here is my code:</p> <pre><code>echo "&lt;div class='container table-responsive'&gt; ...
2
1,848
How to stop a thread after it has completed the runnable?
<p>I have a list of tasks and a limited number of threads. The goal is to time how long the tasks take to finish using this number of threads. </p> <p>I know something is wrong with the way I am using threads and <code>Runnable</code> object. I am new to them and can't seem to figure out how to fix it. </p> <p>It ...
2
1,281
Logback couldn't log asian characters correcly to files
<p>My Logback logs are displaying a lot of things like</p> <p>黄嘉皓</p> <p>in the log files whenever it encounters asian characters. It seems like the file is in unicode instead of UTF-8.</p> <p>This is my Logback groovy config</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-co...
2
1,074
nativescript-background-http file uploading to s3
<p>Based on <a href="https://stackoverflow.com/questions/37388774/nativescript-camera-takepicture-and-upload-with-nativescript-background-http">NativeScript: Camera takePicture and upload with nativescript-background-http</a></p> <p>I am trying to write a class to take care of file uploading to s3 for me.</p> <p>My u...
2
2,506
Preselect an option for form > select element based on button clicked?
<p>I have a page which displays several products and each of them have their own "Buy Now" button, however, each button leads to the same contact form (on the same page).</p> <p>The contact form has a <code>&lt;select&gt;</code> element which has the dropdown options of selecting one of the product. Would it be possib...
2
1,237
How to write a custom feeder for gatling json?
<p>I have a <code>jsonurl</code> which I want to read and it looks like this:</p> <pre><code>&gt; { &gt; "elements": [ &gt; { &gt; "box": { &gt; "x": 0, &gt; "y": 0, &gt; "width": 186, &gt; "height": 10.526316 &gt; }, &gt; "type": "Header" &gt; ...
2
2,265
How to retrieve multiple values from servlet in jsp using AJAX
<p>I have this <code>ajax</code> javascript code that calls a <code>servlet</code> to retrieve two values (firstname, telephone). I know how to get a single value but not multiple values from the servlet.</p> <p>Here's my <code>ajax</code></p> <pre><code> &lt;script&gt; function getCustomerDetailsAjax(str)...
2
1,256
ASP.NET 4.0 webforms routing within master page
<p>I just want to asked if there's a workaround in url routing using masterpage. I put the links in my masterpage (i.e. first link is a href="Bookstore/CSS" and the other link is a href="tools/toolx") if i click the first link it redirect me to the correct url which is localhost:2039/Bookstore/but if i click the next l...
2
1,045
Writing to BigQuery from Cloud Dataflow: Unable to create a side-input view from input
<p>I'm trying to write a datastore flow that reads in a stream for pub sub and writes in into big query.</p> <p>When trying to run the tool I get the error " Unable to create a side-input view from input" with the stack trace:</p> <pre><code>Exception in thread "main" java.lang.IllegalStateException: Unable to create...
2
1,976
Resize image from +1mb taken from camera intent to <=150k Android
<p>I am trying to reduce the size of picture taken from camera and gallery (1+mb to 150k. both). </p> <ol> <li><p>code to take photo:</p> <pre><code>Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); //intent.putExtra("crop", "true"); intent.putExtra("outputX", 50); intent.putExtra("outputY", 50); inten...
2
2,041
Error loading ggplot2 in RStudio
<p>I saw a version of this question posted, but still did not see the answer. I am trying to use ggplot2 but get the following errors</p> <pre><code>Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘stringi’ Error: package or namespace load failed for ‘ggplot2’...
2
1,058
Getting exception in getDatabase called recursively in android
<p>I am trying to implement DBHelper in android for my project here how i implemented it I want to do is , On runtime decide which database you want to create for this i implemented class <code>abstract class SQLiteDBService</code> extends <code>SQLiteOpenHelper</code> which is inherited by two classes <code>LocalSQLit...
2
5,179
Django: SQL Injection - Use subquery in raw query
<p>I'm getting an error when I try to pass a non-executed query string into a raw query, using the <strong>params</strong> argument that <a href="https://docs.djangoproject.com/en/2.0/topics/db/sql/#passing-parameters-into-raw" rel="nofollow noreferrer">Django recommends</a>, to use as a subquery:</p> <pre><code>from ...
2
1,240
on editing file upload field is blank
<p>I am using cakephp 2x. I have a problem in my edit page image upload field. Everytime when i try to edit my profile page , it shows image upload field blank.Other fields information are remains same as fill in the add form of profile but the image field is not enable to retrieve stored image. I am new to cakephp,i...
2
1,659
Multiprocessing Pool Hangs After Processing (on close or join)
<p>My main method (which is properly protected from being run when importing) looks like this: </p> <pre><code>def main(): json_file, csv_out = get_user_input() sessions = get_sessions(json_file) if sessions: pool = multiprocessing.Pool() pool.map_async(process_one_item, sessions, 1) ...
2
4,776
How to create a table relation in Orchard?
<p>I want the MachineRecord to contain a GroupRecord Id, like the following:</p> <p><strong>MachineRecord</strong></p> <p>Id<br> Name<br> Number<br> GroupRecord </p> <p><strong>GroupRecord</strong></p> <p>Id<br> Name</p> <p>What I have tried:</p> <p>I have tried to make the property in the model a<br> <code>publ...
2
2,576
Oracle SQL Count Children and Parents by Date and ID
<p><strong>Background:</strong> I need a way to count the number of records that we will be running through our Archive process. The query I have below what I have come up with but I feel like there has to be a better way (Takes about 20minutes to run for the last 90 days)</p> <p><strong>The Query</strong>: We have a ...
2
1,375
Create any PrivateKey instance (RSA or DSA or EC) from PKCS8 encoded data
<p>I have an unencrypted PKCS8 encoded file that represents a Private Key. It can be any of these private key types - RSA, DSA or EC. I viewed these files in an ASN1 decoder (<a href="https://lapo.it/asn1js/" rel="noreferrer">https://lapo.it/asn1js/</a>) and I could see the type (RSA, DSA or EC) in the data.</p> <p>Is...
2
2,740
Problem with Week Numbers between dates on New Year
<h2>Problem</h2> <p>The following [mcve] will output an array of arrays of week numbers between two dates. It works when both dates are on the same year, however, some years have 52 weeks and start within the last days of the last year. And others have 53 weeks.</p> <p>An example of 52 weeks is the <a href="http://we...
2
1,210
highcharts not refreshing chart when page refreshes
<p>i have created a highchart and data i took it from csv file.The chart is working good and plotting fine.But my problem is when the page refreshes it is not taking the latest value from the csv file.It still displays the old chart.when i close the browser and re-open the chart works fine.Please help me how to reset/r...
2
1,446
Adding a layer to PDF containing layers with PdfStamper flattens existing layers
<p>I create PDF files for print containing a non-printable background layer of the stationery, so it will look the same printed and on screen. </p> <p><a href="https://i.stack.imgur.com/SOyPB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SOyPB.png" alt="enter image description here"></a></p> <p>E...
2
2,752
How to put Loader image in Jqplot charts untill the data is fetched completely and then show chart?
<p>i am using <a href="http://www.jqplot.com/tests/" rel="nofollow">jqplot</a> chart in my jsp page now there is more then 6 charts am showing in my one jsp page</p> <ul> <li>My problem is for each chart there is a ajax request which request the data from database and fetch the result and show in chart...it takes so...
2
5,414
Py4j launch_gateway not connecting properly
<p>I am trying to use py4j to open up a gateway that I can use to pass objects from java into python. When I try to open a gateway with the py4j function <a href="https://www.py4j.org/py4j_java_gateway.html#py4j.java_gateway.launch_gateway" rel="nofollow noreferrer"><code>launch_gateway</code></a> it does not seem to p...
2
1,982
How to mock Grpc Clients inside GRPC server implementation
<p>I have a GRPC server that is talking to many other GRPC servers. So, my server is client for many other GRPC servers I would like to test my server implementation but I'm stuck on how to mock the GRPC clients.</p> <p>I have a method from my GRPC server like this:</p> <pre class="lang-golang prettyprint-override"><...
2
1,352
how to call camunda rest api from angularJs 1.5.0 and provide basic authentication
<p>I am new bee to camunda and angular. I want to access a camunda Rest api service in my angular application. and want to provide basic authentication on login..i try with different approach.but fail got CORS error,401 404 unauthorized errors<br> this is a call</p> <pre><code> $http.post('http://192.168.100.107:8080/...
2
1,093
Zero width space in XSL gives stackoverflow error
<p>I'm using FOP 1.1, i've a text which can contain upto 20,000 characters and since there was text which didn't contain any spaces in between have modified the xsl to use the zero width space. It works fine if the xml tag contains around 1500 characters, if it is more than that i'm getting stack overflow error. Heap S...
2
1,914
can't find version.pm while trying to install DBD-Pg-2.19.3 on Centos-7
<p>On Centos 7. </p> <p>The oracle DBD installed just fine I am having a problem with the Postgresql version. </p> <p>This is the script I am running:</p> <pre><code>set -x -e sudo yum -y install perl-devel sudo yum -y install perl-DBI cp ./DBD* /tmp pushd /tmp tar xvf DBD-Oracle-1.52.tar tar xvf DBD-Pg-2.19.3.ta...
2
1,633
How do you get a VPC Endpoint to work in a Docker container?
<p>I'm not able to get the AWS CLI to download a text file from S3 in a Docker container. There is a VPC setup with a VPC Endpoint approved on the S3 policy:</p> <pre><code>{ "Version": "2012-10-17", "Statement": [ { "Sid": "DenyUnEncryptedObjectUploads", "Effect": "Deny", "Principal": "*", ...
2
1,675
Rails ajax update, no route matches [POST]
<p>I have an app with the models Game, Ownedsq, and User, and I am trying to update a square's :user_id within a game. I have been trying this for hours now, I believe the model relationships are correct and I am just missing something small so I appreciate any help.</p> <p>Clicking on the update ownedsq button on a p...
2
1,088
right navigation bar bootstrap does not collapse
<p>I am using Bootstrap 3, i am using top navigation bar and left side navigation bar, i want that it should work fine for mobile also, when i collapse the page from right to left then my top navigation works fine and both buttons appears but my left side navigation does not disappear, it appears and disappear on butto...
2
1,748
How do I get the files names from FileInfo[]?
<p>I have this code:</p> <pre><code>_fi = new DirectoryInfo (subDirectoryName).GetFiles(&quot;*.bmp&quot;); label15.Text = _fi.Length.ToString(); for (int i = 0; i &lt; myNumbers.Count; i++) { if (myNumbers[i] &gt;= max_min_threshold) { FileName = i.ToString(&quot;D6&quot;) + &quot;.bmp&quot;; i...
2
4,169
Couldn't use members from imported packages (Flutter)
<p>When trying to add 'http' and 'async' libraries to my project, it looks like the import was made right, but I cannot use the classes from imported packages.</p> <pre><code>import 'package:flutter/material.dart'; import 'package:http/http.dart'; import 'package:async/async.dart'; </code></pre> <p>My code is: </p...
2
1,629
why can't I pipe output from both execl calls?
<p>Possible duplicates:</p> <ul> <li><a href="https://stackoverflow.com/questions/12596839/how-to-call-execl-in-c-with-the-proper-arguments">How to call execl() in C with the proper arguments?</a></li> <li><a href="https://stackoverflow.com/questions/7292642/grabbing-output-from-exec">Grabbing output from exec</a></li...
2
1,760
enable and disable firebase notification using switch buttons
<p>Enable and disable the firebase notification using switch buttons.? i used php code for backend to take the fcm token and place it in the database(phpmyadmin).Then i generate a push notification to the app. The notification coming correctly but i can't stop it. i want to enable and disable the notification with swit...
2
1,210
Serial data over UART gets corrupted
<p>I'm developing an application for a development board (Beagle Bone Black) that will send some data over <code>UART</code> peripheral. The developing board runs <code>Linux Kernel</code> (some Debian distribution, <code>3.8.x</code> Linux Kernel version).</p> <p>For sending and receiving data over <code>UART</code> ...
2
1,568
Rails forms: updating collection_select options based on other collection_select value using AJAX
<p>I'm just starting to learn Rails and I get along quite well with the built-in tools, Javascript and AJAX however are very new to me. Here's the problem:</p> <p>I have an order form. Every order belongs to a contact and can have a different billing and shipping address. collection_select boxes are used to set these ...
2
1,136
React Native - Filter native base Picker Item based on condition
<p>I want to skip a specific account from picker item , So i have passed the account to be skipped into the child component from parent , But its generating error saying</p> <pre><code> error occured:TypeError: TypeError: TypeError: second argument to Function.prototype.apply must be an Array-like object (evaluating '...
2
1,782
While Cassandra compaction Fatal exception in thread CompactionExecutor
<ol> <li><p>I am having cassandra cluster of 12 nodes on EC2 running cassandra-0.8.2. While compaction I got the following exception which caused Seed node to get down.</p></li> <li><p>Below is the exception stack trace.</p></li> </ol> <blockquote> <p>ERROR [CompactionExecutor:31] 2011-12-16 08:06:02,308 AbstractCas...
2
1,338
C# Wpf toolkit autocomplebox - how to get the selected item?
<p>I'm trying to access selected item from the wpf toolkit autoCompleBox (the one from codeplex) but i keep getting the null reference error.</p> <p>I have really hit a brick wall with this!</p> <p>here is my XAML:</p> <pre><code> &lt;my:AutoCompleteBox x:Name="autoTxtBoxProductCode" VerticalAlignment=...
2
1,141
Change Active Directory password using Kerberos Change-Password protocol and .NET Core 3
<p>It is possible to change password of AD user using LDAP protocol. However, if the user has to change his password at next logon (or the password is expired), then the password cannot be changed unless by using admin credentials. I was able to solve this issue <a href="https://stackoverflow.com/a/51511518/597657">in ...
2
1,651
Cascade issue when deleting an entity in a one-to-one relationship using Fluent NHibernate
<p>I have the following db tables which I have simplified for this example:</p> <p><strong>Webpage</strong> Id, URLIdentifier</p> <p><strong>WebpageMetaData</strong> Webpage_id Keywords</p> <p>Webpage_id is the primary key for the table and a foriegn key back to the webpage table.</p> <p>I am then using Fluent NHib...
2
1,835
Masonry is leaving several gaps
<p>I have checked all the posts concerning this topic, but none of the solutions worked for me.</p> <p>This is what my grid looks like:</p> <p><a href="https://i.stack.imgur.com/ybufk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ybufk.png" alt="enter image description here"></a></p> <p>Here is ...
2
1,794
Start/stop a while loop?
<p>I'm trying to write a program that makes a list of all .xml files in a folder, then copies them to another directory and deletes from the original directory. This part of the program works fine. I want to make it so that I can click a button in the GUI and have it scan and process folders until I press a button to t...
2
2,445
Bulma Navbar-burger not collapsing the navbar item data
<p>Hi i am a newbie in vuejs, Buefy. I wanted to add navigation bar. Navigation Bar works in the desktop however when view it in mobile responsive when the burger click doesn't show anything. the navbar item not collapsible. can anyone help me? Thank you.</p> <p>Here is my code.</p> <pre><code>&lt;template&gt; &lt;di...
2
2,123
com.mysql.jdbc.Driver fails to compile for JSP
<p>I am trying to make a logIn system with JSP and connect to a MySQL database, and get the following error: <img src="https://i.stack.imgur.com/GZkfa.png" alt="Error message"></p> <p>My code:</p> <pre><code>&lt;%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="com.core.bibit...
2
2,056
GRID is not properly rendered in ExtJS 4 by using Store
<p>Here is the Src code for HTML file</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4 /strict.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;MVC Architecture&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="/bh/extjs/resources/css/ext-all.css" /&gt; &lt;scr...
2
1,162
SQL One to many relationships, duplicate/results being returned as unique rows
<p>I have a database and some of the tables have one to many relationships. How do I eliminate the results being returned as its own unique row?</p> <p>For instance I have a initiative table and a initiative can have many funding requirements. When I perform an inner join I'm getting the results but it looks like the ...
2
1,041
Detecting touches on mkoverlay
<p>I'm drawing overlays based on directions. I draw from route a to route b and then route b to route c.</p> <p>I would like to detect if the overlay is tapped anywhere on mkoverlay.</p> <p>I used this example <a href="https://stackoverflow.com/questions/20858108/detecting-touches-on-mkoverlay-in-ios7-mkoverlayrender...
2
1,104
Accelerometer based movement
<p>Now woking on game that uses accelerometer to move player sprite left and right. I used this tutorial: <a href="http://www.cocos2d-iphone.org/wiki/doku.php/tips:using_accelerometer_for_sprite_movement" rel="nofollow noreferrer">COCOS2D_ACCELEROMETER_MOVEMENT</a> This works only sometime….some time not move..How can ...
2
1,163
Error Sliding Menu
<p>I create a Sliding Menu, but the log shows me the mesage:</p> <pre><code> 08-13 18:19:08.064: E/AndroidRuntime(755): FATAL EXCEPTION: main 08-13 18:19:08.064: E/AndroidRuntime(755): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testeslidingmenuagvdnc/com.example.testeslidingmenuagvd...
2
4,284
SurfaceView onDraw, at times doesn't refresh itself before draw... why?
<p>I have a simple onDraw method as below (in 'SurfaceView'), where the 'startCount' will go from 1 to 360, the filled circle get drawn.</p> <pre><code>@Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); //canvas.drawColor(0xFFEEEEEE); if (startCount == 360) startCount= 0; canvas.dr...
2
2,567
Test Webservice Method in Visual Studio: why does it say runs successfully without running the test and test fails?
<p>I have created the default webservice asmx hello world :</p> <pre><code>namespace WebServiceHello { /// &lt;summary&gt; /// Summary description for Service1 /// &lt;/summary&gt; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [Sys...
2
2,044
KSOAP2 with array response parsing
<p>I have problem when parsing ksoap response.</p> <p><strong>Request Dump:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:server" xmlns:xsd=...
2
1,948
DataTables: Ordering by Epoch Time
<p>How can I sort the dates in my datatable, which is initialized from HTML data in the DOM? My dates are epoch timestamps which I use moment.js to display as desired (example: July 17, 2017).</p> <p>I should note that using either the <strong>data-order</strong> or <strong>data-sort</strong> attr does not work (as de...
2
1,292
Inputs and Outputs of the Geometry Shader
<p>I was wondering if anyone would be so kind as to pin-point the problem with my program. I am certain the setback has something to do with the way in which data is passed through the GS. If, for instance, the geometry shader is taken out of the code (modifying the other two stages to accommodate for the change as wel...
2
2,076
Security header is not valid omnipay
<p>I 'm trying to implement paypal payment with laravel into my website. I used <code>omnipay</code> laravel package and now <strong>I'm working with sandbox</strong> for testing. I verified I configured my request like this:</p> <pre><code>$gateway = Omnipay::create('PayPal_Express'); $gateway-&gt;setUsername('my_u...
2
1,033
How do i include ajax in PHP coding to display data in the same page
<p>I want to display data retrieved from the table in the same page. I know if i use ajax, work becomes easier. But how do i do it? I don't know anything about ajax. My current program is combined with html and php. The program is below. All i want is, when i click the button, the requested action and the data must be ...
2
1,343
Unable To Display Multiple jPicker Color Pickers On the Same Page
<p>I am having difficulty getting multiple jPicker instances of the same type to display on the same web page. Here's some sample code:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/x...
2
1,235
Flapdoodle Embedded Mongo process won't start
<p>I'm trying to have an Embedded Mongo instance run while performing my unit tests. I am using the flapdoodle embedded mongo package to achieve this, but getting an error while attempting to start the tests.</p> <p>My build.gradle dependencies:</p> <pre><code>dependencies { implementation 'org.springframework.boot...
2
1,526
If Then Statement with dates
<p>I am programming a command button so that it may give me the assets that were sold between two dates.</p> <p><strong>A run time error 13: mismatch</strong> currently appears when i run the code. </p> <p>I changed the <code>If Then</code> statement but i still get the same error. Below is an example of what i am t...
2
1,066
App/Scaffold white background changing issue in Jetpack Compose
<p>Can anyone please point me out how to change this white background color of the app? Setting a color or background color on the Surface is having no impact. I've set the cyan background for the content inside the Scaffold just to debug the issue.</p> <p><img src="https://i.stack.imgur.com/LBsz3.jpg" width="300"></p>...
2
1,439