title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Performance Issues with newFixedThreadPool vs newSingleThreadExecutor | <p>I am trying to Benchmark our Client code. So I decided I will write a multithreading program to do the benchmarking of my client code. I am trying to measure how much <code>time (95 Percentile)</code> below method will take-</p>
<p><code>attributes = deClient.getDEAttributes(columnsList);</code></p>
<p>So below is... | 1 | 2,259 |
What is wrong with my Text-To-Speech in my CountDownTimer? | <p>Hey all, I'm trying to put text-to-speech in my CountDownTimer. I would like it to say "There are x seconds left" after a certain amount of time. I just started using TextToSpeech and I'm not really sure what I'm doing..</p>
<pre><code> package com.android.countdown;
import java.util.Locale;
import android.app... | 1 | 1,400 |
Google Cloud SQL and sql_mode flag | <p>I am trying to run the following command</p>
<pre><code>gcloud beta sql instances create my_replica \
--master-instance-name=db-master01 \
--master-username=replication_user \
--master-password='replication_password' \
--master-dump-file-path=gs://path/to/dump.sql.gz \
--database-flags default_time_zone='-05:00' \
... | 1 | 1,509 |
In Microsoft Access 2010, how do I reference a bound control in a report? | <p>I am creating a report to display data on clients with several subreports to show different demographic data further broken by fiscal quarter. For example, my subreport on the primary language of the clients has a combobox control to create the rows in the detail section; the control is bound to my table of language... | 1 | 1,485 |
Can Nodemailer be a standalone SMTP server? | <p>i was reading about that Nodemailer is <a href="http://adilapapaya.com/docs/nodemailer/" rel="nofollow noreferrer">using SMTP or sendmail or Amazon SES</a> and i also discovered more <a href="https://stackoverflow.com/a/29287563/1705922">smtp servers</a> so i was assuming that aside of my nodemailer application i ha... | 1 | 1,711 |
Using View-Models with Repository pattern | <p>I'm using <a href="http://blogs.msdn.com/b/marblogging/archive/2011/05/23/domain-drive-design-n-layered-net-4-0-architecture-guide.aspx?Redirected=true" rel="noreferrer">Domain driven N-layered application architecture</a> with <code>EF code first</code> in my recent project, I defined my <code>Repository</code> con... | 1 | 1,074 |
Airflow psycopg2.OperationalError: FATAL: sorry, too many clients already | <p>I have a four node clustered Airflow environment that's been working fine for me for a few months now. </p>
<p><strong>ec2-instances</strong></p>
<ul>
<li>Server 1: Webserver, Scheduler, Redis Queue, PostgreSQL Database</li>
<li>Server 2: Webserver </li>
<li>Server 3: Worker </li>
<li>Server 4: Worker</li>
</ul>
... | 1 | 1,787 |
Flash CS5/AS3 - Can't find (or won't execute) the Main Document class - constructor not called | <p>All,</p>
<p>I'm pretty new to AS3, so this is probably a very trivial question. But, I'm stuck.</p>
<p>I'm working on a new Flash application (AS3). The app uses a Document class.</p>
<p>Here's how I've set up the folder structure:</p>
<ul>
<li>"application" folder</li>
<li><blockquote>
<p>"com" folder</p>
</b... | 1 | 1,152 |
Panel inside panel in Bootstrap not creating rounded corners | <p>Using Twitter Bootstrap to draw Panels. I have change the padding and background-color, and the round corners isn't get rendered anymore.</p>
<p>Example:</p>
<p><a href="http://jsfiddle.net/Khrys/730sjq8n/3/" rel="nofollow">FIDDLE</a></p>
<pre><code><div class="panel-group">
<div class="panel panel-p... | 1 | 2,434 |
WearableDataListener Service doesn't invoke onDataChanged method | <p>I am making a wear app which fetches data from database(which is on handheld) on launch of app home screen.
So when the homepage activity launches, It sends a message using Wearable.MessageApi.sendMessage function from the android wear to handheld. On the handheld I have the WearableListenerService which receives th... | 1 | 1,941 |
How to show error message in asp.net mvc3 | <p>Please help me to show Error message in the view. My code is given below - </p>
<p>This is my View Model:</p>
<pre><code>public class DepartmentViewModel
{
//public Department Department { get; set; }
public string DepartmentId { get; set; }
[Required]
public string DepartmentName { get; set; }
... | 1 | 2,280 |
Set Flatpickr defaultDate through programmaticaly | <p>I use Flatpickr from Wix Code thru an html-component. The communication, using postMessage/onMessage works perfectly. I can send a selected date from datepicker (html-component) back to Wix. Also, I can send to the component, from Wix. The problem is that I postMessage a valid date, it arrives perfectly, but then I ... | 1 | 1,084 |
NoSuchMethodError: AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Ljava/lang/Object;)V | <p>I'm writing a project using:
Eclipse Luna, JDK 1.7_09, Hibernate 4.3.7.Final, Spring 4.1.2.RELEASE</p>
<p>When deploying to a local Tomcat 7, the webapp starts to initialize, but I get the following:</p>
<pre><code>Nov 30, 2014 4:56:31 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based A... | 1 | 3,477 |
Removing Focus from a link, once clicked in CSS drop down menu | <p>I have a css drop down menu (below), however, my problem is this, once a drop menu option (link) is clicked, nasty ie. 7 leaves an unwated rectangular fine dotted line focus that appears long after a menu option is clicked. How can I remove the focus of the link after it has been clicked?</p>
<pre><code> <div... | 1 | 2,144 |
ERROR: Could not find a version that satisfies the requirement preshed==2.0.1 | <p>I am trying to install spaCy on Windows. I am running python 3.6. When I run</p>
<p><code>pip install -U spacy</code></p>
<p>I get the following error:</p>
<pre><code>Looking in indexes: https://frs-art.jpmchase.net/artifactory/api/pypi/jpmc-publi c-pypi/simple/
Collecting spacy
Do... | 1 | 1,589 |
Failed to resolve attribute at index 0 | <p>I'm stuck on a problem all this day and found no solution.</p>
<p>The app runs good on 5.1, but on 6.1 it's crashing.</p>
<p>I'm using 2 custom themes to change the app color for the type of user.</p>
<p>Someone knows how to fix this?</p>
<p><strong>Error:</strong></p>
<pre><code>FATAL EXCEPTION: main
Process: ... | 1 | 4,524 |
jQuery :not() + nth-child | <p>Having the following DOM structure:</p>
<pre><code><ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></l... | 1 | 1,059 |
ClassCastException when converting XML to POJO | <p>I am trying to convert an XML file to a POJO and I am getting the following error:</p>
<pre><code>'java.lang.ClassCastException: com.ibm.xml.xlxp.api.stax.events.StartDocumentImpl incompatible with javax.xml.stream.events.StartElement'
</code></pre>
<p>I am running RAD 8.5 with websphere 6.1. I am using Java 1.5 a... | 1 | 8,163 |
How to implement drag and drop in Flex Grid control? | <p>I have a simple Grid control with some buttons that I want to be able to move around. The code below does work, but it takes a lot of effort to actually do the drag&drop and it is not clear where the drop will happen. I have to move the mouse around a lot to get to a state where the drop is not rejected. I would... | 1 | 1,728 |
modal carousel is not working on bootstrap | <p>i have this code and the modal carousel only shows the first pic</p>
<pre><code><button type="button" class="btn" data-toggle="modal" data-target="#myModal">Gallery</button>
<div class="modal fade " id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-h... | 1 | 2,075 |
how to append react component with appendChild method | <p>I have to use the following component more than 1 time.</p>
<pre><code> const OnePen = (props) => {
return (
<div className="cerd" key={props.ID}>
<div className=" card-body">
<h2 className="card-title">{props.title}</h2>
<p classNam... | 1 | 1,175 |
How to install pip on debian with python 2.7? | <p>I read many website and question-answer, but i get always the same error, and nowhere I can't find the solution.
My errors:</p>
<p>Errors while processings:
<code>python error python-crypto python-wheel python-pkg-resources python-keyrings.alt ptho-dbus python-pip python-xdg python-secretstorage python-keyring E:Su... | 1 | 1,904 |
How to pass data from a activity to a recycler view adapter in android | <p>I'm trying to design a page where address are stored in recycler view -> cardview.</p>
<p>When the user clicks the <strong>add address button</strong> from the <strong>Activity A</strong> the user is navigated to the add address page in <strong>Activity B</strong>. Here the user can input customer name, address l... | 1 | 2,694 |
Align Input text fields next to each other | <p>I have the following HTML layout:</p>
<pre><code><div class="editor-page">
<div class="container page">
<div class="row">
<div class="col-md-10 offset-md-1 col-xs-12">
<list-errors [errors]="errors"></list-errors>
<form [formGroup]="articleForm"&g... | 1 | 2,016 |
OpenID: is the identifier URL unique? what are the differences between the identifiers | <p>In the <a href="http://openid.net/specs/openid-authentication-1_1.html" rel="noreferrer">OpenID specs</a>, it says:</p>
<blockquote>
<ul>
<li>Identifier:</li>
</ul>
<p>An Identifier is just a URL. The whole flow of the OpenID Authentication protocol is about proving that an End User is, owns, a URL.</p>
<ul>
<li>Cla... | 1 | 1,512 |
Cannot find module rimraf in docker container | <p>When i try to run my node project which uses rimraf, in a docker container, I get the error that module rimraf cannot be found. It is installed and can be found in my package.json. If i run my app locally, everything works fine.
Error log:</p>
<pre><code>Error: Cannot find module 'rimraf'
node_1 | at Functi... | 1 | 1,290 |
Adding Angular Material to Asp.Net Core 2 SPA | <p>I cant seem to get this to work. The bits and pieces I find on SO and the net are out of date and seem incomplete.</p>
<p>Here is my package.json:</p>
<pre><code>{
"name": "MyProj.Site",
"private": true,
"version": "0.0.0",
"scripts": {
"test": "karma start ClientApp/test/karma.conf.js"
},
"devDep... | 1 | 3,465 |
General 400/500 error handling in reactjs | <p>I have been building a react website and may need support in creating error pages 404, 500 but I am unsure how to get this working - as I have many api services/actions - how would the errorhandler be invoked if an error occurs in any or all services?</p>
<p>I've seen this link on handling granular error pages - <a ... | 1 | 1,166 |
Object #<HTMLDivElement> has no method 'empty' | <p>I'm so confuse with this. I'm using jquery 1.9.1 to append a div's inner html to another div. But when trying to debug with chrome developer tools, it gave me this error inside jquery library. </p>
<p>my Html:</p>
<pre><code><body>
<s:form action="/save" method="POST">
<div class="educat... | 1 | 1,708 |
Making a lambda expression to call a method from a generic class | <p>I have these simple interface:</p>
<pre><code>public interface IQuery<TResult> { }
public interface IQueryHandler<in TQuery, out TResult>
where TQuery : IQuery<TResult> {
TResult Handle(TQuery query);
}
</code></pre>
<p>And there are some implementation of them. I'm trying to create an ... | 1 | 1,057 |
Getting data from table using Selenium | <p>I have a table of fees I am trying to parse through to return data, but it is returning a few blanks before it actually returning the string of data.</p>
<pre><code><table id="Fees">
<thead>
<tr>
<th>Rate Code</th>
<... | 1 | 1,324 |
Writing Pandas DataFrame to Excel: How to auto-adjust column widths | <p>I am trying to write a series of pandas DataFrames to an Excel worksheet such that:</p>
<ol>
<li>The existing contents of the worksheet are not overwritten or erased, and</li>
<li>the Excel column widths are adjusted to fit the lengths of the column entries (so that I don't have to manually do this in Excel).</li>
<... | 1 | 2,399 |
PHPUnit cannot find classes namespace | <p>I'm trying to run some unit tests using PHPUnit, but, when I use the command line to test, my test class cannot find the namespace from my main class.</p>
<p>This is my folder structure:</p>
<pre><code>data/
src/
Dao/
Entity/
City.php
Facade/
SplClassLoader.php
tests/
Entity/
... | 1 | 1,167 |
The SOAPBody content cannot be extracted if more than 1 child element exists | <p>I'm trying to read a SOAP response (content-type multipart/mixed. Mime headers: application/soap+xml)
This is working for us in Java 1.6 and Weblogic 11g, but not in Java 1.7/Weblogic 12c. The extractContentAsDocument() that throws the exception is coming from: jar:file:/u01/app/oracle/Middleware/12c/oracle_common... | 1 | 6,213 |
How to update image in CodeIgniter | <p>I am new in codeigniter.
I am using codeigniter for this project.
I have not getting how to update image form data in the database.
I have inserting ,showing data in the database is done .
but i cant understand how to update image in the database.
This is a method which i use to update existi... | 1 | 1,476 |
ActionStatus.ABORT_ONLY > is not in a valid state to be invoking cache operations on | <p>I get following weird exception, When calling;
<strong>session.flush()</strong> in Hibernate V 5.2.1
I use container managed sessions. </p>
<p>What Im doing wrong here?</p>
<pre><code> @TransactionAttribute(TransactionAttributeType.REQUIRED)
public void insertOrUpdate(T entity) {
..
crud().saveOrUpdate(enti... | 1 | 2,871 |
Using SQL Parameters in ASP CLASSIC, object improperly defined error | <p>I am trying to protect my INSERT statement from SQL injection using Parameters, but for some reason I am getting the error: <code>Parameter object is improperly defined. Inconsistent or incomplete information was provided...</code></p>
<p>Though, I have no clue what is causing it. </p>
<p>My SQL statement is as fo... | 1 | 2,009 |
devise confirmable not working in newest version | <p>I recently upgraded from Devise 1.2 to 1.4.9 and everything seems to work except my confirmable module. Email works as well as the entire process. But the confirmation page is always blank. It works and it confirms the email account, but it does not redirect the user and throws a 406 error. It does the same for f... | 1 | 1,268 |
Kotlin: lateinit property has not been initialized when setting TextView | <p>I am trying to set the text of a <code>TextView</code> in a fragment. I am calling a method from my Fragment class in my Pager Adapter to accomplish this, but I receive the following error in doing so:</p>
<pre><code>Caused by: kotlin.UninitializedPropertyAccessException: lateinit property totalMsg has not been ini... | 1 | 1,038 |
Bootstrap CSS table row height with dropdown button too large | <p>I have a Bootstrap table where the rows are too high when I use button dropdowns. Is there some CSS I can use to stop this happening ? </p>
<p>I've noticed that Bootstrap's tables with normal buttons are not 100% perfect: <a href="http://twitter.github.com/bootstrap/base-css.html#tables" rel="nofollow">http://twi... | 1 | 1,186 |
Show error messages of fields in a popup after submit | <p>I am trying to open a popup using the below code in jsf.</p>
<pre><code><a href="#" data-toggle="modal" data-backdrop="static" data-target="#forgotPassword">Forgot password</a>
<div class="modal fade" jsf:id="forgotPassword">
<div class="modal-dialog">
<form jsf:id="reset-pas... | 1 | 1,065 |
Gzip uncompress from string error, The magic number in GZip header is not correct | <p>I am trying to replicate the php function gzuncompress in C#
So far I got part of following code working. see comment and code below.</p>
<p>I thing the tricky bit is happening during byte[] and string convertion.
How can I fix this? and where did I missed?? </p>
<p>I am using .Net 3.5 environment</p>
<pre><code>... | 1 | 1,293 |
Can't pass 'slug' field into URL via generic class view | <p>I have two models for Publications and Employees:</p>
<pre><code>class Publication(models.Model):
BOOK_CHAPTER = 1
ARTICLE = 2
PUBLICATION_CHOICES = (
(BOOK_CHAPTER, 'Book chapter'),
(ARTICLE, 'Article'),
)
publication_type = models.IntegerField(choices=PUBLICATION_CHOICES)
a... | 1 | 2,744 |
OSGI service component dependency couldn't resolved | <p>I need to implement a calculator program in OSGI. For that I have created three bundles of jar called calculator api, calculator implementation and calculator bundle named as <code>cala-1.0.0.jar</code>, <code>cali-1.0.0.jar</code>, and <code>calb-1.0.0.jar</code>. </p>
<p>Within the calculator bundle class like th... | 1 | 3,686 |
Insert data in mongoDB database from node.js | <p>Context: Want to insert data in mongoDB database from node.js</p>
<p>Problem Statement: I am trying to insert data in the mongoDB database but thrown an error. Cant find it.</p>
<p>Present Output: Reference error</p>
<p>Attach Code: </p>
<p><strong>filter.js</strong></p>
<pre><code> var server = require('htt... | 1 | 1,344 |
Spring boot security does not redirect after session expires | <p>I have been using spring boot, with spring security and Ext Js as frontend. I added this piece of code as configuration for spring security. It means that, when the session expires the user will be redirected to the referenced url, right?</p>
<pre><code>@Override
protected void configure(HttpSecurity http) throws E... | 1 | 1,107 |
how to style Google map info window using css or javascript | <p>I am using Google's mysql/ajax/php map search example. I am tying to style the info window with css, but it's not working. Here is the example code</p>
<pre><code><!DOCTYPE html >
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-t... | 1 | 1,603 |
Tensorflow seq2seq tutorial: NoneType object has no attribute 'update' | <p>I am trying to follow the tensorflow tutorial from <a href="https://www.tensorflow.org/tutorials/seq2seq" rel="nofollow noreferrer">https://www.tensorflow.org/tutorials/seq2seq</a>.</p>
<p>The data seems to load fine but when I initialize the model I get the following error:</p>
<pre><code>Traceback (most recent c... | 1 | 6,742 |
Code structure when dynamically load a micro frontend via Module Federation | <p>I picked up the git examples of <a href="https://www.angulararchitects.io/en/aktuelles/multi-framework-and-version-micro-frontends-with-module-federation-the-good-the-bad-the-ugly/" rel="nofollow noreferrer">https://www.angulararchitects.io/en/aktuelles/multi-framework-and-version-micro-frontends-with-module-federat... | 1 | 1,731 |
Combining intersecting intervals | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/1034802/union-of-intervals">Union of intervals</a><br>
<a href="https://stackoverflow.com/questions/5313374/how-to-overlap-intervals-efficiently">how to overlap intervals efficiently</a> </p>
</blockquote>
<p... | 1 | 1,729 |
Ion POST as url parameters and not JSON body Android | <p>I want to POST to my server API using parameters instead of JSON body.</p>
<p>I can implement this:</p>
<pre><code>JsonObject json = new JsonObject();
json.addProperty("u_id", "XXX");
json.addProperty("emp_id", "XXX");
json.addProperty("lat", Double.toString(lat));
... | 1 | 1,200 |
Setting user_id for post creation in Rails | <p>I am having trouble setting the user_id on the creation of a post</p>
<pre><code>def create
@post = Post.new(post_params)
@post.user_id = session[:id]
respond_to do |format|
if @post.save
format.html { redirect_to @post, notice: 'Post was successfully created.' }
format.json { render action:... | 1 | 1,187 |
How to use Filesink in Deepstream test application to save video | <p>Hello everyone my question is related with Nvidia Deepstream-5.0 SDK,</p>
<p>I am trying to run a sample test <strong>deepstream-nvdsanalytics-test</strong> which is in "/source/apps/sample_apps" in NVIDIA Deepstream container. I want to save the video file by using <strong>Filesink</strong>. I got the suggestion t... | 1 | 4,858 |
SQLDependency_OnChange-Event fires only one single Time | <p>I'm working with SQLDependency to notify me if there is a change in the Database.
After Program Start-Up it works just fine. When I make a first change the Event fires. Wohoo... that's great.
But if I made a second change the event doesn't fire again. I've searched all the web I think but haven't found anything ab... | 1 | 1,561 |
How to Display Warning message if quantity is less than 5 items | <p>I'm creating an inventory system which should display the products that needs to be restock. If the quantity of the product is only 5 it should display a message that says you need to restock now. But I don't know how to do that because I'm creating an Inventory System only and not Sales and Inventory so how should ... | 1 | 1,927 |
How to get access to all SD-cards, using the new Lollipop API? | <h2>background</h2>
<p>Starting with Lollipop, apps can get access to real SD-cards (after it was not accessible on Kitkat, and was not officially supported yet worked on previous versions), as I've asked about <a href="https://stackoverflow.com/q/26744842/878126">here</a>.</p>
<h2>The problem</h2>
<p>Because it has... | 1 | 1,791 |
IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation | <p>When I run my Android application, I encounter this <code>NoClassDefFoundError</code>:</p>
<pre><code>03-13 18:06:38.648: E/AndroidRuntime(413): Uncaught handler: thread main exiting due to uncaught exception
03-13 18:06:38.688: E/AndroidRuntime(413): java.lang.NoClassDefFoundError: com.InternetGMBH.ThousandPS.Acti... | 1 | 2,076 |
Validate form, check if user exists, register them. All with Ajax | <p>My javascript is inside an html file called register.html.
The user submits the form. This should then trigger the <code>$('input[name="createacc"]').click(function (e)</code> AJAX then sends those 4 variables to checkuser.php. Checkuser.php should then check to see if the username exists. If it does exist, it shoul... | 1 | 2,278 |
Docker local registry : push fails | <p>I'm trying to setup a local docker registry, but I get in troubles when trying to push images to it. I opened a github issue too: <a href="https://github.com/docker/docker/issues/12405" rel="nofollow">https://github.com/docker/docker/issues/12405</a></p>
<p><strong>ENVIRONMENT</strong></p>
<p>OS: CentOS 6.6</p>
<... | 1 | 2,217 |
Using http.delete in Angular and .Net MVC 5 / Web API | <p><strong>Using WebApi & MVC 5 and<br>
<em>AngularJS v1.3.4</em></strong></p>
<p>I have an API setup that has a <code>FavoritesRepository</code> & <code>IFavoritesRepository</code> & Ninject. This part is ok, I can retrieve Favorites by UserId or SearchId. My favorites list is an API built around a <code>... | 1 | 4,250 |
Modify column length in MySql | <p>I'm issuing the following command:</p>
<pre><code>ALTER TABLE `table_name` MODIFY `column_name` VARCHAR(1022)
</code></pre>
<p>At the moment it's <code>VARCHAR(1024)</code>, however I'm getting this error:</p>
<pre><code>Error Code: 1265 Data truncated for column mysql
</code></pre>
<p>I guess it's because some ... | 1 | 1,531 |
Using SelectManyCheckbox with list of objects | <p>Im trying to create a JSF page that lets the user select X amount of ingredients, and then saves those selected ingredients to a list.</p>
<p>Ingredient is an object with two values, String IngredientName and int ingredientPrice.</p>
<p>What I want to do is to create 1 selectItem per Ingredient in an IngredientLis... | 1 | 1,548 |
How to read text directly from screen using python | <p>I want to build project that reads texts continuously from part of my pc screen and shows them on the console of pycharm</p>
<p>I am using python 3, all modules are installed using pip from pycharm console.</p>
<p>I used this code:</p>
<pre><code>import time
import cv2
import mss
import numpy
import pytesseract
... | 1 | 1,127 |
React Redux correct way to handle error / success messages unique to each component | <h2><strong>Problem outline</strong></h2>
<p>Below is a standard way for dispatching <strong>error / success</strong> messages, at least that's what the tutorials recommend:</p>
<pre><code>{ type: 'FETCH_POSTS_FAILURE', error: 'Oops' }
{ type: 'FETCH_POSTS_SUCCESS', success: 'yay', response: { ... } }
{ type: 'FETCH... | 1 | 2,165 |
Spring inject map issue | <p>I am seeing the below error which trying to inject a map into a bean. I am not sure how Spring is deducing that the map that I am trying to inject is of type org.apache.commons.collections.map.LinkedMap. How can I solve this issue?</p>
<blockquote>
<p>[org.apache.commons.collections.map.LinkedMap] to required typ... | 1 | 1,194 |
React Native List Footer Component does not work | <p>I'm working on React native. I'm using FlatList. I want to show the loading bar as I go down. I wrote the code for that.</p>
<p>I've reviewed the documentation, but it's not working. I guess I'm making a mistake at the await. I don't know how to use it. What is the difference of async? I'm leaving the code sample b... | 1 | 2,050 |
GenericApplicationContext cannot be cast to WebApplicationContext : Spring Web Flow | <p>I'm trying to set up Spring Web Flow using only Java annotations in a Spring environment that also uses only Java annotations. However when I attempt to access my flow I get the following exception</p>
<pre><code>SEVERE: Servlet.service() for servlet [dispatcher] in context with path [/forms] threw exception [Requ... | 1 | 3,661 |
How to read the UDP data payload coming from a port using C program | <p>I am trying to capture the UDP data packets from port 6343. while capturing it, I have to capture the payload also. I am getting the payload in ASCII format. I have to read the contents of the payload. The following is my code:</p>
<pre><code>#include<stdio.h> //For standard things
#include<stdlib.h> ... | 1 | 3,371 |
UBI error: ubi_io_read: error -74 (ECC error) | <p>I'm struggling with writing the Linux root file system to a NAND device (MT29F2G08ABAEAH4-IT:E).</p>
<p>I have a UBI image created by Yocto as follows:</p>
<pre><code>mkfs.ubifs -r /path/to/rootfs -o /path/to/output/rootfs.ubifs -m 2048 -e 129024 -c 1600 -F
ubinize -o /path/to/output/rootfs.ubi -m 2048 -p 128KiB -... | 1 | 1,537 |
Kivy: Access configuration values from any widget | <p>I'm using kivy to create a small App for computer aided learning.</p>
<p>At the moment I have some problems with accessing config values.
I get the value with</p>
<p><code>self.language = self.config.get('basicsettings', 'language')</code></p>
<p>in the main App-Class. That works fine, however, I don't know how t... | 1 | 1,627 |
PHP Random Team Schedule Generator - Round Robin Scheduler | <p>After getting negative feedback from asking this question in a new question... here is my revised question. Yes it is the same project I am working on, but I was unclear that I needed to basically have a Round Robin type of scheduler.</p>
<p>I'm working on a Round Robin Style Hockey League Scheduler, and need some ... | 1 | 2,840 |
JSR303 custom validators being called twice | <p>I am creating a website using Spring MVC and for persistence I am using Spring Data JPA with Hibernate 4 as my JPA provider. Validation is being handled at present with Hibernate Validator. I have a problem whereby my validators are being called twice and I can't figure out why. The main reason this is a problem is ... | 1 | 5,484 |
emgu cv - exception with DetectMultiScale | <p>I try to detect faces on picture using emgu CV but i faced an exception</p>
<pre><code>SEHException was unhandled
</code></pre>
<p>on</p>
<p><code>Rectangle[] facesDetected = face.DetectMultiScale(gray, 1.1, 10, new Size(20, 20), Size.Empty);</code></p>
<p>Code:</p>
<pre><code>using System;
using System.Collect... | 1 | 2,518 |
c3p0 "getConnection" is slow | <p>I'm using c3p0 connection pool for communication between my (unsigned) Java applet and MySql db.
I have this code for initializing pool:</p>
<pre><code>DataSource pool = pools.get(db_name);
if(pool == null)
pool = initializePool(db_name);
return pool.getConnection();
</code></pre>
<p>Initialize pool method lo... | 1 | 2,232 |
Undefined reference errors for system libraries when static linking in CMake | <p>My goal is to be able to deliver, as close as possible, a single executable and hence I'm aiming for aiming as much as possible statically. But I've now run into some issues with libc. I get these errors when building my project:</p>
<pre><code>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libpthread.... | 1 | 2,137 |
Databind my Accordion control in Silverlight 4 | <p>I have been searching all over the web trying to find an example of databinding an Accordion control.</p>
<p>I have written a simple test app to try and databind, and I can get the headers to bind, but can't seem to figure out how to get the content to bind. Could someone help me out?</p>
<p>Here is my XAML:</p>
... | 1 | 1,043 |
Angular npm run serve:ssr fails | <p>when I run npm run serve:ssr, the terminal goes wild with lots of minified characters I think then fails with this error :</p>
<pre><code>Error: ENOENT: no such file or directory, open 'google/protobuf/api.proto'
at Object.openSync (fs.js:458:3)
at Object.readFileSync (fs.js:360:35)
at fetch (C:\site-angular-tempor... | 1 | 6,601 |
Scanner.nextLine() throws an Exception, if I close the first Scanner and create a new Scanner | <p>I want to implement a programm, which reads two strings from the user input.</p>
<pre><code> try
{
System.out.println( "please enter a valid URL ( i.e. http://www.uibk.ac.at )" );
Scanner inputScanner = new Scanner( System.in );
String urlString = inputScanner.next();
as... | 1 | 1,228 |
How to include properties from external file to hibernate.cfg.xml using spring in a standalone app(jar) | <p>I need to be able to store database config properties in an external file that well be used by the application jar and include it in form of jstl expressions. (like : ${password} etc.)?</p>
<pre><code><?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hiberna... | 1 | 2,617 |
Using Claims with OpenIdConnect.Server in ASP.NET 5 | <p>In the past 7 days I've tried to setup an ASP.NET 5 WebApi using <code>OpenIdConnect.Server</code> with the resource owner flow. </p>
<p>I was more or less successful in generating a token and accessing <code>[Authorize]</code> protected actions. </p>
<p>However, when I try to access <code>this.User.Identity.Claim... | 1 | 2,542 |
How can I create a page post using Facebook Javascript SDK? | <p>I need to be able to post to a user's business page using the Facebook Javascript SDK.</p>
<p>I have successfully logged my user's into facebook but when I try to use a function to post to the user's page, nothing happens. I have even tried to manually enter my own page id into the function to make it work but sti... | 1 | 2,629 |
How does one deploy a django application on OS X Server? | <p>How would one deploy a Django application on OS X Server 2.0 without using homebrew or a different flavor of python than the one shipped with OS X 10.8.1? I'm using the cocoa bindings in a Django application and had trouble getting it to work with homebrew on my desktop machine (running OS X 10.8.1); hence the reque... | 1 | 1,834 |
HTML5 video player some mp4 files not playing chrome | <p>So I'm trying to build a personnal streaming platform and I've done my best to follow the recommandations I've found everywhere for better compatibility/quality when streaming.</p>
<p>So I'm systematically encoding my video to video codec h264 with mp4 container with ffmpeg using this command:</p>
<pre><code>ffmpe... | 1 | 3,572 |
Entity Framework - CTP4 - Code First - How to turn off the automatic pluralization? | <p>My entity name is "Contact" and my table name is "Contact". However, the default pluralization support is making EF4 to look for a table named "Contacts". Anybody has any idea on how to turn off the pluralization support?</p>
<p><a href="https://web.archive.org/web/20151228050246/http:/... | 1 | 1,368 |
Multiple sliders on one page: How to make arrows target a specific set of slides? | <p>I am trying to create a portfolio site that contains multiple image sliders on the same page. I had the HTML, CSS & jQuery working for a single slider, but as soon as I added another--with the same classes--things got funky.</p>
<p>My question: how can I make the left & right arrows only target the slides t... | 1 | 3,062 |
Angular2 ngIf not updated if change within promise | <p>In our component, we have an upload form, and a confirm message.</p>
<blockquote>
<p>file-form.component.html</p>
</blockquote>
<pre><code><div class="tab-pane active" id="upload">
<div id="loader-wrapper" *ngIf="isUploadLoaderVisible">
<div id="loader"></div>
<p cl... | 1 | 1,780 |
AVL Tree Traversal, Search problems | <p>I am having a few problems in my AVL tree implementation.. The code for all the rotations and the adding all seem to be correct and I dry-run the program to thoroughly check that it is running logically correct. I seem to be having a problem in my tree traversal (in-order) because it only outputs a few integers from... | 1 | 4,389 |
Horizontal scroll with arrows skipping scroll position on second click | <p>I am working on a horizontal scroll bar with right and left arrows for smooth scrolling.
The idea is I'm getting getMenuPosition() + '100' to scroll left, and it does work on first click, but not on a second one.
For right scrolling with getMenuPosition() - '100' it works as expected.
I need to make the scrolling fo... | 1 | 2,185 |
Issue using ViewPager and PageTransformer with Android API <11 | <p>I need to write a custom transition for a ViewPager on an app with <code>android:minSdkVersion="9"</code>.</p>
<p>I'm trying to run the <code>ZoomOutPageTransformer</code> given <a href="http://developer.android.com/training/animation/screen-slide.html#zoom-out" rel="noreferrer">here</a>. </p>
<p>I get no compi... | 1 | 2,042 |
Is it possible to have a socket listening to two UDP IPs, one that is 127.0.0.1 (same machine) and a different computer at the same time? | <p>An eye-tracking application I use utilizes UDP to send packets of data. I made a python socket on the same computer to listen and dump the data into a .txt file. I already have this much working. </p>
<p>A separate application also written in python (what the eye-tracked subject is seeing) is running on a separate ... | 1 | 1,112 |
How to Read/Write to SQL database from console application (C#) | <p>I am new to SQL server. </p>
<p>As you can see my first function above is simply used to call the second function and pass a list as a parameter.<br>
Now I am parsing the info from the dividedTrans char array.
Each value means something and this I am displaying to the console.
However, I need to save it to an SQL... | 1 | 1,372 |
Why won't my UpdatePanel update my Listbox as I expect on button click? | <p>I have a form with a dropdownlist, two buttons, and two Listboxes inside an UpdatePanel. The Dropdownlist, and listboxes are all bound to SqlDatasources. The dropdownlist allows you to choose your department.</p>
<p>The first listbox shows a list of Jobs associated with what you've selected from the department.</p>... | 1 | 1,799 |
Why does AudioServicesCreateSystemSoundID throw an exception internally but return 0 as an error code? | <p>I’m running an iOS program in the 4.3.2, 5.0, and 5.1 Simulators, and I’m hitting a weird internal exception in AudioToolbox. I have a breakpoint set in Xcode (Xcode 4.3.1, running on 10.7.3) for all exceptions, and the debugger is breaking during a call to <code>AudioServicesCreateSystemSoundID()</code>:</p>
<pre>... | 1 | 1,168 |
CXF 2.7.0 web service deployment in Wildfly 10 | <p>Goal - Migrating EAR application from JBoss EAP 5 to Wildfly 10</p>
<p>Issue : Code has CXF 2.7.0 web service client code (to call third party web service) and its added to the EAR/lib folder. But during deployment, I am getting below exception</p>
<h1>log:</h1>
<pre><code>2016-02-26 12:17:48,075 ERROR [org.jboss... | 1 | 1,234 |
json4s scala.MatchError (of class scala.Tuple2) | <p>I have a custom class, that I want to convert to JSON but I am getting a weird error found here:</p>
<pre><code>Exception in thread "main" scala.MatchError: (23,com.xxx.dts.dq.common.utils.DQOpsStoreProfileStatus@5f275ae4) (of class scala.Tuple2)
</code></pre>
<p>Code Here:</p>
<pre><code>implicit val formats = o... | 1 | 1,145 |
Vuex "TypeError: Cannot read property 'data' of undefined" | <p>I take data through the store using Vuex and API. I'm a beginner using Vuex.
Is it because the data displayed previously has not been loaded? If it's true how to avoid this error.</p>
<p><strong>NOTE :</strong> I retrieve data from a different server. I intend to make 1 sub domain for admin in this sub domain secti... | 1 | 1,504 |
Custom AccessDeniedHandler not called | <p>I have implemented a custom AccessDeniedHandler:</p>
<pre><code>public class MyAccessDeniedHandler implements AccessDeniedHandler {
@Override
public void handle(HttpServletRequest request,
HttpServletResponse response,
AccessDeniedException accessDeniedException) throws IOException,
... | 1 | 4,625 |
How to create a Pivot table in Laravel | <p>I have a sponsorship app I'm creating and trying to get a pivot table working between my users and kids, but when I have a user sponsor a kid, the pivot table <code>kid_user</code> is not populated with the <code>kid_id</code> or the <code>user_id</code>. Not sure what I'm missing.</p>
<ul>
<li>A Kid can have as ma... | 1 | 1,112 |
How do I post to another website with a SAML assertion in MVC3? | <p>I have a SAML token formatted like so:</p>
<pre><code><saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" MajorVersion="1" MinorVersion="1" AssertionID="_341bea3b-f497-4a4f-adff-2bd65e44fd67" Issuer="http://127.0.0.1:81/" IssueInstant="2012-03-12T15:08:26.618Z">
<saml:Conditions NotBefore="2... | 1 | 1,939 |
Jetpack Compose : How to move up the floatingActionButton for snackbar? | <p>I am trying to make the floating action button move up to make room for the Snackbar to appear, which is the
normal behavior when using android xml UI files.</p>
<p>It looks like its not implemented in Scafford.</p>
<p>Please find below my code so far on Compose for desktop (But it should be similar on Android) :</p... | 1 | 1,779 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.