title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
std::atomic | compare_exchange_weak vs. compare_exchange_strong | <p>I'm unsure if it's me not understanding or the documentation isn't clearly formulated.</p>
<p>The following excerpt has been taken from the newest draft (N3126, section 29.6):</p>
<pre><code>bool atomic_compare_exchange_weak(volatile A* object, C * expected, C desired);
bool atomic_compare_exchange_weak(A* object,... | 0 | 1,230 |
How to align bootstrap navbar to bottom of div | <p>I have a basic bootstrap based layout I'm working on. I placed a logo image in the navbar brand element. The logo is roughly 140px high. I then have a navbar-right menu element that I would like to anchor to the bottom of the navbar itself. I've experimented with vertical-align on the navbar-right but it doesn't hav... | 0 | 1,452 |
how to make jtextfield text disappear when tabbed into (Netbeans) | <p>I'm working on a gui that has multiple textfields that the user enters data into. When the program opens, I have the instructions for what the user is supposed to enter into the textfield set as the "text". I have it set to when user clicks textfield, the text will disappear, but I can't figure out how to get it t... | 0 | 12,280 |
A circular reference was detected while serializing an object of type 'System.Reflection | <p>I have an asp.net MVC 3 controller action method like this:</p>
<pre><code>public JsonResult GetRecordingRates(int Id)
{
List<DefaultRateChart> defaultRateCharts = new List<DefaultRateChart>();
using (IDefaultRateChartManager defaultRateChartManager = new ManagerFactory().GetDefaultR... | 0 | 1,496 |
WPF GroupBox HeaderTemplate and DataBinding | <p>I define a headertemplate into a wpf groupbox and the databinding doesn't work. I don't understand why.</p>
<pre><code><GroupBox>
<GroupBox.HeaderTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" >
<Image Source="/PopuAssuNetApplication.... | 0 | 1,585 |
How to make XMLHttpRequest work over HTTPS on google chrome? | <p>I researched about this a lot, but couldn't find the magic.
Actually I want to populate a list of city pin code no. using JQuery autocomplete UI. It's a https page. It's working in Firefox but not in Google Chrome. Can anyone help me to resolve this issue. Thanks in Advance.</p>
<p>In the following is my code:</p>
... | 0 | 3,373 |
How do you add additional files to a NuGet package in Visual Studio 2017? | <p>I recently moved to Visual Studio 2017 Community Edition. It has 2 nice new features:</p>
<ol>
<li><p>You don't need to explicitly include your source files in the csproj. It does this automatically.</p>
</li>
<li><p>It can build NuGet packages directly.</p>
</li>
</ol>
<p>I want to package up my open source <code>C... | 0 | 1,231 |
Java Generics: Multiple Inheritance in Bounded Type Parameters <T extends A & I> | <p>I am about to create a factory which creates objects of a certain type T which extends a certain class A and another interface I. However, T must not be known. Here are the minimum declarations:</p>
<pre><code>public class A { }
public interface I { }
</code></pre>
<p>This is the factory method:</p>
<pre><code>pu... | 0 | 1,139 |
how to pass data from servlet to android application | <pre><code>I have a form in android upon submit im inserting it into database using servlet i have to show to user that form was inserted successfully. this is my application
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServle... | 0 | 3,112 |
Center inline block images | <p>I need some help centering some images</p>
<p>HTML:</p>
<pre><code><div id="thumbs" class="navigation">
<ul class="thumbs noscript">
<li>
<a class="thumb" href="#">
<img src="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_s.jpg" />
</a>
</li>
<... | 0 | 1,115 |
Using FileReader.readAsDataUrl to upload image to Web Api service | <p>I am trying to use the FileReader to obtain the base-64 representation of an image and submit that to a .net WebApi service for image uploading.</p>
<p>My problem is that the contents of fileReader.result are not valid as a base-64 encoded image, at least according to .net.</p>
<p>I am just using a very simple met... | 0 | 1,310 |
Cannot load configuration class | <p>I am following <a href="http://www.tutorialspoint.com/spring/spring_java_based_configuration.htm" rel="noreferrer">this</a> tutorial about how to use Spring and based on the provided example, I get the following exception:</p>
<pre><code>Exception in thread "main" java.lang.IllegalStateException: Cannot load config... | 0 | 1,582 |
Disable jmx in activemq network of brokers (spring, xbean) | <p>Since I've struggled a lot with this problem, I am posting my solution.
Disabling jmx in an activemq network of brokers removes race conditions about the registration of the jmx connector. When starting multiple activemq servers on the same machine:</p>
<blockquote>
<p>Failed to start jmx connector: Cannot bind to U... | 0 | 2,648 |
Struts2 -- Exception starting filter struts | <p>I have a similar question to the one I just asked. I'm trying to start my Struts2 application, but this time I just downloaded and added javassist-3.0.jar to my classpath (and /WEB-INF/lib) and I still get this same error. Any advice out there? Here are the filter references in my web.xml.</p>
<pre><code><fil... | 0 | 1,836 |
How to capture the image and save it in sd card | <p>hey guys i am using the following code to access camera from my application.
The application is able to access the camera i have also added a button whose onclicklistener adds this line of code :-</p>
<pre><code>camera.takePicture(mShutterCallback, mPictureCallbackRaw, mPictureCallbackJpeg);
</code></pre>
<p>Now i... | 0 | 1,253 |
JPA fetchType.Lazy is not working | <p>I am trying examples for <code>fetchType.Lazy</code>, however while debugging the code, it seems that <code>fetchType.Lazy</code> is not working.</p>
<p>Entity bean: Address</p>
<p>Added annotation @Basic with property fetch=fetchType.Lazy on district field.</p>
<p>My entity bean is defined by the code below:</p>... | 0 | 1,828 |
NoSuchMethodError: org.apache.http.conn.scheme.Scheme.<init>(Ljava/lang/String;ILorg/apache/http/conn/scheme/SchemeSocketFactory;)V | <p>I am running selenium test in maven project.This project is GWT Web application.There are GWT dependencies,hibernate dependencies in pom.xml.I have created a new class in test package to run the selenium test case.I have also included selenium server-2.33.0 dependencies in pom.xml but getting following exception:-</... | 0 | 15,565 |
Pip install not working with jenkins? | <p>That is my Jenkinsfile.</p>
<pre><code>pipeline {
agent none
stages {
stage('Build') {
agent {
docker {
image 'python:3-alpine'
}
}
steps {
sh 'pip install --user -r requirements.txt'
... | 0 | 2,118 |
Getting an Error "ORA-06502: PL/SQL: numeric or value error: character string buffer too small" | <p>I have a below Package which is giving error </p>
<pre><code>ORA-06502: PL/SQL: numeric or value error: character string buffer too small
</code></pre>
<p>Please let me know what is going wrong here.</p>
<pre><code>CREATE OR REPLACE PACKAGE BODY PKG_H
IS
PROCEDURE PROC_SUBMIT_H
(
Pout_Rqst_Id ... | 0 | 6,714 |
Android: downloading a file and saving on sd card | <p>Was trying to create an application to download a file on SD card, here is my code.:</p>
<p><br/></p>
<pre><code>public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_... | 0 | 3,458 |
Error while running cucumber in junit | <p>Hi i am new to cucumber java. i am trying to run a simple cucumber feature test. below are my feature file, step definition file and junit runner file. but i am not able to run the test succesfully in cucumber-java,cucumber-junit 1.1.6 version.</p>
<p>Feature file</p>
<pre><code>Feature: Test if f1 feature is work... | 0 | 2,378 |
Change arrow colors in Bootstraps carousel | <p>I'm obviously missing something stupidly simple here. I have images with a white background so I want to be able to edit the arrows on the Bootstraps Carousel so they are visible. So many changing the color of the arrows (NOT the background like I've done). </p>
<p>CSS</p>
<pre><code>.carousel-control-prev-icon, .... | 0 | 1,113 |
display a dialog after long click on list view android | <p>in my application I will fetch data from a cursor and put it in a ListActivity.</p>
<p>If a long click on a list item happens it should display a dialog.</p>
<p><strong>Now I'll show you some code:</strong></p>
<pre><code>final ListView selectRoom = (ListView) findViewById(android.R.id.list);
selectRoom.setO... | 0 | 1,407 |
Git: Recover deleted (remote) branch | <p>I need to recover two Git branches that I somehow deleted during a push.</p>
<p>These two branches were created on a different system and then pushed to my "shared" (github) repository.</p>
<p>On my system, I (apparently) retrieved the branches during a fetch:</p>
<pre><code>~/myfolder> git fetch
remote: Count... | 0 | 1,105 |
KeyError when using boolean filter on pandas data frame | <p>Trying to combine two data frames when a datetime object from one dataframe is within a datetime object range in the other.</p>
<p>Keep getting: KeyError: 'cannot use a single bool to index into setitem' on this line of code in the second chunk I posted.</p>
<pre><code>gametaxidf.loc[arrivemask, 'relevant'] = 1
</... | 0 | 1,733 |
0x800a138f - JavaScript runtime error: Unable to get property 'value' of undefined or null reference | <p>i have written a javascript code to compare 2dates from 2 textboxes</p>
<pre><code> function CompareDates() {
var fdate = document.getElementById('txtFromDate');
var edate = document.getElementById('txtToDate');
var FromDate = fdate.value.split('/');
var EndDate =... | 0 | 1,283 |
An easy way to make GONE animation work | <p>I have a custom search panel, which is a part of main layout. Most of time the panel is hidden. I would like to add appearing/disappearing animation to the panel. Here is the simplified layout excerpt:</p>
<pre><code><LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_... | 0 | 1,077 |
Scaling WPF content before rendering to bitmap | <p>Background:
I'm working on a silverlight (1.0) application that dynamically builds a map of the United States with icons and text overlayed at specific locations. The map works great in the browser and now I need to get a static (printable and insertable into documents/powerpoints) copy of a displayed map.</p>
<p>O... | 0 | 1,292 |
Displaying the Sum of values in React JSX | <p>Im trying to add up all of the calories in my array thats stored in the state. </p>
<pre><code> id: shortid.generate(),
text: this.state.text,
calorie: this.state.calorie
</code></pre>
<p>This is the data structure that being stored in the state array meals </p>
<p>Im currently running a forEach and using re... | 0 | 1,184 |
showing success and error messages in react/redux app | <p>I'm trying to add toast notifications to my app, one plugin I've been trying to use is react-toastify.</p>
<p>The issue I'm having is probably more a general react/redux issue more than with a plugin such as react-toastify.</p>
<p>I'm using a reducer to set the redux state for errors and success messages, from wha... | 0 | 1,632 |
aws s3 cp returns An error occurred (403) when calling the HeadObject operation: Forbidden | <h3>Foreword</h3>
<p>I guess it may be a duplication but other posts with the same problem didn't help me much.</p>
<h3>A problem</h3>
<p><code>aws s3 cp s3://s3-us-west-2.amazonaws.com/my-test-bucket/intro.jpg test.jpg</code><br>
Outputs the following:<br>
<code>fatal error: An error occurred (403) when calling the... | 0 | 1,042 |
Python: Usable Max and Min values | <p>Python 2.x allows heterogeneous types to be compared. </p>
<p>A useful shortcut (in Python 2.7 here) is that <code>None</code> compares smaller than any integer or float value:</p>
<pre><code>>>> None < float('-inf') < -sys.maxint * 2l < -sys.maxint
True
</code></pre>
<p>And in Python 2.7 an emp... | 0 | 1,055 |
Wait until file is downloaded from URL via webClient | <p>I have struggle with downloading few MB excel file from URL and then work with it. Im using VS2010 so i cant use await keyword.
My code follows:</p>
<pre><code>using (WebClient webClient = new WebClient())
{
// setting Windows Authentication
webClient.UseDefau... | 0 | 1,166 |
spring boot autoconfiguration with jdbc template autowiring dataSource issue | <p>I'm new to Spring and to J2EE in general. I'm having trouble using JDBC template with Spring Boot autoconfiguration.</p>
<p>What I did was I took the example of RESTful web service provided <a href="http://spring.io/guides/gs/rest-service/" rel="noreferrer">here</a>
and decided to extend it to use JDBC template rel... | 0 | 4,678 |
Response.Redirect not working in Global.asax | <p>I have created an error page to show a general message for all unhandled exceptions.</p>
<p>This is the code in Global.asax</p>
<pre><code>HttpContext ctx = HttpContext.Current;
string e404_PAGE = ctx.Request.AppRelativeCurrentExecutionFilePath.ToString();
string e404_LINE = ctx.Server.Get... | 0 | 1,228 |
Form submitting when pressing enter in Textarea | <p>I've been trying various methods to get a form to submit when hitting the enter key. I know it works with an input field, but because this is going to be a comment, it needs to be a text area. </p>
<p>This is what I currently have for the form to submit with a button. </p>
<pre><code>$('.messageSubmit').live('cl... | 0 | 1,095 |
in cassandra-cli how to get all column names in a table and how to get it using hector in java? | <p>I'm trying to get column names but could not get way to get only column names.</p>
<p>In cli I executed command <code>describe table nodes</code>, it returned the result:</p>
<pre><code>CREATE TABLE nodes (
key text PRIMARY KEY,
id text,
scores text,
topic1 text,
topic2 text,
topic3 text,
topic4 text... | 0 | 1,859 |
Scroll in Selenium Webdriver (Python) | <p>Prerequisites.<br>
You need an account at Instagram to use this script.<br>
Setup a test environment:<br></p>
<p>Log in, open the needed list(works correctly):</p>
<pre><code>from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
driver = webdriver.Chrome(
# driver =... | 0 | 1,145 |
MVC Submit Form With Partial View | <p>Apologies if this has been answered before, I can't find anything that matches my issue.</p>
<p>I have a View, which contains a Partial View, and when submitting the View, the data from the partial view is not sent to the controller. I understand that if I use an editor template, this should work, but I'm unable t... | 0 | 1,598 |
NumPy grouping using itertools.groupby performance | <p>I have many large (>35,000,000) lists of integers that will contain duplicates. I need to get a count for each integer in a list. The following code works, but seems slow. Can anyone else better the benchmark using Python and preferably NumPy?</p>
<pre><code>def group():
import numpy as np
from itertools ... | 0 | 1,295 |
Pytube: urllib.error.HTTPError: HTTP Error 410: Gone | <p>I've been getting this error on several programs for now.
I've tried upgrading pytube, reinstalling it, tried some fixes, changed URLs and code, but nothing seems to work.</p>
<pre><code>from pytube import YouTube
#ask for the link from user
link = input("Enter the link of YouTube video you want to download: ... | 0 | 1,158 |
Check for a null value from a database -- failing | <p>I am retrieving 3 fields from a database, and by default, only the username field will have content. The other information will be added in from a user application. I want to show the field as "No Info" if there is no entry in the field. I am trying to use both empty() and is_null() to no avail. A var_dump of $row['... | 0 | 1,275 |
Process queue with multithreading or tasks | <p>I have a telephony message application in which there are many many messages to be processed.Because telephone ports are limited, so the message will be processed first in first out. Each message has a flag 'Acknowledge' that indicates whichever is processed. It was initialized as false of course. </p>
<p>I want to... | 0 | 1,215 |
java.lang.NullPointerException at org.apache.jsp.foo_jsp._jspInit(foo_jsp.java:22) | <p>I have spring mvc application with dummy jsp page (named htmlcontent.jsp). The jsp contains just a string:</p>
<pre><code>HalloText
</code></pre>
<p>and this is the entire content of the jsp. The controller looks as follow:</p>
<pre><code>package springapp.web;
import org.springframework.stereotype.Controller;
i... | 0 | 1,672 |
How to add custom action to wix setup project | <p>I have 2 projects in my soliution:</p>
<p>1). Custom action class (CustomAction)</p>
<p>2). Wix setup project (TestSetup)</p>
<p>There is CustomAction.cs in CustomAction project:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.... | 0 | 1,060 |
What is the difference between pandas agg and apply function? | <p>I can't figure out the difference between Pandas <code>.aggregate</code> and <code>.apply</code> functions.<br>
Take the following as an example: I load a dataset, do a <code>groupby</code>, define a simple function,
and either user <code>.agg</code> or <code>.apply</code>.</p>
<p>As you may see, the printing state... | 0 | 2,163 |
RxAndroid and Retrofit: Unable to create call adapter for io.reactivex.Observable<retrofit2.Response<okhttp3.ResponseBody>> | <p>I am trying use rxJava, rxAndroid, Retrofit2, and OkHTTP3 to download a file from a URL endpoint. My code is unable to create the call adapter for an "Observable< retrofit2.Response< okhttp3.ResponseBody>>". These methods are new to me so I believe I'm missing an important concept here. Any direction or points... | 0 | 2,861 |
How to can I add threading to PyQt5 GUI? | <p>So I have created a GUI using QT Designer. It works pretty well, but on more complex calls it doesn't update the main window and locks up. I want to run my <code>CustomComplexFunction()</code> while updating a textEdit in the main window from constantly changing backend information, and I wanted it to run every 2 ... | 0 | 1,034 |
Liquibase tried to apply all changeset, even if database is present | <p>I am using <code>Spring-Liquibase</code> to perform any migration that is needed on the staging database.</p>
<p>The <code>applicationContext.xml</code> looks like </p>
<pre><code><beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:conte... | 0 | 3,265 |
PHP returning JSON to JQUERY AJAX CALL | <p>I am still struggling to get my head around the ins and out of JQUERY, AJAX and PHP.</p>
<p>I can now call the PHP OK, process the form elements and send an email, but I am not handling the return to the AJAX. I am always getting the <code>error:</code> selector activated and when I try to list the supposed JSON r... | 0 | 1,145 |
Can't clone gitlab's repo via ssh, via http - OK | <p>I'm new to gitlab and CI so i had tons of questions but some of them solved via google, SO, git mans, but not the last ...</p>
<p>I can't clone repo via ssh =(</p>
<p>If i try to clone repo via http:</p>
<pre><code>lesha@lesha-SeoTeam:/var/www$ git clone http://gitlab.vbox/root/virtualboxgitlab.git
Cloning into '... | 0 | 1,263 |
Simple jquery validation - custom position error message placement | <p>I am using <strong>jquery validate plugin to validate number in a form</strong> , how can i place the returned error message under the input button , i am unable to achieve,</p>
<p>Here is my image with the issue and what i need,pls check - <a href="http://i.imgur.com/Gt5aNxs.png" rel="nofollow">http://i.imgur.com/... | 0 | 2,242 |
WPF Binding with INotifyPropertyChanged does not update | <p>I appear to be having serious problems getting my WPF UI to update when I update when I update the property it is bound to. Here is my view model class definition:</p>
<pre><code>namespace WpfModel
{
class AppModel : INotifyPropertyChanged
{
private int _count = 7;
public in... | 0 | 1,202 |
Pyspark. spark.SparkException: Job aborted due to stage failure: Task 0 in stage 15.0 failed 1 times, java.net.SocketException: Connection reset | <p>I am new to pyspark, and i'm trying to run multiple time series in prophet with pyspark (as distributed computing because i have 100s of times series to predict) but i have error as below.</p>
<pre><code>import time
start_time = time.time()
sdf = spark.createDataFrame(data)
print('%0.2f min: Lags' % ((time.time() -... | 0 | 6,169 |
How to change an image's ImageUrl attribute on page load with asp.net and C# in IE | <p>I have links on a homepage that may or may not have attachments associated with them. If the links have attachments, then an icon will be placed next to the link. The icon will only be there if the link has an attachment.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
foreach (I... | 0 | 1,379 |
SQL Server - PIVOT - two columns into rows | <p>I saw many questions about PIVOT for a single column, each question more complex than other, however, I could not find anything like what I need.</p>
<p>To be honest, I don't even know if pivot will help me in this situation.</p>
<p>Let's say I have this data on my source table:</p>
<pre><code>SELECT '1' as 'RowI... | 0 | 1,336 |
null pointer exception when starting new activity | <p>Okay, I'm getting a null pointer exception when I start my third activity. Here is the LogCat message:</p>
<pre>
12-28 04:38:00.350: ERROR/AndroidRuntime(776): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.acithium.main/com.acithium.rss.ShowDescription}: java.lang.NullPointerException
12-28... | 0 | 2,276 |
future.isDone returns false even if the task is done | <p>I have tricky situation, Does <code>future.isDone()</code> returns <code>false</code>, even if the thread is done.</p>
<pre><code>import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Callable;
import java.util.con... | 0 | 2,277 |
Angular Resolve ERROR Error: Uncaught (in promise): TypeError: resolver is not a function | <p>I have a resolve that fetches data from an api and a service that depends on that resolve. The service depending on the resolve will be providing sections of data to multiple components and is only expected to be run once when the page loads. Here is the relevant code (imports & some annotations omitted):</p>
<... | 0 | 1,806 |
Binding GridView to DataTable does not show data in the GridView, the GridView is empty | <p>I am working in ASP.Net with C# as code behind. The editor is Visual Studio 2012.
I created a GridView with 5 columns: the first one contains checkboxes, the next 3 have text boxes and the last one is a buttonfield, as follows (I have made AutoGenerateColumns as false because, otherwise DataBind adds more columns":<... | 0 | 1,741 |
Creating and using a custom List<T> in C# | <p>I am trying to use a customized List were I have added a few additional tools. I want to apply this list to a long list of customized classes that I have created. All of the classes have an ID number and some of the tools in the List use the ID. </p>
<p>Here is a portion of my code that I am trying to use. I hope t... | 0 | 1,208 |
Visual Studio Code: compile typescript module | <p>I've just downloaded the new Visual Studio Code and my first impression is very positive. For typescript, intellisense works beautifully.</p>
<p>However, there is a strange problem: VS Code doesn't seem to be able to compile typescript modules.</p>
<p>This code:</p>
<pre><code>/// <reference path="../definitio... | 0 | 1,056 |
Elasticsearch 7 : Root mapping definition has unsupported parameters (mapper_parsing_exception) | <p>When trying to insert the following mapping in Elasticsearch 7</p>
<pre><code>PUT my_index/items/_mapping
{
"settings":{
},
"mappings":{
"items":{
"properties":{
"products":{
"properties":{
"classification":{
"type":"text",
... | 0 | 1,552 |
How to validate only part of the model in ASP .NET MVC? | <p>I have a large model (large I mean model class contains a lot of fields/properties and each has at least one validation attribute (such as <code>Required</code>, <code>MaxLength</code>, <code>MinLength</code> etc)). Instead of creating one view with a lot of inputs for user to fill model with data I want to create s... | 0 | 1,051 |
How to align the button at the bottom with Bootstrap 4? | <p>I am using version Bootstrap <a href="https://getbootstrap.com/docs/4.0/getting-started/introduction/" rel="noreferrer">4.0.0</a></p>
<p>Here's an example:: <a href="https://getbootstrap.com/docs/4.0/examples/pricing/" rel="noreferrer">https://getbootstrap.com/docs/4.0/examples/pricing/</a></p>
<p>How can I make a... | 0 | 1,144 |
How to Load RSA Private Key From File | <p>I am working on a test harness for a SAML 1.1 Assertion Consumer Service. The test must generate a signed SAMLResponse and submit it to the ACS encoded in Base64. The ACS must be able to verify the signed message using the X509 public cert.</p>
<p>I am able to build the SAMLResponse, adding the necessary assertio... | 0 | 2,403 |
Nested SELECT using sqlalchemy | <p>I would like to create a query with nested SELECT using sqlalchemy, but I cannot get the expected result.</p>
<p>I of course simplified the following query so it will be easilly understandable for this post.</p>
<p>Here is the query I would like to construct:</p>
<pre><code>SELECT pear_table.size,
(SELECT ... | 0 | 1,286 |
How to setup TypeScript + Babel + Webpack? | <p>I have these dependencies:</p>
<pre><code>"devDependencies": {
"@types/node": "^4.0.27-alpha",
"babel-core": "^6.10.4",
"babel-loader": "^6.2.4",
"babel-polyfill": "^6.9.1",
"babel-preset-es2015": "^6.9... | 0 | 1,134 |
Installing Graphviz for use with Python 3 on Windows 10 | <p>So I've had Python 3.6 on my Windows 10 computer for a while now, and today I just downloaded and installed the <code>graphviz 0.8.2</code> (<a href="https://pypi.python.org/pypi/graphviz" rel="noreferrer">https://pypi.python.org/pypi/graphviz</a>) package via the admin commandline with:</p>
<p><code>pip3 install g... | 0 | 1,228 |
Valgrind cross compilation for ARMv5tel | <p>I ran configure with the following option:</p>
<pre><code>./configure --target=armv5tel CC=arm-linux-gnueabi-gcc --host=i686-linux
</code></pre>
<p>then ran make</p>
<p>I encountered the following error:</p>
<pre><code>m_cpuid.S: Assembler messages:
m_cpuid.S:40: Error: bad instruction `pushl %ebp'
m_cpuid.S:41:... | 0 | 1,492 |
Android ListView Custom Adapter ImageButton | <p>This may not be the correct approach, if there is a better way pleas tell me.
I've created a class of Custom Adapter & in my getView method I inflate the view I want to use </p>
<pre><code>public View getView(int position, View convertView, ViewGroup parent)
{
View v = mInflater.inflate(R.layout.wh... | 0 | 1,275 |
External javascript not working but works in head | <p>I'm new to this but I'm having trouble getting my external js to work (however it works in the head of HTML doc), I've looked at all solutions on here already.</p>
<p>This is my HTML, the js src is script2.js</p>
<pre><code><!DOCTYPE html >
<html>
<head>
<link href="css/stylesheetelaine.css" ... | 0 | 1,676 |
VueJs can't access data property within the function | <p>I'm having a problem accessing data property, within the function. I'm missing something and I can't figure out what.</p>
<p>this is my class</p>
<pre><code>export default {
name: "Contact",
components: {
FooterComponent: FooterComponent,
NavigationComponent: NavigationComponent
},
... | 0 | 1,118 |
Flexbox not working properly on Firefox but okay on Chrome & Safari | <p>I'm building a website that relies heavily on flexbox. Only problem is that I cannot get it to mimic the chrome behaviour on Firefox. I looked on CSS-Tricks, SO and at this article (<a href="http://philipwalton.com/articles/normalizing-cross-browser-flexbox-bugs/" rel="noreferrer">http://philipwalton.com/articles/no... | 0 | 1,923 |
Xcode 8: Terminating with Uncaught exception of type NSException | <p>I'm a newbie and i'm having this error, i looked up everywhere and i can't find the solution. Any help would be really appreciated!</p>
<pre><code> 0 CoreFoundation 0x00000001102bb34b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010d61c21e objc_exception_thro... | 0 | 1,966 |
Ansible error : FAILED => SSH Error: Permission denied (publickey,password,keyboard-interactive) | <p>I'm learning to use Ansible, did the following steps correctly :</p>
<pre><code><1> Download
<2> Install
<3> Generated keys
<4> Copied one key to node
<5> Checked Ansible version
</code></pre>
<p>Now when I do : ansible -m ping webservers -vvvv</p>
<h1>I got the follow error :</h1>
... | 0 | 3,204 |
Excel VBA to concatenate data from multiple rows into 1 row | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/3961436/excel-concatenate-rows">Excel Concatenate Rows</a> </p>
</blockquote>
<p>I want to merge several rows of data into a single row with an Excel VBA macro, and for the output to be on a new worksheet, but ... | 0 | 1,170 |
How to modify WooCommerce search results? | <p>I reckon the WooCommerce search is using a URL like <a href="http://localhost/myshoesssite/?s=noheelshoes&post_type=product" rel="nofollow noreferrer">http://localhost/myshoesssite/?s=noheelshoes&post_type=product</a></p>
<p>Thus, I need to edit the search result so that I could add a URL parameter at the e... | 0 | 1,245 |
Boolean int conversion issue | <p>I am working on a trading API (activex from interactive brokers)which has a method called:</p>
<pre><code>void reqMktDataEx(int tickerId, IContract contract, string generalDetails, int snapshot)
</code></pre>
<p>The issue is around the last parameter "int snapshot" which obviously requires an int input which actua... | 0 | 2,215 |
How to programmatically login to j_security_check | <p>I have a JSP web application which uses <code>j_security_check</code>. Is it possible to login a specific user to <code>j_security_check</code> programmatically via a JSP page if I know the userid and password? I tried to pass the variables as URL parameters this way...</p>
<pre><code>response.sendRedirect(www.mydo... | 0 | 1,765 |
Angular ui-router onEnter function not firing | <p>Thanks to some great help from the SO community, I have a working angular SPA that uses multiple states/views using the <a href="https://github.com/angular-ui/ui-router" rel="nofollow">ui-router</a> library. However I am getting a behavior that seems at odds with the <code>angular-ui-router</code> documentation.</p>... | 0 | 1,301 |
What could cause a python module to be imported twice? | <p>As far as I understand, a python module is never imported twice, i.e. the code in the module only gets executed the first time it is imported. Subsequent import statements just add the module to the scope of the import.</p>
<p>I have a module called "TiledConvC3D.py" that seems to be imported multiple times though.... | 0 | 1,601 |
ReactJS: How to implement react-cookie properly in an action? | <p>I have read articles that saving the token in <code>localstorage</code> is dangerous to XSS attack. So I have decided to store my tokens in cookies. And I am using <a href="https://www.npmjs.com/package/react-cookie" rel="nofollow noreferrer">react-cookie</a>. I saw the examples and I am trying to do it but my <code... | 0 | 3,222 |
Button is not working with Update Panel | <p>I have placed a timer and a label for displaying countdown time in an update panel. I have placed the next button for displaying the next question outside the update panel.</p>
<p>My problem is that the button click is not working with the update panel. Without using the update panel and the timer it works well. Ho... | 0 | 1,644 |
Trouble with df.join(): ValueError: You are trying to merge on object and int64 columns | <blockquote>
<p>None of these questions adress the issue: <a href="https://stackoverflow.com/questions/55278728/trouble-with-left-joining-tables-pandas-valueerror-you-are-trying-to-merge-on">Question 1</a> and <a href="https://stackoverflow.com/questions/53645882/pandas-merging-101">Question 2</a> nor could I find th... | 0 | 1,372 |
Only one SparkContext may be running in this JVM - [SPARK] | <p>I'm trying to run the following code to get twitter information live:</p>
<pre><code>import org.apache.spark._
import org.apache.spark.streaming._
import org.apache.spark.streaming.twitter._
import org.apache.spark.streaming.StreamingContext._
import twitter4j.auth.Authorization
import twitter4j.Status
import twitt... | 0 | 1,070 |
Error executing Python script AttributeError: 'NoneType' object has no attribute 'run_line_magic' | <p>I am getting error on the following python code. I'm running from a script. Im using python 2.7.12.</p>
<pre><code>import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from IPython import get_ipython
ipython_shell = get_ipython()
get_ipython().run_line_magic('matplotlib', 'inline')
</cod... | 0 | 2,661 |
ASP.NET MVC Model validation not working on ViewModel | <p>I have ViewModel that has inside a Model and some extra properties. There are validation on the model and on the property, but when executed, only validation on Model are checked, validation in the property is ignored.</p>
<p>The Model:</p>
<pre><code> [MetadataType(typeof(Customer_Validation))]
public partial cl... | 0 | 1,285 |
Docker Connecting PHP container to MySQL | <p>I have two containers, a apache-php container, and a mysql db container.
I am trying to get my php script to query my sql database.
I am however receiving the following errors;</p>
<pre><code>Fatal error: Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not kn... | 0 | 1,180 |
Bootstrap Modal not working.(Asp.net, C#) | <p>I try to make simple example from this site:
<a href="http://www.programming-free.com/2013/02/gridviewrow-details-modalpopup-bootstrap.html" rel="nofollow">http://www.programming-free.com/2013/02/gridviewrow-details-modalpopup-bootstrap.html</a>
(I deleted some fields..only want to see if that's work.)
When I run th... | 0 | 3,245 |
Layout preview rendering problems in android studio(Android Studio 1.2) | <p>I have the following error in my preview window in the <strong>latest version of Android Studio (1.2)</strong> that stops me from being able to view the layout I am creating, I have tried restarting android studio several times as well as cleaning, rebuilding the project and restarting my computer </p>
<p>EDIT:</p>... | 0 | 1,686 |
restore from pg_basebackup | <p>I made daily backups of a postgresql DB using the command</p>
<pre><code>/usr/bin/pg_basebackup -D $outdir -Ft -x -z -w -R -v
</code></pre>
<p>Now I want to restore this DB on another server. I used the description on <a href="https://www.postgresql.org/docs/9.5/static/continuous-archiving.html#BACKUP-PITR-RECOVER... | 0 | 1,550 |
Why is LINQ JOIN so much faster than linking with WHERE? | <p>I've recently upgraded to VS 2010 and am playing around with LINQ to Dataset. I have a strong typed dataset for Authorization that is in HttpCache of an ASP.NET WebApplication.</p>
<p>So i wanted to know what actually is the fastest way to check if a user is authorized to do something. <a href="https://stackoverflo... | 0 | 2,357 |
JDBC timeout is not throwing SQLTimeoutException | <p>I am trying to set the query timeout on a JDBC Statement and expecting it to throw an SQLTimeoutException when it times out.
But instead I am getting a generic SQLException with error code ORA-01013.</p>
<p>Any idea what I must be missing?</p>
<p>I am looking for a DB independent way to handle timeouts. And checki... | 0 | 1,128 |
Selenium error: No response from server for url http://localhost:7055 | <p>I'm using Selenium, C#, NUnit to write tests, sometimes I getting below error:-</p>
<blockquote>
<p>OpenQA.Selenium.WebDriverException : No response from server for url
httр://lоcalhost:7055/hub/session/8dd13f5c-7ca6-4aa6-babc-f0ff6d940f0a/element</p>
</blockquote>
<p>Here is stack trace:</p>
<blockquote>
<p>OpenQA.... | 0 | 1,469 |
Dropdown menu from table row in Bootstrap | <p>I'm trying to get a dropdown menu working from a table row using the Jasny extension found <a href="http://www.jasny.net/bootstrap/components/#rowlink" rel="nofollow noreferrer">http://www.jasny.net/bootstrap/components/#rowlink</a>. Unfortunately I can't seem to get it to work to display a dropdown. I have en examp... | 0 | 1,276 |
django error TemplateDoesNotExist | <p>I am new to Django and just follow the Django official document, but here is a problem.</p>
<p>I create a new Django project with </p>
<p><strong>Django 1.8.2 + PyCharm 4.5.1 + Python 3.4.3 + Windows 8.1</strong></p>
<pre><code> - mysite
- main
- migrations
__init__.py
__init__.p... | 0 | 2,154 |
load jQuery UI .datepicker for a WP frontend plugin | <p>First, I feel like I've read the whole stack of posts in this category about a 100 times. While the title sounds like a duplicate, I really mean I've tried all solutions I read to the questions asked around up to the whole concatenate thing with WP 3.5+.</p>
<p>My script works great in WP when I reference the actua... | 0 | 2,280 |
XSD extend a complex type | <p>I'm trying to extend an existing complextype in a XSD file.</p>
<p>I have created a new xsd file and included it at the end of all the master XSD files includes.</p>
<p>The problem I'm having is that it seems to add my extension but it removes the existing elements other than those defined in asset_abstract</p>
<... | 0 | 3,137 |
Rails ArgumentError: invalid %-encoding | <p>For the last month, we've had a bot scraping our site regularly, leading to a bunch of <code>ArgumentError: invalid %-encoding</code> errors because the URLs are malformed. I've looked at a bunch of issues in rack <a href="https://github.com/rack/rack/issues/337" rel="noreferrer">here</a> and <a href="https://github... | 0 | 4,407 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.