title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to setup VS Code for Building, Running and Debugging simple C++ files in OSX? | <p>The closest similar answer I found for it is <a href="https://stackoverflow.com/questions/44377981/vs-code-setup-for-c">here</a></p>
<p>But that doesn't contain an answer to my question. I also went through the <a href="https://code.visualstudio.com/docs/languages/cpp" rel="nofollow noreferrer">docs</a> for trying ... | 2 | 1,392 |
Doesn't index or extract the Document (.pdf .doc) from Remotely | <p>I am using Solr 3.1, Apache Tika 0.9 and Solrnet 0.3.1 to index the
docuent like a .doc and .pdf file.</p>
<p>I have successfully index and extract document on locally using this
code</p>
<pre><code>Startup.Init<Article>("http://k9server:8080/solr");
ISolrOperations<Article> solr = ServiceLocat... | 2 | 4,103 |
Incorrect behaviour of poll system call in linux | <p>While using poll system call i found a stange behaviour.
I have the following code snippet.</p>
<pre><code>struct pollfd myPollfds[nCount];
ACE_Time_Value selectTime;
selectTime.set(60);
myPollfds[0].fd = rtrrmEvent[0];
myPollfds[0].events = POLLIN | POLLRDHUP | POLLHUP | POLLERR;
myPollfds[0].revents = ... | 2 | 1,753 |
Getting null pointer exception when running saveAsNewAPIHadoopDataset in scala spark2 to hbase | <p>I am saving a puts RDD to Hbase using saveAsNewAPIHadoopDataset. Below is my job creation and submition. </p>
<pre><code> val outputTableName = "test3"
val conf2 = HBaseConfiguration.create()
conf2.set("hbase.zookeeper.quorum", "xx.xx.xx.xx")
conf2.set("hbase.mapred.outputtable", outputTableName)
... | 2 | 1,413 |
Rails routing to the wrong controller action | <p>Here is the output of 'rake routes'</p>
<pre><code>$ rake routes
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format) devi... | 2 | 1,387 |
Rails 4 - Devise Omniauth (multiple strategies) | <p>I'm trying to make an app in Rails 4. I have been trying for the last 3 years (except for 10 days), to get devise to work.</p>
<p>I'm trying to follow this tutorial: <a href="http://sourcey.com/rails-4-omniauth-using-devise-with-twitter-facebook-and-linkedin/">http://sourcey.com/rails-4-omniauth-using-devise-with-... | 2 | 5,549 |
How to fix "Microsoft.Azure.KeyVault.Models.KeyVaultErrorException: 'Operation returned an invalid status code 'NotFound''" | <p>I am trying to get the values from my Azure Key vault in ASP.net 5 Web API application. But faced with this issue.</p>
<p><a href="https://i.stack.imgur.com/QqVNS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QqVNS.png" alt="enter image description here" /></a></p>
<p>I have added this code in P... | 2 | 1,056 |
WordPress Multisite directory nginx config | <p>I am trying to setup WordPress Multisite with subdirectories behind nginx.</p>
<p>Initially my WordPress was hosted at <code>https://example.com/wordpress</code>, and now I am moving it to Multisite.</p>
<p><code>wp-config.php</code> seems fine:</p>
<pre><code>define('WP_DEBUG', false);
define( 'WP_ALLOW_MULTISIT... | 2 | 1,142 |
Wrong array detail in laravel | <p>I want get my product conditions as array in order to add them in cart, this is <code>dd</code> of my product when I try to add it in my cart:</p>
<pre><code>array:6 [▼
"id" => 4
"name" => "product four"
"price" => null
"quantity" => "1"
"attributes" => array:1 [▼
"attr" => array:2 [... | 2 | 1,537 |
Are there any ways to generate Scala code from Protobuf files in a Maven build? | <p>I'm looking for a solution that includes all 3 of these things. Thus far, I've been able to find Maven plugins that will generate Java code from proto files during a build, and command line tools that will generate Scala code from proto files, but nothing that mixes everything together.</p>
<p>The most promising t... | 2 | 1,267 |
Connecting to SQL server using R on Linux Centos 6.6 | <p>Hello I am having difficulty connecting to a SQL server database that a work colleague set up for me. I mostly run R/Rstudio on a Linux Centos 6.6 machine, but sometimes on AWS EC2 instances and my local Windows PC. In the past I have connected to AWS Redshift that was set up by someone else and I was able to esta... | 2 | 2,135 |
facebook login ask for Login Review Permission | <p>I am using facebook sdk for share status on facebook wall.</p>
<p>but I got message while grant permission.</p>
<p>"submit for login review some of the permissions below have not been approved for use by facebook in ios Submit for Review or learn more"</p>
<p>here is my code.</p>
<pre><code> - (IBAction)PostSta... | 2 | 1,425 |
How to speedup Hibernate DML statements for one-to-many associations | <p>I have been trying to optimize a hibernate application and one of the biggest problems I have faced with Hibernates efficiency is its tendency to execute n+1 queries for a simple crud operation with child entities. I have been able to prevent n+1 queries for select operations by using <code>@Fetch(FetchMode.JOIN)</c... | 2 | 1,904 |
how to render google map with dark theme... ? i am using vuejs | <p>i need to render google map with dark theme... when i add json value from mapstyle in my code it will show dark them for 2 seconds,after that it returns to normal map style. below i have given code..</p>
<p>i have given both html and script below... when i run below code dark them will display for 1 or 2 sec again ... | 2 | 5,776 |
Pulling excel rows to display as a grid in tkinter | <p>I am imaging fluorescent cells from a 384-well plate and my software spits out a formatted excel analysis of the data (16 rowsx24 columns of images turns into a list of data, with 2 measurements from each well, ~800 data points). Because there is a lot of manual interaction with the data, I want to automate my work ... | 2 | 1,852 |
Django - how to remove cached results from previous form posts? | <p>I've got a django Form which contains a dictionary of strings. I've given the form a submit button and a preview button. When the preview button is pressed after entering some information, a POST is sent, and the strings in the dictionary are automagically recovered (I assume that it's done using session state or ... | 2 | 1,761 |
table name = null; NullPointerException Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent | <p>I am having a problem with regards to checking records from the table and compare it to the word spoken. I am developing a text twist-like game.</p>
<p>The variable <code>randomWord</code> is the result of the <code>random()</code> method.. The words from the database must be randomized before displaying to user an... | 2 | 1,938 |
How can i peek next token in flex without removing it from buffer | <p>I'm trying to build lexer for some subset of AMPL language.
I need to now what type of symbolic name lexer is dealing right now.
Every symbolic name is var or param or set. Fortunately all of them have to be declared before they are used. So i thought i can use lookahead operator in flex simply changing code in lexe... | 2 | 1,183 |
Bootstrap dropdown-toggle doesn't work with svg wrapped in an object tag | <p>When I put my svg inline in the html and put a dropdown-toggle class in it, it works perfectly.
But when I wrap it with an object tag it shows the svg itself but when I click on it it doesn't show the dropdown menu, or shortly - it doesn't work.</p>
<p>Here is the code that works with the inline svg:</p>
<pre><cod... | 2 | 1,307 |
Android Fragments change | <p>I use Android Studio to build android app.</p>
<p>My problem is: when fragment change, app crash.</p>
<p>Console output
[Console]</p>
<pre><code>01-06 18:35:21.952 27756-27756/pl.example.app E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: pl.example.app, PID: 27756
java.lang.IllegalArgumentException: No... | 2 | 2,380 |
Bind WPF Command to ViewModel property in C# XAML | <p>I'm trying to build a generic <code>Command</code> that can access properties from my <code>ViewModel</code>. On my Window are several <code>TextBoxes</code>, each <code>TextBox</code>has a <code>Button</code> next to it. When the <code>Button</code> is clicked I show an <code>OpenFileDialog</code> and set the <code... | 2 | 1,065 |
Make Tumblr Photo Post Act As Photoset | <p>I am new to Tumblr. I have such problem:</p>
<p>I am using Indy theme. When I post several photos, by clicking it acts like slideshow, I mean it's posted as {block:Photoset}. But when I post one photo, after clicking, it redirects me to another page.</p>
<p>All I want is to make even one photo act as photoset and... | 2 | 1,132 |
AWS Step Functions - How to ignore "ResultSelector" when error is catched? | <p>I have a AWS Step Functions state machine that as first state starts a Lambda function. This function do something then returns a JSON like <code>{ temp_a: "temporary a" }</code>.
This output should be sent to the second state of this state machine but, I don't want to send <code>temp_a</code> as key, rath... | 2 | 1,464 |
Sequelize joining two tables which are not associated | <p>I am trying to retrieve data by joining two tables which are not "associated" using a relationship. These two tables are as below:</p>
<pre><code>mysql> desc partner_txns;
+------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-... | 2 | 2,083 |
Vertical Scroll bar with Horizontal Scroll Android | <p>Running into "unable to scroll" issues</p>
<ul>
<li>I am trying to get a customized vertical scrollbar working with the ability to scroll horizontally. </li>
<li>I am trying to put 7 vertical scrollbars (@+id/verticalSeekbar, @+id/verticalSeekbar_2 etc.) in a horizontal scrollbar. </li>
<li>I am (with the help of s... | 2 | 1,716 |
I am getting a compile time error in android studio when i build the project - error: incompatible types: int cannot be converted to String | <p>I don't have any syntax error. but when i build the program, it shows compilation error as follows :</p>
<pre><code>error: incompatible types: int cannot be converted to String
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
Error:Execution failed for task ':app:compileD... | 2 | 3,562 |
Unresolved reference: Platform, in multiplatform project | <p>I have created a kotlin shared library project (using Android Studio on Windows), the android side of things work fine, but for some reason when writing iOS specific code in Kotlin, I can't seem to import the <code>platform</code> libraries. I was following the instructions from <a href="https://mobiraft.com/android... | 2 | 2,005 |
Spring Data JPA throwing exception | <p>Was using Spring data JPA for curd operations. getting <code>Exception occurred</code> message in the controller. Please find the code below for the same.Also the stack trace attached.</p>
<p>Purchases class :</p>
<pre><code>@Entity
@Table(name="purchases")
public class Purchases {
@Id
@GeneratedValue(str... | 2 | 3,225 |
Spring session jdbc fails to start | <p>I'm trying to configure a database stored session with spring session in a sprinboot application </p>
<p>I have already created tables spring_session and spring_session_attributes, however it fails to start:</p>
<p>These are my properties:</p>
<pre><code>spring.session.jdbc.table-name:SPRING_SESSION
spring.dataso... | 2 | 1,036 |
MySQL Multiple select from same table | <p>I am building a bus reservation system. I am trying to query out a bus based on the trip selected.
I have in the tables Departure and Arrival for storing time.
I need to query out the Departure and the Arrival.</p>
<p>Below is my table schema</p>
<pre><code>CREATE TABLE `bus_details` (
`ID` int(11) NOT NULL,
`... | 2 | 1,143 |
Error occurred while validating the field(s) arch: Invalid XML for View Architecture | <p>I try to create a module in OpenERP 7 , but I have this error "Error occurred while validating the field(s) arch: Invalid XML for View Architecture! "
I spend many hours but i can resolve it.
My code is:</p>
<p><strong>init</strong>.py</p>
<pre><code>import ig_nomfurn
</code></pre>
<p><strong>openerp</strong>.py<... | 2 | 1,210 |
cannot be serialized because it does not have a parameterless constructor soap client php | <p>I attempt to pull data from webservice using php soap client,
but I got soap fault</p>
<pre><code>SoapFault Object (
[message:protected] => Server was unable to process request. ---> There was an error generating the XML document. ---> <>f__AnonymousType2a`2[System.String,System.Object[]] cannot ... | 2 | 2,702 |
Error with CNN + RNN "__init__() takes at least 4 arguments (4 given)" | <p>I recently took a tutorial about Deep learning and I am now trying to creat one by myself. The Idea is to take a video, split it in single frames and feed it through an Neural Network. Because it is jpg i though of an CNN. But I don't categorize this picture, furthermore i wanted to get float values. Thats why i tho... | 2 | 2,268 |
cargo-maven2-plugin:start fails with "Actually there are no valid types registered for this configuration", regardless of what containerId I enter | <p>I'm trying to run integration tests with the <code>cargo-maven2-plugin</code> and Tomcat 8. I want the Maven build to start the container for me, so I have configured the <code>start</code> and <code>stop</code> goals as documented <a href="https://codehaus-cargo.github.io/cargo/Starting+and+stopping+a+container.htm... | 2 | 1,423 |
JFreeChart: how to set gradient paint for series in spider chart | <p>I have a chart with this presentation:</p>
<p><img src="https://i.stack.imgur.com/59AoJ.png" alt="Current chart" /></p>
<p>But I require to do this:</p>
<p><img src="https://i.stack.imgur.com/9TUZx.png" alt="Expected chart" /></p>
<p>How do I set correctly the gradient paint for series?. Here is what I have:</p>
<pr... | 2 | 1,086 |
Slow loading first page - ASP.NET MVC | <p>I used miniprofiler for my page because I think I have big loading time for my first page and some other pages. I am starting with miniprofiler but I think it is very good tool. I have this result:</p>
<ul>
<li><code>http://localhost:50783/</code> 192.2 +0.0<br>
<ul>
<li>Getting articles from database 2.2 ... | 2 | 1,117 |
Tomcat Security Exception: Access denied after SLF4J Migration | <p>I just migrated my applications from Log4J to SLF4J and LOGback. But as soon as I am deploying my application on Tomcat 6, I am facing following security problem. </p>
<p><strong>Possible Solution:</strong>
The only solution I have found, was to set a permitAll in <code>catalina.policy</code>. But I wont do this wh... | 2 | 7,872 |
Unable to Set Variable from within ExpressJS res.locals.connection.query() statement | <p>I am attempting to create a Single Sign-On feature that checks if a user is already provisioned, and either Creates a user or updates the database with the latest information.</p>
<p>I have gotten the update/insert working, but now I am unable to return the users id (uid or UserID), from the query.</p>
<p>I have l... | 2 | 8,309 |
How can you replace an image in a div to text | <p>I am stuck on how I can write a script in JS so when the user clicks on a image it transitions/ turns into text. </p>
<p>I have a divs in a div as i have to use that for a scrolling animation. So when the user scrolls to the icon in which they want to they can click it and it would turn into text, like when i clic... | 2 | 1,454 |
Getting an error on website when multiple users access same page simultaneoulsy | <p>I'm getting the following error message on an ASP.NET 4 website when multiple users access the same page:</p>
<blockquote>
<p>The underlying provider failed to open. at
System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf
etc......</p>
</blockquote>
<p>I use Entity Framework 4 to access the SQL Se... | 2 | 1,125 |
getting error when compiling for modbus rs232 | <p>i am new in java... i am trying to read on modbus. PLC is slave device and it is configured well. my java file is unable to read modbus values.here is the code..given below. error is coming at master.init(); method. please help me in this case. </p>
<pre><code>package com.mod4j;
import java.io.File;
import gnu.i... | 2 | 2,117 |
Upload images with thumbnails to folder and add path to Mysql | <p>I am willing to add or update images with auto thumbnails to folder and add path to MySQL database. I tried this code with this. I am able to upload images to folder and saving path to database but I can't able to generate thumbnails please help me on this. </p>
<pre><code><?php
ob_start();
include('include/con... | 2 | 1,199 |
mutate with ifelse and grepl in R and create new column with matched string | <p>I am trying to create new column with grepl(partial match) and ifelse using mutate.
I have list of drug names with unit and I want to create new column with these units.
Here is my drug name samples,</p>
<pre><code> Description
ZOLEDRONIC ACID INF 4MG/5ML (5ML)
CALCICHEW D3 FORTE CHEWABLE TABS
DAYCASE D... | 2 | 1,128 |
highlight the search text in prime-ng autocomplete | <p>I am using the PrimeNG AutoComplete with angular 7.
In the auto complete I return a list of all the
items that their
description contains the search text.
I would like to highlight matched words in each element of the ... | 2 | 1,254 |
Unable to select Bootstrap dropdown in Java Selenium | <p>I'm having a very difficult time selecting bootstrap dropdown in Selenium. </p>
<p>I'm new to Selenium so any suggestion and guidance would be very helpful, as what I'd love to do is just select the dropdown, type "email", and press enter during the instance. </p>
<p>I've gone through dozens of solutions, but non... | 2 | 4,538 |
Date comparison Iphone | <p>i have a range of weekly dates like example</p>
<p>1-5-2010 to 7-5-2010</p>
<p>i want the only records which are between two dates how can i compare dates?</p>
<p>and how can i get current week dates.. from current dates...?</p>
<p>thnx in advance..</p>
<hr>
<pre><code>//alert handler
#import <Foundation/F... | 2 | 2,792 |
createBlockBlob and commitBlobBlocks create empty files in BlobStorage | <p>I'm developing a web app that can upload large file into the Azure Blob Storage.</p>
<p>As a backend, I am using Windows Azure Mobile Services (the web app will generate contents for mobile devices) in nodeJS.</p>
<p>My client can successfully send chunks of data to the backend, everything looks fine but, at the e... | 2 | 1,780 |
Mocha test drains postgres connection pool | <p>I'm trying to run Mocha tests but I always get the error:</p>
<pre><code>Unhandled rejection Error: pool is draining and cannot accept work
at Pool.acquire (D:\Codes\Node\posgmvc\node_modules\generic-
pool\lib\generic-pool.js:385:11)
at D:\Codes\Node\posgmvc\node_modules\knex\lib\client.js:281:19
at Promise._execut... | 2 | 3,157 |
How to do match multiple nested object in one document with inner hits in elasticsearch | <p>How do I write a query with two search terms which matches nested objects with inner hits highlighted.</p>
<p>Below is the sample usecase:</p>
<p>I have a mapping:</p>
<pre><code>"mappings": {
"properties": {
"grocery_name": {
"type": "text"
... | 2 | 1,734 |
Extra padding when using Optical Bounds in background image | <p>The optical bounds feature introduced in <a href="https://developer.android.com/about/versions/android-4.3.html#UI" rel="nofollow noreferrer">https://developer.android.com/about/versions/android-4.3.html#UI</a> seems to add an additional padding setting to the parent layout.
In the screenshot below, 3 example fragme... | 2 | 1,854 |
Flutter error: Attempt to invoke virtual method 'void com.google.firebase.auth.internal.zzab.zzf(int)' on a null object reference, null | <p>Whenever I'm building my app, my app successfully getting build but at the time of installing that to the device, I'm getting following error & app get crash on the device with a white screen.</p>
<pre><code> Launching lib/main.dart on Pixel 2 XL in debug mode...
Initializing gradle...
Resolving dependencies... | 2 | 2,447 |
Rails - updating a boolean value through a controller | <p>UPDATE: Controller code at the bottom of this question resolves the issue.
I'm struggling to update a boolean confirmed_flag field in rails 3. Background: users can host events and can attend events through the attendances model (HATM).
I have a form_for helper which uses radio buttons to allow a guest to be accepte... | 2 | 1,153 |
What's the right way to use a sparse matrix in scikit? | <p>I'm trying to accomplish a classification task trying to use a sparse matrix. When I pass my training set to the logistic regression function, in scikit, it returns this error:</p>
<pre><code>ValueError: Array contains NaN or infinity.
</code></pre>
<p>The type of the matrix I'm passing as argument to the logistic... | 2 | 1,039 |
Get all include files of a cpp file considering preprocessor defines (fast) | <p>I need a tool (command line, script or source code) that extracts all inlcude files that are included by a source file (recursive) with given preprocessor defines and include paths. I want to know the ones that could be found and the one that doesn't. The include files that could be found shall be recursivly parsed.... | 2 | 1,115 |
How to make background image blur and not the content? | <p>I've tried to implement the blur attribute to the image but it just blurs the body. I'm not sure how to make display it right. Thanks!
Here is the website.</p>
<p><a href="http://79.170.44.80/sicuandomain.com/" rel="nofollow">http://79.170.44.80/sicuandomain.com/</a></p>
<p>Here is the html, and style, php code</p... | 2 | 2,379 |
Some messages are delivered multiple times on activemq + spring boot | <p>For My Application(Spring boot + ActiveMq), if i consume jms messages inside application its consumes only one time when it comes to another application to this application it consumes 7 times, when look into logs stating that redelivercount has increases one by one and upto 7 times.</p>
<p>Is this configuration is... | 2 | 2,920 |
position sidebar in bootstrap | <p>I am trying to get this sidebar in the right handside instead of the lefthandside, what should I do? I have tried almost everything, but I cannot really turn it in my head :-/ Everytime I think I am on the correct track, something is not working. </p>
<p><a href="http://blackrockdigital.github.io/startbootstrap-sim... | 2 | 2,291 |
reorder character class data frame column and plot | <p>I have a data frame that looks like the following:</p>
<pre><code>df <- data.frame(date.time = c("Fri 00:00", "Fri 23:30", "Mon 00:00", "Mon 23:30",
"Sat 00:00", "Sat 23:30", "Sun 00:00", "Sun 23:30",
"Thu 00:00", "Thu 23:30", "Tue 00:00", "Tue 23:3... | 2 | 1,054 |
How do I redirect the url after a state update in a react redux application? | <p>I have a simple react redux application using react-router-redux. I have 2 routes, one is <code>feed</code> the other <code>add</code>. The add view provides a form. On form submission an <code>ADD_STORY</code> action is dispatched and my reducer properly sets a new state with the added story. Problem is I would lik... | 2 | 1,393 |
Point table to another table in Lua | <p>is there any way to point table to another table? for example:</p>
<pre><code>local a = {}
local b = {}
a.name = "Josh"
print(a.name) -- Prints 'Josh'
print(b.name) -- Prints 'Josh' aswell
a.name = "I don't have a name"
print(a.name) -- Print 'I don't have a name'
print(b.name) -- Prints 'I don't have a name' aswel... | 2 | 1,657 |
Why does the validation fail (ExceptionInfo Value does not match schema) for a prismatic schema using onyx? | <p>Can someone throw light on whats going on here ? I have double checked <a href="http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html" rel="nofollow">dynamodb-local</a> behavior using a non-onyxian client and simple operations work using <a href="https://github.com/ptaoussanis/fara... | 2 | 2,718 |
Best method to fill in gaps in a time series in a Mysql query | <p>I need to fill in the gaps of a time series of a mysql query result set. I'm in the process of testing the option of doing an outer join with a helper table that contains all of the data points of the time series (as indicated in this thread: <a href="https://stackoverflow.com/questions/1877874/how-to-fill-date-gaps... | 2 | 1,238 |
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'task:annotation-driven' | <p>I am writing a web application with Spring Framework 4.0.6 and I have to schedule a small routine to run everyday at the same time. I am trying it by using the @Scheduled annotation and adding the tag in my dispatcher-servlet.xml , but I get a SAXParseException when the application starts. My xml file is this:</p>... | 2 | 1,738 |
getServletContext().getRealPath("/") return wrong path | <p>Background:
I want to learn the web development by using Velocity and servlet. I use the <code>getServletContext().getRealPath("/")</code> to find the path of WEB-INF and the .vm file that is stored in /WEB-INF/templates/;</p>
<p>but the path return is : </p>
<pre><code>E:\javaWorkSpcae\.metadata\.plugins\org.ecli... | 2 | 1,145 |
Bootstrap modal from login in php using ajax | <p>I'm trying to create login through php its working in a static page but not in bootstrap modal form .. </p>
<p>if i am entering any data it is showing successful with alert and not verifying my data ! </p>
<p>I have also implemented verification system in login mean login should be only possible after email verifi... | 2 | 3,275 |
Simulate rank in mysql (without rank) with two conditions | <p>Coming from this answer: <a href="https://stackoverflow.com/questions/26613999/rank-based-on-two-columns/26614886#comment95862818_26614886">Rank based on two columns</a></p>
<p>I've the following example:</p>
<pre><code>CREATE TABLE tmpPoradi
(`player` int, `wins` int, `diff` int)
;
INSERT INTO tmpPoradi
... | 2 | 1,322 |
static/js/main.89d5e2e7.chunk.js net::ERR_ABORTED 404 (Not Found) unless I delete docker image before re-building | <p>I am trying to get a production build for a React app using Docker. When I make a change to React, and try to re-build with <code>docker-compose up --build</code>, I get <code>static/js/main.89d5e2e7.chunk.js net::ERR_ABORTED 404 (Not Found)</code>.</p>
<p>However, if I delete the original Docker image before re-bui... | 2 | 1,912 |
Using Enter key to use JButton instead of just mouse click? | <p>How would one bind the "Enter" key on a keyboard to press a JButton? Currently trying to figure this out but have no idea on what to do.</p>
<p>Here is my code for reference. What it's supposed to do is create a guessing game (which it does) but I want to add the ability to press enter to click the "Enter" button (... | 2 | 1,869 |
Trying to print DataGrid View with colored cell backgrounds | <p>I am using a freeware script to print DataGrid View but the problem I am facing is that although I have colored the cells, when I pass my DataGrid to the PrintDGV freeware code, it doesn't print the colors. I am not familiar with VB.NET or DataGrids so this is my first time trying to attempt this. </p>
<p><strong>I... | 2 | 1,163 |
Grails - Cannot get property 'id' on null object | <p>here is i have some problem. </p>
<p>I have 2 domain class and i want to pass some parameter from one to second domain class and save on second. </p>
<p>Here is first domain class Car </p>
<pre><code>package carrentco
class Car {
String brand
String model
String fuelType
BigDecimal pricePerDay
... | 2 | 2,989 |
First-chance exception, Microsoft C++ exception: EEFileLoadException at memory location | <p>I am working on a C++ DLL that is part of a much larger project, the application is written in C#.</p>
<p>Recently I am getting a Microsoft Visual Studio error displayed. I am debugging the project with Visual Studio, I've attached to the process. I have a break point in DllMain, but it crashes before it gets the... | 2 | 1,523 |
HIde a class using media query | <p>What i want to achieve is that when the screen size reaches to the 972px the exit-popup-modal-window should hide.For that i have used media query and at maximum display of 972px and minimum 100px the display is set to none.Still it is not hiding.
please suggest </p>
<p><div class="snippet" data-lang="js" data-hide=... | 2 | 1,333 |
elasticbeanstalk deployment failing with Error response from daemon: | <p>AWS Elastic Beanstalk failing with error response from daemon:</p>
<p>You cannot remove a running container c911e29b2ce2283bae300645bf2f034f7bf51c07b7ec72c6ebfa133d531a6129. </p>
<p>Stop the container before attempting removal or force remove</p>
<p>Error log bellow:</p>
<pre><code>2020/04/26 07:15:31.279931 [... | 2 | 1,287 |
Using default JsonDeserializer inside custom JsonDeserializer in Kotlin | <p>I'm trying to build custom deserializers for the responses I get from <a href="http://www.omdbapi.com/" rel="nofollow noreferrer">OMDb API</a>.</p>
<p>Here's the data class for <code>Movie</code>:</p>
<pre class="lang-kotlin prettyprint-override"><code>data class Movie(
val title: String?,
val year: String... | 2 | 1,359 |
How to run spring batch jobs simultaneously which share same readers and writers instances? | <p>This is how my existing system works.</p>
<p>I have batch written using spring batch which writes messages to queues ASYNCHRONOUSLY. The writers once send certain number of messages to queue, starts listening to LINKED_BLOCKING_QUEUE for same number of messages. </p>
<p>I have spring amqp listeners which consumes ... | 2 | 2,403 |
HTML5 section and article layout for web application | <p>I know this is a common question among web devs and designers today, "when do I use a section or article element?" I have done quite a bot of research about the semantics meanings for each, but i wanted some feedback from stack users.</p>
<p>Currently I am developing an HTML5 web application, dashboard of sorts. Ea... | 2 | 1,843 |
How to remove vim from centos7? | <p>I want re-install vim 8 from source with python suport on centos 7.</p>
<p>First I want to remove old vim, but when I try use <code>sudo yum remove vim</code> get: </p>
<pre><code>Loaded plugins: fastestmirror, langpacks, replace
Repository nodesource is listed more than once in the configuration
Repository nodes... | 2 | 1,541 |
Stackdriver API metrics show many 429 errors, while quota is not exceeded | <p>Earlier this month we've enabled Stackdriver Monitoring in 3 our projects on GCP. </p>
<p>Recently we've found that Stackdriver API metrics show around 85% of errors:</p>
<p><a href="https://i.stack.imgur.com/hDfEE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hDfEE.png" alt="enter image descr... | 2 | 1,053 |
Change Chosen.js CSS with JQuery | <p>First my apologies for not including the code but I am not really sure what all to include since I am using the chosen.js plugin. The issue I am running into is that I want to change the css of a chosen.js select element using jquery. I am able to change the css in the chosen.css file but I am unable to change it ... | 2 | 1,863 |
Deploy to Heroku from Node using React | <p>Can someone help deploy my app to heroku, the code is available here: </p>
<p><a href="https://github.com/b0bbybaldi/hippocrates" rel="nofollow noreferrer">https://github.com/b0bbybaldi/hippocrates</a></p>
<p>Heroku tells me to look into the link below but it is not very helpful...</p>
<p><a href="https://github.... | 2 | 2,854 |
Upload video to server by using Alamofire | <p>I used alamofire to upload the chosen image to the server and It's working but now I don't know how I can make the same thing for the selected video from device after select it and store the path of this video at variable , how I can use alamofire to upload this video to server ?</p>
<p>My code:</p>
<pre><code>imp... | 2 | 2,954 |
Template with constant expression: error C2975 with VC++2008 | <p>I am trying to use elements of meta programming, but hit the wall with the first trial.
I would like to have a comparator structure which can be used as following:</p>
<pre><code>intersect_by<ID>(L1.data, L2.data, "By ID: ");
intersect_by<IDf>(L1.data, L2.data, "By IDf: ");
</code></pre>
<p>Where:</p>
... | 2 | 3,216 |
PHP Codeigniter Multiple Level Switch Statements | <p>I am re-building a website with PHP codeigniter that contains mostly static pages and some dynamic pages interspersed. The problem is, the pages are 1-5 layers deep within the navigation (ex. example.com/about/history/people/person/photos). </p>
<p>I'm not sure how to implement this in the controller. I currently h... | 2 | 1,671 |
Best practice to render Laravel site in other language | <h1>Description</h1>
<p>I have a Laravel site is in English. I want to make it compatible with Dutch also.</p>
<hr />
<p>I start my homepage small, it only contain 3 sentences.</p>
<pre><code><h1 class="heading">My business WiFi</h1>
<p>Management via this page both your <a>private WiF... | 2 | 1,276 |
pom.xml is not able to read properties from external property file | <p>I have a pom.xml and i have defined a property in it which is being referred from an external file - </p>
<p>Please Find my pom.xml below :-</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"... | 2 | 3,961 |
Unmarshall XML String using Java | <p>Hi I am writing a unmarshalling script for an XML response string using java. I have mentioned the xml response, unmarshalling code and the error i received.
Please help in fixing the issue and also advise me on the problem.</p>
<pre><code>JAXBContext jaxbContext = JAXBContext.newInstance(Customer.class);
javax.xml... | 2 | 1,589 |
Stacked-to-Grouped Bars Transition | <p>This example of a stacked-to-grouped bar transition is beautiful. However, it's functioning off of a random number generator and for the life of me, I cannot figure how to replace that with my own data set.</p>
<p><a href="http://bl.ocks.org/mbostock/3943967" rel="nofollow">http://bl.ocks.org/mbostock/3943967</a></... | 2 | 2,328 |
Simple communication via MQTT between node apps | <p>Hi I'm really new to MQTT and I've read a lot of posts and blogs about it the last days, yet I seem not to fully understand the different parts needed, such as Broker, Clients.</p>
<p>I want two node apps to communicate with each other via a local mqtt service. As far as I understand, this mqtt service is called br... | 2 | 1,105 |
Website with nested tables structure: How to remove padding and margin only for the main structure and not for a table inside? | <p>I am working on a website that uses tables for the structure and it is impossible to have access to them and replace then with divs. I have looked at using jquery to remove and replace these tables but for now it would be the last solution...if it was even possible</p>
<p>They come with a default styling that is al... | 2 | 1,155 |
Creating a Electron project with Angular and Knex | <p>Im having problems.</p>
<p>I am trying to create a <a href="https://electronjs.org/" rel="nofollow noreferrer">Electron</a> with <a href="https://angular.io/" rel="nofollow noreferrer">Angular</a> as well as <a href="https://knexjs.org/" rel="nofollow noreferrer">Knex</a> for storage using sqlite3.</p>
<p>I used <... | 2 | 1,175 |
How to copy a canvas to clipboard with enough time to build the canvas? | <p>I have a context menu, in which as User clicks the context menu button I start to render the html using <a href="https://github.com/niklasvh/html2canvas" rel="nofollow noreferrer">html2canvas</a> library, which returns a canvas using promise,</p>
<pre><code> function startCanvas(e) {
CanvasPromise = ... | 2 | 1,782 |
Receiving null values from Dapper QueryAsync returned cursor | <p>I’m having an issue with one of my dapper calls returning a cursor with all of the column data as <code>null</code>.</p>
<p>We have several calls that look identical to this one, which return a list of the provided model. I'm still getting familiar with C#, .Net, and Dapper, so there could be something simple that ... | 2 | 1,300 |
How do I pass a value from js to python? | <p>There are buttons for selecting relief and background in The a-frame window. You must pass the values of the JS variable to the python variable to save to the database. How to pass value to django from JS code of button selection?</p>
<p>May is variable, <code>skyEl.setAttribute ('src', '#blank')</code> assign Pyth... | 2 | 4,691 |
How to link a library (SDL 2) to C++ project using VSCode and CMake (Windows) | <p>Here is the thing: I want to use SDL for a project, but being new to creating c++ projects from scratch, there is no way to link this library to my project. This is caused by my lack of knowledge about CMake and the tasks.json and CMakeLists.txt files.</p>
<p>What I have right now, after several hours of googling</... | 2 | 2,260 |
Repeat JavaScript AJAX request until status change | <p>I am using AJAX to make and retrieve an API call from PHP file and then using jQuery IF statements to display certain data.</p>
<p>The data returned come with a few different statuses, E.g.: "Ready", "In progress", "DNS" and "Error". Each status has a message that comes with it.</p>
<p>For one particular status, "... | 2 | 2,476 |
How to get a modal when a checkbox is selected? | <p>Here are my codes</p>
<p><strong>ex1.php</strong></p>
<pre><code><body>
<form>
<label>
<input type="checkbox" value="LH" name="name">LH</label>
<label>
<input type="checkbox" value="LJ" name="name">LJ</label>
<label>
<input type="checkbox... | 2 | 1,335 |
Delete files from server and database (PHP) | <p>I have a very basic file uploading page.
If you are logged in, you see a page (myFiles.php) where I have a table of files uploaded by the user that's logged in + a delete button for each row. I get the user files from my database, where I have a table Uploads(filename, extension, filemtime, username) with this code... | 2 | 1,095 |
Text to speak causing application to crash (Android studio) | <p>I'm guessing it's an error with the initiation/construction, but the parameters seem to be the correct ones and I can't find any other issues. Here's the entire activity code. The text to speech methods and the method that calls it are at the very bottom, and the oninit method is soon after the on create. When ran, ... | 2 | 4,982 |
Uploading blob files/images into Mysql | <p>I had this php code that take values from an html form (name, file, photo, address,.....), and try to insert or update them in sql database.</p>
<pre><code><?php
$host="localhost"; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name=""; // Database name
$tbl_name=""; // Tab... | 2 | 2,131 |
How to display differences in prices using switch statements in C++ | <p>For a class project I have to develop a program that calculates the cost of a mobile device service. There are 3 packages the user can choose from. The cost of the service is determined by the base price and number of message units to be used. After the user chooses a package I have to let them know the price of the... | 2 | 1,301 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.