title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Race condition with multiple responses from asynchronous axios calls in a vuejs app | <p>I am running multiple axios.get() calls in my Vue.js app. I would like to call another function </p>
<pre><code>this.useData()
</code></pre>
<p>after all of the fetches have received responses. How can I do this? I have read about Promise.all(). If this would help me, please advise on how to incorporate Promise.al... | 3 | 1,190 |
Why might a string literal not be a string? | <p>I'm struggling with this part in the C standard about string literals, especially the second part of it:</p>
<blockquote>
<p>"<em>In translation phase 7, a byte or code of value zero is appended to each multibyte character sequence that results from a string literal or literals. 80)</em>"</p>
<hr>
<p>"<... | 3 | 1,048 |
404 Error - The origin server did not find a current representation for the target resource or is not willing to disclose that one exists | <p>Really need help!
I am trying to deploy my application on to Tomcat. I tried almost every solution on stackoverflow but no luck.</p>
<pre><code>Maven clean install [Success]
Run on server - 404 error
INFO: No Spring WebApplicationInitializer types detected on classpath
Jul 18, 2018 8:12:22 PM org.apache.catalina.co... | 3 | 1,053 |
unable to draw graphs using Vis.js in tornado | <p>Hi all iam trying to draw a graph using vis.js in tornado framework but i am unable to achieve that how to direct the file i am right now getting only Helloworld in the url but not the graph
thanks in advance </p>
<pre><code>enter code here Tornado
import tornado.httpserver
import tornado.ioloop
import tornado.... | 3 | 1,269 |
bootstrap dropdown menu items size not changing | <p>I have one more problem with bootstrap navbar dropdowns</p>
<p>this is my code</p>
<pre><code><header class="navbar navbar-purple navbar-static-top bs-docs-nav" role="banner">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button... | 3 | 1,699 |
onBackPressed to fragment(A, B, C) | <p>I have main activity and three fragment (one, two, three).
And all this fragments extands BaseFragment:</p>
<pre><code>public abstract class BaseFragment extends Fragment {
private Toolbar mToolbar;
private ActionBar mActionBar;
@Override
@CallSuper
public void onAttach(Activity context) {
super.onAttach(conte... | 3 | 1,183 |
Add new object inside array of objects, inside array of objects in mongodb | <p>Considering the below bad model, as I am totally new to this.</p>
<pre><code>{
"uid": "some-id",
"database": {
"name": "nameOfDatabase",
"collection": [
{
"name": "nameOfCollection",
"fields": {
"0": "field_1",
... | 3 | 1,162 |
Need Help related to ADODB VBA Macro SQL SERVER | <p>I am trying to load data to my SQL server 2008 R2 Database using VB macro from an excel sheet.
I have already written a macro that was working fine for one table ,but when i modify it to insert data into another table i am getting the error </p>
<p><code>
Runtime Error'2147217900(80040e14)'
[microsoft][ODBC SQL Ser... | 3 | 1,061 |
Using case statements to chop up a table | <p>I have a table stored in postgres which looks like this:</p>
<pre><code>Column RowIdx Value
1 0 Dr A
1 1 Mr B
1 2 Mrs C
2 0 101
2 1 105
2 2 127
3 0 Red
3 1 Green
3 2 ... | 3 | 1,208 |
WordPress User Query by ACF Custom Fields? | <p>I asked a question earlier and someone was very nice to help out and point me in the right direction, but now i'm stuck again and hoping someone can help! :)</p>
<p>So, I have a search form on a wordpress site that connects to ACF. It takes ACF fields and then maps them to checkboxes that are assigned values that I ... | 3 | 1,554 |
How to sort inner object while parsing json data with gson | <p>I have two classes. </p>
<p>Class SubCategory</p>
<pre><code>public class SubCategory implements Comparable<SubCategory>{
private int scid;
private String scname;
public SubCategory(int scid, String scname) {
this.scid = scid;
this.scname = scname;
}
public int getScid(... | 3 | 1,191 |
Kendo UI Line chart not refreshing | <p>I'm using Kendo Data viz and am passing JSON to an .NET MVC page to initialise the chart:</p>
<pre><code><div class="k-chart" id="SummaryWeekImportChart"></div>
$("#SummaryWeekImportChart").kendoChart(
@Html.Raw(Model.KendoLineChartJson));
</code></pre>
<p>The JSON (important bits):</p>
<pre><... | 3 | 1,643 |
Very strange WordPress foreach behaviour | <p>I have some php running in a WordPress page, which runs a MySQL query to get transaction details from custom post meta. It's complicated, so I'll start with a bit of background:</p>
<p>Custom post type "transaction" is for incoming money. The meta of interest is a date and an amount.
Custom post type "payment" is f... | 3 | 1,072 |
Redux unwanted effect on .splice() | <p><strong>Hello everyone </strong></p>
<p>Today I'm trying to make a cart with redux and i'm on the step who i have a button for <code>remove</code> the product entirely.</p>
<p>If i have 2 products or more in my redux store and i want to remove the first, all the cart will be deleted.</p>
<p>If i remove the last prod... | 3 | 2,532 |
php pdo success but dont enter the data to the database | <p>I have this weird issue with my PDO/SQL. I use namespaces and classes to control things.</p>
<p>I use a custom PDO class which is because I also define some standard values like PDO should throw exceptions and so.</p>
<p>The weird issue appears when I try to create a user. I'm in the development stage on this proj... | 3 | 1,691 |
Getting an exception when site is pushed to production | <p>This is probably a shot in the dark but here goes nothing...</p>
<p>I have a Sitecore 6 site that I am developing locallty. When I pushed it to the production server, I now get an exception when trying to access the site. I had done an upgrade of the Sitecore version, and added the Forms module, among some other ... | 3 | 1,233 |
Stata dummy variables start date end date | <p>I want to rearrange dummy variables which are currently not in an usable format for Stata: I have a start date and an end date for different measures (&different countries)- a dummy indicates "1" when the start date of the measure and the data-date "date2" equal. However, I need the dummy var... | 3 | 3,128 |
Importing csv data from Storage to Cloud SQL not working - status always "pending" | <p>I am new to java (I have experience with <code>C#</code> though)</p>
<p>Sadly, I inherited a terrible project (the code is terrible) and what I need to accomplish is to import some csv files into Cloud SQL</p>
<p>So there's a WS which runs this task, apparently the dev followed <a href="https://cloud.google.com/sq... | 3 | 1,064 |
Error on submitting partial page using AJAX | <p>Recently, I quite often get errors that work in dev but not in production, and this is the one. When submitting partial page using AJAX I've got error "500 Internal Server Error" . The detail that captured by Firebug:</p>
<h2>Exception details</h2>
<p>
Controller: TimeKeeper <br />
Action: Edit<br ... | 3 | 4,326 |
Form submitting before jQuery validation is checked on submit | <p>I am using Ajax and jQuery to validate and submit the information from my form. The issue I am having is that when I click the submit button the form submits the information to the server straight away before performing the validation checks and displaying the errors?</p>
<p>I'm not sure what the issue is here so a... | 3 | 1,061 |
How to solve this annoying jQuery mouse hover issue? | <p>I'm trying to do something that <strong>should</strong> be very simple, but it's causing this weird problem. Basically I have a bunch of identical divs on a page, each div has a nested div and paragraph content within that nested div. The nested div and all it's content is initially hidden using css. When the user h... | 3 | 1,976 |
(React-Native) Item in Flatlist do not shows the correct style as in Stylesheet on the first load | <p>I am trying to create a view with a top card showing an image and a bottom card showing relative information in a horizontal flatlist.</p>
<p>The style gets broken on the first load and as soon as I refresh the code without any change, the component shows the correct style as expected.</p>
<p>This is happening after... | 3 | 1,673 |
TCP connections are stacked until 65k when using HttpWebRequest fetching function - internet connectivity is lost | <p>I don't understand what may cause this error</p>
<p>I am using the below function with about 1000 concurrent connections</p>
<p>Each connection uses a different webproxy</p>
<p>After a while like 15 minutes working, the established TCP connection count starts to stack and internet connectivity becomes lost</p>
<... | 3 | 2,231 |
Android SQLiteException no such table | <p>friends.</p>
<p>I try to use a pre-created custom database in my android app. First I copy my DB using this code.</p>
<pre><code>public void onCreate(SQLiteDatabase db) {
final String DB_DESTINATION = "/data/data/com.example.android.sqlitedatabaseexample/databases/turkish2.db";
boolean initial... | 3 | 1,488 |
How to simulate 1000 vehicles in veins/omnet? | <p>I tried to simulate 1000 vehicles on the Veins erlangen example. But the simulator always stop around 700 vehicles and displays error messages. I can simulate 500 vehicles. Why I can't simulate 1000 vehicles? </p>
<blockquote>
<p>RUNTIME ERROR. A cRuntimeError exception is about to be thrown, and
you requeste... | 3 | 2,418 |
AS3 Error 2038 on Windows only | <p>hope someone can help me with this!</p>
<p>I've written a simple online 3d editor in Flash - it's about to go out to a selection of clients but the file uploader has a bit of a glitch which has only just reared its ugly head. Using FileReference to upload media to https page, it works like a dream on OSX which is w... | 3 | 1,349 |
3rd dropdown is based off first 2 dropdown's selections but the 3rd's state is always 1 step behind | <p>I have the following code:</p>
<pre><code>const [homeSelect, setHomeSelect] = useState('Home');
const [hedgeSelect, setHedgeSelect] = useState('Hedge');
const [symbolSelect, setSymbolSelect] = useState('');
const [similarSymbols, setSimilarSymbols] = useState([]);
const handleHome = (event) => {
setHomeSelec... | 3 | 1,617 |
Compute difference between values int according to a condition with Pyspark | <p>I have data like this:</p>
<pre><code>from pyspark.context import SparkContext
from pyspark.sql.session import SparkSession
sc = SparkContext.getOrCreate()
spark = SparkSession(sc)
from pyspark.sql.functions import substring, length
dept = [("A",1,"2020-11-07 23:19:12",50), ("A",1,"... | 3 | 1,769 |
Using axios or async network call in the actions of the redux, updating the initial state | <p>I am developing a Web application using React + Redux. What I am doing now is I am making a API request using the Axios network library. I do not want to make the asyc API call in the component. As a book I am reading recommended, I am making the call in the actions. </p>
<p>This is my actions.</p>
<pre><code>expo... | 3 | 1,140 |
I literally copy and pasted a jquery code and it does not work | <p>I literally copy and pasted a jquery code and it does not work. I can never, for some reason, make jquery work. I dont know if there are any requierments to be able to use jquery. I got this code from a site and it works there but it does not work when i make a html file and open it. It just displays the text.</p>
... | 3 | 1,852 |
Nested state won't show its ui-view | <p>I'm working with UI-router in AngularJS and working with my nested views, I have multiple levels of states, but at one point I cannot trigger my UI-view.
Here is my state definition:</p>
<pre><code>app.config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
$stateProvider
... | 3 | 3,992 |
Creating a class with an open file stream | <p>I've created a class which is supposed to read in DNA sequences: It contains an if stream private member:</p>
<p>Interface:</p>
<pre><code>class Sequence_stream {
const char* FileName;
std::ifstream FileStream;
std::string FileFormat;
public:
Sequence_stream(const char* Filename, std::string Forma... | 3 | 1,559 |
How to fine-tune the pruned model in PyTorch? | <p>I'd like to fine-tune a pruned model.
I tried to do as below;</p>
<ol>
<li>train a model</li>
<li>save the trained model # (trained_model.model)</li>
<li>load the trained model and prune it</li>
<li>save the pruned model # (pruned_model.model)</li>
<li>load the pruned model and train it</li>
</ol>
<p>I could do fr... | 3 | 1,700 |
Google fonts latin extended not loading | <p>On my website I am trying to load a google font. It is called 'Comfortaa' ( see link below ). The font shows up perfectly for English, but when translating the page it does not load the Latin-Extended characters like 'éëèáäà' etc.</p>
<p>Image : <a href="https://i.stack.imgur.com/04xzF.jpg" rel="nofollow noreferrer"... | 3 | 1,669 |
SPOOLING SQL SELECT statement to CSV File Oracle 12C - Date column comes out blank if not at far right hand side | <p>Im working on systemising some reporting which is done each day, I have created sql select statements which return the required data and I'm now looking to have these run overnight and saved to a location. </p>
<p>We export and save files in a single string as CSV with a '<code>|</code>' delimiter, using this appro... | 3 | 1,025 |
Onclick event not changing element ID | <p>I'm attempting to code a slide-puzzle in the browser. When the user clicks a square on the grid that's adjacent to the BLANK square, the clicked square should be swapped with the BLANK.</p>
<p>EDIT: This is what it should do when finished: <a href="https://en.wikipedia.org/wiki/15_puzzle" rel="nofollow noreferrer">... | 3 | 1,407 |
Create object from a block of search results Ruby on Rails | <p>I'm building a Rails application that allows the user to create a Book object based on search results from the Google Books api. I have a controller that handles searching the api, using the GoogleBooks gem and displays the results in a list. I'm struggling to figure out a way to pass book information from a single ... | 3 | 1,125 |
Python xarray xr.open_mfdataset error "ValueError: Could not find any dimension coordinates to use to order the datasets for concatenation" | <p>I am facing an issue using xarray xr.open_mfdataset. I assume it happens because my netcdf files do not have a time dimension (daily mean values; only one timestep each file). However; I do not understand how I could merge the files despite this? The files have the same lat and lon dimensions. Any suggestion? Many t... | 3 | 2,038 |
Is it possible to create nested pdf documentation with sphinx+intersphinx? | <p>I have a project B thats needs project A to work, so I'd like to embed documentation of A in the one of B, and, this document must be pdf (not html).</p>
<p>The project A looks like :</p>
<pre><code>~> more conf.py
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection ... | 3 | 1,868 |
Landing Page Button Organization | <p>I am using a template to create an app using QT Creator and QML and am hoping to create a landing page that allows users to select which "page" they want to navigate to by clicking an icon.</p>
<p>I've figured out how to get a button on the landing page and have it open another page. However, I am using x ... | 3 | 1,980 |
How to listen for scroll event inside div element? | <p>I need after my <strong>.form-element</strong> scrolls fully to top (and disappears from view port) to add class to a spicific element. I cant understand now why it triggers in a half of visibility of my <strong>.form-block</strong>. Any ideas why ?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-... | 3 | 1,233 |
Undefined index: transfer_encoding | <p>Ok a few weeks ago my script stopped working and today I notice I'm getting an error: [05-Mar-2017 06:31:32 America/Denver] PHP Notice: Undefined index: transfer_encoding in /home2/website/public_html/maps_apps/EasyWebFetch.php on line 105.</p>
<p>Here is what line 105 is: </p>
<pre><code>if ($this->_res... | 3 | 5,589 |
Running a query with missing variables | <p>This script is selecting data based on optional fields in a HTML form. Although they are optional fields, at least 1 must be entered with the idea being that the more fields entered, the more likely you are to get a single result. For test I have two records with the same first and last name but different ID's and m... | 3 | 1,181 |
How to pass Future<Either<Response, List<dynamic>>> function as parameter to Widget? | <p>I created a general ListPage as below:</p>
<pre><code>class ListPage extends StatelessWidget {
final context;
final Future<Either<Response, List<dynamic>>> futureFuncion;
final classListItem, classDetailPage;
const ListPage(this.context,this.futureFuncion,this.classListItem,this.classDetai... | 3 | 1,127 |
onChangeText returning object Object instead of the value | <p>I want to change the data fetched from an API by changing the endpoint of the URL in react native. I have tried several ways but I an getting [object Object] at the end instead of the query.
It can be seen in the console.log(baseurl) statement in line 52.
Here is my code.</p>
<pre><code>import React, { useEffect, us... | 3 | 1,112 |
nextjs with docker. I connect to the website only with port 3000 | <p>In nextjs with doker I go to the website like this "site.com:3000".but of course I want to go to my site just by this link "site.com".I don't understand why 3000 is sucked at the end.
It looks like your post is mostly code; please add some more details.
It looks like your post is mostly code; ple... | 3 | 1,041 |
Painting method paints things from other components | <p>I am trying to make a simple Java program with GUI using Java Swing.</p>
<p>I have painting panel (gPanel) in the center of the screen, panel with buttons (buttonSet) in the west and panel with labels (labelPanel) in the east. To paint over gPanel I use paintComponent method and since I have two buttons, which are s... | 3 | 4,184 |
Unhandled Rejection (TypeError): Cannot read property 'push' of undefined aftering trying to do POST request | <p>This error pops up in browser when trying to post:
newest error:</p>
<p>TypeError: Cannot read property 'push' of undefined
at SandwhichForm.js:30
at async SandwhichForm.handleFormSubmit (SandwhichForm.js:27)</p>
<p>Here is the full code:</p>
<pre><code>
import React from 'react';
import { Form, ... | 3 | 1,904 |
two variants building at same time | <p>I know this topic doesn't seem very clear, but i really didn't know how to name it!</p>
<p>when i open my android studio project, suddenly the build page show two modules that is building, then second one fails with silly errors and first one continues on <code>syncing...</code> forever</p>
<p><a href="https://i.s... | 3 | 2,028 |
UPDATE pivoted table to DB | <p>I have a pivoted table from a MySQL query that was derived from:</p>
<pre><code>+------------+------------+-----------------+------------------+------------+-----+
|submit_time |form_name |field_name | field_value |file_order |file |
+------------+------------+-----------------+------------------+---... | 3 | 1,065 |
Telerik: Add Edit Functionality to Grid? | <p>OK... I'm very very rusty, so please be kind ;)</p>
<p>I'm building web form application, using a Grid. I have the grid populating with my data correctly (considering this is a rough draft) and now I'm trying to add the edit function. I created a combobox, which displays correctly when I choose "edit". This is a... | 3 | 1,373 |
getting error in rest call with key and secret using md5 in android? | <p>how to make rest call with key and secret using md5 in android?
but I am getting an error as a response in loginService() method, </p>
<p>error :
{"status":"error","message":"Signature mismatch"}. </p>
<p>the steps I followed,
Step 1- I made a string "param" for getting hash string using md5(string) method
St... | 3 | 1,495 |
Knex migration command result in error: Timeout acquiring a connection | <p>I'm building a backend project with Docker as my environment plus</p>
<ul>
<li>Node 17+</li>
<li>Knex ^1.0.1</li>
<li>PG ^8.7.1</li>
<li>PostgreSQL 14.1-alpine</li>
</ul>
<p>I was able to connect to my DB via a GUI as <strong>Table Plus</strong> and <strong>DB Beaver</strong>.
I also was able to use the <code>knex m... | 3 | 1,391 |
receive data continuously using udpClient from multiple IP Adresses | <p>I'm working on a Project, I have to receive data from multiple IP Adresses at the same Time and then show this data in Data-Grid-View, each row will always show data from specific IP</p>
<p>I have established the Cleint connection but I cant receive the data from multiple IPs at the same Time (I can receive from mul... | 3 | 1,514 |
Kafka no partition allocation | <p>First Kafka project, so trying out simple programs. I wrote trivial Java programs to publish records to a Kafka topic and read records from the same topic. This is simple stuff, just to prove to myself that I know how to do it. The idea was to have a ReconcilePublish class, a ReconcileSubscribe class, and a Reconcil... | 3 | 1,435 |
How to insert data in database using Ajax (without JQuery)? | <p>I'm creating a shoutbox based on php, mysql and ajax for my website. Now I want the user to be able to write a message, open the saving file using Ajax and insert the message to the database with php.
Everything is working fine - except for the ajax part. Somehow it doesn't open the saving file.</p>
<p>html:</p>
<... | 3 | 1,047 |
jQuery tablesorter refusing to working after many attempts | <p>my jquery tablesorter plugin has just refused to work no matter what I do. I have tried downgrading my version of jquery amongst other things but still nothing.</p>
<p>I'm building the table from my js file with data from an external json file.</p>
<p>Here's what my HTML looks like.</p>
<pre><code><div class="... | 3 | 1,543 |
Unable to perform communication between java client and python server with SSL | <p>I am trying to use keys and certificate generated using java <code>keytool</code> in python server and java client. I have created key & keystore, exported certificate, added certificate to truststore, converted keystore to standard pkcs format and then extracted key and certificate from pkcs to use in python se... | 3 | 3,877 |
How to manage multiple Subscriptions using one controller action? | <p>I have following subscription creating system, right now when I`m selection available subscription groups(Marketing, Sales) action <code>Save Subscription</code> create this two subscriptions:</p>
<pre><code>@apps = App.all
if request.post?
if params[:subscription] and params[:subscription][:app_id] ... | 3 | 1,149 |
Encountered problem to perform test case when fetching data from Excel file using KeywordDriven | <p>Problem I'm facing is libraries are not imported like <code>Workbook</code>, <code>Row</code>, <code>Cell</code>, <code>HSSFWork</code> etc. When i try to import its not importing.</p>
<p>Here is link of console: <a href="https://prnt.sc/15oajs9" rel="nofollow noreferrer">https://prnt.sc/15oajs9</a></p>
<pre><code>... | 3 | 1,088 |
Row chart puts zero at center when no data | <p>I am creating row chart using dc.js in angular, but the chart is not aligned properly. See the screenshot below:</p>
<p><img src="https://i.stack.imgur.com/Azq3b.png" alt=" image " /></p>
<pre>
var chartData=dc.rowChart(".div");
chartData
.width(900)
.x(d3.scaleLinear().domain([0, 20])... | 3 | 1,215 |
Drag fragment up and down | <p>I have the main activity which is composed by two fragments one called Canvas and the other is the Palette. In the main activity, the palette only appears on 25% of the screen and I want to make it possible so that the user can drag it up and down to choose colors from it. I have no idea how to do it.</p>
<h2>main.x... | 3 | 1,425 |
Android: Exit full screen and return to main activity | <p>Main activity contains a spinner and a button. MainActivity.java code is as follows.</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>public class MainActivity extends AppCo... | 3 | 2,831 |
dropdown navigation in IE hidden/not working | <p>Here's my css...wrote this a while back and it worked across IE/Firefox/Chrome perfectly and came back to it recently and now big surprise it won't show my dropdown navigations in IE. Help?</p>
<p><a href="http://pastebin.com/smRU6Syb" rel="nofollow">http://pastebin.com/smRU6Syb</a> = html</p>
<pre><code>/* ANYTHI... | 3 | 1,355 |
Why does RSPEC behaves differently between Edit view and New view tests with Rails 5.2? | <p>I am developing an application with Rails 5.2, and testing the features using Capybara.</p>
<p>I want to make sure that not connected users cannot view the Playgrounds pages, and that connected ones can. Authentication is based on Devise, so that when you request an unauthorised page, you are routed to the login pa... | 3 | 1,276 |
How to solve this JSON promise error with ReactJS? | <p>I am new to React so there might be a lot of mistakes around. Also, I know there are similar questions, but none helped with my problem so far.</p>
<p>I'm working on a project (using a template) that is using Java Spring (back-end) and ReactJS (front-end).
At the moment I am trying to make a login form, and verify t... | 3 | 1,113 |
Find and style individual elements of HTML through their index in jQuery | <p>I am working on a party game (i.e. Tambola/Housie) where I want to automatically identify all the numbers on each ticket that have been called out on the housie board. For example: if 86 has been called out then I want to highlight it (i.e. change its font color or background color) on ticket no. 2 and 3 respectivel... | 3 | 1,381 |
Error redirects for OpenCart with UserFrosting | <p>So I have been working on integrating OpenCart in to UserFrosting (<a href="http://www.userfrosting.com/" rel="nofollow">http://www.userfrosting.com/</a>). Basically I am making all the admin dashboard pages load in the UserFrosting dashboard by using <code>.load</code> to inject the pages into a <code>div</code> on... | 3 | 1,693 |
What's wrong "syntax error near unexpected token `fi'"? | <p>I can't deal with the problem. I run the script (I'll attach it below), after the first question I get the error "line 37 syntax error near unexpected token `fi'
If fi is removed, nothing changes.
Help me to understand...
I tried many solutions, and dos2unix configuration, and double-checked all the indents</p>... | 3 | 1,442 |
User entries not reflecting in the database | <p>I have connected the php code below to my html file to acquire inputs from users. But when an entry is made it doesn't reflect in my database.The user gets redirected to a different page(contact.php) and the feedback he/she gets is page isn't working right now.
<a href="https://i.stack.imgur.com/O4Oz6.png" rel="nofo... | 3 | 1,640 |
Update two similar csv files with same key using pandas | <p>I have two inventory csv, one is the updated version of the other;
the new one can have new rows with keys not presents in old one; missing row for keys no more presents; same keys with updated records:</p>
<pre><code>sku nome prezzo qty codice
1 uno 10 1 11111
2 due 10 1 22222
3 tr... | 3 | 1,311 |
Converting Video Uploads for HTML5 in Chrome | <p>I am creating a CMS where users can upload videos for display on pages.</p>
<p>When a video is uploaded, I create a background task (using <a href="http://hangfire.io/" rel="nofollow noreferrer">Hangfire</a>) to convert the video into MP4, OGV and WEBM.</p>
<p>I am running the latest versions of Firefox and Chrome... | 3 | 1,115 |
Setting values of a list to a list of dataframes | <p><strong>Scenario:</strong> I have 2 lists, one is a list of strings with names, the other is a list of dataframes with varied content. I am trying to put the values from the first list into the second.</p>
<p><strong>Data Example:</strong> </p>
<pre><code>list1 = ['jan18', 'feb18', 'mar18', 'apr18', 'may18']
</cod... | 3 | 1,167 |
Backbone View Event not firing difference | <p>I am a backbone newbie and I am trying to develop a Todo like App. </p>
<p>I have a Main view which is a list view and it has subviews. - the subview content can be edited on double click and it would get saved when the enter key is pressed. - very similar to todo example given in backbone github code. </p>
<pre><... | 3 | 1,028 |
req.headers.range cant find if call from android devices? | <p>I try to make streaming of audio file in nodeJS. But If i call from browser than it still work good but if call from any devices than it's not work because of range not found.</p>
<pre><code>//If call from Browser req.headers output like
{ host: 'localhost:7060',
connection: 'keep-alive',
'user-agent': 'stagefr... | 3 | 1,593 |
How show Banner Ads on Newspaper Webview Android Eclipse | <p>How show Banner Ads on Newspaper Link "Webview" Android Eclipse
I already set Admob "Banner Ads and Interstitial Ads" on my Project. Interstitial Ads Work Correctly but Banner Ads not Show on Webview. <br>
<strong>Here my Java & xml Code</strong> <br><br>
<strong>Details_Newspaper.Java</strong></p>
<p><div clas... | 3 | 2,975 |
Nested ng-repeat and radio or checkbox inputs not working | <p>I am trying to show list of questions and their choices by nested ng-repeat, I have seen plenty of similar questions but still could not fix my issue. My issue here is I could see the list of questions but the choices are not getting displayed and in the developer tools I could only see the commented ng-repeat line ... | 3 | 1,312 |
In google-app-engine: How to query all entries after specific date in GQL | <p>I'm trying to run a simple query from my java application:</p>
<pre><code>SELECT * FROM Schedule where date > DATETIME(2013,11,10)
</code></pre>
<p>if get the following error JSON response:</p>
<pre><code>03-06 14:03:13.730: W/System.err(13272): com.google.api.client.googleapis.json.GoogleJsonResponseException... | 3 | 1,199 |
Jquery filter dropdown based on another dropdown | <p>Im trying to filter a dropdown based on another dropdown.</p>
<p>Im having the dropdown structure as below..</p>
<p>*as soon as i select 8:00 in the first dropdown it should populate 8:30 in the next and followed by other items (should append).</p>
<p>*And if the select 8:00 in the first DDL, the second DDL Shoul... | 3 | 3,527 |
MongoDB Aggregation "group" with "max" field within a sub-array | <p>Using Compass initially, I then need to convert it into the PHP library.</p>
<p>So far, I have a 1st stage that filters the documents on 2 fields using <code>$match</code>:</p>
<ul>
<li>comp.id (sub-document / array)</li>
<li>playerId</li>
</ul>
<p>Code is:
$match (from drop-down)</p>
<pre><code>{
"comp.id&... | 3 | 1,371 |
Nested ListView only displays first selected data | <p>I'm trying to make work a nested ListView for days now, but I can't figure out why it only shows the first selected data. Here is some code:
aspx:</p>
<pre><code><asp:ListView ID="ListForumCategories" runat="server">
<ItemTemplate>
<div class="accordionButton">
... | 3 | 2,667 |
how to make a table with multiple selection and generic, using Titem in blazor? | <p>I want to make a <code>table component</code>, using Titem that is reusable with multiple selection, I managed to do the multiple selection but I can't make the <code>component reusable</code>, any advice?
I have a reusable table that I made by viewing this direct example from microsoft <a href="https://docs.microso... | 3 | 2,554 |
mySQL view derived from multiple tables with GROUP_CONCAT | <p>How would I code the query to yield the mySQL VIEW 'inventory' below from the following 3 mySQL tables:</p>
<p>Table: <strong>product</strong></p>
<pre><code>product_id category_id brand
1 1 Aylmer
2 2 Ace
3 2 Weston
4 1 ... | 3 | 1,295 |
JS chart to display values in php table | <p>I would like to display the values of my php table in this javascript chart. The script values for var d1 d2 and d3 is just dummy/demo. I'd like to have the month run along the x axis. I just dont know how to go about merging my php with js.</p>
<p>My Table (PHP)</p>
<pre><code><?php i... | 3 | 1,670 |
Update MYSQL with PHP, deletes value instead | <p>So, I have the following problem:</p>
<p>I have a table which I fill with the data from my MySQL database and then display on a site. I want to make it so you can change e.g. the description afterwards. Instead what I get right now is that I empty the value.
I can't see where my code goes wrong, so I'd appreciate s... | 3 | 1,283 |
Python - How to change the input field value using Selenium for | <p>I am trying to change the input field value in a form input using Selenium and Python, but unable to do so.</p>
<p><a href="https://i.stack.imgur.com/XFZpm.png" rel="nofollow noreferrer">See time picker</a></p>
<p>I want to be able to perform .sendKeys() for each one (Hour, Minutes, Seconds, AM/PM). My code is the f... | 3 | 1,525 |
Why does the Bootstrap scrollspy feature not work in my code? | <p>I have recently started learning BootStrap. But I am stuck with scrollspy. No matter how many ways I place data dash attributes as given in the internet, it still does not seem work, so the problem must be somewhere in my code, which is given below:</p>
<pre><code><body style="position: relative;" data-... | 3 | 2,397 |
Reading Entries from ASCII file into JAVA(The first entry is what determines record length as well as total number of records) | <p>Making use of an ASCII .DAT file that contains multiple records of a fixed length I would like to read each record and generate an output based on its certain portions of its contents.</p>
<p>So far my program does exactly this but I was alerted to the fact that the first field in each .DAT file starts with the rec... | 3 | 18,091 |
Autocompletion randomly activate when i press a checkbox in javascript | <p>I'm making a to-do list in javascript, but after i insert a element, when i try to press the checkbox i generate with the task, i got a random dropdown (from the input who was hidden (removeChild))</p>
<p>I try to recode some part but keep getting this problem :<br>
- display: none<br>
- hidden(true)<br></p>
<p>It... | 3 | 1,305 |
Fixed number of rows per page using pdfmake.js | <p>Defined an own table layouts using pdfmake.js. On print I want per page to contain 7 rows(fixed).I have tried adjusting the height and width of the table cell to contain 7 rows but however if the data in table cell increases the page accumulates with less/more no.of rows. </p>
<p>//layout of the table:</p>
<pre><c... | 3 | 1,527 |
How to close the Websocket connection when an exception occurs and pass the exception message to the client? | <p><strong>Context:</strong></p>
<p>We are using Websockets in our ASP.NET Core 2 MVC app. This is our code in our Startup.cs class:</p>
<pre><code>public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
[...]
app.Use(async (context, next) =>
{
if (context.WebSockets.IsWebSoc... | 3 | 1,710 |
Updating react component state after API call. 2022 | <p>I am trying to create a react component that receives one object initially. this object has all the necessary data for me to make an API call and query a DB collection. I have semi acheived what I am needing but it is messy includes some code from outdated tutorials. This should be easy I would think with react.</p... | 3 | 1,144 |
Give the 3 columns after column i a suffix | <p>I have a dataframe where some columnnames wouldn’t be clear if you don’t see the other columns. For example column ‘blue1’. It means the blue chair of designer Mal would cost 5 dollar.</p>
<pre><code>data.frame(designer = c("mal", "didi", "yels", "don"),
trashcan = ... | 3 | 1,096 |
WP-json is not displaying with angularJS | <p>I want to display my posts of WordPress with the installed plugin WP-REST v2 to GET the data from trough AngularJS BUT theres a Problem. I can't display it and coded according to this article. </p>
<p><a href="https://amielucha.com/angularjs-json-rest-api-with-wordpress" rel="nofollow noreferrer">https://amielucha.... | 3 | 1,484 |
How to convert extended CSV to XML in mule | <p>I have to read a CSV file with 6 different structured formats and convert to XML format. I need a help to read multi-structured CSV file in mule.</p>
<p>Sample input: </p>
<blockquote>
<p>01,12345,Cap,01-02-2017<br>
02,12345,subject1, subject2,subject3,subject4,subject5<br>
03,12345,65432,45,ABS<br>
04,123... | 3 | 1,102 |
Business Rule Split among two classes | <p>I have a project allocation domain with the following business rules</p>
<ol>
<li>When a new employee is getting allocated to a project the total expenditure should not exceed the Budget Amount.</li>
<li>For an employee the total allocation percentage should not exceed 100%</li>
</ol>
<p>I have created entities as s... | 3 | 1,653 |
type 'MethodChannelDocumentReference' is not a subtype of type 'DocumentReference' in type cast | <p>I'm updating my project using firestore and its the first time that I has this type of error.
Its very stange for me, I use firestore how the documentation saids and in other parts of my app Firestore don't had any error,
but in this part I use cloud functions to create a document and insert its reference in other. ... | 3 | 1,096 |
How to select single specific element between two elements using xpath | <p><a href="https://i.stack.imgur.com/D7R70.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D7R70.png" alt="enter image description here"></a></p>
<p>I want to select Element button [...] which is between <strong>Consulting Services</strong> and <strong>Supervisory Organization</strong>. I tried man... | 3 | 1,599 |
Problem with Serial.read() and Struct.pack / serial communication between Arduino and Python (3.x) | <p>I have a problem while trying to send some values from <code>Python 3.x</code> to <code>Arduino</code> using <strong>Serial Communication</strong>.<br>
It working fine when the value is smaller than 255, but when it's greater than 255, error will happen.</p>
<p>I'm using <code>Struct.pack</code> in Python and <code... | 3 | 1,390 |
Deploying dash app with gdal dependency fails on heroku | <p>I'm using a conda for package management and including an environment.yml file and requirements.txt file for deployment with help from <a href="https://stackoverflow.com/questions/47949173/deploy-a-python-app-to-heroku-using-conda-environments-instead-of-virtualenv">this post</a>. I've gotten simple dash apps to de... | 3 | 3,483 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.