title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
issue with array indexing | <p>So I'll jump right to it...<br>
I am a test automation engineer, and I am making a "keyword driven" testing system that is powered with JSON, which tie in with Selenium tests to run on a web browser.</p>
<p>The "keywords" are stored as XML files, and I have a JavaScript function which loads these keywords into an a... | 3 | 1,792 |
Sort divs based on array order and add a title and count | <p>I have html that looks like the following:</p>
<pre><code><div id="mainboard">
<div id="card"><div class="price">20</div><div class="style">blue</div></div>
<div id="card"><div class="price">23</div><div class="style">red</div></div&... | 3 | 1,447 |
Navigation drawer is not doing anything on click of the item | <p>I am trying to achieve the following scenario.</p>
<p>An activity containing a view pager having a navigation drawer(opens when swiped left to right) and a search bar that opens when swiped right to left.</p>
<p><strong>BaseActivity</strong></p>
<pre><code>import android.os.Bundle;
import android.support.v4.app.F... | 3 | 2,683 |
SAPUI5 filter Table dynamically on initialization with odata v4 | <p>I created a view in sap hana that I expose using odata v4 and this part is working well.</p>
<p>Now I'm trying to add a table in the details page of a worklist using the data from my view filtered by the ID of the object I display in the details page.</p>
<p>What I have tried so far is to do in directly in XML by do... | 3 | 1,322 |
Simple RNN(LSTM) model doesn't make progress | <p>I have <code>np_final_x(71520, 2, 50)</code> and <code>np_final_y(71520, 1, 50)</code> corpus</p>
<p><a href="https://www.dropbox.com/s/k15dtcak78jaf34/np_final_x_len_2.npy?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/k15dtcak78jaf34/np_final_x_len_2.npy?dl=0</a>
<a href="https://www.dropbox.com/s/555lh... | 3 | 1,100 |
Angular Material Custom Theme not Working | <p>I'm trying to use a custom theme on Angular Material but I can't get it to work. What am I doing wrong?</p>
<p>I have created a SCSS file that contains the new colors of the theme:</p>
<pre><code>@import '~@angular/material/theming';
@include mat-core();
$md-sprimary: (
50 : #eaeaea,
100 : #cacaca,
200... | 3 | 1,084 |
Heroku deployment with Jekyll ([4] ERROR: No application configured, nothing to run) | <p>I do not understand how Jekyll/Heroku can come back with nothing to run - I followed the Jekyll Heroku instructions on the official Heroku docs ( I fixed a favicon error as well) and I just don't know what I'm missing at this point. I then configured the app for Puma & I can't seem to find the solution after che... | 3 | 1,255 |
Hanoi Towers BackTracking bad_alloc | <p>I was reading <a href="https://math.stackexchange.com/questions/1971574/generalized-problem-of-hanoi-towers">this post</a> and I tried to implement a backtracking algorithm on this version of Hanoi Towers, using the states defined in the first part of the post. Basically, it works for relative small numbers, but th... | 3 | 1,555 |
GridBag Layout acting as a flow layout , within a card layout. What am I doing wrong? | <p>This code uses the card layout, as I want to change the window display rather than have multiple windows (or frames). Therefore I want multiple panels, which seems to work. </p>
<p>However within the panels I want to use the gridbag layout for positioning components. But it's not working! It acts as a flow layout. ... | 3 | 1,428 |
how to get count new message found as per enquiry/ticket with two way conditions | <p>i 'm working with crm application. i developed it finally i'm getting confused how i detect new messages as per flag must have display and message not have to true.</p>
<p>here is my db schema for understanding problem.</p>
<p><img src="https://i.stack.imgur.com/XQiRt.png" alt="enter image description here">
here ... | 3 | 1,365 |
How break after checking / unchecking a node in a treelist | <p>I have a little problem.
i should implement a logic for a treeList which consist from a single parent and more children grouped into more groups by ID's. </p>
<p>I have an action which treats all nodes:</p>
<pre><code>long callerGroup = -1L;
if (callerNode != null)
{
var service = this.tlServices.GetDataRe... | 3 | 1,299 |
MSAccess VBA AfterUpdate SQL code is running for every record instead of the current record | <p>I have an access database that I will be using to track orders and to track inventory levels. When I attempt to add the parts on my order form (<code>sbfrmOrderDetails</code>) to my inventory table (<code>tblInventory</code>) my VBA code does not execute as planned.</p>
<p>Please note that I have stripped down the... | 3 | 1,244 |
Why doesn't xsl:sort work when using xsl:key? | <p>Given this XML:</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<data>
<chapter-section-datasource>
<section id="12" handle="chapter-section">Chapter Section</section>
<entry id="94">
<order handle="1">1</order>
</entr... | 3 | 1,257 |
Rotating an image in a spiral path in android | <p>I have use this code to rotate the <code>ImageView</code> in a spiral path. But after rotating the first circle it comes back to the center and start rotating the next circle. How can I avoid moving the image view back to the center? Thank you </p>
<pre><code>public class MainActivity extends ActionBarActivity impl... | 3 | 1,584 |
Bookmarklet implementation | <p>I'm rephrasing my entire question which previously sounded absurd with this one which is a bit more rational.
I'm implementing a bookmarklet (tutorials from this link <a href="http://net.tutsplus.com/tutorials/javascript-ajax/create-bookmarklets-the-right-way/" rel="nofollow">http://net.tutsplus.com/tutorials/javasc... | 3 | 1,084 |
Jimi(java): Noclassdeffound exception upon Jimi.createJimiWriter | <p>I hesitated to ask this, but i have spent numerous hours messing with environmental variables, I just cannot figure this out:</p>
<p>I am trying to save whatever is displayed on an applet into an image file, after some research i thought JIMI was my best bet
(below is not my original work, but a simple example from... | 3 | 3,878 |
Elasticsearch array of an object using logstash | <p>I have a mysql database working as a primary database and i'm ingesting data into elasticsearch from mysql using logstash. I have successfully indexed the users table into elasticsearch and it is working perfectly fine however, my users table has fields interest_id and interest_name which contains the ids and names ... | 3 | 1,286 |
Can TriggerDagRunOperator have a conf that is a number derived from a xcom or task? | <p>I'm newer to airflow, but I'm having difficulties really understanding how to pass small xcom values around. Sometimes, this seems to work without an issue; other times, it takes me hours. Here's an example that has really been getting me.</p>
<p>I'm trying to trigger an external DAG, and I need to pass a number as ... | 3 | 1,655 |
How to plot the decision boundary line which same with the decision boundary of plt.contourf? | <p>From <a href="https://www.llipe.com/2017/04/19/programando-un-clasificador-perceptron-en-python/" rel="nofollow noreferrer">this</a> link:</p>
<p><a href="https://i.stack.imgur.com/3uaj1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3uaj1.png" alt="enter image description here"></a>
As shown in... | 3 | 1,212 |
In Java, I am doing a project, and I can compile my code in Eclipse, but anywhere else I get a runtime exception | <pre><code>import java.util.*;
import java.io.*;
public class Tester
{
public static void main(String[] args)
{
Scanner reader = new Scanner(System.in);
int cases = reader.nextInt();
for(int i = 0; i < cases; i++)
{
int len = reader.nextInt();
int ... | 3 | 1,038 |
How to apply filter across two templates | <p>In another thread another developer helped me by providing the awesome answer below. </p>
<p>Basically two templates are used to retrieve all of the data I need to present in my table. </p>
<p>My question now is how do I now apply a filter that will filter to both templates? I can successfully use <code>xsl:value-... | 3 | 1,569 |
convert into bind_param type | <p>I'm still new on php bind_param and i'm wandering how to convert this (search) part of the script to avoid sql injection?
And i'm still stuck (actually do not know what to do with this: </p>
<pre><code> $rest.="where name like '%".$name."%'";
$rest.="where country='".$country."'
$rest.="where ip = '".$ip."' ... | 3 | 1,695 |
How to make a proxy for my backend for my angular app during the dev? | <p>I'm trying to make sure that every browser call to an URL that is inside the "api" path is redirect to another (dev) server.</p>
<p>So it would mean that when my angular app is requesting :</p>
<p>https://localhost:4200/api/some/feature --> https://localhost:7276/api/some/feature should be requested</p>... | 3 | 1,144 |
Pyspark + Avro type conversion problems after transformation | <p>I use Structured Streaming to read Avro records from a Kafka topic A, do some transformations and write as Avro to another Kafka topic B. I use <a href="https://spark.apache.org/docs/3.0.3/sql-data-sources-avro.html#to_avro-and-from_avro" rel="nofollow noreferrer">those functions</a> for serializing and deserializin... | 3 | 6,202 |
Change the label font size but also changed the x axia labels order when using ggtext | <p>My <a href="https://stackoverflow.com/questions/67161798/how-to-use-ggtext-change-the-label-size-but-not-the-legend-font-size">first question</a> is not completely solved by @teunbrand.</p>
<p>He gave me a piece of advice but I'm confused by it.</p>
<p>The x axis label is out of order after usting the <code>big_labe... | 3 | 6,133 |
Typescript-Angular exported enum is undefined | <p>I have an Angular project with some components and some enums.
I was able to successfully use the enums in one of my components, but now that I try to do the same in other components, undefined is returned.</p>
<p><strong>Component in which the enums work:</strong></p>
<pre><code>import { Component, OnInit } from '@... | 3 | 1,579 |
Creating a task in Asana with JS (fail) and CURL (work) | <p>I am writing a quotation system for myself.</p>
<p>I have this web page for quotations, which does:<br />
a) send an email to the customer (done) with the quoted items<br />
b) create a record inside a google spreadsheet (done)<br />
c) create a task in asana (fail)</p>
<p>For the last 2 days I have been surfing and... | 3 | 1,441 |
HQL generate wrong query with complex insert | <p>I need to insert a huge amount of data in a table that is in FK with another one that has a two big fields in Eager.</p>
<p>The HQL query is:</p>
<pre><code>insert into DeviceAuthorizationEntry (id, osc, moduleName, delegateModule, functionName, groupName, owner)
select concat(item0.id.uuid, '1413971469473'), ... | 3 | 1,053 |
What is causing my compilation errors on socket code and how do I fix it? | <p>Here is my code from a tutorial <a href="http://www.codeproject.com/Articles/13071/Programming-Windows-TCP-Sockets-in-C-for-the-Begin#" rel="nofollow">which is here</a>: </p>
<pre><code>//CONNECT TO REMOTE HOST (CLIENT APPLICATION)
//Include the needed header files.
//Don't forget to link libws2_32.a to your progra... | 3 | 1,249 |
PHP preg_replace markdown issue - detecting duplicates | <p>In a project I am building I would like to use markdown as follows</p>
<pre><code>*text* = <em>text</em>
**text** = <strong>text</strong>
***text*** = <strong><em>text</em><strong>
</code></pre>
<p>As those are the only three markdown formats I require, I would like ... | 3 | 1,086 |
Html email and fluid table with changing borders | <p>I have some design requirements for an email template where I have two "challenges":</p>
<ol>
<li>two columns need to flip to one column</li>
<li>some visible border lines need to be switched from vertical to horizontal</li>
</ol>
<p>The following shows how it should look (2 columns on the left for desktop... | 3 | 1,075 |
Build error with map_view, flutter & gradle? | <p>I get a build error using flutter version 1.2.2 and map_view version 0.0.14.</p>
<p>I tried to use this code in build.gradle </p>
<pre><code>classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.2-4'
</code></pre>
<p>I followed all the steps here <a href="https:... | 3 | 1,116 |
Recursive call in php over a json | <p>I have this json data</p>
<pre><code>$innerdata = json_decode('{
"sync_block": false,
"contacts": [{
"con_title": "",
"con_fName": "",
"con_lName": "",
"con_job_title": "",
"emails": [{
"email... | 3 | 1,450 |
Using NFC tags to start BLE connection between Android smartphone and Raspberry Pi | <p>Basically, I am working on an Android app that will need to establish BLE connection with a Raspberry Pi whenever the user tap an NFC tag on the phone. The purpose of the app is to play video on a TV via Raspberry Pi when user access the video in the app itself or via NFC tags. I plan to store the MAC address of the... | 3 | 2,442 |
Servlet sends old version of entity (JPA) | <p>When I make a request to my <code>Servlet</code>, it checks the database for any updated <code>Entities</code> (I am using JPA for that). The updated <code>Entity</code> is then fetched and the <code>Servlet</code> is supposed to return the entity as a JSON String. <strong>But</strong> I am getting an <em>old</em> v... | 3 | 1,572 |
ScrollView.FOCUS_UP not working in my project with root layout as scrollView | <p>I know it is silly question but i used many solution which already given by stack Overflow but no one solve my problem, my question is, I want to Scroll Up the layout after clicking on last edittext because keyboard hide the EditText and i am unable to see what is typing.. </p>
<p>Code I am using in onCreate method... | 3 | 3,865 |
To add dynamically in an array of objects(CD)? | <pre><code>#include <iostream>
#include <cstring>
using namespace std;
class CD
{
public :
void getCDdetails(CD *);
void printCDD(CD *) const;
int putCount() const
{
return count;
}
private :
static int count;
char Title[60];
char Artist[60];
char Type;
int Tracks;
};
int CD :... | 3 | 1,592 |
Excel Dynamic Array formula to create a running product of a column | <p>I need to create a running product from a column of numbers (I could use a row, but a column is easier to demonstrate here.) The input might be any arbitrary array. In fact, in the application where I would deploy this, it will not be a range, but rather another dynamic array within a LAMBDA formula. Here is an exa... | 3 | 1,715 |
Printing Maps from Google Maps API JS V3 | <p>I have a single-page web app using Google Maps API JS v3 that our shop manager uses (via Chrome) to print customized directions for our drivers. (The reasons for customization aren't relevant to the issue.) He was able to get the directions, put what he wanted to print into the map view, and it would come out lookin... | 3 | 8,949 |
Date type with Thymeleaf | <p>Working with Thymeleaf i get this error in a form POST method at my html template:</p>
<pre><code>There was an unexpected error (type=Bad Request, status=400).
Validation failed for object='miembro'. Error count: 2
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult... | 3 | 1,545 |
Webscraping - html issue | <p>Ive been trying this code and getting some success but cannot figure out the next step</p>
<pre><code>import pandas as pd
import requests
from termcolor import colored
from bs4 import BeautifulSoup
import requests
import lxml.html as lh
import pprint
import json
url2 = "https://www.procyclingstats.com/ranki... | 3 | 1,479 |
Why restsharp don't get Parameter? | <p>I code C#. In my C# code add parameter "aliasID" and send request without "aliasID".
But when I use Postman, I add "aliasID" and it was sent.</p>
<p>Code</p>
<pre><code>namespace TrainEyeQTech.ViewModel
{
internal static class SetupAPI
{
public static void Register()
... | 3 | 1,197 |
Why mail attachment in php send encoded contents instead of PDF file | <p>Hello Recently i working on php mail attachment but i faced a problem when i send my attachment to somebody email it will show like </p>
<pre><code> This is my first mail.Content-Type: application/octet-stream; name="PankajChandwani.pdf"
Content-Transfer-Encoding: base64
Content-Dispositi... | 3 | 1,041 |
Looping to delete conditional combination in dataframe using dplyr in R | <p>Here it is my data</p>
<pre><code>datex <- c(rep("2021-01-18", 61), rep("2021-01-19", 139))
hourx <- c(0,1,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,16,10,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,11,0,0,0,0,0,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2... | 3 | 20,609 |
Is there a pattern to when Android TTS network voice falls back to local? | <p>I'm trying to use the Android Text-to-Speech feature (engine: com.google.android.tts) in my app to read a long document to a wav file. That basic functionality works very well and it technically does what I'm asking. I want to use one of the voices that requires network connection because they sound a lot clearer.</... | 3 | 1,624 |
Understand C++ pointer lifetime / zombie pointers | <p>After watching CppCons <a href="https://www.youtube.com/watch?v=7bZQeOGhK84" rel="nofollow noreferrer">Will Your Code Survive the Attack of the Zombie Pointers?</a> I'm a bit confused about pointer lifetime and need some clarification.</p>
<p>First some basic understanding. Please correct me if any comments are wro... | 3 | 1,660 |
(R) Count Gaps in Between Months | <p>I have a dataset that looks like the sample below. The MonthYear variable just describes the first occurrence of the UniqueID. The Count1 column counts the number of occurrences of the UniqueID. The Count2 column counts the total number of occurrences of each UniqueID. The MonthCount variable just assigns a numbe... | 3 | 1,367 |
React: playNote() Undefined Function Error | <p>I'll be short, I'm trying to make an piano application that will play notes on mouse click in the first stage of app, later on I want to do that on keyboard buttons. So I have the problem I don't know if I am calling a function properly or even if I'm doing forEach loop properly.</p>
<pre><code>import React, { Comp... | 3 | 1,568 |
Boostrap mix with grid to equal height of row inside .col | <p>I want to set my code to auto-calculate equal height in inside of .col, because for example inside .col I have <code><h2></code> and <code><p></code> which could have different number of rows, so height of this element will be different for every .col, I would like to get same height for all rows inside ... | 3 | 1,430 |
I wrote a request xsl that transforms an xml request to another one but it doesn't work as expected | <p>The Request in xml is :</p>
<pre><code> <NS2:BookTicket xmlns:NS2="http://station.com.ph/schemas/bookTicket">
<NS2:transaction_header>
<NS3:Ticket_id xmlns:NS3="http://station.com.ph/schemas/common-types">
1993</NS3:Ticket_id>
<NS4:request_datetime xmlns:NS4=... | 3 | 1,340 |
How to (easily) wrap a c++ function unto an easy to install R 'package' | <p>Suppose I have an c++ code (see below for a simple example).
I want to make it easy for a journal referee to install/run
it.</p>
<p>So i figured the easiest way is to warp it unto a simplified
R package-like tar.gz file so the referee could install it
by simply invoking install.packages to a local .tar.gz file.... | 3 | 1,779 |
Error in adding background color to section in HTML/CSS | <p>I am trying to add a dark background color to the newsletter section of this website using CSS. Instead nearly the entire page displays the background color. I've checked the the HTML document to make sure I mistakenly left a div or section open, but have found nothing.
Can anyone tell me why my 75% of my page is ... | 3 | 7,068 |
Getting specific information from multidimensional array | <p>I have this multidimensional array, that I decoded from a JSON string, now I would like to output some of the data, but I can't? It's not a problem, if it's a single array.</p>
<p>I already tried some foreach loops, but I can't get it to output the data I want. I keep getting an illegal offset error.</p>
<pre><cod... | 3 | 5,268 |
How to Speed up Frame Rate of Remote Viewer? | <p>So, I built an application that has two parts, the client and the server. The client takes a screenshot, converts that to a byte array, sends that to the server, and then waits for a response to repeat all that. The server takes the byte array, turns that into a screenshot, displays the screenshot, and then tells th... | 3 | 1,047 |
Image wrapped in link overlapped by another floating link in Firefox only, Chrome and IE fine | <p>I have a navigation bar that is proportionaly scaling its size on page resize:</p>
<p>HTML:</p>
<pre><code><div class="wrap">
<div id="breadcrumbs">
<div class="breadcrumbs-insert">
<a href="#"><img src=
"http://i.imgur.com/1gLVM1T.png"></a>
... | 3 | 1,220 |
get text input after submit button or press enter from search bar | <p>I want to know how get an input from search bar</p>
<p>and how to replace image in div</p>
<p>I try to create a simple website to get the picture and then show up because i don't want to download each picture and merge in photoshop</p>
<p>This is i have try.</p>
<p>p.s. It's my free time to explore how to use ht... | 3 | 2,435 |
How should I update progressbar using Ajax and MVC | <p>Being new to JSP I'm trying to get my head around things. Currently I'm trying to create a page which displays the progress of tasks running on the server. I have an undefined nr of running tasks, and I want to show these tasks on my jsp page. I currently have a working solution but the "tasks" div is updated every ... | 3 | 1,025 |
Communication failure between Server and clients in the multiplayer version of a game | <p>I am showing you two classes that are part of a larger game. The first class builds a GUI (A multiplayer lounge) that shows the players joining the game. When a player hits the "Leave" button I want the client to send a "remove" message to the server, that removes the client from the server recor... | 3 | 8,691 |
How to modify the x axis levels without affecting the number of points of the plot? | <p>Need to display the x-axis levels in neatly way without affecting the actual point numbers in the final output. As currently, I am getting x-axis in closely spaced which looks not good while I am showing in powerpoint</p>
<pre><code>library("readxl")
my_data <-read_excel("central_high.xlsx") ... | 3 | 1,776 |
Command PhaseScriptExecution failed with a nonzero exit code [iOS/Flutter] | <p>I have a flutter application, which runs perfectly on Android.</p>
<p>When I'm trying to build and run the application for iOS I am getting the following error:</p>
<blockquote>
<p>Command PhaseScriptExecution failed with a nonzero exit code</p>
</blockquote>
<p>I tried to delete the Podfile.lock and then do --><... | 3 | 9,640 |
C++ Socket API "Heartbeat" | <p>I'm trying to make a simple heartbeat check from client to server and vice-versa, if connection on either is broken off unexpectedly it prints a message and calls closesocket.</p>
<p>I spent 8 hours on this and it still isn't acceptable to my mentor. Right now I got something that works, but if breakpoint is placed ... | 3 | 1,889 |
How to resolve errors in my Search component? React + Firebase | <p>Got an interesting problem and I dont know how to solve it. I built a Search component in my react app that searches in my Firebase realtime database and gives back the posts based on the search value.</p>
<p>It works fine but when I actually search for something, even though it returns the results correctly, it gi... | 3 | 1,987 |
Orbeon form localization using current site's session language | <p>I'm using ORBEON 2018.2.3.201905172253 PE within SAP Commerce (Hybris). From Orbeon documentation and the tests I've run, I understand forms localization works through a language dropdown selector within each form. The thing is, I already have a language selector for my entire website, as usual. </p>
<p>So, let's s... | 3 | 1,640 |
Error in Ipython module memory_profiler, %mprun | <p>As you can see, result of the code below is unfair, because it can't be that iterator spent same time as "return" or "if y:". Why is it? How can I fix it?</p>
<p>In some tests my code is too heavy so I tried to check "memory-spend" of an each row.</p>
<pre class="lang-py prettyprint-override"><code> def hmd(num... | 3 | 2,360 |
I am having a problem building my Node app with webpack | <p>Let me describe my problem. I have developed a Node.js application with ES6, it is a REST API using several Node modules especially from google-cloud because I am using Google Cloud Vision and Translate APIs. </p>
<p>Until now there is no problem, everything works as expected, but things got wrong when I wanted to ... | 3 | 1,119 |
A* Pathfinding - Weird Bug in Multi-Floored Maps | <p>I'm attempting to create a game "dungeon" map generator in Java in the style of roguelike etc. games. I generate rooms randomly, and then connect them with corridors. I'm trying to use A* pathfinding in corridor creation. I currently am creating just one corridor between rooms in the indices 1 and 2, if there is mor... | 3 | 7,696 |
Where to set variables so that they aren't null on postback? | <p>My webpage lets a user select one or more tools from a list of available tools (by dragging from the "available" list to the "selected" list). There is a <code>HiddenTools</code> hidden field that is updated every time the two lists change- the <code><li></code> in the <code>ToolsActive</code> list are stored ... | 3 | 1,454 |
Android, Listview on Scroll Item position issue | <p>I am facing a problem.
I am working on QuickBlox Private chat. I want to show date and time with only last message of sent and get. I achieve that but issue is that when ever I scroll that message listview date and time change position and every scroll it shows with other messages not with last. How can I fix that? ... | 3 | 2,604 |
Jetpack Compose How to access dependency injected view model from everywhere without sending the view model as a parameter? | <p>I am currently developing a customized PopupView to behave like ModalBottomSheetLayout but more manageable and advanced. I want to be able to access this PopupManager class from anywhere without passing it as a parameter to other functions so that the structure I will create is more robust and more manageable. Here ... | 3 | 3,854 |
Insert in SQLite Database - Android | <p>I'm currently working on my Android class project. I have some trouble with the insert statement in the database; I am using SQLite. When I'm running the application my database is correctly created but values are not inserted. I tried to refer my self to online proposals and solutions and i tried implementing it bu... | 3 | 1,513 |
Sorting int field of the wrapper class spring | <p>I have a Navigation class where I am dynamically creating the navigation I am having two tables folder(it is directory that contains files) and content(it is like files or pages that will render the content on the public site). I have created a Navigation class in which I am having a wrapper class for merging the fi... | 3 | 2,543 |
Get index first and last same item in ArrayList? | <p>I have a model :</p>
<pre><code>public class Unprocessed_DistanceTime_D {
private String lat;
private String lng;
private String date;
private String time;
private String counts;
private String userCode;
public String getLat() {
return lat;
}
public void setLat(String l... | 3 | 4,963 |
Storing large structured binary data with Haskell | <p>I'm writing an application that interacts with a large (10-1000 GB) memory-mapped binary file, holding essentially a bunch of objects that refer to each other. I've come up with a mechanism to read/write this data which is effective, but ugly and verbose (imo).</p>
<p><strong>Q: Is there a more elegant way to achie... | 3 | 1,046 |
Can you use a fieldset in Sencha Touch for displaying data? | <p>This is for displaying contact details in an addressbook application.</p>
<p>I am getting a json result set and I would like to display this data nicely formatted in a fieldset.</p>
<p>Is there a way to do that easily? or must I copy the full html output from a fieldset and put it inside a itemTpl such as it appea... | 3 | 1,032 |
Why is text in between bold tags not rendered bold? | <p>I am building a web tool for authors that follows a format we need for our backend. I didn't like a number of pre-made solutions for rich text editors as they were having way more features than I would need so I decided to parse my text through a function to detect bold using ** in the text.</p>
<p>I came across a ... | 3 | 4,810 |
Pyqt - Signal emited on Qthread sometimes isn't received | <p>so i have a GUI that uses lots of pexpects to login to a program and retrieve information. So i started integrating that code into a Qthread; everything was working fine, until i remembered to test the error messages, it appears that the emited signal inside the Qthread is sometimes not beeing caught by my main code... | 3 | 1,502 |
Very large, specific 2d array for-loop returning null values in random spots | <p>I have a huge double for loop to fill a 2d array, based on a very specific set of criteria. I'm displaying this 2d array in a JOptionPane; on some runs of the program, I get no "null", on others, I get lots of them. There doesn't appear to be a pattern of where/when it occurs.</p>
<p>This leads me to believe my iss... | 3 | 1,372 |
Downloading Progrees hud hides on scrolling in uitableview cell | <p>cell for row atindexPath delegate code:</p>
<pre><code> if ([[[chatArray objectAtIndex:indexPath.row] objectForKey:@"chat_type"] isEqualToString:@"2"])//video
{
UIImageView *bg = [[UIImageView alloc]init];
UIImageView* chatImg = [[UIImageView alloc]init];
UIButt... | 3 | 2,598 |
How to get helpful intellisense when using a type alias for a string union type as a property of an object or interface? | <p>At work, I'm involved in maintaining our React component library, which we're very slowly in the process of converting to TypeScript. (But my question is about Typescript more generally and not specific to React - that's just how the question has arisen and how I imagine it might arise for many others!)</p>
<p>Like ... | 3 | 2,206 |
How to use injectManifest in Workbox with Parcel-bundler? | <p>I am building a service worker for my PWA with Workbox.</p>
<p>service-worker.js</p>
<pre><code>import { registerRoute } from 'workbox-routing';
import { NetworkFirst } from 'workbox-strategies';
import { CacheFirst, StaleWhileRevalidate } from 'workbox-strategies';
import { ExpirationPlugin } from 'workbox-expirati... | 3 | 1,050 |
Sticky footer doesn't work | <p>Hi I know that there have been a lot of questions about this before but I can't seem to find my problem with the footer.</p>
<p><a href="https://stackoverflow.com/questions/16093530/my-sticky-footer-doesnt-work">This did a lot already</a> but when i scroll down, does my footer stay at the same place as it was when ... | 3 | 2,237 |
Dynamic drop down list not working | <p>I am trying to pass a js var to a php var, then use that php var to go through and array and populate a drop down list. I can see that the php var is getting the right value but list2 and list3 are not being populated.</p>
<p>If I put the string in myself <code>$list1 = 'somestring';</code> it works, but when I use... | 3 | 1,339 |
Swing requires createBufferStrategy(2) to properly paint | <p>I have some grids that is painted to screen one by one. I use arrow keys to move grids around as a group. Swing is said to be doubleBuffered by default so I believe <code>frame.createBufferStrategy(2)</code> is a bad practice but the problem is when I don't use manual double buffering, the grids are misaligned and s... | 3 | 2,343 |
Randomizing Pairs of Shapes appearing on the screen in Python using the Ursina Game Engine | <p>I want a randomized pair of shapes to appear on the screen when the game is run and this pair removed and replaced with another pair of shapes when the left shift or right shift button on the keyboard is pressed, using the Ursina Engine in Python. Currently, my code works but it always breaks down when the third pai... | 3 | 1,330 |
How to remove parent array index from array | <p>I want to remove parent array index in array.</p>
<p>Following is my array.</p>
<pre><code>Array
(
[0] => Array
(
[0] => Array
(
[id] => 296
[username] => David0123
[profile_slug] => david-love
... | 3 | 1,111 |
Making my `CustomDialogFragment` generic | <p>So i want to make my <code>CustomArrayAdapter</code> class generic.</p>
<p>CustomDialogFragmentNotGeneric:</p>
<pre><code>public class CustomDialogFragment extends DialogFragment
{
TextView listViewItemTextView;
ArrayAdapter<String> arrayAdapter;
ListView dialogListView;
String[] items = {"He... | 3 | 2,320 |
Android getting Only the original thread that created error with useing listerner again | <p>In simple part of my application i connect to internet to getting data from server, for managing original thread i use simple interface as listener to send data after fetch from server to main thread, but i get this error again:</p>
<pre><code>Only the original thread that created a view hierarchy can touch its vie... | 3 | 1,669 |
Uploading a File shows Null using ion library | <p>I am trying to upload a <strong>PDF file</strong> to server but am getting a Null toast according to my method , i tested the file path in a TextView is visible but when it comes to uplaoding it seems not seeing the <strong>PDF file</strong> , am using <code>ion library</code>. Below is my code sample.</p>
<pre><co... | 3 | 5,118 |
My axes won't show up | <p>I'm trying to implement a class drawing a 3D indicator such as this one : <a href="https://i.stack.imgur.com/l632N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l632N.png" alt="enter image description here"></a></p>
<p>indicating the current rotation of the camera by drawing each axis at every ... | 3 | 1,264 |
Insert multiple items in List before inserting into database | <p>So I have the relation in the database as follows: </p>
<p><img src="https://i.stack.imgur.com/LfeTM.jpg" alt="enter image description here"></p>
<p>The idea is to add multiple product categories into the list before inserting it into the database. </p>
<p>I'm using ADO.NET framework, and the mapped class product... | 3 | 1,121 |
php code appears in browser instead of executing | <p>I have looked at different answers online and none of them seem to be working.</p>
<p>The problem is that my php code displays instead of executing. I am using php version 7.2.6 on windows 10 and have apache working on xampp. Here is my httpd.conf file code.</p>
<pre><code>#
# This is the main Apache HTTP server c... | 3 | 7,217 |
How do you pass pointers/arrays as parameters to a GTK callback function? | <p>I want to pass a list of integers, <code>numbers</code> to a callback function <code>printer</code>, which will print the contents of <code>numbers</code> when a button is pressed. The last post in <a href="https://ubuntuforums.org/archive/index.php/t-1367759.html" rel="nofollow noreferrer">this</a> forum thread sug... | 3 | 1,070 |
Java application deployed on Jetty gives HTTP ERROR 404 | <p>I am deploying a Java application to Jetty. Use Gradle for build task. </p>
<p>This is what I get upon accessing the /login page of my application:</p>
<p><a href="https://i.stack.imgur.com/UvGIF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UvGIF.png" alt="enter image description here"></a></... | 3 | 4,219 |
The requested resource is not available when run project | <p>Need help in running my jsf project.
web.xml is : </p>
<pre><code>xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns... | 3 | 4,769 |
I don't have errors, but my app keeps closing | <p>I have no Problem in based on the codes but why my app is keep closing when I run it
I am a beginner in java
I am making a quiz app for my thesis
ps I only copy the codes in youtube and edit it
Please help me to open my app</p>
<p>MainActivity.java</p>
<p>LtoQuiz.java</p>
<pre><code>package com.example.ltoexa... | 3 | 5,796 |
how to get the current added in the table without getting all the data | <p>guys im trying to make a simple commenting system, that when i click the submit the fields will automatically save in the database then fetch it using ajax. but im getting all the data repeatedly instead of getting the recently added data in the database here is the code:</p>
<pre><code> <div id="wrap-body"> ... | 3 | 1,081 |
how to retrieve form posts via json | <p>Hey all i am trying to figure out how to go about getting my forms values that are sent via ajax json in the php script.</p>
<pre><code>$.ajax
({
type: "POST",
url: "http://www.xxx.com/cart/gateway",
dataType: 'json',
async: false,
contentType: "json",
data: JSON.stringify({ "unique_id": $("... | 3 | 1,641 |
Spring boot 404 not found | <p>Hello I am struggling to figure out what is my issue. Teacher did this in eclipse. I am on Intelleji. I made a project with Java 17 and the SDK 17 too. Spring boot 3.0.0 m1</p>
<p>It is basic code but when I try to get it working i get error 404. Driving me nuts. If anyone sees something that I am not seeing i would... | 3 | 2,721 |
Entity Frame Work Core 6.0.1 is still trying to using a column I deleted from an Entity, when I add rows and Save | <p>Entity Frame Work Core 6.0.1 is still trying to using a column I deleted from an Entity, when I add rows and Save. I get the error:</p>
<blockquote>
<p>"message": "Invalid column name ''.\r\nInvalid column name
'PlanTypeId'.",
"type": "Microsoft.Data.SqlClient.SqlException",
&... | 3 | 1,200 |
tinymce suddenly r is not constructor q.getwin is undefined | <p>I have been using an ancient version of tinyMCE for 10 years now with no problems. majorVersion:"3",minorVersion:"2.7",releaseDate:"2009-09-22" Since there were no problems and it did what I wanted I never bothered upgrading to a newer release. Implementing a newer version would require changing every script which ... | 3 | 2,396 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.