title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Order of legend entries in ggplot2 barplots with coord_flip() | <p>I'm struggling get the right ordering of variables in a graph I made with ggplot2 in R.</p>
<p>Suppose I have a dataframe such as:</p>
<pre><code>set.seed(1234)
my_df<- data.frame(matrix(0,8,4))
names(my_df) <- c("year", "variable", "value", "vartype")
my_df$year <- rep(2006:2007)
my_df$variable <- c(r... | 0 | 1,615 |
Piping for input/output | <p>This question follows from my attempt to implement the instructions in:</p>
<p><a href="https://stackoverflow.com/questions/1734932/linux-pipes-as-input-and-output">Linux Pipes as Input and Output</a></p>
<p><a href="https://stackoverflow.com/questions/2784500/how-to-send-a-simple-string-between-two-programs-using... | 0 | 1,530 |
How do I rewrite my MySQL update statement to eliminate "Truncated incorrect INTEGER value" warnings? | <p>I'm using MySQL 5.5.37. I want to eliminate the warnings from my update statement, which are shown below ...</p>
<pre><code>update resource r
set grade_id = convert(substring_index(substring_index(
r.description, 'Grade ', -1), ' ', 1), unsigned integer)
where r.description like '% Gra... | 0 | 1,320 |
How to use default value in the builder pattern if that value is not passed and also make thread safe? | <p>I am trying to use Builder Pattern for my class.. </p>
<p>Below is my Builder class which I have built by following Joshua Bloch version as he showed in Effective Java, 2nd Edition. Our customer will mostly pass <code>userId</code>, <code>clientId</code> always but other fields are optional and they may or may not ... | 0 | 1,288 |
View Model IEnumerable<> property is coming back null (not binding) from post method? | <p>I have a view model that contains a Product class type and an IEnumerable< Product > type. On the post the first level product object comes back binded from the viewmodel whereas the product enum is coming back null. </p>
<p>Why is the IEnumerable< Prouduct> property not getting binded to my view model per ... | 0 | 1,153 |
Room: Cannot access database on the main thread since it may potentially lock the UI for a long period of time | <p>In the main activity, I have LiveData which contains members and a click listener. If I click on a member, then his ID is passed with intent.putExtra. That ID is later passed on to the method open in this activity. With this activity, I want to see the details of a member. In my MemberInfo activity, I marked a line... | 0 | 1,958 |
Java 8 stream objects significant memory usage | <p>In looking at some profiling results, I noticed that using streams within a tight loop (used instead of another nested loop) incurred a significant memory overhead of objects of types <code>java.util.stream.ReferencePipeline</code> and <code>java.util.ArrayList$ArrayListSpliterator</code>. I converted the offending ... | 0 | 1,962 |
Clicking a button with Selenium in Python | <p><strong>Goal</strong>: use Selenium and Python to search for company name on LinkedIn's search bar THEN click on the "Companies" button in the navigation to arrive to information about companies that are similar to the keyword (rather than individuals at that company). See below for an example. "CalSTRS" is the comp... | 0 | 1,489 |
Android Studio - Issue in build.gradle uncaught translation error ExecutionException OutOfMemory | <p>I am having a strange problem with my Android app in Android Studio. Everything seemed to be working fine, until today after adding some <em>new files</em> and making some updates to <strong>build.gradle</strong>.</p>
<p>The error message I am seeing is the following:</p>
<pre><code>Uncaught translation error: jav... | 0 | 1,224 |
Why does C++ output negative numbers when using modulo? | <p><strong>Math</strong>:</p>
<p>If you have an equation like this:</p>
<pre><code>x = 3 mod 7
</code></pre>
<p>x could be ... -4, 3, 10, 17, ..., or more generally:</p>
<pre><code>x = 3 + k * 7
</code></pre>
<p>where k can be any integer. I don't know of a modulo operation is defined for math, but the factor rin... | 0 | 1,283 |
Can an Airflow task dynamically generate a DAG at runtime? | <p>I have an upload folder that gets irregular uploads. For each uploaded file, I want to spawn a DAG that is specific to that file.</p>
<p>My first thought was to do this with a FileSensor that monitors the upload folder and, conditional on presence of new files, triggers a task that creates the separate DAGs. Concept... | 0 | 1,824 |
Hibernate encodes wrong while persisting objects [UTF-8] | <p>I'm facing with UTF-8 encoding problem while persisting my model objects. In Turkish '<strong>ı</strong>' is a letter. Also there're some other Turkish characters that is included in UTF-8 encoding. While I persist my model objects, all '<strong>ı</strong>' characters are persisted as '<strong>?</strong>' to DB. I'm... | 0 | 1,191 |
Warning while Running report: Found two components for namespace | <p>I have problem with report using <em>JasperReports</em>. I ran report on my program, it works, but there were error message just like this </p>
<pre><code>net.sf.jasperreports.engine.component.ComponentsEnvironment findComponentBundles
</code></pre>
<p><code>WARNING: Found two components for namespace http://jaspe... | 0 | 5,233 |
How do you use AsParallel with the async and await keywords? | <p>I was looking at someone sample code for async and noticed a few issues with the way it was implemented. Whilst looking at the code I wondered if it would be more efficient to loop through a list using as parallel, rather than just looping through the list normally.</p>
<p>As far as I can tell there is very little ... | 0 | 1,451 |
How do I display custom error pages in Asp.Net Mvc 3? | <p>I want all 401 errors to be be redirected to a custom error page. I have initially setup the following entry in my web.config. </p>
<pre><code><customErrors defaultRedirect="ErrorPage.aspx" mode="On">
<error statusCode="401" redirect="~/Views/Shared/AccessDenied.aspx" />
</customErrors>
</code><... | 0 | 1,214 |
DJANGO_SETTINGS_MODULE is undefined? | <pre><code>import os
from os.path import abspath, dirname
import sys
# Set up django
project_dir = abspath(dirname(dirname(__file__)))
sys.path.insert(0, project_dir)
os.environ["DJANGO_SETTINGS_MODULE"] = "mysite.settings"
</code></pre>
<p>I did that, and I still get </p>
<pre><code>Traceback (most recent call last... | 0 | 1,435 |
jQuery populate form from json | <p>I'm clearly missing something about jquery... I'm trying to populate a form that is inside a jQueryUI dialog box.
I'm getting the JSON data just fine, but it escapes me how I reference the data and set the value of the form fields...</p>
<p>You will see THREE attempts below - the last one is the one almost everyone... | 0 | 2,954 |
How to query XML column in Postgresql? | <p>I've created a table in Postgres that contains an XML column:</p>
<pre><code> id | integer
date_created | timestamp with time zone
hash | character varying(10)
original | xml
report_name | text
</code></pre>
<p>I've inserted an XML string:</p>
<pre><code>id | date_created ... | 0 | 2,213 |
Magento remove zoom from product image | <p>Im not really familiar with Magento and i need to remove zoom effect from product image.
This is the code from /catalog/product/view/media.phtml inside template directory.</p>
<p>I tried to play around with if-else statement, but it seems im missing something because i am getting errors.</p>
<p>Is anybody more fam... | 0 | 2,965 |
how to make webpack typescript react webpack-dev-server configuration for auto building and reloading page | <p>My intention is to have such directory structure:</p>
<pre><code>- /my-project/
-- /src/ (here are all .tsx files located)
-- /dist/
- index.html
- /build/
-bundle.js
-- /node_modules/
-- package.json
-- tsconfig.json
-- webpack.config.js
</code></pre>
<p>So, I want to have my index.html... | 0 | 1,360 |
dataTable sortBy function does not work(primefaces) | <p>I have a problem with the primefaces dataTable component. I dont know why it does not short the data in the table when i click on it. </p>
<pre><code><p:dataTable var="garbage" value="#{resultsController.allGarbage}" dynamic="true" paginator="true" paginatorPosition="bottom" rows="10"
paginatorTem... | 0 | 2,456 |
How to test characters in a string [Assembly] | <p>I'm writing a program to search for vowels inside a string, but I'm having trouble testing the individual characters inside the string, I have the basic concept down and I've done this before using C++ and Python, but I don't know how to code it in Assembly.</p>
<p>I'm going to use a switch to add up and test the i... | 0 | 1,520 |
Why is my SQL Server query failing? | <pre><code> connect();
$arr = mssql_fetch_assoc(mssql_query("SELECT Applications.ProductName,
Applications.ProductVersion, Applications.ProductSize,
Applications.Description, Applications.ProductKey, Applications.ProductKeyID,
Applications.AutomatedInstaller, Applications.AutomatedInstallerNam... | 0 | 1,025 |
How to use docker volume to deploy war / jar in Tomcat | <p>Is it possible to deploy some java war or jar file in Tomcat? I looking for a lot of tutorials and the only solution I found is copy project war file into <code>/usr/local/tomcat/webapps/</code>.</p>
<p>I actually used that solution but I would like to improve my dockerisation. My primary goal is when I run my 2 im... | 0 | 2,936 |
CloudFormation: Create resources if they do not exist, but do not delete them | <p>I have the following CloudFormation template. (It is based off default the template created for running C# Web API in AWS Lambda, but that may not be relevant.)</p>
<p>It creates an AWS Lambda function. The template also creates an IAM Role and a DynamoDB table if the names of existing resources are not supplied as... | 0 | 2,839 |
Ext js component query | <p>I am developing web site in extjs4 + yii framework. I am using a border layout as a viewport.
Inside it I am using a accordian layout and displays home page. <strong>In Home page there is a login window whcih i want to hide after ligin completion</strong>. how can i remove this window.
here is my code:--</p>
<pre... | 0 | 3,151 |
Vue.JS 2.5.1 : Uncaught SyntaxError: Unexpected token export | <p>I was trying to make a radio button using VueJS and Bootstrap Vue, but this happens when I make it. I'm expecting this to be syntax error just like what it said, but I can't seem find any clue.</p>
<p>So I tried to copy pasted the code, here's the full code of test_radio.php</p>
<pre><code><!DOCTYPE html>
&l... | 0 | 1,267 |
spring Java config for excel view resolver | <p>I have a spring java config based web app with (jsp) view resolver.
Now i want to show a excel sheet with some data when user clicks on excel icon in app.
All over internet i only found xml based spring config for excel view with which i am not familiar with.
I decoded to some extent and came pretty close to... | 0 | 4,082 |
Error : Object must implement IConvertible | <p>I am trying to insert Listbox Items and a Textbox value for each of the listbox items to the database when I get the below error.</p>
<p>IF i try to insert the list box items only I am successful but when i try to insert the textbox value I get this error. Can you please tell me what I am doing wrong.</p>
<pre>
Er... | 0 | 1,506 |
What causes SignalR to receive net::ERR_CONNECTION_RESET on connect? | <p>I have a simple SingulaR example that I've added to a legacy ASP.Net MVC application.</p>
<p>Here are the various parts:</p>
<p><strong>OWIN Startup class</strong></p>
<pre><code>[assembly: OwinStartup(typeof (Startup))]
namespace MyApp.Web
{
public class Startup
{
public void Configuration(IAppB... | 0 | 1,505 |
Copy Data from one hbase table to another | <p>I have created one table hivetest which also create the table in hbase with name of 'hbasetest'. Now I want to copy 'hbasetest' data into another hbase table(say logdata) with the same schema. So, can anyone help me how do copy the data from 'hbasetest' to 'logdata' without using the hive.</p>
<pre><code>CREATE TAB... | 0 | 3,481 |
Want to create a table using XSL/XML | <p>I’m trying to create a table using XSL/XML. I'm new to XSL and XML, so go easy on me please
I’m having a bit of trouble with a few things.
This is my XML file:</p>
<pre><code><List>
<Classification>
<Class>
<Label>Milk</Label>
<NumberZone>1</NumberZone>... | 0 | 2,687 |
Python. SQL Alchemy NotImplementedError: Operator 'getitem' is not supported on this expression | <p>I create record in DB through sql alchemy. The next step is trying to capture the id of the created object into another table that has fk on the created object (assign_resource_to_user) . This is my code:</p>
<pre><code>from dev_tools.models.user import User
from dev_tools.models.resource Resource
resource = Resou... | 0 | 1,600 |
ASP.Net MVC Show/Hide Content | <p>Ok I have the following View</p>
<pre><code>@model IEnumerable<WebApplication3.Models.user>
@{
ViewBag.Title = "Password Management";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section title {<h1>@ViewBag.Title</h1>}
<div id="page-block" class="page-block-three row">
<di... | 0 | 1,258 |
Watch date input value and use it with v-model | <p>I tried for 4 days to get a stupid date from the input, that the user selected. Looks probably simple but believe me that I ask here because I run out of solutions.</p>
<p>I have a page/component AddNewEvent and inside this input where the user adds the date and time. I have to get it in my v-model so I can send it... | 0 | 1,185 |
WHY am I getting this NameError : name 'url_for' is not defined? | <p>I am trying to build a URL following the instructions of the flask tutorial </p>
<p><a href="http://flask.pocoo.org/docs/0.11/quickstart/" rel="noreferrer">http://flask.pocoo.org/docs/0.11/quickstart/</a></p>
<p>However I am keeping getting this NameError </p>
<blockquote>
<p>name 'url_for' is not defined</p>
<... | 0 | 1,143 |
How to use ajax in laravel 5.3 | <p>I am new to Laravel and am using Laravel 5.3. I want to make a text field where it will automatically suggest some data and when I select a data it will add it to an array. I want to send that array to a controller for further use. For this the </p>
<blockquote>
<p>view file is as follows:</p>
</blockquote>
<pre... | 0 | 1,121 |
System.DirectoryServices.DirectoryServicesCOMException: An operations error occurred. | <p>I'm trying to get the email address from a user that is submitting an ASP.NET form on the local intranet. When testing this on my local machine it works fine. But when I publish and begin testing it in production it doesn't like line 74.</p>
<pre><code>Server Error in '/' Application.
------------------------------... | 0 | 1,111 |
How do I debug macros? | <p>So I've got the following macro code I'm trying to debug. I've taken it from the <a href="http://doc.rust-lang.org/book/macros.html" rel="noreferrer" title="The Rust Programming Language Book">Rust Book</a> under the section "The deep end". I renamed the variables within the macro to more closely follow <a href="htt... | 0 | 1,602 |
ImportError: No module named 'flask_jwt_extended' in PYTHON FLASK | <p>in localhost:5000 the script is running without any errors. but when it comes to symlink an error has been thrown to appache log.</p>
<pre><code>[Sun Jun 10 17:07:16.170057 2018] [wsgi:error] [pid 30438] [client 120.29.113.65:32852] mod_wsgi (pid=30438): Exception occurred processing$
[Sun Jun 10 17:07:16.170435 20... | 0 | 1,420 |
No mapping found for HTTP request with URI [/myappname/] in DispatcherServlet with name 'appServlet' | <p>I have got error <code>No mapping found for HTTP request with URI [/myappname/] in DispatcherServlet with name 'appServlet'</code> when I was starting my project on JBoss. This is issue has occurred after resolving another issue described here: <a href="https://stackoverflow.com/q/12299322/845220">"No Session f... | 0 | 1,873 |
Making Sidebar with material-ui | <p>i'm learning material-ui by making the right navigation menu like this one: <a href="http://demo.geekslabs.com/materialize/v3.1/" rel="noreferrer">http://demo.geekslabs.com/materialize/v3.1/</a> or least like this: <a href="http://www.material-ui.com/#/components/app-bar" rel="noreferrer">http://www.material-ui.com/... | 0 | 1,544 |
How to define a user define data type in XML schema? | <p>I have defined two complex element types - Developer and App.</p>
<p>Developer childs - ID ,Name, Email</p>
<p>App childs - ID, Name, <strong>Developer</strong></p>
<p>Here the <strong>Developer</strong> in App complex element refers to Developer/ID.</p>
<p>How to define this relationship in xml schema. I am usi... | 0 | 5,146 |
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet google app engine | <p>I'm trying to set up an application for Google app engine, and I cannot make it work. I'm have everything set up with maven but spring its not working.</p>
<p>I've been trough a lot of configuration setting and I cannot get it done!!</p>
<p>Here you have the stack trace:</p>
<pre><code>05-oct-2010 0:56:54 com.goo... | 0 | 3,697 |
how to pass value data between classes/activity in Android? | <p>For example i have activity1, activity2, activity3 and lastly valueAllActivity?
how do I pass the data from activity1, activity2, activity3 to --> valueAllActivity?</p>
<p>to pass INT value in each activity to valueAllActivity.</p>
<p>I am very new in developing Android program, so if anyone could guide, it would ... | 0 | 5,943 |
Dynamically create a treeview | <p>I am trying to create a treeview dynamically using c# and asp.net.</p>
<p>I have created a lazy load treeview using the populate ondemand attribute. </p>
<pre><code>> <asp:TreeView ID="treeView1" runat="server"
> OnTreeNodePopulate="treeview1_TreeNodePopulate"></asp:TreeView>
</co... | 0 | 1,613 |
Invalid XML document, The document does not have a root element | <pre><code> private void btnmap_Click(object sender, EventArgs e)
{
XmlDocument xmldoc = new XmlDocument();
XmlNode xmlnode, xmlroot, docNode, Doc;
XmlAttribute xmlatt;
docNode = xmldoc.CreateXmlDeclaration("1.0", "UTF-8", null);
xmldoc.AppendChild(... | 0 | 3,592 |
Spring Integration - how to send POST parameters with http outbound-gateway | <p>I'm trying to put together a really simple HTTP POST example using Spring Integration and a http outbound-gateway.<br>
I need to be able to send a HTTP POST message with some POST parameters, as I would with <code>curl</code>:</p>
<pre><code>$ curl -d 'fName=Fred&sName=Bloggs' http://localhost
</code></pre>
<p... | 0 | 1,320 |
Getting Spark, Python, and MongoDB to work together | <p>I'm having difficulty getting these components to knit together properly. I have Spark installed and working successfully, I can run jobs locally, standalone, and also via YARN. I have followed the steps advised (to the best of my knowledge) <a href="https://github.com/mongodb/mongo-hadoop/wiki/Spark-Usage" rel="nof... | 0 | 1,847 |
Resetting a select box in Angular JS with a only one option | <p>I don't know if what I'm experiencing is a bug, but I can't seem to reset a select box in Angular JS 1.0.2 (also tested with 1.1.5) where there is only one option. This is for a iPad app wrapped in Phonegap. I've tested in the browser (Safari, Chrome) though and the issue is still there.</p>
<p>I'm working on an ap... | 0 | 1,577 |
403 forbidden. You don't have permission to access / on this server. localhost. wamp 2.5 | <p>I am facing problem to access localhost even 127.0.0.1 is not working; from my own computer. But, i have no problem for /phpmyadmin. I am using wamp 2.5 Apache/2.4.9 (Win64) PHP/5.5.12 Server at 127.0.0.1 Port 80 for win 8.1. </p>
<p><strong>httpd.conf</strong></p>
<pre><code>#
# This is the main Apache HTTP serve... | 0 | 6,961 |
TypeError: "ctx.cart is undefined" | <p>I'm working on pizza ordering app, and currently I'm trying to implement Cart.</p>
<p>I have a cart for every user, and each cart contains following details: cart.ts</p>
<pre><code>import { CartItem } from './cartitem';
export class Cart {
id: string;
user: string;
cartitems: CartItem[];
grand_tot... | 0 | 1,866 |
Can't build and run an android test project created using "ant create test-project" when tested project has jars in libs directory | <p>I have a module that builds an app called MyApp. I have another that builds some testcases for that app, called MyAppTests. They both build their own APKs, and they both work fine from within my IDE. I'd like to build them using ant so that I can take advantage of continuous integration.</p>
<p>Building the app ... | 0 | 8,504 |
Android AudioRecord won't initialize | <p>I'm trying to implement an app that listens to microphone input (specifically, breathing), and presents data based on it. I'm using the Android class AudioRecord, and when trying to instantiate AudioRecord I get three errors.</p>
<pre><code>AudioRecord: AudioFlinger could not create record track, status: -1
AudioRe... | 0 | 1,642 |
How can I run code on a background thread on Android? | <p>I want some code to run in the background continuously. I don't want to do it in a service. Is there any other way possible? </p>
<p>I have tried calling the <code>Thread</code> class in my <code>Activity</code> but my <code>Activity</code> remains in the background for sometime and then it stops. The <code>Thread<... | 0 | 1,475 |
Swagger API which is having query string | <p>I want to deploy an API which is having query string.This is the API</p>
<pre><code>v1/products?q=circuit breaker&locale=en-GB&pageSize=8&pageNo=1&project=GLOBAL
</code></pre>
<p>Here is how i am implementing</p>
<pre><code>"/v1/products?q={searchText}&locale={ctrCode}&pageSize={pageSize}&... | 0 | 1,762 |
How to configure jax-rs web service web.xml properly | <p>I am trying to implement a jax-rs web service using jersey framework. I have written the web service but I don't fully understand what the web.xml tags mean so I don't know if I have configured it correct but when I try to access the service I get an error. Here is the web service:</p>
<pre><code>package org.LMS.Co... | 0 | 1,166 |
Exception of type 'System.OutOfMemoryException' was thrown | <p>I have suddenly been getting the memory exception errors for two programs running on different machines and even though it seems there is enough memory, it still shows up. I am creating multiple threads in the program so not sure if this appropriate for this forum but could it be something else related to visual stu... | 0 | 1,035 |
Processing huge data with spring batch partitioning | <p>I am implementing spring batch job for processing millions of records in a DB table using partition approach as follows -</p>
<ol>
<li><p>Fetch a unique partitioning codes from table in a partitioner and set the same in execution context.</p></li>
<li><p>Create a chunk step with reader,processor and writer to proce... | 0 | 1,035 |
Maven: Failed to deploy artifacts, Acces denied | <p>I have a Sonatype Nexus server and I want to deploy a snapshot.</p>
<p>This is a snippet of my settings.xml file:</p>
<pre><code><servers>
<server>
<id>test-snapshots</id>
<username>myname1</username>
<password>mypasswd1</password>
</server>
&... | 0 | 1,147 |
java.lang.RuntimeException: setAudioSource failed | <p>I am new to android development. I am just trying to record an audio with android studio(2.1.1) testing with 6.0.1 Marshmallow device.</p>
<pre><code>public class MainActivity extends AppCompatActivity {
Button start, stop;
public MediaRecorder recorder = null;
public String fileextn = ".mp4";
@Ov... | 0 | 3,075 |
How to decode json into structs | <p>I'm trying to decode some json in Go but some fields don't get decoded.
See the code running in browser <a href="http://play.golang.org/p/ZunE4_lKKv" rel="nofollow noreferrer">here</a>: </p>
<p>What am I doing wrong?</p>
<p>I need only the MX records so I didn't define the other fields. As I understand from the ... | 0 | 1,188 |
Babel unexpected token import when running mocha tests | <p>The solutions offered in other related questions, such as including the proper presets (es2015) in .babelrc, are already implemented in my project.</p>
<p>I have two projects (lets call them A and B) which both use ES6 module syntax. In Project A, I'm importing Project B which is installed via npm and lives in the... | 0 | 1,499 |
org.hibernate.HibernateException: /hibernate.cfg.xml not found | <p>I'm trying to use hibernate with spring 3 mvc but at the moment I get this exception thrown. I think I need to define my <code>hibernate.cfg.xml</code> somewhere, but not sure where?</p>
<p>I basically followed this example here <a href="http://www.nabeelalimemon.com/blog/2010/05/spring-3-integrated-with-hibernate-... | 0 | 2,082 |
Java: download CSV file with REST service | <p>I am trying to download csv file from REST endpoint. Here is what I am trying.</p>
<pre><code>@ApiOperation(value = "export",
notes = "Export Cache details for a given criteria")
@ApiImplicitParams({
})
@ApiResponses(value = {
@ApiResponse(code = 400, message = "Bad Request"),
@ApiResponse(... | 0 | 1,196 |
Angular 2/4 how to add multiple headers to http post | <p>I've problem with adding additonal headers to html post.
with curl works very well like with postman.
I can't add Authorization header to post request.</p>
<p>my problem is similar to <a href="https://stackoverflow.com/questions/34464108/angular2-set-headers-for-every-request">https://stackoverflow.com/questions/3... | 0 | 2,914 |
How to draw an arrow on every polyline segment on Google Maps V3 | <p>I was looking for a solution to this problem on stackoverflow but since I couldn't find the accurate solution I ended up solving it myself and post it here, hope it help.</p>
<p>Google Maps provides you the Polyline feature, which based on a list of coordinates can draw a series of lines joining all of them.</p>
<... | 0 | 1,186 |
Doctrine2 - "class" is not a valid entity or mapped super class | <p>I get exception <code>Uncaught exception 'Doctrine\ORM\Mapping\MappingException' with message 'Class "Users" is not a valid entity or mapped super class</code> every time when I run the next code:</p>
<p><strong>test.php</strong></p>
<pre><code><?php
require_once "vendor/autoload.php";
use Doctrine\ORM\Tools\S... | 0 | 4,056 |
How do I debug GlassFish 3 using Eclipse Helios? | <p>I am using the GlassFish 3 server adapter with Eclipse Helios 3.6. I can start the server using the <em>Servers</em> view in Eclipse, and things run just fine - but I am not able to debug my code.</p>
<p>After using the GF Admin Console to enable debugging (<em>Configuration → JVM Settings → Debug</em>, then restar... | 0 | 4,450 |
Automatically solve Android build Error:Frame pixels must be either solid or transparent (not intermediate alphas). - Found at pixel #4 along top edge | <p>Android Studio (using SDK 19, 21 or 22) shows an error that Eclipse ADT (using SDK 19) does not:</p>
<blockquote>
<p>Error:9-patch image D:\Workspaces....\res\drawable-hdpi\btn_bg_common_press.9.png malformed.
Error:Frame pixels must be either solid or transparent (not intermediate alphas). - Found at pixel #4 ... | 0 | 1,463 |
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:annotation-driven' | <p>i guess this is a xml parsing problem, but I just cannot see where it is. I read some articles about this topic and nothing helped:</p>
<p>i have this spring mvc config:</p>
<pre><code><?xml version='1.0' encoding='UTF-8' ?>
<!-- was: <?xml version="1.0" encoding="UTF-8"?> -->
<beans xmlns="ht... | 0 | 2,808 |
Mongoose Populate returning null or undefined | <p>I'm sorry if this is a n00b question, I've been searching Google & Stack for hours now and I've got to ask!</p>
<p>I have two schemas, User and Story, shown below. I am trying to reference the User for a Story using the Ref option to Populate in a Query - I've using mySQL before and so wanted to try to replicat... | 0 | 1,448 |
java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled | <p>When I run my Ktor application with <code>gradle run</code> then I've got the following exception: </p>
<pre><code>19:21:11.795 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
19:21:11.810 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.... | 0 | 1,889 |
package 'stringi' does not work after updating to R3.2.1 | <p>I saw a <a href="https://stackoverflow.com/questions/30983013/error-in-loadnamespacei-clib-loc-libpaths-versioncheck-vii-the">version of this question</a> posted, but still did not see the answer. I am trying to use ggplot2 but get the following errors (everything worked this morning using R3.0.2 'frisbee sailing' w... | 0 | 2,047 |
iOS Swift uploading PDF file with Alamofire (Multipart) | <p>I'm currently developing an application using iOS 10 and Swift 3 and Alamofire 4</p>
<p>The purpose of this application is to upload a PDF file generated previously.</p>
<p>The PDF generation is working perfectly and the file is created.</p>
<p>However the upload doesn’t work…
I received a success response but t... | 0 | 1,477 |
Launching Spring application Address already in use | <p>I have this error launching my spring application:</p>
<pre><code>java -jar target/gs-serving-web-content-0.1.0.jar
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, |... | 0 | 8,365 |
python Pip install using wheel file not working | <p>Due to network constraints and certificates error I am not able to install python libraries using pip normally. </p>
<p>So I tried downloading <code>.whl</code> and install the library manually. However it also failed with the same error. </p>
<pre><code>C:\python3.7>python -m pip install requests-2.21.0-py2.py... | 0 | 1,037 |
Multi-Tenancy with Spring + Hibernate: "SessionFactory configured for multi-tenancy, but no tenant identifier specified" | <p>In a Spring 3 application, I'm trying to implement multi-tenancy via Hibernate 4's native <a href="http://docs.jboss.org/hibernate/orm/4.1/devguide/en-US/html/ch16.html#d5e4661">MultiTenantConnectionProvider</a> and <a href="http://docs.jboss.org/hibernate/orm/4.1/devguide/en-US/html/ch16.html#d5e4686">CurrentTenant... | 0 | 3,824 |
Hibernate could not fetch the SequenceInformation from the database | <p>I have recently updated hibernate in my application to 5.4.4.Final. And now, I have faced with the following exception during deployment.</p>
<pre><code>ERROR [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl|[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)']
Could not fetch ... | 0 | 3,201 |
C++/Win32: How to wait for a pending delete to complete | <p><strong>Solved:</strong></p>
<ul>
<li>Workable solution: <a href="https://stackoverflow.com/questions/3764072/c-win32-how-to-wait-for-a-pending-delete-to-complete/3764298#3764298">sbi's answer</a></li>
<li>Explanation for what really happens: <a href="https://stackoverflow.com/questions/3764072/c-win32-how-to-wait-... | 0 | 1,673 |
horizontal only webkit scrollbar style css | <p>this is custom scrollbar in css</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code> /* Gmail style scrollbar */
::-webkit-scrollbar {
width: 12px
}
::-webkit-scrollbar-thumb {
border-width: 1px 1px 1px 2... | 0 | 2,110 |
FFT real/imaginary/abs parts interpretation | <p>I'm currently learning about discret Fourier transform and I'm playing with numpy to understand it better.</p>
<p>I tried to plot a "sin x sin x sin" signal and obtained a clean FFT with 4 non-zero points. I naively told myself : "well, if I plot a "sin + sin + sin + sin" signal with these amplitudes and frequencie... | 0 | 1,319 |
How to use dup2/close correctly to connect these three processes? | <p>I'm trying to properly connect three processes in order to allow inter-process communication between them. I have one process, scanner, which takes the parent's STDIN and then processes the words within the stream. If a word length is odd, it sends it to one process, if it is even, it sends it to another. These proc... | 0 | 1,733 |
Are there alternatives to using Google's in-app-billing , as a way to avoid publishing private info? | <h2>Background</h2>
<p>Starting from September 30th this year (end of this month), Google won't allow developers that sell apps and developers that use in-app-billing to show their apps without also showing their address . Here's what they write:</p>
<blockquote>
<p>Add a physical contact address Beginning Septembe... | 0 | 1,735 |
java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/naming/NameCode error in setting up restful webservice in spring 4.3.1 | <p>I want to create rest controller in spring but I get this error : </p>
<blockquote>
<p>org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.web.servlet.view.ContentNegotiatingViewResolver#0'
defined in ServletContext resource
[/WEB-INF/mvc-dispatcher-... | 0 | 1,857 |
How to resize image with CSS without altering image quality | <p>I have a Bootstrap carousel with the below code; how can I size this image to completely fill the carousel with losing image quality and also ensure the image height does not exceed the width or height of the carousel? <a href="https://i.stack.imgur.com/iHFvM.png" rel="nofollow noreferrer"><img src="https://i.stack.... | 0 | 1,061 |
VBA EXCEL: How to call a subroutine in another subroutine? | <pre><code>Sub LoopAllExcelFilesInFolder()
'PURPOSE: To loop through all Excel files in a user specified folder and perform a set task on them
Dim wb As Workbook
Dim myPath As String
Dim myFile As String
Dim myExtension As String
Dim FldrPicker As FileDialog
'Optimize Macro Speed
Application.ScreenUpdating = False
... | 0 | 1,430 |
How to install optional rpms on RedHat 7? | <p>I am trying to install RedHat optional rpms on RHEL 7 as follow.</p>
<pre><code>sudo yum install rhel-7-server-extras-rpms rhel-7-server-optional-rpms
Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-
: manager
This system is receiving updates from RHN Classic or Re... | 0 | 1,186 |
How to change Ruby Version for rails application | <p>Having some serious issues with Ruby at the moment and I have a feeling it's around versioning. </p>
<p>I have a Gemfile that looks like this</p>
<pre><code>source "https://rubygems.org"
ruby "2.5.2"
gem "rails", "4.2.1"
gem "unicorn", "4.8.3"
gem "mysql2"
gem "sass-rails", "~> 4.0.3"
gem "uglifier", ">= 1... | 0 | 1,321 |
Java homework hangman | <p>So for a class we are having to make a hangman game that can take a user input for a word and then have another person solve for it. It has to be able to recognize multiple repeating letters in the word or I would be done. Below is my code, it works great until I remove the break statement in my checkformatch method... | 0 | 1,080 |
Private fields from abstract class cannot be accessed in the subclass | <p>I have class which represents every object in my simple game (player, enemy, beam etc - they all have many commons like speed, position, dmg). So i made class named Thing. Here is how it looks like:</p>
<pre><code>public abstract class Thing {
private Image image;
private float x;
private float y;
p... | 0 | 1,306 |
Fatal crash: Focus search returned a view that wasn't able to take focus | <p>My application keeps crashing when I type something in a EditText, but this does not happen always only in some cases. I am running my app on a Samsung Galaxy Tab 2 10.1 WiFI & 3G (GT-P5100) with Android 4.0.4 (ICS). I use the stock Keyboard.</p>
<p>This is my logcat:</p>
<pre><code>11-28 21:43:01.007: E/Andro... | 0 | 1,307 |
jquery datatable border issue | <p>How to show the border for empty cells ? There some columns are blank and no values , so those columns are not displaying the border and its blank.Please see the below screen shot and advise.</p>
<p>One more is there are two lines of border , How to make it one of border ?</p>
<p><strong>HTML</strong></p>
<pre><c... | 0 | 1,049 |
iOS 11 Layout guidance about safe Area for iPhone x | <p>My application already in app store, yesterday i have updated my Xcode version to 9 and works fine except <strong>iPhone x</strong>. UI got collapsed.</p>
<p>1.Here I have Created Two <strong>UIView</strong>(both are fixed height) named as Header and Tab bar and I have hidden my <strong>NavigationBar</strong> entir... | 0 | 1,025 |
org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI Spring 3 | <p>Im new to spring mvc, earlier I accessed homepage via root package name "localhost/spring", and I cant find out what i'd changed that i got this error.
Web.xml:</p>
<pre><code> <servlet>
<servlet-name>appServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.Dispat... | 0 | 1,338 |
https URL is working fine with curl but not with Java | <p>I am trying to post data to a server with java to this url:</p>
<pre><code>https:www.stackoverflow.com
</code></pre>
<p>It's not updating the data.</p>
<p>But when I tried the same with curl it's updating the data with this url:</p>
<pre><code>E:\curl ssl>curl -k -X POST -u"user:pass" "www.stackoverflow.com" ... | 0 | 2,047 |
Missing Dll in dependency walker | <p>I am having a dll and which I am opening into the dependency walker with platform visual studio 2003 and OS is 2000. and my that dll find all dependency.</p>
<p>But when I am going to open that dll in to tha another system which is having OS- windows7 and visual studio 2010, I found missing dlls errors.</p>
<pre>
... | 0 | 1,192 |
How to solve "Failed to parse XML in AndroidManifest.xml"? | <p>In Android Studio I have a sync error:</p>
<pre><code>ERROR: Failed to parse XML in C:\...\app\src\main\AndroidManifest.xml
ParseError at [row,col]:[70,1]
Message: expected start or end tag
Affected Modules: app
</code></pre>
<p>I added <code>android:hardwareAccelerated ="true"</code> to <code>AndroidManifest.xml<... | 0 | 1,830 |
Butter Knife return null pointer | <p>I want to using Butter Knife in my project.I did everything according to the Butter Knife tutorial.
But when I set anything to the views (setText, setClickListener ...) I got null object reference exception.</p>
<p>This is my code:</p>
<pre><code>public class LoginActivity extends AppCompatActivity implements Logi... | 0 | 1,209 |
Non-monotonous DTS in output stream when concat videos using ffmpeg | <p>I have three videos which I want to concat together the problem it works fine for some videos but when I test a specific video it gives me an error and cause the resulting video to show in a strange way and everything is moving very fast in the video like I was forward up the video<br>
this the code I used to add th... | 0 | 1,436 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.