title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Maven Build Works, During Deployment Gets Class Not Found | <p>Using Eclipse Mars.2 4.5.2
The Maven build is successful. During deployment I get the following error:</p>
<p>java.lang.ClassNotFoundException: com.authy.AuthyApiClient from [Module \"deployment.mavenFlowChartDB5.war:main\" from Service Module Loader]"}}</p>
<p>In the Maven dependency directory I see the related d... | 3 | 6,764 |
Add info about address in google maps address | <p>i have problem implementing address visualization on markers within m google maps dynamic map.</p>
<p>My code is the following:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<ti... | 3 | 1,083 |
Should volatile and readonly be mutually exclusive? | <p>Suppose that I were designing a thread-safe class that wraps an internal collection:</p>
<pre><code>public class ThreadSafeQueue<T>
{
private readonly Queue<T> _queue = new Queue<T>();
public void Enqueue(T item)
{
lock (_queue)
{
_queue.Enqueue(item);
... | 3 | 1,686 |
Why when gcc is built from source, libstdc++ is built for wrong architecture, 32bit, while 64 is expected? | <p>I am trying to compile lftp from source using gcc, compiler that I have also compiled from source under my home folder.
On build step I get an error:</p>
<pre><code>/bin/sh ../libtool --silent --tag=CXX --mode=link g++ -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlin... | 3 | 1,167 |
JavaEE transactions - why is UserTransaction only required in some cases? | <p>We have a JavaEE application running in WildFly (18.0.1.final). Using JavaEE 8 with JDK 11.</p>
<p>In this application we have a few beans that persists data to a PostgreSQL database, using JPA (with hibernate). In the persistence.xml we define a JTA data source as follow:</p>
<p><code><jta-data-source>java:... | 3 | 1,910 |
php echo is displaying semicolon also | <p>php echo is displaing the semicolon which is suppose to end echo like this :</p>
<p>here is the code </p>
<pre><code> <html>
<head>
<style>
</style>
<link rel='stylesheet' type='text/css' href='main2.css' />
</head>
<body>
<?php
$servername = "localhost";
$u... | 3 | 1,113 |
c++ maze solver (find every solution) stack overflow | <p>I have an assignment to randomly generate a maze ("weird" ones are valid as well), then I have to find all solutions for the maze (a solution being finding a way from the first row or column to the last row or column), also determine the shortest one. I have this code here, but when I run it, half the time it gives ... | 3 | 2,061 |
Why don't the comments appear instantly in my React app project? | <p>I am working on my very first React application and i got stuck trying to create a comment section for a blog. Whenever i leave a comment under a post, it doesnt appear instantly but after i've refreshed or returned to the page.
In my console they do show up instantly.
Can anyone help me solve this?</p>
<p><strong>C... | 3 | 1,571 |
Change color of div with Ajax | <p>How to change color of div within ajax ?
The div is called rowMain , but i have several divs of same as listing records.</p>
<pre><code><script>
$(document).ready(function() {
$("#submit-productdescription").submit(function() {
var row = $(this).parent('.rowMain');
... | 3 | 1,130 |
EventSourceHttpClient never exits | <p>I'm trying to create some stuff on my Philips-Hue installation, using Symfony.
I'm able to control my lights, get motion sensor,... But all is working with GET requests. This is a very bad idea ;)</p>
<p>API provided by Philips comes with Events endpoint, as described here : <a href="https://developers.meethue.com/d... | 3 | 1,248 |
I succeeded allocating a pointer to an array of 3 ints in the heap, but I still don't understand how does the access to the array work? | <p>After several trials I've succeeded allocating a pointer to an array of 3 <code>int</code>s with a <em>new expression</em>. In the snippet below, I show first the use of this pointer in the stack, and then I show where I've got with the heap allocation, after several trials.</p>
<pre><code>#include <iostream>... | 3 | 1,155 |
Pull out records from 3 tables in Linq2Sql | <p>I have got 3 tables in my database. Company, Product and Lead. Below are my fields. </p>
<h2>Leads Table:</h2>
<pre><code>SELECT [Id]
,[BuySellTypeId]
,[ProductName]
,[Keywords]
,[CategoryId] // categoryid
,[SubCategoryId]
,[Description]
,[ProductImagePath]
,[Creatio... | 3 | 1,703 |
JSplit Pane Divder Location Fixing | <p>i have two Split Pane..here's the code..what i want is Vertical divider shouldn't be allowed to be dragged, it could be expandable, but should be fixed on the divider location mentioned, one should not be able to move it using mouse upwards or downwards as we generally can, here's the code, what do i need to add ?? ... | 3 | 1,184 |
How can I run a JavaScript function when the URI source of an image renders? | <h1>Background</h1>
<p>My big-picture goal is to display an image such that the following conditions are satisfied:</p>
<ul>
<li>The entire viewport is filled by the image</li>
<li>At least one dimension of the image fits within the viewport</li>
<li>The image is not stretched</li>
</ul>
<p>My solution is contained in ... | 3 | 4,148 |
Error using libraries provided by CGAL with qt creator | <p>I'm currently trying to use the cgal library in a project in qt creator (on windows). I'm all new to this ide and also to c++ but cgal offers some functionality i'd like to test. I tried to run a cgal example in qt creator in order to find out if the library is included correctly. Unfortunately i get the error messa... | 3 | 1,170 |
Exporting CALayer with implicit animation via AVExportSession | <p>I'm trying to export an animation for my custom CALayer with a custom property via AVExportSession, please find the setup below:</p>
<pre><code>class CustomAnimatable: CALayer
{
@NSManaged var brightness: CGFloat
override init(layer: Any) {
super.init(layer: layer);
if let l = layer as? Cu... | 3 | 1,254 |
PHPStorm, Xdebug and Google Chrome debugging | <p>I spent all day on this and still cannot get the debugger to work in PHPStorm with Google Chrome. These are the steps I took insofar:</p>
<p>1) Locate xdebug extension after installation:</p>
<pre><code>locate xdebug.so
# => /usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
</code></pre>
<p>2) Insert... | 0 | 1,671 |
How to set the width of a React component during test? | <p>I'm trying to test a slider component.
<img src="https://www.dropbox.com/s/otz0bcaglc2yp5w/Screenshot%202015-10-24%2020.33.51.png?dl=1" alt=""></p>
<p>This slider component can be variable in width. When you click on the "track" of the slider it should change the value and trigger an <code>onChange</code> callback... | 0 | 1,846 |
ASP.NET MVC 4 Html.BeginForm in Partial View , values after post not right | <p>Main Page
-> Section 1 (has some dropdowns and a save button)</p>
<pre><code> <div id="tab-section1">
@{Html.RenderPartial("_Section1", Model.Section1);}
</div>
<div id="tab-section2">
<div id="section2">
@{Html.RenderP... | 0 | 1,652 |
What's wrong with my java code | <p>I'm learning java.
My sample's directory is like the following:</p>
<blockquote>
<p>./src<br>
./src/yxy<br>
./src/yxy/pack<br>
./src/yxy/pack/testf<br>
./src/yxy/pack/testf/Person.java<br>
./Hello.java<br>
./Hello.class </p>
<p>./testpack<br>
./testpack/yxy<br>
./testpack/yxy/pack<br>
./t... | 0 | 1,423 |
Java Networking: Explain InputStream and OutputStream in Socket | <p>I have created a server by using <code>ServerSocket</code>. After that, I have created Client using <code>Socket</code>, and connect to this server.</p>
<p>After that, I do "some stuff" with InputStream and OutputStream is taken from Socket Object. But, I don't really understand inputStream and outputStream so much... | 0 | 2,427 |
Nginx reverse proxy to Heroku fails SSL handshake | <p>I'm unfortunately not much of a system administrator and have come upon a problem that has me banging my head against the wall.</p>
<p>The short story is that I'm running Nginx on EC2 (Ubuntu 14.04.4 LTS) to (a) host my company's marketing site (<a href="https://example.com" rel="noreferrer">https://example.com</a>... | 0 | 1,444 |
How to authenticate Google Drive without requiring the user to copy/paste auth code? | <p>I'm playing around with the DriveCommandLine applicaiton to learn the Drive API a bit. I'm just wondering if it is possible to authenticate my desktop application with Google Drive without the user needing to copy/paste an auth code from the browser? But rather just have a token passed back to the app from the bro... | 0 | 1,100 |
Make images the same size in bootstrap grid | <p>I am creating an image gallery with 3 rows, each containing 3 images by using the Bootstrap grid system. All of the images have different size. What I am trying to do is make all of the images the same size.
I tried to use the max-height or max-width in my CSS, however it didn't help to make all the images (thumbnai... | 0 | 1,587 |
Android get sms from inbox, optimized way to read all messages and group them | <p>Hi am implementing a SMS App, now am able to retrieve all messages with their respective contact info like display name, photo uri.. and am displaying them in a custom list where on item click takes you to respective discussion. Here my issues is the time taking to sync all these messages, </p>
<ol>
<li>I need to o... | 0 | 3,908 |
ElementRef is undefined | <p>I’m working in an angular 6 application. I have a textarea that I’d like to give focus to as soon as the page loads. I’m not able to do so.</p>
<p>Here is what the page looks like:</p>
<pre><code><div fxLayoutAlign="begin">
<button mat-button color="primary" [routerLink]="['/Administration']">
&l... | 0 | 1,483 |
Figure position in markdown when converting to PDF with knitr and pandoc | <p>I'm trying to control the position of a plot when converting to PDF using knitr and pandoc. My .Rmd file looks this:</p>
<pre><code># My report
Some text some text some text some text some text some text some text some text some text
```{r myplot, echo=FALSE, fig.pos="placeHere", results='hide'}
library(ggplot2... | 0 | 1,206 |
Boost error, trouble compiling xtime.hpp | <p>I've been working on a C++ project using Boost, and between compiles, I must have upgraded something in boost without meaning to or something, because now Boost dependencies won't compile:</p>
<pre><code>In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost... | 0 | 2,150 |
java.security.NoSuchAlgorithmException: RSA Signature not available | <p>this is exception </p>
<pre>
Exception in thread "main" java.security.NoSuchAlgorithmException: RSA Signature not available
at java.security.Signature.getInstance(Signature.java:229)
at MailClient.main(MailClient.java:52)
</pre>
<p>this is my code</p>
<pre><code>import java.io.*;
import java.net.*;
import... | 0 | 2,720 |
Flutter After Upgrade can't run application version solving failed | <p>Nope. <a href="https://stackoverflow.com/questions/51375674/error-after-running-flutter-upgrade">This answer doesn't work</a> this time for me.</p>
<p>My <code>flutter doctor -v</code></p>
<pre><code>[✓] Flutter (Channel master, v0.5.9-pre.68, on Linux, locale en_US.UTF-8)
• Flutter version 0.5.9-pre.68 at /ho... | 0 | 1,053 |
Running Socket Programming code in Eclipse | <p>I have written a program on Socket Programming, and I created a client and a server. Codes for both are as follows:</p>
<p>CLIENT:</p>
<pre><code> import java.net.*;
import java.io.*;
public class GreetingClient
{
public static void main(String [] args)
{
String serverName = args[0];
int po... | 0 | 1,317 |
Google Maps API v3: Close infowindow when DOM element is clicked | <p>I'm playing around with Google maps for the first time, so I looked at a nice tutorial over at CSS Tricks: <a href="http://css-tricks.com/google-maps-slider/" rel="nofollow noreferrer">http://css-tricks.com/google-maps-slider/</a> I like working with jQuery better than pure JS, and this tutorial makes a nice way to ... | 0 | 1,715 |
PHP SoapClient: How to prefix SOAP parameter tag name with namespace? | <p>I'm using PHP's <code>SoapClient</code> to consume a SOAP service but am receiving an error that the SOAP service cannot see my parameters.</p>
<pre><code><tns:GenericSearchResponse xmlns:tns="http://.../1.0">
<tns:Status>
<tns:StatusCode>1</tns:StatusCode>
<tns:StatusMessage>... | 0 | 1,290 |
jquery mobile data-theme not working | <p>I have a simple log in page and I'm trying to apply theme "b" to it, but it doesn't work. The page looks dark and not the way theme b should look like.
Any idea?</p>
<p>Thanks.</p>
<p>
<br>
<br>
My header</p>
<pre><code> <link rel="shortcut icon" href="img/favicon.ico">
&... | 0 | 1,126 |
Wrong number of segments in token (OAuth Google Api) | <p>My end goal is to send email to myself via Google Gmail API.</p>
<p>And here is my problem.</p>
<p>When i'm getting my access token an error pops up</p>
<pre><code> Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Wrong number of segments in token: '
</code></pre>
<p>I read here <a href="htt... | 0 | 1,154 |
Dynamic Menu loading in ASP.Net MVC3 Razor | <p>I want to ask about Dynamic Database Driven Menu Loading in ASP.Net </p>
<p>MVC3 razor . </p>
<p>This is my</p>
<p>1.View Code </p>
<p>2.Model for Menu</p>
<p>3.Model For Menu Items</p>
<p>4.Navigation Model Structure</p>
<p>In this project i have different User Logins .For each login they are </p>
<p>limi... | 0 | 4,476 |
Missing dependencies causing Keyring error when opening Spyder3 on Ubuntu18? | <p>I'm fairly new to programming and such. I'm trying to use Spyder3, and I keep getting this error (below). I am using Geforce 1080ti, Ubuntu 18.04.01, python3.3.6, python2 is not installed. I tried $ pip3 install keyring, which is now installed but still receiving error.</p>
<pre><code>$ spyder3
Error initializing p... | 0 | 1,488 |
Error message - Element not interactable Selenium webdriver | <p><a href="https://i.stack.imgur.com/P4Koe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P4Koe.png" alt="enter image description here"></a>I have created the following code which is meant to pull data from the webiste and convert to excel.</p>
<p>I have no problems getting the data into excel, ho... | 0 | 1,060 |
Changing styles in Word | <p>I am very new to programming, so forgive my ignorance. </p>
<p>I am trying to create specific headings in a document that does not have any or has different heading styles assigned. What precedes the text in the headings are numbers. The numbers are specific and essentially represent the content of the material ... | 0 | 1,341 |
UIImageView Gestures (Zoom, Rotate) Question | <p>I would like to make 2 operations to an <code>UIImageView</code> zoom, rotate, I have 2 problems:</p>
<blockquote>
<p><strong>A.</strong> I make an operation for zoom for ex. and when I try to make rotation the <code>UIImageView</code> is set to initial size, I would like to know how to keep the zoomed <code>UIImage... | 0 | 1,089 |
java.lang.IllegalStateException: The specified child already has a parent | <p>I am using fragments, when I instantiate a fragment the first time it it. but the second time I got this exception. I couldn't find the line where I got the error?</p>
<pre><code> 04-04 08:51:54.320: E/AndroidRuntime(29713): FATAL EXCEPTION: main
04-04 08:51:54.320: E/AndroidRuntime(29713): java.lang.IllegalSta... | 0 | 1,229 |
How to implement a Flutter Search App Bar | <p>There are a lot of tutorials but rather than help me to move forward, I get lost in all possible options or I don't know how to improve the code (I would like to use an application that displays a list that use more than only the name of three fruits or three cities ?)</p>
<p>I found tutorials to create a nice Searc... | 0 | 1,289 |
where to find missing optional ant tasks? | <p>I wanted to have a look which system properties are set here (and to which values), so the easiest way (if not writing a new Java program here) would be adding some lines to my ant build script:</p>
<pre><code> <target name="properties">
<echoproperties/>
</target>
</code></pre>
<p>But run... | 0 | 1,918 |
C++ - Detours WinSock Hooking | <p>What I am trying to do is use <a href="http://research.microsoft.com/en-us/projects/detours/" rel="nofollow noreferrer" title="Detours - Microsoft Research">the Detours library</a> to hook into an applications WinSock2 send() and recv() functions (a packet logger).</p>
<p>While it does work for the send() function,... | 0 | 3,338 |
Android 2.3.x javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found | <p>I am receiving this error only on (maybe some) 2.3.x devices. it works for any other devices running an Android version above that. </p>
<p>Here is my HTTPRequestController:</p>
<pre><code>public class HttpRequestController {
private final static String TAG = "HttpRequestController";
private static HttpRequestCo... | 0 | 2,984 |
sending "GET" request over proxy using httplib in python | <p>i am trying to send a basic get request to "www.python.org" to fetch "www.python.org/index.html" using the httplib module in python.I use a proxy server "10.1.1.19:80".My code with the error message is shown.Please suggest me with the mistakes i'm commiting.Regards....</p>
<pre><code>>>> import httplib ... | 0 | 1,242 |
Spring Boot 2.0 Integration Test for JmsTemplate | <p>I have a very simple MessageHandler class that thanks to Spring Boot works at runtime with just the following lines of code and config:</p>
<p>msg handler</p>
<pre class="lang-java prettyprint-override"><code> @Component
public class MessageHandler {
@JmsListener(destination = "${solace.jms.queueNa... | 0 | 4,123 |
How to authenticate to Office 365 portal via C# | <p>I have an Exchange tenant with Microsoft (company.onmicrosoft.com), an admin account (admin@company.onmicrosoft.com), and the admin page through which I manage my (<a href="https://portal.microsoftonline.com/default.aspx?lc=1033" rel="nofollow noreferrer">settings</a>).</p>
<p>Recently, there is a project I took on... | 0 | 8,177 |
pass string from java to c++ and using popen with NDK cased errors? | <p>i am using NDK to join java with C++ this my code :</p>
<p><b>MainActivity.java </b></p>
<pre><code>public class MainActivity extends Activity {
/*Don't forget to load the library!!*/
static {
System.loadLibrary("NDK1");
}
public native String exec(String cmd);
</code></pre>
<p><b> Android.mk</b></p>
<pre>... | 0 | 1,152 |
Calling setCollectionViewLayout:animated does not reload UICollectionView | <p>I am using a UICollectionView with two custom layouts - which are subclassed from <code>UICollectionViewFlowLayout</code></p>
<p>When my view first loads I set it to a default view using: </p>
<pre><code>[self.collectionView setCollectionViewLayout:self.tableViewLayout];
</code></pre>
<p>This calls: <code>cellFor... | 0 | 2,170 |
How do Inheritance and JAXB work together? | <pre><code>public abstract class Parent<T> {
protected List<T> list;
@XmlTransient //Question why do we have to give this here?
public abstract List<T> getList();
public abstract void setList(List<T> list);
}
@XmlRootElement(name = "child1")
class Child1 extends Parent<Ext... | 0 | 1,864 |
PHPExcel export not working : displays "the website cannot be reached" | <p>I have cloned a project from server and installed in my local setup.
I am trying to export excel file to the browser using PHPExcel. It is working fine in the server. But there is problem with the local setup.
Also I checked number of columns and fields and they are fine.
Below is the code: </p>
<pre><code><?ph... | 0 | 1,659 |
How to access Session or Request object in Velocity Template | <p>I am trying to access HttpServletRequest in some velocity template but never succeed.
I have already tried following flavor of syntax </p>
<p>Current URL: $req.get("attributes").get("CURRENT_URL"))
Result > Current URL: $req.get("attributes").get("CURRENT_URL"))</p>
<p>Current URL: $request.get("attributes").g... | 0 | 1,050 |
How do I update a view model from an edit page in MVC3? | <p>I have three models that are coming together to create one view model and I'd like to be able to edit that view model when clicking "edit". I can't find a straight forward example of how this works (anywhere).</p>
<p>I'm not sure if I'm going down the right path. I am able to get the view with the data. At this poi... | 0 | 1,537 |
Xml not parsing String as input with sax | <p>I have a string input from which I need to extract simple information, here is the sample xml (from mkyong):</p>
<pre><code><?xml version="1.0"?>
<company>
<staff>
<firstname>yong</firstname>
<lastname>mook kim</lastname>
<nickname>mkyong&l... | 0 | 1,401 |
Launching nested processes in multiprocessing | <p>I have a main file that launches multiple processes and one of the processes again launches multiple processes. I am having problems launching the nested set of processes. </p>
<p>I have the following code in one file:</p>
<pre><code># parallel_test.py
import Queue
import multiprocessing
import time
import thread... | 0 | 1,051 |
ASP.NET MVC Validation in Partial View and return to Parent view | <p><strong>My Background</strong></p>
<p>I am working on first serious project using ASP.NET MVC 4. I am working on web development since classic ASP days and have got good hold on Webforms. MVC is very exciting and am doing good progress. But now I am in a situation where I need help on this forum.</p>
<p><strong>Qu... | 0 | 1,365 |
flask-sqlalchemy: AttributeError: type object has no attribute 'query', works in ipython | <p>I'm creating a new flask app using flask-sqlalchemy and flask-restful with Python 3.4. I've defined my User model as such:</p>
<pre><code>from mytvpy import db
from sqlalchemy.ext.declarative import declared_attr
class BaseModel(db.Model):
__abstract__ = True
id = db.Column(db.Integer, primary_key=True)... | 0 | 1,579 |
Insert in Cursor loop and Exception handling - Oracle | <p>I have a table called DUD which is pretty much Static (which means once the data is inserted it never changes). I query data from DUD and populate a staging table CAR from which Webmethods polls everyday.</p>
<p>Usually it is 10 records for <strong>every transaction</strong>. There are two transactions per day.</p>... | 0 | 1,475 |
Google Maps API v2 grey screen | <p>I'm trying to create and application that connects with Google maps. But when the screen loads where the map should be its just grey. How do I fix this?</p>
<p>The important message from my logcat.</p>
<pre><code>06-11 03:32:55.196: E/Google Maps Android API(11671):
Ensure that the following correspond to what is... | 0 | 2,922 |
TypeError: Cannot read property 'node' of undefined | <p>I'm trying to install NPM.</p>
<p>I first ran </p>
<p><code>brew install node</code></p>
<p>then</p>
<pre><code>curl -O https://www.npmjs.org/install.sh
</code></pre>
<p>then</p>
<pre><code>~ % sh install.sh
</code></pre>
<p>this is what I get </p>
<pre><code>tar=/usr/bin/tar
version:
bsdtar 2.8.3... | 0 | 1,713 |
method does not override method in its superclass | <p>I'm trying to set the title for my action bar but its given me the error message "method does not override method in its superclass". I'm extending fragment.</p>
<p>Here's the portion im having problems with</p>
<pre><code> @Override
public void setTitle(CharSequence title) {
mTitle = title;
getActivity().... | 0 | 1,499 |
How to use Kalman filter in Python for location data? | <p>[EDIT]
The answer by @Claudio gives me a really good tip on how to filter out outliers. I do want to start using a Kalman filter on my data though. So I changed the example data below so that it has subtle variation noise which are not so extreme (which I see a lot as well). If anybody else could give me some direct... | 0 | 2,322 |
Perforce error - cannot submit from non-stream client | <p>Coming from GIT and SVN background, I've set up my P4V in windows, managed to get the content of my repository into my local folder (somehow), but once I made modification and create new files in my local folder, I cant submit it back to Perforce. It gives error:</p>
<p>//depot/main/p4config.txt - warning: cannot s... | 0 | 1,064 |
How to filter resource in Maven, replacing with a dependencies artifactId? | <p>I'm trying to build a jar that has an xml file as a resource. I'd like to apply a filter to that xml to insert the name of a dependency into the xml. The filtering is working, because I was able to drop in <code>${project.build.finalName}</code> and get it replaced. I found <a href="https://stackoverflow.com/ques... | 0 | 1,092 |
java.sql.SQLException: Parameter number X is not an OUT parameter | <p>I'm struggling with getting the result OUT variable from a MySQL stored procedure. I get the following error:</p>
<pre><code>java.sql.SQLException: Parameter number 3 is not an OUT parameter
</code></pre>
<p>The stored procedure looks like this:</p>
<pre><code>CREATE DEFINER=`cv_admin`@`localhost` PROCEDURE `Chec... | 0 | 1,211 |
Spring portlet mvc: @Valid does not seem to work | <p>I created a bean class and use it in my controller but it does not seem to work.
Namely even though I enter an invalid age, <code>result.hasErrors</code> is still false.</p>
<p>Bean class:</p>
<pre><code>public class User{
@Min(13)
private int age;
private String name;
public int getAge() {
... | 0 | 1,479 |
Valgrind not showing line numbers in spite of -g flag (on Ubuntu 11.10/VirtualBox) | <p>I'm following 'Learn C the Hard Way', specifically <a href="http://c.learncodethehardway.org/book/learn-c-the-hard-waych5.html#x10-290005">the chapter on Valgrind</a>. This chapter gives you a deliberately wrong program to show how Valgrind works.</p>
<p>When I run the exercise under Valgrind I do not get line numb... | 0 | 1,091 |
Using Custom Fonts [java.io.IOException: Error reading font data.] | <p>The title doesn't allow me to say Problem, so the actual error message was -</p>
<pre><code>java.io.IOException: Problem reading font data.
at java.awt.Font.createFont(Unknown Source)
at AddFont.createFont(AddFont.java:11)
at MainFrame$1.run(MainFrame.java:105)
at java.awt.event.InvocationEvent.dispatch(Unknown Sou... | 0 | 1,102 |
Object-fit not affecting images | <p>I've been trying to use <code>object-fit</code> on a few images placed inside <code>article</code> elements, but it doesn't seem to affect them at all.</p>
<p>The desired value for the <code>object-fit</code> property would be <code>cover</code>, but as of right now, none of the other values seem to work either.</p... | 0 | 1,117 |
Gstreamer with gst-omx Raspberry Pi | <p>I compiled the gstreamer with gst-omx following this tutorial: <a href="http://www.onepitwopi.com/raspberry-pi/gstreamer-1-2-on-the-raspberry-pi/" rel="nofollow">http://www.onepitwopi.com/raspberry-pi/gstreamer-1-2-on-the-raspberry-pi/</a></p>
<p>Everything went fine and in the end when i ran gst-inspect-1.0 | grep... | 0 | 3,316 |
No qualifying bean of type available in SpringBoot Application | <p>When running my SpringBoot application, I am getting this error: </p>
<blockquote>
<p>An exception occurred while running. null: InvocationTargetException: Error creating bean with name 'bookController': Unsatisfied dependency expressed through field 'bookRepository'; nested exception is org.springframework.bean... | 0 | 2,125 |
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException Error | <p>Hello I'm a new programmer at an high school level as a result I do not know much about programming and am getting quite a few errors which have been resolved while others I completely do not understand. I am to make a simple <code>Check Box</code> selection program where the user gets to pick between a variety of c... | 0 | 2,930 |
What are the real-world strengths and weaknesses of the many frameworks based on backbone.js? | <p>Hope that someone can share their experience with some of the latest emerging backbone.js variants out there.
I have some good experience with backbone/underscore/require in several projects and I will like to take the next step towards more advanced solutions for complex application structure.</p>
<p>I know the fo... | 0 | 1,531 |
The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven' | <p>I am trying to configure JSF+Spring+hibernate and I'm tying to run a test but when I use this "tx:annotation-driven" on my application-context.xml file, I get this error: </p>
<blockquote>
<p>The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven' </p>
</blockquote>
<p... | 0 | 2,139 |
'Connection timed out' (Could not send message) on SOAP request (but service isn't down) | <p>I'm getting 'Connection timed out' on a SOAP request to another company's webservice. I have used wsimport to create the Java classes from the wsdl. I don't think its a problem on the other companies end, because they have provided me with a little app which uses the webservice to quickly test what results I should ... | 0 | 1,995 |
Error : Can' t connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable | <p>I've got 2 applications that are working well except on production environment for 1 feature. This feature is an excel generation from a simple table. On all my others environment the generation of the excel is OK, but when I am trying to use it on production environment. I've got this error in log and a naugthy <st... | 0 | 1,988 |
How to pop up a dialog to confirm delete when user long press on the list item? | <p>I am learning from a online tutorial, and i try to implement some function by my own.
How can i pop up a dialog to alert user when detect a long press on list item? Following is some code from that tutorial:</p>
<pre><code>public class FriendList extends ListActivity
{
private static final int ADD_NEW_FRIEND_ID... | 0 | 1,167 |
jersey NoClassDefFoundError: org/objectweb/asm/ClassVisitor exception | <p>First time I'm trying a WebService using jersey. The below code I got from some blog.
I am getting following 500 error when I'm trying Java Web service using jersey client</p>
<pre><code>javax.servlet.ServletException: Servlet.init() for servlet Jersey Root REST Service threw exception
org.apache.catalina.auth... | 0 | 2,733 |
Error - Illegal static declaration in inner class | <p>What does this mean?</p>
<pre><code>Illegal static declaration in inner class Mobile.mymobile
modifier 'static' is only allowed in constant variable declarations
Line 75, public static void main(String[] args) {
</code></pre>
<p>My code:</p>
<pre><code>/**
* to write a simple java class Mobile that models a... | 0 | 1,222 |
Vue-i18n 'Cannot read property '_t' of undefined at Proxy.Vue.$t' | <p>Having issues incorporating vue-i18n into my app. Used <a href="https://medium.freecodecamp.org/how-to-add-internationalization-to-a-vue-application-d9cfdcabb03b" rel="noreferrer">this page</a> as inspiration.</p>
<pre><code> <b-navbar-nav class="ml-auto" >
<b-nav-item-dropdown :text="display_name" ri... | 0 | 1,037 |
How to add image to navigation drawer/ listeview? | <p>New to Android, I have a navigation drawer which is working perfectly. But now I want to insert image for each of the option - like 1 image for "home" and another for "scan barcode" etc. </p>
<p>I did some tutorial search for this, but unable to find the suitable solution. Any suggestions? thanks in advance.</p>
<... | 0 | 5,935 |
Redirect print command in python script through tqdm.write() | <p>I'm using <code>tqdm</code> in Python to display console-progressbars in our scripts.
However, I have to call functions which <code>print</code> messages to the console as well and which I can't change.
In general, writing to the console while displaying progress bars in the console messes up the display like so:</p... | 0 | 1,389 |
Serializing result of a LINQ IEnumerable | <p>I have a simple value type:</p>
<pre><code> [Serializable]
private struct TimerInstance
{
public TimerInstance(string str, long nTicks)
{
_name = str;
_ticks = nTicks;
}
private readonly string _name;
private readonly long _ticks;
... | 0 | 1,993 |
Entity Framewok Code First "ADO.NET provider not found" with local SQL Server CE DLL's | <p>I am writing a C# application which uses SQL Server CE 4.0 files, which are accessed through the Entity Framework 6.0 via code-first. (The application needs to be able to use local dll's for the SQL Server CE connection i.e. the application needs to be XCOPY deployable). The application runs fine on my development m... | 0 | 1,078 |
Why do I have a Kernel Error in Jupyter Notebook? | <p>I am a newbie to python. I am getting the below error in Kernel while opening jupyter notebook. Any ideas how I can resolve it? Installation of jupyter has been done via Anaconda3 - tried reinstalling and setting environment variables, but no luck so far. Any help would be greatly appreciated.</p>
<pre><code> Trace... | 0 | 1,368 |
How to flip an image horizontally | <p>HiI was wondering how to flip and image horizontally, for a practce task I was given a code that reads an image, inverting it to an image indicating it's brightness from 0-5, I had to flip an image.</p>
<p>This is my code of my reading an image and drawing it</p>
<pre><code>public int[][] readImage(String url) throw... | 0 | 1,587 |
onScroll event is not firing for listview | <p>I am developing an app where I need to show some list view control. I am just implementing the <code>OnScrollListener</code> in my activity in order to monitor my listview content but it's not invoking the onScroll event when I set the layout for my activity. If i comment that block then it invokes it just fine. How... | 0 | 1,461 |
Chart.js Doughnut with rounded edges | <p>I created a donut chart with Chart.js and I want it to have rounded edges at both ends.
I want it to be like this:</p>
<p><a href="https://i.stack.imgur.com/1nJMG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1nJMG.png" alt="The way I want it"></a></p>
<p>But I have it like this, with sharp edges:</p>
... | 0 | 1,235 |
CORS Error: “requests are only supported for protocol schemes: http…” etc | <p>I am trying to run a simple application. I have an Express backend which returns a JSON string when visited at <code>localhost:4201/ticker</code>. When I run the server and make a request to this link from my Angular Service over <code>http</code>, I get the following error:</p>
<blockquote>
<p>XMLHttpRequest can... | 0 | 1,440 |
React Jest test fails to run with ts-jest - Unexpected token on imported file | <p>I have a test for a test for a TSX file written in a JSX file which fails to run due to unexpected token:</p>
<pre><code>Test suite failed to run
Jest encountered an unexpected token
This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.
By de... | 0 | 1,664 |
How to draw circle in unity by shader and anti-aliasing | <p>I have drawn a circle by shader, but I can't get anti-aliasing to work.</p>
<p>I tried finding an answer here <a href="http://answers.unity3d.com/questions/521984/how-do-you-draw-2d-circles-and-primitives.html" rel="noreferrer">http://answers.unity3d.com/questions/521984/how-do-you-draw-2d-circles-and-primitives.ht... | 0 | 1,669 |
Difference between Convert.ToBase64String/Convert.FromBase64String and Encoding.UTF8.GetBytes/Encoding.UTF8.GetString | <p>I currently am learning Symmetric Cryptography in .NET. I wrote a demo as following: </p>
<pre><code> private byte[] key = Encoding.ASCII.GetBytes("abcdefgh");
private byte[] IV = Encoding.ASCII.GetBytes("hgfedcba");
private byte[] encrypted;
public Form1()
{
InitializeComponent();
... | 0 | 1,655 |
error: package javax.servlet does not exist | <p>I was trying to implement a login filter in my web app with jsf 2, following this guide:</p>
<p><a href="https://stackoverflow.com/tags/servlet-filters/info">https://stackoverflow.com/tags/servlet-filters/info</a></p>
<p>after I compiled my filter and added the .class in "web-inf/classes" (as the guide says) the f... | 0 | 5,332 |
Seeing "render is not a function" when trying to use Context API | <p>I'm trying to learn the Context API, and what I want to achieve, is showing the Logged In user in my header, as well as manipulate my menu options based on the logged in state (Is it safe to store 'isAuthenticated' in state?)</p>
<p>My context class:</p>
<pre><code>import React from 'react';
const Context = React... | 0 | 1,562 |
AngularJS component data binding not working properly | <p>In the code below you can see I have a counter component that fires events on increment and decrement and those are bound to an output that is displayed. These events are on $rootScope so they can be heard on another component which works too. What doesn't work is the data binding on my watchercomponent. If you look... | 0 | 1,104 |
Error 'Unknown table engine 'InnoDB'' on query. after restarting mysql | <p>I have mysql DB on server S1 (mysql version 5.1.41-3ubuntu12.7-log), i have created master-slave for this DB on server S2 (mysql version 5.1.54-1ubuntu4-log).<br>
the DB on S1 was using one data file (ibdata). after dumping the DB to S2 i set innodb_file_per_table=1. this made every table to have its own ibd file. n... | 0 | 1,093 |
WebFilter urlPatterns ignored | <p>I have read numerous examples though I seem to have an 'exact' copy of them, so I cannot figure out why my filter will execute when I navigate to <code>/login</code> instead of <code>/restricted/*</code>.
I have tried both annotations (as in the example below) and XML to define the WebFilter.</p>
<p><strong>The We... | 0 | 1,426 |
Selenium can't find element by name or id (python) | <pre class="lang-py prettyprint-override"><code>from selenium import webdriver
import os
from selenium.webdriver import chrome
driver = webdriver.Chrome()
driver.get("http://nmcunited.me.showenter.com/%D7%9C%D7%94-%D7%9C%D7%94-%D7%9C%D7%A0%D7%93.html")
driver.implicitly_wait(15)
christmasTag = driver.find_element_by_i... | 0 | 1,230 |
Spring upload file problems | <p>I need to upload file from browser to server. I use spring 3.2 as my web framework.</p>
<p>So i configured my app like this.</p>
<p>1 - I got web.xml </p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.... | 0 | 1,762 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.