title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
ViewScoped CDI bean recreated after some AJAX requests | <p>I have a CDI ViewScoped bean and a JSF page. After a couple of AJAX requests the bean somehow recreated.
Here is the full code of the application:</p>
<p>index.xhtml</p>
<pre class="lang-xhtml prettyprint-override"><code><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
... | 3 | 1,185 |
Image upload with axios react native android | <p>I am trying to upload image to an API the iOS version is working good but there is problem in android, My code is bellow.</p>
<pre><code>const uploadUri =
Platform.OS === 'ios'
? uploadImageFile.replace('file:', '')
: uploadImageFile;
// console.log(uploadUri);
const data = new FormData();
data... | 3 | 1,134 |
I having problem with section ID. I need to jump(scroll) to 'ABOUT US' section. But it keep take to the home section | <p>Here's is my HTML code</p>
<pre><code><div class="bg">
<div class="banner">
<img src="logo.png" alt="Logo UMS"><p><a class="eng"href="#" >ENG | </a><a class="bm"href="#" >BM</a><... | 3 | 1,189 |
New jenkins server after inital setup - blank screen | <p>I have a fairly new installation of Jenkins that was working prior to Christmas, but today when I try to access it I get a blank browser screen. During the intial setup I successfully unlocked the server and verified that everything was working, but did not install any plugins as the server was firewalled. This has ... | 3 | 1,079 |
NodeJS 4 with Express does not send request to the server with get/post | <p><a href="https://stackoverflow.com/questions/60125125/take-json-string-from-esp8266wifi-and-save-it-as-a-string-variable-in-nodejs-to">Branching from the project of mine from old question.</a></p>
<p>I am trying to write NodeJS with Express to read the value of ip address on port <code>9999</code>, and the internet... | 3 | 1,288 |
Qt:LibDash-Mpeg-Dash fatal error:QtMultimedia/qaudioformat.h: No such file or directory | <p>I'm trying a qt project using libdash from this <a href="https://github.com/bitmovin/libdash" rel="nofollow noreferrer">link</a>. When I try to compile,it gives me error:</p>
<blockquote>
<p>fatal error: QtMultimedia/qaudioformat.h: No such file or directory</p>
</blockquote>
<pre><code>#include "QtMultimedia/qa... | 3 | 1,252 |
dont get image in image view after selecting image from gallery | <p>i dont know why it is not working in mine case and work all others one </p>
<pre><code>public class MainActivity extends Activity {
private static final int imagess = 1;
Button uploadimage, loadimage;
ImageView selectimage, showimage;
protected void onCreate(Bundle savedInstanceState) {
sup... | 3 | 1,062 |
How to self register class instances using the CRTP? | <p>I have a registry for lambda functions associated with a specific <code>CommandId</code>, where the registered function is supposed to create a concrete instance of a command executor class and supply it with some data:</p>
<h3>CommandId.h</h3>
<pre><code>#include <cstdint>
enum class CommandId : uint16_t {... | 3 | 2,056 |
Filtering Folders in Save File Dialog in Visual Basic | <p>I am making an application in Visual Basic which creates a directory and places text files in them, but I want to view a directory in which the user wants the text files from. I have decided that using the OpenFileDialog option would work best. What filter would I use for the <code>OpenFileDialog</code>?</p>
<p>For... | 3 | 1,426 |
SFINAE without void_t (maybe a template specialization question) | <p>Sorry for the title, I am not sure about the category of my question.
I am trying to do an is_incrementable with SFINAE. This works fine, however when I try to understand it more deeply, and when I remove the void_t then the code snippet does not work as expected.</p>
<p>The original code:</p>
<pre><code>#include &l... | 3 | 1,289 |
Receiving data causes "too many files open" | <p>In my client I receive via ZeroMQ a lot of input, which needs to be constantly updated. My server is written in python, but that should not matter. So this is what I do in my <code>MainActivity</code>:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bu... | 3 | 3,665 |
How to add interpolation properly on a print component in Angular 2? | <p>When including the *ngFor on my template the invoice gets blank on print.
Also, the interpolation did not work on it.I am getting data from an another component.When i debug the data is receiving properly.I initialized another property in the constructor called name and it got working.</p>
<pre><code>constructor ()... | 3 | 1,048 |
Twitter_Streaming_Data_Error | <p>I am getting the below error when I am trying to access the Twitter data through Streaming. I am not sure the root cause for it. I am using Filechannel to download the data from Twitter.</p>
<pre><code>16/08/03 11:15:00 ERROR twitter.TwitterSource: Exception while streaming tweets
404:The URI requested is invalid o... | 3 | 1,037 |
Cannot modularize AngularJS application | <p>I am new at AngularJS routing so this might sound like a noob question.</p>
<p>I am working on an AngularJS app where there are a lot of controllers. To keep my controllers on seperate JS files, I have decided to create separate modules for each controller.</p>
<p>This is my main module in <strong>angularmodule.j... | 3 | 1,529 |
Openerp Key error throwing when one2many field in one calss calling in as a related field in another | <p>I have another issue , please help me again.
I have this four class named "Department, Division,Section" like bellow</p>
<p>Department</p>
<pre><code> class dept_new_registration(osv.osv):
_name = "hr.dept.n.registration"
_description = "depts"
_columns = {
'name': fields.char('Dept Name', ... | 3 | 1,651 |
Option pricing : error LNK2019: unresolved external symbol referenced in function _main | <p>This is my code, the exact error is at the bottom, I've looked throughout stack overflow and can't find an answer to my question. I have no idea why I'm getting this error</p>
<pre><code>//amer_bi.h
#include <iostream>
using namespace std;
class amer_bi
{
public:
int steps,i,j;... | 3 | 1,423 |
php Ajax and jquery form loading then submission not working | <p>I have 4 files testmain.php test1.php test2.php test3.php, in the testmain.php I have a div with class "content_load" where I am loading 3 files on click one by one, they are loading fine but test1.php is a form file when it's finish loading I am submitting it with ajax but it's getting redirect, I am trying since y... | 3 | 1,465 |
What is the new way to change the nav text color with Bootstrap 5? | <p>I'm trying to use Bootstrap 5 and here is my problem. I was changing the color of the <code>nav li a</code> element directly in the css with Bootstrap 4. But now, with B5 this way does not work.
Do you guys know how can I change it please ?</p>
<p>Here is an example.</p>
<p><div class="snippet" data-lang="js" data-h... | 3 | 1,760 |
Populating template from 2 worksheets; data from 2nd worksheet not copying to correct line after first completed template | <p>I am creating an individual worksheet for each employee based on a template which is populated from two worksheets. I can get the Employee_Data to populate correctly. (Thanks to assistance from Tim Williams.) However, when copying the JobHist_DataWorking data only the first completed template is on the correct line... | 3 | 1,898 |
Setting map bounds for multiple markers | <p>I am trying to set bounds for a group of markers, but keep getting an entire earth map. I have checked and all my markers have proper coordinates set. Here's my code in it's entirety:</p>
<p>PHP</p>
<pre><code>foreach ($business AS $b) {
$mapData .= '["'.$b->name.'", '.$b->lat.', '.$b->lon... | 3 | 1,237 |
When the user did not fill up all the blanks or fill in wrongly, how to validate them and bring it back to the same form? | <p>This is by Newcustomer.php form whereby i click on the button next, it will proceed to the next form which is NewExpertise.php. </p>
<pre><code><form action = NewExpertise.php method="post">
<?php
include('CSS.php');
include('DB.php');
?>
<span class =wordtab>Name</span> ... | 3 | 1,273 |
How to resize the Dialog Box? | <p>I would like to resize my dialogbox so for every dialog box i will have to size the full screnn size and the second use fill_parent for the size. my dilag is defined by the layout given by the code below.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.andr... | 3 | 1,368 |
Rspec: Factory Girl & Complex Associations | <p>I am trying to test a helper method that would return the amount of <code>Subscribers</code> a <code>Campaign</code> is targeting. Being fairly new to TDD, I am having a hard time wrapping my head around how to write this one since the associations are quite complex. A <code>Campaign</code> "targets" by whether a su... | 3 | 1,769 |
How to remove conditionally installed features on application uninstall? | <p>I'm using wix to build an installer that installs different features based on a "CURRENCY" property passed in from the command line.</p>
<pre><code>msiexec /i install.msi CURRENCY="GBP"
</code></pre>
<p>Here is the feature element of the wix file:</p>
<pre><code><Feature Id="Complete"... | 3 | 1,136 |
Trying to make a login page, I am stuck! [java] | <p>Here is my code and what I want to do is, when the login button is pressed, I would like it to check the password and text fields for the right password(found in the if statement). I need help on what to do to get the input from the text and password fields. When I run the code, it skips right to the else statement ... | 3 | 1,587 |
Return mysql query to nodejs flash message | <p>I am looking to query the tracking numbers by office number. Then pass the tracking numbers to the req.flash in the post. I am able to get the data to log to the console, I am having issues returning it to my main node program so I can use that data in the req.flash message. How do I get the query results to the... | 3 | 1,088 |
App crashed when trying to get ID from SQLite | <p>When button is clicked, I want to get the data ID from SQLite. Unfortunately my app crashed. This happen when I try to retrieve the data ID from SQLite.</p>
<p><strong>LogCat</strong></p>
<pre><code>05-17 01:00:54.873 16093-16093/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
android.database.CursorIndexOutOfBoundsExc... | 3 | 1,210 |
MVC3 Pass back List of Objects with Lists | <p>I need to pass an array of objects, which contain arrays, from javascript to a MVC actionresult method. Basically I have a KeyValuePair whose key is an array of strings, and I need to pass back a list of these KeyValuePairs. In the code, I have a list of keys I've changed, and a JS object that holds key->value pai... | 3 | 1,033 |
Java/SQL - executeUpdate() hangs and causes OutOfMemoryException | <p>I'm trying to perform a relatively simple insert into my table, but the executeUpdate() method hangs until the program crashes with an OutOfMemoryException. I've successfully performed inserts on the SQL Server Management Studio, and I've set the database offline and back online, so I don't think there's any way the... | 3 | 1,999 |
Writing an object to an existing json file and wrapping the contents with '[ ]' | <p>Ok, so I'm learning javascript (coming from c++) by writing a utility that takes in .md (markdown) files and parses/transforms the file to an html then to a json object, then writes that object to an existing json file in a format that follows my specification.</p>
<p>to be clear see the following pipeline:</p>
<p><... | 3 | 3,283 |
Wikidata query throwing StackOverflowError after update | <p>Before, my query worked perfectly. However, something changed on their backend, and now I'm getting an error when running this <a href="https://query.wikidata.org/#SELECT%20%3Fperson%20%3FpersonLabel%20%3FpersonDescription%20%28GROUP_CONCAT%28DISTINCT%20%3Fdob%20%3B%20SEPARATOR%20%3D%20%27%20%7C%20%27%29%20AS%20%3Fd... | 3 | 1,202 |
SQL: Understanding how SELECT DISTINCT eliminates duplicates | <p>I have the following table called genkeyword:</p>
<pre><code>---------------------------------------------------------------------------
| id | title | genre | keyword | year |
----------------------------------------------------------------------------
| 315 | Harry Potter ... | 3 | 1,360 |
mps grammar cells giving message "Error Missing Dependency on jetbrains.mps.lang.core" | <p>I am following along Kolja Dummann's Heavy Meta (4) livestream on Youtube.</p>
<p>I am trying to use the grammar cells to wrap a binary expression. the projection looks like this</p>
<pre><code><default> editor for concept BinaryExpression ... | 3 | 1,416 |
How do I pass an array from .Net to C? | <p>I am trying to make use of an <a href="https://osqp.org/docs/examples/demo.html" rel="nofollow noreferrer">open source library, written in C</a>, by wrapping it and exposing it to .Net. I am not, by any stretch, a C expert.</p>
<p>So far, I have managed to call the demo code, written in C, from F#. I managed to get... | 3 | 1,476 |
SQL combine two rows with common batch number into one line | <p>I have an Oracle SQL (select *) query that spools batch transactional information, the result of which outputs the main sender and receivers to different lines for the same transaction like below:</p>
<pre><code>BATCH_NO DATE AMOUNT SENDER_ACCT_NO SENDER NAME RECEIVER_ACCT_NO RECEIVER NAME
1234567... | 3 | 1,092 |
Constant AttributeError on plotly.express | <p>I have been trying to do some visualizations using Jupyter and everytime I use plotly.express always get an AttributeError. I have checked carefully the identation, version and syntax, but I can't see any error. Please, some help:</p>
<p>(I am using matplotlib-2.0.0; pip-20.1.1; plotly-4.8.1)</p>
<pre><code> im... | 3 | 1,252 |
Static UITableViewCells with unknown rowHeight | <p>I've created a UITableView with static cells that will show hotel information loaded from Parse. These cells have the style Right Detail. The detailText is unknown to me so it can be quite long what means the cell will have an unknown height.</p>
<p>I've tried to solve this using a NSMutableDictionary to store the ... | 3 | 1,476 |
syslog-ng : accept using same fd before former connection close (then open fd reaches the limit) | <p>My program use a main thread accept comming connections(so there is no accept racing!),then give it to 4 slave threads ,they will close when r/w return 0.</p>
<p>but some times the log print like this.....</p>
<pre><code>Feb 27 00:13:31 mx59 lp_server.c[62] __lp_listening_handler: "<-1195489312> [INFO] acce... | 3 | 1,179 |
SCSS React Library compilation | <p>I have a problem when I try to compile my React library.</p>
<p>I have 2 projects: my-library and web-app.</p>
<ul>
<li>my-library contains all components</li>
<li>web-app use my-library components</li>
</ul>
<p>When I compile my-library project make a folder named lib. When I compile the project all the javascript ... | 3 | 1,386 |
Convert XML to object in PHP a update values of some node and again convert object to XML? | <p>I am dealing with multiple APIs. Please find some steps.<br>
<strong>Step1</strong> I have got the first API's result as below.
<strong>Let's say I have got the following response.</strong></p>
<pre><code> $xml = '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi... | 3 | 1,935 |
Function 'subsindex' is not defined for values of class 'struct' | <p>I am using the matlab to solve a simple model in economics. But I came across an error </p>
<p>Function 'subsindex' is not defined for values of class 'struct'</p>
<p>when I run the last line of code. </p>
<pre><code>omega=mkt_share(Par,w,Grid);
</code></pre>
<p>It appears wired to me as I call this function rep... | 3 | 1,078 |
How can I refactor this jquery code for a NOOB | <p>I have the following code that I can't seem to refactor:</p>
<pre><code> //opens some drop downs
$('#proofreading').mouseover(function(){
$('.proofreading .accordion-body').collapse('show');
});
$('#edit').mouseover(function(){
$('.edit .accordion-body').collapse('sh... | 3 | 1,140 |
Section in fedext fluidpage | <p>I'm trying to add a section into my fluidpage extension.</p>
<pre><code><f:section name="Configuration">
<flux:flexform id="default" label="Gallery Page" icon="{f:uri.resource(path: 'Icons/DefaultPage.png')}">
<flux:flexform.section name="images">
<flux:flexform.field.fi... | 3 | 1,214 |
Google Sheets Script - for linking tables | <p>I have a Google Slide document which has both charts and tables linked to a Google sheet document.</p>
<p>At times I need to create a copy of both and then need to link the Slide charts and tables to the newly copied Sheets.</p>
<p>I have the following script which does this for the charts, but not for the tables.... | 3 | 1,237 |
How to properly locate Spring Context property-placeholder? | <p>I am attempting to implement an outdated open-source Properties File Manager (<a href="https://github.com/Confluex/Zuul/wiki" rel="nofollow noreferrer">https://github.com/Confluex/Zuul/wiki</a>) with a Mule Test Application in MuleSoft's Anypoint Studio platform. This appears to require the Spring Context Schema, bu... | 3 | 1,456 |
How to handle JSON deserialization? | <p>I have a class OrderRequestModel with 10 properties.</p>
<p>I would like to throw exception if any of the properties is null but do not want to do 10 if checks.</p>
<p>How can i do this smartly?</p>
<pre><code> if (model is DeliveryRequestModel)
{
if (model.Items == null || !model.Items... | 3 | 2,383 |
Laravel use package in own project | <p>I'm building a package in <code>Laravel 5.5</code>. Now I want to use that package
locally in my own project. </p>
<p>The composer.json from my package looks like this:</p>
<pre><code>{
"name": "larsjanssen6/underconstruction",
"license": "MIT",
"homepage": "https://github.com/larsjanssen6/underconstru... | 3 | 1,566 |
How to make a geography field unique? | <p>I have this model:</p>
<pre><code>class Marker(models.Model):
location = models.PointField(geography=True, unique=True)
</code></pre>
<p>When I try to add a Marker instance through the admin interface, it raises a <code>ValueError</code>:</p>
<pre><code>File "django/core/handlers/base.py" in get_response
11... | 3 | 1,263 |
Invalid column name when using count distinct | <p>I'm stumped... When I added the count distinct and group by statements to my query I get an error telling me that CallTime and Ticketday are invalid column names. How can I accomplish this without having to write this data to a table first and then query it?</p>
<pre><code>select datename(weekday, calllog.RecvdDate... | 3 | 1,117 |
How to sort the time | <p>I am trying to write a program, which sort the time in very optimized manner.Time is in the format <code>HH:MM:SS</code> I read data from <code>file.txt</code> and the data in file is as below :</p>
<pre><code>01:22:15 07:35:35 11:03:35 08:45:37 16:20:23 14:10:48 11:41:44 23:20:14 07:18:21 15:48:01 19:32:44 05:27:... | 3 | 1,091 |
BluetoothLescan() not finding any devices | <p>I've been having some problems getting Bluetooth to scan for devices with my Samsung Galaxy s5.</p>
<p>I'm on Android 6.0 and have set up permissions for my app to scan like so:</p>
<pre><code>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
// Android M Permission check
if (this.chec... | 3 | 1,789 |
How to display installed app detail (label name, icon) in list view using array adapter? | <p>I am brand new to programming, and specially to android. I am trying to get all the installed application details, such as the label name and the icon to be displayed in a list view, and to launch it when a particular app is been clicked.. Currently I am trying to work with how to display them. i tried many of the s... | 3 | 1,186 |
Returning values from stored procedure using TSQL and PHP | <p>Is it possible to get data returned from a Stored procedure in PHP using SQLSRV connecting to a windows server DB. At the moment, the code I have commits the query succesfully but doesn't return anything. The loop where the rows output does not run even once (ie the object is empty)</p>
<p>Here's the PHP</p>
<pre>... | 3 | 1,859 |
PySide2: How to keep QTreeWidgetItem widgets? | <p>I have a problem with my custom QTreeWidget losing the associated widgets for each QTreeWidgetItem when it gets dragged and dropped. I understand that this is due to the item being destroyed and re-created at it's new position, and that it has something to do with the QMimeType, I believe? But I'm not sure how to ... | 3 | 1,770 |
swiper slider in javascript slide all layers in the background | <p>i have a swiper slider which has 4 layers, the first layer is static which is the whole background, i want the second (bg1 and bg2) to autoplay/slide, now only the 4th layer is autoplaying/moving,my code is like below:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false... | 3 | 4,625 |
Can't resolve Invalid Hook Call error (in conjunction with React Router) | <p>I'm having an issue with rendering components. I get an 'Invalid Hook call' error in my console. I've tried to check for the three main 'causes' as per the <a href="https://reactjs.org/link/invalid-hook-call" rel="nofollow noreferrer">React docs</a>, but I can't seem to find what it is. I'm using React Router and tr... | 3 | 1,321 |
laravel Foreach nested | <p>I have the following arrays:</p>
<p>Blade code:</p>
<pre class="lang-php prettyprint-override"><code>@foreach($allediensten as $alledienstens)
@foreach($beschikbaarheid as $beschikbaar)
@if($beschikbaar->job_id !== $alledienstens->id)
<tr>
<td><input typ... | 3 | 1,440 |
Onsen UI tags not doing anything | <p>I hope that this isn't too trivial, but I have a cordova app that I am building. I have used cordova before and used onsen and I've tried to mirror what I've done before as closely as possible, but I am not getting anything from onsen to take effect. Here is the index page:</p>
<pre><code><!DOCTYPE html>
&l... | 3 | 1,137 |
Getting FATAL exception: AsyncTask #1 on using Async class | <p>I'm new in android. I have imported a project which takes picture from my mobile and is supposed to upload it on my localhost in my laptop. Both are connected to same WiFi and it runs until I take picture and click upload but as i click upload, it crashes. These are the errors I am getting in my log-cat. Can anyone ... | 3 | 4,666 |
How to call specific id's or variables in ggplot2? | <p>This is the edited question. I would like to create a multi-facet graph based on panel data. While graphing panel data with only one y-variable is relatively simple, I am asking how can I create a graph in R using multiple y-variables that should appear in the same graph.
The problem is that I have two "y"... | 3 | 3,135 |
Xamarin Json parsing | <p>Ι am having a json like this:</p>
<pre><code>{"userTweetsList":[{"tweetId":1,"tweetData":"testing uploading from uwp","createdTime":1510822592529,"commentCount":0,"likeCount":1,"flagCount":1,"mediaUrl":"suburl","tweetUser":"geo.thomas","userLiked":true,"userFlagged":true},{"tweetId":2,"tweetData":"Testing tweet","c... | 3 | 1,173 |
How to select a subset of least resembling combinations of a common vector? | <p>I need to select 10 times different combinations of 15 items from a common set of 30 items, with several constraints.</p>
<p>First constraint: for each of the 10 combinations, I need to remove three items that should not be present in that specific combination. Let's say wf01, wf02 and wf03 for the first combinatio... | 3 | 1,861 |
Can't see data on the screen but I can see it in the elements | <p>I am new to sencha touch so if someone can point me in the right direction that would be great. My problem is that I want to display data from my database. I seem to have everything working correctly when I inspect the elements I see the data but I can't see the data on the screen Here is my code:</p>
<p>getUserLis... | 3 | 1,753 |
How to further expand a child in expandable listview | <p>I am using an expandable listview in my application. It has 4 parents. 1st parent has 5 children and rest of the parents have zero child. I want 1st parent's 3rd child to expand more i.e. to have further children.</p>
<p>How can I achieve this?</p>
<p><strong>strings.xml</strong></p>
<pre><code><resources>
... | 3 | 2,104 |
binary search cant find the correct key | <p>ok, so I coded a program in java that reads the values from a file and stores them in an array and then pass them to binary class where the binary code will search for the key. Now if the key is listed in the file it will show the location and the key but if the key is not listed it will output the key is not listed... | 3 | 1,101 |
Basic Django staticfile deployment on heroku | <p><a href="https://i.stack.imgur.com/E3aVL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E3aVL.png" alt="enter image description here"></a></p>
<p>I'm trying to deploy a django project to heroku (previously on openshift), but cannot get the static files right. The project structure is above. In f... | 3 | 1,221 |
K8s Pod exec via sockJS, webSocket disconnects after I enter any character, what should I do? | <p>K8s Pod exec via sockJS, webSocket disconnects after I enter any character?
I tried to use xtrem combined with sockjs to connect to kubernetes to execute the command, I got an error 1: "Process exited", it was sent immediately after I entered the command</p>
<pre><code> const term = new Terminal({
... | 3 | 1,219 |
how is my variable changing to undefined Angular | <p>Whenever I call <code>moveAvatar()</code>, <code>this.vx</code> and <code>this.vy</code> are are undefined.</p>
<p>How?</p>
<p>How it works in plain JS application:</p>
<p>Game starts: set an interval that calls <code>draw()</code> over and over, drawing on the canvas. I'm perplexed as to why this wouldn't work u... | 3 | 1,912 |
This program not executing find the faulty code - Duplicate Strings in a linked list | <p>The actual program is removing duplicate strings by first storing the strings in linked list without using Linked list class of Java we should use only methods of String Class.</p>
<p>The program is not executing please help me through get it executed.</p>
<p>The problem is like this : </p>
<ul>
<li>Find and remo... | 3 | 1,243 |
Datagridview Combobox and Textbox event not firing when data is loading | <p>I am creating an application in which datagridview having one combobox and multiple textbox</p>
<p>In datagridview, when I select manually datagridviewcombobox value, Textbox value is filled</p>
<p>But datagridview is populated by bindingsource and value of datagridviewcombobox get selected but textbox value is em... | 3 | 2,299 |
Load vector tiles from folder instead than from MBTiles file | <p>Is there a way to load several vector PBF files that are in a folder in a similar way than it's possible to do it now from an online source?</p>
<p>My app deals with several MBTiles files, but I'd prefer to read a folder with PBFs in it instead. So I can load all the maps using only one layer and without having to ... | 3 | 3,952 |
display image using content control | <p>I am reading a book on WPF as I'm trying to learn it.</p>
<p>There is an example of a button below. This makes sense apart from one line, below.</p>
<pre><code><ContentControl Margin=”2” Content=”{TemplateBinding Content}”/>
</code></pre>
<p>The book says the below,</p>
<pre><code>Figure 14.9 shows what... | 3 | 1,514 |
TextFields not updating/repainting correctly on codenameone | <p>I have a problem with <code>TextFields</code> not updating correctly when they gain focus using the virtual keyboard in Codenameone apps on Android devices.</p>
<p>I gave the <code>TextField</code> a value (value '0') and added multiples underneath each other. I then pressed on a <code>TextField</code>, where it ga... | 3 | 1,277 |
Receiving a delayed standard output message | <p>I'm trying to read the standard output of the following <a href="https://support.microsoft.com/en-us/kb/311272" rel="nofollow">devcon.exe</a> command in my application:</p>
<pre><code>devcon rescan
</code></pre>
<p>If I run it in cmd I get the following two lines:</p>
<pre><code>Scanning for new hardware.
Scanni... | 3 | 1,722 |
Allowing javascripts in an AJAX Called file | <p>I have read numerous methods of allowing scripts that are called by an AJAX function but I am having trouble making it work, so if possible an example for this specific code would be great as I am relatively new to JS and AJAX.</p>
<p><strong>This is the main javascript(which is looped in the index page) to request... | 3 | 1,136 |
SlidingDrawer content stops at previous sibling view | <p>I've got a view with a <code>SlidingDrawer</code> at the bottom. When I open it, it does not open entirely and stops at previous sibling view.</p>
<p>Anybody can help?</p>
<p>Thanks</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/andro... | 3 | 2,237 |
JEST test : Update the wrapper after a click event is not working, | <p>I'm trying to test the presence of one attribute on my HTML element after a click on this element.
All my other tests with the click trigger are running properly but this one in which I need check an element attributes changes after a click is not working.</p>
<pre><code>import Menu from '@/components/MenuItem';
co... | 3 | 1,681 |
Angular Material - ({status: 400, message: "validation errors",…} field Errors: [{codes: null, arguments: null ...) | <p>I try to send data in back end but i have a validation error :</p>
<pre><code>{status: 400, message: "validation error",…}
fieldErrors: [{codes: null, arguments: null, defaultMessage: "ne peut pas être vide", objectName: "NotBlank",…},…]
0: {codes: null, arguments: null, defaultMessage: "ne peut pas être vide", obj... | 3 | 3,034 |
Get all nested urls based on nested tag in JSON | <p>I have a following Json input in a text file <code>json.txt</code>:</p>
<pre><code>{
"files":[
{
"id":49894894,
"list":[
{
"name":"one",
"animal_potato_carrot":{
"op... | 3 | 1,685 |
Insert a line between two element using css | <p>I'm editing a sequence diagram on <a href="https://app.zenuml.com/" rel="nofollow noreferrer">https://app.zenuml.com/</a> with the code like this :</p>
<pre><code>// This is a sample
A.method() {
}
A.anotherMethod() {
}
</code></pre>
<p>In the diagram rendered, I want to insert a solid line between the two meth... | 3 | 1,748 |
Main Activity with Fragments, Viewpager and Tablayout - onLoadFinished not being called after orientation changes | <p>I have an activity which implements LoaderManager.LoaderCallbacks.</p>
<p>This activity gets from a webservice an object which is used by 3 fragments.</p>
<p>The first fragment shows the basic information of the object obtained from the loader. </p>
<p>The second fragment shows a list contained in the object if i... | 3 | 6,298 |
Parsing Group XML Node from SOAP Response - OBJECTIVE C | <p>I have the following XML from SOAP Response how should I parse it ?</p>
<pre><code><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<areaSearchResponse soap... | 3 | 1,061 |
React checksum invalid server rendering | <p>In my react app I am currently using server side rendering. The error I am currently getting is : </p>
<pre><code>Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the cli... | 3 | 2,272 |
Reuse Meteor template as inclusion with different helpers | <p>I'd like to re-use a Meteor template as an inclusion (i.e. using <code>{{> }}</code>) in two different contexts. I know I can pass in different data with the inclusion by using <code>{{> templateName data1=foo data2=bar}}</code>, but I'm struggling to figure out how I can provide different helpers based on the... | 3 | 1,474 |
I still can't figure out why capturing the video window from the elgato usb is not working? | <p>In form1 i just have a simple button click event:</p>
<pre><code>private void button3_Click(object sender, EventArgs e)
{
Elgato_Video_Capture evc = new Elgato_Video_Capture();
evc.Show();
}
</code></pre>
<p>Then in the new form in designer i added a pictureBox.
And the new ... | 3 | 2,400 |
Alter text in Button after Ajax call | <p>I'm hitting some trouble in trying to change the text in a button after a user clicks on the wishlist link. The Ajax call is working successfully right now and the data is updated correctly in the DB, currently the function displays a notification pop up in the browser when a user clicks on wishlist, but I would lik... | 3 | 1,026 |
Update package.json version using Azure Dev Ops Build pipeline | <p>I am trying to dynamically update a package.json as part of a CI build for publishing to an npm repository.</p>
<p>I am following a simple scheme of yyyymm.dd.rev to create the version number.</p>
<p>I have followed <a href="https://stackoverflow.com/questions/65266297/npm-version-in-azure-devops-pipeline/65282736">... | 3 | 1,268 |
VB.NET How to use ExecuteReader well | <p>Here is a code :</p>
<pre><code>Private Sub ComboBoxQC1L1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBoxQC1L1.SelectedIndexChanged
Dim conn As New SqlConnection
If conn.State = ConnectionState.Closed Then
conn.ConnectionString = ("Data Source=.\SQLEXPRESS;In... | 3 | 1,236 |
ReactJS Error when using map function, cannot read properties of undefined | <p>I'm trying to make a sport/tinder like app for a school project from a friend of mine. It came together well on my localhost, but for him it was a requirement to host it online. Not really a professional in hosting, but I was a bit familiar with Heroku. I used a client and a server side for my application, so I buil... | 3 | 3,935 |
how to display an object in a tooltip in a datatable | <br>
I create a table dynamically with data coming from an ajax response <br>
I want to display data stored in an object in a tooltip anchored to the cell.<br>
For the moment I manage to display my table but this one displays `[object Object]`.<br>
What I want to do is display in element 0 of this object and display th... | 3 | 3,124 |
how can I implement adding "+1" step when calculating two's complement for a negative number | <p>The program works fine for unsigned integers for any given Length but for negative integers, if the integer is -99 and length is 8 then the output is 10011100 however correct answer is 10011101. so, basically, the "+1" step is missing. How can I code it without adding a new library or using arrays? </p>
<p>$</p>
<... | 3 | 1,212 |
R: create generic plot in ggplot2 | <p>Trying to create a line chart representing a simple slopes analysis. I created the plot using the builtin plot() command. How would I rewrite this code for ggplot2? I tried in ggplot2 but couldn't achieve this figure so I wrote using plot(). </p>
<p>Here is the code I used to create my plot.</p>
<pre><code>yrange ... | 3 | 1,159 |
Input form disable when one is select | <p>I have an simple form. 2 inputs and 3 radio buttons.</p>
<p>I need to make something like this:</p>
<ul>
<li>When I click in first input (and START typing) second input and radio`s get disabled and when I click in Radio inputs are disabled. And so one.</li>
</ul>
<p><strong>My form</strong>:</p>
<pre><code> <... | 3 | 1,324 |
Duplicate text field with jQuery and store in DB in Wordpress? | <p>This time I really require assistance in creating a multiple text fields and save them in database. For now I know how create additional text fields with 'add' link, but if I create, let's say, 10 text fields and populate them with text only the first one is added to database, other 9 not, and I need to know why?? (... | 3 | 1,418 |
Jfreechart - NullPointerException while validating Jpanel | <p>I'm coding a Gantt chart using JFreechart - The chartPanel was created and added to an existing JPanel. However, after the JPanel validate() method, am seeing the NullPointerException in GradientBarPainter.splitHorizontalBar()</p>
<p>The exception is at the end of the post. Any idea of how to solve this error? </p>... | 3 | 1,944 |
Displaying DIVs side by side | <p>I want to display it like this:</p>
<p>.
<a href="https://i.stack.imgur.com/PGTxj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PGTxj.png" alt="enter image description here" /></a></p>
<p>However the container wont center / cover the entire screen for the other columns to be side by side (I left... | 3 | 1,088 |
How to extract data from one file based on the IDs for another | <p>I am running code where I take one gene from a gene list, find it's Sentinel gene in Data1, and then select all rows with a matching rssnp1 ID to the gene at it's Sentinel row. However, currently my code runs this at only one gene at a time, I am trying to run it so it will iterate through each gene in my gene list ... | 3 | 1,269 |
Not able to zoom while video recording using media recorder android | <p>I want to implement zoom function while video recording in android.But, I am not able to access Camera <strong>parameters</strong> or Camera <strong>startSmoothZoom()</strong> method in neither main activity nor surface class. If you access camera parametera in media recorder method(<strong>prepareMediaRecorder()</s... | 3 | 5,098 |
Draworder OpenGL - larger objects over smaller | <p>In my OpenGL ES Android game I am trying draw shapes in succesive order in accordance with their z-value (that is position in the z-plane). This means to draw the smallest most distant shapes (textures) first and then draw the larger. I have stored the shapes properties in an arraylist and when drawing and updating ... | 3 | 1,375 |
PHPMailer class with Gmail, sending two emails each time | <p>I have a console application that posts to a PHP page that (using Gmail and PHPMailer class) emails the user. </p>
<p>The problem is, the user always receives the email twice!</p>
<p>Here is my post from C# (I pass in uid for logging purposes.)</p>
<pre><code>public static void PostUpdate(string uid)
{
WebReq... | 3 | 1,250 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.