title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
ItemsControl Not Virtualizing | <p>I cannot get this <code>ItemsControl</code> to virtualize properly. Debugging shows that the collection is initialized quickly, but all the items are being added to the control instead of a subset (I simply put a TracePoint in the TextBox_Initialize<code>event in the</code>UserControl` that makes up the item).</p>
... | 2 | 3,419 |
java.lang.IllegalStateException: Content view not yet created | <p>The "<strong>mMatchAdapter</strong>" is initialize at onCreate, but it is null in "<strong>setCursor</strong>", why?
This ListFragment is a tab of a tabHost, I use it to display list. I want change adapter in setCursor to display other list, but occur an error at line <code>mMatchAdapter.changeCursor(c);</code>
beca... | 2 | 1,823 |
Get the current user after completing custom registration for MVC4 application | <p>I have an mvc4 forms application that uses the simple membership OOTB account controller. I have a view model for the application where I was successfully able to retrieve the username after completing registration as follows:</p>
<pre><code>this.UserName = HttpContext.Current.User.Identity.Name;
</code></pre>
<p>... | 2 | 2,676 |
Matplotlib Sankey labels and values | <p>I'm working on a Sankey diagram and I'm experiencing some issues with the labeling process. Is there a way to put the labels and the values of each flow on the same line? I would like them to look like this: "Label: value".</p>
<p>Here are the code and the resulting diagram. </p>
<pre class="lang-py prettyprint-ov... | 2 | 1,059 |
Scroll view with two buttons at the bottom of the layout | <p>I want to create a layout which will have a scrollview, inside the srollview at the top of the layout there will be two Textviews. In the center there will be two Edittexts and at the bottom of the layout, there will be two buttons. <strong>But everything will be under the main scrollview</strong>. </p>
<p><strong>... | 2 | 2,246 |
How to bind multiple query results in angularfire2 with firestore? | <p>I would like to use a collection to maintain relation between some documents as proposed <a href="https://stackoverflow.com/a/46780459/1139170">here</a> (but slightly modified approach). I have chosen collection approach because it seems more scalable that document properties over time.</p>
<p>My actual data scruct... | 2 | 1,077 |
task scheduler in win 2008 won't run vbs script | <p>I have a batch file which call a vbs script as following: </p>
<pre><code>cd d:
cd D:\Application\Pentasafe\HKPentasafe\DailyLog\Deployment Code
cscript CommandProcessing.vbs
del /s "D:\Application\Pentasafe\HKPentasafe\DailyLog\Command Usage by Command\Tempworkspace\*.txt"
</code></pre>
<p>This bat... | 2 | 1,091 |
What's the meaning of the output of cv2.calcHist? | <p>I'm using the function <code>cv2.calcHist</code> and using all the channels of RGB with:</p>
<p><code>hist1 = cv2.calcHist([image1], [0, 1, 2], None, [8, 8, 8],[0, 256, 0, 256, 0, 256])</code></p>
<p>I can't understand the output of this function... Can someone please help understand?</p>
<pre><code>import PIL
i... | 2 | 5,308 |
Producer/Consumer, Stream buffer problem | <p>I'm trying to write a buffermanager that manages 3 Streams. The typical usage would be with a slow producer and a fast consumer. The idea behind the three buffers is that the producer ALWAYS has a buffer to write in and the consumer ALWAYS gets the latest data produced.</p>
<p>Now i already have this, and it sort-o... | 2 | 1,581 |
Attempted import error, failed to compile react app | <p>I am getting the following error and would love it if someone could point me in the right direction :)
I've tried different ways but nothing works.</p>
<blockquote>
<p>Failed to compile
./src/App.jsx
Attempted import error: 'eval' is not exported from 'mathjs' (imported as 'math').</p>
</blockquote>
<p><div ... | 2 | 1,358 |
Parameter value is null in xsl template | <p>I am calling a template as below:</p>
<pre><code><select class="inline" name="time-of-trip-begin-hour" id="time-of-trip-begin-hour">
<xsl:call-template name="createDropDown">
<xsl:with-param name="count" select="23" />
<xsl:with-param name... | 2 | 1,414 |
How to set Title for OpenFolderDialog in an Avalonia application? | <p>I'm working with <code>OpenFileDialog</code>, <code>SaveFileDialog</code> and <code>OpenFolderDialog</code> in an Avalonia application.<br>
One requirement is to set the title to a certain string.<br>
I achieved this for <code>OpenFileDialog</code> and <code>SaveFileDialog</code> but <strong>not</strong> for <code>O... | 2 | 2,706 |
Request method 'POST' not supported after session expires | <p>I am running an Spring MVC web application with Spring Security. Whenever I submit/refresh a page after the session expired (with <code>POST</code>) I am getting: </p>
<blockquote>
<p>Request method 'POST' not supported</p>
</blockquote>
<p>Here is the error log. If I disable CSRF in the Spring Security then it ... | 2 | 3,293 |
Python - Threading and Json combine | <p>So currently im trying to get a function right. Basically im trying to do a multiple (Concurrently) thread that takes information from a Json file into the program and then for every thread it should use each json object and then execute the code with those information.</p>
<p><em>What I have done so far:</em> </p>... | 2 | 2,624 |
Django:How can I prevent authenticated user from both register and login page in Django-registration-redux | <p>I am currently using <strong>Django-registration-redux</strong> for my authentication system.
Already logged in user can visit the login and registration page again; which is not good enough. How can I prevent them from this since the views.py comes by default in <strong>Django-registration-redux</strong>
I think th... | 2 | 2,337 |
Primefaces Growl onclose event? | <p>Is there any way to detect when the growl dialog has been closed, and act on that event?</p>
<p>No ajax events are listed for growl in the PrimeFaces userguide, nor are there any onclose or oncomplete javascript handler attributes.</p>
<p>The reason I need this, is that i use a poller which is deactivated when a d... | 2 | 2,796 |
CSS selector which takes all label.control-label except from form with class .floating-labels | <p>I have this piece of code:</p>
<pre><code>label.control-label{
font-weight: bold;
}
label.control-label::after{
content: ":";
}
</code></pre>
<p>Which makes <a href="https://bootswatch.com/paper/" rel="nofollow" title="Bootswatch Paper">Bootswatch Paper's</a> labels for input bold and adds <code>:</code> a... | 2 | 1,284 |
How to copy email in sent folder? | <p>I am using java mail api for sending mail.In that for sending email i configured yahoo smtp port.I am able to send mail from yahoo account but sent mail is not saving in sent item.For incoming service i configured imap yahoo server.</p>
<p><strong>service:</strong></p>
<pre><code> @Component
public class SmtpM... | 2 | 1,277 |
How can display two buttons dynamically based on an if condition in flutter | <p>I am new to flutter and I am having a difficult challenge to perform two if conditions. All I want to achieve is to perform an if statement on two boolean conditions in the the array below. I want to check if Success == true && Stock['Submitted'] == true, then its should display a button labelled "Valid... | 2 | 5,335 |
Why does the SearchView appear twice on the toolbar/actionbar? | <p>In the following SSCCE, the <code>SearchView</code> appears <strong>twice</strong> on the <code>Toolbar</code>/<code>ActionBar</code>. <strong>The question is why!</strong></p>
<p><a href="https://i.stack.imgur.com/qUCYt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qUCYt.png" alt="enter image ... | 2 | 2,255 |
ErrorException [ Notice ]: Undefined property: Model_Album::$db | <p>I'm trying to do a simple <code>MVC</code> interface using Kohana framework 3.3.</p>
<p>I've modified the bootstrap to:</p>
<pre><code>'controller' => 'Album',
'action' => 'index',
</code></pre>
<p>album controller:</p>
<pre><code><?php defined('SYSPATH') OR die('No direct access allowed.');
class ... | 2 | 3,984 |
Calling this.scene.restart() in Phaser 3 TypeError: this.body is undefined | <p>I'm trying to restart the game scene in Phaser 3, and when calling this.scene.restart I get an error saying "this.body is undefined" at setVelocityX in the phaser.js script (line 169442 in the unminified script if that helps)</p>
<p>I am using the latest version of Phaser, v3.19.0.
The hitEnemy function is called w... | 2 | 4,730 |
CORS XSL with Chrome | <p>Short:</p>
<p><strong>XSLT is applied to an XML and I want to load another XML using <code>document(http://...)</code>, from another domain than the XSL and the original XML. I added CORS headers to the server and it works on Firefox, not on Chrome. Why, and how to fix that?</strong></p>
<hr>
<p>Complete case:</p... | 2 | 2,517 |
Rendering transparent objects | <p>I am trying to make a glass plane by adjusting the translucency of the object with alpha values. Currently, it is a black plane as my alpha values have no effect on my objects. Please have a look at the image:</p>
<p><img src="https://i.stack.imgur.com/d19ir.png" alt="current state"></p>
<p><code>glEnable(GL_BLEND... | 2 | 8,615 |
WP wp_update_user($userdata) Error | <p>I am working with WordPress 3.9 and Woocommerce in <code>templates/../my-account.php</code>. I did not like the default my-account page and wanted the user to be able to edit specific settings so I set it up so the user can change their username, email, or password. That was the goal at least haha.</p>
<p>In the de... | 2 | 2,568 |
Raw javascript date to VB.net datetime | <p>I have a javascript AJAX call passing a javascript date object to an ASP.Net MVC controller.
Here is the AJAX call:</p>
<pre><code> var timestamp = new Date();
$.ajax({
url: '',
type: 'POST',
data: { username: username,
timestamp: timestamp,
hash: ''},
dataType: 'json',
</... | 2 | 1,657 |
Golang code running really slow than same code in PHP | <p>New to Golang, Yesterday I've started to play with Golang and wrote some code which was actually written in PHP. I just wanted to see difference in performance.</p>
<p>I am doing the exact same thing in PHP response is exact same in http request but the Golang is performing really slow even after compiling it.</p>
<... | 2 | 3,224 |
Flutter ScrollController not working under StreamBuilder with ConnectionState condition | <p>I'm new with flutter & just learned how to retrieve data from firestore & did some UI. Right now I have 2 problems;</p>
<p><strong>1- This is a Setting Page which has <code>CustomScrollView</code> contains <code>ScrollController</code> for the controller.</strong></p>
<p><a href="https://i.stack.imgur.com/... | 2 | 5,608 |
How can I fix "No input file specified" in laravel homestead | <p>I installed laravel homestead on ubuntu 19.04, edited homestead.yaml and got "No input file specified." error. I have an index.php in the code folder. I have tried vagrant reoload --provision, deleting and recreating the vm, vagrant reload --provision, vagrant up --provision and restarting the host machine. </p>
<p... | 2 | 1,865 |
Cannot instantiate class on supportInvalidateOptionsMenu(); | <p>Im using ActionBarSherlock and I want a rebuild of the ActionBar everytime a item is clicked. For that im using</p>
<pre><code>supportInvalidateOptionsMenu();
</code></pre>
<p>Everytime it is called i got a Warning (tagged with MenuInflater)</p>
<pre><code>Cannot instantiate class: @16974108
java.lang.ClassNotFou... | 2 | 1,635 |
How to edit specific table records with own Admin Panel? | <p>I simplified my code from bullshit, so we can find the problem easier.</p>
<p>I have a table with record from a db. I can insert new, delete an existing, but somehow I can not modify them.</p>
<p>When I Click the Edit button, the good one appears, but when I edit it and click the Change button, always the last row... | 2 | 1,698 |
BarButtonItems and BarSubItems on Bound RibbonControl | <p>I am developing a WPF application using DevExpress controls, such as the Ribbon control. I want to be able to place buttons on the ribbon dynamically. I would like to be able to support both regular buttons and drop-down buttons.</p>
<p>I was thinking something similar to below.</p>
<p><strong>WPF View:</strong></... | 2 | 1,548 |
Out of Memory error when using AnimationDrawable | <p>Hi I'm trying to create a logo animation from a few png images i have created an animation and it crashes with an out of memory error. Does anyone know a solution to this?</p>
<p>heres what i have so far</p>
<p>heres my animation list</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<animation-list ... | 2 | 1,778 |
Axis2 and Rampart Module Client | <p>I need a litle help using apache axis2 and rampart module, i am trying to use a cliente but i am stuck with the error</p>
<blockquote>
<p>Exception in thread "main" java.lang.RuntimeException: Undefined 'Security policy namespace cannot be null.' resource property
at org.apache.rampart.RampartException.getM... | 2 | 9,247 |
how can I select a default option in a dropdown list? | <p>I have this JS file, by default i want to make an option selected . I mean, i want to make selected the Country "<code>USA</code>" with the value "<code>USA</code>" .<br>
This is what i have by default :</p>
<p><img src="https://i.stack.imgur.com/TB4WK.png" alt="enter image description here"></p>
<p>This is the JS... | 2 | 1,562 |
How to INSERT data using CREATE VIEW object with multiple tables using INSTEAD OF trigger in Oracle? | <p>Based on feedback from an stackoverflow user I researched docs.oracle.com about INSTEAD OF tirggers, but I still can't get this right. The view creates fine, but the INSTEAD OF trigger doesn't. Moreover, I don't understand how to set 'n' for multiple inputs. After I execute the code there is no indication of any err... | 2 | 1,534 |
wx.CallLater does not work for me | <p>I want to use wx.CallLater: I have two functions and they shall call each other in a loop, but with a break of 3 sec before every call. Problem is: When my program is in "goto01" it correctly waits 3 seconds before "Notify" is called. But when the program is in "Notify" then "goto01" is called immediatly. Why is the... | 2 | 1,068 |
PYTHON: How to get seaborn attributes to reset to default? | <p>I cannot for the life of me get seaborn to go back to default settings.
I will place the code that I believe caused this issue, <strong>but I would recommend against running it</strong> unless you know how to fix it.
The culprit I believe is in the last chunk
sns.set(font_scale = 4)
before this question gets deleted... | 2 | 1,687 |
How to resolve recursive decoding in Circe when parsing Json? | <p>I want to parse a JSON string using Circa. You can find an example of the input JSON below.</p>
<p>It's a kind of recursive data. So my property <code>entity</code> contains dependencies of entities. </p>
<p>I want to parse dependencies to map <code>Map[String, Tasks]</code>.</p>
<pre><code>{
"entity": [
{
... | 2 | 1,122 |
Export xlsx file in JSF 2 / Icefaces 3 application | <p>I try to export data in an xlsx file in my JSF 2 / Icefaces 3 application. For this i create a workbook, init rows and cells and write it in the outputstream of the response but i have no result. Only a hourglass. I have ajax call in my page but not on the export button. </p>
<p>In the Firebug when i look the respo... | 2 | 1,192 |
How to add the request body data in the post request for JMeter testing using Java code in the non-GUI mode? | <p>This is a Jmeter POST request in the form of a java code. I run this code to get no errors but I also get no response because my method of acting the request body data appears to be wrong. </p>
<pre><code>import java.io.FileOutputStream;
import org.apache.jmeter.config.Arguments;
import org.apache.jmeter.config... | 2 | 2,264 |
How to run a multinomial logit regression with both individual and time fixed effects in R | <p>Long story short:</p>
<p>I need to run a multinomial logit regression with both individual and time fixed effects in R.
I thought I could use the packages <code>mlogit</code> and <code>survival</code> to this purpose, but I am cannot find a way to include fixed effects.</p>
<p>Now the long story:</p>
<p>I have f... | 2 | 2,178 |
how to make the setError() method diplay the error message for long time period? | <p>When i validate the EditText in adialog and displaying an error message for the user to enter his/here name in case of not entering the name by using setError() method the error message displayed for very short time and then the dialog closed .
I have been used the custom dialog to solve the peroblem but i dont lik... | 2 | 1,046 |
SQL comparing sets, part II: How to join sets of sets | <p>This <a href="https://stackoverflow.com/questions/3661766/tsql-comparing-two-sets/3661993#3661993">question</a> reminded me of a couple related problems with whole-set comparison. Given:</p>
<ol>
<li>a <code>collection</code> of sets, and </li>
<li>a <code>probe</code> set</li>
</ol>
<p>Three questions:</p>
<ol>
... | 2 | 1,166 |
mysql_real_connect() in C fails with "Access denied for user" | <p>I have been dealing all day with this problem, and I can't find a solution.
I can't connect to mariadb from C (fedora24) using mysql_real_connect(). It always fails with Access denied for user, Error Code 1045, SQL State 28000</p>
<p>All proposed solutions in internet are related to wrong password, wrong interface ... | 2 | 1,301 |
"Unable to open debugger port (localhost:5005): java.io.IOException "handshake failed - connection prematurally closed" | <p>I'm using vagrant on Ubuntu OS 18.04, virtual box, Kubernetes,Gradle, and skaffold, I faced the same issue of: "Unable to open debugger port (localhost:5005): java.io.IOException "handshake failed - connection prematurally closed"</p>
<p>It was working fine, till the windows became 11, after that I fa... | 2 | 1,960 |
Ansible to Proxmox returning 500 error | <p>I am trying to use Ansible to provision some VMs on my newly set up Proxmox VE. I have installed proxmoxer and request with PIP on both my local Mac and Proxmox VE (Python 2 on Proxmox and Python 3 locally). I use Ansible 2.4.3.0, Proxmox version: 5.1-41.</p>
<p>I do have a vm with the id of 100, which was created ... | 2 | 2,187 |
Teradata Fastload LDAP authentication issue | <p>I am very new to Teradata. Hopefully, I am asking write question in the forum. :)</p>
<p>I have written fastload script that works absolutely fine on the local machine but fails to authenticate on the environment that requires LDAP for auth.</p>
<p>The main environments uses LDAP authentication. I have used "logme... | 2 | 1,636 |
ASP.NET Web Application Authorization using ADFS Claims | <p>I have put together a dynamic data web application using ASP.NET. I have also put together some classes for an AuthorizationManager. The one thing I'm unsure of is how to plug this into the web app to make it so only users in a specific role based on claims from ADFS can have access to the application. For the purpo... | 2 | 1,977 |
Nativescript + Angular : Could not build production app using AOT flag | <p>I'm trying to build a production app using the nativescript 5.1.1 using aot flag but without success but if i remove the aot flag it works the code as expected .</p>
<p>im using nativescript 5.1.1 with angular with the webpack plugin .</p>
<p><strong>package.json</strong>:</p>
<pre><code>{
"nativescript": {
... | 2 | 8,335 |
static file issue causing django 500 error? | <p>I am using angular heroku and django. I have been noticing that when I use 'ng build' to build new static files to add to django then push to heroku, the heroku instance is showing a website that is several versions behind what my current code is. </p>
<p>I attempted to run my django local server today after doing ... | 2 | 1,170 |
RecyclerView not updating after adding when data was empty | <p>I'm facing a strange problem when using the recylerview inside a linearlayout inside a cardview. It works perfectly when the initial data I'm passing into the adapter/recyclerview is not empty. But when I try to add an item dynamically (when the initial data was empty), the adapter set's the items, call's notifyData... | 2 | 8,288 |
Adding Multiple Markers to Angular-google-maps | <p>I am having the hardest time getting my angular project to display multiple map markers. I have a service called retsAPI where I am querying a local MLS database for home listings. I am trying to display these items on a google mapes. Here is my controller.</p>
<pre><code>function retsMapController($scope, uiGmapG... | 2 | 1,873 |
Rails 2.1.0 Gem Missing - RVM, Passenger, Apache | <p>Yesterday I was trying to fix the readline console issue (slow copy/paste in irb), which I wasn't able to fix - but also must have messed something up bad with my rvm setup.</p>
<p>Ubuntu 11.10.</p>
<p><strong>First my problem:</strong> Can't load the website through virtual host, only script/server. When loading ... | 2 | 2,293 |
How to persist data in asp repeater on postback | <p>Below is the markup page:</p>
<pre><code><%@ Page Title="" Language="C#" MasterPageFile="~/Master/MainPage.master" EnableViewState="true" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="Website.View.edit" %>
...
<asp:Repeater runat="server" ID="rptSample">
<ItemTemplate>
... | 2 | 1,379 |
CSS Menu Layout in Sub-List Parent | <p>I have been using my free time to improve my HTML knowledge during my holiday.</p>
<p>During the time I was designing a CSS Menu. I face some problem and don't know how to solve them.</p>
<p>I tried to search from Google. Because of my poor English, I was unable to find a solution, so I seek help here.</p>
<p><st... | 2 | 1,206 |
Passive Monitoring Serial Port in Windows using C | <p>I am a noob at serial programming. I am trying to code a passive monitor in C that displays to screen whatever is written to or read from a COM port. Most of the code, that I have seen actually reads from or writes to the COM Port.</p>
<p>I have tried to read from a COM port that is transmitting and receive Modbus ... | 2 | 2,343 |
Conditional counting in Linq's Group by multiple columns with left join | <p>I know there's a tone of similar questions and I've been through a lot of them, but still can't grasp how to do it in LINQ. I need to create a query fetching data as this pure SQL query: </p>
<pre><code>SELECT p.ProcessId, p.Description, p.StartedOn, p.StartedBy, uuus.Name + ' ' + uuus.Surname AS StartedByName, p.F... | 2 | 1,301 |
Gnuplot: plotting a wind rose diagram | <p>Trying to plot a wind rose diagram <a href="https://en.wikipedia.org/wiki/Wind_rose" rel="nofollow noreferrer">1</a>. Here's the current version:</p>
<pre><code>set terminal pngcairo size 800,800
set output 'colors.png'
set palette model RGB defined ( 0 '#e3f2fd', 1 '#bbdefb', 3 '#90caf9', 4 '#64b5f6', 5 '#42a5f5'... | 2 | 1,477 |
CakePHP: CometChat Integeration | <p>i'm implementing <strong>CMR Application</strong> in CakePHP Framework 2x. In that app, i have a requirement of Online text Chat, Audio Chat, screen sharing and Video Chat. After searching quite a time, i have ended up with a decision of using <strong>CometChat 5.0</strong> Platinum Edition. Work Progress:</p>
<ul>... | 2 | 1,493 |
LLDB Python access of iOS variables? | <p>As part of debugging a problem that might be related to my UIVIews, I want to write a python script to run from LLDB. I had thought to extract all settings for a view in a breakpoint and all view children, to allow me to compare states. I checked out the WWDC video on the topic and then spent time reading things at ... | 2 | 1,239 |
'The class PFUser must be registered with registerSubclass before using Parse.' | <p>I've looked around and all the other answers do not work for me, I'm trying to query PFUser, but I keep getting an exception of 'The class PFUser must be registered with registerSubclass before using Parse.'</p>
<p>This is where the issue occurs:</p>
<pre><code>override func collectionView(collectionView: JSQMessa... | 2 | 1,381 |
How would you represent the following 3D data in Matplotlib or Mayavi? | <p>I have a large set of data which I'm trying to represent in 3D hoping to spot a pattern. I've spent quite some time reading, researching and coding, but then I realized my main problem is NOT the programming, but actually <strong>choosing a way to visualize the data</strong>.</p>
<p>Matplotlib's mplot3d offers a lo... | 2 | 1,907 |
Error conerned with web.config | <p>Following is the error coming while executing.</p>
<h2>Server Error in '/' Application.</h2>
<p>Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appro... | 2 | 2,545 |
How to get selected radio button value from question1 activity page to next page | <p>i am developing a quiz using mobile application. currently, i am having problems on how to retrieve selected radio button from previous page. i want the selected radio button value to be displayed on the next page. below is my code in xml and java. </p>
<p>question1. java</p>
<pre><code>public class question... | 2 | 5,044 |
Cursor Error On Android Studio | <p>I have some problem when try to make a ListView that contain data from database which i carry using the cursor.
But when i run the activity, the error report gimme this error message :</p>
<blockquote>
<p>java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is init... | 2 | 6,250 |
Django: storing model property on a field vs. on a different model | <p>I am relatively new to Django and even database design and I have some thoughts I'd like to run by some other people. This isn't really a specific question; I just want to see how other people think about this stuff. </p>
<p>Let's say we have a model for an application to some service. It contains all the ordina... | 2 | 1,195 |
Push values onto an associative array | <p>I have the following code I've created for a student I mentor and I'm wondering if anyone can think of an easier way, or method that already exists? I'm also interested in learning how to create plugins in javascript, but forgot how/can't find it on google.</p>
<p>Anyway, here's the code...</p>
<pre><code>window.a... | 2 | 1,409 |
Read only 8 characters from Serial Port | <p>Im trying to teach myself C Sharp with making an RFID reader.</p>
<p>I have created some code to read from a serial port (rfid reader over Bluetooth RS232)</p>
<p>The issue im hoping someone can help me with is that: </p>
<p>My RFID reader transmits the card code in very quick succession meaning when I swipe a ca... | 2 | 1,252 |
docker compose connecting mongodb container with node js container | <p>i have a sharelatex container running. This docker compose file contains a mongo and redis container.</p>
<p>Here is the <strong>sharelatex docker compose</strong>:</p>
<pre><code>version: '2'
services:
sharelatex:
restart: always
image: rigon/sharelatex-full
#image: sharelatex/sharelat... | 2 | 1,176 |
Finding midlines of polygons using Voronoi diagrams | <p>I am using the Voronoi diagram-based approach outlined <a href="https://stackoverflow.com/questions/37820629/centerline-of-a-polygonal-blob-binary-image">here</a> to find midlines of binary masks of root images. I am using the Python code more or less exactly as described:</p>
<pre><code>import skimage.morphology ... | 2 | 1,043 |
Error: Unclassifiable statement in if conditional | <p>This is the program I wrote to calculate the distance between carbon and hydrogen atom coordinates as a practice. But some errors occurred and I don't know how to fix them.</p>
<pre><code> program C_H_bdlength
implicit none
integer :: ia ! integer atoms number
... | 2 | 1,207 |
Ant macrodef compilation task | <p>I have a compiler (and language) I am building that is normally invoked thus:</p>
<pre><code>java -jar nc.jar \
-p some/referenced/package.nc \
-p framework.nc \
source1.ns source2.ns sourceN.ns \
-o output/package.nc
</code></pre>
<p>I'd like to include a task in my ANT build file that invokes ... | 2 | 1,142 |
How to calculate sum of all rows with jQuery? | <p>Below is my table code with <code>Add New</code> button. Onclick <code>Add New</code>
button new row will create. In picture you can see this. User will
input debit and credit values at the end all debit values should be
calculate and sum should be display and same for the credit value. I
am using jQuery to create... | 2 | 1,687 |
Build failed.Step 2: Build and initialize the new recipe. Initialize the system | <p>I'm trying to install Spartacus for SAP Commerce 2005 following the guide:
<a href="https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2005/" rel="nofollow noreferrer">https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2005/</a></p>
<p>At Step 2-3 (Initialize the system using the foll... | 2 | 4,568 |
pip install django-import-export raises SyntaxError | <p>There are what seem to be dozens of questions about "why does pip raise SyntaxError?" and all the answers are "run it from the system shell, not the python shell." This isn't one of those questions. I installed django-import-export using pip, and got a number of SyntaxErrors in the output. The module itself seems... | 2 | 1,693 |
angular ng-click to change class on click | <p>I am trying to remove all classes "<strong>fa-3x</strong> " and change all classes to "<strong>fa-lg</strong>" and add a class called="<strong>testClass</strong>", when the user click on class <strong>toggle-button</strong>. is it possible to do it in angular? really appreciate. your help</p>
<p>I know in jquery it... | 2 | 1,070 |
SelectOneMenu always shows first item not the selected - Primefaces | <p>Some help would be appreciated on this issue.</p>
<p>I have several JSF Pages, but one of them is a Subcategory where there is a <strong>SelectOneMenu</strong> for choosing the <strong>Category</strong>, but when I try to edit the subcategory, this <strong>SelectOneMenu</strong> always shows the first value and is ... | 2 | 1,267 |
TypeError: cb is not a function in nodejs? | <p>(node:13384) UnhandledPromiseRejectionWarning: TypeError: cb is not a function</p>
<p>I am using passport js for authentication for my website, I am able to get all routes but when I try to sign up that is post router so in the console I am seeing these err, my data saved in DB but after posting my page loading cont... | 2 | 1,110 |
Drawing rectangle and grid | <p>I would be very thankful if someone could help me.</p>
<p>My program has 2 classes. One draws a rectangle and a grid, the other is a viewer.
The problem is, when I try to change the position for the greed+rectangle, i.e. update X and Y constants in the Viewer class, the proportions change. The grid fits in only wh... | 2 | 1,070 |
Help needed with Ajax Search in Zend framework | <p>I'm new to web programming so please bear with me. What I want to do is have a user select a value from a Dojo autocomplete combobox and have the results displayed on the same page. I've tried to follow Phil Brown's excellent blog post <a href="http://blog.philipbrown.id.au/2011/03/awesome-pagination-with-zf-paginat... | 2 | 2,649 |
C# application and assembly hell! | <p>I have created a C# project on my home computer with Windows 7, VS 2008 and using .net framework 2.0. My app is using "Irklang" sound library. Using InnoSetup 5 i have created setup for my app. Setup includes all needed files, it installs them well but when i install my app on some other computer i got some confusin... | 2 | 1,739 |
Return value of Myrepository must be an instance of MyEntity or null, array returned | <p>I'm using Symfony4 with doctrine, trying to fetch my data trough my repository</p>
<p>I have the following query at my repository</p>
<pre><code>public function findByToday($value): ?Clock
{
return $this->createQueryBuilder('c')
->select('c')
->where('c.clockIn BETWEEN :n1days AND :today')... | 2 | 1,292 |
React-google-map - How to add click listener to the overlay element to stopPropogation() | <p>I'm using react google map <a href="https://github.com/tomchentw/react-google-maps" rel="nofollow noreferrer">react-google-maps</a>, and added a overlay to the map. When i click on the overlay it triggers the google info window for the place that sits behind the overlay div since MapPanes.mapPane has the high priori... | 2 | 1,593 |
Undefined reference to 'DTLS_client_method' | <p>I'm currently trying to implement DTLS on android in order to encrypt UDP datagrams.
For this, I built the openssl-android project <a href="https://github.com/guardianproject/openssl-android" rel="nofollow">available here</a>, from this I got two shared libraries libssl.so and libcrypto.so which I renamed libsslx.so... | 2 | 2,503 |
MySQL joining data from 2 tables based on foreign key in a third, without duplicates or group by | <p>I have three tables that look like this:</p>
<pre><code>People:
+------------+-------------+------+-----+-------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+-------------+------+-----+-------------------+----------------+
| id | ... | 2 | 1,668 |
UIAlertView Dialog results EXC_BAD_ACCESS | <p>I am trying to have an UIAlertView with two options like "YES" and "NO" in my XML parsing class. After I click one of the option I just get an EXC_BAD_ACCESS error. Here is my code:</p>
<p>.m file:</p>
<pre><code> -(void)doneParsing
{
UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:@"My A... | 2 | 2,136 |
How to Hide the Url in addressbar? | <p>I want to hide the URL in the address Bar. Can anyone please help me ?I have written the code but it is opening a new window <a href="https://www.google.co.in" rel="nofollow">https://www.google.co.in</a> I want to hide that url </p>
<p>My code is</p>
<pre><code> <apex:page controller="HiddenAddressBarController... | 2 | 1,308 |
Aggregate $filter Between Elements Matching Conditions | <hr>
<p>Data:</p>
<pre><code>[
{
"_id" : ObjectId("597c48d222b29fc421e82d20"),
"Date" : "12/06/2017",
"Country" : "DEMO",
"RiderId" : "DEMO",
"VehicleId" : "DEMO",
"StartAddress" : "Colombo",
"StartLocation" : [
6.9270974,
79.8612478
],
"EndAddress" : "Kegalle,",... | 2 | 2,530 |
Adding to ArrayList from Adapter android | <p>I have ArrayList in class TabFragment1. I have adapter for list of installed apps. And when i click on ImageView application name and icon should go the TabFragment1 ArrayList, but i cant resolve it. Application is crashing when i click on iv.</p>
<p><strong>AppAdapter</strong></p>
<pre><code>public class AppAdapt... | 2 | 2,282 |
Post image to Instagram from a Javascript using Instagram API | <p>Instagram Graph API:<br />
<a href="https://developers.facebook.com/docs/instagram-api/" rel="nofollow noreferrer">https://developers.facebook.com/docs/instagram-api/</a></p>
<p>Content Publishing:<br />
<a href="https://developers.facebook.com/docs/instagram-api/guides/content-publishing/" rel="nofollow noreferrer"... | 2 | 1,044 |
Log both webservice Request, Response in SoapExtension | <p>I am using a SoapExtension to log both the webservice request, response when an error occurs in a webservice. Both the request and response XMLDocument's have incorrect data. Can someone review the code to see what I could be doing wrong? If I am unable to centralize the changes in the SoapExtension, then I will go ... | 2 | 1,455 |
Android main activity crash - FATAL EXCEPTION: main | <p>I am getting a null pointer exception when trying to run my app. It seems ok in the manifest xml file. here is the activity java code:</p>
<pre><code>package com.shale.activities;
import java.util.Arrays;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os... | 2 | 3,855 |
DropdownList with Checkbox in a GridView | <p>Here is my current grid view.</p>
<pre><code><asp:GridView ID="grdIndexGroupMap" runat="server" AutoGenerateColumns="False" DataKeyNames="IndexName"
OnRowCancelingEdit="grdIndexGroupMap_RowCancelingEdit" OnRowDataBound="grdIndexGroupMap_RowDataBound"
OnRowEditing="grdIndexGroupMap_RowEdit... | 2 | 1,522 |
How to add iAP with iAPHelper and CocoaPods? | <p>I've tried to add in app purchase to my app to provide users the option to buy the app without iAd. So I searched for a good cocoa pod because the implementation of in app purchase is very heavy. Cause iaphelper seems to be the best I've tried to implement it in my project like this but as you see that doesn't work ... | 2 | 1,967 |
Why do exceptions/errors evaluate to True in python? | <p>In several places I have to retrieve some value from a dict, but need to check if the key for that value exists, and if it doesn't I use some default value :</p>
<pre><code> if self.data and self.data.has_key('key'):
value = self.data['key']
else:
value = self.default
....
</code></pre>
... | 2 | 1,487 |
best ways for optimizing socket programming in java? | <p>i try to program a part of a university research project about multi client - server socket programming.my code works as well as so that i give valide result but the problem is that evalutor of our group said that my code have not a good speed on connection for data transfer.i will be thankfull if you found the prob... | 2 | 3,926 |
DataTables warning: table id=table_especie - Requested unknown parameter '0' for row 0, column 0 | <p>I know this was asked hundreds of times, but I think my case is very specific and it needs someone who knows jQuery to help, or at least has seen this before!</p>
<p>I have this code to build a table called "especie:</p>
<p>HTML</p>
<pre><code><table class="table" id="table_especie">
<thead>
... | 2 | 1,341 |
JQuery in ASP.NET - Form Validation Issue | <p>It's not working at all and I'm not sure why. Ideally I'd like to have all the errors pop up in a modal dialog box. But right now I can't even get it to work normally. Any help would be appreciated. Thanks.</p>
<p>HTML</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<... | 2 | 1,343 |
How to get the View to return the ID via a ViewModel to the controller? | <p>I currently have a view which returns an <code>IEnumerable</code> collection of Technicians via the <code>TechnicianViewModel</code>. The view model populates fine and displays the objects correctly. </p>
<p>However, at the moment I need someone to point me in the right direction with regards to selecting a specifi... | 2 | 1,746 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.