title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How create parquet table in scala? | <p>I want to create a parquet table with certain types of fields:</p>
<p>name_process: String
id_session: Int
time_write: LocalDate or Timestamp
key: String
value: String</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>name_process</th>
<th>id_session</th>
<th>time_write</th>
<th>key</th>
<... | 3 | 2,338 |
How can i implement jwt validation in my react app | <p>I am new on this project and I don't understand how I can implement jwt auth in my react app. When I refresh my page I lose my session every time. I've got the token saved in localstorage, but I don't underestand where I am meant to check that for auth instead. Here is some code I think may be relevant </p>
<p>rout... | 3 | 1,051 |
Why repaint() doesn't work when i want repaint my painting? | <p>This is my first java animation and I want my flag to start using repaint (), but the method does nothing and I do not know why. It's about the moveFlag method, it should put the flag in motion reminiscent of a flag blowing in the wind. The application simply displays the flag but it does not move it.</p>
<pre><cod... | 3 | 1,216 |
How can I sync video and audio in real time with the primitive Media Foundation APIs? | <p>I am trying to sync Audio and Video into a presentation using the <strong>Primitive Media Foundation Interfaces</strong>: <code>IMFSourceReader</code>; <code>EVR</code>; <code>SAR</code>. I've tried some techniques and yet Audio is ahead of Video.</p>
<p>To summarize the structure of playback of Video and Audio: I h... | 3 | 5,727 |
how to launch an activity from a fragment of a navigation drawer | <p>I built a navigation drawer. When the app launches, I direct the user directly to "MainMenuActivity" activity from the MainActivity.
Inside the "MainMenuActivity", there is a button that should direct the user to another activity which is "Order List"; I applied two code parts but non is working:</p>
<p>The first ... | 3 | 1,173 |
Python Selenium could not be scrolled into view | <p>I am automating some web process but ran into some strange issue using selenium. I have:</p>
<pre><code><div data-field-name="incident_type_ids" style=""><div class="form-group" data-field-name="incident_type_ids">
<label class="col-xs-4 control-label">
Incident Type
<i class="fa fa-i... | 3 | 1,147 |
Testing a third party library(seadragon) using React | <p>I ran into a problem running tests because one of the React components relies on a third party Sea Dragon which renders full-screen images and allows users to zoom in and out. The library interacts with the Dom directly and it's very hard to test.</p>
<p>My component looks like this:</p>
<pre><code>class Viewer ex... | 3 | 1,310 |
Error 'Not well-formed' using jqgrid | <p>I am using <code>jqgrid</code> in my application, due to recent changes, I was forced to change version of <code>jqgrid</code> to <code>4.4.3</code> (from <code>3.3.1</code>) and then this error started to occur, when <code>XML</code> is returned from my webservice, in Console browser I get error saying <code>Not we... | 3 | 1,326 |
how to insert Javascript variable into p tag | <p>Basically I have variable called test and I am trying to insert it into the html tag. I have tried by adding an id to the p tag and then calling it by using </p>
<pre><code>var test1 = DynamicContent.simpleTest_Sheet1[0].Ad_Copy_1 = "Invest in an<br/>International Career";
document.getElementById("test").... | 3 | 1,588 |
Login using facebook sdk gives error on onActivityResult | <p>I am getting error while using facebook sdk. it gives me an error on OnActivtyResult method. </p>
<p>Please review my code given below. </p>
<p>This is the LogCat result:</p>
<pre><code>07-05 22:33:51.762 24690-24690/uni.ek.com.re_think E/AndroidRuntime: FATAL EXCEPTION: main
... | 3 | 3,729 |
Selenium Python not scraping from this website | <p>I was trying to interact with this website using Selenium in python. I wrote this code to select the radio button using XPATH. But some weird error is showing in my terminal. Can anyone please solve this problem? I tried but can't figure out the problem.</p>
<p>My code.</p>
<pre><code>from select import select
from ... | 3 | 1,579 |
Parsing Javascript HTML with HTMLAgilityPack | <p>I need to get the value of <code>"Title"</code> and <code>"CustomerID"</code> from this script that's in an HTML document</p>
<pre><code> <script type="text/javascript">
//blablabla
if (app) {
app.value("onlineUser", {"Id":171454371,"U... | 3 | 2,457 |
Close icon on modal stopped working | <p>the close button on the upper left corner of the modal is not working
here is my code.I have been trying to find the problem but i just cant find the problem
I tried running it from scratch but that didnt help too, </p>
<p>the close button on the upper left corner of the modal is not working
here is my code.I hav... | 3 | 1,567 |
Match a request parameter with a JSON Object with node.js and the express framework | <p>The Code works fine with the uncomment lines.
But when i <strong>activate the <code>else</code></strong> Statement i get every times the 'not found' even there is a match between <code>req.params.code</code> and <code>data.airports[i].code</code>.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-co... | 3 | 1,421 |
Ruby on rails application cannot find a JavaScript runtime in production environment(deploy with passenger and nginx)? | <p>I deployed a <code>ruby on rails</code> application in ubuntu with <code>passenger</code> and <code>nginx</code>, but it returned a 500 error.</p>
<p>I read the log, It is because <code>Could not find a JavaScript runtime.</code>, but I have installed <code>node.js</code> in my server(and it runs node ok).</p>
<p>... | 3 | 1,480 |
Scraper fails on files over ~390KB | <p>Does the Facebook's URL scraper have a size limitation on it? We have several books available on a website. Those that have an HMTL filesize under a certain size (~390KB) get scraped and read properly but the 4 that are larger do not. These larger items get a 200 response code and the canonical URL opens.</p>
<p>All... | 3 | 1,745 |
issue to make TTS model from .pb file to TFlight AttributeError: 'AutoTrackable' object has no attribute 'inputs' | <p>Am trying to make TTS model for arabic with tacotron and I have checkpoint successfully generated with training and I stop the train on this point .</p>
<p>I save the file to .pb file and when I try to convert it to tflite this error appear any help ?</p>
<p><strong>Code to convert checkpoint to pb</strong></p>
<pre... | 3 | 2,145 |
Dataset `from_generator` poor performance with buffered staging area | <p><strong>Short version:</strong><br>
Context: The start of my training data input pipeline is a <code>tf.data.Dataset.from_generator</code> call.</p>
<p>I am running into unexpectedly poor performance when using a buffered staging area rather than streaming data directly through a python generator. The buffered sta... | 3 | 1,081 |
How to loop through object for finding a particular value using typescript and react? | <p>I want to hide a button if there is atleast one order or subareas that at least one orders whose status 'ACCEPTED' or 'DONE'.
How can I hide the "Hide me" Menu item when either item has at least one area with order status 'ACCEPTED' OR 'DONE' or at least one area with subareas order with status 'ACCEPTED' ... | 3 | 2,089 |
List of objects dissapears in the method i'm testing with Moq mocking and unittests in ASP.net | <p>Ok i'm having trouble to form a good qeustion so please don't flame me on that what i'm trying to do in my code is moqing a list of which i get 1 object in the list. This object is retrieved by a .find method in the moqed database. It however doesn't return values because somehow in the method the data dissappears a... | 3 | 1,578 |
Sequelize raw query is returning duplicate data | <p>So, I've got a query that returns some reports made by users, the code is:</p>
<pre><code>const reports = await database.query(
'SELECT r.id, r.type, r.fileCid, r.madeById, r.reportedId, u1.username as reportedName, u2.username as madeBy \
FROM reports r \
left join users u1 on u1.id = r.reportedId \
inner j... | 3 | 1,732 |
Implementing custom sidebar across all views - SwiftUI | <p><strong>OUTLINE</strong></p>
<p>I have made a custom slimline sidebar that I am now implementing across the whole app. The sidebar consists of a main button that is always showing and when pressed it shows or hides the rest of the sidebar that consists of buttons navigating to other views.</p>
<p>I am currently impl... | 3 | 1,597 |
Empty Pandas dataframe when attempting to threshold | <p>I am attempting to threshold a pandas dataframe which contains gene id's and statistical information. The input to my python program is a config.yaml file that holds the initial threshold values and a path to a CSV file (the eventual dataframe). The problem that I seem to be running into stems from the passing of ... | 3 | 2,898 |
How can I call gRPC endpoint from Next.js Application inside of a functional component? | <p>I have set up default gRPC server via Visual Studio .net 6.0.</p>
<p>The proto file is as foolowing:</p>
<pre><code>syntax = "proto3";
option csharp_namespace = "GrpcService";
package greet;
// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloReques... | 3 | 1,244 |
Supervised Time Series efficiency improvement | <p>The data that I have is hourly recorded over the past 4 months. I am building a time series model and I've tried several methods so far: Arima, LSTMs, Prophet but they can be quite slow for my task since I have to run the model on thousands of time series in different locations. So then I thought it might be interes... | 3 | 2,420 |
Error using tooltip argument with python dash slider | <p>I get an error when I use the tooltip={'always_visible': True} argument when creating a dash slider in python.</p>
<p>The error only appears when I move the slider.</p>
<p>When I remove the tooltip argument, the code runs fine (but I don't get the tooltip that I need).</p>
<pre class="lang-py prettyprint-override... | 3 | 1,292 |
Antipattern error when react child component updating parent | <p>I am getting the error <code>Uncaught RangeError: Maximum call stack size exceeded</code>. How do I eliminate this recursive function in my child (<code>Typewriter</code>) component? I believe I am getting this error because I am calling a function constantly in the ComponentWillUpdate() ? How do I fix this? I thoug... | 3 | 1,134 |
Why can't heroku install nokogiri 1.6.5, on bamboo stack, using ruby 1.9.2? | <p>On my laptop, my version of ruby is:</p>
<pre><code>$ ruby -version
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin14.0.0]
</code></pre>
<p>and my version of rails is:</p>
<pre><code>$ ./bin/rails -v
Rails 3.2.15
</code></pre>
<p>My Gemfile has an unversioned reference to nokogiri:</p>
<pre><code>$ gr... | 3 | 2,115 |
Django ajax url not reading | <p>I have an ajax file which calls the url from the <code>urls.py</code> which gets the json data from the <code>views.py</code> but when I run the server it just shows <code>Not Found:/dept-json/</code></p>
<p>I did manage to get it to work using the django snippet <code>{% url 'accounts:dept-json'%}</code></p>
<p>How... | 3 | 1,028 |
How can I do this with fl_chart? | <p>How can I do this with fl_chart?</p>
<p><strong>current view</strong></p>
<p><a href="https://i.stack.imgur.com/qk1uZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qk1uZ.png" alt="enter image description here" /></a></p>
<p><strong>what i want to do</strong></p>
<p><a href="https://i.stack.imgur... | 3 | 1,113 |
In SQL remove duplicate groups | <p>In SQL Server, I have the below data set after a query. I need to group this data by uid then remove "duplicates" and return the grouping with the most recent column D. I also need to return the 2 most recent deduplicated groups. A group is defined as a duplicate if:</p>
<ul>
<li>it has the same number of ... | 3 | 2,379 |
Move a Character in a 2d Array | <p>I'm taking an intro to c++ class and I am quite stuck on a part to this project. </p>
<p>I need to have my character, 'H' move freely around the array. I have written a good amount of my code, but when I compile and run it, my hero isn't given the option to move. I don't know what is going wrong when I am calling m... | 3 | 1,274 |
Fpdf goes to header Location without generating Pdf. | <p>The page automatically redirects to entry.php without generating the pdf. I want it to generate the pdf and then redirect. When the header(Location: entry.php); is removed, it generates Pdf. Is there any other way to achieve it?</p>
<pre><code>include('connection.php');
ob_start ();
require('fpdf/fpdf.php');
... | 3 | 1,159 |
Custom control rendering weird in Tapcontrol | <p>Here is an odd one and it will be a bit long to describe so bear with me on this one. </p>
<p>I have a control made for c# 4 client profile called <code>Toggleswitch</code> (tsw). This toggleswitch is design to act like the metro switch, and that is does splendidly ... until it is added to a Tap control/Tap page th... | 3 | 2,960 |
Adding Gridview to fragment it's crashing | <p>I'm following a tutorial and trying to build in a grid view into my fragment and every time I launch the app it crashes. I opened up LogCat and it gives me nothing... Can someone help me find out what I can do to get this to display correctly and not crash the app? Thank you!!!</p>
<p>Below I've included my Main Ac... | 3 | 3,099 |
How to resolve post request failure ReactJS and ExpressJS | <p>so I am learning on how Express and Mongoose works so I am trying to make a Post request to the server-side and then save the contents to the MongoDB so I do not know the is no error that is thrown but when I check the DB it creates an entry but only with empty entries, nothing that is coming from the client-side/fo... | 3 | 1,699 |
How to cancel a bias and analyse the data? | <p>I have a data table like this one, I would like to know which type of substrate (called "Litières" / "Branchages" / "Racines") contributes the most to each score.</p>
<p>in r :</p>
<pre><code>Substrate<-c('Litières','Litières','Racines','Branchages','Branchages','Litières','Branchage... | 3 | 1,302 |
Cannot add or update a child row: a foreign key constraint fails while data exists | <p>I am trying to add a Foreign key contraints and it fails:</p>
<pre><code>mysql> alter table order_info add constraint FKlnh846un1oe6hnwkqf5ovtjwo
foreign key (orderId) references orders (orderId);
ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails
(`storefront`.`#sql-1601_28`,... | 3 | 1,237 |
JS / jQuery Detecting orientation change and only allow functions based on that | <p>Little new to JS / jQuery but think ive managed to work things out so far correctly...</p>
<p>I enable a click function if on mobile or if on tablet (portrait) however I have noticed if on tablet I turn it to change the orientation to landscape it still lets me click and fires the functionality.</p>
<p>How can I a... | 3 | 1,689 |
if value null in radio button list does not show radio button mvc4 | <p>I have in model having the questions and answer list. In some of the questions having 4 options and some of the questions having the 2 options.
I am getting the options from the back end and i'm binding from model class into the razor view.
Now if the answer value null means radio button is showing but i don't want ... | 3 | 2,478 |
Why dispatch from one servlet to another double the pathInfo? | <p>Hi and please excuse my english,</p>
<p>I have one main servlet which dispatch all user action and one to manage request to DAO Java class. First action (click on menu) works and give me the right URL: projet/admin/groupes/gerer (project/admin/bands/manage). Second action (click on button) double the pathInfo: proj... | 3 | 1,084 |
In R Shiny, how to flip a function around so it reads a matrix from left-right instead of up-down? | <p>The three images below help explain. <em>MWE Code 1</em> reactively interpolates user input values as shown in the 1st image, but the user input matrix needs to instead expand horizontally to the right in pairings of two values to interpolate rather than the vertical (downward) expansion currently used in <em>MWE Co... | 3 | 2,436 |
Problem with plotting projected sf points: ggplot's coordinate type and gridlines unexpected | <p>I am trying to plot a reprojected dataset and although the coordinates have been reprojected, ggplot persists in using a degrees lon-lat coordinate system.</p>
<p>Here's a reproducible example:</p>
<pre><code>library(sf)
library(dplyr)
library(ggplot2)
set.seed(42)
df <- tibble(lon = runif(20, min = -73, max =... | 3 | 1,033 |
bad performance using tf dataset cache in an active learning framework | <p>I am trying to build an input pipeline for an active learning application.
The script I wrote is loading in the data, augmenting and then caching it.</p>
<p>I cache the whole dataset once and then split it up in an unlabeled and a labeled dataset, from where on I transfer samples from one dataset to the other in ev... | 3 | 1,496 |
Repeating a function over many variables | <p>I need to repeat a function over 43 variables. More specifically, I am running a non-parametric repeated measures test on my data. This should result in two final data sets - one data set with the overall test stats for each variable and a second which contains specific tests for each pair of times to show where the... | 3 | 3,223 |
Cannot switchTo frames -- keep getting AttributeError | <p>my first time posting. My apologies in advance for any missteps. </p>
<p>I am writing in Python, using Selenium, trying to scrape some information from some webpages. </p>
<p>I can not seem to solve this puzzle after two days of searching-trying-searching.</p>
<p>My issue is this; while trying to sign in to a web... | 3 | 1,494 |
"Template is null or has zero length" with jersey declarative hyperlinking | <p>I'm trying to integrate the declarative hyperlinking by following examples I found here and there. I came across some using <code>... value = "/systemusers/{id}" ...</code> and some using <code>... resource = SystemUser .class ...</code>. In my code, if I use the first solution I have the link correctly injected in ... | 3 | 1,124 |
How to generate json data in below hierarchical format using sql server 2016 | <p>I have a single SQL table which contain Parent and child relationship.I would like to know how to generate json data in below hierarchical format using SQL query (SQL Server 2016). Please check my table structure and needed output json format.</p>
<p>Note: I have already generated below json data using "java script... | 3 | 8,072 |
How to make a listview fragment with image? | <p>I tried to put this code in other project but it doesn't work.</p>
<p><strong><em>ListView Activity Project</em></strong></p>
<p><strong>MainActivity</strong></p>
<pre><code>public class MainActivity extends AppCompatActivity {
ListView fst;
String[] placesname={"Place 1","Place 2","Place 3","Place 4","P... | 3 | 3,013 |
What is the ideal solution to fit the width of the text in my input? | <p>I have this short sample:</p>
<p><a href="https://jsfiddle.net/jojrspo5/" rel="nofollow">link</a></p>
<p><strong>CODE HTML:</strong></p>
<pre><code><div class="select-style6">
<select name="emailtemplate" onchange="uploadtemplatecode(this.value);">
<option value="0">Choose an... | 3 | 1,072 |
AWS Glue ETL - Converting Epoch to timestamp | <p>as the title states, I'm having trouble converting a column on a Dynamic Frame from Epoch to a timestamp.</p>
<p>I have tried onverting in into a Data Frame and back to Dynamic Frame but it is not working.</p>
<p>This is what I'm working with:</p>
<pre><code>import sys
from awsglue.transforms import *
from awsglue.... | 3 | 1,079 |
iam facing a error to searchbar in reactjs code | <p>Here is my js file</p>
<pre><code> constructor(props) {
super(props);
this.state = {
query: "",
countries: [],
searchString:[]
}
}
handleInputChange = (event) => {
this.setState({
query: event.target.value
},()=... | 3 | 1,994 |
Slider Menu disappears when I start new activity | <p>This is my main Activity that defines my slider menu and its fragments</p>
<pre><code>import java.util.ArrayList;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.os.Bundle;
i... | 3 | 2,895 |
javascript dynamic ellipsis text based on window size angular 2+ | <p>So i have a chart (picture a gantt chart) with divs of various sizes, and there is text within them like this</p>
<pre><code><div #arrowWrap
[routerLink]="data.link"
class="chart-item block-arrow"
[ngClass]="{
'disabled' : data.disabled,
'enabled' : !data.disabled
}">
<p #arrowText *... | 3 | 1,728 |
Java Multi-Threading with global variables | <p>Apologies in advance, since this seems to be a pretty common question, but none of the answers I've found so far were able to help me. (Not even sure if I'm searching for the right thing, to be honest)</p>
<p>I'm writing a program which is supposed to update Firmware for Servers (and their components)
These servers ... | 3 | 1,282 |
Unable to Carry out Inner Join with pyspark.sql | <p>Please let me know if I'm in the wrong forum for the following question.</p>
<p>I have created the following pyspark.sql query.</p>
<pre><code>#%%
import findspark
findspark.init('/home/packt/spark-2.1.0-bin-hadoop2.7')
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName('ops').getOrCreate()
... | 3 | 1,137 |
Complex multi table mysql query | <p>Im Looking for some help with a mysql query to return the below data from a few different tables for my international call billing system</p>
<p>In the database i have a table that contains each of the call records, billing rates & the final group which i want to display on the invoice.</p>
<p>What im looking ... | 3 | 1,975 |
Best way to handle exception in multi task to call WCF operation | <p>I have implemented a service name <code>ExamClient</code> which have two operations one is <code>Ping</code> which return a basic <code>string</code> which mean service is available and one is <code>FindStudy</code> which search in DB it may take a long to be proceeded.</p>
<p>In the other side I have several endpo... | 3 | 1,301 |
where are the numbers ' baseline? | <p>i study the app like this ,<img src="https://i.stack.imgur.com/HzP4L.png" alt="the clock UI"> .</p>
<pre><code> /**
* draw the hour text (12、3、6、9)
* draw the arc
*/
private void drawTimeText() {
//draw the hour text
String timeText = "12";
mTextPaint.getTextBounds(tim... | 3 | 1,069 |
Drools - frequent exceptions in StatelessKnowledgeSession | <p>We are using the Drools Rules Engine with Jboss EAP 6.2. When running under load (only maybe 4-5 new sets of facts being inserted) we frequently see the following stacktrace: If the same data is reinserted then generally no error occurs</p>
<p>Stacktrace:</p>
<pre><code>java.lang.NullPointerException
at or... | 3 | 3,263 |
Calling a python script within another one | <p>I have seen a couple of question related to my issue but haven't been able to get an answer.</p>
<p>In my program I have a .txt file that needs to be converted to PDF.
I came across this script that does the same, <a href="https://code.activestate.com/recipes/189858-python-text-to-pdf-converter/" rel="nofollow">htt... | 3 | 2,435 |
Class function changes other data in class cpp | <p>SOLVED! I Found my error... I posted my solution at the end. Sorry for wasting time.</p>
<p>It has been a while since I have played with c++. It has never been my primary language, so I am not familiar with the finer details. I am having a weird bug pop up. When I call factorize(), it is resetting the sign of ... | 3 | 1,308 |
Multidimensional foreach array returning only the last iteration | <p>I'm attempting to format data so that my json code can read it properly. The end result needs to look like the following:</p>
<pre><code>[2][4][36] = 'Ohio'
</code></pre>
<p>Where '2' is the region id, '4' is the division id, and '36' is the state id. Obviously, there are many different results based upon which ... | 3 | 1,148 |
How can I plot the whiskers up to the Q1-1.5*IQR and Q3+1.5*IQR and not minimum and maximum values? | <p>I want to compare a data point with a boxplot. The plot shows me that the point is an outlier while when I calculated the lower (Q1-1.5<em>IQR) and upper (Q3+1.5</em>IQR) bounds, I found that the point shouldn't be an outlier. How can I plot the whiskers of my boxplot to the lower and upper bound? The <code>lower_al... | 3 | 1,543 |
setDataSource failed status 0xFFFFFFEA on Android Studio | <p>I have a problem with a Fragment I made in Android Studio that displays a video and I can manipulate the preview using onTouch, but it's giving me this error in DataSource and I tried several ways to fix it but I shouldn't be focusing on the right place, can anyone help me? This is my onCreateView:</p>
<pre><code> v... | 3 | 1,061 |
getServerSideProps and NextJS Typescript Layout | <p>Guys I am struggling with getting NextJS Layout working with Typescript. I know I am close. All of below works as expected!! but I cannot get the annoying squiggle to disappear when I pass props from getServerSideProps.</p>
<p>props <code>{someText)</code> is always underlined with squiggle - see link to screen shot... | 3 | 1,493 |
Same menu opened in two different JFrames works only on the last one | <p>I'm trying to write a simple Paint application in which the user will be able to open new <code>JFrames</code> (in new Threads) with Drawing Panels, and each of those frames will have a <code>JMenuBar</code> on top, however, only the last open frame has a functional menu bar, all the remaining (open) frames show men... | 3 | 1,273 |
How to use LocalDateTime | <p>what is the right way to solve LocalDateTime error?</p>
<p>I am new to spring therefore I have tried to look for the way to solve this online but I cannot get around it.</p>
<p>This is my entity</p>
<pre><code>package com.reserve.entities;
import java.time.LocalDateTime;
import java.util.Date;
import javax.pers... | 3 | 4,791 |
LNK2019: unresolved external symbol public | <p>I'm trying to write my code in Visual Studio 2013 for second time in CodeBlocks, I am getting an error while trying to arrange a Binary Search Tree,
here is my code for
BinarySearchTree.h</p>
<pre><code>#pragma once
template <typename T>
class BinarySearchTree{
private:
struct Node{
Node *left;
... | 3 | 3,298 |
Pointer in C++ isn't initialized correctly | <p>I'm trying to execute the following code, everything is fine except one thing and that is tellerArray[2] is never initialized properly, it always creates problems for me, and I don't why. It creates problem for me: I came to know this fact when I debugged the code multiple times.</p>
<pre><code>#include <iostrea... | 3 | 2,177 |
String values not matching C++ | <p>Hi generous people of StackExchange,</p>
<p>I'm working with C++ and I've seemed to run into the error of not being able to match two string values properly. I have the code in main:</p>
<pre><code>/**
* Author: Kevin Hill
* Assignment: Project5
* Description: VehicleDB
**/
#include <iostream>
#includ... | 3 | 1,420 |
jQuery fade in div for repeating classes | <p>I'm trying to do something very similar to whats explained in this question - <a href="https://stackoverflow.com/questions/1170702/jquery-hover-fading-in-a-hidden-div-while-fading-out-the-default-one">jQuery hover : fading in a hidden div while fading out the "default" one</a></p>
<p>The problem I have is... | 3 | 1,167 |
Reduce C# Application CPU Usage | <p>I am creating a program that will TCP Event Receiver. Every time I start the program having is CPU consumption 30% and try to publish it and try to run multiple application it gradually consume 100% of my CPU Usage</p>
<pre><code>namespace TCPIPReceiver
</code></pre>
<p>{
public partial class Form1 : Form
{
SimpleT... | 3 | 2,092 |
C++ segmentation fault using dynamic arrays of strings | <p>My string-dynamic-array.cpp file</p>
<pre class="lang-cpp prettyprint-override"><code>#include <iostream>
#include <string>
class DynamicArray
{
public:
DynamicArray()
: mCapacity(1), mNumberOfElements(0)
{
mArray = new std::string[mCapacity];
}
DynamicArray(int size)
: ... | 3 | 1,562 |
How do I select an object from a list MongoDB MVC | <p>I have the following data structure:</p>
<pre><code>[
{
"id": "604ab2c4a568b9181987c9eb",
"name": "Paul",
"eventDate": "2021-03-12T00:16:03.672Z",
"created": "2021-03-12T00:16:03.673Z",
"images": [
{... | 3 | 1,371 |
TypeError: can only concatenate list (not "int") to list. Error occurs when assigning 2 variables to one variable | <p>I am making a password generator using a class called <code>password</code> and a 2 functions called <code>generate_memorable</code> (generates a passwords that can be easily remembered) and <code>generate_intricate</code> which will generate a complex password.</p>
<p>My Code:</p>
<pre><code>import random
import ur... | 3 | 1,407 |
Manage invoke from listeners / create history object before transaction end | <p>I have a function which update a customer.
Furthermore, I have a function which creates an Activity (createActivity)
Now I want to add to the Activity Entity also the reference to my Custom Audit Table (AuditRevision). Therefore, I try to get the last object from the History Entity (= Function: findLastRevisionFromE... | 3 | 1,029 |
React Native Logout Using Access Token Error | <p>This is a simple app to login with API and logout. I retrieved Access Token when login. I navigated the access token to sidebar and trying to log out using logout function</p>
<p>SideBar.js</p>
<pre><code>import React from 'react';
import { Text, Alert } from 'react-native';
import { Drawer,Container, Content, Heade... | 3 | 1,471 |
Bootstrap carousel data-slide not working with WordPress | <p>I've run into an issue where my testimonial carousel is 99% working but for some reason, the carousel indicators as highlighted in the image below links don't skip to other slides on click.</p>
<p><a href="https://i.stack.imgur.com/n8oC1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n8oC1.png" ... | 3 | 3,471 |
Insert into an unordered boost bimap using TBB | <p>I am very much confused with respect to <code>TBB</code>. I am trying to insert <code><key, value></code> pair in an unordered bimap, where the <code>key</code> is of type <code>uint64_t</code> and <code>value</code> is of type <code>string</code>. I made an attempt to create the <code>loop object</code>, whic... | 3 | 2,199 |
How do I only plot the values I want? | <p>I currently have the code and I having some trouble trying to plot it, I know that trying to plot both ymax and y won't work in this case, but how would I go about plotting just the value for y? I have plotted the function before by removing the ymax from the return, but I need to print the values and plot the solut... | 3 | 1,235 |
TypeError: a(...).flexslider is not a function | <p>I updated my Wordpress install and the rev slider plugin that came with my theme stopped showing listings with multiple images. I get this error: TypeError: a(...).flexslider is not a function</p>
<p>On this page: <a href="http://getorganicallysocial.com/deals/salud-juicery" rel="nofollow">http://getorganicallysoc... | 3 | 3,409 |
How Can I find all the Null fields in Dataframe | <p>I am trying to find out the null fields present in a dataframe and concatenate all the fields in a new field in the same dataframe.</p>
<p>Input dataframe looks like this</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">name</th>
<th style="text-align: left;">sta... | 3 | 1,106 |
FFmpeg extracts black image from H264 stream | <p>I have a C# application that receives H264 stream through a socket. I want to continuously get the latest image from that stream.</p>
<p>Here's what I did with FFmpeg 5.0.1, just a rough sample to get ONE latest image, how I start FFmpeg:</p>
<pre><code>var ffmpegInfo = new ProcessStartInfo(FFMPEG_PATH);
ffmpegInfo.... | 3 | 1,786 |
Vue2 / vue-router / Laravel - router-view not showing a Vue Component | <p>I'm running into a problem where my Vue component isn't showing via router-view, there are no Vue warnings or errors in the console.</p>
<p>Here's the git: <a href="https://github.com/woottonn/fullstack" rel="nofollow noreferrer">https://github.com/woottonn/fullstack</a></p>
<p>Here's my code:</p>
<p><strong>web.php... | 3 | 1,470 |
Sort an object by multiple parameters (first letter & boolean value) | <p>I'm trying to sort the object below in order of names beginning with the first letter of the sortKey, followed by names beginning with second letter of the sortKey... and so on. Any name that doesn't begin with a letter in the sortKey can be added to the list after.</p>
<p>But also if <strong>any</strong> of the it... | 3 | 1,357 |
Javafx 8 tableview add row and focus | <p>I would like to add a functionality of dirty/validated row to the tableview control, where the user will be forced to edit the newly added row, otherwise it will be removed.
What is best way to focus the first cell (the editor of which is <code>ComboboxTableCell</code>) of the newly added row. The new row is added w... | 3 | 1,558 |
Can not run IOCipher Example Project | <p>I am trying to run IOCipher Example on <a href="https://github.com/guardianproject/IOCipherExample" rel="nofollow noreferrer">https://github.com/guardianproject/IOCipherExample</a> but I get force close when I run it. I cannot even run a single line vfs = VirtualFileSystem.get(); I installed it's library by write th... | 3 | 6,150 |
TypeError: a bytes-like object is required, not 'str' for Python Code | <p>I get this when I try to run a code called NUT_check.py and this comes from line 69. I'm very unsure of what is happening as I didn't make this code myself, nor have I really used Python extensively. Line 69 is ending with a line of hyphens to mark it</p>
<pre><code>import sys
import struct
from struct import pack
... | 3 | 1,741 |
Formik FiedlArray - checkbox, label/textfield combo | <p>I am trying to integrate a formik FieldArray on a website -- where they want to have checkboxes and labels and if its a new entry to have it as a textfield.</p>
<p><a href="https://formik.org/docs/examples/field-arrays" rel="nofollow noreferrer">https://formik.org/docs/examples/field-arrays</a></p>
<p>I'm following ... | 3 | 4,219 |
Symbol.Type unrecognized in Antlr4 | <p>I'm currently learning Antlr4.
There is an example in the Doc that I tried to run:</p>
<pre><code>DefPhase.java.
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.tree.ParseTreeProperty;
public class DefPhase extends CymbolBaseListener {
ParseTreeProp... | 3 | 1,041 |
How to Avoid Loading Admob Interstitial Ad if One is Already Loaded? | <p>I am loading Interstitial ad in baseactivity's oncreate method, This baseactivity is extended by all other activities of the app so every time I start a new activity a new interstitial is being loaded even if there's one loaded already.</p>
<pre><code>private InterstitialAd mInterstitialAd;
@Override
protected ... | 3 | 1,300 |
Formatting Highchart bar charts axis labels | <p>I am trying to set custom x axis labels for bar charts in HighChart. I used formatter to add <em>%</em> and <em>milestone dates</em> to the labels. I can see the expected result when I print in the console, but the bar charts labels are not reflecting this value. </p>
<p>Please find the attached fiddle of what I ha... | 3 | 1,056 |
AlertDialog ,Checkbox should have a line between each other | <p>I have an Alertdialog and style is Checkbox, I need to plus a line between each other.<br>
Because I have too much items.
thanks for help. </p>
<p>this is my code </p>
<pre><code>public Button.OnClickListener IMBL = new Button.OnClickListener() {
public void onClick(View v) {
AfterClick = new boolean[... | 3 | 1,986 |
Comparing every other bit in a 64 bit integer to a 32 bit integer | <p>I was playing around with the idea of creating a little checkers solver. First I'd make a very compact checkers board representation, then go on to build the game tree and such.</p>
<p>A standard checkers board has <em>8 rows</em>, and <em>4 functional columns</em> (checkers can only move diagonal). That gives us 32... | 3 | 1,079 |
Spring - Passing Listener via RMI | <h2>Basis</h2>
<p>I have several projects, which implement a caching service - each its own, and each one is almost the same as the others. I have coompressed and shortened the existing cacheservices into a single project containing two different cache services - one for basic objects, and one for complex objects (whi... | 3 | 1,750 |
Rspec and current user id saved in different model from devise | <p>I'm using Devise to manage users and my goal get the current user to be saved with the created record.</p>
<p>The current user is saved in the controller but my Rspec is wrong!</p>
<p>Thank you all for your help.</p>
<p>My record Model</p>
<pre><code>class Record < ActiveRecord::Base
#Associations
belongs... | 3 | 1,802 |
Require Reverse order code for the given forward order code | <p><strong>I need to Calculate the value of pi (single-precision) using the first k terms of Nilakantha's series added in reverse order. I have the code for forward order which is given below. Now can someone help me to get started on how to go about the reverse order?</strong></p>
<pre><code> li $t1, 0 # ... | 3 | 2,070 |
Python - how can identify ranges of numbers in a OHLC dataset? | <p>I'm working on a side project where i try to identify support zones in a OHLCV dataset of Bitcoin historical prices, here is what my data looks like in a pandas dataframe:</p>
<pre><code> startTime time open high low close volume date ... | 3 | 1,822 |
incorrect shared library being used at runtime for my c Program | <p>i have complied my program with new version of a shared libary (vertex )
and when i do ldd on my executable i see it is linked to correct version (STQ_8_1_ISAM)</p>
<pre><code>ldd /pathtoexe/mytaxprg|grep vertex
libvst.so => /usr/local/vertex/STQ_8_1_ISAM/32bit/lib/libvst.so (0x00ce8000)
libloc.s... | 3 | 1,163 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.