title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Codeigniter displaying total added likes from mysql table | <p>I am using MVC in codeigniter and I have a MySql table that has pages made by users <strong>page_id</strong> and topics <strong>topic_number</strong> as shown in the image below (Table page). pages can have multiple <strong>topic numbers</strong>.</p>
<p>I also have another table called <strong>table page likes</st... | 3 | 1,200 |
Video camera crashes after latest(4.4.2) Samsung/OS update | <p>I am using custom camera in my application this works fine in jelly bean. Now after this Samsung Galaxy Tab OS update the custom camera is broken. I got this report from one of my friend i didn't saw that tablet. And i got crash report form <code>Carshylytics</code>. </p>
<p>My log report:</p>
<pre><code>java.lang... | 3 | 5,291 |
check if route is valid react router | <p>I am using react router v5 and would like to check my routes to make sure they are valid as my 404 page is not triggering when an invalid link is shown presumably because the route still matches even though there is no item to display on the route as it's invalid. e.g <code>example.com/cat1/product1</code> being val... | 3 | 1,172 |
How to close Flume with kafka as Source | <p>I'm upgrading Flume1.7 to 1.9.I have 5 Kafka sources and 7 aws-s3's sinks in FLume's conf.
Firstly I need stop Flume 1.7.So I execute the command
'kill <code>ps -ef |grep flume |grep bidinfo | awk '{print $2}'</code>' to stop the bidinfo task,but this process still exists.22 hours later ,this process always alive ... | 3 | 2,408 |
How to group ID in while loop (for php json_encode) | <p>I have a problem for several days to create a Json array with MySQL data</p>
<p>Here are my MySQL data:</p>
<pre><code>zi zn vn pioo pio ve station es eo
1 Zone 1 Value 01 1 199 0 1 1 0
1 Zone 1 Value ... | 3 | 5,928 |
Webview JavaScript loads inconsistantly | <p>I'm working on an app that takes a webpage and injects JavaScript to format the website for mobile. The code works fine on both my Nexus 5 and Nexus 7. However on my Moto G and LG G2 it does not inject consistently. Sometimes the pages load correctly with the JavaScript changing the look of the website. Other times ... | 3 | 3,126 |
Select from 3 tables (one to many, many to one relationship) | <p>I have 3 tables:
Recipes (1 --- * ) Ingridients ( *---1) Products. I need to obtain Recipes that contains products in a given list or products that are not in list but have a specific flag set. I have a flag in product table (bool). So where clause looks like:</p>
<pre><code>WHERE Product.Caption IN ('A', 'B', 'C'... | 3 | 1,748 |
Entity framework core throwing error while inserting rows in partitioned table | <p>I have tried using entity framework core for my project.</p>
<p>I'm using latest PostgreSQL. And my requirement is to insert bulk data in database, which has a main table and its partitioned tables (horizontal partition).</p>
<p>Partitioned table are inherited from the main table and gets created in advance automati... | 3 | 1,190 |
Can't install PagedJS due to a Puppeteer issue | <p>When I try to <a href="https://www.pagedjs.org/documentation/02-getting-started-with-paged-js/#command-line-version" rel="nofollow noreferrer">install PagedJS</a> with the recommended <code>npm install -g pagedjs-cli pagedjs</code> I get:</p>
<pre><code>npm WARN deprecated @babel/polyfill@7.12.1: This package has b... | 3 | 1,462 |
How to filter a table by a second table attribute on SQL | <p>I have a table named <code>lines</code>, that has registered every transaction made in every <code>account</code> with it's <code>datetime</code>. Along with the amount of the transaction the table has the <code>balance</code> for that account at that given time. The line registers the date with the hour (<code>date... | 3 | 1,060 |
How to produce a armv5 binary by zig builed-exec | <h2>Host</h2>
<p>Here is a running binary in target system</p>
<pre><code>readelf -h asterisk
</code></pre>
<pre><code>ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: ... | 3 | 2,379 |
How to store data in ImageView in android dynamically? | <p>Subject of interest : Android</p>
<p>After hours of searching I couldn't find or understand how to create ImageView dynamically to store associative data and perform an action depending on the image view clicked.</p>
<p>Let me elaborate ,
I am creating a grid of ImageViews using GridLayout (as gridview examples are ... | 3 | 1,482 |
How to delete checked items with one delete button | <p>I want to make a delete button that deletes the checked items. Means one master button to delete all the checked items. I made a master checkbox that checks all the values. Now I want to make a master button that would delete the checked values. Here is my code. I am new in laravel please help me. Sorry for my bad ... | 3 | 1,559 |
Oracle SQL Partitions and Rank | <p>I want to be able to group data by effective dates for the most current project for employees, including department, and manager they work for. Here is a sample of the data. </p>
<p><strong>PROJ_TBL</strong></p>
<pre><code>+-------------+----------+----------------+
| EMPLOYEE_ID | EFF_DATE | EMPL_PROJECT |
+--... | 3 | 1,406 |
XML Skip 'wrong' event type | <p>I have a certain BLOATED XML file that i use to generate a Gallery with some few information about the Picture. Besides of the Actual needed NEW there are plenty of entries with OLD, adding more pictures, but creating also duplicate entries.</p>
<pre><code><result>
<event>
<date>2015-04-14T22:19... | 3 | 1,741 |
BOSH MySql Deployment timeout error | <p>I am trying to install the MySql deployment using bosh deployment manifest by configuring VIP network. I could execute the bosh mysql deployment without any error but in the final stage of deployment i am getting the timeout error(Error 450002: Timed out pinging to 0f66d2df-e923-42c2-81e4-0e1e1a0c39d3 after 600 seco... | 3 | 1,247 |
python imagededupe can you reconstruct an original image from its embeddings? | <p>I am using <a href="https://github.com/idealo/imagededup" rel="nofollow noreferrer">imagededupe</a> in Python to produce image embeddings I place in a folder and I want to take those embeddings and convert them back to the original .jpg image.</p>
<p>I encode each image by using the <code>CNN</code> method (<em>conv... | 3 | 11,979 |
Reloading ChartJs Image | <p>I have a chart and before creating a new chart in the same canvas, I call the <code>myccc.destroy();</code> and it works well. </p>
<p>However, if I create a image of chart and after that If I create a new chart, image persist. Obviously, I need to remove image of chart as well as chart itself before redrawing the ... | 3 | 1,214 |
Why is this happening? | <p>I am trying to create a remote-desktop monitor application using java where a server can see the screenshot of the client and also can monitor the number of processes running on the client. Here is the screenshot of the user interface</p>
<p><img src="https://i.stack.imgur.com/rPNw5.png" alt="enter image descriptio... | 3 | 6,144 |
ipython notebook freeze on start | <p>my ipython notebook functionality stop working.
If I do</p>
<p>ipython notebook</p>
<p>the console just hangs forever with no debug output.
I have already tried reinstalling ipython but no success.
Also, if I start normal ipython everything seems fine.</p>
<p>Does anybody have a clue how to solve this? I suspec... | 3 | 1,351 |
SQL Display results only if the row exists in another table | <p>Is there a way to display results only if that particular value exists, if there are multiple entries of it in another table?</p>
<p>For example, I am trying to display teacher name only if the type is Math. If there are no entries of Math, the column Teacher should display none.</p>
<div class="s-table-container">
... | 3 | 1,157 |
Auth0: `state` does not match on FireFox | <p>I have developed a web app using React, using Auth0 for authentication process. I have encountered a problem - every time I successfully login into the web app, when I refresh the page, it would throw the error:</p>
<blockquote>
<p>'state' does not match</p>
</blockquote>
<p>Here is my <code>Auth.js</code>:</p>
... | 3 | 2,266 |
Get facebook friends list of logged user | <p>I want to get the Facebook friends for the user who has already logged in via the Facebook widget that it is integrated with my app.</p>
<p>I created an activity that retrieves the friends list, however it doesn't work for me. (I also have the Facebook ID of the logged in user in the <code>String id</code> variable... | 3 | 1,823 |
HTTP status code 419 when accessing Laravel api by browser | <p>I can't access my laravel api post routes at localhost by browser (script / console / dev-tools). I'm always getting HTTP 419 (Page Expired) status error. Interestingly I can access the api with success via postman.</p>
<p>The routes are outside of everey "auth:sanctum" group, so that this should not be th... | 3 | 1,752 |
Cannot bundle update & install in a redmine migration | <p>I migrated to Debian 9 a Redmine application v 2.5.0. After copying all files, it is impossible to bundle update or install.</p>
<p>I have installed <code>default-libmysqlclient-dev</code> and then <code>gem install mysql</code>
but without success.</p>
<p>Bundle update give this output:</p>
<pre><code>Your Gemf... | 3 | 1,489 |
In JQuery check if window.open streamed file contents to a new window sucessfully | <p>When a user clicks on a document icon, I am opening/streaming the document in a new window using window.open. The call returns windowObjectReference which gives me access to the child window. However if the child window failed to open a document such as a pdf in a pdf viewer because it was not installed on the loc... | 3 | 1,049 |
Can not correct to display data from ms sql tables in datagridview | <p>No idea how to fix that.
So i have an imported table (screenshot) <strong>Patient</strong> (# 1) and <strong>Diagnoz</strong> (Diagnosis) (# 2) from the MS SQL Server. The first table contains a complete list of patient data and a foreign key for the id_diagnoz in which the Stage and Name_diagnoz is indicated.
Tabl... | 3 | 1,085 |
Is it possible to access a field value in one collection from another collection in firestore? | <p>Is it possible to access/pass field value(in this case gamerroomname) of Allusers collection from/to another collection(in this case gamerooms)?</p>
<p>so that I can do below:</p>
<pre><code>ref.collection("GameRooms").document(gameroomname).addSnapshotListener(){
}
</code></pre>
<p>Screenshot of Allusers:
<a hre... | 3 | 1,190 |
nr. bound variables, missmatch number tokens | <p>Hi I have been scanning the answers on this subject but they seem to be individual at most, so here goes. My code is from a free repository and it works when I remove the addition I have maid.</p>
<p>I added "uname" because I wanted the users to be greeted by their name and not their username. It may be stupied but... | 3 | 3,479 |
Combine items from different rows in database and display them in one row on listview | <p>I have items in a database. The columns are ID, Region, and Report. I display all these in an asp listview. I need combine each of these items and display them in one row for each id. So for example if ID = testuser Regions = 1, 2 Reports = A, B</p>
<p>Right now the list displays something like this:</p>
<p>... | 3 | 2,608 |
BackgroundMediaPlayer not playing music files outside Music Folder | <p>I am having this strange issue. I am trying to create a music player app for <code>Windows Phone 8.1</code>. I need the music player to play the music in background, even if the application is in background/closed state. So I am using the <a href="https://msdn.microsoft.com/en-us/windows.media.playback.backgroundmed... | 3 | 1,630 |
How to implement a bespoke recaptcha in rails? | <p>Though using existing gems to add a recaptcha to every single form is a pretty simple affair, I can't work out how to create recaptcha as described by the diagram below.</p>
<pre><code> |
user submits question form <-------
| |
V |
=====... | 3 | 1,351 |
Object acceleration not behaving as expected | <p>I have two objects in a 2D space. I expect <code>object1</code> to begin orbiting <code>object2</code>. I derived my methods from the equation</p>
<blockquote>
<p>f = G * (m1 * m2 / r*r)</p>
</blockquote>
<p>and</p>
<blockquote>
<p>dx1 += x1 - x2 * f</p>
</blockquote>
<p>etc. However, I am struggling because the obj... | 3 | 2,366 |
transfer learning of Inception v3 returns the same predictions | <p>I have tried to customize inception to classify. I used the cat, dog, human and other to classify cat, dog, human ( collection of family photos) and other (mostly natural scenes) I have about 2000 dog, 1000 cat, 7000 human and 3000 images split 80:20 among the train and validate. The essence of model is as below. Wh... | 3 | 1,877 |
Volley: Kotlin Class call from JavaCode | <p>I'd like to make simple Volley POST Requests due Java and Kotlin. I'm using both languages in my App so I tried do to my best to use both languages.
I came over <a href="https://medium.com/@nishinraj/simplifying-volley-requests-kotlin-development-1bb87c3fb6f8" rel="nofollow noreferrer">this</a> tutorial with the fol... | 3 | 1,084 |
OpenCV 4.1 with CUDA in python uses wrong OpenCV version | <p>I'm trying to install opencv 4.1 to use in python WITH Cuda support. I tried following <a href="https://gist.github.com/raulqf/f42c718a658cddc16f9df07ecc627be7" rel="nofollow noreferrer">this guide</a> and had preinstalled CUDA 10 (because I needed it with keras and this works already), but when checking opencv in p... | 3 | 5,644 |
error in the statement (Build.VERSION_CODES.JELLY_BEAN) | <p>this is the utility java class to check which version of android is being used....but there is an error in the statement @interface TargetApi(Build.VERSION_CODES.JELLY_BEAN)...what may be the possible reasons and how can I remove it??</p>
<pre><code>package com.example.ishan.complainbox;
/**
* Created by ishan o... | 3 | 1,055 |
Emacs Orgmode table $> References does not work | <p><strong>GNU Emacs 24.4.1 org-mode</strong></p>
<p>Here is an org-mode table</p>
<pre><code>#+TBLNAME: revenue
| / | < | | < | | < | | | | | | | | | | | |
| Product | Year_SUM |... | 3 | 1,192 |
Why is my websocket-client stopping all of my subsequent code, and what can I do about it? | <p>I am setting up a python program to pull cryptocurrency data from binance, but the websocket that I am using pauses all code after it executes.</p>
<pre><code>import websockets
import websocket, json
import asyncio
def establishDefaultConnection():
#websocket.enableTrace(True)
def on_open(message):
... | 3 | 1,053 |
Subtracting arrays more efficiently | <p>I have a few questions. Got this array:</p>
<pre><code>$array_1 = array(
"1" => "4",
"2" => "8",
"3" => "12",
"4" => "16",
"5" => "20",
"6" => "24",
"7" => "28",
"8" => "32",
"9" => "36",
"10" => "40",
"11" => "44",
"12" => "48",
... | 3 | 1,368 |
Performance issues updating multiple UI elements every second | <p><strong>EDIT</strong>: I've posted my solution below, (basically, ListViews are very slow for some reason), and will try to update it further if I can clarify why exactly a ListView is so awful in this situation.</p>
<p><strong>Objective:</strong></p>
<p>Get 7 ListView objects showing 7 independently set clocks/ti... | 3 | 1,356 |
Passing data from Adapter to Item's ViewModel in Android | <p>I have a view pager with an adapter that has a number of items fetched from the cloud. I add the pages to the adapter through the fragment.
I am trying to pass a variable to the Item's view model every time a new page is instantiated from the adapter so as to notify one of the views that depend on this view model. I... | 3 | 1,200 |
Connection problem when changing password | <p>I have a software which displays some tables from our SQL database. Now I want to add a tool, where I can change the password for my "testdummy" user.</p>
<p>I tried to open a connection again but it didn't help. If you need some additional code or informations, just write a comment.</p>
<p>Notice that I'm new to ... | 3 | 1,451 |
Angular 2 application with refreshing data in real time | <p>I am using angular4.</p>
<p>I am trying to Real time update using observable.</p>
<p>Here is my code</p>
<p>First i import <code>observable</code></p>
<pre><code> import { Observable } from 'rxjs/Rx';
import { AnonymousSubscription } from "rxjs/Subscription";
import { ApiServiceProvider } from '../../pro... | 3 | 1,416 |
Data posting server gets error in swift 3? | <p>Here i got a token number from api like as shown here <code>"210"</code> and it is saving using userdefaults but when i tried to retrieve data from the userdefaults then it is returning <code>"\"210\""</code> like this why it is adding slashes and quotes can anyone help me how to resolve this ?</p>
<p>here is the ... | 3 | 1,549 |
Auto select based on number value | <p>I am attempting to create a donations form but i am failing at the custom enter amount field.</p>
<p>I have predefined select option which the user can select 5, 7 and 14 but a custom field.</p>
<p><strong>What i want to achieve:</strong></p>
<p>If someone enters <strong>more than 14</strong> in the custom field,... | 3 | 1,721 |
spark-shell command giving ERROR Shell:397 - Failed to locate the winutils binary in the hadoop binary path java.io.IOException: | <p>Could not locate executable null\bin\winutils.exe in the Hadoop binaries. </p>
<p>I have added winutils.exe and all .dll's into C:\Hadoop\bin folder, HADOOP_HOME set to C:\Hadoop and PATH to C:\Hadoop\bin </p>
<p>Trying to run C:\Spark\spark-2.4.0-bin-hadoop2.7\bin>spark-shell command</p>
<p>2019-01-29 12:06:0... | 3 | 1,094 |
Unknown attribute error for parent id, only happening in test | <p>I have TopicList (parent) and Topic (child) models</p>
<pre><code>class TopicList < ApplicationRecord
has_many :topics
validates :name, presence: true , uniqueness: { case_sensitive: false }
end
class Topic < ApplicationRecord
belongs_to :topic_list
validates :topic_list_id, presence: true
vali... | 3 | 1,146 |
How to change a SQL query based on PHP array? | <p>I have a PHP file that references a SQL query, validates the contact data returned to meet certain standards, and then generates an XML file with all of the contact data. Part of the query allows me to select which countries I want to pull the data from (ex.by adding WHERE tbl_vsed_unvalidated.c ='US' to the end for... | 3 | 1,642 |
How is it possible to make this app working with mobile browsers? | <p>I am working on an app for drawing using HTML 5 Canvas the problem that it's working well on computer browser like this picture
<a href="http://s28.postimg.org/z0ytnva98/problem.jpg" rel="nofollow">http://s28.postimg.org/z0ytnva98/problem.jpg</a></p>
<p>I want to make it working on mobile browser (never mind workin... | 3 | 1,092 |
PHP Mail form does not send | <p>I copied the message form and PHP mail from a website. But it doesn't seem to work. It does not send anything or make any reaction. I tried to find the error, but I am not familiar with PHP. I tried editing the $emailFrom =... to $_POST['email']; but that doesn't work either..</p>
<p>HTML:</p>
<pre><code><div i... | 3 | 1,261 |
Can very long I/O processes be handled by threads | <p>I'm starting here a new topic that will be linked with <a href="https://stackoverflow.com/questions/47250025/qthreadpool-how-to-interrupt-how-to-use-wisely-the-waitfordone-method">this question</a>.</p>
<p>I invite you to just read on the background in order to get the global idea.</p>
<p>So I’ve a download functi... | 3 | 3,030 |
CoreCLR, 'Type' does not contain a definition for 'GetTypeFromProgID' | <p>I'm trying to upgrade a web application from dnx451 to a dotnetcoreapp1.0.</p>
<p>This application needs to use an old library (at least I think it's a library). This snippet used to work with DNX, but it doesn't now that I've upgraded. </p>
<pre><code>//COMPILE ERROR: 'Type' does not contain a definition for 'Get... | 3 | 1,139 |
Error at rendering circles - Google Maps Javascript | <p>I'm developing a web app which has a map and where the user can set circles wherever he wants. Then he can see every circle he has set. </p>
<p>But when I load the circles that the user has, this happens:
<a href="https://i.stack.imgur.com/w7VkO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w7... | 3 | 1,059 |
Issue with accessing JSON Covid Data | <p><strong>Background on my application</strong> </p>
<p>I am using react and node js. I connected node.js to react.js using axios. </p>
<p><strong>Issue</strong></p>
<p>I'm trying to access the cases (5226) in Afganistan, but I can't seem to get the right variable for it. </p>
<pre><code>const cases = covidData[0]... | 3 | 1,089 |
werkzeug module not matching hashed password | <p>Im currently following along w a video trying to build this login system for a site, but each time I call the werkzeug function to check the hash of the password against the one used to sign up, it returns invalid password. What am I doing wrong to make the hashes end up different even though I'm entering the same p... | 3 | 1,075 |
Local Storage Problem > ME I cant seem to make this work | <p>Problem: Local Storage is not storing data. </p>
<p>I am working on a daily scheduler app for my bootcamp. I am trying to use local storage to keep data on the app. However when I refresh, the data disappears. I included the code I am using that i am working with. Let me know if you can show me where I am going wro... | 3 | 1,094 |
Symfony 3.4 - Can we collect code coverage for functional testing? | <p>I am using symfony 3.4 for some of our projects. According to the docs, we should write functional tests for ours controllers. However, it seems that we cannot collect code coverage for functional test because symfony will run main code in another PHP processs. </p>
<ul>
<li>In phpunit process: <code>var_dump(xdebu... | 3 | 3,318 |
Async callback nodejs | <p>I try to use async NodeJs library to execute a render with express after collecting informations of a API but the async.parallel callback execute itself before collecting all data that I need</p>
<p>This is the code : </p>
<pre><code> LolApi.getMatchHistory(app_dtb.summoner.id, "euw", function(err, hist... | 3 | 2,097 |
When ThreadB Monitor.Pulse(_locker) which thread will get _locker first? | <p>I read this article <a href="https://www.codeproject.com/Articles/28785/Thread-synchronization-Wait-and-Pulse-demystified#_articleTop" rel="nofollow noreferrer">https://www.codeproject.com/Articles/28785/Thread-synchronization-Wait-and-Pulse-demystified#_articleTop</a></p>
<p>There is a quote:</p>
<blockquote>
<p>Re... | 3 | 1,065 |
android: handler | <p>I am developing a kind of memory game app, where initially the 6 buttons will show some figures. Then when the below MyCount5sec and handler operates, after 5 sec of waiting period for user to remember, the handler will invoke txtClearRun whereby all the texts on every buttons to be erased.</p>
<p>Then after the 5 ... | 3 | 1,537 |
Modifying array for pygame to blit | <p>I have a medium sized array of tiles represented as numbers that pygame blits to the surface each tick. My array looks like this:</p>
<pre><code>chipset = [[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0... | 3 | 3,328 |
How do I detect loss of connection from a web socket in my Swift App | <p>I am trying to detect loss of connection to my web socket in Swift. I have very little understanding of web sockets but I have tried googling for information but with little success. Here is my custom class providing a web socket service;</p>
<pre><code>//
// Services.swift
// BetVictorTask
//
// Created by Steph... | 3 | 3,245 |
Refresh Text in Notification (Remote View) Using Broadcast Receiver | <p>I have looked all around and can not find a way to overwrite an existing Remote View TextView using a Broadcast Receiver.</p>
<p>I'm trying to get the Remote View inside my MainActivity and update it with a new value to be displayed inside the notification when I press the button on the notification. I tried to rec... | 3 | 2,900 |
PayPalConnectionException in PayPalHttpConnection.php line 174: | <p>Hey I'm working on Laravel 5.3 and I'm trying to implement the PayPal Api, and I found a tutorial online, so I followed every step but then I got an error and I don't know how to solve it.</p>
<p>This is the code where I get the error:</p>
<pre><code>try{
$payment->create($this->_apiContext);
} c... | 3 | 3,459 |
You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon | <p>I am uploading data to database using WWW.
I have two data classes for data object.</p>
<pre><code>[Serializable]
public class pushdatawrapper{
public string email;
public pushdata[] shotsArray=new pushdata[1];
}
[Serializable]
public class pushdata{
public string timehappened;
public string clubtyp... | 3 | 1,949 |
I can't take QObject information from an object created as a subclass of QObject using reflection | <p>I have to create an instance of an object (subclass of <code>QObject</code>) using reflection. </p>
<p>Let's suppose this object is <code>MyQObject</code> and have declared the following properties using the <code>Q_PROPERTY</code> macro: <code>MyQObject1* p1</code>, <code>MyQObject2* p2</code>, <code>MyQObject3* p... | 3 | 1,084 |
start navigating to position which is stored in database | <p>I have an application where I am getting the latitude and longitude coordinates.</p>
<p>I want , when to press a button to start navigating to that position .</p>
<p>Now , I am storing latitude and longitude in database.</p>
<p>So , I want to extract the location first.When I press the button to navigate I open a... | 3 | 1,820 |
Restructuring Dataframe | <p>I have a dataframe that currently looks as follows and has 262800 rows and 3 columns. My dataframe is currently as follows:</p>
<pre><code> Currency Maturity value
0 GBP 0.08333333 4.709456
1 GBP 0.08333333 4.713099
2 GBP 0.08333333 4.707237
3 GBP 0.083333... | 3 | 1,301 |
ChartJS 'Line chartjs' does not show output in NodeRED? | <p>My requirement is to output 2 y-axis chart with real-time data readings in NodeRED. I have installed <code>ChartJS</code> package in NodeRED and now according to the documentation of the package there should be <code>PATH, Title, X-Axis, Y-Axis, Payload</code>. But I couldn't find the <code>Payload</code> tab anywh... | 3 | 1,256 |
Delete Row from html table on icon click using flask, python, and sqlite | <p>I'm at a total loss on how to do this. I'm building a webpage and I need to be able to delete a record from my SQLite database once the user clicks the delete icon on the front end. Can someone please help me figure out how to do this? I have no experience using PHP so any reference to that just won't be helpful. As... | 3 | 1,718 |
Shared Preferences in music player | <p>I created a Music stream app that fetch the data from the firebase but i have a one issue in my app when i play a song and go back and come again then seek bar does not shows the current duration . So i think i should use Shared Preferences but i don't known how to use can any one suggest me the code for my music pl... | 3 | 2,610 |
Finding closest input text after select dropdown was chosen | <p>So what I'm trying to do is change value of the input with id championSpell[] whenever something from dropdown select name="change[]" id="change[] is chosen. Inputs are generated dynamically. Test variable in function val() is responsible for that change and is the one I have problems with.</p>
<pre><code><scri... | 3 | 4,379 |
Context initialization failed(Caused by No qualifying bean of type) | <p>I tried to run my first web application using Spring MVC and Hibernate, but I have some problem.</p>
<p>GenericDao:</p>
<pre><code>@Repository
public abstract class GenericDao<T> implements GeneralDao<T> {
private Class<T> className;
protected GenericDao(Class<T> className) {
... | 3 | 6,693 |
How to do a t-test for dependent variable by groups | <p>i want to show, if there is there a significant change in VO2max between the two groups (Experimentalgruppe and Kontrollgruppe).
Therefor i have to make zwo t-tests (betwenn t0/t1 and t1/t2) for dependet variables with the following data:</p>
<pre><code># A tibble: 18 x 4
group `t0 VO2 max` `t1 VO2 ma... | 3 | 1,850 |
Siamese network with third component error | <p>I was able to create a siamese network similar to :</p>
<p><a href="https://github.com/aspamers/siamese/" rel="nofollow noreferrer">https://github.com/aspamers/siamese/</a></p>
<p>The problem happens if I try to add a third model as an input to the head of my network.
I will get the following error :</p>
<pre><code>... | 3 | 1,376 |
pytesseract.image_to_string(im) not able to access the input file | <p>Trying to read text from an image using pytesseract. Using the following two commands. Image.open does return the image properly, but the next command fails with windows error of file not found.</p>
<p>First of all I don't understand, why it is trying to read the image from the disk, as it is already read by previo... | 3 | 1,565 |
activiti execution.setvariable not working in task listener | <p>Good day.</p>
<p>I created a variable instance 'TaskAssignee' which will be utilize across task and flow.
TaskAssignee will store the task assignee name and show it in the next user task (via form).
I used the execution.setVariable inside the task listener but it didn't work.
How am i able to do it?</p>
<p>Here is... | 3 | 1,410 |
Spring boot JPA Hibernate return nested Json Object : Reddit style comment system | <pre><code>@Entity
public class Comment {
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String content;
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "parent_id")
private Comment parentComment;
@OneToMany(mappedBy="parentCommen... | 3 | 1,149 |
Jquery Validate changing page before php script runs | <p>I am new to PHP MYSQL JQUERY and I have a Jquery Mobile Form that i want to submit the form data to mySql then change to #pageTwo of the mobile page. This seems like it should be easy to do but i cant seem to figure it out.</p>
<pre><code><body>
<div data-role="page" id="pageone">
<?php include 'co... | 3 | 2,504 |
Could not install erdpy - no module named 'ledgercomm' | <p>When I try to install <code>erdpy</code>, it fails with the following message:</p>
<blockquote>
<p>ModuleNotFoundError: No module named 'ledgercomm'<br />
CRITICAL:installer:Could not install erdpy.</p>
</blockquote>
<p>I follow the steps from <a href="https://docs.elrond.com/sdk-and-tools/erdpy/installing-erdpy/" r... | 3 | 3,209 |
Android app crashes on onClickListener | <p>I have this app which is a simple lottery system but whenever I try pressing one of the buttons the app freezes then crashes and I don't know why. The program doesn't give me errors so it's really confusing. I saw some things about it being a problem with the layout but I can't figure out what it is. I will answer t... | 3 | 2,233 |
Associative Array where a class TypeInfo is key in D? | <p>I'd like to be able to create an multidim associative array where one dimension is a class. Like this:</p>
<pre><code>class Node{
Node[?classType?][string] inputs;
}
</code></pre>
<p>so that I later can do</p>
<pre><code>Node[] getInputsOfType(?? aClass){
if(aClass in this.inputs)
return this.inputs[... | 3 | 1,093 |
How to check who won in rock, paper, scissors- user vs computer- Python Tkinter | <p>I'm working on a rock, paper scissors game- user vs computer in Python tkinter. I'm struggling in the check function- the if statements in that function always evaluate to false for some reason (I checked by adding an else statement and printing something, and the program ended up going to the else statement every t... | 3 | 3,644 |
Datatables Multi Filter Same Column | <p>I need to be able to apply multiple filters to a single column using datatables.</p>
<p>I've been looking at an example they have provided <a href="https://www.datatables.net/release-datatables/examples/api/multi_filter_select.html" rel="nofollow noreferrer">here</a> but my requirements are slightly different.</p>
... | 3 | 1,617 |
jQuery - Show entered text from input field as heading for Dynamically added block | <p>jQuery with Bootstrap Modal...</p>
<p>I am creating info boxes dynamically and allowing users to type box heading through input textbox and clearing the input after adding it...</p>
<p>First time, it is working as expected.. where as If I try to create one more box, previously created boxes headers also changing..... | 3 | 1,338 |
How to improve peformance of extracting data code in Python and numpy | <p>I'm trying to implement missing point in DIC (Digital Image Correlation) results, which are missing due to destruction of material (photo). </p>
<p><img src="https://i.stack.imgur.com/IcSBe.png" alt="enter image description here"></p>
<p>I would like to put points (without values) for this area where it is missing... | 3 | 3,187 |
How do I keep the string value the same when the indicator buffer no longer gives a value? | <p>I've coded a basic Expert Advisor to trigger a trade when the parameters are true. However, in this case the code will never meet all the requirements because the string value gives no value when the indicator buffer doesn't give a value.</p>
<p>What I need help with is to make the string value for <code>saisignal</... | 3 | 2,168 |
Uncaught ReferenceError: AI is not defined at Object.play.AIPlay | <p>I have developed an AI HTML5 game.
It could run well locally.
But after deployed to github page, some js problems occurs.</p>
<p>AI.js</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-overri... | 3 | 11,261 |
Error reading a Trajectory File using Chemfiles library | <p>I need to write a piece of cpp code that will read a trajectory file (.pdb or .dcd files). I have followed the steps on the homepage of <a href="http://chemfiles.org/chemfiles/0.6.0/example.html" rel="nofollow noreferrer">chemfiles</a> library to read in the file. I am getting an error about undefined symbols for ar... | 3 | 1,905 |
How to get the element value in two sections in xml but ignore if any one of the section has empty element value in groovy | <p>We need to get the number element values from the services (there are two service sections). if it(number element) has the value in any of the service then it should take those values and if none of the services don't have number value then it should throw the exception. Please help me.</p>
<pre><code><service&g... | 3 | 1,176 |
VUE - [food toppings counter ] how increase value of element -topping- in a v-for list -of toppings- when click on "+ add" button | <p>I'm a beginner in js and vue and I'm building a website to automate the orders of my pizzeria delivery.</p>
<p>I have a v-for list of toppings, customers can choose up to 4 toppings from a list and he can select 2, 3 or 4 times the same topping.</p>
<p>I created a counter for each item in the list, which stores th... | 3 | 2,584 |
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[SecundaireSchool.Models.tblRapporten]' | <p>The model item passed into the dictionary is of type <code>System.Collections.Generic.List'1[SecundaireSchool.Models.tblRapporten]</code>, but this dictionary requires a model item of type <code>SecundaireSchool.Models.tblRapporten</code>.</p>
<p>Model <strong>tblStudenten</strong></p>
<pre><code>public partial cl... | 3 | 1,261 |
CSS Blur causing a bit of a position/height shift on span without filter | <p>I've created a snippet to demonstrate the issue I have, essentially, once you hover over one of the boxes, the span label seems to change</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint... | 3 | 1,320 |
Hold Spinner value for next tab | <p>I want the selected value from a spinnner to be kept in memory or temp table or anywhere, so that it can be used on next tab.<br/>
I watched lot of tutorials, but didn't find any solution.<br/>
I've the following code (it gives me toast message only; I populate the spinner from a database):</p>
<pre><code>super.onC... | 3 | 2,509 |
Muenchian grouping, counting number of groups | <p>Am using muenchian grouping to group subjets and grades as per students. I can get count for number of subjects opted by each student. But I could not get count of number of students.</p>
<p><strong>Input XML</strong></p>
<pre><code><data>
<school>MIT Kindergarden</school>
<year>2013<... | 3 | 2,054 |
How can I turn this into a for loop? | <p>I am writing a Mastermind program in Java. So the user has to enter the number of pegs and colors and a code will randomly be generated and the program will do its thing and tell them if they got the code or not. I have a bunch of IF statements and I tried putting it into a for loop so I don't have to create a if s... | 3 | 1,645 |
How to change a view after user clicked on a button and a Firestore document got updated? | <p>So basically when a user comes to the "premium" activity in my app he sees a button which says "Purchase premium". When he clicks on it a document in Firestore gets updated (a boolean from false to true) and the button disappears and instead of the button a TextView appears. When the user navigates back to the MainA... | 3 | 1,156 |
Realm - Why are notification blocks triggered when a write transaction begins? | <p>I noticed today that Realm notification blocks are triggered when a write transaction begins. Intuitively I would have thought that <em>ending</em> a write transaction would trigger collection notifications with the changes that just happened, but I tracked down a crash in my code today resulting from a notification... | 3 | 1,408 |
how do you get email data in Android Studio? | <p>Why does this crash my android app whenever I attempt to run it / what is the best way to get email data into an android app? </p>
<p>The app itself only consists of a button to click - I have gotten the below code to work in eclipse and I am attempting to run it on a mobile phone and not an emulator so I am no lon... | 3 | 1,347 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.