title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How do I get ipyparallel to print status updates while in wait_interactive() in Jupyterlab?
<p>I have the following code blocks, each in JupyterLab (this works as expected in Jupyter, but not Jupyter-Lab):</p> <pre><code>def work(sleepTime): import time import datetime start = datetime.datetime.now() time.sleep(sleepTime) return &quot;Started at: &quot;+str(start)+&quot; Slept &quot;+str(s...
3
1,672
Added columns to SQLiteDatabase, can no longer read from it
<p>My SQLiteDatabase was working fine with just 3 entries, the UUID, Title and Date, but ever since I added some more columns I am getting this error.</p> <p>Not sure what it can be, I have read that 0,-1 means that the column cannot be read, but I have made sure to spell all my column names correctly.</p> <h1>CrimeC...
3
2,103
Sql server function slow runtime
<p>I have the following function that returns the averages of the records by Group, Country, State and in turn by Season, Room Type etec. The problem with this function is that the response time is 15 minutes, can someone help me correct this problem please? I have also noticed that every time I run the function the re...
3
4,245
Custome adapter for list view and change images
<p>I am faching data from server and passing this data to custom adapter to display it on image adapter i am using asynchtask for faching data my problem is taht i want to change image in list view after every 5 seconds please suggest me a solution here is my activity file </p> <pre><code>public class MainActivity ext...
3
5,208
Unable to display the image selected in gallery view
<p>I have an issue with showing the preview of image selected in the gallery view. I have a gallery of images from sd card, on clicking an image its preview should be shown below the gallery view(Not in seperate activity via intent). I am able to show the gallery with images but nothing is happening on clicking image. ...
3
1,273
Uncaught ReferenceError: process is not defined error when converting react (TS) app to PWA with webpack and babel config
<p>I have created a react (TS) using babel + webpack. It is working fine. Now I am converting it to a PWA. I followed this <a href="https://webpack.js.org/guides/progressive-web-application/" rel="nofollow noreferrer">webpack</a> article to updated webpack.config.js. To register the service worker, instead of doing it ...
3
3,104
Progress bar exceeding max value
<p>Progress bar exceeds max value when using the ++ operate to increment the value. In the following code I have a record set which is 6004 in size when it comes round the loop it manages to get to 6006 even though I have put an if statment to trap when it reaches the value++ to reset the progress bar to zero and also ...
3
1,639
Bug in Path's .relativize() documentation or am I doing something blatantly wrong here?
<p>OK well, here is something fun. Note that "elements" here is an instance of <code>PathElements</code>, and for these <code>.resolve()</code> and <code>.relativize()</code> are <a href="https://github.com/fge/java7-fs-base/blob/master/src/test/java/com/github/fge/filesystem/path/PathElementsTest.java" rel="nofollow">...
3
2,094
Using a varying input to select values
<p>I have included part of my code below for reference. Essentially, I need to be able to choose the correct concentration values when a specific RH input is set. For example, if the RH were set to 0.2, I would need the concentration and activity values to be chosen automatically from the first row of each matrix. I am...
3
1,831
Passing Properties as Parameters
<p>I'm trying to pass properties from my <code>Game</code> class into a method called <code>Compete</code>. I am calling the <code>Compete</code> method in my controller, but can't access these parameters.</p> <blockquote> <p><strong>Question:</strong> How can I pass <code>UserGuess</code> and <code>ComputerGuess</c...
3
1,138
Javascript Class Assign Class Function To Button
<p>I have a javascript class (ES6) and I'm trying to assign a function from that class to a button created by the class. This my main class</p> <pre><code>class tabDrawer { constructor(bodyID) { this.bodyID = bodyID; this.tabArray = []; this.initialized = false; } get getBodyID() { return this.bodyID;...
3
1,062
Wrong results cufft 3D in-place
<p>I write because I'm facing problems with the cufft 3D transform in-place, while I have no problems for the out-of-place version. I tried to follow Robert Crovella's answer <a href="https://stackoverflow.com/questions/24809179/cufft-double-to-complex">here</a> but I'm not obtaining the correct results when I make a F...
3
2,386
Parse: JavaScript Promises issue
<p>I am trying to wrap my head around Promises, <code>then</code> , <code>when</code>, and everything else that goes along with it. I am not having much success. Here is what I'm trying to accomplish in English, and maybe somebody can crack the code because so far nothing I've written works.</p> <p>I am writing a SPA ...
3
2,836
Closed error when using HttpServlet with JAVA
<p>I wrote HttpServlet doGet method this is the servlet:</p> <pre><code>public class PrintDocsServlet extends HttpServlet { private static final int BAD_REQUEST = 400; public void init() throws ServletException { } public void doGet(HttpServletRequest request, HttpServletResponse response) ...
3
7,908
I am trying out to do the "Count Reverse Pairs" and I can't understand why parentesis() are necessary on this line
<p>I know that addition is commutative therefore I want to perform a storing operation with shorthand operation <code>+=</code> at line 46 but the answer differs only when I put the parenthesis, also when when I don't put parenthesis I get wrong answer.</p> <p>The line is in the merge function.</p> <p>CODE:</p> <pre cl...
3
1,352
Creating Jmeter test of jdbc using java code
<p>I want to create a JMeter test of JDBC using java code. I have tried the following code. It's working fine for me giving me status: 200 but the values are not being stored in the MySQL database. Can anyone please help me in finding the error in this code or provide some appropriate solution to it.</p> <pre><code> pu...
3
1,623
Textbox only counts for one variable instead of summing both up
<p>I am creating a program that calculates the user's electricity bill. However, there's an issue, I only manage to calculate them one by one, but when I try to sum them up, it didn't work, it only displays the total of one variable instead of summing both up.</p> <p><a href="https://i.stack.imgur.com/WwLuC.png" rel="n...
3
1,070
Ruby on Rails Application Page Does Not Exist in Heroku Production Environment
<p>In my app during testing on <code>localhost</code> I am able to click on a link that brings me to the <code>edit_event_path(event)</code> page and it works perfectly.</p> <p>When I pushed it to Heroku I keep getting the error "This page does not exist" however I am still able to access the <code>/event</code> index...
3
3,154
Get tag name and tag slug after creating tag in Wordpress
<p>I want to get <strong>tag name</strong> and <strong>tag slug</strong> after creating a tag in Wordpress.</p> <p>I have done this in <code>function.php</code>, its working but it just returns <code>"post_tag"</code> in <code>$tags</code>, and I need to create tag name and slug in return or by any other method.</p> ...
3
1,092
Windows Speech Recognition Hello World not working
<p>I am trying to get <code>Windows::Media::SpeechRecognition</code> working on Windows10 but I have trouble making my Hello World App working.</p> <p>Here is what I did:</p> <ul> <li><p>I created a new UWP Blank App in VS2017</p></li> <li><p>In the <code>OnLaunched()</code> method, I call my <code>Init()</code> meth...
3
1,104
Batch that sets a variable equal to a line in a text file, run several commands, repeat with next line
<p>I have over 2 million folders split up across different locations. These folders contain old archives of photos labeled by work order number. I created a batch file a while back that automatically searches through these folders for a specific folders based on user input. Right now i have it only returning one order ...
3
1,054
Command injection problem in controller method
<p>so im having a problem with a security problem in my code. </p> <p>Thing is, i wrote some code for placing a button in a form, so when you click it you check some things. So, i have my button which is calling a method called 'test_oid', which is in my controller. This method render a file with the same name and so ...
3
1,446
How to show only one accordion at time
<p>I have several accordion drop downs, which I am able to open each and close each individually, but what i actually want to achieve is </p> <ol> <li>to automatically close the other when I open one</li> <li>to close one child when I open another child(for the multilevel accordion)</li> </ol> <p>Here's what I've bee...
3
5,037
ArgumentNullException for ConnectionString When trying to remotely connect to .net core API
<p>First of all is this happening in a Mac and I'm new to dotnet core.</p> <p>I have installed dockers and setup everything in dotnet core. I did add connectionstring to the 'appsettings' and 'appsettings(Development)'.</p> <pre><code>"ConnectionStrings": { "Default": "server=localhost; database=Monitor; User ID=...
3
1,573
RecyclerView Duplicating On Back Press in the Nested Recycler View
<p><strong>I create a nested recyclerView in my android project but when i am in the 2nd recyclerview and press back button in order to hide the keyboard. The Item of 2nd group automatically gets added at the end of 1st group.</strong></p> <p><img src="https://i.stack.imgur.com/uHWuE.jpg" alt="When Back button is not p...
3
4,982
File disappears after multi-file upload in Codeigniter
<p>I've made an upload form for an admin page within Codeigniter that uploads a new HTML form and relevant PHP files into a database for users to access</p> <p>I can select several files to upload but one of my files will not upload and I can't understand why - even if I try to upload it individually. Below I've inclu...
3
5,877
Symfony 4 - How to fix "file not found" constraint violation when updating existing entity?
<p>I have a Symfony 4.2 app where the user can create and update rental properties, picture included. I have a problem when updating a rental, the form can't pass validation because the pre-loaded file isn't found ("constraint violation : file not found"). The new file is uploaded via an unmapped property, uploadedPic...
3
1,249
TASM addressing off by one
<p>I'm currently implementing Snake for university, and we have to use TASM for that.</p> <p>My main game data is laid out like this (using C syntax):</p> <pre class="lang-c prettyprint-override"><code>struct GameLine { uint8_t direction_bits[10]; // 2 bits per entry, the first entry is invalid since valid x posit...
3
1,386
"object ... not found" with randomForest
<p>I am quite new to R world. I'm currently working on a flight delay prediction. I'm getting "object 'date01-01-2004' not found" even though it is present.</p> <p>I tried converting all the factors into dummy variables and doing random forest on it.</p> <pre><code>library(caret) library(dummies) library(randomForest...
3
9,784
Smartest way to make php and mysql query to handle "multiple choice" in WHERE part
<p>I have a table which should handle user access to customer in specific countries. A user can have access to only one country, or have access to all countries or everything in between.</p> <p>Something like this: (1 = access, 0 no access)</p> <p><em>The rest is multiple countries like CH, UK and more. But maybe wit...
3
2,117
React state is changing but is not reflected on screen?
<p>I am using the <code>useState</code> hook to set <code>height</code> and <code>weight</code> values from 2 sliders I have to determine BMI.</p> <pre><code> const [stats, setStats] = useState({ height: 45, weight: 100, bmi: &quot;&quot;, }); </code></pre> <p>I also have my <code>handleChange</code> and...
3
1,075
how to check post image by id in php
<p>I have 3 inputs :</p> <p><strong>1.</strong> application name</p> <p><strong>2.</strong> Background photo</p> <p><strong>3.</strong> logo photo</p> <p>After I got help from @mith. The code is great. Images always go into correct folder. I adapt the code to change image's name after submit it into folder. But i d...
3
2,137
Alfresco java backed webscript returns Exception in Transaction (StackOverflowError)
<p>I am using Alfresco version 3.4. When invoking Java backed webscript I receive <em>Exception in transaction</em> (stackoverflow, read log) error.</p> <p>HTTP response is formatted like</p> <pre><code>&lt;div&gt; &lt;table&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;img src="/alfr...
3
3,071
Accordion JS wont open from a hashtag link
<p>I have an accordion shortcode working fine on my pages but when I have a link in the content that I want to open a specific panel in the accordion it will not work. Maybe someone can lead me in the path to edit my JS code?</p> <pre><code>/** * Main JavaScript */ // Document is loaded... jQuery(document).ready(fu...
3
1,632
illegala argument exception : illegal argument in query
<p>Here posting error related code and logs ,issue is trying display places using map api v2 ,while sending data to url getting this exception ,so i think problem in sending request but i got JSON data <a href="https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=21.21544712,81.32074942&amp;radius=1000...
3
1,270
HTML simple list sorting
<p>is there is simple way to sort only the outer level of multilist level in HTML? (it's not important to sort the inner level of the lists) If possible just javascript code, no jQuery since i never used it.</p> <p>Example: Before sorting</p> <ol> <li><p>List Z</p> <ul> <li>Katty</li> <li>Della</li> </ul></li> <li><...
3
2,028
Get TimeSpan property in EF projection for TimeSpan converted from ticks
<p>I'm following the advice from here:</p> <p><a href="https://stackoverflow.com/questions/8503825/what-is-the-correct-sql-type-to-store-a-net-timespan-with-values-240000">What is the correct SQL type to store a .Net Timespan with values &gt; 24:00:00?</a></p> <p>Inside a model named TimesheetEntry I have:</p> <pre>...
3
1,167
Avoid duplication in React array map function
<p>I am fetching some data in form of strings , and I would like to avoid any duplication when I map this array . This is how I am using this function in React :</p> <pre><code>&lt;Flex &gt; {allPrismicCollection.nodes.map((collection)=&gt; ( &lt;Navbar&gt; &lt;NavTitle&gt;{collection.data.c...
3
2,301
How to link my project library to my pybind module?
<p>I'm am new to pybind11 and I'm struggling with this :</p> <p>I have a cpp program called my_exec.</p> <p>I want to create a python-binding for it. (with pybind11)</p> <p>In my exec I have 1 simple function :</p> <pre><code>int add(int i, int j) { return i+j; } </code></pre> <p>And this is my pybind .cpp file :</...
3
1,413
Unable to debug Typescript for Protractor in VSCode with Node 8.x
<p>I am not able to debug Typescript (which compiles into JS for Protractor) when on Node 8.x. 7.x used the browser.pause() but that's not an option anymore since it is deprecated.</p> <p>I am using the latest version of VSCode.</p> <p>package.json</p> <pre><code>{ "name": "bond", "version": "1.0.0", "descript...
3
2,431
Why do I continue to get this error despite the fact that I added the link_to "Sign In"?
<p>Doing some BDD for my Ruby on Rails project and Guard continues to give me this message:</p> <pre><code>Users sign-in with valid credentials Failure/Error: click_link "Sign in" Capybara::ElementNotFound: Unable to find link "Sign in" </code></pre> <p>In spite of the fact that I have added "Sign In", take a look at...
3
1,064
Images in Django aren't loading even though they're stored locally
<p>With the code I have currently, my images used to load but now they don't and I can't figure out why. Within my Artist model, I have included an ImageField. This lets me upload an image and store it in a directory called 'artists' in my media directory. </p> <pre><code>class Artist(models.Model): name = models.Char...
3
3,389
How to make google maps api get user's current location to be stored it in the database?
<p>I have implemented a tutorial on how to make users select locations on the map and store it in the database, from <a href="https://developers.google.com/maps/documentation/javascript/info-windows-to-db" rel="nofollow noreferrer">google maps API</a>.</p> <p>However, there seems to be a problem that i cant fix, the m...
3
2,469
Spark sql and hive causing "Error: Could not find or load main class"
<p>I am new to big data. I have developed an spark application using Scala to communicate with hive. It is working fine on Intellij idea. But when I am building an jar file with all dependency I am getting the error </p> <blockquote> <p>Error: Could not find or load main class</p> </blockquote> <p>After further deb...
3
2,465
Omnet++ : How to sent to multiple hosts in inet
<p>What if I want a host to send to several hosts but not all.</p> <pre><code>**.Host1.app1.destAddress = "6e:27:f5:71:ab:11" **.Host1.app2.destAddress = "6e:27:f5:71:ac:12" **.Host1.app3.destAddress = "6e:27:f5:71:ad:13" </code></pre> <p>I am trying out with a work around by editing the app module as per below</...
3
2,125
Unique for attributes in two elements
<p>I'm building XML and XML schema for a chess game. There shouldn't be duplicates on position.</p> <p>To solve that, I used unique, so this works for each element but not both together. For example, if I have position "66" for player black's pawn, rook, bishop, then it shows those are duplicated. However, if I put pl...
3
1,785
Variables and pattern reading
<p>Just started coding a few weeks ago, and a project I'm working on is a somewhat replica of the 'Simon' game (in which leds would light up in a certain pattern and the pattern would have to be inputted back into the game via push buttons)</p> <p>I've added variables for each button in order to get the pattern part of...
3
1,230
My script in python is running slow i think it is caused by a listener
<p>I created a python script that runs two functions for a video game and they are working well but to activate them I want to do it with some keys so I create a keyboard listener and it recognizes the keys well but the problem is that despite having returns if it is not the Trigger key it starts to slow the whole keyb...
3
1,436
Display the scoreboard in GUI interface in python
<p>I have a function that print the results of scoreboard game in terminal (see the picture below). I want to modify the function in a way to print the result on GUI interface using python -tkinter or other technique. I don't have any experince in GUI with python. Can some one help me?</p> <p>Here is the function that ...
3
1,163
Leaflet : Bootstrap Toggle input for on/off layer is does not work properly
<p>I made a button to turn the layer on and off using Bootstrap Toggle. When all buttons are tried to be turned on and off, the data that appears is the same data. Each data should have 1 button according to the ID <code>lyrMosaicSP</code> or <code>lyrMosaicLS</code> on the input. You can check it here <a href="http://...
3
1,244
Couldn't access my Kubernetes service via a traefik reverse proxy
<p>I deploy a kubernetes cluster (1.8.8) in an cloud openstack pf (1 master with public ip adress/ 3 nodes). I want to use traefik (last version 1.6.1) as a reverse proxy for accessing my services.</p> <p>Traefik was well deployed as a daemonset and I can access his GUI on port 8081. My prometheus ingress appears corr...
3
1,497
Passing values from Footable to SQL database in MVC 5
<p>I have a fairly simple MVC application that is pulling data from a SQL database, and is using footable for the display. Everything is working fine, and the footable is working as expected. When I make a change to the table, the modified content shows up in the table view; however, the data is not being sent back to ...
3
5,023
URLImage in InfiniteScrollAdapter in Simulator shows NPE (CodenameOne)
<p>My app features an <code>InfiniteScrollAdapter</code> populated with images through <code>URLImage</code> and <code>URLImage.ImageAdapter</code>. </p> <p>In the simulator (Iphone3GS or Xoom or GoogleNexus7), and NPE is shown the first time the <code>InfiniteScrollAdapter</code> appears, although the file does exist...
3
3,988
Android Service exits leaving imp. data open
<p>I am facing a grave problem. Inside a <code>service</code> I am opening Wifi connection and closing it after my task completes. Since, a <code>service</code> exits at any point i face a problem wherein the connection opens and remains open.</p> <p>Is there a way i can handle this as i am using <code>START_STICKY</c...
3
2,839
android how can i read file or directory from usb host and copy to other place
<p>I need your help, I'm trying to read some directory and trying to copy it to another place. Now I can connect to usb host and read the usb specifications but i can´t read the information on the usb to copy it.</p> <p>this is my code</p> <pre><code> if (ACTION_USB_PERMISSION.equals(action)) { synchroniz...
3
1,024
Get error when max_length not equal to n_tags in multilabel classification
<p>I'm trying to make multilabel classification of chat messages by their tags. I've converted 21 tags to 21 binary columns and applied tokenizer and padding to make length of all chat messages = 21. This messages also were converted to 21 columns (every word in a different column). So n_tags = 21 and max_length = 21. ...
3
1,265
How to decide initial parametervalues for curve fitting with lmfit
<p>I'm currently working on a non-linear fit for several data coming from a DMA test (rheology). For the data I'm currently working with, the program works BUT i want the program to be flexible in a way that the starting parameters for the curve fitting are dependent of the input of my data. Is there a way to determine...
3
1,032
App crashes using the File.listFiles() method if the folder contains files with special charaters
<p>In my project I have to iterate through files and directories. For that I am using <code>File.listFiles()</code> method. I am experiencing strange behavior with files which has special charters.</p> <h1>Background:</h1> <p>I have pushed a file using adb command to my device's Music folder.</p> <p>I am using windo...
3
6,533
abnormal resizing of java.awt.Image on using getImage() and getScaledInstance()
<p>I m making a <code>java rmi based application</code> where i pass and receive an ImageIcon object from the server... (the image is stored in a separate URL in server)</p> <p><strong>The function involves the following....</strong></p> <pre><code> 1. Getting the image from the server at first....(on button ...
3
1,541
How to export interactive 3D plot (.obj/html) that can be rotated 360 degree by users (Python only)
<p>I am trying to visulize the result from a 3D bin packing model (showing how different size of items are packed in a larger bin).</p> <p>Below is the full code and a visulization method using matplotlib3D. However, it cannot be saved in a 3D file like format which allow user to rotate it 360 degree after saving it to...
3
2,228
get data from two tables using sql inner join, Trying to get property of non-object
<p>I have two table events and session which looks like this </p> <p>Events table</p> <p><a href="https://i.stack.imgur.com/jDduN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jDduN.png" alt="enter image description here"></a></p> <p>Sessions table<a href="https://i.stack.imgur.com/b83zp.png" re...
3
1,651
Programmatically disposing of the Elmah email onMailing
<p>I have an issue with Elmah, I've overriden the Mailing method. And I want it to dispose of the mail (not send it basically) when my App isn't in Live mode. Problem is when I do this, when my ErrorHandler (in my ASP.NET MVC app) tries to raise the exception with Elmah, i get the error: Cannot access a disposed object...
3
2,290
On the Mac, how to specify a custom tunnel provider in a App per App VPN configuration profile?
<p>I am developing a VPN desktop client for the macOS platform and I am trying to achieve App Per-App VPN. From my understanding, this feature works by letting the user install a configuration profile, that contains information about which apps are included in the feature. A sample configuration <a href="https://githu...
3
3,677
ENSideMenu when navigating from UITableViewController to DetailsViewController it wont be opened again swift
<p>Scenario:</p> <p>I have a MainViewController, TableViewController and DetailsViewController of (TableViewController)</p> <p>I am using Open Source Library to obtain Sliding menu functionality the tutorial can be found here: Sliding menu with <a href="https://www.youtube.com/watch?v=wYiSkRKt4_s" rel="nofollow">ENSi...
3
1,447
Calling StoredProcedure with Oracle Plsq Index-Table in Java: Alternatives to deprecated set/getPlsqlIndexTable do not work
<p>I am trying to call a simple Oracle Stored-Procedure that takes a plsql-index-table and retursn a plsql-index-table as OUT parameter. My old approach works perfectly but the methods I used there are deprectad now. That was my old Approach:</p> <pre><code> OracleConnection oracleConnection = connection.unwrap(Orac...
3
1,113
How to save the inputs, inside Data Frame which is inside the list?
<p>I tried to keep reprex as simple as possible.</p> <p>I want to save with the <strong>ADD</strong> button currently chosen inputs, inside Data Frame <em>(selected by index passed by userId input)</em>, which is inside the list, and later on use this Data Frame to render a table (in the final app make a plot).</p> <p>...
3
1,774
Keras can not recognize the optimizer
<p>I implemented a Keras model using eager execution. When I run <em>model.fit</em> function in the last line of code, I get this error:</p> <pre><code>compile() missing 2 required positional arguments: 'AE_optimizer' and 'classification_optimizer' </code></pre> <p>I can not figure out the reason for the error. Why the...
3
2,157
Python - copies Bad indent
<p>need a bit of help here <br></p> <p>I have a python script that copies and edits over txt files <br> but I'm having an issue with the indent <br> and I am not sure how to repair it <br></p> <p>The indent I normally use is <code>indent=4</code> and for the most part it has never failed <br> Now I am working on smalle...
3
3,859
Change to language on flag click
<p>I have some flag icons and I want my site to change to that specified language when clicked on that flag. How can I improve this code? How can I distinguish each id inside the tags?</p> <p>I also thought of using states but I'm not quite sure how...</p> <pre><code>const Header = () =&gt; { const { t } = useTran...
3
1,515
Problem with Multi-page design using JQuery Mobile
<p>I have a simple web app using the multi-page architecture in JQuery Mobile.</p> <p>I have two pages as now in the same html and will add a third later.</p> <p>The <a href="https://i.stack.imgur.com/GNNHo.png" rel="nofollow noreferrer">home page</a> consists of a list of 5 links which when the user clicks on any on...
3
4,121
How to protect child applications using OWIN and AzureAD and OpenID Connect
<p>I have .Net web application (Web Form) which is developed using .Net 4.5.1. Lets call this as "Main" application. In Main application i have implemented Authentication using Azure AD + OWIN + OpenID Connect. The authentication process is working fine so far.</p> <p>Now i have to authorize the access to resources in...
3
1,149
ember 1.0.0 linkTo does not work with nested resources transitionTo not working?
<p>I have nested resources (order items) and two outlets on one screen I render to.</p> <p>If I click an object nothing happens. If I replace the linkTo with the href its the same problem. When I hover over the link it is shown in the footer of the browser, but not when clicked in the adressbar. When I manually write...
3
1,904
How to update wxTreeListCtrl in real time if the childrens count is more 100000 in wxwidgets
<p>I am going to display data in wxTreeListCtrl but i am facing some problems with time , </p> <p>it is taking much time , could some please hep me out of this.</p> <p>Here is my code:</p> <pre><code>wxTreeListCtrl *m_ptreelistctrl = new wxTreeListCtrl(this, TREELISTCNTRL, pos, size, wxBORDER_NONE|wxTR_HAS_BUTTONS|...
3
1,662
std::forward and rvalue references in a class
<p>I've been reading about <a href="https://stackoverflow.com/questions/3582001/what-are-the-main-purposes-of-using-stdforward-and-which-problems-it-solves"><code>std::forward</code></a> and I think I understand it well, but I don't think I understand it well enough to use it proficiently enough.</p> <p>I have a templa...
3
3,507
Not able to download truffle
<p>I am trying to download truffle by typing &quot;npm install -g truffle&quot; on windows 10 with the visual studio terminal but i dont know why i get these messages. I already have installed NodeJS.</p> <p>I apologise for my bad english.</p> <pre><code>PS C:\Users\lucae\Desktop\aaa&gt; npm install -g truffle </cod...
3
3,745
The picture in the imageView does not change when the picture changes in the firebase database and storage
<p>What should I do if everything changes when changing the photo in the database, but for some reason it is not displayed in the image view, I use the firebase database, that is, when I register and put a profile photo, everything is fine, it is displayed both in the database and in the imageview, but when I try to ch...
3
14,062
How to make a tree command using Python3's argparse library?
<p>I do not find a way to create this kind of arguments structure with the <code>argparse</code> package:</p> <p>$ python3 prog.py [<b>A (a1 VAR | a2 | a3)</b> | B | C c]</p> <p>I would like A to be a root for a sub-commands family, in my case a blacklist (./prog blacklist [add PATH | rm | ...]), but I also need two ...
3
1,595
Creating URL to prefiltered image gallery (without success)
<p>I'm using this wordpress plugin to create an image gallery with buttoms filters (based on categories) - Here the gallery: <a href="http://185.56.87.172/~canaryfi/locations-all/" rel="nofollow noreferrer">http://185.56.87.172/~canaryfi/locations-all/</a></p> <p>The gallery works awesome, when you click on a button, ...
3
5,221
Suggestions Chips not showing consistently
<p>I was following a <a href="https://codelabs.developers.google.com/codelabs/actions-2/index.html#4" rel="nofollow noreferrer">Codelabs tutorial to build Actions for Google Assistant</a> but, <em>some</em> suggestion chips are not showing up.</p> <p>I implement suggestion chips for multiple intents. In order of the c...
3
2,699
How can I avoid sum multiple times while using join
<p>I am now using the mssql with its sample database "adventureworks 2014", here I faced some problems with join and sum, here is the two table I used:</p> <pre><code>PurchaseOrderHeader: PurchaseOrderID VendorID OrderDate TotalDue 1 1580 2011-04-16 00:00:00.000 222.1492 2 ...
3
2,562
Not able to run an Azure Web Job Error: Microsoft.IdentityModel.SecurityTokenService.RequestFailedException: Token request failed
<p>We have an Azure Web Job that runs weekly. But of late it has not been running. When we checked the logs this is what we get</p> <pre><code> [04/28/2017 16:32:38 &gt; e85929: SYS INFO] Status changed to Initializing [04/28/2017 16:32:40 &gt; e85929: SYS INFO] Run script 'EmailSchedulerJob.exe' with script host...
3
3,763
Reading csv using pandas. Reassigning values 1 to 40 for soil types, and 1 to 7 for forest cover types
<p>In the csv input file there are 56 columns below. The sample data is as shown below. Please bear with my formatting.</p> <pre><code>Id,Elevation,Aspect,Slope,Horizontal_Distance_To_Hydrology,Vertical_Distance_To_Hydrology,Horizontal_Distance_To_Roadways,Hillshade_9am,Hillshade_Noon,Hillshade_3pm,Horizontal_Distance...
3
2,499
Active Admin won't install: superclass mismatch for class StringIO (TypeError)
<p>I was recently trying to install Active Admin but it keeps producing this error below. I have added activeadmin, devise, draper, cancancan, and pundit to the gemfile. For reference, I am trying to install Active Admin on a basic blog app for ruby on rails (<a href="https://guides.rubyonrails.org/getting_started.html...
3
3,243
CSS3 transition affecting other elements
<p>I created a simple sidenav for a website that shows and hides itself when clicking the menu icon. I added a transition effect so it will show and hide smoothly. For some weird reason, once I added the trasition, the sidebar's menu text act very funny, it gets bigger and smaller during the transition.</p> <p><a href...
3
2,596
Dynamically created User Control detecting button click from main Form
<p>I have been trying to figure this out for the better part of two days and have searched everywhere to find a solution, so if this is easily answered I apologize up front. Also, I am fairly new to c# and programming in general.</p> <p>I have a <a href="/questions/tagged/form" class="post-tag" title="show questions t...
3
2,107
HTML/JavaScript Redirect
<p>I have this code where i want to redirect the same page to a new html page but i cant just do it. The code is for form The html page is with me please help</p> <pre><code>&lt;form class="white-pink" align="center" name="myForms" method="post"&gt; &lt;h1&gt;Search Form &lt;span&gt;Pl...
3
1,305
Create New Pandas Column from Groupby and Dividing Other Columns
<p>I have a Dataframe <code>df</code> like:</p> <pre><code> Name Date Item Quantity Unit_Cost Value 0 Clay 2018_Q1 AA 9 8.97 80.73 1 Clay 2018_Q1 BB 3 12.34 37.02 2 Clay 2018_Q1 CC 4 1.40 5.60 3 Clay 2018_Q1 DD 7 0.22 1.54 4 ...
3
1,741
Unable to scroll RecyclerView inside NestedScrollView inside BottomSheetBehavior
<p>The problem is whenever i try to scroll <code>RecyclerView</code>, <code>BottomSheet</code> scrolls</p> <p><strong>Main Layout</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
3
1,763
Spring context initialization fail by GraphDatabaseFactory ClassNotFoundException
<p>I'm trying to create a spring-mvc project that does simple crud operations on neo4j database by using this <a href="http://krams915.blogspot.com.tr/2012/03/spring-mvc-31-implement-crud-with_3045.html" rel="nofollow">tutorial</a> :</p> <p>And i'm getting this console output while trying to start project. You can fi...
3
8,864
Swiftmailer works but page is not shown
<p>I have PHP send me an e-mail with swiftmailer when somebody fills in a form.</p> <p>When I exclude the code of swiftmailer, and execute the form, I get my confirmationpage.</p> <p>When I include the code of swiftmailer, the mail gets sent, but I don't get my confirmationpage. It just stays on the page of the form ...
3
3,143
my guestbook will not display the posts i enter
<p>I want to thank you in advance for helping me with my related issue. The thing is my guestbook is getting the data into the database so it is connecting but when i hit submit the data goes to the database but does not display i am not sure as this maybe be a version conflict. I was watching YouTube in creating this ...
3
1,613
Unable to solve error of Springboot gradle - required a bean of type 'com.myapp.services.UserDetailRepository' that could not be found
<p>I am getting this error when i use <code>@Autowired</code> for my <code>JPA repository interface</code>. I have seen this when i changed to <code>Gradle</code> from <code>Maven</code>. </p> <p>I used <code>@ComponentScan</code> on my Main class but no luck. Why it is failing in Gradle. </p> <p><strong>Error Descri...
3
1,733
Unable to link Blog Posts to Specific Category Django
<p>I used Tango with Django to create a database containing categories, and I used the Django Girls tutorial to add a blog to the database. Both are working fine, but I have been having trouble linking each blog post to its respective category. Right now, all posts go to my post_list.html page.</p> <p>If I were doing ...
3
1,490
Cannot deserialize the current JSON object to GenericList
<p>I have recently finished writing up a proof of concept on a rather extensive REST API to support our legacy data components. However I've found that it's been running quite slowly when processing larger data sets (40k+ items). </p> <p>After some researching I found a thread on SO claiming that it could be more effi...
3
1,862
ListView DataBind Sorting Values
<p>I want to have a <code>DropdownMenu</code> from which i can choose how i want to sort my <code>ListView</code>. This is my current code for it :</p> <pre><code>&lt;asp:DropDownList ID="DropDownSelect" runat="server" AutoPostBack="True" OnSelectedIndexChanged="GetProducts"&gt; &lt;asp:ListItem Selected=...
3
2,252
Java myHandler S3 Put Client Timeout in Lambda
<p>Wondering if someone here has some insight. I can't figure out what may be blocking my lambda function from writing to s3, it seems to be timing out. I have given the role for the lambda full s3 access rights but it shouldn't be required because I pass credentials on the classpath.</p> <p>This works locally when I ...
3
2,098
Perform a PCA to check if there's separation between biological replicates of different sexes. How can i do it in this case with the data I have?
<p>I have to identify genes showing sex specific expression in 2 tissues: &quot;pancreas&quot; and &quot;lung&quot;. To do it first of all i need to do a PCA to ascertain whether there is separation between tissues of different sexes (in particular there are 3 individuals of sex 1 and 3 of sex2 for each tissue) I suppo...
3
4,609
Cut the shapes out of the image with EMGU CV
<p>All good times of day!</p> <p>Faced with the following task: you need to find the shapes in the image, cut them out and <strong>save them in jpg or png.</strong></p> <p>Find the shapes worked out (attached the image), but how do I get their extreme coordinates?</p> <p>I find shapes with EMGU CV.</p> <p>I'm taking Im...
3
2,009
Using a random number, and then excluding it from being used again?
<p>I'm trying to use random numbers to access an item in a list, and then once that item has been called it should not be called again. ex: list = [1,2,3,4,5] - I want to be able to pull out each item at random until all have been pulled - without any repeating.</p> <p>below is the actual code in which I tried - and f...
3
1,308
Why does MATLAB piecewise cubic interpolation give diagonalized plot data in 2-D surface plot fits?
<p>Does anyone know why does MATLAB 'piecewise cubic interpolation' gives diagonalized plot data in a 2-D surface plot fit? Attached is a 2-D surface plot (below the code &amp; data) from the code using this cubic fit. As can be seen, peaks in the image/plot are diagonalized at five isolated data points (pointing upper...
3
3,543