title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
jQuery Time ago from a timestamp? | <p>Below is a really nice time ago plugin for jQuery, very similar to what they use here on SO. The problem for me is that it uses this to convert time. </p>
<pre><code><time class="timeago" datetime="2008-07-17T09:24:17Z">July 17, 2008</time>
</code></pre>
<p>That would be great except that I store tim... | 0 | 2,143 |
Android Media Codec video decoding | <p>This is my first question so please let me know if I missed anything!</p>
<p>Using Android API 16's new Media Codec implementation to try and decode a video so that I can send frames to be applied as a texture (the texture part is already done). So I have come up with the following code with some help off stack but... | 0 | 1,704 |
Displaying and hiding parts of the web form freely without limitations in order to avoid ViewState loading problems | <h1>The problem</h1>
<p>I have a web form and I would like to hide and show some panels. When I say "Panel" I do not mean the <code>Panel</code> control but just a pane in the html (usually represented by a DIV).</p>
<p>Well I want to show and hide this panels as I wish... no limits means that not necessarly ... | 0 | 1,822 |
Understanding touch events | <p>I'm trying to make some of my libraries work with touch devices, but I'm having a hard time trying to figure out how they're supported and how they work.</p>
<p>Basically, there are <a href="https://developer.mozilla.org/en-US/docs/DOM/Touch_events" rel="noreferrer">5 touch events</a>, but it seems there's consensu... | 0 | 1,162 |
VS Code IntelliSense not working for Unity3d | <p>Problem: IntelliSense is not working for Unity specific methods and functions (i.e., <code>Update</code>, <code>FixedUpdate</code>, <code>Awake</code>, etc.).</p>
<p>It does work, however, for non Unity specific methods (i.e., <code>IEnumerator</code>, <code>void</code>, <code>public</code>, <code>float</code>, <co... | 0 | 2,381 |
Open new HTML page via javascript and pass parameters | <p>I am completely new to javascript and web development and have a question. I have two HTML files, one includes a search field and a search button, the other one should (later) include the search results. If a user clicks the search button, I want to open the other HTML file and pass the search term. </p>
<p>If I do... | 0 | 1,577 |
How to implement custom header icons within a (nested) StackNavigator? | <p>This might be a noobish question, but although I read the documentation and other sources, I still did not figure out <strong>how to implement two or more additional, clickable icons in the header within a StackNavigator</strong>, just like in the picture. If the stackNavigator wants to show a back-icon, he is allow... | 0 | 1,104 |
How to chain map and filter functions in the correct order | <p>I really like chaining <code>Array.prototype.map</code>, <code>filter</code> and <code>reduce</code> to define a data transformation. Unfortunately, in a recent project that involved large log files, I could no longer get away with looping through my data multiple times...</p>
<h2>My goal:</h2>
<p>I want to creat... | 0 | 2,481 |
Principal Component Analysis not working | <p>I'm trying to do principal component analysis on datasets containing images, but whenever I want to apply pca.transform from the sklearn.decomposition module I keep getting this error: <strong>*AttributeError: 'PCA' object has no attribute 'mean_'*</strong>. I know what this error means, but I have no clue how to fi... | 0 | 1,285 |
Uncaught Error: Unexpected directive 'angular-material' imported by the module 'MyMaterialModule'. Please add a @NgModule annotation. angular 5 | <p>I keep have this error </p>
<blockquote>
<p>Uncaught Error: Unexpected directive 'MatPaginator' imported by the module 'MaterialModule'. Please add a @NgModule annotation.</p>
</blockquote>
<p>this is my material module </p>
<pre><code>import { NgModule, ViewChild } from '@angular/core';
import { CommonModule }... | 0 | 1,107 |
jTable right-click popup menu | <p>I have a SQL database and I am working on a program that will allow me to add/delete/modify records. I already managed to add records I am working on editing/deleting them.</p>
<p>I want to display the existing records in a table so I am using jTable. I found some code online and modified it to pull the records and... | 0 | 1,125 |
Center custom UIView vertically and horizontally using Auto Layout | <p>I'm trying to build a rather simple animated custom UI using the Auto Layout API newly available iOS 6. The custom view I'm building has a circle that I want to be both vertically and horizontally centered.</p>
<p>Unfortunately I can't figure out why my constraints appear to work fine for UIButton, and UILabel elem... | 0 | 1,069 |
Why influxdb fails to start? | <p>I installed the Influxdb version <strong>(InfluxDB v1.7.7)</strong></p>
<p>I just installed and i tried to start the infludb without changing anything in the configuration file...</p>
<p>I used <strong>influxd</strong> to start the influxdb</p>
<p>But i couldn't start...am getting the error as below....Please hel... | 0 | 3,354 |
Extract url from Java String containing <img src> tag | <p>I would like <strong>to extract the folowing String</strong> :</p>
<pre><code>http://www.01net.com/images/article/mea/150.100.790233.jpg
</code></pre>
<p>This string is the url of the first element tag in the following Java string :</p>
<pre><code><img src="http://www.01net.com/images/article/mea/150.100.7902... | 0 | 1,717 |
Remove item from GridView | <p>I am very new to android development and I feel like this is very simple, yet, I haven't managed to find anyone on google with the same problem.
I have a Gridview that is filled with a TextView (which has an image on top) and an ImageButton (to delete the current item). What I want to do is to remove the item of wh... | 0 | 1,788 |
jquery - How to get xml data | <p>Im a total noob to html, css, javascript, and programming altogether. Please bear with me.</p>
<p>Im trying to populate my table using jquery. The data will be coming from an xml file.</p>
<p><b><code>football_player.xml</code>:</b></p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<football_player&... | 0 | 1,057 |
WCF Exception: Text Message Encoding and ISO-8859-1 Encoding | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/1908030/calling-a-webservice-that-uses-iso-8859-1-encoding-from-wcf">Calling a webservice that uses ISO-8859-1 encoding from WCF</a> </p>
</blockquote>
<p>I am trying to consume an external Web Service (the web... | 0 | 1,747 |
Sort a list by id by using javascript | <p>I'm making a phonegap app on iOS that requires sort a list by time
I tried add the time to the id of each li item and then sort based on the id </p>
<pre><code><ul id="test">
<li id="4112">blub</li>
<li id="1422">blaaah</li>
<li id="6640">hmmmm</li>
<li id="2221">one ... | 0 | 1,123 |
java.sql.SQLException: Unable to run insert stmt on object | <p>I have been trying to insert a record into the database but its not working in Android even though I have done it before. This is the first time I am working with multiple tables in ORMLite.</p>
<p>This is what I am trying to do:
Storing data from XML into a model
Then trying to insert the data from the model.</p>
... | 0 | 1,311 |
How to influence layout of graph items? | <p>I am trying to visualize a simple Finite State Machine graph using Graphviz. The layout created by Graphviz is not completely to my liking. I was expecting a more compact result with shorter edges.</p>
<p>So far, I have tried using groups and changing the weights of edges, but not much luck. It is not clear to me w... | 0 | 1,339 |
Kafka Java Producer with kerberos | <p>Getting error while sending message to kafka topic in kerberosed enviornment. We have cluster on hdp 2.3</p>
<p>I followed this <a href="http://henning.kropponline.de/2016/02/21/secure-kafka-java-producer-with-kerberos/" rel="noreferrer">http://henning.kropponline.de/2016/02/21/secure-kafka-java-producer-with-kerbe... | 0 | 4,222 |
Getting a ClassCastException: java.lang.Integer cannot be cast to java.lang.String error without casting | <p>I am working on an app for Android and can't figure out the error or mistake which I am making. I am searching for the error for more than 4 hours.</p>
<p>I am getting the following Exception working with SharedPreferences:</p>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
Caused by: java.lang.ClassCastExcep... | 0 | 1,427 |
Jenkins unable to read config.xml: hudson.security.GlobalMatrixAuthorizationStrategy hudson.security.LDAPSecurityRealm | <p>Using Jenkins 2.169</p>
<p>A Jenkins server suddenly failed today with the following error:</p>
<pre><code>SEVERE: Failed Loading global config
java.io.IOException: Unable to read /somewhere/jenkins/home/config.xml
at hudson.XmlFile.unmarshal(XmlFile.java:181)
at hudson.XmlFile.unmarshal(XmlFile.java:161)
... | 0 | 1,746 |
Dynamic nested json string to java object using jackson | <p>i have trouble in parsing json</p>
<p>I have a nested json string, i need to convert to java object , the string look like this, i want to ask how to handle this nested dynamic json using jackson, how to decode dynamic nested json string </p>
<pre><code>{
"resultCode": "0",
"dataObject": [
{
"lastSync... | 0 | 2,476 |
Why `PagerAdapter::notifyDataSetChanged` is not updating the View? | <p>I'm using the ViewPager from the compatibility library. I have succussfully got it displaying several views which I can page through.</p>
<p>However, I'm having a hard time figuring out how to update the ViewPager with a new set of Views.</p>
<p>I've tried all sorts of things like calling <code>mAdapter.notifyData... | 0 | 1,302 |
SaxParseException in XSD validation does not give element name | <p>I have an xsd file and an xml file, I am validating the xml file against the xsd file using the following code</p>
<pre><code>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(true);
factory.setAttribute(
"http://java.sun.com/xml/jaxp/proper... | 0 | 1,508 |
Android Google+ integration - repeated UserRecoverableAuthException | <p><em>We have contacted Google about this and <a href="https://chat.stackoverflow.com/rooms/33772/discussion-between-lee-and-arkaaito">we are on chat</a></em></p>
<p><em>The issue seems to be fixed for devices <strong>except</strong> Samsung phones.</em></p>
<p>I'm adding a Google+ sign in option to an app per the <a ... | 0 | 2,218 |
How to get value from a nested JSON array in AngularJS template? | <p>I have some JSON data below:</p>
<pre><code>{
"tracks": [
{
"album": {
"released": "2013",
"href": "spotify:album:3qGeRY1wt4rrLIt1YuSwHR",
"name": "The Marshall Mathers LP2 (Deluxe)",
"availability": {
"territories": "AD AR AT AU BE BG BO B... | 0 | 1,047 |
Java: gradle build failed bootRepackage (on create jar) | <p>Doing a web project means: Java (jdk 1.7.0.51) + Spring framework (+velocity) + Hibernate + Gradle + Apache Tomcat.
Suddenly, there was a problem: you can not make a build. To build using Gradle.</p>
<blockquote>
<p>16:50:30: Executing external task 'build'...
:compileJava
:processResources UP-TO-DATE
:clas... | 0 | 3,609 |
Why are my Gradle builds dying with exit-code 137? | <p>I've been trying to compile and test a large project to use Gradle. The test run fine until they die unexpectedly. I dug around and resources said that this is due to a memory issue. If I reduce the number of tests in the suite, it runs fine.</p>
<p>I increased the memory by 4x increased the debugging level but I s... | 0 | 3,544 |
Enterprise library exception: Activation error occured while trying to get instance of type ICacheManager, key? | <p>Using .net 3.5 and Enterprise library 5.0.</p>
<p>From my research, I found a similar issue here:
<a href="https://stackoverflow.com/questions/6234076/activation-error-occured-while-trying-to-get-instance-of-type-icachemanager-key">Activation error occured while trying to get instance of type ICacheManager, key &qu... | 0 | 1,057 |
Error assignment to expression with array type in C | <pre><code>#include <stdio.h>
int main()
{
int diff [8];
int experiment[8]={0,1,2,3,4,5,6,7,};
int measurements[8] ={0,1,2,3,4,5,6,7};
int counter;
int socre;
char output;
printf("Please enter the measurement for %d \n\n",measurements[0]);
scanf("%d",&experiment[0]);
printf... | 0 | 1,065 |
Running frontend and backend on the same port | <p>I am having a problem today that has something to do with routing. I have two main codes: one is the frontend and the other one is the backend. </p>
<p>The frontend is written using <strong>Vue.js</strong> so it's a <em>SPA</em>. This webapp is kind of complex and involves a lot of routing and backend <strong>AJAX<... | 0 | 1,455 |
Why can't Eclipse find javax.servlet.ServletContextListener? | <p>I know it is a question that was already asked many times, but I tried almost all the solutions I found and it still does not work.</p>
<p>I'm working with:</p>
<ul>
<li>Eclipse Kepler</li>
<li>Java 7</li>
<li>Maven</li>
<li>Tomcat 6.0.37</li>
</ul>
<p>I'm trying to start the serverbut it fails because of :</p>
... | 0 | 3,580 |
Getting Optional("") when trying to get value from KeyChain | <p>When I try to get my keyChain value, it return a string containing: </p>
<pre><code>Optional("[thing in the KeyChain]")
</code></pre>
<p>so, I tried to remove "Optional" by using a loop:</p>
<pre><code>var str = KeychainService.loadToken()
for(var i = 0; i < 9 ; i++)
{
str[i] = ""
}
</code></pre>
<p>But... | 0 | 1,257 |
iOS: Is there a way to determine when an UIView did appear, after calling view.hidden = NO | <p>I have an UIView with 8 to 10 large images (each loaded into an UIImageView) as subviews. Those images are aligned next to each other, so that they compose a real long horizontal image. This view is put into an UIScrollView, so that the user can scroll along this long horizontal image.</p>
<p>Loading all those imag... | 0 | 1,911 |
Is possible to debug dynamic loading JavaScript by some debugger like WebKit, FireBug or the IE8 Developer Tool? | <p>From <a href="https://stackoverflow.com/questions/1680030/how-to-solve-duplicate-objects-in-dynamic-loading-page-by-using-jquery">my recent question</a>, I have already created some JavaScript functions for dynamic loading of a partial view. But I can't debug any dynamic loading JavaScript. Because all of the loaded... | 0 | 1,544 |
Loading images/css/javascript in a jsp/java ee web application | <p>Today I just had my first class on Java ee and dynamic web project... and I have a question for you.</p>
<p>My teacher asked us to create a controller in an very basic mvc concept. </p>
<p>She gave us some code example and asked us to call a view from the controller. Ok, it works!
But then, if I try to add an imag... | 0 | 1,511 |
Use librsvg / rsvg to convert SVG images with ImageMagick | <p>I know this question has several answered version here (like this: <a href="https://stackoverflow.com/questions/11592085/imagemagick-convert-svg-to-png-not-working-with-rsvg-enabled">ImageMagick convert SVG to PNG not working with RSVG enabled</a> ), but actually I can't find a real solution to my exact problem. My ... | 0 | 2,063 |
Xcode 4.5 no such file or directory - libCordova.a | <p>clang: error: <strong>no such file or directory: '/Users/admin/Library/Developer/Xcode/DerivedData/__TESTING__-fzbkvdbnndieeagphtjhdndiyttl/Build/Products/Debug-iphoneos/libCordova.a'</strong></p>
<p>How do I get this a missing <strong>libCordova.a</strong> ?</p>
<p><a href="https://i.stack.imgur.com/NdAiG.png" re... | 0 | 1,424 |
Android - Proguard and retrofit 2? | <p>I am using from <code>Proguard</code> for my project and bellow code is in my <code>proguard-rules.pro</code> :</p>
<pre><code># Retrofit
-keep class com.google.gson.** { *; }
-keep class com.google.inject.** { *; }
-keep class org.apache.http.** { *; }
-keep class org.apache.james.mime4j.** { *; }
-keep class java... | 0 | 3,105 |
.NET Core2.0 bundleconfig.json not working | <p>I'm struggling trying to get bundling to work in a Core 2.0 web application. I have the following in my <strong>bundleconfig.json</strong> file:</p>
<pre><code>[
{
"outputFileName": "wwwroot/css/site.min.css",
"inputFiles": [
"wwwroot/css/site.css"
]
},
{
"outputFileName": "wwwroot/css/... | 0 | 1,733 |
nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/spring/servlet-context.xml] | <p>OK, thanks for helping out the last question. Here is my new error and that code that follows. The BOLD text in the error is all that I care about fixing since that is the only error.</p>
<blockquote>
<p><strong>[Thread-36] ContextLoader ERROR Context initialization failed
org.springframework.beans.factory.Bean... | 0 | 2,434 |
Kubernetes - Too many open files | <p>I'm trying to evaluate the performance of one of my go server running inside the pod. However, receiving an error saying too many open files. Is there any way to set the ulimit in kubernetes?</p>
<pre><code>ubuntu@ip-10-0-1-217:~/ppu$ kubectl exec -it go-ppu-7b4b679bf5-44rf7 -- /bin/sh -c 'ulimit -a'
core file size... | 0 | 1,800 |
Getting a device UDID from .mobileconfig | <p>I'm trying to write function similar to <a href="http://whatismyudid.com/" rel="noreferrer">http://whatismyudid.com/</a> that, then approved, will return the users UDID and store it to a database for future reference with that user.</p>
<p>I have written a .mobileconfig xml doc that opens in the Profile Installer j... | 0 | 1,033 |
SSE instructions to add all elements of an array | <p>I am new to SSE2 instructions. I have found an instruction <code>_mm_add_epi8</code> which can add two array elements. But I want an SSE instruction which can add all elements of an array.</p>
<p>I was trying to develop this concept using this code:</p>
<pre><code>#include <iostream>
#include <conio.h>... | 0 | 1,678 |
How to set the datacontext of a user control | <p>I'm writing an application in WPF, using the MVVm toolkit and have problems with hooking up the viewmodel and view.</p>
<p>The model is created with ado.net entity framework.</p>
<p>The viewmodel:</p>
<pre><code>public class CustomerViewModel
{
private Models.Customer customer;
//constructor
... | 0 | 1,192 |
open source business intelligence solutions | <p>which open source business intelligence solution would you recommend?</p>
<p>All I need is to build some cubes and let the end user play with dimensions, filter data, sort, etc, and once it's done being able to export it to excel...</p>
<p>I'd like the solution to be as simple and easy on resources as possible, an... | 0 | 1,496 |
How can I extract API calls from an APK file? | <p>Using Python, I am trying to extract the API calls that an Android application makes, given it's .apk file. </p>
<p>Is there a way to parse/extract names of the APIs used by a package through static analysis of its APK?</p>
<h2>Here's what I've tried/discovered so far....</h2>
<p>I have seen this question <a href... | 0 | 1,223 |
Using RxJs and Angular 2 in order to deal with server-sent events | <p>I am trying to display server-sent events emitted values in an angular 2 /RxJs app.</p>
<p>The backend regularly sends individual strings to the client through server-sent events.</p>
<p>I am not sure how to deal with the retrieved values on the angular 2/RxJs side.</p>
<p>Here is my client (a ng component):</p>
... | 0 | 1,378 |
Open Port in Ubuntu | <p>So I'm using AWS using EC2 and I'm trying to open up a port for Postgresql. In AWS I already have it open:</p>
<pre><code>TCP
Port (Service) Source Action
0 - 65535 sg-92aadda2 (default) Delete
22 (SSH) 0.0.0.0/0 Delete
80 (HTTP) 0.0.0.0/0 ... | 0 | 1,479 |
Update value in datatable | <p>I was trying to update my datatable when ever the same book title is inserted into the cart. </p>
<pre><code>public bool checkBook(DataTable dt, String title)
{
bool returnval = false;
try
{
foreach (DataRow dr in dt.Rows)
{
String checktitle = dr["Title"].ToString();
... | 0 | 1,133 |
XML deserialization error with root | <p>I am having a problem while deserializing an XML:</p>
<pre><code>System.InvalidOperationException was unhandled
Message=There is an error in XML document (0, 0).
Source=System.Xml
StackTrace:
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializa... | 0 | 1,299 |
Can I read an Outlook (2003/2007) PST file in C#? | <p>Is it possible to read a .PST file using C#? I would like to do this as a standalone application, not as an Outlook addin (if that is possible). </p>
<p>If have seen <a href="https://stackoverflow.com/questions/318727/pst-to-csv-file-conversion">other</a> <a href="https://stackoverflow.com/questions/486883/problem-... | 0 | 1,495 |
Display div below the row in html table? | <p>I have below code:</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<style type="text/css">
table {
table-layout: fixed;
width: 100%;... | 0 | 3,129 |
android - proguard error in android studio | <p>I want to use proguard for my application ,I enabled it but when I want to generate apk file ,it gives me this error:</p>
<pre><code> Information:Gradle tasks [:app:assembleRelease]
:app:preBuild UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkReleaseManifest
:app:preDebugBuild UP-TO-DATE
:app:prepareComAnd... | 0 | 1,420 |
IOException cannot delete path | <p>I get this error in one of my projects.</p>
<blockquote>
<p>FAILURE: Build failed with an exception.<br></p>
<ul>
<li><p>What went wrong:</p>
<p>Execution failed for task ':app:transformClassesWithDesugarForDevServerDebug'.
com.android.build.api.transform.TransformException: java.io.IOException: Cou... | 0 | 4,637 |
Retaining Form Values After Post (not part of model) | <p>I have a MVC4 page that has a form with a collection of checkboxes, radio buttons and textboxes used as the search fields. Upon post the selections are parsed and the lower results grid is updated with new results. Right now all the form values are wiped out upon return and the new results are displayed in the gri... | 0 | 2,586 |
How to get item value in a listview in android? | <p>I have referenced to a tutorial and I have created a custom list view in fragment, but I am unable to get the position or value of any item on item click of list view. I want to show a toast containing the position of the item. I don't know how to implement that.</p>
<p>CustomListAdapter.java</p>
<pre><code>public... | 0 | 1,373 |
How to fix error 404 with app.js and app.css in Laravel? | <p>I am using Laravel 6 and Bootstrap 4.</p>
<p>I made a little app and I was trying to change the background color of the body in the CSS file but I noticed that it didn' work.</p>
<p>So I checked in the tools for the developers and I saw that there are two errors about <strong>app.js</strong> and <strong>css/app.cs... | 0 | 1,231 |
Android Play Vimeo Video | <p>I want to play my Vimeo videos and I've followed the steps in <a href="https://github.com/vimeo/vimeo-networking-java" rel="nofollow">https://github.com/vimeo/vimeo-networking-java</a>.</p>
<p>I used this method to get the Video object and then load it into a WebView.</p>
<pre><code>VimeoClient.getInstance().fetch... | 0 | 2,708 |
Populate textbox based on Dropdown selection - JavaScript | <p>I have a little question as I'm very new to JavaScript. I've made a dropdown containing various counties, and based on which county is selected, I want a specific email-address to populate a text field. I'm working with the following HTML form:</p>
<pre><code><div
<br>
Email:
<br... | 0 | 1,038 |
Retrofit 2: response.body() is null, but status code is 200 | <p>I'm not sure why this is happening, I am trying to get data from:</p>
<pre><code>https://api.stackexchange.com/2.2/questions?order=desc&sort=creation&site=stackoverflow&tagged=android
</code></pre>
<p>Using the following code:</p>
<pre><code>public interface StackOverflowAPI {
@GET("/2.2/question... | 0 | 3,095 |
Is there a pattern for dealing with "Cancel" in AngularJS modal dialogs? | <p>Note: This is not about showing a modal dialog with AngularJS, that topic has plenty of questions and answers!</p>
<p>This question is about how to react to both OK and Cancel within a modal dialog on a page. Let's say you've got a scope with just one variable in it:</p>
<pre><code>$scope.description = "Oh, how I ... | 0 | 1,031 |
SSL connection failing for Java 7 | <p>I am attempting to create an SSL connection to a remote server using Java 7 and I'm receiving the following exception:</p>
<pre><code>javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946)
at sun.security.ssl.S... | 0 | 3,885 |
Nodejs Socket hang up & ECONNRESET - HTTP post request from Meteor to Node js server | <p>I am using a node server to handle all my push notifications services like gcm and apn.</p>
<p>I have 2 different servers. One is running Meteor and another is running Node.JS to handle push notifications. (Both are different servers)</p>
<p>My main app runs on the Meteor server.</p>
<p>I make an HTTP post reques... | 0 | 1,991 |
Exception in thread "main" java.util.InputMismatchException | <p>I need help with one exercise in java, I'm stuck on this error for 2 hours maybe. Any help would be great.</p>
<pre><code>Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:909)
at java.util.Scanner.next(Scanner.java:1530)
at java.util.Scanner... | 0 | 1,439 |
AssertionError: `HyperlinkedIdentityField` requires the request in the serializer context | <p>I want to create a <code>many-to-many</code> relationship where one person can be in many clubs and one club can have many persons. I added the <code>models.py</code> and <code>serializers.py</code> for the following logic but when I try to serialize it in the command prompt, I get the following error - What am I do... | 0 | 1,346 |
BigDecimal causes NumberFormatException | <p>I am working on a financial app and i have to use BigDecimal to calculate currency.Now I am trying to make one entrance activity which is searching in the SharedPreferences for a previous registration and if their is one it starts another activity , if not it starts the registration activity.The problem is the regis... | 0 | 3,325 |
how to add props in route component in react-router-dom v6 | <p>As heading states, I used to have a page with a stateful component that gets different props based on changes to url made from .</p>
<p>Now, upgraded to react router v6, I really do not understand how to make it work again. I do understand that the only way to solve this now is using hooks such as useNavigate, but I... | 0 | 1,677 |
How to retrieve data from json array and display in textview? | <p>I've been using the coding from an example from <a href="http://fahmirahman.wordpress.com/2011/04/21/connection-between-php-server-and-android-client-using-http-and-json/" rel="nofollow noreferrer">this link</a>: The code is as shown below:</p>
<pre><code>public class food extends ListActivity {
@Override
... | 0 | 1,184 |
how to create a python socket listener deamon | <p>i would like to know how to create a deamon that listens for a post request. i found this code to create a deamon on this <a href="http://code.activestate.com/recipes/278731/" rel="nofollow">link</a> but i didn't know how to fill it.
im sending commandes from an android phone to a php server over json that redirect... | 0 | 3,105 |
Spring MVC, REST, JSON, and DispatcherServlet and @RequestMapping | <p>I cannot seem to get a simple REST client integration test going. I am using Spring 3.1 MVC with a JavaConfig setup. I use Maven, and I can build, run and deploy my current webapp with no problems. </p>
<p>First, here's some code and config</p>
<p>My controller</p>
<pre><code>@Controller
@RequestMapping("/res... | 0 | 4,001 |
ggplot geom_bar group by month and show count | <p>I'm finding this surprisingly tricky. I would like to create a trended bar chart showing counts by month on a datetime filed.</p>
<p>Some data:</p>
<pre><code>structure(list(id = c("p036502", "p039565", "p233823", "p185307",
"p013780", "p063374", "p103285", "p181781", "p114989", "p191410",
"p030093", "p226941", ... | 0 | 1,647 |
retrieving data from mysql database table in Java | <p>I'm having a problem retrieving data from the database.
I have a function</p>
<pre><code>import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class DataAccess {
private Connection c... | 0 | 2,926 |
Recursive merge sort in MIPS using stack | <p>I am trying to implement the <strong>merge sort</strong> algorithm in a very dirty manner since it was told by our teacher to do so.</p>
<p>This program takes the input integer array from the user and prints the value of the array each time the sort is call (just for testing. I will correct it later). It is entirel... | 0 | 3,123 |
GROUP BY + CASE statement | <p>I have a working query that is grouping data by hardware model and a result, but the problem is there are many <em>"results"</em>. I have tried to reduce that down to <em>"if result = 0 then keep as 0, else set it to 1"</em>. This generally works, but I end up having:</p>
<pre><code> day | name ... | 0 | 1,147 |
Module not found: Can't resolve 'apollo-client' | <p>While migrating from apollo-boost to @apollo/client 3.x lib. for reactjs-graphql application facing this issue.</p>
<pre><code>Failed to compile.
./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js
Module not found: Can't resolve 'apollo-client' in 'C:\geospat\node_modules\@apollo\react-hooks\lib'
</code></pre... | 0 | 2,643 |
Jupyter notebook - OSError [Errno 2] No such file or directory | <p>I had to install Jupyter in order to complete Udacity's projects. After following the instructions, and running Jupyter, none of the notebooks would open. This is the log output: </p>
<pre><code>[W 06:54:04.215 NotebookApp] The signatures database cannot be opened; maybe it is corrupted or encrypted. You may need t... | 0 | 1,397 |
Popup dialog for editing record using Grid.MVC in a ASP.NET MVC3 | <p>I am using Grid.MVC available at <a href="http://gridmvc.azurewebsites.net/" rel="noreferrer">http://gridmvc.azurewebsites.net/</a>, which provides functionality for displaying the data in grid nicely, where filtering, sorting, paging is nicely done. This is the way the data in Grid looks at the moment.</p>
<p><img... | 0 | 5,175 |
how to set absolute position of images relative to screen center | <p>I try to set up a simple landing page for my website, and there will only be 5 images, ordered in a pentagon-like form. (the images will be at pentagons edges each).
so instead of 5 images in a line or a row, there are 5 images in a "circle".</p>
<p>I was able to set the images in a responsive layout in the positio... | 0 | 3,368 |
Invalid object error when sending json values with apostrophe to webservice | <p>I am trying to send a json object to a webservice, to be deserialized into a custom (LineItemWithDetails) object. When there are apstrophes anywhere in the json being passed to the webservice, I get the error below. In this case it is "BudgetJustification". I do not know what I am supposed to do here.</p>
<pre><cod... | 0 | 1,510 |
How do I change button text from "Choose an option" in Woocommerce? | <p>How would I go about changing this PHP code to to change Choose an option based on the id of the select element in the Woocommerce plugin for WordPress? I believe I have found the correct PHP file in wc-template-function.php but my lack of PHP skills is holding me back. Here is what I have so far:</p>
<pre><code>if... | 0 | 2,703 |
Output from servlet to JSP | <p>I am passing parameters from JSP page <em>calendar.jsp</em> to a servlet <em>connect.java</em>.
In the Java class I am passing a query from a database. It retrievs data fine but I need it to print the result back to the JSP page.</p>
<p>I tried the following code but with an error at <code>out.println()</code>.</p>... | 0 | 1,678 |
Pkpass on Android | <p>There is an android app, Passwallet, that is able to interpret pkpass files intented for the apple app Passbook (<a href="https://play.google.com/store/apps/details?id=com.attidomobile.passwallet" rel="noreferrer">https://play.google.com/store/apps/details?id=com.attidomobile.passwallet</a>)</p>
<p>I was wondering ... | 0 | 1,593 |
how to send email with react.js front end? | <p>i have created a websites and deployed it ( using react js ) in my website there is a contact form which will send the client message to my work email ( myname@comany.com) . i know i can't send email with react js because rereact only handle the front end so i'm looking for a solution using nodemailer or other solut... | 0 | 2,829 |
Convert a list of objects to an xml string | <p>Hello I have a list of object i want to convert into an xml. Here is what the final xml should look like. </p>
<pre><code><ArrayOfTweet>
<Tweet>
<Photos>
<Photo>
<PhotoHeight>FOO</PhotoHeight>
<PhotoUri>a/random/ur/pat... | 0 | 1,187 |
Android webview fit all content to screen | <p>Hi I have a webview and I want it to fit to screen, such that the user does not have to scroll horizontally or vertically</p>
<p>I have searched before, many suggest the following but it only limits the width, user will still have to scroll vertically:</p>
<pre><code>engine = (WebView) (findViewById(R.id.webView1)... | 0 | 1,069 |
Prevent Bootstrap columns overlapping | <p>Could you lease tell me how to prevent the brands select box from being hidden behind the date. I gave minimum width to dates because I do not want them to collapse more than the minimum width.</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
... | 0 | 1,920 |
SwiftUI: Random "Extra argument in call" error | <p>So I'm trying to learn SwiftUI and Combine. I usually start new tech by making a simple tip calculator. </p>
<p>I seem to be getting a random "Extra argument in call." error while coding
Here is my SwiftUI File</p>
<pre><code>import SwiftUI
internal enum ReceiptRowType {
case subtotal
case tax
case t... | 0 | 2,621 |
How add custom css tooltip to extjs column header? | <p>I am new to extjs . I am trying to add tooltip preferably css based to the column headers .
How can I go about adding custom tooltip to the extjs column header using css? the extjs default way doesnt seem to work.</p>
<p>I tried using the custom css tooltip for the header and it didnt work .. Is it at all pos... | 0 | 1,552 |
Symfony 404 not found | <p>I'm new to symfony.</p>
<p>I did: </p>
<pre><code>rm -rf app/cache/*
rm -rf app/logs/*
</code></pre>
<p>Then:</p>
<pre><code>sudo setfacl -R -m u:www-data:rwx -m u:user :rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:user:rwx app/cache app/logs
</code></pre>
<p><code>ls -al</code> gives:</p>
<p... | 0 | 2,908 |
SQL_NO_CACHE does not work | <p>The first time I run this sql, needs 39 seconds,when I run again and increase SQL_NO_CACHE,does not seem to take effect:</p>
<pre><code>mysql> select count(*) from `deal_expired` where `site`=8&&`area`=122 &&
endtime<1310444996056;
+----------+
| count(*) |
+----------+
| 497 |
+--------... | 0 | 1,546 |
Angular dynamic formControlName generate with fromGroup | <p>I have created a form which consist of JSON array and according to that, I am generating Validation,formControlName and generating output through formGroup.</p>
<pre><code>this.ELEMENT_DATA_UPDATE = [
{
first_name : 'abc',
last_name : 'xyz',
phone : 8888888888
}
];
</code></pre>
<p>Here... | 0 | 1,854 |
ReactJS: How to handle Image / File upload with Formik? | <p>I am designing a profile page for my site using <code>ReactJS</code>.
Now my question is how do I upload the image from local machine and save it to the database and also displaying it in the profile page</p>
<pre><code>import React, {Component} from 'react';
import { connect } from 'react-redux';
import { Account... | 0 | 1,473 |
"where exists" in Hibernate HQL | <p>How can I write a "not exists" query in HQL? I am trying to get an HQL not exists query which returns the same results as this Oracle SQL query:</p>
<pre class="lang-sql prettyprint-override"><code> select *
from SCHOOL a
where not exists (select 1
from STUDENT b
where B.SCHOOL_ID=a.id
... | 0 | 2,131 |
How to generate @XmlRootElement Classes for Base Types in XSD? | <p>I am having some issues with generating Java Classes with appropriate JAXB annotations from an XSD using XJC.</p>
<p>I have a relatively simple XSD file defining my XML schema. The complex types within the XSD take advantage of inheritance using the <code><xs:extension></code> tags. The problem I having is th... | 0 | 2,160 |
IntelliSense for Data Binding not working | <p>After a couple of hours trying to debug an issue with data-binding that was caused by a mistyped property in a <code>Binding</code> extension. Once I noticed the mistake, the realization that if IntelliSense was available I may have not made the mistake in the first place. As a Visual Studio user who is used to erro... | 0 | 1,434 |
How to use twitter bootstrap using assetic and less in symfony2? | <p>I can't get twitter bootstrap working. I know there is many tutorials and so on, but none of it works for me...</p>
<p>My composer.json is:</p>
<pre><code>"require":
[...]
"leafo/lessphp": "dev-master",
"braincrafted/bootstrap-bundle": "dev-master",
"twbs/bootstrap": "2.3.*"
</code></pre>
<p>My as... | 0 | 1,470 |
Android: How do I make a ListView update itself periodically? | <p>I never got this working in a straightforward manner. Sorry if I'm being a little vague. I'll try to elaborate on what I'm trying to do. I am trying to build a listview that grabs its data from a webservice. Once I initialize a listview, I want to keep polling the webserver periodically and update the contents of th... | 0 | 1,979 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.