title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
C++ File System | <p>I am trying to add these functions.</p>
<pre><code>std::string GetDirectory(std::string path_name) {
boost::filesystem::path path(path_name.c_str());
path_name = path.string();
path_name.erase(
path_name.substr(
path_name.find_last_of(DIRECTORY_SEPARATOR),
path_name.len... | 3 | 1,301 |
CSV file link not getting read by .get in Selenium | <p>I am writing a webscraper that is supposed to scrape all the links that are in a .csv file. When I try to use the .get from Selenium to retrieve the link from the CSV file it doesn't get parsed to the .get and the webpage never gets loaded in the browser. This is my code that I'm having problem with :</p>
<pre><code... | 3 | 1,477 |
ValueError in webscraper: could not convert string to float: '\n €203,88€' | <p>Im trying to make a price alert, every time the price of my desired product drops below 190. I get an email. Problem is, there seems to be an issue with my <code>if(converted_price < 190): </code>. It also gives the message that the () are redundant, but if I remove them, the error message doesn't go away. Im fol... | 3 | 1,111 |
Problem running TestNG project using CMD commands | <p>I have a problem that I have not been able to solve for several days now (I have been through all of Google already)</p>
<p>I try to run my entire project (TestNG) tests through the CMD.
When I run the project with <code>mvn -X package</code> It runs the whole project.
The problem starts when I make a change to my T... | 3 | 2,620 |
Node can´t start react index.js Exit 1 | <p>Today i tried to start my react Project, but i seems like npm cant find my index.js
Yesterday it worked perfectly fine. I already deleted the npm cache and reinstalled the node modules. In my package.json is the right path to the index.js as scripts : start.</p>
<pre><code>npm ERR! code ELIFECYCLE
npm ERR! errno 1
n... | 3 | 2,663 |
How to fix unresponsive external javascript file linked to html | <p>I'm trying to create an interactive time table using HTML and (external) JavaScript for a class project. Despite following the code given by my lecturer, the JavaScript doesn't seem to respond when the radio buttons are clicked on.</p>
<p>This is for a class project to be hosted online. I'm creating the page using ... | 3 | 2,179 |
Android app hangs after subsequent call to startActivityForResult | <p>Not sure if this is know behavior or what, but here's the logical flow:</p>
<ol>
<li>User opens app</li>
<li>Pulls nav drawer out, clicks profile pic to change it</li>
<li>Gallery intent pops up, user picks image, everything works fine</li>
<li>Subsequent attempt to open gallery works fine, upon choosing picture, a... | 3 | 1,596 |
Parse XML stored in internal memory | <p>I have created an XML file called "temp.gpx" in internal storage, and now I want to parse it. I wirte this method to do the parsing and obtaing GPS coordinates and some other stuff. DOCUMENT_START is detected (its Log.d line is written), but then I'm getting an exception, without any clue of which exact line is caus... | 3 | 1,224 |
ggplot2: show legend shape based on graph's type | <p>I have the following tibble data:</p>
<pre><code>d1<-structure(list(Date = structure(c(18413, 18414, 18415, 18416,
18417, 18418, 18419, 18420, 18421, 18422), class = "Date"), F = c(27240.15794,
28169.30859, 29175.23888, 30136.86232, 31124.0537, 32096.49071,
33077.44196, 34053.47994, 35032.35319... | 3 | 2,033 |
how to save a QuanFig obj to png or jpeg file | <p>I am trying to save my Qantfig object to a png file and it does not work.
Here is the function that is creating the QuantFig object and then formatting it.
At the end of the function I try to dump it to a file using Pickle.
But I get an error (an empty png file gets created under the images folder).</p>
<pre><code> ... | 3 | 1,155 |
How to hide particular column in Pivot Table using Apache POI (Java) | <p><a href="https://i.stack.imgur.com/AAvrI.png" rel="nofollow noreferrer">while hiding column in pivot table. text above pivot table also getting removed</a>I want to hide one column in pivot table. If I remove that column then the functionality should not get effected. How can I achieve that functionality by removing... | 3 | 3,991 |
Simple way to plot mean/average ROC curve in R | <p>I am doing molecular docking research by testing 4 different docking techniques. I have 4 data tables: each has columns of Ligand Name, Binding Score, and Whether the compound is active (active = 1, not active = 0). I have plotted ROC curves for each technique on a graph, but I cannot figure out how to plot a "mean"... | 3 | 2,253 |
Action Bar Icon Positioning Android | <p>I have created a custom action bar for my Android App, with the help of the Toolbar class. It still shows the menu button to the left of the action bar, which converts to an arrow when click. I need to keep this icon as I have a side menu.</p>
<p>The problem I have is that the other icons I have, which are defined ... | 3 | 1,895 |
Using div.style.display "block" : "none" to hide/unhide based on 2 checkboxes | <p>I have 2 <code>checkboxes</code> that when clicked should hide/unhide <code>divs</code>.</p>
<ul>
<li>On the initial page load, if <code>fundingAvailable</code> = <code>false</code> the Upload should be hidden. (see image)</li>
</ul>
<p><a href="https://i.stack.imgur.com/ynZBD.png" rel="nofollow noreferrer"><img s... | 3 | 1,428 |
GoogleApiClient onConnected event is not triggered from from stand alone module | <p>I'm new to <code>JAVA</code> and <code>ANDROID</code> and tried to build an app to have the location as per <a href="https://developer.android.com/training/location/retrieve-current.html" rel="nofollow noreferrer">this</a>, so I wrote the below <code>helper</code> code:</p>
<pre><code>package oryx.tecna.locateme;
... | 3 | 1,485 |
Why am I getting space stacking v-for list and a regular a tag? | <p>I'm rendering a list of icon-links, using v-for and right after it adding a few other icon-list items.</p>
<p>Why am I getting space with the items attached at the end?
Obviously, I checked my css and it has no rules for any margin, padding, etc. </p>
<p>As you can see, without v-for, every item in the list have ... | 3 | 1,283 |
What's wrong with my code Data source rejected establishment of connection, message from server: "Too many connections" | <p>I am getting this error from the database</p>
<blockquote>
<p>Data source rejected establishment of connection, message from
server: "Too many connections"</p>
</blockquote>
<p>I am closing my connections properly, I don't know why i am getting this error when my thread pool is only 5 and i think i am closing... | 3 | 1,299 |
Symfony - Payum - Adding funds to user's balance | <p>I have a Symfony 3.4 project, I wanted to integrate PayumBundle for Paypal Express Checkout, What I'm trying to achieve is the following:
A user can add funds to their account using Paypal Express Checkout, once they fill in the amount they wanted to add, I check if the payment went through and I increase the user's... | 3 | 3,965 |
Can't understand GDB backtrace output | <p>I'm trying to debug a deadlock situation. I'm working on a <code>Linux (Debian)</code> machine and using <code>QT Creator</code>. I try debugging using the following <code>GDB</code> command:</p>
<p><code>thread apply all bt</code></p>
<p>The output of this command is:</p>
<pre><code>158thread apply all bt
>&... | 3 | 1,639 |
How can I access an object within another object's method? | <p>I am a (very) amateur Java programmer and I am having some trouble. Essentially, I have 2 classes: A and B, where B extends A.</p>
<p>In A, I have a method defined that creates some ZonedDateTime objects. I know how to create an instance of A in B so that I can execute A's method in B, but the problem lies later on ... | 3 | 1,197 |
Stack C++. One element not displayed | <p>The program reads a text file with the contents</p>
<pre><code>A DPX
A QRT
</code></pre>
<p>Pushes DPX and QRT on stack. But while displaying stack{void show()}, it does not display stack[0]. No idea Why!? It is being pushed onto the stack. element stack[0] diplayed in push() but not in show()</p>
<pre><code>... | 3 | 1,323 |
execjs error on launching Rails application expecting kEND | <p>I created a new Rails project by using the <code>rails new RubyTest</code> command, but it fails with the following error when I run it with <code>rails s</code>.</p>
<pre><code>$ rails s
c:/apps/Ruby187/lib/ruby/gems/1.8/gems/execjs-2.2.2/lib/execjs.rb:2:in `require': c:/apps/Ruby187/lib/ruby/gems/1.8/gems
/execj... | 3 | 2,358 |
Back Button Skipping Page in Ruby on Rails application | <p>I have found many generic posts suggesting this has to do with redirects. I believe this may be due to how I have a form set up. </p>
<p>On the <code>plans.html.erb</code> page I have a form with four submits, each going to the same place with different params: </p>
<pre><code><%= form_with url: :affiliate_sel... | 3 | 1,328 |
Get specific value from a PHP submit button placed in loop | <p>Here is my Html and PHP code, I've commented all the details, I want specific data depending on which button is clicked by the user, but the button is printed in a loop, whenever I try to access it gives the last updated data in submit button. because every time while loop executes, it is obvious to change values of... | 3 | 1,369 |
Setting up solr cloud on two machines | <p>Enviornment - solr-8.9.0, java version "11.0.12" 2021-07-20 LTS, apache-zookeeper-3.6.1-bin/</p>
<p>To set-up solrCloud i have done following steps-</p>
<p>Setting-up Zookeeper on Node 1</p>
<pre><code>a. Go inside <ZK_HOME>/conf directory.
b. Make a copy of zoo_sample.cfg & rename to zoo.cfg (or... | 3 | 1,762 |
I am facing a problem that when I try to link the project to Firebase, I see this error | <pre><code>Performing hot restart...
Syncing files to device Android SDK built for x86...
Restarted application in 5,580ms.
W/DynamiteModule( 8056): Local module descriptor class for providerinstaller not found.
I/example.shopap( 8056): Background young concurrent copying GC freed 34408(1709KB) AllocSpace objects, 0(0B... | 3 | 2,041 |
Double Scrollbars in Tkinter Python | <p>I cannot get x and y scrollbars to work in Tkinter with Python, although I have followed multiple examples:</p>
<ol>
<li><a href="https://stackoverflow.com/questions/31533623/how-to-add-2-scrollbars-with-tkinter-in-python-3-4">How to add 2 scrollbars with tkinter in python 3.4</a></li>
<li><a href="https://stackover... | 3 | 2,980 |
How could I segment a long Bezier cruve and add some control points to the path that I have found to make sure this curve never hit the obstacles? | <p>I'm generating a grid 2D map with 50*50 size with <code>random</code> distribution to the obstacles. These obstacles have different heights according to my <code>drone_flight height = 60</code>. </p>
<p>I'm working on improving a trajectory for multirotor UAV and I need to get a continuous trajectory by using <code... | 3 | 3,824 |
How to fix 'File not found' when using the downloadHandler? | <p>I just started to play around in shiny and made a simple app that reads a CSV file and replaces rows of one column with tokens. I would like the user to be able to download the tokenized data as a CSV file. </p>
<p>To do this I am using the <code>downloadHandler()</code> function. I have been looking in the documen... | 3 | 1,606 |
Drawing multiple connected lines in JApplet by using paintComponent | <p>I am trying to create application where user can draw lines in Canvas. User can select direction from dropdown list and enter length of line. First line starts from center of Canvas, the next one starts where the previous one ended and so on - user can draw multiple lines one by one and all lines are connected.</p>
... | 3 | 1,823 |
How to save and retrive Pandas dataframes with hierarchichal indexing? | <p>I need to created and save a Pandas dataframe with hierarchical indexing. In the following I create two dataframes, and then concatenate them to create a new dataframe with hierarchical index. </p>
<pre><code>data1 = np.random.rand(5,5)
data2 = np.random.rand(5,5)
df1 = pd.DataFrame(data1, columns = ['a', 'b', 'c',... | 3 | 1,300 |
Could not find BaseGameUtils.apk, Failed resolution of: Landroid/support/v4/util/ArrayMap | <p>I'm following this tutorial to add google play services into my LibGDX game:
<a href="http://fortheloss.org/tutorial-set-up-google-services-with-libgdx/" rel="nofollow noreferrer">http://fortheloss.org/tutorial-set-up-google-services-with-libgdx/</a> - After doing all the steps, I tried to test the game, but it doe... | 3 | 2,259 |
Xamarin.Forms setting IsEnable to true not working | <p>I am using Xamarin.Forms and I am trying to use disable a button and then enable it when the button action is finished, when I disable it, the button does in fact become disabled, but when I enable it, its still disabled, what am I doing wrong? Here is my full method:</p>
<pre><code>private void OnCameraScan(object... | 3 | 1,496 |
Hive windowing in sub-query and outer query on DATE | <pre><code>CREATE TABLE big_hive_table(
`partner` string,
start_date date,
end_date date,
`category` string,
`category2` string);
insert into big_hive_table values ('S1','2018-01-01','2018-03-31','c1','M');
insert into big_hive_table values ('S1','2017-12-01','2018-01-31','c1','M');
insert into big_hive_table values (... | 3 | 1,147 |
UE4 and Azure storage sdk | <p>I am trying to use Azure storage sdk C++ library with Unreal Engine 4 to upload images to the Azure cloud. Library is built with vcpkg and dlls are linked dynamically. Here is a simplified example of the code I use.</p>
<pre><code>THIRD_PARTY_INCLUDES_START
#pragma warning(disable:4668)
#pragma warning(disable:400... | 3 | 2,306 |
How to overload function in TypeScript with optional parameters? | <p>I have the following code that is partly converted to TypeScript (from JavaScript).</p>
<p>Basically if a <code>callback</code> parameter exists, I always want the function itself to return <code>void</code>. Otherwise, return type <code>Promise<object></code>. With an optional parameter (<code>settings</code... | 3 | 1,098 |
When i try to open new activity this is = null when using dagger 2 | <p><strong>this is my mvp module</strong></p>
<pre><code>@Module
public class LoginModule {
@Provides
public LoginPresenterImpl providePresenter(LoginView loginView , LoginInteractor loginInteractor) {
return new LoginPresenterImpl(loginView,loginInteractor);
}
@Provides
public LoginView... | 3 | 2,015 |
Compiles using clang, but not g++5 - ld: symbol(s) not found for architecture x86_64 | <p>I have an OpenCV program that compiles using clang without and errors, I am looking to try and compile this program using g++5 however I am getting the following error:</p>
<pre><code>ld: symbol(s) not found for architecture x86_64
</code></pre>
<p>The command I am using when trying to build the file is:</p>
<pre... | 3 | 3,013 |
Saving dates from DatePicker in cookies and sending date to Datatable | <p>As my dev is not available I'm trying to progress with my little JQuery knowledge in my project but I'm facing a blocker. I'm trying to create a cookie that will save the date range selected by the user in datepicker and make the report available in datatable when the user refreshes or return to the page.</p>
<p>Al... | 3 | 1,632 |
Smarty automatic generate HTML table | <p>I tried to make HTML table with Smarty but I can't. I have array (PHP) that look something like that (raw after print_r):</p>
<pre><code>Array (
[1] => Array (
[1] => Array (
[New York] => Array (
[0] => Array (
... | 3 | 1,243 |
How to repeat XAML elements with Powershell | <p>I have a piece of Poweshell code with XAML and I'm stuck on repeating some XAML items #n of times.</p>
<p>The $domainlist is filled trough the CollectDomains function, this function extracts two items (Hostname and Domainname) from a Excel sheet. The function retuns a list of unique domainnames.</p>
<pre><code>for... | 3 | 4,044 |
How to bind data from Dictionary to xaml and use selected object | <h2>CategoriesView.xaml</h2>
<pre><code><local:AllViewBase x:Class="Test.View.Tab.CategoriesView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compati... | 3 | 2,223 |
Right call order for Boostrap and JQuery when using collapsibles | <p>I am having the weirdest problem and cannot figure it out. I am working with a series of collapsable buttons in bootstrap and everything seems to work fine if I call boostrap before jquery:</p>
<pre><code><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<scr... | 3 | 1,142 |
Scipy Sparse Matrices - Inconsistent Sums | <p>I have a sparse matrix that I arrived at through a complicated bunch of calculations which I cannot reproduce here. I will try to find a simpler example of this.</p>
<p>For now, does anyone know how it might be (even remotely) possible that I could have a sparse matrix <code>X</code> with the property that:</p>
<p... | 3 | 1,141 |
Autocomplete Kivy Text Inputs from a Text File | <p><strong>NOTE:</strong> This is my first time I'm using Overflow, so I'm sorry if the format isn't right :p</p>
<p><em><strong>Summary:</strong></em>
Right now my program can save and read information from a Text File thanks to <code>open()</code>
But I don't know how to get Kivy's Text Inputs to autocomplete based o... | 3 | 1,518 |
Add a condition to allow a scan | <p>I want to add a condition in my code and for that, I would like your help.
To explain the purpose of this screen: I have a camera used to scan tickets at an event.
I want to force the user to first choose the event for which he wants to scan the ticket thanks to the implementation of an autocomplete input that I mad... | 3 | 1,954 |
Invalid type cast from 'null' | <p>I am still new to COBOL and have been working on a project for school for almost a week now. I am running OpenCobol 1.1.
When I try to compile it I get this error.</p>
<pre><code>typeck.c:5912: Invalid type cast from 'null'
Tag 1 0 Tag 2 10
Aborting compile of lab4.cob at line 214
</code></pre>
<p>I've been frust... | 3 | 3,681 |
How to get list symbols via keyword? | <p>I have seen on site <a href="https://www.tradingview.com/chart/" rel="nofollow">tradingview.com/chart</a> and I would like create a search bar like search bar in tradingview site. I have tried to get list stock in yahoo finance but I feel it is not enough. Here is my code.</p>
<p>js</p>
<p><div class="snippet" dat... | 3 | 3,339 |
Instances calling method seem to reference same list | <p>I am working through Cravens pygame tutorial and need some clarification.
Here is the code that is causing the issue:
CODE1:</p>
<pre><code>import pygame
import random
# Define some colors
BLACK = ( 0, 0, 0)
WHITE = ( 255, 255, 255)
GREEN = ( 0, 255, 0)
RED = ( 255, 0, 0)
pygame.init()
size = (700, 500)
screen =... | 3 | 1,384 |
In D3, how can I bind two rectangles to the same selection using different data? | <p>I am working with Bill White's Virtual Scrolling class as a basis for my code. It can be seen <a href="http://bl.ocks.org/billdwhite/36d15bc6126e6f6365d0" rel="nofollow">here.</a></p>
<p>I have two sets of data - reference data that I have millions of rows of, and variant data that I only have 9 of. I want to displ... | 3 | 1,413 |
Is there a way to an share address mapping between two unrelated processes on Linux? | <p>I'm assuming if this is possible it would most likely be via <code>mmap</code></p>
<p>My original question was can <code>mmap(</code>) return the same pointer for each user of the same piece of shared memory?
Ultimately an address in each processes address space maps to the same physical memory.
The question is whet... | 3 | 2,189 |
Customer ID null even though there is a sequence | <p>Here are my create tables and I'm using <code>INT</code> datatype for <code>Customer ID</code>, <code>Restaurant ID</code> and <code>Owner ID</code>.</p>
<pre><code>DROP TABLE RESERVATION;
DROP TABLE RESTAURANT;
DROP TABLE CUSTOMER;
DROP TABLE RESTAURANTOwner;
CREATE EXTENSION IF NOT EXISTS citext;
CREATE TABLE CU... | 3 | 1,551 |
Vectorizing: plotting multiple contours with geom_path | <p>I'm writing code to create multiple data sets of contours. My steps are:</p>
<ol>
<li><p>Generate raw data with </p>
<p><code>T<-runif()</code></p></li>
<li><p>Write functions to describe a contour described by parameteric functions:</p>
<ul>
<li><code>x<-function(t)</code></li>
<li><code>y<-function(t)<... | 3 | 1,147 |
Unknown database error | <p>I'm developing a dynamic website. I have two pages , first one called "testcreatorpd1003.php" and the other one "databaseconnectpd1003.php" . Everything was working fine until i found that else part of databaseconnectpd1003.php is executing each time i insert some data.</p>
<p>Following are the codes :<br></p>
<p>... | 3 | 2,366 |
How to insert correct value from DropDownList into Database Table | <p>I have a form where an admin can add a company to a database table called 'Company'</p>
<p>In this form there is a Drop Down list to select whether a company is a Scholarship Company, there are two options 'Yes' and 'No'. I have created a table to pull these options from called 'YesNo'.</p>
<p>When I select Yes in... | 3 | 1,983 |
not sure why join query is returning resultset longer than i'd expect, and taking long to execute | <p>I have reached an impasse with my knowledge regarding mysql joins, and the query I'm trying to execute is taking way too long... Although I'm only a short while into learning mysql on my own, I have put time into reading about the mechanics of indexes and joins, done many google searches and tried a few different qu... | 3 | 1,772 |
Dynamic programming to solve the fibwords problem | <p><strong>Problem Statement:</strong> The Fibonacci word sequence of bit strings is defined as:
<br />F(0) = 0, F(1) = 1 <br />
F(n − 1) + F(n − 2) if n ≥ 2
<br /> For example : F(2) = F(1) + F(0) = 10, F(3) = F(2) + F(1) = 101, etc.
<br />
Given a bit pattern p and a number n, how often does p occur in F(n)?<br />
<s... | 3 | 2,095 |
Using XSLT to calculate start times of a video playlist | <p>I have the following XML representing a list of videos (Titles) and a playlist using these videos (Clock) :</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<myXML>
<Titles>
<Title>
<name>Video1</name>
<duration>200</duration&g... | 3 | 1,477 |
Using Google Coud Run (or any cloud service) with Docker-compose app with simple python script | <p>I have a relatively simple docker application using docker-compose that I would like to deploy. All it contains is a python script that I would like to automatically run every day that doesn't require user input.</p>
<p>I would like to use Google Cloud Run to deploy this application, since it doesn't need to be onli... | 3 | 1,119 |
Linking ports libraries under FreeBSD | <p>I have built some libraries (<code>gtk3</code>, <code>qt5</code>, ...) through the ports collection under <code>FreeBSD 11.2</code>. In order to test them I just built minimal examples. Each time the linker complains about not finding these libraries.</p>
<p>Correct me if I am wrong, but under <code>FreeBSD</code>,... | 3 | 1,512 |
What's wrong whit this php login page? | <p>I am very new to web development, working on a school project right now.
I have a problem with my login code, but I can't figure out what it is.
When I submit the form, the page seems to just reload and no session is being set.</p>
<p>My shortened login page:</p>
<pre><code><?php include "connect.php";
if (iss... | 3 | 1,387 |
Group up over consecutive records, save for the last character | <p>Suppose I have a table, which looks like the following:</p>
<pre><code>InventoryVAS colVAS IP
fvas1 5 172.21.4.97
fvas2 6 172.21.4.97
abcd 4 10.4.6.89
ef1 7 169.21.5.67
ef2 8 169.21.5.67
</code></pre>
... | 3 | 1,342 |
Inline login form php in every single page | <p><img src="https://i.stack.imgur.com/XSTqF.png" alt="enter image description here"></p>
<p><img src="https://i.stack.imgur.com/MH8rn.png" alt="enter image description here"></p>
<p>So I'm trying to do a login section in every single page of my web app
it looks like the attached pictures, but I'm having a hard time... | 3 | 2,317 |
unresolved external errors | <p>I have the following .h and .cpp files</p>
<p>If i have to I will include the full codes of the function definitions</p>
<p>When i compile my program i get the errors shown at the end</p>
<p>hash.h</p>
<pre><code> #define BUCKETS 64
#define B_ENTRIES 50000
int curr_tanker;
typedef unsigne... | 3 | 1,172 |
Search Through HABTM Checkbox/List | <p>I have this contact form which also relates to a few other tables with a HABTM relationship. They are displayed in the form either as a list or as checkboxes. What I want is to be able to search through them while still in the form to select those that are applicable to the contact I am adding with the form. I'm not... | 3 | 1,616 |
Bootsrap 5 Getting DIV's (Cols) to Align Start (Stack) on Small Devices and Justify (Inline) on Large Devices within the Navbar? | <p>I'm trying to upgrade to <strong>Bootstrap 5</strong> as it has some great new features, but I am struggling with the responsive aspects and justifying.</p>
<p>I have a design with <strong>7 columns</strong> that should be evenly spaced on desktop, which works fine.</p>
<p><a href="https://i.stack.imgur.com/Vm7SA.pn... | 3 | 1,305 |
Docker + Rails + MySQL = Ignoring environment variables in database.yml | <p>I'm newbie using docker and my issue is to load a Rails 4 application using MySQL and Docker with environment variables. </p>
<p>Basically, I build the app and run it. In another terminal I create mysql database and user/password to be used by the database.yml. Here are the steps that I run:</p>
<pre><code>$ docke... | 3 | 1,225 |
How would i change the display of the arrays from numbers to strings C++ | <p>it is precoded and is an assignment i cant figure it out without changing most of the code any help would be appreciated thank you. when you run the program its like farmville and the code will display the "land" as 0 1 2 3 4 5 6 one of those the assignment is to change those 0 1 2 ect.. to be be able to say "unplow... | 3 | 2,492 |
Storing numbers in Core data being reset when saving another page | <p>I am storing numbers in Core data that are added in by the user, these are saving fine when I do it, even when I turn the page it saves when I go back to it. But when I save data on another page and then go back it resets all the numbers to 0. </p>
<p>below is my code.</p>
<pre><code>func saveStats() {
... | 3 | 1,594 |
Java Nimbus Look and Feel per component customization ("Nimbus.Overrides") - other instances affected too | <p>I am new to <strong>Java Nimbus Look and Feel</strong>. I am trying to use the ability of Nimbus to <strong>customize individual component instances</strong> using <code>putClientProperty("Nimbus.Overrides", overrides)</code>: <a href="https://docs.oracle.com/javase/8/docs/api/javax/swing/plaf/nimbus/package-summary... | 3 | 1,652 |
Separate and re-position an element? | <p>I added the text "MENY" next to toggle (nav-trigger). However I don't like the positioning of >MENY<, formatting/style is alright but the text needs to be more in the middle in relation to the toggle icon. They're stuck together as it is now. How do I separate them so I can adjust (raise(lower)) the text "MENY"? ... | 3 | 2,554 |
How to enable LLSEC in Contiki / Cooja simulator? | <p>I'm trying to encrypt my "hello" messages in a simulation in Contiki 3.0</p>
<p>I'm doing the software implementation of LLSEC (link-layer security) layer as advised in <a href="https://stackoverflow.com/questions/37382634/how-to-enable-message-encryption-in-contiki-cooja-simulator">this</a> question's answers.</p>... | 3 | 1,250 |
Unable to find way to load multiple properties files into corresponding independent java objects using Spring framework | <p>Request you read full question before commenting out anything. It happened in past. Couple of guys commented without going through complete question and description.
I did google and searched for questions on stackoverflow but none of them answers my issue. I know how to load multiple properties file using Environme... | 3 | 1,635 |
React Native Navigator Not Working | <p>I've been struggling with Navigator in React Native Web for a good 2 days now and can't figure out what the problem is. It is worth noting that before attempting to use the Navigator, everything was working fine, and this code is running on a browser. I have the following code below and keep getting the error messag... | 3 | 4,547 |
Using valgrind to find a memory leak in the mysql c++ client | <p>I'm using valgrind to try and track down a memory leak is the mysql c++ client distributed from mysql.</p>
<p>In both the examples (resultset.cpp) and my own program, there is a single 56 byte block that is not freed. In my own program, I've traced the leak to a call to the mysql client.</p>
<p>Here are the result... | 3 | 1,177 |
How to copy SQL table data without duplicates? | <p>I have a table called <strong>MovementEntry</strong></p>
<p>Sample Data:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Id</th>
<th>Quantity</th>
<th>Price</th>
<th>EntrySort</th>
<th>Product</th>
<th>Movement</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>80</td>
<td>8$</td>
<td>Light... | 3 | 1,306 |
Error convert MobileFaceNets_TF pretrained pb file to tflite | <p>I use the project of <a href="https://github.com/sirius-ai/MobileFaceNet_TF" rel="nofollow noreferrer">MobileFaceNet_TF</a></p>
<p>The project has pretrained model in the path of <a href="https://github.com/sirius-ai/MobileFaceNet_TF/tree/master/arch/pretrained_model" rel="nofollow noreferrer">arch/pretrained_model... | 3 | 6,583 |
Disable NVDA from reading 'clickable' for series highchart | <p>How can I prevent NVDA screen reader from reading 'clickable' for series Highcharts? The series values are wrapped inside a "tspan" tag and don't have any click event associated with it. Thanks for the help in advance.</p>
<p><a href="https://i.stack.imgur.com/Fyarv.png" rel="nofollow noreferrer"><img src="https://... | 3 | 10,373 |
Java -jar main-jar.jar throwing "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger" | <p>xml its throwing different errors when I am trying to execute like"java -jar main-jar.jar UAT"it is throwing error logger error(Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger).
And also find the logger java file line number.</p>
<pre><code>Exception in thread "main" java.lang.NoC... | 3 | 18,946 |
buffer getting fully filled before consuming | <pre><code>import java.awt.List;
import java.util.ArrayList;
import java.util.Random;enter code here
public class shared {
private int [] buffer;
private int capacity;
Object lock;//=new Object();
int count=0;
int i,j;
//int i=0,j=0;
public shared(int capacity){
this.capacity = capacity;
buffer = new int[capa... | 3 | 1,200 |
Passing Parameters to ReportView using C#? | <p>Everything ok?
I have a mission today, I never did something like this before.
Well...
I have a ReportView in my Project:</p>
<p>See him Codebehind:</p>
<pre><code>private Customers GetData()
{
string conString = ConfigurationManager.ConnectionStrings["SCBRConnectionString"].ConnectionString;
... | 3 | 1,058 |
Generate HTML like treegrid from XML with XSLT transformations | <p>I have to create html that looks like treegrid from a given XML.</p>
<p>Example of treegrid:
<a href="http://dhtmlx.com/docs/products/dhtmlxTreeGrid/index.shtml" rel="nofollow">TreeGrid</a></p>
<p>My xslt is almost done, i just need to apply some margins to look like there are levels.</p>
<p>The XML is:</p>
<pre... | 3 | 7,782 |
Android: AlarmManager on firing correct alarms | <p><strong>ALREADY ANSWERED, FOR THOSE WHO HAVE THE SAME PROBLEM PLEASE REFERE TO THE BOTTOM OF THIS POST</strong></p>
<hr>
<p>I have this part on my app which schedules an alarm, all was working well, it scheduled the alarm correctly but there is a erratic behavior wherein sometimes, when the alarm scheduled is fire... | 3 | 2,063 |
Format-Table separator | <p>By default, PowerShell's Format-Table uses a single space character as a column separator. Depending on the data, it can result in somewhat of a jumbled mess.</p>
<p>Is there a way to override that behavior (globally or on a case-by-case basis) and, for example, separate columns with three spaces instead of one?</p... | 3 | 1,025 |
Group several table columns and overflow to left | <p>I want to display a kind of competitions results table. Each row has a participant name, followed by several cells representing participant results in last competitions (say, the competitions take place once per week). Something like this:</p>
<pre><code>User name Aug 1 Aug 8 Aug 15
John Doe 1 10 ... | 3 | 1,396 |
How to correctly setup a CSS hover overlay image side by side | <p>I want to create a CSS hover images side by side, except when you scroll over one it shows text on top of the other. I partially got it to work except I am dealing with a z-index problem. If I roll over the left image, it shows the hover for the right image. I tried playing with the z-index but I couldn't get it to ... | 3 | 1,745 |
Change TextBox Template without losing classic behavior | <p>I've create a custom control which inherit from WPF TextBox.</p>
<p>My Control Template simply add a small button on textbox in order to delete its text quicker.</p>
<p>However, I've noticed that when my textBox got the focus, its border doesn't change (blue color) as is the case for classic textbox. </p>
<p>I wo... | 3 | 1,207 |
Failed creating starting window on Android device | <p>I have been getting this error for a week and I have no idea that caused this error. The game works on unity editor with no problem. As soon as Unity builds and runs the game on the Android device, the game crashes with this log.</p>
<pre><code>03-26 19:14:40.070 815-931/? W/WindowManager: Token{44bfbbb8 ActivityRe... | 3 | 2,862 |
Google re-captcha not working in existing php form | <p>Please be patient, I'm new at this. :) I can't seem to get Google re-captcha to work in my existing php form - see below. I am sure I need to remove or add code. Also, I'd like the re-captcha to validate before submitting to my email. Thank you so much. </p>
<pre><code><?php
if(isset($_POST['g-recaptcha-respons... | 3 | 1,791 |
Cloning an object and saving the clone to db causes the original object to lose relational data | <p>When I'm trying to clone a <code>Product</code>-object and save the clone to the database, the original object loses all it's relational data, such as <code>ProductPropertyOptionForProducts</code>, <code>IdentifierForProducts</code> and <code>InCategories</code>.</p>
<p>This is the Product model:</p>
<pre><code>pu... | 3 | 2,921 |
Cant remove tr elements inside of table with index | <p>I am trying to create a table, where I input elements from object.
There are limited number of elements, that can be rendered on the page. So in order to see more, you will click on next/ previous, to see other "page".</p>
<p>The problem is, that I want to remove the indexes, that are not to be displayed.<... | 3 | 1,097 |
How to avoid deadlock inside a class running by concurrent.futures | <p>I have a class that's doing some I/O bound tasks which I decided to make faster by using python concurrent.
So without further talking the important code parts are (Removed the unnecessary parts):</p>
<pre><code>class toolbox:
def __init__(self, username, password, fid, settings):
#...
self.acces... | 3 | 2,451 |
Failed to load the component rasa | <p>I am using rasa as a python library. Here is my directory structure</p>
<pre><code>chat-bot/
bots/
models/
rasa/
my-model.tar.gz
rasa_bot.py
projects/
rasa/
actions/
components/
data_processing.py
data/
nlu.yml
stories.yml
config... | 3 | 1,141 |
Dynamic datagrid View Updation | <p>Hey Everyone I am new in WPF trying to learn few things.
In dataGrid My grid is not getting updated when I update my dataList
my XAML is:</p>
<pre><code><Window x:Class="DataGrid.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/wi... | 3 | 3,524 |
Combining two or more arrays in Javascript | <p>I currently have an Javascript array of unknown length, containing arrays (of unknown length) of strings. I'm looking for a way to find every possible combination, using one string from every second level array. Note: order of the strings do not matter. That is, for:</p>
<pre><code>[
[
'a',
'b'
... | 3 | 1,171 |
Possible memory leak valgrind c | <p>I have just started using valgrind and am not very good with pointers so what I essentially want to do is pass the snake_thread s[1] variable as reference to all the functions so that I don't have to free the memory in each of the functions individually.</p>
<pre><code>==20== HEAP SUMMARY:
==20== in use at exit:... | 3 | 3,732 |
PATCH of contact in beta API bug with "otherLabel" field | <p>when using the <strong>beta</strong> api calling <code>PATCH https://graph.microsoft.com/beta/me/contacts/{id}</code> and using the <code>typedEmailAddress</code> type with <code>otherLabel</code> field for custom labels results in the custom label being applied <strong>to the wrong email address</strong>:</p>
<ol>
... | 3 | 1,925 |
create sql expression in R for certain condition | <p>I get the data from the sql server to perform regression analysis, and then the regression results i return back to another sql table.</p>
<pre><code>library("RODBC")
library(sqldf)
dbHandle <- odbcDriverConnect("driver={SQL Server};server=MYSERVER;database=MYBASE;trusted_connection=true")
sql <-
"selec... | 3 | 2,167 |
I can’t use cordova plugins | <p>I want to use <code>$cordovaContacts</code>.
I created an app with ionic. Then I copied '<code>ng-cordova.min.js</code>' to '<code>www</code>' folder. And I called it in my 'index.html'.
Then I copied <code>http://ngcordova.com/docs/plugins/contacts/</code> to my controller js file.</p>
<p>Then I copied this code t... | 3 | 1,298 |
Javascript code inefficiency | <p>So im making a website and the buttons that are on the side i want to overlap on each other as they scroll. i managed to get this to work but my javascript code is very long and i cant figure out how else i would go about doing it does anyone else have any way of doing it and can you provide an example here it is an... | 3 | 1,371 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.