title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
NoClassDefFoundError when creating non-final non-static classes | <p>I am getting the following exception when trying to use the code from Andriod-SocialButtons project (<a href="https://github.com/championswimmer/Android-SocialButtons" rel="nofollow noreferrer">https://github.com/championswimmer/Android-SocialButtons</a>):</p>
<pre><code>I/art: Rejecting re-init on previously-faile... | 3 | 1,456 |
OpenMp For-Loop Parallelization | <p>I try to parallelize the following piece of code with OpenMP.</p>
<pre><code>#pragma omp parallel for collapse(2)
{
for (int mNdx = 0; mNdx < M; ++mNdx)
{
for (int nNdx = mNdx; nNdx < N; ++nNdx)
{
for (int elemNdx = mNdx; elemNdx <= nNdx; ++elemNdx)
{
... | 3 | 2,024 |
Traverse an STD Class object inside an array | <p>I've send an Array with data through FormData with Ajax.
I json encoded it first before sending it through and decoded it back at the PHP side. </p>
<p>My problem is this: <code>"Trying to get property 'ID' of non-object"</code> Or <code>"Illegal string offset ID"</code></p>
<p>which is weird, since my array is l... | 3 | 1,369 |
Android Spinner issue - The constructor ArrayAdapter<String>(NewSRO, int, String[]) is undefined | <p>I am having a hell of a time with a spinner under PagerAdapter. Please take a look at provide any suggestions you might have. I am simply stump, might be too late at night.
I tried to wrap the code into separate class and then call the class with no success. Next I figured all I would need to do is add <code>getActi... | 3 | 1,372 |
Highlight words with RegEx on RichTextBox with SilverLight | <p>Im trying to highlight words, letters or anything marked in a Regular Expression.
Im using RichTextBox in Silverlight (take care that Silverlight has NOT uses the same .NET Framework than others apps, for example it HAS NOT the TextRange)</p>
<p>Everytime the text has a \r\n or \n\r the pointers moves 4 position fo... | 3 | 1,214 |
I have to click twice to make it work, scroll or click event | <p>I have a viewPager that has 6 pages and in each page there is a <code>PullToRefreshGridView</code>.
I found that I have to click twice to triggered the click event or scroll the GridView.
The first click didn't triggered the click event.
These 6 pages have the same situation.</p>
<p>Please can someone help me to d... | 3 | 2,877 |
pydantic error during dockerfile execution | <p>I have a fastapi project which is running correctly with docker-compose and the normal run. However, when I try to execute the project with only the dockerfile an error occurs.
I HAVE TO read some config from .env and the variables are not updated with dockerfile.</p>
<p>The command fails</p>
<pre><code> docker run ... | 3 | 1,803 |
CommandParameter not passed to CanExecute when databound within a DataGrid (CanExecute parameter is null) | <p>I am using the <a href="https://www.nuget.org/packages/Microsoft.Toolkit.Mvvm/" rel="nofollow noreferrer">Microsoft.Toolkit.Mvvm</a> nuget package for building out a WPF application on .NET Core 3.1.</p>
<p>I'm having an issue with binding the CommandParameter of a button within a DataGridTemplateColumn of a Datagri... | 3 | 1,755 |
MongoDB single node replicaset never finishing instanciating Error: "Cannot use non-local read concern until replica set is finished initializing" | <p>I'm trying to setup a mongodb replicaset as a single node in a docker container because I need to use the transactions to watch over changes in collections.</p>
<p>The issue I'm having is that the replicaset seems to never finish to instanciate and the loog display the following line every seconds:</p>
<pre><code>{&... | 3 | 1,164 |
Jquery Accordion slide next header when previous item removed | <p>Please find this <a href="http://jsfiddle.net/valentynvynogradskyi/yy0a1x54/" rel="nofollow">jsfiddle</a>.</p>
<p>If you click "delete" while item collapsed - then when you unwrap next one, it's header will slide up, like accordions content, anyone have idea why does this happen?</p>
<p>I think it may happen becau... | 3 | 1,124 |
PHP - Sending Email HTML/Plain Text - Syntax Error? | <p>I am trying to implement a simple sendEmails function that sends HTML if possible, if not it sends plain text. However, I am getting a syntax error in the file for some reason, even though if I pass it through an online validator, such as phpcodechecker, it doesn't come up with any problems.</p>
<p>The exact error:... | 3 | 1,830 |
JS Validate - valid input & loagin bar while remote | <p>I'm making a simple javascript form with validation. I've already planned my sintax and everything but I need help with two things:</p>
<p>I've templating my JS to output the error, but how can I change the inputbox color to "green" for example if the input is OK by validation?</p>
<p>My templating error until now... | 3 | 2,492 |
Mccluskey algorithm, javascript | <pre><code><html>
<body>
<script type="text/javascript">
start();
function start() {
var val = "0,1";
var n = 5;
var chars = ['a', 'b', 'c', 'd', 'e'];
gVars = chars.slice(0, n);
for (var i = 0; i < gVars.length; i++)
document.write(gVars[i] + "<br />");
v... | 3 | 2,920 |
How to handle or detect when a maze has no solution? | <p>I am trying to make maze solver in python.</p>
<p>The parameters are as follows </p>
<p>y (int): Start location of y</p>
<p>x (int): Start location of x</p>
<p>The starting point is (y,x), The coordinates for the left-top, left-bottom, right-top, and right-bottom are (0,0), (N,0), (0,N), (N,N), respectively, for... | 3 | 1,920 |
MongoDb Why isn't the data being stored in the database? | <p>I have this mongodb model: </p>
<pre><code> let businessLineDashboardRow = new Schema({
ref: {
type: String
},
riskstatements: {
type: String
},
maximpact: {
type: String
},
controleffectiveness: {
type: String
},
recommendedriskrating: {
type: Stri... | 3 | 1,113 |
specify the return type without an intermediary variable | <p>Sometimes typescript can't infer the return type of a lambda or a method, and I want to specify it by hand to gain type safety.</p>
<p>The problem occurs for instance when using promises or a bit more sophisticated callbacks (for instance with the <code>parsimmon</code> parsing library).</p>
<p>I did not find a wa... | 3 | 1,335 |
mock item in cache directory for unit tests | <p>I'm currently writing unit tests that involve files in the cache directory. The problem that is happening is when the app is launched for the first time the cache related tests fail with errors like:</p>
<blockquote>
<p>The file “5b063e275d506f65ebf1b02d926f19a4” couldn’t be opened because
there is no such file... | 3 | 1,090 |
Enhancing Performance in Student Info App | <p>I've built a simple Student Information platform using <code>Google Sheets.</code> It allows the user to query, update and create new student info on a user interface. Please refer to <a href="https://drive.google.com/open?id=1PVoMoz9MDTH5TI9pYS90aIbFh8PR2sVfja86XCtK3uU" rel="nofollow noreferrer">this sheet</a> to s... | 3 | 1,973 |
jQuery Modal Window Not Firing on Second Link? | <p>Why isn't this jQuery firing up clicking the "Legal" link? It works for the "Add..." Link..</p>
<blockquote>
<p><strong>HTML</strong>></p>
</blockquote>
<pre><code><div id="top_function">
<div class="functions" style="margin-top:7px;"><img src="img/addProfIcon.png" width="32" height="32" />... | 3 | 1,308 |
Call Void on First View Controller from Second View Controller in Xcode | <p>I am using Xcode 4.6.2 and have created a new Tabbed Application using apples template. I have placed a UIWebView on my First View Controller and loaded <a href="http://google.co.uk" rel="nofollow noreferrer">http://google.co.uk</a> into it. On my Second View Controller I have created a button that, when pressed, wi... | 3 | 1,142 |
How to get the date time value from input | <p>I'm using <a href="https://github.com/Eonasdan/bootstrap-datetimepicker" rel="nofollow noreferrer">datetimepicker library</a> from github for my angular project. It's working fine when I select the date and time. But when I add <code>ng-model</code> to the input field, and retrieve it, the input field shows empty. I... | 3 | 1,063 |
Password/Mask field in WPF PropertyGrid is not persisted | <p>I'm trying to build a password (masked) field for a WPF PropertyGrid that's used in a WF re-hoster designer solution. Note that I'm not interested in the security element of it. I just want the password hidden from the user. I really struggled with something I would have thought would have been simple to implemented... | 3 | 1,277 |
Finalizing a Cursor that has not been deactivated or closed - ormlite android sqlcipher | <p>I'm having a problem using the ormlite-android-sqlcipher-4:48 library and SQLCipher.for.Android.v3.1.0 to perform the encryption of SQLite file. I believe that the error happens because I'm using ForeignCollectionField with the property 'eager = false' when true not get an error. I need not always false property to ... | 3 | 2,563 |
Gekko: Is it not possible to use logical conditions sequentially in Gekko Python? | <p>I coded a model in Gekko and faced an error. So, I started checking line by line and found an issue that I couldn't understand. The code below (partial model code is shown, input file <a href="https://drive.google.com/file/d/1FyWf2NktTuRg6RM1urqXHxPlMvJ7iJb-/view?usp=sharing" rel="nofollow noreferrer">link</a>) can ... | 3 | 1,275 |
Unit Testing failing with kotlin IllegalStateException | <p>I'm trying to verify that when I call my createUser interactor in my presenter, a user is created into Firebase. </p>
<p>To do this I simply implemented this test case</p>
<h2>RegisterTest.class</h2>
<pre><code> @Captor
var callbackCaptor: ArgumentCaptor<RegisterInteractor.RegisterCallBack>? = null
... | 3 | 2,884 |
How can I open Django app page within the domain name, not like domain/app_page_url? | <p><strong>Python == 3.6.5</strong></p>
<p><strong>Django == 1.8</strong></p>
<p>Recently purchased domain name, <i><a href="http://www.favourite.uz" rel="nofollow noreferrer">http://www.favourite.uz</a></i>. And placed my Django project to my hosting in cPanel. When I browse domain <i><a href="http://www.favourite.u... | 3 | 2,764 |
How can I break my html table up into chunks django python | <p>So for example I have a table with 3 rows and 100 columns. What I would like to do is split it up by tens so the first table has 3 rows then 10 columns and so on until I have 10 tables all with equal 3 rows and 10 columns. The catch is I dont want repeats so in table one it should be 1-10 then table 2 it should be 1... | 3 | 2,179 |
View is not updated on React | <p>This is my component, I though that the problem was , that I0m using an array of objects an then is not detected as a different array and it doesn't change but now I'm using <code>lodash</code> <code>deepClone</code> function and I have the same problem, nothing changes on the view <code>filterPerBlocked</code> fun... | 3 | 1,979 |
Why can't I see anything? | <p>Just tried a GUI code and at first I could see text, buttons after first compile. Then I tried to hook up the buttons to the RadioButton, after compiling this all I was able to see was plain white.</p>
<p>The .xaml code:</p>
<pre class="lang-xml prettyprint-override"><code><Window x:Class="GUItest.MainWindow... | 3 | 2,165 |
How to call a function in the backend without a click event in kivy | <p>I have a screen which does not have any button but a label that shows my system is active. Then I want to call the main of another python program (separate from kivy) whenever I arrive on that screen. I have tried on_enter() but failed.</p>
<p>I don't know how to really use on_enter() if one can guide me with worki... | 3 | 1,105 |
how can I initial value in the From of antd design? | <p>I am creating a CRM website.
I need to edit my form, which needs to preload the data into the form.
I try to initial my data into the field.
But it shows object Object. Can I know how can I solve this situation?
"</p>
<p>"
"</p>
<p>"
"</p>
<p>"
"</p>
<p>"
"</p>
<p>"... | 3 | 3,257 |
GitHub Actions: Publication of Snapshot fails | <p>As I have understood, it is now possible to publish Snapshot versions to GitHub Packages. Trying to do so using Gradle and GitHub Actions, I'm stumbling upon an error I can't really explain or fix:</p>
<pre><code>> Task :publishMavenJavaPublicationToGitHubPackagesRepository
Caching disabled for task ':publishMave... | 3 | 2,077 |
MongoDB: multiple $lookup between two collections | <p>I've two collections. Player:</p>
<pre><code> [{
"_id": {
"$oid": "6009cf73445ff54178c9f123"
},
"Nb_Player": 10,
"Name_Player": "Roddick",
"Nationality": "United States",
"Score": 7,
"Name_Tournament&q... | 3 | 3,524 |
Accessing environment configs defined in serverless.yaml in standalone nodejs script | <p>I have recently started working on a project in which we are using serverless framework. We are using docker to make dev environment easier to setup.</p>
<p>As part of this docker setup we have created a script that creates S3 buckets & tables among other things. We were earlier defining environment variables in... | 3 | 1,321 |
SpringBoot WAR file deployed into Tomcat running but still returning 404 | <p>I want to demonstrate a simple SpringBoot application being deployed into a separately running Tomcat instance. Even though my application appears to have been deployed, I cannot access it in Tomcat.</p>
<p>I have followed the 'Traditional deployment' instructions in the Spring <a href="https://docs.spring.io/sprin... | 3 | 1,277 |
How to read array structure and get certain data in Php | <p>I want to get the <strong>product_id,variation_id,and quantity</strong> from this cart array. By the way this cart array was return by woocommerce get_cart function. How do I read this array in Php so I can get the data? I need those 3 data to create an order with it.</p>
<pre><code>public function get_cart(){
... | 3 | 4,725 |
Formatting Date with time, only if there is a time on the date | <p>I am trying to sanitize dates that are generated from another application. Sometimes the dates can be of a bad format, when they are, they should be blanked out. The general conditions should be;</p>
<ul>
<li><p>Any dates on or before the year 1900 are considered invalid and blanked out</p></li>
<li><p>Any dates af... | 3 | 1,692 |
My html website overflowing the right way when i click my login screen and back to my main page | <p>first of all thank you for your help. I am desining a new/blog web site, and this is my problem. When i click to my login page and return to previous page and hit the F5 key, my page is overlflowing the right site. How can i fix that?</p>
<p><img src="https://i.stack.imgur.com/PdNxI.jpg" alt="enter image description... | 3 | 3,715 |
How do I count the number of times I tap the screen with onTouchListener? | <p>I'm using a wearable device and I'm making an app for it. I have a timer and some other things that begin when I click a start button. Thing is the start button occupies some space that makes things look crowded. I used a Wearable Action Drawer but it doesn't look good, so I resorted to using onTouchlistner with the... | 3 | 1,304 |
How to get the example MulticastChat operational? | <p>I have so far defined the port number and inetaddress but I still can't understand why I fail to get the example below to present a GUI? I would be appreciated if someone in the community can point out the mistake I am making. Thank you.</p>
<p>Below is the source code of the complete program for the Multicasting i... | 3 | 1,964 |
Get array element having highest date time value from a multidimensional array | <p>I have a array like this </p>
<pre><code>Array
(
[4621162015] => Array
(
[0] => Array
(
[itemId] => 220929621668
[itemName] => Teak Protector - 1ltr water-based teak wood protector - maintain honey colour!
... | 3 | 5,432 |
SoapUI generates JSON property for namespace | <p>I generate a WADL with CXF as described in <a href="http://www.devsumo.com/technotes/2015/01/cxf-missing-wadl-method-parameter-element-types-with-json-jax-rs-services/" rel="nofollow">CXF – Missing WADL method parameter element types with JSON JAX-RS services</a>. </p>
<p>I tried to generate the JSON request body i... | 3 | 1,396 |
Java - Thread Doesn't Stop | <p>I have the following class that's nested in another class (that also extends thread)</p>
<pre><code>public class Miner extends Thread {
private volatile boolean running = true;
public void setRunning(boolean running) {
this.running = running;
}
public boolean getRunning() {
return r... | 3 | 1,733 |
Sound in raw from EditText Data Storage | <p>Excuse me, can you help me. I'm making an application for children learning. The application of writing the alphabet in the form of "EditText". I want this text into sound from /raw. I have A.mp3 - Z.mp3 from /raw</p>
<pre><code>MediaPlayer mplayer;
Button play;
private final View.OnClickListener playButtonListene... | 3 | 1,428 |
Java EntityManager throwing NullPointerException | <p>When I try to run the Unit test for this DAO class, I am getting NullPointerException at getById return statement. I know that the class does not initialize the EntityManager, but I don’t understand why? - I can’t tell whether my persistence.xml configuration is wrong or the DB credentials are incorrect.</p>
<p>I sa... | 3 | 1,707 |
How to reduce some data into a new array of objects? | <p><strong>update</strong>
I tried my own solution and this is what I did maybe can be done better</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-js lang-js prettyprint-override"><code>const dbData = [{
studyId... | 3 | 1,284 |
Struts2 and PI4J | <p>I tryied to use a Struts2 web framework with PI4J to change relays status on Rapsberry 3B+ device on Tomcat 9 web container. </p>
<p>My Action class. </p>
<pre><code> package com.action;
import org.apache.log4j.Logger;
import com.opensymphony.xwork2.ActionSupport;
import com.pi4j.io.gpio.GpioContr... | 3 | 3,257 |
removing one item from an array at a time | <p>I've seen some similar questions, but none seem to address the issue I'm having.</p>
<p>I believe the issue lies here:</p>
<pre><code> public static void dealCard(Card[] deck){
System.out.println(deck[0]);
Card [] decks = new Card[deck.length-1];
for (int x = 0; x<deck.length-1; x++)
decks[x]... | 3 | 6,315 |
How to get shell using curl post request in kubernetes? | <p>I am creating a pod spec using json which when run will give me a shell on the underlying node as shown below.</p>
<pre><code>overrides=$(cat <<EOF
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "admin-shell"
... | 3 | 1,133 |
DynamoDB: Using putItem with empty strings failing | <p>According to the docs <a href="https://aws.amazon.com/about-aws/whats-new/2020/05/amazon-dynamodb-now-supports-empty-values-for-non-key-string-and-binary-attributes-in-dynamodb-tables/" rel="nofollow noreferrer">here</a> I should be able to put an item with one of my non-key attributes as an empty String.</p>
<p>I h... | 3 | 2,654 |
Toggle TextToSpeech on and off using a togglebutton? | <p>So i have an app connected to firebase. The app retrieves data(a string) from firebase into a text view and then the TextToSpeech feature reads the text out(not from the textView but it itself retrieves the same data from firebase real-time database). I have used onDataChange() meathod so the texttospeech feature re... | 3 | 1,141 |
Does Amazon GPU Instance Get Exclusive Access to the GPU? | <p>I am running Ubuntu 16.04 on an EC2 p2.xlarge shared instance.
<a href="https://i.stack.imgur.com/m0Y5D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m0Y5D.png" alt="enter image description here"></a></p>
<p>The P2.xlarge instance gives access to a single GPU (1/2 of an NVidia K80 GPU?) to my s... | 3 | 1,229 |
Is there a better solution then ViewData | <p>I have a view that runs on a model <code>RETLogModel</code> which pulls from an entirely different connection string then a table called <code>RecordsTaskViews</code>. I need to pass information from <code>RecordsTaskViews</code> based on information gathered by my model. Currently my function looks like this: </p>... | 3 | 1,714 |
Saving user's text input and dropdown selections as items in an object with JavaScript/Jquery? | <p>I built a page for a user to generate a game character, and it lets them either randomize or input their own choices for each trait. I have the randomization all set up, and it saves those selections just fine, but I'm having trouble getting it to save the selections properly if the user chooses their own input inst... | 3 | 1,115 |
Download terraform plan as a file from GitHub | <p>I am working on a GitHub Actions pipeline where I am creating a terraform plan and then after downloading and reviewing the plan in a file authentication the apply stage. Everything is working smoothly, I get a plan that I am then saving as a tt file using the <code>'out'</code> flag, but I am not able to figure out... | 3 | 1,316 |
Calling printk in a simple IRQ handler crashes the kernel | <p>I'm new to kernel programming and I couldn't find enough information to know why this happens. Basically I'm trying to replace the page fault handler in the kernel's IDT with something simple that calls the original handler in the end. I just want this function to print a notification that it is called, and calling ... | 3 | 1,456 |
Trying to create a new window with the information from a form that I can customize. Stuck | <p>I am working on a website for a friend of a friend, and the biggest thing I am stuck on currently is the adoption form. I have the form all said an done, but I cannot get the input information to open on a new page. A print screen so to speak that only includes the questions and the inputted answers. I had a very si... | 3 | 1,298 |
Create fixed header table html | <p>I am creating a fixed header table, but the header and the data do not seem to be aligned. The table is created dynamically. Here is the sample of the generated html -</p>
<p>What do you think I should do ?</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title&g... | 3 | 4,586 |
Circle not appearing when image is clicked, but works for others | <p>I have 8 images on my page, 4 in one column and 4 in the other.</p>
<p>When I click on any of the images in the first column (panel1) I can see a circle appear on top of the image to show its been selected.</p>
<p>When I click on any of the images in the other column (panel2) the image fades out slightly but no ci... | 3 | 3,993 |
Why is this DIV duplicating? | <p>I am having trouble getting this banner image underneath my nab bar to fit right and also to respond to screen width. It seems the div i am using to set the banner background image is duplicated or something here is a screen shot...</p>
<p><a href="http://i.imgur.com/4WzbPjn.png" rel="nofollow">Duplicate DIV pic</a... | 3 | 1,610 |
OutOfMemoryError generated by use of bitmap images | <p>I have an activity in my Android app that is trying to use 17 images as bitmap. However when I try to start this activity it returns <code>java.lang.OutOfMemoryError</code>. I really cannot solve this problem. Could anybody who has an exact solution me? My <code>onCreate()</code> is below. Thank you.</p>
<pre><code... | 3 | 1,565 |
Add one field to User | <p>After I switched my Abstract User my login/admin page on dev couldn't sign using Debug = True and python manage.py runserver.</p>
<p>It works on prod though without any issues.</p>
<p><strong>When logging in on development I get</strong></p>
<pre><code> Please enter a correct username and password. Note that bot... | 3 | 1,325 |
Geocoding API - address not updating to lat long instead persisting to database as postcode text | <p>I am trying to use the Google geocode api to turn a postcode into lat long coordinates.</p>
<p>It seems to be working when I console.log.state, however the postcode text i.e 'TW135QZ' is being persisted into the database instead of the lat long coordinates.</p>
<p>Can anybody see why the lat long cords are not bei... | 3 | 1,704 |
multiple and dynamic audio players applied for a dictionary in HTML/JavaScript | <p>I would like to extend a question which I've asked not long time ago:
<a href="https://stackoverflow.com/questions/31915516/how-to-play-an-audio-file-that-reacts-to-an-input-variable-in-html-javascript">enter link description here</a></p>
<p>As before, I'm also trying to write an HTML/JavaScript file which would pl... | 3 | 1,601 |
CryptoNextGeneration : Storing a key in the TPM | <p>I am currently working on a small sample program using Crypto Next Generation (Windows Crypto API) to generate a key, store it in the TPM on my computer, encrypt some data and then retrieve it and decrypt the data.</p>
<p>My choice of RSA encryption is because it is the only algorithm my TPM supports.</p>
<p>I und... | 3 | 1,325 |
python memoryerror - large loop xml to mongodb | <p>I downloaded a zip file from <a href="https://clinicaltrials.gov/AllPublicXML.zip" rel="nofollow noreferrer">https://clinicaltrials.gov/AllPublicXML.zip</a>, which contains over 200k xml files (most are < 10 kb in size), to a directory (see 'dirpath_zip' in the CODE) I created in ubuntu 16.04 (using DigitalOcean)... | 3 | 1,355 |
BASH: IF / ELIF incorrect triggering | <p>I need not just an answer for the following situation, but an explanation please.
There are 2 files - NEW and OLD:</p>
<pre><code>touch NEW ;
touch -t $(date -d '3 week ago' +%Y%m%d%H%M) OLD
</code></pre>
<p>Now i'm making the script to output different messages according to the results of comparison of a NEW fil... | 3 | 1,029 |
How to add swipe able tabs in Fragments? | <p>I am using <code>FragmentTabHost</code> to add tabs in Fragment</p>
<p>Below is my code:</p>
<pre><code>import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTabHost;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
publ... | 3 | 1,060 |
rotate Frame in JavaCV | <p>I write simple app for android whick use FFmpeg + JavaCV. I can capture image from camera and can recorde video. But want to rotate frame when record video, don't can :-( </p>
<p><a href="http://i.stack.imgur.com/h42rY.png" rel="nofollow">Please see image</a></p>
<p>Stop and save code:</p>
<pre><code>public void ... | 3 | 1,736 |
TextEx Android Justify Library :java.lang.StringIndexOutOfBoundsException | <p>I am using <a href="https://github.com/bluejamesbond/TextJustify-Android" rel="nofollow">this library</a> in my android application. I use the class <strong>TextViewEx</strong> like that</p>
<pre><code>data_area = (TextViewEx ) view.findViewById(R.id.data_area);
Log.e("Position", position + " in fragment");
data_a... | 3 | 1,706 |
Jooq Connection Is Closed Unexpectedly | <p>I'm using jooq with play framework for a mobile app. When I sent request to the api of play framework more frequently, occasionally there is an jooq exception thrown related to connection is closed. This only happens when I called the api frequently.</p>
<p>Do we have any clue on this?</p>
<p>I'm using jooq 3.5.0,... | 3 | 4,868 |
Stack Overflow error on adding component to form | <p>Hi I have just completed a component which implements a Table search on typing in an edit box and showing the results in a drop down dbCtrlGrid. It compiles and installs without any problem. But when placed on a form Delphi (7) I get a Stack Overflow save your work and restart Delphi. I cannot debug it as it is not ... | 3 | 2,308 |
mDNS on react-native Request failed with status code 500 | <p>I am currently working on an IoT project which requires service discovery (I am in the Android side). I decided to use <a href="https://github.com/balthazar/react-native-zeroconf" rel="nofollow noreferrer">react-native-zeroconf</a> and I encountered a problem.</p>
<p>There is a warning Error: Request failed with sta... | 3 | 1,035 |
Why three.js object is not rendering to my canvas? | <p><strong>Hello guys I'm trying to render this webgl object to my own canvas because i want to style it but it don't what I"m doing wrong because it's not working. I can not figure out how to render a Three-js scene in a canvas. I tried</strong></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-co... | 3 | 1,199 |
viennacl with complex numbers | <p>I'm using <a href="http://viennacl.sourceforge.net/" rel="nofollow">viennacl</a> to solve a linear system of equations (AX = B) with the graphic card. Also, the code uses <a href="http://arma.sourceforge.net" rel="nofollow">armadillo</a>.</p>
<p>My system of equations have complex numbers. So the question is: Can I... | 3 | 1,826 |
React Native Jest - BABEL Reference Error | <p>I'm developing a revision application for a project at Uni and I've pretty much finished all the code but now that it's time for testing, I'm having some trouble setting up the testing environment for my React Native project. I keep getting this error no matter what I try. I'm pretty sure I've messed up the configu... | 3 | 2,360 |
SQLite Full Text Search with Windowing (Paging) and Snippet / Highlight | <p>I'm using SQLite's FTS module to try to implement a full text search with windowing (or paging as some might call it) of results as well as highlighting of the search hits within each window. As far as I can tell it's straightforward to have either windowing <strong>or</strong> highlighting of search hits, but not b... | 3 | 1,062 |
Short program hangs in C | <p>Every time this code runs in UNIX, it hangs and displays a new line without a prompt. It compiles without error. Anyone know what's up here?</p>
<pre><code>/*
This program uses a Monte Carlo simulation to maximize widget profits.
*/
#include <stdio.h>
#include <stdlib.h>
// constant values used in th... | 3 | 1,373 |
any suggestions on this css print problem | <p>I have this code on my print.css:</p>
<pre><code>#header, #tae, #nav, .noprint {display: none;}
width: 100%; margin: 0; float: none;
</code></pre>
<p>In order not to display the elements within those div tags. But I don't know with the code below why it isn't cooperating. If I place the d... | 3 | 1,365 |
ajax method using chosen autocomplete | <p>I am trying to modify this select for autocomplete using chose or the autocomplete itself, but without success, below my implementations</p>
<ul>
<li>HTML</li>
</ul>
<p>Each action of this chckbox populates the select with the return codes</p>
<pre><code><div class="form-group">
<i... | 3 | 1,058 |
Bootstrap 4 datatable Javascript libaries 2019 | <p>I have created a table in bootstrap 4 and have populated it in my website with data from myphpadmin database using php/sql. However, i am looking to use the javascript libraries to implement search, Pagination, next page etc. </p>
<p>I have already tried numerous scripts and css libraries and none of them appear to... | 3 | 1,873 |
Write JSON data from multiple API requests to a file and take one key | <p>I need to write JSON data from multiple API request to a file and then get from it only summary: distance without anything else.</p>
<p>My output is:</p>
<pre><code>200 OK
{"routes":[{"warnings":[{"code":1,"message":"There may be restrictions on some roads"}],"summary":{"distance":899.6,"duration":102.1},"geometry... | 3 | 1,678 |
Html + Java | receiving 0 from input type="time" | <p>I'm trying to make an webApp, where you should pick the time you woke up. I'm using Spring, with Thymeleaf as the connecter between my java and html. But no matter what time i choose, it returns 0. </p>
<p>My StartDay Class:</p>
<pre><code>/* ----------------------------
| StartDay Class |
----------... | 3 | 1,686 |
How can i parse this json data? | <p>I have this json encoded values </p>
<pre><code>"AllEvents":[
{
"eventId":"22",
"eventTitle":"VANGUARD Friday w/ Colette - Free All Night w/ RSVP!",
"eventImageUrl":"events/64ffcc09e1c3e73a17c998035ecd7f72.jpeg",
"eventDescription":"Pete G presents Friday... | 3 | 1,702 |
upload image to root directory from sub directory php | <p>Hi I have this php which i need to change, I have made a duplicate of my site and stored it in a subdirectory called m/ I want to be able to upload files from the m/ directory site into the root directory site. this is the function for the script:</p>
<pre><code>global $MAX_FILE_SIZE;
global $MAX_THUMB_HEIGHT;... | 3 | 1,256 |
On element click with the same class show hidden element using jquery | <p>I have some forms with the same class <strong><code>settings-form-info</code></strong> and I need every time i click at the little <strong>edit</strong> button to display only the specific form's edit div. For example when I click the edit button next to <strong>Form 1 Info</strong> label I want to display only the ... | 3 | 2,264 |
spring batch application failed to start | <p>I am getting below error while spring boot/batch application start up.</p>
<p>Parameter 3 of method job in "com.springbatch.demo.config.BatchConfig" required a bean of type 'org.springframework.batch.item.ItemProcessor' that could not be found.</p>
<p>Below is my config class code is, Please guide me if I ... | 3 | 1,400 |
Socket being set up without errors, but no connection | <p>I am trying to learn how to use TCP/IP via 2 Linux machines, both of which have functioning internet connections. I tried setting up a server and a client, but I'm not getting a connection, despite not getting any errors during setup.</p>
<p>Server code:</p>
<pre><code>int serverSocketFd,clientSocketFd,clientLengt... | 3 | 1,421 |
Why do pass by pointer function works if we simply pass the variables please guide | <p>I was practising with C++ Pointers and trying different things and came to know about this thing:</p>
<p>The Variables number 1 and number 2 does not has the address they stores integer but the function swap wants two pointers But this works...</p>
<p>But it should only give the answer with the & or pointers. Wh... | 3 | 1,347 |
Grouped ggplot for adding p-values | <p>I'm trying to print the bonferroni p values on top of every grouped bar plot.</p>
<p>The code that I'm using is:</p>
<pre><code>stat1 <- stack[1:170,] %>%
rstatix::group_by(modules) %>%
rstatix::t_test(values ~ phenotypes) %>%
rstatix::adjust_pvalue(p.col = "p", method = "bonferroni")... | 3 | 5,376 |
While calculating Haversine distance, the main for loop is running only once | <p>I have a data frame consisting of city names, longitudes and latitudes. What I want to do is create a data frame of cities around a city in a 100km radius. What I mean by this is that If my data looks like</p>
<pre><code>City Latitude Longitude
Delhi lat1 long1
Noida lat2 long2
Gurgaon la... | 3 | 1,151 |
How do i import these functions? Attribute Error | <p>I just began studying python and created a simple calculator GUI with python and tkinter. The Buttons work but for some reason when i try to move the functions to another file and import them it doesnt work and i get an AttributeError.</p>
<p>Mainfile:</p>
<pre><code>from tkinter import *
from functions_calc_advan... | 3 | 1,113 |
@Transaction annotation is not woring with spring jdbctemplate | <p>I am using spring 3.0.5 version. I am doing just simple test program to test the behavior of transaction but not getting. I have programmed three layer architecture project. In which dao layer contain following line of code.</p>
<pre><code>@Repository("commonDao")
@Transactional
public class CommonDaoImpl implement... | 3 | 2,534 |
You may need an additional loader to handle the result of these loaders. Angular 14 | <p>I updated from Angular 7 to Angular 14 after removing all the errors in my project this is the only error that is stopping me from compiling successfully. I am getting this error on ng serve:</p>
<blockquote>
<blockquote>
<p>/src/app/shared/styles/themes/theme-f.scss:1:6 - Error: Module parse failed: Unexpected toke... | 3 | 7,168 |
Display and use Back button in fragment | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>public class NewFrag extends Fragment{
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedI... | 3 | 3,093 |
how to parse xml file using dom parser | <p>do anyone know and can help me to parse this xml using dom parser please ? i am new to this and i don't know how to do it.
the problem is that this xml code is complex and tutorials i found on the internet are too easy as examples, so i am having some issues regarding this subject.
Thnaks</p>
<p>this is the xml fil... | 3 | 1,944 |
apache fop: remove empty table columns | <p><img src="https://i.stack.imgur.com/9v6la.png" alt="The Example"></p>
<p>I'm trying to generate a table, where columns are added or removed dynamically, depeindig on user input.
Problem is, that the empty columns are still visible (see the Picture)</p>
<p>My current approach is using xsl:if. (see the code snippet... | 3 | 1,372 |
C++ call a non virtual function from virtual function in derived class | <p>In fact, similar questions were asked <a href="https://softwareengineering.stackexchange.com/questions/309124/how-does-the-base-class-non-virtual-function-get-called-when-derived-class-objec">here</a> and <a href="https://stackoverflow.com/questions/8796626/virtual-function-calling-a-non-virtual-function">there</a>,... | 3 | 1,199 |
Swift 4 and Firebase appending all posts with username and profile image error | <p>I'm having an issue, I can append all the posts into my collection view but the username and profileImage change to whoever the currently logged in user is. Can someone help me figure out how to set it to the user who posted it?</p>
<pre><code>import UIKit
import Firebase
class HomeController: UICollectionViewCont... | 3 | 2,995 |
Navigation Link - Pass Specific Array Element To New View via NavigationLink & Lists | <p>I have an array titled <strong>recipeArray</strong> that is displayed in a list. When a list item is clicked, the user is taken to a new view titled <strong>RecipeItemDetailView</strong>. The array contains some default values as placeholders.</p>
<pre><code>struct StoredRecipeModel: Identifiable {
var id = UUID()
v... | 3 | 1,089 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.