title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
C# Selenium cant find input | <p>Im struggling to find an input field in html, I can fill out every input field with the following code:</p>
<pre><code>public async Task FillElementAsync(By by, string arg)
{
WebDriverWait wait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(20));
IWebElement myDynamicElement = w... | 3 | 1,795 |
How do you bind to a Grid in a ItemsPanel? | <p>I am building a custom control based on <code>ItemsControl</code>. I am trying to bind to the grid contained in the <code>ItemsPanelTemplate</code>. I cannot seem to get the binding correct. Any help is appreciated!</p>
<pre><code><local:MyItemsControl Height="500" Width="500" Margin="50" gRow="1">
&l... | 3 | 1,109 |
babel-loader not transpiling and without error | <p>Why isn't my babel-loader transpiling?
I've added: let x = 'LOL'; console.log(x); to my src/main.js.
It doesn't output any errors and creates the output file. But it doesn't transpile es6 syntax to es5.</p>
<p>This is my src/main.js</p>
<pre><code>var css = require('./styles.scss');
console.log('hello planet!');
... | 3 | 2,688 |
Python Multiprocessing - Use Array(), Lock() and Pool() | <p>I've been struggling with this program for some time.</p>
<p>I wrote this program to learn how to run the same program in different CPU's at the same time and to reduce processing time.</p>
<p>By itself, the program is not complex, just detect if there are some screenshots in different directories, but as I said b... | 3 | 1,246 |
Maintain Checked Radio Group after Post | <p>How can I maintain not only the questions and answers for a radio group, but the checked radio as well after a post that returns an error?</p>
<p>The Contact page returns a list of multiple choice questions. If there is an error, the view does not contain the answers or the selected values.</p>
<p>I have searched ... | 3 | 1,365 |
Why postgresql's single insert statement is faster than mysql? | <p>I wonder why postgresql's single "insert" statement is completely faster than MySQL's when autocommit is turned on? The following is the same code that I did on them.</p>
<p>Version:</p>
<pre><code>MySQL: 5.6.10
PostgreSQL: PostgreSQL 9.3.2 on x86_64
</code></pre>
<p>Table definition:</p>
<p>MySQL:</p>
<pre>... | 3 | 1,363 |
Ember.js RESTful model relations | <p>I'm having an issue relating models in Ember.js in regards with retrieving data from restful server (which is served by Sails.js using MongoDB)</p>
<p>My router setup is as follows:</p>
<pre><code>App.Router.map(function() {
this.route("dashboard");
this.resource('exams', {path: "/exams"}, function() {
... | 3 | 1,247 |
jsadebugd.exe fails to attach but VisualVM works fine | <p>I am trying to attach a debugger to a 3rd party program to do some reverse engineering. This program is saving zip files that are <a href="https://superuser.com/questions/457271/identifiying-a-zip-file-that-is-not-really-a-zip-file">not normal zip files</a>, it can open them fine but I get errors when I try to use s... | 3 | 1,327 |
Error in for loop in ELO rating algorithm | <p>I'm trying to run the ELO rating code from here</p>
<p><a href="https://github.com/xsankar/hairy-octo-hipster/blob/master/ELO-538.R" rel="nofollow noreferrer">https://github.com/xsankar/hairy-octo-hipster/blob/master/ELO-538.R</a></p>
<p>The dataset I'm using is here</p>
<p><a href="https://www.mediafire.com/file/0a... | 3 | 2,022 |
Why does Julia (DifferentialEquations.jl) JumpProblem stop jumping at later times? | <p>I am trying to implement a discrete stochastic simulation using tools from DifferentialEquations.jl. It works great for earlier time-points but does not do any jumps later on, inexplicably.</p>
<pre><code>using DifferentialEquations
using Plots
#initial conditions
far1_ic = 0
cln_ic = 100
ste12_ic = 1000
far1cln_ic... | 3 | 1,538 |
How to show RecyclerView in the snippet with Firebase Realtime Database in Kotlin | <p>I have a problem with RecyclerView which takes data from Firebase.</p>
<p>I know there are a lot of similar questions, but I can't find a correct solution to this problem. I think I have all the code enough to do what belongs but something is not working. When I open my application I get the error:</p>
<pre><code>&q... | 3 | 3,637 |
Can't Launch Android Studio Arctic Fox 2020.3.1.26 on Windows | <p>Recently, I tried to install the latest version of Android Studio (Arctic Fox 2020.3.1.26) on my computer. Initially, it went well. It asked me for my SDK version, and I installed android studio at my <code>D: Drive</code>, as my <code>C: Drive</code> was only left with 7 GB of space. So, I had to download an emulat... | 3 | 2,504 |
Errors saving data to Google Datastore | <p>We are trying to save streaming data to Google Datastore using this repo as the basis: <a href="https://github.com/meraki/google-cloud-scanning-api" rel="nofollow noreferrer">https://github.com/meraki/google-cloud-scanning-api</a>. After the update to Meraki 3.0, we had to refactor the code to reflect the new data s... | 3 | 1,606 |
Creating django api view that returns filtered objects | <p><strong>Problem Description</strong><br />
I'm new to django-rest-framework and got a problem in my view. I have three models namely #User, #Profession and #StudentProfessions. I need to create an api-view that takes user_id as request-parameter and returns a list of all professions that belongs to a particular user... | 3 | 1,272 |
How do I display the circles in the center in my program | <p>So basically this program works almost correctly, it should display a simulation of concentric circles, the only big problem, is that I don'y know how to display the circles in the center, since in the middle there only is an empty space</p>
<p>I have tried by using the same concept as by the rest of the circles, a... | 3 | 2,789 |
Vue: props doesn't get assigned automatically; when assigned manually - Avoid mutating a prop directly - error | <p>I have two <code>vue</code> components: <code>GetAnimal.vue</code> and <code>DisplayAnimal.vue</code>. <code>GetAnimal.vue</code> send a JSON with animal data to <code>DisplayAnimal.vue</code> using router push. <code>DisplayAnimal.vue</code> displays that data. It works like this: I go to <code>/getanimal</code>, c... | 3 | 1,875 |
PHP Database Entry Issue (Wampserver) | <p>I'm a complete code nooby and months ago built a basic website before my server mobo died. I just rebuilt the server and copied over all my website/db code I had backed up to my desktop. To the best of my knowledge everything is the same between php code and database setup.</p>
<p>My site works 90% except for when ... | 3 | 1,304 |
Testing non-promises after promise completes with Mocha, Chai and Sinon | <p>I've created a small learning project in Redux, and have essentially copied the middleware for asynchronous actions from the <a href="http://redux.js.org/docs/recipes/ReducingBoilerplate.html#async-action-creators" rel="nofollow noreferrer">documentation</a>. Now I want to write some tests for it, to make sure that ... | 3 | 1,119 |
PHP - Inserting into database don´t work | <p>When I am trying to do a new insert, I receive the following error:
<a href="https://i.stack.imgur.com/nF1Wd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nF1Wd.png" alt=""></a></p>
<blockquote>
<p>Verbindung fehlgeschlagen: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an ... | 3 | 4,360 |
How to get a div to the bottom without content while still having a responsive design? | <p>I have a left side nav with a main content area to the right of it.
Regardless of if the left side nav or the content area has any content i would like it to stretch down to the bottom of the container. Basically this is what im trying to do (<a href="https://stackoverflow.com/questions/24979374/stretching-divs-to-b... | 3 | 1,168 |
datepicker works on widgets options page, but not on customizer | <p>I have a widget with a date option field, which works correctly when in the dashboard, but fails to display when on the theme customizer.</p>
<p>I declare the field for the in the form() method like this (one input field for the date-picker, and another for the altField):</p>
<pre class="lang-php prettyprint-overrid... | 3 | 1,090 |
Shiny app output show in console but not in main panel | <p>I'm creating a Shiny app where the user can go through and select different lines from various poems to generate a new sonnet. However, when I run the app, my output is not appearing in the app and will only show up in the console. What am I missing here?</p>
<pre><code>library(shiny)
library(tidyverse)
Sonnets <... | 3 | 1,378 |
how to get desired output in python from following output | <p>I am getting this output as pasted below .</p>
<blockquote>
<p><code>[{'accel-world-infinite-burst-2016': 'https://yts.mx/torrent/download/92E58C7C69D015DA528D8D7F22844BF49D702DFC'}, {'accel-world-infinite-burst-2016': 'https://yts.mx/torrent/download/3086E306E7CB623F377B6F99261F82CC8BB57115'}, {'accel-world-infinit... | 3 | 1,501 |
input type submit not pass the process to action | <p>I'm trying to create 2 form stacking in 1 php code.
But the form cannot submit at all. It just sit there without passing this form to action="..."</p>
<p>Here the coding for first form (Registration)</p>
<pre><code><form id="RegForm" class="form" action="PHP/Enter_New.php" method="post">
<!-- Progress Bar... | 3 | 1,591 |
Why extract attacment content is always null while writing stream? | <p>i know that it is simple question but i could not find solution. i have been trying to extract attachments from email, after that i will write to filestream for saving file any director. But my fileAttachment.Content is always null. How to save inside of my directory from email adresses?</p>
<pre><code>public stati... | 3 | 1,284 |
.NET Core Serialize Inherited Class Properties -- Not Just Base Properties When Preserving References | <p>We have a problem when serializing using System.Text.Json.JsonSerializer.</p>
<p>In this example, we have three classes: <code>Store</code>, <code>Employee</code>, and <code>Manager</code>. It is noted that Manager inherits from Employee.</p>
<pre><code>public class Employee
{
public string Name { get; set; }
... | 3 | 1,219 |
DB2/JAVA: dbjcc doesn't detect parameter marker at my SQL | <p>I'm using Java against a DB2 database and I'm having this error message:</p>
<pre><code> Error: com.ibm.db2.jcc.am.SqlSyntaxErrorException: [jcc][10448][12695][4.19.66] Invalid argument: Parameter marker ':machineIdsParam' was not present in the SQL String ERRORCODE=-4461, SQLSTATE=42815
</code></pre>
<p>with the c... | 3 | 1,375 |
Why is my JDBC code returning no records when MySQL itself returns 1+ record? | <p>In an application I've been writing, one of the methods in the DAO layer is supposed to query the database (<strong>MySQL</strong> in this case) returning a list of records that match the criteria. The table to which it refers is WordInstance and it has 3 foreign keys to 3 other tables(<strong>Words</strong>, <stro... | 3 | 1,098 |
ReferenceError: Can't find variable: checkLoginState. Facebook API | <p>I upgraded default Facebook API login example in order to mix with django framework user authentication system, and recently found out that one function is not called on Facebook API <code>onlogin</code> event. In error log I am getting <code>ReferenceError: Can't find variable: checkLoginState</code> anonymous func... | 3 | 1,328 |
Trying to access children nodes in docx file | <p>I need assistance using the dom4j parser with accessing child nodes in a docx XML file.</p>
<p>I have created a node list using:</p>
<pre><code> List<Node> nodes = document.selectNodes("/w:document/w:body/w:tbl/w:tr/w:tc");
</code></pre>
<p>But, Im dont know how to find the child nodes of that selectNode gr... | 3 | 1,049 |
Closing a secondary navigation menu with jQuery | <p>I just took some contracting work and part of it involves using jQuery, which I've never used before. This seems pretty trivial, but I haven't been able to get our secondary navigation menu to close when somebody clicks outside of the menu. Here is the code:</p>
<pre><code> $(".products-list li").on("click",func... | 3 | 3,601 |
ITextsharp Table - Getting number of page that a table would fit in | <p>Here is what I am doing with ITextSharp.
1. Read a list of data from SQL Table
2. Generate table with iTextSharp using the above data
3. Add the table into a PDF</p>
<p>The table is overflow to the next page automatically when I add the table to PDF. Number of pages is unknown until I add the table into the PDF. I... | 3 | 1,668 |
Subsetting a data.table with a binary search by range in two columns | <p>I'm trying to quickly access a subset of a large data.table. The data has three columns, all numeric (floating point) all with very little repetition. Two columns are data I'd like to perform a binary search on, and the third column contains the numbers I'm actually interested in. Essentially, I've got (x, y, z) dat... | 3 | 1,440 |
How to create a good search that includes matching records | <p>I don't know how to explain this in the title, I'm experiencing a problem where I'm searching that when I search for a typical query such as <code>united kingdom</code> and records include records that have <code>united states</code> which I do not need it to be included in the query result, even when searching <cod... | 3 | 1,982 |
Coupling/chaining multiple asynchronously loaded JS scripts (JavaScript) | <h3>Problem description:</h3>
<p>I'm working on a project to take an existing JavaScript script and modify it to support being loaded asynchronously. If you don't know about asynchronous or lazy loading scripts but want to learn more <a href="http://friendlybit.com/js/lazy-loading-asyncronous-javascript/" rel="nofollo... | 3 | 1,629 |
Why is this xml not displayed? | <p>My ajax function for JQGrid returns this piece of xml:</p>
<pre><code><?xml version='1.0' encoding='utf-8' ?>
<rows>
<row id='1'>
<cell>Darren Sadr</cell>
<cell>12345678</cell>
<cell>01/12/1995</cell>
<cell>
... | 3 | 1,776 |
Wordpress Display the Most Recent Post in Each Category + Pagination | <p>I have a CPT loop paginated. The order is DESC. I want to show one recent post from each category first and then all the rest on the rest of the pages. Can't find a solution for this. Should I do 2 loops to show one post from each category and then the second loop for all the rest?
My code for loop is:</p>
<pre><cod... | 3 | 2,093 |
Issue with SharedPreferences saving data to object list | <p>I'm struggling to figure out what's wrong with my code. I'm using a combination of RecyclerView and SharedPreferences to create a simple shopping list. The idea is to first input a name of the shopping list and when the user clicks on the name of that added list (selects it), a new activity will open with that objec... | 3 | 2,496 |
Listrak Invalid Credentials error using Python requests_oauthlib | <p>Trying to get a valid response from the Listrak API using requests_oauthlib and all I ever get is Invalid Credentials. Have attempted to reset the keys but same issue. Code is as follows, <> sections replaced with actual keys in my code:</p>
<pre><code>#Imports
import requests
import requests_oauthlib
from oauth... | 3 | 1,225 |
How to get the tool id for eclipse headless build | <p>Eclipse has a <a href="https://gnu-mcu-eclipse.github.io/advanced/headless-builds/" rel="noreferrer">headless build option</a> and in the documentation they say we can add or replace tool options</p>
<blockquote>
<p>Replace a tool option value: -T {toolid} {optionid=value}</p>
<p>Append to a tool ... | 3 | 1,478 |
aes cbc encrypt, decrypt result is diffrent(objecitve-c, c#) | <p>i have a code in c# for aes decryption</p>
<p>i want make same encryption result by objective-c</p>
<p>but i failed.. help me</p>
<p>i can fix objective-c code, what can i for this?</p>
<p>c# for decrypt</p>
<pre class="lang-cs prettyprint-override"><code> private static readonly string AES_KEY = "asdfas... | 3 | 2,644 |
How to integrate OpenCV Manager into the Android application's .apk, other SO questions didn't resolve this? | <p>I used <a href="https://stackoverflow.com/questions/20259309/how-to-integrate-opencv-manager-in-android-app/20259621?noredirect=1#comment56872380_20259621#answer-20259621">this SO answer</a> as a guide, and did the following, <strong>but when I copy the app's <code>.apk</code> file from its <code>bin</code> director... | 3 | 1,048 |
If $_POST is empty | <p>i don't know What I'm doing wrong, I used first javascript for warning me that a text box is empty. Since that was bugging and wouldn't work for all text box. If tried with if isset $_POST['submit'], So when I Submit the form and I forgot to insert a title I should receive an error 'No title added'</p>
<pre><code>&... | 3 | 1,081 |
checking a jPanelSquare for items | <p>Quick question. I have a jPanelSquareGrid with labels in some squares (image labels, representing chess pieces)</p>
<p>now when I drag and drop a piece to a certain square, I want to check if there isn't already a chesspiece in it.</p>
<p>Does anyone have any idea how I can check a jPanelSquareGrid for existing it... | 3 | 1,299 |
Best coding approach to scroll long text and images horizontally in WPF/XAML? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/3002271/smooth-text-animation-marquee-using-wpf">Smooth text animation (Marquee) using WPF</a> </p>
</blockquote>
<p>I am just wondering if there is some <strong>best coding approach</strong> <strong><em>to scr... | 3 | 5,318 |
Laravel seeder with relation fill only one column | <p>I have an issue with my migrations and my seeder.</p>
<p>I just want seed a product table with category as relations.</p>
<p>Here my Product seeder :</p>
<pre><code> $product = Product::firstOrCreate(
['name' => 'Bla bla bla'],
['category_id' => rand(1,4)],
['code' => &qu... | 3 | 1,066 |
Cannot create an instance of class when use onSaveInstanceState with Viewmodel | <p>i try to save state of CardStackView. This is ViewModel</p>
<pre><code>class SpotViewModel(app: Application): ViewModel() {
//for onSaveInstanceState***********************************
var listState : Parcelable? =null
private val spotRepository: SpotRepository = SpotRepository(app)
fun in... | 3 | 1,082 |
Casting DatabaseEvent snapshot.value to a specific type in Flutter | <p>I'm trying to retrieve data from a DatabaseEvent event type.
The data I have on the database is this
<a href="https://i.stack.imgur.com/AbrS8.png" rel="nofollow noreferrer">in this layout</a></p>
<p>Basically some users id and each user has a a different number of menu orders.
What I want to do is retrieve each orde... | 3 | 1,065 |
How would I use the same viewcontroller, but pass different information through it? | <p>so, my current problem is as follows. </p>
<p>I would like to essentially use my current viewcontroller, but change the location settings somewhere else within the app and have the data pass though the viewcontroller with the updated location information.</p>
<p>I'll elaborate. I'm currently utilizing the followin... | 3 | 1,410 |
Axios when posting to api there isn't a response returned, but the error handling works if there is an error in the URL | <p>I am posting to my API and where it should return a response nothing is logged to the console.</p>
<p>I have the following code:</p>
<pre><code>import React, {useState} from "react"
import axios from 'axios';
const conn = axios.create({
baseURL: 'https://myurl.com',
headers: {
'Content-Type': 'app... | 3 | 1,787 |
CKFinder custom baseUrl/root for ckfinder / ckfinder-laravel-package for frontend users and admin portal users | <p>I am using ckfinder / ckfinder-laravel-package package for one of my project build with Laravel and Vue.js</p>
<p>So far, CKFinder was used in admin portal but now I need to use this in frontend portal also. But I can't give all the folders access to frontend users. I need to use a specific media folder for frontend... | 3 | 3,047 |
Make below design without pre tag | <p>In <code><pre></code> is easy to make that figure but i want to make this pattern via <code><div></code></p>
<p>Is possible ? With margin ? </p>
<p>I try with margin and its successfully done but some pattern cant make via this techniques.</p>
<p>Successfully Done :- </p>
<pre><code>*********
**** **... | 3 | 1,297 |
Intellij Idea 2018.2.5 CE Android development issue, android sdk v28 is unstable/rendering issue | <p>First of all, I researched alot and this question is not a duplicate of <a href="https://stackoverflow.com/questions/33959478/rendering-issue-in-android-studio">Rendering Issue in Android Studio</a> its answer doesn't fix my problem (i already have the same configuration that is in its answer). Secondly I tried clea... | 3 | 1,245 |
Python chat client: the server receives commands along with previously sent messages | <p>I'm currently working on a project for a class. It consists in code a simple chat client (protocol given by the teacher) to do (at first) some simple tasks.</p>
<p>My problem is that after I send a mensage on the globlal channel or in other channel that doesn't require the use of a command, and try to send any comm... | 3 | 1,464 |
Need help to make a RegExp filter to replace redundant Parentheses | <p>For the past few days (weeks, months, years maybe if you count my on-again off-again search and attempts) I've been trying to make or find a RegEx filter to help me remove all redundant parentheses found in my code.</p>
<p>A worst case scenario of what the regex filter will have to deal with is attached. As is a bes... | 3 | 1,127 |
facebook ADK, android studio 0.8.2 | <p>I add Facebook SDK into Android studio 0.8.2
It haven't error in code but have some error when I run the app.</p>
<pre><code>==========================
Executing tasks: [:app:generateDebugSources, :facebook:generateDebugSources]
Configuration on demand is an incubating feature.
:app:preBuild
:app:preDebugBuild
:ap... | 3 | 4,255 |
How to fix this error when take data in Python | <p>The problem here that when I put in user='U3' and debugging I see <strong>history1[:, 1][i1][j1]</strong> and <strong>transactions1[:, 0][m]</strong> have the same value. That is ['T500'] but the expression return false (also ['T600']) and when they are have value ['T1000'], they return true. And the last output is ... | 3 | 1,161 |
How can I run React with hooks in an iFrame | <p>I am writing a React application in which I would like to dynamically render React components through an iFrame. I have a code editor on the webpage that allows users to write their React code, and I would like it to render that code into an iFrame embedded on the page.</p>
<p>This html (stored in htmlString) is pas... | 3 | 1,182 |
Problems with Fancytree drag-and-drop | <p>I am using Fancytree with generally good results. However, I have found a problem with DND. If preventNonNodes is set to true, then my dragEnter function routine is never called. There is a line of code that reads "if (dndOpts.preventNonNodes && !nodeData)". In practice, noneData is always undefined. If prev... | 3 | 1,052 |
D3js: Unable to translate the x-axis ticks a little bit to the right so that they don´t start from 0 in the X axis? | <p>I have a code which draw a bar chart. The problem is that the first <code>x-axis</code> tick starts from 0 value in the x-axis, totally stacked to left, without the smallest margin from the y-axis and,therefore, the the first bar is drawn from where the <code>y-axis</code> is drawn, which makes the cart looks terrib... | 3 | 1,396 |
adding an apostrophe to submitted variable into database | <p>I have been struggling with this code. I am not able to add a name like O'Brian. When using an apostrophe I am receiving the error "Error updating Team details: You have an error in your SQL syntax;" When I take the apostrophe out of the form, it runs ok. Where am I failing?</p>
<pre><code>if (isset($_POST['submit'... | 3 | 10,532 |
Django update table on page every 5 sec | <p>So i have a template which gets a list of lists with information for table.</p>
<p>I render data like that way</p>
<p>Here is my template html</p>
<pre><code>{% for each in info %}
<tr class="bg-dark-2">
... | 3 | 1,431 |
Android.Views.InflateException when changing ImageView | <p>I am getting the title error when starting my <code>Xamarin.Android</code> application. I started from the "Navigation Drawer App" template.</p>
<p>The error is thrown in <code>MainActivity.cs</code> on line <code>SetContentView(Resource.Layout.activity_main);</code> in the <code>OnCreate</code> method:</p>
<pre><... | 3 | 1,381 |
How do you submit an API request from the front-end based on the result of a previous API request on an Apollo graphql server? | <p>I'm working with two API endpoints. The first one returns a list of dates in a string format for which data is available. The date can then be added to the second endpoint and renders additional data. On the Graphql Playground I have been able to make it all work. On the front-end I have a select option drop down... | 3 | 1,362 |
how to create dynamicly generated button that call server side method in using javascript in ASP.Net c# | <p><strong>My problem</strong><br/>
1) I created aspx page and put literal on it.<br/>
2) In .cs file->fetch data from db and bind it on literal<br/>
e.g
literal is that control
then</p>
<pre><code> literal+="<tr><td>data goes here</td><td>here i want put my button</td></tr>"
</code... | 3 | 1,041 |
Can't re-project precipitation data from Stereographic to PlateCarree() using Cartopy | <p>I am trying to plot precipitation data from the National Weather Service. However, the data is by default set to a stereographic projection. I'd like to plot in a PlateCarree projection but I am having some difficulties. When I try and use the PlateCarree projection in Cartopy, it plots the maps but will not overlay... | 3 | 1,835 |
How to implement a copy constructor for an array of integers in Java? (school assignment) | <p>I want to create a deep copy of this IntArrayList class using a copy constructor. I wrote an empty copy constructor but have no idea what to put in it. I have to complete this for an assignment and show that the results of both the original and copy are independent.</p>
<p>Also, we're not allowed to use library met... | 3 | 2,563 |
Node.js - Promise not resolving within loop | <p>Good day all,</p>
<p>I'm working on extracting some data out of PipeDrive's API using Axios for Node.js. The way that PipeDrive developed their API pagination is a bit different. Here is how their pagination indicator looks:</p>
<pre><code> "additional_data": {
"pagination": {
&quo... | 3 | 1,137 |
Data (De)serialization in C | <p>I was wondering if someone could possibly help me with my problem.
In client side, I have a linked list which each item contains an integer number. Suppose I appended 5 integer (let's say 1, 2, 3, 4, 5). I checked and the routine for creating and appending of integers to the linked list is OK. After that, I want to ... | 3 | 1,246 |
How can I reduce the time complexity of an algorithm in c++? | <p>The following code takes in an integer <em>t</em> and then takes in 3 more integers <em>t</em> times and returns the maximum number of times you can subtract 1 from two different integers at the same time, whereas the program stops when there is only 1 integer above 0 remaining. I have solved the problem, but I want... | 3 | 1,304 |
declared parsequery as an array of object but its throwing exception Java.lang.NullPointerException | <p>I used parsequery as an array of object i have to dynamically create the no of parsequery objects based on the str length so I did like below but when i run it, it shows Java.lang.NullPointer Exception</p>
<pre><code>package com.ahapunch.parse;
import android.util.Log;
import com.ahapunch.Listdata;
import com.par... | 3 | 2,063 |
How to receive mouseDown messages in a NSTableViewCell? | <p>I am trying to make a table view cell that shows ratings for songs in a playlist. I have successfully created the cell so that it shows the current number of stars, and also an indication of how a new setting will be when you hover your mouse cursor over a cell to give a new rating.</p>
<p>The problem is that whil... | 3 | 2,119 |
Integer argument expected, got float error and float object cannot be interpreted as integer errors | <p>This is a code for virtual mouse using finger gestures. The above both errors are arising in the statements containing cv2.circle() and cv2.line(). I also tried using int(),round() and "//", but it still won't work. After I use int() or round(), the second error arises. I hope you can help me with this.</p... | 3 | 1,671 |
quantile function through dfs of list | <p>I´ve got a zip (48GB) with 1800 .csv files and each file with 365 columns (days) and 22700 rows (observations). I need to calculate quantiles (5%, 50, and 95%) per each observations along a selected number of csv files.</p>
<p>So far, this has been my strategy:</p>
<p>First, I listed the selected .csv files as follo... | 3 | 1,314 |
CSS only Text splash screen | <p>I'm trying to adapt this code <a href="https://codepen.io/hiteshsahu/pen/MOgzej" rel="nofollow noreferrer">https://codepen.io/hiteshsahu/pen/MOgzej</a> to make a text bounce instead of the ball (so far so good), so when the ball fades at the top of the page, the text fades with the header one at 1:1 (setting font an... | 3 | 1,715 |
Getting WA in Google Kick Start Round A: (Workout Problem) | <h1><strong>Problem Description</strong></h1>
<p>Tambourine has prepared a fitness program so that she can become more fit! The program is made of <strong>N</strong> sessions. During the i-th session, Tambourine will exercise for <strong>Mi</strong> minutes. The number of minutes she exercises in each session are stric... | 3 | 1,154 |
How not to match a token within quote like “hello w"orld in javacc | <p>I'm doing a redis-cli parser by using javacc. I have to handle the quote</p>
<p>for example <code>set "a b" "cd"</code>, I hope key token is <code>a b</code> and value token is <code>cd</code>.</p>
<p>There is my solution:</p>
<p>RedisCommand.java</p>
<pre><code>package com.demo.command;
public interface RedisCo... | 3 | 1,979 |
Jquery scroll is not picking changed variable value to be sent to ajax | <p>I am not a regular programmer and has learnt whatever programming I know by google or by asking things here from Stackoverflow.</p>
<p>I am trying to create a ajax function which will fetch feeds from database on scrolling based on selected parameter. User can select either to select public feeds or personal feeds.... | 3 | 1,862 |
Achartengine - How to use the same scale for two series? | <p>I am trying to do a a graph with 3 series, based on MultipleTemperatureChart.
- The 3 series have the same x values.
- The 3 Y-axis have different values, but I am using only 2 Y-axis, and painting one with black color, to it does not show up. </p>
<p>I would like use the same scale for TWO, if I use "addXYSeries(d... | 3 | 3,496 |
Spring boot Test fails with unsatisfied dependencies on Repository class alone | <p>I have a spring boot application which has multiple autowiring and everything works as expected, but when I try the same for spring boot testing using mockmvc it fails only for repository (interface) which extends to CRUDRepository</p>
<p>My application has only these two annotation in main class</p>
<pre><code>@Spr... | 3 | 4,310 |
Terraform reusing config blocks | <p>Terraform noob here. I have a datadog config along the line of (shamelessly copied from terraform website):</p>
<pre><code>resource "datadog_dashboard" "ordered_dashboard" {
title = "Ordered Layout Dashboard"
description = "Created using the Datadog provider in Terrafor... | 3 | 1,483 |
how to get max value from a nested json array | <p>I have a nested json array and I am trying to get the maximum value of the points attribute in this array.</p>
<pre><code> data = {
"name": "KSE100",
"children": [
{
"name": "TECHNOLOGY & COMMUNICATION",
... | 3 | 1,064 |
Flutter : This widget has been unmounted, so the State no longer has a context (and should be considered defunct) Error when using streambuilder | <pre><code> class _MyAppState extends State<MyApp> {
bool isFirstTime = true;
bool? isRegistered;
checkIfRegisteredOrNot() async {
print("Checking if registered");
if (isFirstTime && mounted) {
print("Insided mounted");
final id = FirebaseAuth.instance.curr... | 3 | 1,535 |
FFmpeg Autogen and Unity C# to generate video from screenshots (FFmpeg.Autogen) | <p>I've taken the <code>FFmpegHelper</code>, <code>VideoFrameConverter</code>, <code>H264VideoStreamEncoder</code> classes straight from the <a href="https://github.com/Ruslan-B/FFmpeg.AutoGen/tree/master/FFmpeg.AutoGen.Example" rel="nofollow noreferrer">FFmpeg.AutoGen.Example</a>, rolled my own <code>FFmpegBinariesHel... | 3 | 3,983 |
Wanting to take the highest and lowest 25% of a table | <p>Hello as far as I could find there is no real solution for my task yet. (If there is please just let me know and I will take advice from there)</p>
<p>But without writing more unnecessary now:
I would like to get the highest and lowest 25% (or other percentages possible) values from a table (example see below). This... | 3 | 2,017 |
Substrate node template make: *** [Makefile:19: build] Error 101 | <p>Currently running <code>rustc 1.49.0 (e1884a8e3 2020-12-29)</code> and nightly <code>rustc 1.51.0-nightly (a2f8f6281 2021-01-27)</code> on Ubuntu 20.04.</p>
<p>How can I overcome this error 101?</p>
<p>Ran <code>make init</code> which returned positive results after getting rust nightly properly installed.</p>
<pre>... | 3 | 6,991 |
Geospatial lookup returns wrong results | <p>I have a problem with identifying if a point is within a polygon or not.</p>
<p>For the same latitude and longitude, sometimes I get right results, but sometimes not. I get wrong results if I search for more IDs (so there are more events) or I change the time range (not necessarily bigger).</p>
<p>The line which cau... | 3 | 2,815 |
Worse performance when using a bigger multiple work group size of CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE | <p>I am writing a matrix multiplication program in OpenCL. In order to utilize local memory, I divided the original matrix into <code>block_size * block_size</code> sub-matrix, where <code>block_size</code> is equals to a square root of <code>work group size</code> and will be calculated in one work group.</p>
<p>My GP... | 3 | 1,232 |
Different io packaging operation by os using tycho create-distributions? | <p>My eclipse product need to be packaged (zip,tar.gz,app) for three os (win, linux, mac) using tycho maven plugin. </p>
<p>My parent pom which contain the env filtering used by tycho to produce the different version of product during package phase : </p>
<pre><code> <?xml version="1.0" encoding="UTF-8"?>
&l... | 3 | 4,307 |
AlreadyCommittedException: Response already committed after doing buildPage but before writing response from PageInfo (HippoCMS) | <p>We serve our CMS (Hippo) content using a REST endpoints, and I noticed strange behavior that happens intermittently: </p>
<p>Time and again, when invoking an end point (e.g., <a href="http://site.name/api/articles/" rel="nofollow">http://site.name/api/articles/</a>) for the first time after a period of inactivity o... | 3 | 2,202 |
How to implement refresh token workflow into OAUTH workflow in MVC C# app? | <p>I am new to OAUTH. I have been working on implementing OAUTH into my MVC c# application to access ping federate. After much research, and failed attempt at using the ping federate nuget, I came across this <a href="https://stackoverflow.com/questions/25845420/mvc-5-application-implement-oauth-authorization-code-flow... | 3 | 1,392 |
Flutter-Flame: How to calculate the relect of a raycast? | <p>Thank you for your reading. My English is not good, I'll explain this as well as I can.
I need to generate the reflection line in canvas, but it not work well.</p>
<p><a href="https://i.stack.imgur.com/Qjd8d.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qjd8d.jpg" alt="enter image description he... | 3 | 2,037 |
xidel: add object into json array | <p>I want extract some information on a website. For this, i use xidel.
I use this command line:</p>
<pre><code>xidel --template-file template.xml --dot-notation=on
</code></pre>
<p>and here my template file :</p>
<pre class="lang-html prettyprint-override"><code><actions>
<action>
... code before ... | 3 | 1,180 |
Mongodb Aggregate Nested Group with Recent Updated Document | <p>I have assigned person, status inside my collection simply like below.</p>
<pre><code>[
{"ASSIGN_ID": "583f84bce58725f76b322398", "SPEC_ID" : "58411771", "STATUS": 1, "UPDATE_DATE": ISODate("2016-12-21T04:10:23.000Z")},
{"ASSIGN_ID": "583f84bce58725f76b322398", "SPEC_ID" : "58411772", "STATUS": 4, "UPDATE_DATE": ... | 3 | 2,289 |
Passing Data from Depending Dropdown to Object in React | <p>I am still new in learning React. I just have a question regarding to my problem. I want to use dependent dropdown which take state, district and postcode value. District value is dependent on state value and postcode value is dependent on district value. I just want to pass the dependent dropdown value to my; const... | 3 | 1,713 |
Non consistent if statment in C++ | <p>So I have a simple code that behaves differently in 2 cases</p>
<p>In the first case, when I write it with <code>(vecthread.size() - 5)</code> inside the if statement it will go in the if statement and then throws an error "out_of_range". He goes in even tho the vector was empty.</p>
<pre><code>vector<t... | 3 | 1,105 |
Add an Array to an JSON Object | <p>In my API im receiving a JSON with 2 arrays, one Employees and another with Managers, the goal is to add the Managers to each Employee, knowing that the 1st index of the managers corresponds to the 1st index of the employees and so on:</p>
<p>This is an example of the request to the API</p>
<pre><code>{
"employ... | 3 | 1,757 |
How to pass value from other table in form modal bootstrap | <p>I created a modal form to update the record with storage field that has an option and have to be taken from another table but if storage data already exist in the database then show existing data.
I did this code but it cannot show existing data.
If I change the code for "storage" to : ABC then it can show existing ... | 3 | 1,254 |
Unexpected errors when running 'ng test' or 'ng build' | <p>My cmd displays the following errors when I try to run 'ng test' and 'ng build' inside of the root directory of my Angular 5 project, but it doesn't when I run 'ng serve'.</p>
<p>The errors are:</p>
<pre><code>ERROR in node_modules/@angular/cdk/a11y/typings/aria-describer.d.ts(15,21): error TS2304: Cannot find nam... | 3 | 8,094 |
Need to join two mySQL queries together if possible | <p>Is it possible to combine these two queries to form one?</p>
<p>First Query:</p>
<pre><code>SELECT products_options_values, options_values_price, orders_id
FROM orders_products_attributes oa
WHERE (products_options_id = 5 OR products_options_id = 1 OR products_options_id = 2)
AND oa.orders_id
IN (
SELECT DISTINCT ... | 3 | 2,590 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.