title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Clashes between count() methods - CrudRepository - Spring | <p>I prefer to warn you, my english is not perfect but I'll try to do my best.</p>
<p>I'm actually in an internship and my task is to create a webservice. Before this, I'm supposed to work with Maven and create repositories, models and others.</p>
<p>For now, I've got a problem with the repository of a simple Java cl... | 3 | 1,050 |
java Null pointer exception after onClick | <p>I am writing an app that sends an e-mail with multiple image as attachments. I followed this link : <a href="https://stackoverflow.com/questions/2264622/android-multiple-email-attachments-using-intent">Android multiple email attachments using Intent</a> to set up the Email intent and stuff .But the app force closes ... | 3 | 2,711 |
Disconnecting the BE database to do compact | <p>I'm sure I'm just being blind here. I need to compact my BE data file, but the code fails because the initial file copy to backup the data file gives a permission denied. I've seen several examples of compacting the MS Access Backend, but they all prediate their code with the statament 'Make sure all connections ar... | 3 | 2,125 |
C# Entity Framework Core: Processing of the LINQ expression failed | <h2>The situation</h2>
<p>We have the following tables in our MySQL database:</p>
<p>Table club (There are more columns but we only care about the Id for now):</p>
<pre><code>Id | ...
---+----
1 | ...
</code></pre>
<p>Table genre:</p>
<pre><code>Id | GenreName
---+-----------
1 | Rock
2 | Classic
3 | Techno
</code>... | 3 | 1,053 |
Snake Collision with self and apple | <p>So for my class I need to program this snake game as part of a project, my partner and I have run into an error where our code doesn't collide with itself or the apple. So for example if I go up, and press down it reverses itself and we're not quite sure how to fix that. We have an if statement testing to see if sna... | 3 | 2,241 |
Infinite Scroll doesn't keep previous items in React/Redux | <p>I'm trying to load the second set of items from the reddit API with Infinite scrolling when the user scrolls to the bottom of the page and although they do load successfully, the previous items are overridden by the new ones.</p>
<p>You can see this happening here: <a href="https://reddix.netlify.app/" rel="nofollow... | 3 | 1,682 |
how to call another http on each bottomnavigationbar in flutter | <p>I want to make codes for my app by flutter.</p>
<p>Without bottomnavigationbar, my app works well.</p>
<p>But there are some problem.
I input bottomnavigationbar with _widgetOptions in my coding, it occured one problem.</p>
<ol>
<li>The program coundn't display http result, which was displayed without _widgetOptions... | 3 | 8,392 |
iOS 13 error: Inconsistent state from AVCaptureStillImageOutput captureStillImageAsynchronouslyFromConnection | <p>I'm developing command line tool that will take photo from camera (programmatically, without modal views or controls) and save it locally on device. So I'm trying to implement <code>[AVCaptureStillImageOutput]</code>.
(Yes, I'm aware this has been deprecated since iOS 10, but my goal is to target also previous syste... | 3 | 2,046 |
Something has installed Jetty and starts on boot-up | <p>After a macOS High Sierra (10.13.6) update, which required a reboot, I found that Jetty 9.4.z-SNAPSHOT was running on port 8080. </p>
<p>As I use JBoss WildFly 13.0.0.Final I use Undertow as my web server and I have not intentionally installed Jetty. If I 'locate' Jetty it shows in the following directories (see qu... | 3 | 3,386 |
Google Analytics - Angular 2 - events contain undefined values | <p>I try to send custom events from an angular 2 app to google analytics</p>
<p>here is the code</p>
<pre><code>ga('send', 'event', {
eventCategory: eventCategory,
eventLabel: eventLabel,
eventAction: eventAction,
eventValue: eventValue
});
</code></pre>
<p>here is how I call it :</p>
<pre><code>thi... | 3 | 2,300 |
Spark on Kubernetes, pods crashing abruptly | <p>Below is the scenario being tested,</p>
<p>Job :
Spark SQK job is written in Scala, and to run on 1TB TPCDS BENCHMARK DATA which is in parquet,snappy format and hive tables created on top of it.</p>
<p>Cluster manager :
Kubernetes</p>
<p>Spark sql configuration :</p>
<p>Set 1 :</p>
<pre><code>spark.executor.hea... | 3 | 1,580 |
Copy Play store report to personal Google Cloud Storage bucket | <p>I have a problem using Google Cloud Storage and Google Play reports. I'd like to parse reports on my server in PHP. To do that I'd like to move the file in the default app bucket to a new one. When I try to do that, I get the following error :</p>
<pre><code>Fatal error: Uncaught exception 'Google_Service_Exception... | 3 | 1,173 |
How to initiate AngularJs directive when its name is set with ng-class | <p>I have few AngularJS directives to show Highstock graphs(myGraphEff,myGraphEnergy,..).</p>
<p>Now I need to display these graphs with a sidebar displaying the names of each graphs with "li" elements and while clicking them I load corresponding graph.</p>
<p>Here's my controller.</p>
<pre><code>var app = angular.m... | 3 | 1,235 |
issue Adding strings to string | <p>I am trying to put tokens into a queue. However, when I try to put in a number that has more than one digit (i.e., 10, 123 ) it reads them as separate digits. Can someone tell me what I'm doing wrong? I've tried string insert and append and none of them seem to work</p>
<pre><code>queue <string> getTokens(st... | 3 | 1,570 |
Unable to evaluate expression because the code is optimized or native frame is on top of call stack | <p>Unable to evaluate expression because the code is optimized or native frame is on top of call stack. Please help me regarding this topic. The error is displaying in RedirectAndPOST(this.Page, "strDTIurl", ldata). </p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
... | 3 | 1,276 |
Input data doesn't appear on the database | <p>I'm new to this forum, and I'm having trouble with my project. I've used the same code for the other tables but this one won't work. Help! D:</p>
<p>This doesn't work:</p>
<pre><code><?php
$host="127.0.0.1";
$username="root";
$password="";
$db_name="nadel";
$tbl_name="soldprod";
mysql_connect("$host", "$u... | 3 | 1,192 |
Small image is overlapping my navigation? | <p>With character: <a href="http://jsfiddle.net/nuu6g/" rel="nofollow">http://jsfiddle.net/nuu6g/</a></p>
<p>For some reason, I cannot click on my text on my navigation menu. This is most likely due to the (missing) image on the left, which I will refer to as the "character." However, when I remove the character, I ca... | 3 | 1,950 |
C# Specified key is a known weak key for 'TripleDES' and cannot be used | <p>I have a authentication process written in Java which encrypts a string into MD5 and generates a string and takes only the first 8 digits of that string.
In this example that generated string is <strong>"89a5c474".</strong></p>
<p>Afterwards I have this following piece of Java Code in which I use a TripleDesEncrypt... | 3 | 1,961 |
unable to show success message after submitting a form using ajax | <p>I am sending email using ajax after when ajax form is submitted.</p>
<p>Here is my php controller code:
If i keep the email sending code inside this function then the <code>SUCCESS</code> message is not showing on the html page. But if i remove the <code>Email sending</code> code from that function then <code>SUCCE... | 3 | 3,343 |
Chrome Extension sends unreadable data to python script | <p>I am new to Chrome extensions and just built a popup that, when submitted via Javascript, sends info to a Python Script on GAE which works with the data. Now, everything works perfectly fine as long as I do not use special characters like Ä,Ö,Ü. When I do use these letters, I get the error:</p>
<pre><code>Traceback... | 3 | 1,273 |
How Insert an expression in legend in ggplot2?:: correct color + multiple lines and point | <p>I am new to R and have not been able to correct the following graph.
Xb_exp, it should have blue dots.
Xb_dw, solid red line.
Xb_f, dotted line.
Xb_s, longdash line.
The legend expression should be as shown with the subscript.
I have not been able to correct it.
Is there a way to do this?</p>
<p><a href="https://i.... | 3 | 1,409 |
Kubernetes failed quota when limits.cpu is set | <p>I'm trying to apply a Kubernetes <code>Deployment</code> manifest on a <code>namespace</code> that contains a <code>quota</code> called <em>compute-resources</em>, with only the <em>limits.cpu</em> set.</p>
<pre><code>kubectl -n <namesapce> describe quota compute-resources
Name: compute-resources
Namespa... | 3 | 2,494 |
How to create a custom Python class to be used in Pipeline for dropping highly correlated features? | <p>I'm using the Sklearn <code>Pipeline</code> + <code>GridSearchCV</code> for the data-preprocessing/hyperparameter tuning of a Deep Neural Network (regression).
For the preprocessing, I would need a custom class for dropping the highly correlated columns of the dataset. Here is my code (to be improved):</p>
<pre clas... | 3 | 1,260 |
Nodejs Return result from nested function | <p>I am having a hard time wrapping my head around how i can manipulate the stack in JS
Hopefully this exercise will help me..</p>
<p>So im trying write a function that makes a soap xml call and parses the data. Then returns the parsed data when called.</p>
<p>I can get it to console.log the result when i call the fu... | 3 | 1,074 |
Avoiding code duplication for methods with different return types | <p>I have two builder classes that return a <code>Tree</code> and a <code>Set</code> respectively. The execution of the second builder is just the execution of the first builder with an extra step and a different return type. I really don't want to duplicate the same steps in two different classes, because if there is ... | 3 | 1,407 |
my project is not getting deployed , it is having some problems with spring jars or other not getting it,help me | <pre><code>SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 23 in XML document from ServletContext resource [/WEB-INF/dispatcher-servlet.xml] is invalid; nes... | 3 | 2,191 |
ActiveRecord .missing - Why doesnt this work? | <p>Working on Rails 6.1</p>
<p>I've got this base class:</p>
<pre><code>class Post < ApplicationRecord
end
</code></pre>
<p>And these two subclasses representing a face-to-face lesson and it's live transmission:</p>
<pre><code>class Live < Post
belongs_to :in_person_live,
foreign_key: :live_of_in_p... | 3 | 1,050 |
It's possible to connect to "HTTP Long Polling server" as a "client" with .NET WebSockets? | <p>I'am looking at <a href="https://github.com/gigobyte/HLTV/blob/master/src/endpoints/connectToScorebot.ts" rel="nofollow noreferrer">this sample connection</a> with <a href="https://socket.io" rel="nofollow noreferrer">socket.io</a> and I'am trying to make a client to connect on "https://scorebot-lb.hltv.org&quo... | 3 | 1,503 |
position of recaptcha on bootstrap | <p>I'm trying to align recaptcha box with input fields using bootstrap. I used this code on ckeditor. The position of recaptcha changed when the time out for captcha was display. How to keep the position of recaptcha box same even after display error? </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-... | 3 | 1,218 |
Variables not being passed to class method | <p>I'm building a login class with PHP, but the variables used are empty when I pass them to the class method even though they shouldn't be.
I tried returning only the $username variable but it's still empty, though if I return it without using the class I can see that it gets assigned correctly.</p>
<p>I'm using mult... | 3 | 1,528 |
Switching between fragments with grid view afterwards loosing setOnItemClickListener of the gridview | <p>I am using fragments to create my gridviews. I also use tabhost to switch between fragments. Currently I have 2 fragments of gridview that I switch between. The problem occur when I switch to the 2nd fragment and then return to the 1st fragment and click the an item in the gridview. My setOnItemClickListener for the... | 3 | 1,786 |
What's the different between OKHttp3 3.14.9 and 4.9.2? It causes SocketException with same code | <p>My App was using OKHttp3 3.14.9 before. It was normal to call "AAA" API and then call "BBB" API immediately. After upgrade to 4.9.2, I didn't change any code, except required change for <a href="https://square.github.io/okhttp/changelogs/upgrading_to_okhttp_4/" rel="nofollow noreferrer">upgrading... | 3 | 2,859 |
HTML/PHP Laravel - Select random data from input | <p>The code is working fine at a glance. Problem is in spite of adding <strong>required</strong> term in the input form, without any input the form can be submitted.</p>
<p>Second thing is, submitted form showing the random value which is already set. I want when any input which matches the names in the <strong>newwelc... | 3 | 1,066 |
r: readOGR & st_read giving two different plots? | <p>I'm trying to make a map with the sf and ggplot package.. However, when I run the st_read() command to read in my shapefile and go to plot it,it's not giving me what I want.. but when I read it in with readOGR and plot it, it is. I would like to use the sf package because to me it seems easier.. Why could it be doin... | 3 | 1,211 |
aar file is generating instead of apk in android studio | <p>When I am building apk its showing "Reveal in Folder" but generating "aar" file not apk. Neither It generating debug Apk nor Signed Apk. Where I have to change or what I have to do to make it apk?</p>
<p>I searched for the issue but didn't get the proper answer for that. </p>
<pre><code>apply plugin: 'com.android.... | 3 | 1,107 |
What is the correct way to send 2 parameters in socket.io using lambdas? (I get undefined when printing in client and server) | <p>I am new to sockets.io and I am trying to send 2 values when using <code>socket.on()</code>. My problem is that I dont get any errors when sending 2 values from the client to the server. I tried printing the values, however, I get undefined on both parameters (<strong>in both the client and the server</strong>). I w... | 3 | 2,665 |
React Array of Child Components not re-rendering even with setState() and unique keys when made with Array.map() | <p><a href="https://i.stack.imgur.com/WRnHw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WRnHw.png" alt="UI image" /></a>
So, You see that UI in above image..., I'm trying to replicate some functionality of G-Mail - Selecting multiple items or All items. When I try to <strong>select all</strong>(t... | 3 | 2,036 |
How to limit a process between LongPressGesture-began and LongPressGesture-ended | <p>The requirement is simple: I want to start an activity (e.g. drawing circles on the screen) when the user touches the screen and holds down the finger. This activity shall stop immediately when the finger is lifted again. So I used the <code>UILongPressGestureRecognizer</code>. This produces a .began and .ended even... | 3 | 1,039 |
Multiple Changes to Grid Column DisplayName not working | <p>I'm developing a custom inquiry that needs to change multiple column heading labels based on the filter parameters. The user can select a 'Starting Period' and I want to display financial accounts in grid rows with the selected financial starting period data and preceding periods in the grid columns.</p>
<p>I'm us... | 3 | 6,601 |
@Input decorator not working at all | <p>I've been developing Angular apps some time already (especially now in the 5th version), and never found this problem before. Basically, I´ve got the following component...:</p>
<pre><code>@Component({
selector: 'super-table',
templateUrl: './supertable.html',
styleUrls: ['./supertable.css'],
providers: [Ta... | 3 | 2,345 |
Why does my primary key slow down a simple linq-to-sql query? | <p>I have a very simple table in SQL Server that has a compound primary key. The table is quite small with less than 10 MB of data. I am working with the table in C# using a data context auto-generated by SqlMetal. I filled the table with some initial data and was surprised when a simple select where query took over 30... | 3 | 2,923 |
C++ virtual function resolution issue | <p>The program throws an error at this function call resolution: </p>
<pre><code>for(vector<Catalog*>::iterator i=m_subDeptList.begin(); i!=m_subDeptList.end(); ++i)
(*i)->displayDiscription();
</code></pre>
<p>The Error:</p>
<pre><code>test.cpp: In member function ‘void Department::displayDiscri... | 3 | 1,646 |
hibernate multiple database configuration files | <p>I have the database config show below file that reads from the application.properties which has information to connect to a single data base. </p>
<p>I want to add another similar configuration file that will allow me to connect to another database and use its session factory like the primary one I already have. </... | 3 | 1,069 |
Joomla 1.5: improving menu related query | <p>I have a joomla 1.5.10 based big system. I am using PHP 5.3.13 and MySQL 5.1.58 version. During peak load my system runs very slow and break sometimes. When I analyzed, I found multiple queries are logging in slow query logs. One among them related with menu section of joomla is below:</p>
<pre>
SELECT id FROM jos_... | 3 | 1,449 |
I am creating a favorite list on react. I have been able to add, get and remove the items in localstorage. How do i make the heart button persist | <p>I am creating a favorite list on react using <code>localstorage</code>. I have been able to add, get and remove the items in <code>localstorage</code>. But the problem is that in the '<strong><code>Works</code></strong>' section, the heart shape icon does not persist after refresh i.e it returns back to the '<strong... | 3 | 2,103 |
Django Prepopulate ModelForm with Table Record | <p>I am trying to create an Edit for that allows the user to scroll through a table and click a button existing in each row to edit the data within a modal.</p>
<p>The issue that I am running into is when I try to prepopulate the form with the existing values. How would I convert the EditCommunicationsForm below to dis... | 3 | 2,542 |
How to iterate a slice within struct in Golang or is it possible to use for loop within struct? | <p>I have two structs. One is for Lottery and one is for Reward. I am using Mysql database. I want to read data from database and write in JSON format. I can able to do that, but i want to have a nested struct where I want to iterate Reward struct within Lottery struct. Can I do that?</p>
<p>Here is my Lottery and Rew... | 3 | 2,022 |
Pictures disappear when I scroll down in CollectionView | <p>I have a collectionView for display posts, I have 3 different post types (Text,Image and Video). I`ve added an imageview to cell and Im using if else codes in cellForItemAt function for display imageview for Image and Video posts or hide it with heightAnchor = 0 for text posts.</p>
<p>its loading correct at beginni... | 3 | 5,083 |
Use ChoiceList for entity type | <p>I'm trying to use a choice list in a form with the entity type but it's not working if I add data to the form. It's giving me a "could not convert object to int" error.</p>
<p><strong>My buildForm method</strong></p>
<pre><code>public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder... | 3 | 1,198 |
Heroku rejecting an app production.rb:94: syntax error, unexpected keyword_end, expecting end-of-input | <p>I'm trying to push my app to Heroku which it has mailing functionality but its rejecting it for a missing end which I don't see. Furthermore, the application is working fine in the local environment using gmail.</p>
<h1>config/environment/production</h1>
<pre><code> ils.application.configure do
config.cache_... | 3 | 1,396 |
can't launch rstudio from a conda environment | <p>I was trying to launch rstudio from a conda environment that has R 4.1.0 and it gives me that error</p>
<pre><code>This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen... | 3 | 2,826 |
Why are my single select lists converting to multi select lists on model binding? | <p>I'm trying to bind multiple single select lists to one list of strings in my view model I have the property: <code>public List<string> Items {get; set;}</code> and in my view I have 3 select lists with single select option, but when I try to model bind my select list to Items property using <code>asp-for="@Mod... | 3 | 1,367 |
Possible bug in Collections.synchronizedCollection's forEach and removeIf? | <p>As a followup to my last post <a href="https://stackoverflow.com/questions/23450227/is-iteration-via-collections-synchronizedset-foreach-guaranteed-to-be-thr">Is iteration via Collections.synchronizedSet(...).forEach() guaranteed to be thread safe?</a> I will share my thoughts on what I think is a bug in the impleme... | 3 | 2,534 |
After fill color using floodfill algorithm, opacity of color is increase after drawing by finger on canvas | <p>I have canvas drawing app. I successfully done integrating floodfill algorithm for filling color for finger drawing circle and rectangle area. My problem is after filling color on finger drawing circle when i used blur mask brush effect and drawing using finger by blur mask brush then whole blur mask brush drawing i... | 3 | 4,621 |
Possible to log in specific user with Passport Strava strategy without log in screen? | <p>I want to have an online map which publicly loads and shows all my activities from my Strava account.</p>
<p>I have found a web app on GitHub which does what I want but the user has to log in with the Strava log in screen before he than can see his own activities: <a href="https://github.com/nsynes/ActivityMap" rel=... | 3 | 1,582 |
AngularJS2: NgFor template inside Template is not working correctly | <p><strong><em>UPDATE</em>: This a bug in Angular <=2.4.1. See my "proof" posting below.</strong> </p>
<p>I have a problem with AngularJS (2.2) with For loop templates inside templates to display an array inside an array. </p>
<p>See the MWE below. The first picture shows the start situation, If you press the but... | 3 | 1,045 |
How to Loop a simple program in Java? | <p>I am trying to code a simple program in which the user can view and update a list of NBA player's racing for the MVP Trophy. However I have failed in the past to code a program in which can loop for however long the user decides to. I want the program to have the options 1. Go Back & 2. Exit but I cannot figure ... | 3 | 1,167 |
BlackBerry OS 5 - 7 - Trying to get JSON response and get error code 500 | <p>I have been trying to get the json response from my company's json webservice. Here is the code:</p>
<pre><code>public final static String GOINOUT_HOST_NAME = "http://ec2-54-254-123-244.ap-southeast-1.compute.amazonaws.com";
public final static String GOINOUT_API_VERSION = "/api/v1";
public final static String GO... | 3 | 7,031 |
Using bcp to load data into sql server | <p>I have a fixed-length text file that I need to import into my table on sql-server-2008.</p>
<p>I am using this script to upload the file:</p>
<pre><code>insert into imsdata
select *
from openrowset (bulk 'e:\imsdata.txt',
formatfile='e:\myformatfile.xml'
) as t1;
</code></pre>
<p>The importing is working; howeve... | 3 | 3,816 |
Attribute Error when running a Pytorch neural network in Spyder | <p>I tried to run a neural network to learn more about categorical embedding (the exaplanation of the neural network code is here <a href="https://yashuseth.blog/2018/07/22/pytorch-neural-network-for-tabular-data-with-categorical-embeddings/" rel="nofollow noreferrer">https://yashuseth.blog/2018/07/22/pytorch-neural-ne... | 3 | 3,439 |
Cannot start already started MediaProjection and rarely NullPointerException when invoking MediaProjection.createVirtualDisplay | <p>These are the errors I am getting:</p>
<pre><code>2021-10-31 12:18:44.281 15783-15921/com.exabes.test E/AndroidRuntime: FATAL EXCEPTION: Thread-7
Process: com.exabes.test, PID: 15783
java.lang.IllegalStateException: Cannot start already started MediaProjection
at android.os.Parcel.createException(Par... | 3 | 3,741 |
Comparison logic on Value and it's Prototype | <p>So, there is a "<em>problem</em>":<br/>
You have</p>
<pre><code>let kind_1_ = "some_string"
let kind_2_ = 1234
let kind_3_ = [ "can be string or...", 0, { "some_prop" : "any possible type of value" }, ["...or this"] ]
let kind_4_ = { "even_this" :... | 3 | 1,086 |
R encoutered a fatal error and terminate; after I export 500GB data and can't read any files since then | <p>I tried to process batch of Himawari-8 data and export them to the tif files I want. The codes I used are as below:</p>
<pre><code>library(raster)
library(ncdf4)
library(rgdal)
library(DoParallel)
library(foreach)
lst <- list.files(path="D:\\0619\\",pattern='nc$',full.names=TRUE)
detectCores()
usecore... | 3 | 1,460 |
Where to put onClickListener for Button in recycled fragment | <p>New to android/java here. I'm trying to create an app with a recycled fragment piece to control power switches over the internet. I created a class to define each remote switch's values. I pass these in as a Bundle with setArguments when creating a new instance of the fragment.
I presumed since I was recycling the c... | 3 | 1,852 |
Add child stories to EPIC story cardboard | <p>I have created a board of EPIC stories filtered by target release using Rally App SDK. I would like to display child stories info (Formatted ID and Name) for each epic story in the board and I'm not sure how to do that. Anyone know of a simple way to add this to each of the cards? Please see my code below:</p>
<pre... | 3 | 1,399 |
I would like a "drawing popover" appearing by clicking in a tableviewcell? | <p>I would like to have a popover with a signature "drawing" when I click in a tableviewcell.
<strong>Like this picture :</strong>
<a href="https://i.stack.imgur.com/ue4FQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ue4FQ.png" alt="enter image description here"></a></p>
<p><strong>So here is my ... | 3 | 2,498 |
Error 204: No Content error in Headers column of Network | <p>Here is my frontend code:</p>
<pre><code>import React, { useState, useEffect} from "react";
import Navbar from "../Navbar/Navbar";
import Axios from "axios"; //axios library to make requests to api
import "./Stats.css";
import ReactPaginate from "react-paginate";
... | 3 | 2,821 |
Openmp do I have false sharing or Race condition? | <p>I'm learning Openmp, and I'm working on compressed sparse row multiplication (datatype <code>std::complex<int></code>). And I'm getting different execution time each time I run the following function:</p>
<pre><code>typedef std::vector < std::vector < std::complex < int >>> matrix;
struct CS... | 3 | 1,110 |
"The system cannot find the file specified" when animating with ffmpeg in matplotlib | <p>I am trying to generate a movie from a stack of numpy arrays using a function I have used on a different computer (a mac) on my home computer (Windows 10). Here is the function that I am using:</p>
<pre><code>def make_animation(frames,name):
plt.rcParams['animation.ffmpeg_path'] = u'C:\ffmpeg-20190320-0739d5c... | 3 | 1,189 |
How to initialize a specific structure format | <p>Although I've been using language for more than a couple of months now, I hadn't seen myself with this need. <strong>What I want is to initialize the structure that I show below (basically initialize Project and then, inside, aaa, bbb and ccc structs)</strong>. My question is whether I can really initialize it witho... | 3 | 1,089 |
nvcc + c2hs on OS X 10.9.5 | <p>I'm building <em>a software</em> that needs <code>nvcc</code> for compilation. I don't have a CUDA-capable GPU, but actually I don't need that – a friend is building the exact same <em>software</em> on Linux, he has no CUDA GPU, but everything's fine.</p>
<p>I installed the newest CUDA toolkit from <a href="https:/... | 3 | 1,920 |
Frustrating python syntax error | <p>I am writing a script to automate HvZ games at my college and have run into this strange frustrating syntax error:</p>
<pre><code> File "HvZGameMaster.py", line 53
class players(object):
^
SyntaxError: invalid syntax
</code></pre>
<p>Here is the offending code</p>
<pre><code>class mailMan(object):
"""mai... | 3 | 1,247 |
Why is POST action losing model values? | <p>I have a ViewModel which I'm trying to post back to save in the DB. While the ViewModel is getting the values set in the <code>//GET Create(int id)</code> it is losing some of them by the time it gets to the <code>//POST Create ()</code>. The <code>GoalLevel</code> and <code>GoalTitle</code> are being passed through... | 3 | 2,479 |
Positional argument error when trying to train SGDClassifier on binary classification | <p>I'm working through <a href="https://github.com/ageron/handson-ml" rel="nofollow noreferrer">Aurelien Geron's Hands-On ML textbook</a> and have got stuck trying to train an SGDClassifier. </p>
<p>I'm using the MNIST handwritten numbers data and running my code in a Jupyter Notebook via Anaconda. Both my anaconda (1... | 3 | 2,171 |
Is it possible to replace sub-queries, used as a scalar value, with CTE? | <p>I want to replace a long sub-query that return a scalar value or does not exist with just a short alias, because I place it 3 times to the UPDATE statement. Sub-query takes the last value in <code>UncoveredLoss</code>, if there is one, and the new <code>UncoveredLoss</code> value is calculated in the updated row dep... | 3 | 2,280 |
ClassNotFoundException JavaRecursiveElementVisitor | <p>Hi all I am trying to build a plugin in intellij and I am getting this following error at runtime - </p>
<pre><code>Caused by: java.lang.ClassNotFoundException: com.intellij.psi.JavaRecursiveElementVisitor PluginClassLoader[com.rahul.gqlformat, 1.0] com.intellij.ide.plugins.cl.PluginClassLoader@2a707a23
</code></pr... | 3 | 1,060 |
Why isn't the CommandParameter being updated? | <p>We've got a WPF app we wrote, using VS 2015. The app has a bug icon in several places throughout the app, which is meant to be used by the user to report a bug. It brings up their email client to send emails to our help ticketing system. (This works fine.) I wrote a DLL, which I intend to be used by other WPF apps t... | 3 | 1,443 |
Submitting a search in website with Jsoup | <p>I want to create an app that allows me to search for a city in this weather site.
I would like you to return the site corresponding to the search performed.
I tried to do this with an EditText and a Button, but the search does not seem to work, because the page returned is the same as the initial one.</p>
<p>How ca... | 3 | 1,775 |
Can not connect to a postgres database in a docker container from my local machine | <p>I have a strange problem with docker and postgres. I can not connect from my local machine to psql inside the docker container.</p>
<p>First of all I created my container with this command: <br />
<code>docker run -d -p 5432:5432 --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword postgres</code></p>
<p>After t... | 3 | 1,215 |
javax.swing.UIManager.getIcon(Object key) returns null when String-keys are streamed from an ArrayList | <p><strong>What I want to achieve:</strong>
I want to visualize some <code>javax.swing.Icon</code>s from the <code>javax.swing.UIManager</code>. On the internet I've found a list of <code>UIManager</code>-keys, which will not only return <code>Icons</code> but also <code>Strings</code>, <code>Colors</code> and so on. S... | 3 | 1,487 |
Android: Solid color on button not working | <p>API 22. I want to set a border radius for my button, so I did this: <a href="https://stackoverflow.com/questions/6054562/how-to-make-the-corners-of-a-button-round">How to make the corners of a button round?</a>
(I tried out the answer that is ticked as correct). <a href="https://stackoverflow.com/questions/32671004/... | 3 | 1,039 |
How to remove durable subscription using stompit | <p>We are using ActiveMQ 5.16.1 with the <a href="https://github.com/gdaws/stompit" rel="nofollow noreferrer">stompit</a> client to create a durable subscription in our NodeJS app using the following code snippet:</p>
<pre><code> var connectOptions = {
"host": "",
"port": amqPort,... | 3 | 2,180 |
How to use UIPickerview and UIDatePicker on the same Viewcontroller? | <p>I have three TextFields in a Viewcontroller. After clicking the first I want to use UIPickerview to select something. The second TF should open the keyboard and the third one should open UIDatepicker.</p>
<pre><code>import UIKit
class NewCompetitionViewController: UIViewController, UITextViewDelegate,UIPickerViewD... | 3 | 1,572 |
Android Studio Expection : Gradle task assembleDebug failed with exit code 1 | <p>running my first flutter application on my physical device ,
No issues found by flutter doctor ,
error shown by compiler :</p>
<p>dellpc@dell-pc:~/AndroidStudioProjects/flutter_app$ flutter run</p>
<pre><code>Launching lib/main.dart on RMX1971 in debug mode...
Exception in thread "main" java.net.UnknownHostExcepti... | 3 | 1,150 |
An easier way to manipulate my data? | <p>I have a species x site matrix with treatment types and months attached to each site sampled. I've managed to restructure my data in the way I want using a bunch of loops and extra lines of code but I'm curious to how I can code this in a more efficient manner that works as new data comes in.</p>
<p>Data:</p>
<pre... | 3 | 2,570 |
Hashcode of function changing inside atom...why is this happening? | <p>As part of a data visualization app that I'm working on, I've encountered something that's either a bizarre bug or me fundamentally not understanding something.</p>
<p>My application has code that takes data structures representing colorscales and transforms them into functions that take a number and return a hash ... | 3 | 3,055 |
Draw particular elements on a map | <p><img src="https://i.stack.imgur.com/sBXsW.png" alt=""image map".">
The symbols on the map are custom markers that I added to the map thanks to Google API. </p>
<p>To set their position, I use some coords stored in my database. </p>
<p>I want to change it with some rectangles like this:</p>
<p><img src="... | 3 | 1,873 |
Bulk uploading backlog of xml files to MVC Controller | <p>I have an MVC4 application that parses XML files specific to a particular data format, I have this working as expected when uploading the xml file through a file input control and it takes between 1-5 seconds to parse each file.</p>
<p>If however I choose to upload a series of 50 files it seems to take 30-60 second... | 3 | 4,537 |
Contract-First XML attributes (dis)order | <p>I'm having a strange case. I'm using the <a href="https://msdn.microsoft.com/en-us/library/hh674270(v=vs.110).aspx" rel="nofollow">contract-first approach</a> to develop a WCF Web Service. The thing is I have defined a specific attribute order in the XSD file, with the tag. Nevertheless the Generated code with the ... | 3 | 3,908 |
Adding mutliple textview to expandablelistview in android | <p>I have followed this link <a href="http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/" rel="nofollow">http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/</a> to create an <strong>ExpandableListView</strong>.But i want to change the child view.For that my xml layout is</... | 3 | 2,318 |
Struts2 + Rest Plugin: strange behavior when setting properties in action class | <p>I'm facing a strange behavior with struts2 using the rest plugin. Strange because in the Web Application I've already done, everything is working fine.</p>
<p>Well, I have a popup jsp with a post form. This form action url calls correctly the create method of a controller.</p>
<pre><code><form name="gestioneUte... | 3 | 1,573 |
Rails ActiveRecord query sorting 2 models? | <p>This is my specific question. I need to display in view only the records from bboys table that match the criteria. The criteria is: records based on stars count for 'dimension: originality' in descending order. rateable_id: 3 in rates table is same as id: in bboys table. Any advice is greatly appreciated! I am new t... | 3 | 2,101 |
Asp.Net MVC Ajax Url Routing | <p>i am developing an ASP.NET MVC SPA Project, where i am loading different pages (partialview) using Ajax.
Everything works fine, except the fact that i cant call an URL including my ajaxpage as Parameter.</p>
<p>Lets say i call <a href="http://localhost:60452/Events/1" rel="nofollow">http://localhost:60452/Events/1<... | 3 | 2,126 |
Python Loop: string Index Out of Range | <p>Given the following csv file:</p>
<pre><code>['offre_bfr.entreprise', 'offre_bfr.nombreemp', 'offre_bfr.ca2020', 'offre_bfr.ca2019', 'offre_bfr.ca2018', 'offre_bfr.benefice2020', 'offre_bfr.benefice2019', 'offre_bfr.benefice2018', 'offre_bfr.tauxrenta2020', 'offre_bfr.tauxrenta2019', 'offre_bfr.tauxrenta2018', 'offr... | 3 | 2,143 |
Extract increasing and decreasing sequences from vector | <p>I have a data frame with 2718 observations of which one column is of interest. It is a first difference series created with <code>diff()</code>. For ease, let's create a fake vector that resembles the data and pretend <code>v</code> is a first difference series. The <code>NA</code>s are introduced to make it similar... | 3 | 1,435 |
How to incrementally parse (and act on) a large file with Boost.Spirit.Qi? | <p>I've created a Qi parser for a custom text file format. There are tens of thousands of entries to process and each entry usually has between 1-10 subentries. I put a trimmed down working example of my parser
<a href="http://coliru.stacked-crooked.com/a/220105d357ffbbf0" rel="nofollow noreferrer" title="here">here</a... | 3 | 3,924 |
What does String do that I'm not doing? c++11 | <p>I am still new to c++, so bear with me.</p>
<p>I was trying to learn more about how std::move works and I saw an example where they used std::move to move the string to a different function and then showed using std::cout that no string remained. I thought cool, let's see if I can make my own class and do the same:... | 3 | 1,667 |
Reloading View on Model Change | <p>I believe I'm aware of the problem i'm having; I just don't know how to resolve it. My view controller takes two parameters. When it's first loaded it gets one parameter and loads partial model. As soon as a selection is made from the grid on the page, the controller method is called again and the model is loaded wi... | 3 | 3,250 |
Chunk loading error in production React for MacOS and IOS users | <p>I've got a problem for few weeks and I'm not even sure of his reason.<br/><br/>
After building with the create-react-app template and deploying the app in production for an unknown reason a CSS chunk isn't called on all MacOS, IOS navigators (there aren't any errors on the console) but on Windows and Android the chu... | 3 | 3,635 |
Upgrading Library Versions Causes Build Failure in project that depends the library | <p>We are maintaining an Android Library. Lately we upgraded gradle, compileSdkVersion and support library versions. (only using com.android.support:design). Also we upgraded gcm-play-services
The library is published to Artifactory with its dependencies also in a pom file.
This upgrade works perfectly on projects with... | 3 | 1,566 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.