title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Java RMI ClassNotFoundException on the client side | <p>There have been several questions with this same Title, but none of them have helped me solve my issue.</p>
<p>I have been trying to follow the tutorial here:
<a href="https://docs.oracle.com/javase/tutorial/rmi/overview.html" rel="nofollow">https://docs.oracle.com/javase/tutorial/rmi/overview.html</a></p>
<p>I wa... | 2 | 2,973 |
RuntimeError: output with shape [512] doesn't match the broadcast shape [1, 512, 1, 512] while extracting feature vector using pytorch | <p>I am not able to resolve this error. This code is taken from <a href="https://becominghuman.ai/extract-a-feature-vector-for-any-image-with-pytorch-9717561d1d4c" rel="nofollow noreferrer">https://becominghuman.ai/extract-a-feature-vector-for-any-image-with-pytorch-9717561d1d4c</a></p>
<pre><code>import torch
import ... | 2 | 1,772 |
Javascript setTimeout with google maps markers | <p>Ok, My page gets some markers from a database via JSON and places them on a google maps map. It works ok, but the problem is to show this markers one by one with a small lag, and not all at the same time. As the google maps API, im trying to use setTimeout() method... with no further success. ¿Is it incompatible wit... | 2 | 1,421 |
ORA-00917: missing comma error INSERT | <p>Below is the c# code I'm using to try to insert items into an oracle database. I get the missing comma error, but I'm not missing any. </p>
<pre><code>string queryString = @"INSERT INTO MAILLIST (GRPID, FNAME, MI, LNAME, ADDR1, ADDR2, CITY, STATE,";
queryString += @" ZIP, ZIP4, DOB, SSN, STATUS, DATEADDTOLIST, GE... | 2 | 2,331 |
WCF XML Serialization Issue from Soap Request | <p>Input Xml</p>
<pre><code> <ws:processAcord xmlns:ws="http://ws.plus.predictivelogic.com/">
<arg0>CrlUser</arg0>
<arg1>CrlPass</arg1>
<arg2>Life Scope</arg2>
<arg3 />
</ws:processAcord>
</code></pre>
<p>Object Class</p>
<pre><code>[XmlRoot(El... | 2 | 1,902 |
How do I Get the Children of a DevOps Work Item? | <p>I'm trying to piece together a C# console app that accesses the work items in TFS/DevOps via it's API and compares the original estimate field parent work item with that of all its children and then spits out the name and ID of any work items that do not add up.</p>
<p>So far, I have been able to get back a list of ... | 2 | 2,004 |
Lotus Notes insert html body macro and send from excel | <p>I have a macro that sends auto mails from excel via Lotus Notes. The problem is that it doesn't send the body as HTML. It sends as plain text. </p>
<p>This line has the problem:</p>
<pre><code>.inserttext ("some text" & RangetoHTML(rng))
</code></pre>
<p>The whole code is below.</p>
<pre><code> Sub Send_Row(... | 2 | 1,771 |
Blazor Animation - set div to display: none after animation ends | <p>Recently I have implemented some animations but I am having some problems when the animation ends. I have a div structure for responsiveness, that shows a menu button when the screen size is smaller than X. </p>
<p>When someone clicks on the menu button a left side bar, which is default set to <code>display:none</c... | 2 | 1,912 |
JavaScript functions accessing SQLite db | <p>I'm using Electron with JavaScript and am attempting to access a SQLite db. The output of the db is a list of countries. The target is a simple ul in a div. The action is called by an onclick event attached to a button on the page.</p>
<p>Here's the issue. Technically speaking, I can access the db. However, in... | 2 | 1,179 |
Upgrading `pip` removes other python's pips | <p>On a CentOS 7 system, I have multiple versions of Python installed, each with their own version of <code>pip</code>:</p>
<pre><code># head -n1 /usr/local/bin/pip3.*
==> /usr/local/bin/pip3.6 <==
#!/usr/bin/python3
==> /usr/local/bin/pip3.7 <==
#!/usr/local/bin/python3.7
==> /usr/local/bin/pip3.8 &l... | 2 | 1,294 |
NoSuchMethod Error on HandlerChainFactory.getGlobalHandlers() using AWS SDK 1.11.97 | <p>I have a play 2.4.3 framework app that I'm working on. I just added uploading images to AWS S3 bucket, which I got working locally. But when I push to AWS elastic Beanstalk environment, I get the following error when I try create the AmazonS3Client per <a href="http://docs.aws.amazon.com/sdk-for-java/v1/developer-... | 2 | 3,369 |
Periodic/Oscillating Loss Function for Pytorch CCNN | <p>I’m training a CNN on ImageNet, and I’m seeing some odd, periodic oscillations in my loss function. The curve looks generally correct, but you can see clear oscillations as the curve flattens out. I’m capturing the loss every 100 mini batches, and since my batch size is 128 and my training set is ~100k images, this ... | 2 | 1,423 |
After rotating a linearlayout, the onclick events do not change position after the rotation | <p>I have a vertical linearlayout with three clickable imageviews within the linearlayout. When i rotate the linearlayout by 90 degrees using simple animation the problem arises. The imageviews are rotated correctly but the onclick events for the imageviews are not rotated along with the linearlayout and remain in the ... | 2 | 1,120 |
google colab UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfa in position 21: invalid start byte | <p>I'm running git commands from with a Google Colab (I mounted a google drive containing a git repo into the colab). All commands worked without a problem, and suddenly some commands stopped working.</p>
<p>These commands still work in my Colab:</p>
<pre><code>!git branch
!git stash pop
!git log -1
</code></pre>
<p>Bu... | 2 | 1,444 |
Html Bootstrap - wrap bootstrap carousel to fit the image presented | <p>So, I've got a problem when trying to use a bootstrap example.</p>
<p>I've copied a carousel example from bootstrap's page, and tried to use it in my own project.</p>
<p>However, as seen on the picture -
<img src="https://i.stack.imgur.com/vAARc.png" alt="My attempt at using carousel"></p>
<p>The carousel is not... | 2 | 1,555 |
getting altitude/latitude/longitude from GPS | <p>I am trying to run the code below to get the user location (altitude/latitude/longitude) but it's not working. During the debugging is appearing the following message:</p>
<p>_<strong>No command output when running: 'am start -D -n net.learn2develop.get_location/net.learn2develop.get_location.Getting_CoordinatesAct... | 2 | 1,698 |
Getting 'Uncaught Error: Unable to parse bindings' error but code works | <p>I am trying to write a custom binding called divider.</p>
<p>Its simply splice the passing observableArray object into smaller arrays and wrap its elements with a template. It is working but i am getting an error : </p>
<p><strong>Uncaught Error: Unable to parse bindings.
Message: ReferenceError: list is not defin... | 2 | 1,232 |
CancelledError: Loop execution was cancelled | <p>I was doing some regression analysis using google colabs and until yesterday everything was working fine but today suddenly I'm getting following error. I don't know why the training is getting stopped in the middle. </p>
<p>Following is the output from training:</p>
<pre><code> SA1
Fold: 1
WARNING:tensorfl... | 2 | 1,198 |
How to create a self-signed Certificate using CLR Security to use with EnvelopedCms? | <p>I am trying to create a self-signed Certificate using the CLR-Security library Security.Cryptography.dll (their homepage: <a href="http://clrsecurity.codeplex.com" rel="nofollow">http://clrsecurity.codeplex.com</a>)</p>
<p>I am able to create the certificate and even to Encrypt with it,
but Decrypt fails with the f... | 2 | 1,496 |
Implementing a custom FormsAuthenticationProvider using Owin, Katana, and Nancy | <p>I am working on implementing a custom <code>FormsAuthenticationProvider</code> and I'm getting a middleware conversion error.</p>
<pre><code>No conversion available between System.Func`2[System.Collections.Generic.IDictionary`2
[System.String,System.Object],System.Threading.Tasks.Task] and Microsoft.Owin.OwinMiddle... | 2 | 1,196 |
How to return result from a sequelize query thats wrapped in a function | <p>I am building a service that creates a unique url for a user.
It's supposed to do the following:</p>
<blockquote>
<ul>
<li>query database to see if the user already has the url and send it back</li>
<li>if user doesn't have the url create one using the user's first and last name</li>
<li>check the database... | 2 | 1,198 |
Problem with Angular 6 Validator for form in table Angular Material | <p>I'm building an app with Angular 6 and I have a problem with reactive forms.I'm learning Angular. I have a form for all the rows of a table with one input to validate, which is PRODUCT_QUANTITY. When the number input changes, it submits the form to update the table with the new value. The problem is when I focus on ... | 2 | 5,339 |
Java passing class array into array | <p>I am a student and looking for help with an assignment. Here is the task: Create a CollegeCourse class. The class contains fields for the course ID (for example, “CIS 210”), credit hours (for example, 3), and a letter grade (for example, ‘A’).</p>
<p>Include get() and set()methods for each field. Create a Student... | 2 | 1,921 |
Set Footer Only On Last Page - HTML CSS | <p>I want to Set the footer only on last page for printing , i need the footer just to appear on the last page,</p>
<p>here is my code </p>
<pre><code> <style>
@media print { #content:after {
display: block;
content: "";
margin-bottom: 594mm;
} ... | 2 | 1,120 |
Android Shared Element Transitions between two ViewPagers | <p>I'm trying to achieve the following:</p>
<p>I have an item view that displays a <code>ViewPager</code> with images of that item and some other information. When the user taps one of the <code>ViewPager</code>'s images, I'd like there to be a transition between the image on the first screen and the same image on ano... | 2 | 6,421 |
MVC Anti forgery token validating even though no [ValidateAntiForgeryToken] | <p>I have the dreaded Validation of viewstate MAC failed problem from time to time. I run my application in a web farm and have set the machine key of the application to the same value on all web servers.
I have been doing some experiments and now I have two questions regarding the anti forgery token mechanism: <br/><... | 2 | 1,472 |
How to deal with ConcurrentModificationException while doing swapCursor()? | <p>I recieve exception while manipulating with navigation forward and backward from <a href="http://developer.android.com/reference/android/support/v4/app/FragmentActivity.html" rel="nofollow">FragmentActivity</a>, containing ListView with data loaded from custom Loader (it is loading from local sqlite database), and d... | 2 | 1,247 |
Connecting to a SQL database in aspx, c# | <p>I currently have an aspx page, that has a script that gathers data via phone line. The data is currently writing to a text file, which via a DTS job pumps to the database at the end of the night. What I need to is have the data from the aspx page be written to a database. Part of the problem I am having is I am ... | 2 | 2,243 |
Two-way binding on a ContentControl | <p>I'm creating a Key/Value pair editor and would like for the value to have a custom template based on the data type.</p>
<pre><code><TextBox x:Uid="txtKey" x:Name="txtKey" Grid.Column="1" Grid.Row="0" Text="{Binding ElementName=This, Path=KeyValuePair.Key}" VerticalAlignment="Top"/>
<ContentControl Grid.Co... | 2 | 1,346 |
How to call two functions onClick in React when one of the uses properties from a component | <p>I have an array that I am sorted and I would like to change the css class of the arrow to indicate the current sorting. I have functions for both changing the class and also sorting the array but I cannot combine them onClick because one cannot be written exclusively as a functions. How can I combine these? Here is ... | 2 | 1,351 |
YouTube API with Foundation Modal | <p>I'm trying to show & autoplay youtube videos in a modal when a user clicks a link. </p>
<p>I have this working for the first video, however subsequent videos open the initial video. </p>
<p>During debugging, I noticed that the alert of the videoID fres as many times as the buttons have been clicked with the ID... | 2 | 1,409 |
Algorithm "HmacPBESHA256" is not available and what is that? | <p>I can#t build a Apk oder Appbundle. I have a key in the right folder. I tried</p>
<pre><code>keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
</code></pre>
<p>then, because it doesn't work</p>
<pre><code>`/Applications/Android\ Studio.app/Contents/jre/jdk/Co... | 2 | 2,105 |
Angular Directive Two Way Binding Not Working | <p>I am trying to use the two way directive binding using "=" in the directive scope object, but its not working if I update the value within a callback function inside the link function (Not getting updated in the controller).</p>
<p><strong>Directive</strong></p>
<pre><code>app.directive("simpleDropdown",function($... | 2 | 1,527 |
Unreachable code in varien/configurable.js Magento | <p><br/>
I was taking a look at the Magento source file to try to understand why I can't move varien/configurable.js whithout throwing an error with another extension, so Google Closure Compiler to shrink it, but it returns an error at line 267:</p>
<blockquote>
<p>JSC_UNREACHABLE_CODE: unreachable code at line 267 ... | 2 | 5,663 |
NodeJS mp3 streaming not working in browsers | <p>I'd like to stream MP3 audio files from a NodeJS / ExpressJS backend. I found some code in forums to begin with (e.g. here <a href="https://stackoverflow.com/questions/49524238/stream-mp3-file-express-server-with-ability-to-fast-forward-rewind">stream mp3 file express server with ability to fast forward/rewind</a>),... | 2 | 1,642 |
JavaFX TextField can't set Text from a ResultSet | <p>I am developing a JavaFX Application which has access to a Database through JDBC/ODBC.
When I click on a button, I want some TextFields to update their texts according to a ResultSet, showing the First Name and Last Name of a certain user.</p>
<p>When I try to invoke the TEXTFIELD.setText(RESULTSET.getString(1)) of... | 2 | 1,423 |
android- Libgdx serialization and deserialization | <p>I have a <code>Player</code> class which records a players position and several other variables. Additionally in order to remember these states after the game is closed I attempted to serialize and deserialize my <code>player</code> object. This process works fine for the desktop version of my libGdx project however... | 2 | 2,116 |
How do I center a GridView inside a fragment with viewpager | <p>I have a Gridview inside a fragment of a ViewPager. I have 2x2 grid that I want to center on the parent, the ViewPager. It's <a href="http://i.stack.imgur.com/WqBHm.jpg" rel="nofollow">displaying like this</a>, only centering horizontally but not vertically My xml files are as follow.</p>
<p>This is the activity_ma... | 2 | 1,959 |
jUnit on a spring service class: No such bean definition | <p>EDIT2: I've managed to "fix" the issue... just removing the Autowired annotation and going with a setUp/tearDown configuration. So, to add to my question, why does without the autowired annotation works (the class finds the path) and with it don't? I'm doing something wrong with the test-context file?</p>
<p>EDIT: ... | 2 | 1,678 |
Check row exists with PDO | <p>I cannot figure this out, I've been reading numerous Stack overflow threads and I keep getting an issue,</p>
<p>right now if the user types anything, regardless if it is the same username or email, it would come up with an error. Please help!</p>
<p>I want the error message to appear when the user types an usernam... | 2 | 1,778 |
Java MIDI: Connecting MIDI Keyboard to Default Synthesizer | <p>I gotta a MIDI Keyboard.
All I want is an example of how I can setup the default software synthesizer to play sounds as I play the Keyboard.</p>
<pre><code>package cleffsgame;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.sound.midi.MidiDevice;
import javax.sound.midi.MidiSystem;
i... | 2 | 1,832 |
Flex - FlexPrintJob how to print a group of fields and a PrintDataGrid properly? | <p>I am trying to print a multiple-page FlexPrintJob, that includes on the first page, several labels, then a PrintDataGrid. It all prints, except that the PrintDataGrid only prints using half the page on all the pages. </p>
<p>I know it has to do with the labels that I am printing on page 1, because taking them o... | 2 | 1,779 |
Building and running llvm-py on Mac OS X | <p>I was trying to build <a href="http://www.mdevan.org/llvm-py/" rel="nofollow">llvm-py</a> on Mac OS X.</p>
<p>This is what I tried to do, I needed to download 11vm-2.7, and the README file has this comment: Make sure '--enable-pic' is passed to LLVM's 'configure'</p>
<ol>
<li>Download <a href="http://llvm.org/rele... | 2 | 1,058 |
How can I insert a data using react-phone-number-input?, validation error when I'm inserting a phone number | <p>I'm trying to insert a data with out say "phone number required". I filled the phone number field and it's full but when I'm clicking in submit, phone number field validation says "phone number required", despite I inserted the phone number in phone number field.</p>
<p>This is the validation of phone number:</p>
... | 2 | 1,674 |
Passing dropdown list value to controller in codeigniter | <p>hi i have been able to upload image path to database with codeigniter, but i cant seem to pass the option of category to database. i have dropdown menu with 2 option and then i want to pass it to controller so i can insert it to the database.</p>
<p>here is my code:</p>
<p>my view</p>
<pre><code><html>
<... | 2 | 1,169 |
Mongoose.countDocuments is not working when counting documents by moment js that are created last year | <p>I am working on an open-source library called wertik-js and it uses Graphql, I have added reporting type helpers that return counting of mongoose models based on created at. Here in this case I have reportings like, total_count, total_added_last_year etc, total_added_today etc, For today I have filtered in this way:... | 2 | 1,102 |
How to I make a nonce or realm request for a digest authentication? | <p>For my project I want to connect to the provided <a href="https://developers.shopware.com/developers-guide/rest-api/" rel="nofollow noreferrer">Shopware API</a> Since I'm not that experienced with REST Services I cloned an existing HTTPClient (using the Apache Components) from <a href="https://github.com/sveneusewig... | 2 | 1,105 |
How to turn off Microsoft Logs in AspNetCore 2.2 NLog | <p>The following is my Logs </p>
<blockquote>
<p>[2019-05-07 15:55:38.4270][PC-20170829ROEW][Info] my logs recorded</p>
<p>[2019-05-07 15:55:38.4929][PC-20170829ROEW][Info] Route matched with {action = >"Get", controller = "Values"}. Executing action >QunarFlight.Web.Controllers.ValuesController.Get (QunarFligh... | 2 | 1,040 |
Smalltalk Seaside - jQuery Ajax Callback | <p>So I have a non-Ajax callback working fine using this code (the 'convert' method calculates a new value for the 'result' instance variable):</p>
<pre><code> html form: [
html text: 'Number to convert: '.
html textInput
callback: [ :value | self setNumtoconvert: value ];
... | 2 | 1,118 |
Yii ajaxform validation only validates a part of the form | <p>I got a Yii form which collects data for three models. I am using ajaxvalidation, on change and on submit:</p>
<pre><code><?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'offer-form',
'enableAjaxValidation'=>true,
'enableClientValidation'=>true,
'clientOptions' => array(... | 2 | 1,414 |
POP_BACK_STACK_INCLUSIVE cause to call onResume method of previous fragment | <p>I have fragments say CompanyFragment,DashboardFragment,CalendarFragment.
My default fragment is CompanyFragment.</p>
<p>Expected Flow Should be</p>
<ul>
<li>Select Company from CompanyFragment</li>
<li>Navigating to DashboardFragment</li>
<li>Changing date from Dashboard so navigating to CalenderFragment</li>
<li>... | 2 | 1,103 |
Using `META-INF/services` for internal plumbing of driver | <p>I develop the Jaybird JDBC driver, and today I came across an issue (<a href="http://tracker.firebirdsql.org/browse/JDBC-325" rel="nofollow noreferrer">JDBC-325</a>, <a href="https://stackoverflow.com/questions/18904451/how-to-configure-jaybird-with-hibernate">How to configure Jaybird with hibernate</a>) that is rel... | 2 | 1,052 |
Android VpnService Packet Sniffing | <p>I'm working on a school project and have hit a road block and wanted to see if anyone can help point me in the right direction. We are trying to capture packets from an Android phone without rooting the phone. The only option that I have found was to use Android's VPNService to use it as a middle man to capture the ... | 2 | 3,493 |
Primefaces selectCheckboxMenu not working properly | <p>I'm using primefaces <strong>selectCheckboxMenu</strong> with multiple= "true". I'm having 2 issues with this tag now.</p>
<ol>
<li>That token at right side of the checkboxmenu is not aligned properly</li>
<li>Unable to see the label attribute value when multiple="true".</li>
</ol>
<p>Can anyone help me with this?... | 2 | 1,325 |
How to run internal Powershell script function from cmd.exe with arguments | <p>I want to use a powershell (.ps1) script in the command prompt without using this commands</p>
<pre><code> Powershell.exe -noexit Set-ExecutionPolicy Unrestricted -file "C:\Get-NetworkStatistics.ps1"
</code></pre>
<p>Currently this command opens powershell windows. I want direct cmd to use this script and giving... | 2 | 7,765 |
Bootstrap Modal with foreach loop. How can pass the foreach argument? | <p>I'm working with PHP (Laravel 5.3) and developing a Blade view with a Bootstrap modal that have a foreach loop inside to show too many rows. This modal is called from a table that, in the end of every row have a button for more details (and this details are an array).</p>
<p>So, how can I pass the array data to the... | 2 | 2,169 |
SonarQube integration with Teamcity . Error while analysing a Go Project | <p>I am new to Sonarqube and was trying to integrate SonarQube with TeamCity. I used TeamCity.SonarQube plugin. I added a Build step with <code>Runner Type = "SonarQube Runner" and Sources location=%teamcity.build.checkoutDir%</code> . All the other params are left default.
But I got this error while running this step... | 2 | 2,571 |
React project not running on windows but runs on ubuntu | <p>I have imported a reacted project in my computer. It gives me an error in console when I try to run the gulp command. But at the same time when I run it on ubuntu, it works perfectly fine. This is the error I am getting on windows </p>
<pre><code>ERROR in ./src/client/index.js
Module parse failed: D:\Frontend-Maste... | 2 | 5,808 |
Kubernetes Web UI (Dashboard) doesn't show graphs | <p>I have installed Docker v17.06-ce on 2 minion nodes plus a master node and Kubernetes with Kubeadm v1.7.0. Then I deployed Web UI (Dashboard) with <code>kubectl create -f https://git.io/kube-dashboard</code> and changed type to <em>NodePort</em> using <code>kubectl edit service kubernetes-dashboard -n kube-system</c... | 2 | 1,097 |
TensorFlow : polynomial regression | <p>I am trying to get a non-linear regression from a CSV data which is available at this link:
<a href="https://data.lacity.org/dataset/311-Call-Center-Tracking-Data/ukiu-8trj" rel="nofollow noreferrer">CSV Data</a></p>
<p>I want to use polynomial regression. the problem is that the result I am getting from TensorFlow... | 2 | 1,638 |
Looking for a way to simulate irregularly shaped DIVs | <p>I'm developing a website for a designer who is, shall we say, more oriented towards print designs than for the web. Their page design for this site gives me a content area that is irregular. </p>
<p>If this were a hand-coded site I could do the layout (painstakingly) by slicing images and judicious use of floats, a... | 2 | 1,041 |
Enum [Display(Name) localisation MVC 4 | <p>I have a enum that holds countries:</p>
<pre><code>public enum CountryEnum
{
[Display(Name = "AF", ResourceType = typeof(Global))]
AF,
[Display(Name = "AL", ResourceType = typeof(Global))]
AL,
[Display(Name = "DZ", ResourceType = typeof(Global))]
DZ,
};
</code></pre>
<p>As you can see I m... | 2 | 1,032 |
jboss 5.1 ssl client authentification | <p>I have a problem with the client authentication in Jboss 5.1 GA. What I try to do is, client authentication with self generated and self signed certificates. Therefore I have a keystore my.keystore and a truststore my.truststore. I use the Java keytool. To generate a certificate, I use the command:</p>
<pre><code>k... | 2 | 2,698 |
Linking graphs of structures by pointer vs. index in array | <p>This is question about <strong>good practice</strong></p>
<p>Consider situation which is typical e.g. in 3D engines, physics engines, <a href="https://en.wikipedia.org/wiki/Finite_element_method" rel="nofollow noreferrer">Finite element method</a> or <a href="https://en.wikipedia.org/wiki/Force_field_%28chemistry%2... | 2 | 1,055 |
How to accept insecure certificates in Chrome using Selenium-Webdriver for JavaScript? | <p>I have generated test script using Selenium-IDE. It is of type Javascript-Mocha. I have an environment ready to test it locally.
So, I am accessing a remote url that has insecure certificate issue.</p>
<p>I need to modify the generated TestScript for chrome capability to accept insecure certificate.
I couldn't find... | 2 | 3,867 |
Understanding the difference between the following two functions | <p>I am learning how to create a shell, so I need help with understanding the following code which I found in an online tutorial for creating shells.</p>
<pre><code>/***************************************************************************//**
@file main.c
@author Stephen Brennan
@date Th... | 2 | 2,328 |
simple servelet Jboss 7.1.1 | <p>I'm new in java web developing. i'm adapt the project to working in server jboss 7.1.1. I write empty carcass servlet. Copy project.war to server. New file present project.war.deployed. Ok, but if i declare variable: </p>
<pre><code>private org.h2.tools.Server server;
</code></pre>
<p>after copy project.war to se... | 2 | 3,105 |
Why do I get these errors on my logcat whenever I run my Android app in eclipse? | <p>I'm trying to test if my android app works, it consists of 2 activity screens. There are no errors in my codes but my app won't run. It always gives me this error on the emulator "Unfortunately 'application name' has stopped." </p>
<p>Here is my Activity code</p>
<pre><code> public class MainActivity extends Ac... | 2 | 3,727 |
Porting Qwt library to playbook | <p>I am new to Qt, cross compiling and porting so please bear with me.</p>
<p>My goal is to use the <a href="http://qwt.sourceforge.net/" rel="nofollow">Qwt library</a> on Playbook OS for a Qt based application. I found a nice tutorial on <a href="http://hecgeek.blogspot.com/2011/10/qt-for-blackberry-playbook.html" re... | 2 | 1,235 |
Mongodb with very high CPU rate | <p>When I ran the following code and killed it immediately(that means to abnormally exit), the CPU rate of Mongodb would go extremely high(around 100%):</p>
<pre><code>#-*- encoding:UTF-8 -*-
import threading
import time
import pymongo
single_conn = pymongo.Connection('localhost', 27017)
class SimpleExampleThread(... | 2 | 2,033 |
Cast exception to entity Object using EntityManager and EntityManagerFactory | <p>I'm not able use @PersistenceContext with a new bean I created, resulting always on the entity manager variable being null. </p>
<p>So I searched the net for a solution for this problem, with no results.
Instead I tried using EntityManagerFactory which returns data perfectly but then I cannot transfer it to a new v... | 2 | 4,125 |
App Engine not finding google.auth file in dev_appserver.py | <p>I'm receiving the following error when executing the dev_appserver.py:</p>
<pre><code>from google.auth import app_engine
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/ python/runtime/sandbox.py"
, line 1147, in load_module
raise ImportError('No module named %s'... | 2 | 1,673 |
Sheets API v4 is returning 503 Unavailable | <p>I'm using the Google API Ruby <a href="https://github.com/google/google-api-ruby-client" rel="nofollow noreferrer" title="client">client</a> to do 4 things:</p>
<ol>
<li>Access my drive</li>
<li>Create a new spreadsheet</li>
<li>Update cells in the the spreadsheet</li>
<li>Get cells with calculated results from sam... | 2 | 1,365 |
Fail in installing libcurl4-gnutls-dev in AWS ubuntu | <p>I try to do the following install (in order to upgrade git)</p>
<pre><code>$sudo apt-get install libcurl4-gnutls-dev
</code></pre>
<p>and i get these errors:</p>
<pre><code>After this operation, 13.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://us-east-1.ec2.archive.ubuntu... | 2 | 3,041 |
Multiline textview getting cut off in height | <p>I have a <code>TextView</code> next to an <code>ImageButton</code> in a horizontal <code>LinearLayout</code> which is then wrapped in a vertical <code>LinearLayout</code>. To get the button to show up I had to set a <code>layout_weight</code> on the text view and button with the button being the stronger of the two.... | 2 | 1,288 |
Django: How to iterate over two one-two-many table relationships? | <p>I am trying to build a simple web page that queries three tables. There is a <code>Company</code> table that has a one-to-many relationship with a <code>Position</code> table, as well as a one-to-many relationship with a <code>Project</code> table. </p>
<p>The goal is to have the page display a given company once, ... | 2 | 1,185 |
Cannot implicitly convert type 'System.Linq.IQueryable<Apps.Model.Applicant> to 'Apps.Model.Applicant'. An Explicit conversion Exists ASP.NET MVC3 | <pre><code> public ViewResult Index(string currentFilter, string searchString, int? page)
{
if (Request.HttpMethod == "GET")
{
searchString = currentFilter;
}
else
{
page = 1;
}
ViewBag.CurrentFilter = searchString;
var connSt... | 2 | 1,627 |
Insert new xml attribute into MS Word xml document element | <p>I want to prevent word document fields getting updated by setting a lock using the field <code>w:fldLock</code>. I have an <code>xml</code> file which contains the node <code>w:fldSimple</code>. Whenever I find this node I want to set the attribute <code>w:fldLock</code> to this node. To achieve this I want to use X... | 2 | 1,654 |
Error installing 'ReporteRs' and 'ReporteRsjars' | <p>Ultimately I am attempting to install the R package <code>ReporteRs</code> (<code>ReporteRs_0.8.7.tar.gz</code>) on a <strong>Windows 7</strong> system (session info, and other info below). This depends on the package <code>ReporteRsjars</code> (<code>ReporteRsjars_0.0.2.tar.gz</code>) which is where I am getting t... | 2 | 2,545 |
Spring Best practice for Dependency Injection | <p>I have some confusion about DI in spring</p>
<pre><code>public interface A{
void methodA();
}
public class AImpl implements A{
public void methodA(){
// todo something
}
}
public interface B{
void methodB();
}
public class BImpl implements B{
public void methodB(){
//todo some... | 2 | 1,033 |
error while installing mysql using pip (python) | <p>i'm new boy in python,
recently i am starting to understand Django,
for some basic functonality i have to use pip,
while i try to install some package using pip it Give error live Belove.
Thank you For Your Kind Responce.</p>
<pre><code>C:\Users\Artoon>pip install mysql
Collecting mysql
Collecting MySQL-python (... | 2 | 6,035 |
carrierwave throws "stack level too deep" error on file upload | <p>i have a weired problem and don't now how to debug further...</p>
<p>if i upload an file with my html form i get:</p>
<pre><code>SystemStackError (stack level too deep):
</code></pre>
<p>the trace is:</p>
<pre><code>Started POST "/global/accounts/82" for 127.0.0.1 at 2011-07-27 10:28:03 +0200
Processing by Glo... | 2 | 1,464 |
Show mid-roll ads in video player using plugin | <p>Trying to develop custom video player using Vast 2.0 and video.js. I got success in showing pre-roll ad with the skip button functionality. </p>
<p>I am showing my custom videos as ad. </p>
<p>Can someone help me in how could I show multiple mid-roll like after some span of minutes? </p>
<p>Updating XML file for ... | 2 | 1,344 |
Clickable Multilevel menu | <p>I would like to do an menu like this one <a href="http://bootsnipp.com/snippets/featured/multi-level-dropdown-menu-bs3" rel="nofollow">http://bootsnipp.com/snippets/featured/multi-level-dropdown-menu-bs3</a>, it has to be multilevel menu but I would like to open the menu only with clicks, also the multilevel items, ... | 2 | 1,701 |
Is there a way to hide/stop some output generated by debug | <p>Looking for help to understand why I have the additional output from the debug line below:</p>
<pre class="lang-yaml prettyprint-override"><code>- name: Check kernel diff
become: true
shell: "sdiff {{ item }}/pre-kernel.out {{ item }}/post-kernel.out | grep '|' | awk -F'|' '{print $2}' | xargs"
regis... | 2 | 1,079 |
How to configure Eclipse to automatically resolve and build multiple maven modules? | <p><strong>Here is my situation:</strong></p>
<ul>
<li>I'm trying to migrate from Ant to Maven</li>
<li>My project has 3 artifacts: <code>shared api</code> (jar), <code>web app</code> (war), <code>desktop swing app</code> (jar). Latter 2 depends on shared api.</li>
<li>At this moment I'm trying to make web app part w... | 2 | 2,781 |
Xamarin Android C#: Populate ListView Custom Row With Data From SQLite Database | <p>I'm tring to create a ListView which is fed data from an SQLite Database (pre-existing db file). The ListView uses a custom row which is one of the aspects which baffle me; How do I extract the data and then assign it to a TextView in the custom row?</p>
<p>I'm new to Xamarin, so would really appreciate any guidanc... | 2 | 1,685 |
Maven com.google cannot be resolved to type | <p>New to Maven. I built my project using Maven and generate a Protobuf executable and generate the source to my project. I'm using eclipse and compiling in Java. I don't seem to have the library properly imported so I get a lot of errors when viewing the generated code through eclipse. </p>
<p>I am receiving error <c... | 2 | 5,456 |
Angular 5 MatTableDataSource returns error "Property 'subscribe' does not exist on type 'OrderDataSource'" | <p>I'm trying to work with MatTables in Angular 5 and getting following error:</p>
<blockquote>
<p>ERROR in src/app/components/order/order.component.ts(30,59): error TS2339: Property 'subscribe' does not exist on type 'OrderDataSource'.</p>
</blockquote>
<p>Here is my code:</p>
<p><strong>order.component.ts</stron... | 2 | 1,110 |
Trying to install opencv using homebrew. ERROR: modules/highgui/CMakeFiles/opencv_highgui.dir/all Error 2 | <p>I have mac, os x 10.8.3</p>
<p>I used to have macports installed, I deleted it and trying to install opencv using Homebrew.</p>
<p>I installed lame, ffmpeg. Changed $PATH. The error is still the same: </p>
<pre><code>Nellys-MacBook-Pro:~ nellysmitt$ brew install opencv
==> Downloading http://sourceforge.net/pr... | 2 | 1,145 |
Pixi.js touch events not firing on iPhone after pushing intel-xdk files | <p>I have created a small test project to replicate the problem.
The project contains only pixi.min.js and index.html with code from this example:</p>
<p><a href="http://pixijs.github.io/examples/index.html?s=demos&f=interactivity.js&title=Interactivity" rel="nofollow">http://pixijs.github.io/examples/index.ht... | 2 | 1,741 |
Popups not working properly with circle marker | <p>I'm facing an issue with the circle marker in ui leaflet plugin. When ever a some one clicks on a circle im getting the popup but if I click outside the circle in the map and then try clicking circle again the popup is not coming up.</p>
<p>Can you please suggest what might be the problem? and is there any workarou... | 2 | 1,780 |
django - invalid literal for int() with base 10 in django Admin | Primary Key CharField | <p>I'm trying to figure out this fairly simple (but weird) problem.
I need ModelB to have a Foreign Key reference to ModelA (with a CharField PK), like so:</p>
<pre><code>class ModelA(models.Model):
name = models.CharField(primary_key=True)
tags = TaggableManager()
class ModelB(models.Model):
model_a = mo... | 2 | 2,535 |
jQuery UI Dialog with iFRAME | <p>I'm implementing a jquery UI dialog with iFrame. The dialog has an iFrame which has a file upload page.<br>
Everything is fine, but closing the dialog from the iFrame page got problem.</p>
<p>The below is my code:</p>
<p><strong>Parent Page</strong></p>
<pre><code><!-- Upload File Form -->
<div id="dialo... | 2 | 1,451 |
JSON: Value of type java.lang.String cannot be converted to JSONObject | <p>I'm trying to program an app to send a String to a service. A friend of mine has a service to receive the data.</p>
<p>Logcat shows this error: "org.json.JSONException: Value FIRST of type java.lang.String cannot be converted to JSONObject"</p>
<p>Here is my code:</p>
<blockquote>
<p>Main Activity</p>
</blockqu... | 2 | 2,621 |
Oracle Apex Get Table Name From Page Variable | <p>Oracle 11g</p>
<p>APex 4.2.6.00.03</p>
<p>I have 15 views each holds 1 months data. from -3 months to forward 12 months. I have set a dynamic action which sets a val from a LOV dropdown list of :P_Matrix_Var give the view name. </p>
<p>Code below gets all data but need to use the dynamic table name :P_Matrix_Var... | 2 | 3,389 |
xml parsing using boost | <p>I am parsing below xml file using BOOST library- </p>
<pre><code><da>
<m_day Type="int">15</m_day>
<m_month Type="int">8</m_month>
<m_year Type="int">1947</m_year>
</da>
</code></pre>
<p>My cpp code is :</p>
<pre><code> #include <boo... | 2 | 1,204 |
Can't get work EclipseLink DynamicEntity with Oracle sequence | <p>I'm trying to persist Dynamic Entity with EclipseLink 2.3. If I'm not configuring sequence and just assign a value to field it works. Also not setting a value works, sequence is working with trigger in database. But I want to get generated id of field(next value of sequence).</p>
<p>There is a simple table with 2 c... | 2 | 1,648 |
Can you mimic an existing service in WCF? | <p>We have a 3rd party vendor service and an in-house service to communicate with it. Everything works perfectly with our in-house service, but I've been asked to write a fall back clone of our vendor's service. The intention is to be able to run up our clone, swap-out the client end-point and allow our in-house servic... | 2 | 2,052 |
How do I get values returned in jqGrid editmode for select control in an asp.net mvc site? | <p>I have a grid that fills select lists from a dataurl in the jqGrid edit form. These values populate successfully on the get. I am pulling back my data as json and there is a custom type of LookupItem w/fields Id and Name for the items that show in the select list - this part works fine. For example I have an obje... | 2 | 3,483 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.