title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Java - Overloading and Overriding
<pre><code>01 class SubClass extends SuperClass {} 02 class AppSuperClass { 03 /** 04 * @param superClass 05 */ 06 public void print(SuperClass superClass) { 07 System.out.println("AppSuperClass:superclass is parameter"); 08 09 } 10 /** 11 * @par...
3
1,055
Broken drawing pencil
<p>But in the implementation, I ran into a thing that was not clear to me.</p> <p>Working pencil implementation code:</p> <pre><code>import sys from PyQt5.QtCore import QPoint, QRect, QSize, Qt from PyQt5.QtGui import QPainter, QPen, QIcon, QPixmap, QColor from PyQt5.QtWidgets import (QAction, QApplication, QMainWind...
3
2,148
Changing an image on hover while scaling it
<p>I need to get the image to change onmouseenter/hover to a different image. I looked around and found a lot of rollover solutions but that won't work for me because I need to scale the image on hover as well.</p> <p>Also the last image in #recent appears to be broken, hovering over the #galleries section has a link ...
3
2,383
SQL Server 2014 stored procedure is slow
<p>I have a stored procedure to calculate receipt and up to today I didn't have any problems with it until I had to execute it in a database with 100'000 rows. It's much too slow and runs for at least 3 hours, and it's not finished yet.. </p> <p>Is there a way to optimize this ? </p> <p>Here the code:</p> <pre><code...
3
1,467
IIS Queuing Requests?
<p>I’ve created a Windows 10 Universal App using MvvmCross and Stephen Cleary’s excellent AsyncEx library.</p> <p><strong>Update 27/10/2015 15:43 - Stephen has answered the question. Tested and proven correct.</strong></p> <p>In a view, I bind a ListView to a property in the ViewModel that asynchronously loads a coll...
3
1,510
Function returns true but if statement says otherwise
<p>I need someone with fresh eyes. I have a function that is checking to see if they have access to that topic, or section in my discussion board. This is the problem. I don't know if i'm typing something incorrectly.</p> <p>The function is returning bool(true) and Granted (For Debugging)</p> <p>My if statement is e...
3
1,268
R script to perl?
<p>I have an R script I want to use to parse a file and get some info out of it, but the file is 44 GB.</p> <p>Can someone help me write this in a programming language that is faster in reading files?</p> <p>The script is pretty simple:</p> <pre><code>ld &lt;- read.table("plink-inter-chr---ld-window-r2-0.ld", header...
3
1,404
How to insert a variable in a SPARQL query with triple-quotation (""") in SPARQLWrapper (Jupyter notebook)
<p>Very simple question about inserting a varaible in a SPARQL query in the Wrapper library. Example below in a Jupyter notebook, I defined a variable <code>'q'</code> outside SPARQL query, and would like to use it within a SPARQL query. I could not find out how to escape triple-quotation (<code>&quot;&quot;&quot;</cod...
3
1,291
Selecting an Object type based on its type with JSON conditional if then logic
<p>I have an object with properties that can be on 3 types. However, it should only display the property of the JSON document presented. Here is the schema with all the product options:</p> <pre><code> { &quot;#schema&quot;: &quot;https://json-schema.org/draft-07/schema#&quot;, ...
3
1,460
Weird php file under laravel5.8 public folder
<p>Under my <em>Laravel</em> application's public folder, there are some suspicious<code>php</code> files with weird name like "<code>8xmzujk2.php</code>". </p> <p>Even though I try to delete those files one or two times, those files appear again after two or three days. I use the window server with apache. There are ...
3
1,392
Multi-threaded file reading produces the same result for each thread
<p>Basically, the issue I am having is in the title, I am trying to create a multi-threaded application to read and sum up the contents of a file, this works correctly with one thread. However, when more are introduced they come out with the same output. How do I fix this?</p> <p>The code</p> <pre><code>void *sumThre...
3
1,697
Changes made in HTML file are not visible on the webpage
<p>I am creating a footer for my webpage, but whatever changes I make to the CSS and HTML file it is not being reflected or visible on the webpage.</p> <p>I have been following a YouTube tutorial and have been completing every step displayed in that video, surprisingly the changes are not being reflected on my webpage ...
3
1,896
Unable to open /dev/ttyUSB0 while debugging with Visual Studio Code on Linux
<p>I have noticed that attempts to open /dev/ttyUSB0 will fail when I am running my code with the VSCode debugger. </p> <p>The same code will work correctly when I run the program in gdb on the command line.</p> <p>main.cpp:</p> <pre><code>#include &lt;iostream&gt; #include &lt;fcntl.h&gt; int main(int argc, char**...
3
1,426
I want to display values on textview through JSONParser using given url
<p>I want to display about_builder of given <code>JSON</code> url, but I am not able to declare properly <code>JSONObject</code> and <code>JSONArray</code> on <code>MainActivity</code>, so please anyone help me to display the data on <code>TextView</code>. Error shown: </p> <blockquote> <p>java.lang.RuntimeExceptio...
3
1,623
R: kmeans on matrix (100x21)
<p>I have a question about Kmeans in R. I have a dataframe like variable data_file. My question is, how can I perform kmeans on my data? If anyone has any suggestion, you are more than welcome. Thank you!</p> <pre><code>&gt; data_file WT_Sham WT_Sham.1 WT_Sham.2 WT_Sham.3 WT_Sham.4 WT_Sham.5 WT_CS...
3
1,088
forming clusters/groups in a dataset based on unique values from some of the columns using R
<p>I have a following dataset, this is a sample dataset which depicts the Products and its features(in each columns). It contains 12 features/columns for the 21 Products/records.</p> <pre><code>Data.df &lt;- structure(list(Product.group = c(&quot;A Box&quot;, &quot;A Box&quot;, &quot;A Box&quot;, &quot;A Box&quot;, &q...
3
2,487
AWS SES: Adding a topic to an existing contact list (NotFoundException - List doesn't contain Topic)
<p>I have a SES (AWS Simple Email Service) contact list where each contact has a list of topic preferences, e.g.</p> <pre class="lang-json prettyprint-override"><code>// aws sesv2 get-contact-list --contact-list-name my_contact_list { &quot;ContactListName&quot;: &quot;my_contact_list&quot;, &quot;Topics&quot;: [ ...
3
1,603
Unable to install ref-struct module on nodejs 12.14.0
<p>i am trying to install ref-struct module using following command :</p> <pre><code> npm install ref-struct </code></pre> <p>Environment specification : <br>nodejs : <strong>12.14.0</strong> <br>npm : <strong>6.13.4</strong></p> <p>Error i am getting error :<br></p> <p><a href="https://i.stack.imgur.com/VZxeX.png...
3
8,636
Getting "Server returned HTTP response code: 400" while connecting to FCM from Server app
<p>I'm trying to access FCM from my server app. Checked the example provided into <a href="https://www.zoftino.com/android-notification-data-messages-from-app-server-using-firebase-cloud-messaging" rel="nofollow noreferrer">here</a>! But getting error:</p> <pre><code>java.io.IOException: Server returned HTTP response ...
3
1,363
CGAL Segmentation Fault using CGAL::create_offset_polygons_2
<p>I'm trying the CGAL library. Specifically the straight skeleton package. I'm getting a segmentation fault when executing one of the simple examples in the documentation and I don't know if it is a possible bug or I am doing something wrong. I appreciate any help. Thanks in advance.</p> <p>This is the example:</p> ...
3
4,714
Why is my cd command not working?
<p>I'm trying to implement the cd command in C. It should be this simple</p> <pre><code>printf("change directory to %s\n" , argv[2]); chdir(argv[2]); </code></pre> <p>Why doesn't it work for me? The code is here in a complete program which does some other things as well. I could create a minimal example if we must. <...
3
1,517
Failure to read 'pushed' database
<p>I'm an android developer, I'm using the questiod SQLite manager to view my database schema on eclipse indigo. So far, i have created a database successfully , i.e., it does not show me any error.</p> <p>The database is created - I can see the schema , the tables and their data types (only in sqlite). Instead of man...
3
2,233
how to add contact group to my own account in Android 4.2
<p>I'm developing an Android account app. Now I can add my own account in Android. But when I open the Contacts app and switch to group pager, it shows me "<strong>No groups. To create groups you need an account.</strong>". So how to let android know my account can add a group?</p> <p>Below is my xml file:</p> <p>And...
3
6,134
MongoDB Map Reduce
<p>Hi I had following document in collection</p> <pre><code>{ "_id" : ObjectId("5236b303e4b074ca9f4ed453") "Commands":{ "netstat -tulpn":"Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0....
3
3,336
Linked list in Linux kernel freezes machine
<p>I wrote a kernel module that needs to push messages to user space. The idea is that the kernel module buffers the message and signals the user space program, then the user space program goes and gets the message by requesting it over a netlink socket. My problem is that after buffering 90 messages, the machine locks...
3
2,439
Amazon SNS client.publish is inaccessible due to protection level (C#)
<p>I have never worked with SNS before and am using this to try and learn how to send an email through SNS. I found this piece of code online that seems to do what I need. I have already set up the topic and whatnot in the browser and confirmed the connection between the topic and the email I intend to use. Here is the...
3
1,165
How to get Android Application to push notifications after ui thread is closed
<p><strong>How to get push notification working after manually closing UI on Android?</strong></p> <p>Hi, I need some help, Couldn't find any solutions by searching.</p> <p>Application basically is like any other messaging applications, ex. Whatsapp.</p> <p>I have <strong>MessageService</strong> running <strong>as o...
3
3,988
Initialize GLSL layout with glEnableVertexAttribArray
<p>I want to pass arrays of vertices, UV's and normals to the shader and transform them using MVP matrix, so I wrote a simple shader program:</p> <pre><code>#version 330 core //Vertex shader layout(location=0)in vec3 vertexPosition_modelspace; layout(location=1)in vec2 vertexUV; out vec2 UV; uniform mat4 MVP; void m...
3
1,195
Pytorch iter() runs endlessly or throws RecursionError
<p>I am having an issue with Pytorch DataLoader. Whenever I try to load the next batch via the iter()-function the function runs indefinitely. I have also tried running the function in Google Colab and it returns a RecursionError. Here is the iteration function:</p> <pre><code>def create_data_loader(df, tokenizer, max_...
3
1,295
Spark:Cannot saveTextFile
<p>I want to <code>saveAsTextFile</code>, always meet <code>FileAlreadyExistsException</code>.</p> <pre><code>output_path = &quot;dgs://user/tmp/20181231&quot; test_rdd = sc.parallelize([&quot;10\t&quot;, &quot;20\t&quot;]) def save_text_file(rdd, file_path, part=4): rdd.saveAsTextFile(file_path) def save_text_file...
3
1,985
Why is Google Geofencing not working in my android app?
<p>Ive added all the necessary code from the <code>google</code> documentation for implementing <code>Geofencing</code> in android. Although I can more or less understand what is going on, im trying to make the process as minimal as possible. Ideally, the user would pick a location and a <code>geofence</code> gets set ...
3
6,100
Datagridview Windows Form
<p>This is my file (test.csv) which was saved by datagridview, the code below reads the file and paste all the values into datagridview. </p> <pre><code>InitializeComponent(); try { //gbSeries.Enabled = false; //AssignValues(); //btnSave.Enabled = true; // read and insert a new line System.IO...
3
1,420
Multiple Images in a Grid using the Microsoft Kinect SDK SlideShow Example
<p>I am trying to use the Microsoft Kinect SDK SlideShow example as the basis for a new project where I can display 8 images in a grid which can be animated using a Storyboard. However, when I run the application, none of the images display. I realize that all of the images will be the same right now given the binding ...
3
3,458
Trying to replicate an IR signal from a remote with a unknown protocol on ESP8266 using Arduino
<p>I have some problems with resending IR signals from a remote to control my shutters.</p> <p>I recorded the raw IR codes, but even another Arduino does not recieve anything. It does not print any data.</p> <p>I am a bit confused about the library ESP8266irRemote. It needs a frequency for sending raw ir data. As the t...
3
2,327
SQL Server - When selecting how to propagate values on the top level of a tree? (SQL Fiddle included)
<p>I need to propagate values on top level of tree:</p> <pre><code>CREATE TABLE [dbo].[area]( [id] [int] IDENTITY(1,1) NOT NULL, [name] [varchar](50) NOT NULL, [parent_id] [int] NULL, [color] [varchar](50) NULL, [priority] [int] NULL) insert into area values('root', NULL, NULL, NULL); insert into a...
3
1,884
Cleartext HTTP traffic to xxxx not permitted at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod
<p>i am just new to xamarian mobile application development. i have simple task to done just login functionality but i can't achieve the goal. i du the stuff as like in MainPage.xml</p> <pre><code> public async void BtnLogin_Clicked(object sender, EventArgs e) { //var vm = new LoginViewModel(); ...
3
2,182
How to display Parameter Window data to a Label in VISIO
<p>I am trying to assign value to a LABEL in VISIO. But it is not working. Can you help me.</p> <p>After I drag and drop my component on the right click I am giving an option &quot;ADD STATION&quot; this will add a LABEL to the component and after that I want to get value from the Parameter window and display it into t...
3
1,164
search inside child Array of objects - JavaScript
<p>Currently i have below Array of Objects</p> <pre><code>obj = [ { "id":28, cities: [ { cityTypes: "AA", citySource: "sdsf" }, { cityTypes: "BB", citySource: "sdsgf" }, { ...
3
1,099
Spring serialization error for AmazonS3 client
<p>I've got a weird problem which I can't really understand.</p> <p>I've a got a code to upload a file to AWS S3 bucket using AmazonS3 client. I've got a try-catch block where I catch any exception and in catch block I throw my defined exception which is handled by controller method @ExceptionHandler and should return ...
3
3,935
Exit out of a console connection in Python
<p>I am working on some python code to log into a whitebox device that houses a virtual application (VTA). There will be two different VTAs installed and the code will log into the physical device, then log into the VTA using a virsh console (Name of VTA).</p> <p>The issue I am running into is exiting one VTA and then ...
3
2,091
Polmorphism application problem in C language
<p>this is my first question in stackowerflow. So i'm excited :) I am trying to practice polymorphism in C. I have read many articles. I wrote a small sample code with what I understood. my goal is to create one shape class. this class includes field and length methods. The rectangle and circle classes that derive from...
3
1,717
How to automatically update the details on the html page without refresh
<p>When I click on the update button the code works successfully the data gets change but I have to refresh the page in order to view the changes. </p> <p>What can I do in this code so that as soon as I hit enter the first name and last name change is reflected without the need to manually refresh the page.</p> <p>Pr...
3
1,172
Coverage report for unit test
<p>I'm trying to get coverage report for my unit test, but BUILD always FAIL.</p> <p>I'm using this tutorial (<a href="http://blog.pboos.ch/2011/06/coverage-fo-android-tests/comment-page-1/#comment-2512" rel="nofollow">blog.pboos</a>) step-by-step.</p> <p>Everything goes fine, except last step when i run ant coverage...
3
2,063
The getter was called on null but the widgets still builds fine
<p>I'm trying to implement Provider instead of using State so after reading some tutorials, that are little hard to me to understand, because I didn't find something clear to say: "You're going to use Firebase, then here you should use ChangeNotifierProvider or Provider or StreamProvider etc."</p> <p>So I found a tuto...
3
1,194
How do you send a complex object with an ajax post method to c# controller?
<p>I'm trying to send a complex javascript object to a mvc controller post method. I receive a BadRequest response every time I run the method. It won't let me debug with visual studio, only with the web developer tools. I checked with fiddler to see that my JSON object seems to be in the same order as the View Model. ...
3
2,717
how to display tab in right side using html CSS bootstrap JavaScript
<p>what i am trying to do is in my below code when i click on checkbox2 then tab panes red green and blue is show in right side above the add new button and when i unclick then add new button is coming in original position.</p> <p>i try to make this type functionality <a href="https://kapwi.ng/w/3zPHfzol" rel="nofollow...
3
2,261
MySQL many-many JSON aggregation merging duplicate keys
<p>I'm having trouble returning a JSON representation of a many-many join. My plan was to encode the columns returned using the following JSON format</p> <pre class="lang-json prettyprint-override"><code>{ &quot;dog&quot;: [ &quot;duke&quot; ], &quot;location&quot;: [ &quot;home&quot;, &quot;scotland&...
3
2,249
java error when I use my shuffle() but not when I use my randomNum()
<p>I had my Lottery game working but I needed to change the way the computer generated the winning numbers. At first I generated an array of random numbers but i was getting duplicates. To address this I switch to shuffling an array of 30 numbers and using the first six in the array. Similar to how the first 6 balls...
3
3,210
SlidingDrawer content covered by WebView
<p>I have a WebView and a SlidingDrawer that when openend opens up over the WebView or at least that is the idea. The sliding drawer handle and content shows up above and below the WebView but not on top of the WebView meaning that the WebView's content is visible instead of the SlidingDrawer's content. </p> <pre><c...
3
3,375
nodejs api running within container can not connect to server
<p>I have an api app build with nodejs which connect to a remote PostGresql database. It is working okay when running it using npm.</p> <p>I tried to build this api as docker image and run it. After running this same api app inside a docker container, the api app can no longer communicate with the PostgreSQL database.<...
3
1,509
python not found error in pyspark shell on windows 10
<p>I am trying to install pyspark on windows 10. When I try to create a data frame I was getting error message and the error message is as follow:</p> <pre><code> Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings &gt; Manage App Execution Aliases. ...
3
1,582
uwp TileContent with TileBackgroundImage does not work
<p>In my <code>UWP</code> app I'm using two images to test the <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.toolkit.uwp.notifications.tilepeekimage.hintoverlay?view=win-comm-toolkit-dotnet-stable" rel="nofollow noreferrer">HintOverLay</a> property with a background image. But the tile does not show th...
3
1,318
Android- onPolylineClick don't work?
<p>I am adding polyline on map and I enable <code>setClickable(true)</code> but when I use from <code>Clickable</code> don't work ?</p> <pre><code>private class ParserTask extends AsyncTask&lt;String, Integer, List&lt;List&lt;HashMap&lt;String,String&gt;&gt;&gt;&gt; { @Override protected List&lt;List&lt;HashM...
3
1,136
Android Volley Execution throw an Exception: Unparseable date
<p>I'm getting an exception in <strong>logcart</strong> since last few days, this exception is generated by volley lib but most interesting thing is that it does not harm execution.</p> <p>Anybody, please help why this happening.</p> <p>I'm using volley lib 1.1 with android Target SDK version 27.</p> <pre><code>minS...
3
1,996
Passing parameter id onto another page
<p>I want to pass the id of the student from the display.jsp table in to my student.jsp. I have problem getting the id of the student. I can't get to display or get its values. Please do help. Thanks </p> <p>Here is my jdbc to select the id</p> <pre><code>public Student getStudentInfo(String id) { String SQL ...
3
1,195
what's wrong with this vhdl code?
<p>this structural counter must count in this way: 0...9 0...9 0..3 and again... i think my problems are at the istances at the end, in gtk wave I have problems only with the counter2! I don't know why, please help...</p> <p><a href="http://www.cromo-pharma.it/circuito.jpg" rel="nofollow noreferrer">circuit.. http:/...
3
2,885
SQLAlchemy query renders .filter() as "WHERE false"
<p>My issues comes down to the following code runned with Python3.8 and SQLAlchemy1.3:</p> <pre><code>subquery = ( session.query( Article.id, SubscriberArticle.subscriber_id, SubscriberArticle.data, SubscriberArticle.is_activated, ) .join(SubscriberArticle) .filter(and_( ...
3
1,069
what can I do with this credentials gmail api oauth2 error?
<p>I'm trying to use oauth2 to access my email and interact with the account and a desktop api-receiving and sending emails- I used the example in java with gradle <a href="https://developers.google.com/gmail/api/quickstart/java" rel="nofollow noreferrer">https://developers.google.com/gmail/api/quickstart/java</a> and ...
3
1,857
How can I create an Entity, add it to my database context, and return its attributes from another Controller?
<p>I'm pretty new to asp.net and c# and I recently ran into this problem which I can't seem to work around. Basically, I inherited the IdentityUser class like so, and added my own attributes:</p> <pre><code>public class ApplicationUser : IdentityUser { [ForeignKey(&quot;Wallet&quot;)] public int WalletID { get;...
3
5,403
Radio buttons not toggling, checked or highlighted
<pre><code>import React, { useState, useEffect, Fragment } from &quot;react&quot;; import Button from &quot;../../../Resources/Forms/Button&quot;; import Switch from &quot;../../../Resources/Forms/Switch&quot;; import { POST } from &quot;../../../Utils/api&quot;; import Radio from &quot;../../../Resources/Forms/Radio&q...
3
2,959
Assimp no Textures
<p>I write a Modelloader with Assimp in C++. The problem is that the Textures of the Model not show in the Programm. I am Positive that the Model has Textures. Here is the relevant Code:</p> <p>Vertex Shader:</p> <pre><code>#version 330 in vec4 position; uniform mat4 matrix; layout(location = 1) in vec2 texCoords;...
3
1,250
Debugging CORS requests which fail to set cookies even with CORS headers and withCredentials=true
<p>There are many questions on StackOverflow of users making a CORS request which doesn't properly set cookies. I'm having the same problem, but I'm wondering if Chrome or another browser provides a method to diagnose and understand why the cookies aren't set. </p> <p>I'm finding all kinds of things that can cause thi...
3
1,418
JQuery Not "clicking" on Selection with PhantomJS
<p>I am trying to teach myself how to better use PhantomJS. </p> <p>I have a particular selector (shown below) that I am trying to click on. </p> <pre><code>#s-t-menu &gt; li:nth-child(3) &gt; a </code></pre> <p>I have opened a page, logged in, and now want to follow a link. However, I have been fruitless so far in ...
3
14,356
The code do not fill json variable using httpclient.execute
<p>I am with a problem in my code . I tried many things in this code ,however it does not fix . In the end the error is described. The code do not have error of sintax, however when i run the code, the app does not work. So i debug and noticed that jsonResult is null.</p> <p>When i write in a new app with just main a...
3
2,928
malloc and free with a dynamically changing structure
<p>I am having trouble with moving my pointer in a dynamically changing structure. I have created my code where you can malloc more memory and this seems to be working. The problems that I am running into is how to add to the structure, how to free memory and how to move from structure to structure and print all items...
3
1,418
python generating xml
<p>i am generating an XML template for zabbix using python minidom</p> <pre><code>#!/usr/bin/env python from xml.etree import ElementTree from xml.dom import minidom #from xml.etree.cElementTree import ElementTree from xml.etree.ElementTree import Element, SubElement, Comment import sys def prettify(elem): """re...
3
1,419
How to fix the error "Neither the property nor one of the methods... exist and have public access in class..." with Symfony form
<p>I am trying to build a form with Symfony. From the moment I added the submit button by adding this {{form_widget(userform.Subscription)}}, I am facing with this error message :</p> <p>Neither the property &quot;Subscription&quot; nor one of the methods &quot;Subscription()&quot;, &quot;getSubscription()&quot;/&quot;...
3
3,034
Shell | removing repetitive lines
<p>I need to write a Bash script for removing similar lines from an output file. My output file is always same. </p> <p>Lines 1 &amp; 2 should stay and other lines similar to these two need to be deleted.</p> <pre><code>1: &lt;/UsageData&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt; 2: &lt;UsageData broadcastday=...
3
2,039
Elasticsearch query speed varies greatly on two nodes with almost the same configuration
<p>We have setup two single-node elasticsearch(5.1.1) clusters and indexed almost the same data (about 200G) on them. But when I execute the same query, the speed varies greatly. One is almost twice as fast as the other. Could anybody help me figure out the reason?</p> <p>Here are some details: <strong>The query:</str...
3
10,200
How can I optimize a loop, which is calling an object in Oracle?
<p>Below is the code which needs optimization. </p> <pre><code>for i in 1 .. p_in_util_data_list(j).factlist.count LOOP SELECT count(*) INTO v_non_factor_exists FROM engine_usage_factors WHERE usage_month = v_usage_month AND contract_seq_id = p_in_c...
3
2,240
retain listview items when user rotate phone and keep all data in ArrayAdapter
<p>I have an application with a Listview that I insert a new row by a buttom, but when I rotate the phone, all inside the ListView disappear, and I have tried to retain the data and recreate the ListView, but whitout success... The array <strong>userArray</strong> with the correct data, but when I call the <strong>user...
3
3,522
Android ListView with EditText lose IN EDIT values if scroll up/down
<p>There are so many similar question but none cover my case. I've a ListView with an EditText which is in Editing phase. If I scroll the list so my in edit row goes out of view I lose the entering value.</p> <p>I'm already using OnFocusChangeListener to "store" changed values when user move from a row to another, but...
3
4,362
how to get child elements for specific node XML with linq
<p>i need to get all activities for claim id = "0000526_INS012_5367676737" the below xml </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Header&gt; &lt;SenderID&gt;INS012&lt;/SenderID&gt; &lt;ReceiverID&gt;F-0000526&lt;/ReceiverID&gt; &lt;TransactionDate&gt;04/11/2014 01:07&lt;/Transaction...
3
1,096
Filter DataGridView from datepicker
<p>I have a dataGrid (dataGridView1) in a Windows Form. dataGridView1 is populated from a business object when the form loads. That works as expected:</p> <pre><code>bs.DataSource = oBadger_History.GetChild(); dataGridView1.AutoGenerateColumns = true; dataGridView1.DataSource = bs; </code></pre> <p>I have a dateTim...
3
1,123
Unexpected field change in firebase transaction
<p>I am getting a strange update in some but not all of my data fields with a firebase transaction.</p> <p>I have a tinder style app where I only look at "posts" that have a date in the future. I can see in my db that my test post has a date in the future and opens in the app. If the date is in the past it does not op...
3
1,201
How to get total ETA time and the first ETA time in that block using python
<p>I have a file that I need to get the total ETA time per block and the first ETA time instance of that block. Here is an example of my data. </p> <pre><code>*****START OF YOUTUBE***** VIDEO [download] 0.0% of 5.30MiB at 188.75KiB/s ETA 00:29 [download] 0.1% of 5.30MiB at 474.99KiB/s ETA 00:11 [download] 0.1%...
3
3,640
Cordova read external archive and play
<p>I am creating an app with cordova for android using plugin file-transfer. The download is going to a certain folder but I can't read the file despite indicating the correct path follows the code</p> <pre><code>var uri = encodeURI(mypage); var fileURL = cordova.file.externalDataDirectory + &quot;teste.ogg...
3
1,192
Rabbitmq pod on kubernetes struck in pod initialization state
<p>I am running 3 nodes rabbitmq cluster on the Kubernetes. Kubernetes cluster is running on the AWS spot instances and somehow one of the Kubernetes nodes got terminated unexpectedly on with one of the Rabbitmq pods was running. Now the pod git scheduled ona another node and Since then my rabbitmq pod is stuck in the ...
3
3,729
React and Browserify: Cannot find module ./focusNode
<p>I am using Browserify within Grunt to compile jsx files, and am getting a consistent error whereby the browserify task fails with the following error;</p> <blockquote> <blockquote> <p>Error: Cannot find module './focusNode' from 'C:\project\src...'</p> </blockquote> </blockquote> <p>I have one jsx componen...
3
1,191
Cannot read properties of undefined (reading 'add') in angular 12?
<p>I am upgrading my application from Angular 9 to 12. I used the below command.</p> <pre><code>ng update @angular/core@12 @angular/cli@12 --allow-dirty --force </code></pre> <p>After run the project I am getting <strong>Cannot read properties of undefined (reading 'add')</strong>,i don't know what is wrong Attached s...
3
2,574
annotate grouped linear models with dplyr, broom, and ggplot
<p>I am starting to delve into broom to visualize simple statistical analysis in dplyr/ggplot. I worked out how to get linear models by grouping to work well using by tying in broom::augment.</p> <p>I have three questions:</p> <ol> <li>What is the elegant way to tie in the summary information of the fits (r squared, in...
3
1,031
How transform String in subflow route using spring integration dsl
<p>I coded a very simple example using route in spring integration with transform but is it giving <code>SpelEvaluationException</code>.</p> <p><strong>Code Gateway:</strong></p> <pre><code>@MessagingGateway @Component interface ApiGateway { @Gateway(requestChannel = "integrateAttributeChannel") fun integrateAtt...
3
1,301
How can I import/export from XML Persistence Format files?
<p>I have some XML files which look like that:</p> <pre><code>&lt;xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882' xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:z='#RowsetSchema'&gt; &lt;s:Schema id='RowsetSchema'&gt; &lt;s:ElementType name='row' content='...
3
1,146
How to do a Get request from a form using ajax and node
<p>I am using Node.js with the express framework for my web application. What I am trying to do is get the input from the client side (<strong>index.js</strong>) after a button click and request the information from my route (<strong>app.js</strong>) based off that parameter to display on my index page. I tried using a...
3
1,495
AvCapture / AVCaptureVideoPreviewLayer troubles getting the correct visible image
<p>I am currently having some <strong>huge</strong> troubles getting what I want from <em>AVCapture</em> and <em>AVCaptureVideoPreviewLayer</em> etc.</p> <p>I am currently creating an app (<strong>available for Iphone devices</strong> but would be better if it would also works on ipad) where I want to put a small prev...
3
3,715
UseEffect conflict in React + Typescript
<p>I am developing the game app with React + Typescript. When i refactored the App component from ClassComponent to FC, i had to use UseEffect Hook for implementing the ComponentDidMount method here. Then i had to call the function compareNumbers() when the one of the fields of state changes. Here is the problem. when ...
3
1,163
"Bad request" on creating new session under CentOS, Firefox and Xvfb
<p>When on <code>Mac OS X 10.10</code>, <code>Mozilla Firefox 38.3.0</code> and <code>java version &quot;1.7.0_79&quot;</code> I start Selenium hub and node:</p> <blockquote> <p>java -jar selenium-2.47.1.jar -role hub</p> <p>java -jar selenium-2.47.1.jar -role webdriver -hubHost 127.0.0.1</p> </blockquote> <p>and run t...
3
10,307
How to recreate swapchain after vkAcquireNextImageKHR is VK_SUBOPTIMAL_KHR?
<p>This <a href="https://vulkan-tutorial.com/Drawing_a_triangle/Swap_chain_recreation" rel="nofollow noreferrer">vulkan tutorial</a> discusses swapchain recreation:</p> <blockquote> <p>You could also decide to [recreate the swapchain] that if the swap chain is suboptimal, but I've chosen to proceed anyway in that case ...
3
1,675
Validating form across parent form and formset
<p>I'm using example code here to present the problem so please excuse any errors and please don't get caught up in the architecture. The aim is to allow users to enter Split Payments into my expenses keeping app. Imagine you visit the supermarket and use your credit card to buy some food for £20 and a pair of jeans fo...
3
1,292
Flaky Assert "java.lang.AssertionError: Can't unlock: Not locked!"
<p>While trying to build a H2O Random Forest via the Python API, I got a flaky error. (I've saved the .err file which is empty and the .out file in case somebody wants to look at it.)</p> <pre><code> "java.lang.AssertionError: Can't unlock: Not locked!" </code></pre> <p>in two out of the three times I tried. One fa...
3
1,715
How do I properly position the rank and file labels for a chess game?
<p>I'm making a chess game with the HTML5 canvas and I'm having trouble getting the rank and file labels to display correctly. By labels I mean the 1,2,..,8 and A,B,...H text that is positioned around the outskirts of the board to uniquely identify board positions. Currently I'm using two divs outside of the "board" ...
3
2,027
adding values with sGlide plugin
<p>I am trying to add values of three slider bars together. I have a function to add them but no matter where I call the function it breaks the page. Now the values of each slider is counting live but when i load the page i get a NaN for the value of total even if a slider starts at a position other than 0. </p> <pre>...
3
1,443
Cant get my date converting program to print out a convertion
<p>I'm a little stuck on this date converting program. I'm trying to get it to convert from a numerical mm/dd/yy format to a standard month/day/year format. Im sure its a simple fix I cant see. Any suggestion would be appreciated. </p> <p>So it should run something like this:</p> <blockquote> <p>Enter a date in t...
3
1,374
How to inject controller into WebApp
<p>I am building a library that is supposed to add features into an aspnetcore WebApp.</p> <p>My goal is to add Controllers written in the library to respond to requests on specific routes on the WebApp itself.</p> <p>The first thing I've done is to write an extension method as such:</p> <pre><code>public static IAppli...
3
1,144
show hide accordion tabs depending on php variable session
<p>I am trying to show amount of accordion tabs depending on php variable present in session</p> <p>I have a simple accordion <em>(see bellow)</em>.</p> <p>And I have a switch statement of variables <em>(see bottom)</em>, I am trying to work out a easy way to display some of sections depending on the variable active ...
3
1,391
Retrieve value from query string and send it in a form as HIDDEN VALUE - javascript
<p>I'm trying to figure how to post from an HTML to another page andm, in the meantime, insert values in the hidden form BEFORE send the form itself.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html p...
3
1,198
WPF C#: MenuItem click event won't fire in ListView ItemContainerStyle
<p>I have the following XAML code in a ListView:</p> <pre><code> &lt;ListView.ItemContainerStyle&gt; &lt;Style TargetType="{x:Type ListViewItem}"&gt; &lt;Setter Property="ContextMenu"&gt; &lt;Setter.Value&gt; &lt;ContextMenu&gt; ...
3
1,179
Inserting correctly into database pdo
<p>I am having issues getting the SteamID and vac added to the database everything else is working just can not get these two. Here is my code. The connection information to the database is within the config.php I am not having any problems connecting just inserting correctly. Matter if fact it does not insert at all r...
3
1,158
How do i run/call javascript function in javascript file from html file?
<p>This is the html file conent:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;!-- --&gt; &lt;html&gt; &lt;head&gt; &lt;script src="java_script.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" type="text/css" href="carousel.css"&gt; &lt;link rel="stylesheet" type="text/css" href="vertical_slider...
3
3,604
Fill last svg graphic drawn in pictogram by percentage of height (d3.js)
<p>I am trying to modify this <a href="http://bl.ocks.org/alansmithy/d832fc03f6e6a91e99f4" rel="nofollow">pictogram</a>. I would like to create a similar affect, but with no user input. My aim is to have 50 SVG graphics displayed, but by having the data out of 100. So for instance, if the data input was 27, 13.5 of the...
3
1,306