title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Row-wise count/sum of values in Stata | <p>I have a dataset where each person (row) has values <code>0</code>, <code>1</code> or <code>.</code> in a number of variables (columns).</p>
<p>I would like to create two variables. One that includes the count of all the <code>0</code> and one that has the count of all the <code>1</code> for each person (row).
In m... | 0 | 1,058 |
External Link with React | <p>I'm totally new with React and I'm facing off a problem with an external Link. I would like to use it for a redirection to GitHub every time I click on the icon but actually the new window is not showing up instead I have this URL :
http://localhost:3000/https://github.com. I don't why it is not working because with... | 0 | 1,495 |
Android custom notification layout with RemoteViews | <p>I'm trying to create a custom notification for my android app using this <a href="https://stackoverflow.com/questions/18367631/change-notification-layout">post</a>, and I stumbled upon a problem which I tried to resolve for the last 2 hours.</p>
<p>Only the imageview of my layout shows, and I can't figure out how t... | 0 | 1,419 |
We're sorry, but something went wrong. If you are the application owner check the logs for more information | <p>In localhost my projects works perfectly but every time I deploy to heroku I receive Something went wrong..... I also ran Heroku run rake db:migrate. Any idea what is going on here?</p>
<pre><code>2015-11-01T23:27:52.203020+00:00 app[web.1]: bin/rails:8:in `require'
2015-11-01T23:27:52.203020+00:00 app[web.1]: ... | 0 | 5,348 |
Bar Chart in java | <p>I want to change the height of each bar (for example 10 for red part and 20 for blue part). But when I increase the height value it will increase the chart from bottom whereas I want the change to top! Do you know what is wrong with it?</p>
<pre><code>import java.awt.Color;
import java.awt.Dimension;
import java.aw... | 0 | 1,152 |
Maven 3.8.0 Compiler - Fatal error compiling: release version 11 not supported | <p>I'm unable to build using Java 11 with the latest version of the maven-compiler-plugin.</p>
<p>pom.xml:</p>
<pre><code><build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
... | 0 | 1,271 |
Uncaught TypeError: Cannot read property 'length' of undefined | <p>How do I avoid the following error when trying to take data from an AJAX call and plug it into another function when I click the submit button?</p>
<p>The console.log call in the ajax function shows that the data is grabbed and I'd hoped then stored in json_data.</p>
<p>The aim was then to use this data to alter a... | 0 | 1,511 |
p-fileUpload : how to read file after upload | <p>I try to read a file uploaded with the component below from the prime-ng library.</p>
<p>My html component :</p>
<pre><code><h3 class="first">Upload an excel file</h3>
<p-fileUpload name="myfiles[]"
chooseLabel="Choose a file"
uploadLabel="... | 0 | 1,170 |
PHP - using if conditions to redirect to different pages | <p>I want to redirect to different pages on an if condition using php.(not javascript) I tried as the example <a href="https://stackoverflow.com/questions/13231254/how-to-redirect-to-onother-page-after-if-condition-is-satified-in-php">here</a>. But unfortunately it doesn't works for me. :/ Here's my code:</p>
<pre><co... | 0 | 1,521 |
Reading data from Oracle DB using .Net is 10 times faster than using Java | <p>I'm reading 1 mln records from Oracle DB using .Net and Java.
In .Net I'm using ODP.Net, in Java ojdbc6 thin client.
In .Net reading data takes about 10 seconds, and in Java it takes nearly 2 minutes.
Why there is such huge difference ?</p>
<p>Here is a code:</p>
<p>.Net:</p>
<pre><code> try
{
... | 0 | 1,268 |
How to fix “Field … required a bean of type … that could not be found” exception Spring Boot | <p>I am working with spring boot tutorial about @Autowired and @Primary annotation
<br> Below you can find my main class</p>
<pre><code>package com.example.springtest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoc... | 0 | 1,902 |
'Uncaught SyntaxError: Unexpected token x in JSON at position 1' when trying to parse HTML embeded string JSON | <p>I've being trying to parse a hardcoded JSON string to an usable format, but I can't find a way to get it work, getting 'Unexpected token' or just weird outputs. Library used: <strong>jQuery</strong>. The data to be stored is:</p>
<pre><code>x:10
y,10
</code></pre>
<p>and</p>
<pre><code>x:200
y:10
</code></pre>
<... | 0 | 1,973 |
undefined reference to function declared in *.h file | <p>I am a unskilled programmer and new to linux, I run into a problem when complining. I have two files 'ex_addinst.c' and 'lindo.h' in the same folder, I input command :</p>
<pre><code>g++ -c ex_addinst.c
</code></pre>
<p>then, a object file ex_addinst.o is genetated with a warning: </p>
<pre><code>ex_addinst.c: In... | 0 | 2,537 |
DRF Object of type 'User' is not JSON serializable | <p>I'm trying to return the details of the current logged in user in the following way:</p>
<pre><code>from .serializers import UserSerializer
class UserDetailsView(RetrieveAPIView): ... | 0 | 3,544 |
writing data from C# to Excel interrupted by opening Excel Window | <p>While my C# program writes data continuously to an Excel spreadsheet, if the end user clicks on the upper right menu and opens the
<strong>Excel Options</strong> window, this causes following exception:</p>
<blockquote>
<p>System.Runtime.InteropServices.COMException with HRESULT: 0x800AC472</p>
</blockquote>
<p>This... | 0 | 2,103 |
How to pass model from view to controller when click button in MVC? | <p><strong>Index - View</strong></p>
<pre><code>@model SendAFaxWeb.Models.Send
//view start here
<body>
<div>
<h2>Test Upload File</h2>
<form action="@Url.Action("Index", "Home")" id="form" method="post" enctype="multipart/form-data">
@Html.AntiForgeryToken... | 0 | 1,136 |
How to remove all divs except the first one from <body> using jQuery? | <p>I have html page and I need remove all div except the div with id="allPage" and except all content of div with id="allPage". I have next code:</p>
<pre><code><body>
<div class="page" id="allPage">
<div id="header">
<div id="title">
<h1><a href="/">here<... | 0 | 1,150 |
Android: Putting a vertical divider/separator line between textviews in a horizontal linear layout nested in vertical linear layout? | <p>For an android content view, I have a vertical linearlayout with some textviews that have some lines to divide and separated the vertical elements, this works fine and the xml is below.</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res... | 0 | 1,938 |
Fluent Nhibernate Mapping for Sql Views | <p>i am using Fluent Nhibernate in asp.net mvc3 with c# </p>
<p>i am working in following way to generate and map a class </p>
<p><strong>Mapping</strong></p>
<pre><code>using FluentNHibernate.Mapping;
using Com.Web.Domain;
namespace Com.Web.Mapping
{
public class CompanyMap : ClassMap<Company&... | 0 | 1,070 |
Kendo UI toolbar buttons | <p>I am using a Kendo UI grid, which looks like this:</p>
<pre><code> function refreshGrid()
{
$(".k-pager-refresh.k-link").click();
}
var editWindow;
var fields= {FullName: {type: "string"}, Email: {type: "string"}, LogCreateDate: {type: "date"}};
var gridCol... | 0 | 3,784 |
JSF 2 Global exception handling, navigation to error page not happening | <p>I am developing a JSF 2.0 based web application. I am trying to implement a global exception handler which will redirect the user to a generic error page whenever any exception occurs (e.g. NullPointerException,ServletException,ViewExpiredException etc.)</p>
<p>Whenever a NPE occurs in my app, My customnavhandler b... | 0 | 1,438 |
The following packages use deprecated "rnpm" config that will stop working from next release | <p>I tried to update the react-native version to the latest from 0.59.8 to 0.60.3. But I got the following error when I try to run the app </p>
<pre><code>warn The following packages use deprecated "rnpm" config that will stop working from next release:
- native-base: https://github.com/GeekyAnts/NativeBase#readme
... | 0 | 1,124 |
Cannot click button in HTML? | <p>So I have a page in <code>HTML</code> which has a background based on the well-known <a href="https://github.com/VincentGarreau/particles.js/" rel="nofollow noreferrer">particle library</a>. I have a button and there is a problem with it: it can be seen but it cannot be clicked. I tried changing the size and the ali... | 0 | 2,656 |
Spring Boot. HMAC authentication. How to add custom AuthenticationProvider and Authentication filter? | <p>To implement HMAC authentication I made my own filter, provider and token.
RestSecurityFilter:</p>
<pre><code>public class RestSecurityFilter extends AbstractAuthenticationProcessingFilter {
private final Logger LOG = LoggerFactory.getLogger(RestSecurityFilter.class);
private AuthenticationManager authenticationMa... | 0 | 1,380 |
Can't use Amazon S3 API over SSL? | <p>I'm trying to use Amazon S3 API to encrypt and upload a file.</p>
<pre><code>public class AmazonS3 {
String KmsId = "my_id_comes_here";
private TransferManager getTransferManager() {
AWSCredentials awsCredentials = new ProfileCredentialsProvider().getCredentials();
KMSEncryptionMaterialsPr... | 0 | 2,434 |
Opencart Fatal error: Call to a member function get() on a non-object | <p>Trying to move from local host to new server. Fresh install worked fine, no problems. When I uploaded my files mydomain.com/admin comes up with a white screen and mydomain.com produces this error:</p>
<p>Fatal error: Call to a member function get() on a non-object in /home4/pawpostc/public_html/index.php on line 10... | 0 | 1,418 |
Visual C++ for python failed with exit status 2 when installing divisi2 | <p>i am using Python 2.7 on Windows 8.1 46 bit.</p>
<p>I want to install divisi2 <a href="https://pypi.python.org/pypi/Divisi2/2.2.5" rel="noreferrer">https://pypi.python.org/pypi/Divisi2/2.2.5</a></p>
<p>I have installed NumPy and SciPy which are the pre-requisites for divisi2 already. I have installed Visual C++ fo... | 0 | 1,160 |
Scroll to a div using jQuery | <p>so I have a page that has a fixed link bar on the side. I'd like to scroll to the different divs. Basically the page is just one long website, where I'd like to scroll to different divs using the menu box to the side.</p>
<p>Here is the jQuery I have so far</p>
<pre><code>$(document).ready(function() {
$('#con... | 0 | 1,898 |
How to setup a JTA data source in EclipseLink/JPA 2.0 in an Java EE 6 application for derby embedded database? | <p>I am not able to find ecbDB JTA data source in the unit test.</p>
<p>For RESOURCE_LOCAL the same persistence.xml works. Only within an EJB container it fails to locate a JTA data source.</p>
<p>I get the following exception when the unit test is executed..</p>
<pre><code>SEVERE: Exception while invoking class org... | 0 | 1,188 |
How can I put a border around the page? | <p>I am trying to work out how I can put a border around my page. Here is my html and css:</p>
<pre><code><html>
<head>
<title>Royal Aura club</title>
<link rel="stylesheet" type="text/css" href="restyle.css" / >
</head>
<body>
<main id="ma... | 0 | 1,792 |
java.lang.IllegalArgumentException: hostname cannot be null when trying to obtain AWS ECR Authentication Token | <p>I am trying to obtain ECR authorisation token from AWS using aws-java-sdk version 1.11.339. I have created a class to do so as below:</p>
<pre><code>public class ECRTokenGetter {
private static final Logger LOGGER = LoggerFactory.getLogger(ECRTokenGetter.class);
private static final int SINGLE_ELEMENT_INDEX... | 0 | 1,339 |
bootstrap carousel indicators not changing on click | <p>I have the code below that I wish to modify. I have separated the indicators from the bootstrap carousel. The slide is working fine but when I click on the list of indicators the image changes correspondingly but the indicator's indication is not changing.
I tried to modify it by assign the function to on click even... | 0 | 1,145 |
Warning: Task "karma" not found when running grunt test | <p><a href="http://www.sitepoint.com/kickstart-your-angularjs-development-with-yeoman-grunt-and-bower">http://www.sitepoint.com/kickstart-your-angularjs-development-with-yeoman-grunt-and-bower</a></p>
<p>After following this interesting guide about Angular, Yeoman, Bower and Grunt I was able tot bootstrap an Angular a... | 0 | 5,966 |
PHP: Convert <ul> <li> Tree HTML tag to an array | <p>I'm using jsTree and I need to convert this HTML tag tree code <code><ul> <li></code> to a PHP array.
The jsTree HTML tag will be passed to PHP to be parsed and store in a structured tree PHP array(see below for the PHP array structure).</p>
<p><em>Additional question</em>: Is my desired PHP array struc... | 0 | 2,016 |
Sending email without user Interaction - Android Studio | <p>Motivation: I am Creating a Signup Activity and I need to send an Automatic email under Button Click. I have Followed number of Blogs, stackoverflow questions and unable to send an email so-far.</p>
<p><strong>Working Environment:</strong> Android Studio 1.2 Beta 3</p>
<p><strong>Currently Followed Question :</str... | 0 | 3,597 |
Search HTML table with JS and jQuery | <p><br />
I made a table and wanted to make it searchable, so I googled and looked here at starckoverflow. <br />
But somehow, the things I've found, that should work, dont work for me?</p>
<p>Here is the code, both HTML and JS. <br />
<br /></p>
<pre><code><!DOCTYPE html>
<html class="no-js" lang="en">
&... | 0 | 3,309 |
FastAPI TypeError: Object of type 'ModelMetaclass' is not JSON serializable | <p>I'm getting this error, the models migrate successfully when i run <code>uvicorn main:app --reload</code> but when i tried to go to 127.0.0.1:8000/docs i got this error. I'm using Postgresql for the database</p>
<pre><code>TypeError: Object of type 'ModelMetaclass' is not JSON serializable
</code></pre>
<p>This is ... | 0 | 3,821 |
Cannot install netCDF4 python package on OS X | <p>I'm trying to install netCDF4 on OS X with <code>pip install netCDF4</code> and I am getting the following error:</p>
<pre><code>------------------------------------------------------------
/usr/local/bin/pip run on Wed Aug 7 23:02:37 2013
Downloading/unpacking netCDF4
Running setup.py egg_info for package netC... | 0 | 1,191 |
Trying to get key in a foreach loop to work using blade | <p>if I use <code>{{$node[0]->url}}</code> then Laravel's templating engine dislays the correct result but I can not figure out how to display all using the @for $i=0 within a @foreach loop this is what I have in my routes file</p>
<pre><code>$oReturn = new stdClass();
$fid='endpoints';//sample fid
... | 0 | 1,256 |
Parameter values for parameter (n_estimators) need to be a sequence | <p>I am getting the error, not sure how to fix it. Can you please help. The entire code can be found at <a href="https://github.com/kthouz/NYC_Green_Taxi/blob/master/NYC%20Green%20Taxi.ipynb" rel="noreferrer">https://github.com/kthouz/NYC_Green_Taxi/blob/master/NYC%20Green%20Taxi.ipynb</a></p>
<h1>optimize n_estimator... | 0 | 1,140 |
reading a string, int, and double from csv file | <p>Hello everyone i am trying to read a string, an int and a double from a csv file. This is a sample from my csv file:</p>
<pre><code>World Development Indicators
Number of countries,252
CountryName,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983... | 0 | 1,488 |
jQuery/Javascript - Run function before (document).ready for the purpose of loading an image | <p>I am trying to get the dimensions of an image in order to resize (or size) a canvas of it's length with twice the width. (So, for a 400x800 image I want a 800x800 canvas). What I'm trying to do right now is load the image twice, once to determine it's size and another time to display it. My HTML w/ Javascript/JQuery... | 0 | 2,992 |
segmentation fault : 11 | <p>I'm having a problem with some program, I have searched about segmentation faults, by I don't understand them quite well, the only thing I know is that presumably I am trying to access some memory I shouldn't. The problem is that I see my code and don't understand what I am doing wrong. </p>
<pre><code>#include<... | 0 | 1,355 |
Entity Framework Update method to object with collection | <p>I have problem with updating existing entity in DB. I'm using Entity Framework Code First.</p>
<p>I have small program with calculation food.</p>
<p>My domain classes></p>
<pre><code>public class Unit
{
public int Id { get; set; }
public string Name { get; set; }
}
public abstract class I... | 0 | 1,395 |
Django nested serializer allow_null=True | <p>I have a nested serializer and I want to activate the allow_null to true, but it doesn't work.</p>
<p>TOP object have a nested Down object, the related_name must be present in the TOP object but with a null value. If the down object is not null all down object fields are required.</p>
<p>Example request with all f... | 0 | 1,099 |
How to round up double to 2 decimal point - elasticsearch | <p>I have documents in elastic search that looks like : </p>
<pre><code>{
"entityFk": 0,
"entityCode": "ADM",
"entityObj": {
"id": 0,
"code": "ADM",
"description": "ADM - FIRSTCOM"
},
... | 0 | 2,339 |
SOAPUI - missing message part with name - schema compliance error | <p>Here is the wsdl file with the schema inline. I have the actual wsdl file being called locally aka localhost/wsdl/.</p>
<pre><code><wsdl:definitions xmlns="http://soap.company.com/fetch_n_pay"
xmlns:tns="http://soap.company.com/fetch_n_pay"
xmlns:s="http://www.w3.org/2001/XMLS... | 0 | 3,480 |
Cucumber parser error | <p>Here is my directory structure: </p>
<p>C:\Work\Test Scripts\Cucumber\features
features\guru.feature
features\step_definitions</p>
<ul>
<li>\step_definitions\step-guru.rb</li>
</ul>
<p>So running the command Cucumber from step_definitions still I see error as below:</p>
<p>c:\Work\Test Scripts\Cucumber\features\... | 0 | 1,668 |
unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed with ChromeDriver Selenium | <p>I'm using InstaPy which use Python and Selenium. I start the script per Cron and from time to time it crashes. So it'r really irregular, sometimes it runs well through. I'v posted on GitHub Repo as well already but didn't get an answer there, so i'm asking here now if someone has an idea why.</p>
<p>It's a digital o... | 0 | 1,488 |
Ionic subheader bar overlapping content | <p>In a view with header and subheader, subheader content overlaps the contents of the view.</p>
<ul>
<li><p>Header in slide menu</p>
<p>
</p>
<pre><code> <ion-nav-buttons side="left">
<button class="button button-icon button-clear ion-navicon" menu-toggle="left" ng-hide="$exposeAside.active... | 0 | 1,252 |
Processing a large file using spring batch | <p>I have a large file which may contain 100K to 500K records. I am planning to use chunk oriented processing and my thought is</p>
<p>1) Split the large file into smaller based on the count let say 10K in each file.</p>
<p>2) If there are 100K records then I will get 10 files each containing 10K reocrds</p>
<p>3) I... | 0 | 2,329 |
AWS Cognito: how to allow users to change email without verification? | <p>I'm new to AWS and I'm looking for a way to allow the users of my Android app to change their emails without going through the verification process (I managed to do it for the subscription).</p>
<p>I tried to follow <a href="https://github.com/aws-amplify/amplify-js/issues/987" rel="noreferrer">this</a> and <a href... | 0 | 1,097 |
pip install AttributeError: _DistInfoDistribution__dep_map | <p>I'm trying to spin up an nvidia-docker (2.0) container in Ubuntu 16.04 running Conda with a few python libraries (GPU-enabled tensorflow, opencv, and gdal) and their various dependencies. </p>
<h2>General explanation of the problem</h2>
<p>I have a few libraries that I need to install using pip within that environ... | 0 | 3,679 |
Using Jquery to display a modal "please wait" dialog box message | <p>Is it possible to block a page when a user clicks on a link and only enable it once the response has come back from the server.
I had a problem recently where a link was clicked on a page several times resulting in two simultaneous changes. </p>
<p>The problem was that the page was allowing multiple submit. I have... | 0 | 1,121 |
The remote server returned an error: NotFound | <p>I'm trying to retrieve a string in my old webservice but it give me an error of </p>
<blockquote>
<p>The remote server returned an error: NotFound.</p>
</blockquote>
<p>and its InnerException is </p>
<blockquote>
<p>{System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebEx... | 0 | 1,140 |
Yii2 Gii Forbidden code 403 You are not allowed to access this page | <p>I have a <code>server</code> machine and I am trying to allow my PC ip address to use <code>gii</code>.</p>
<p>My PC ip address is <code>192.168.1.101</code></p>
<p>The <code>server</code> machine ip is <code>192.168.1.102</code>.</p>
<p>I used <code>composer</code> to install the <code>gii module</code>.</p>
<p... | 0 | 1,067 |
How to use filter in Microsoft Graph API to get SharePoint items? | <p>Here I am trying to filter data based on created date. At 1st I tried in Graph Explorer and it's working.</p>
<pre><code>https://graph.microsoft.com/v1.0/me/messages?$filter=createdDateTime ge 2017-09-04&$select=subject,lastModifiedDateTime
</code></pre>
<p>Now trying to implement same in Dell Boomi. This is r... | 0 | 1,301 |
iOS Swift: saving an array of custom classes | <p>I am new to programming. I am making a little database program for iOS in swift. </p>
<p>I have a person class:</p>
<pre><code>class Person : NSObject {
var firstName : String
var lastName : String
init (firstName : String, lastName : String) {
self.firstName = firstName
self.lastName ... | 0 | 1,702 |
RealUID, Saved UID, Effective UID. What's going on? | <p>This is a set-root-uid program</p>
<pre><code>$ls -l
-rwsr-sr-x 1 root root 7406 2011-12-13 22:37 ./x*
</code></pre>
<h1>The source code:</h1>
<pre class="lang-c prettyprint-override"><code>int main(void) {
printf(
" UID GID \n"
"Real %d Real %d \n"
"Effe... | 0 | 1,070 |
Create a Pandas DataFrame from deeply nested JSON | <p>I'm trying to create a single Pandas DataFrame object from a deeply nested JSON string. </p>
<p>The JSON schema is:</p>
<pre><code>{"intervals": [
{
pivots: "Jane Smith",
"series": [
{
"interval_id": 0,
"p_value": 1
},
{
"interval_id": 1,
"p_value": 1.1162791357932... | 0 | 1,367 |
Flutter url_launcher Unhandled Exception: Could not launch youtube url (Caused by canLaunch) | <p>I'm trying to use the <code>url_launcher</code> plugin to open youtube videos by link but the <code>canLaunch</code> function keeps throwing an error. I'm able to bypass this error only by completely removing the <code>canLaunch</code> function but can't figure out what is wrong.</p>
<p>Code not working:</p>
<pre><c... | 0 | 2,430 |
Kubernetes pods hanging in Init state | <p>I am facing a weird issue with my pods. I am launching around 20 pods in my env and every time some random 3-4 pods out of them hang with Init:0/1 status. On checking the status of pod, Init container shows running status, which should terminate after task is finished, and app container shows Waiting/Pod Initializin... | 0 | 3,089 |
Uncaught TypeError: Cannot read property 'length' of undefined | <p>I'm working to built a contact list that is grouped by the first letter of the contact's last name. </p>
<p>After a succesfull ajax request, the contact is pushed to addContact:</p>
<p><strong>Ajax success:</strong></p>
<pre><code> ko.utils.arrayForEach(dataJS.contactList, function(c) {
contactsModel.a... | 0 | 1,251 |
Sending multipart/form-data content with Postman Chrome extension | <p>I'm struggling with creating POST multipart/mixed request with Postman Chrome extension. I keep getting <a href="http://www.checkupdown.com/status/E500.html" rel="nofollow noreferrer">HTTP 500</a>.</p>
<p>Already gone through <a href="https://stackoverflow.com/questions/19178813/sending-multipart-mixed-content-with... | 0 | 1,139 |
BLE Advertisement in Android | <p>I am developing and app to Send BLE Advertisement packet in android. I have use AdvertiseData and AdverstiseSettings classes to generate the advertise packet. But when i do the StartAdvertising it always gives me an error with Error Code "2" , <em>"ADVERTISE_FAILED_TOO_MANY_ADVERTISERS", "Failed to start advertising... | 0 | 3,352 |
How to read crash log? How to find why the app crashes in system library? What means EXC_CRASH (SIGABRT)? | <p>I got an crash logs from a customer to figure why my app crash on her iPhone.</p>
<p>Here some info from crash log:</p>
<pre>
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
</pre>
<p>Stack trace for Thread 0</p>
<pre>
Thread 0 Crashed:
0 libSystem.B.dylib ... | 0 | 1,377 |
HTML: Spanning a form across multiple td columns | <p>I'd like to be able to do something like this in HTML. It isn't valid HTML, but the intent is there:</p>
<pre><code><table>
<tr>
<th>Name</th>
<th>Favorite Color</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr&g... | 0 | 1,128 |
Simple GUI Java calculator | <p>I am building a simple GUI Java calculator. I have an issue finding a package or figuring out a method to do the actual calculation. So far I've figured that when I do a math operation, the number in the text box gets saved in a temporary location.</p>
<p>Then when I click on the <code>"="</code> button, it will do... | 0 | 3,158 |
RSpec test for create action of a controller for a nested resource | <p>I have a Rails application (Rails 3.0.10) where users can have many articles, and where the users can leave comments on the articles. Comments are made on the article show page. </p>
<p>Now I want to test the create action of the CommentsController, however, I have problems of invoking the post method with the righ... | 0 | 4,747 |
Creating tables in MySQL in Python 3.4 | <p>I am running a server through Apache using Python 3.4 as a cgi and a MySQL database server on Windows 10. When I try to run my function for creating the database I get the error: </p>
<pre><code>DatabaseError: 1005 (HY000): Can't create table `testdb`.`studentexam` (errno: 150
"Foreign key constrain... | 0 | 1,417 |
Django 2.0 'name' is not a registered namespace | <p>I've seen this error posted several times, but I can't find anyone using Django 2.0 and having the problem. </p>
<p>The problem cropped up when I tried to nest one app inside another. The nested app (called "users") is meant to allow users to login and out. After putting that segment in, I'm getting the following e... | 0 | 1,259 |
EncryptionOperationNotPossibleException by Jasypt with Bouncy Castle | <p>I try to use <a href="http://www.jasypt.org/">Jasypt</a> with <a href="https://www.bouncycastle.org/index.html">Bouncy Castle</a> crypro provides (128Bit AES) in a Spring Application to decrypt entity properties while saving them with Hibernate. But I always get this <code>org.jasypt.exceptions.EncryptionOperationNo... | 0 | 4,212 |
In codeigniter How to redirect after login using ajax | <p>I have a login popup Modal. and i am logging through ajax</p>
<p><strong>Modal</strong></p>
<pre><code><div class="modal-body">
<form action="<?php echo base_url('Login');?>" method="POST">
<div class="form-group">
<input type="text" pla... | 0 | 2,056 |
Error in parsing XML file with encoding UTF-8 and UTF-16 | <p>I am using below method to parse an XML file -</p>
<pre><code>package com.kcs.xml;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
imp... | 0 | 1,380 |
show/hide html table columns using css | <p>I want to display a basic html table with controls to toggle showing/hiding of additional columns:</p>
<pre><code><table id="mytable">
<tr>
<th>Column 1</th>
<th class="col1">1a</th>
<th class="col1">1b</th>
<th>Column 2</t... | 0 | 1,728 |
How to structure a modular app in Laravel 5? | <p>I would like to divide my application in modules. For instance, there would be a "core" modules that contains the basic login functionality, app layout/formatting (CSS etc), user management and a diary.</p>
<p>Later on I may create other modules like a contact manager that can easily be added or removed from the ap... | 0 | 1,296 |
UIHostingController should expand to fit contents | <p>I have a custom <code>UIViewControllerRepresentable</code> (layout-related code shown below). This tries to replicate the native SwiftUI <code>ScrollView</code>, except it scrolls from the bottom except the top.</p>
<h3>View hierarchy</h3>
<pre><code>view: UIView
|
\- scrollView: UIScrollView
|
\- innerView: U... | 0 | 1,926 |
@RestController in other package doesn't work | <p>I start with learning Spring and I create basic project which creates database, insert values and next print it in web browser.
My problem is that when I have RestController in the same package like main class - its OK, but I want distribute it to other package and when I create new package, move the RestController... | 0 | 3,015 |
Problems installing Oracle Database Express Edition 11g | <p>I'm trying to install Oracle Database in (X)ubuntu 13.04 64-bit using <a href="http://www.techienote.com/2012/11/step-by-step-guide-to-install-oracle-database-express-edition-11gr2-on-ubuntu.html">this guide</a>. Everything goed well until I get to the following step:</p>
<pre><code>$ sudo /etc/init.d/oracle-xe con... | 0 | 2,325 |
I received javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake | <p>When I tried to make a ajax call with httpclient 4.4.1 to hit a web service that it is located in other site, and I'm seeing the following problem: </p>
<pre><code>javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.... | 0 | 3,880 |
ERROR: org.springframework.beans.MethodInvocationException: Could not load JDBC driver class [${jdbc.driverClassName}] | <p>I'm trying to configurate a Java MVC webapp with Spring and Hibernate, and postgres database, but when I run the server I have this error, and I don't know what's the problem.</p>
<pre><code> INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
Exception in thread "main" org.sprin... | 0 | 3,257 |
HTML5 audio clicking the progress bar to move to a different time | <pre><code><html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
var counter = 0;
var numOfTracks = $(".audio-player").le... | 0 | 3,168 |
Error:Execution failed for task ':ProjectName:mergeDebugResources'. > Crunching Cruncher *some file* failed, see logs | <p>I have this error when trying to make a module of a project</p>
<pre><code>apply plugin: 'com.android.library'
android {
compileSdkVersion 17
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 8
targetSdkVersion 8
}
buildTypes {
release {
minifyEnable... | 0 | 2,968 |
` __webpack_require__(...) is not a function` when using babel 6 | <p>Everything seems to build fine: <a href="http://d.pr/i/1aZxR">http://d.pr/i/1aZxR</a>
with the following configs. </p>
<p>However, when I run the code I get the following error this (via webpack-dev-server):</p>
<pre><code>Uncaught TypeError: __webpack_require__(...) is not a function(anonymous function) @ login.j... | 0 | 2,941 |
Caused by: java.lang.reflect.InvocationTargetException | <p>I am using this tutorial:</p>
<p><a href="http://www.vogella.com/articles/AndroidCamera/article.html" rel="nofollow">http://www.vogella.com/articles/AndroidCamera/article.html</a></p>
<p>To <strong>capture an image and save it on SD Card</strong>, but whenever i run this program, getting : <strong>Unfortunately Ap... | 0 | 1,670 |
How to make create-react-app support .mjs files with webpack? | <p>I'm trying to work with this twitch npm package (<a href="https://www.npmjs.com/package/twitch" rel="noreferrer">https://www.npmjs.com/package/twitch</a>) and am running into some issues when deploying via creat-react-app / react-scripts.</p>
<p>From my understanding, the webpack config that is bundled with create-r... | 0 | 3,124 |
How do get value of razor textbox in the same view? | <p>I am using `@Html.Textbox("searchString") in Razor view page. I need this value of textbox in </p>
<pre><code>@Html.ActionLink("View Items", "Index", new { id = item.transaction_id, searchString = "Value of textbox"}).
</code></pre>
<p>Of course the search string part in html action link is not working right now b... | 0 | 1,392 |
call lists.asmx getting 'http request is unauthorized with client authentication scheme 'ntlm' | <p>Using console app in C# to call lists.asmx getting <strong><em>'http request is unauthorized with clien tauthentication scheme 'ntlm'. The authentication header received from the server was 'Negotiate, NTLM'.</em></strong></p>
<p>Environment: </p>
<ul>
<li>Kerberos turned on in QA & Production, not in Dev (stu... | 0 | 1,534 |
Java Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable | <p>I have a script using java to connect to display X11 in the port 10.0 at localhost</p>
<p>but i get always this error</p>
<pre><code>java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Meth... | 0 | 1,399 |
Servlet with java.lang.IllegalStateException: Cannot forward after response has been committed | <p>In my servlet I have this code:</p>
<pre><code>protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
Utils.CheckSession(request,response);
String op = request.getParameter("op");
int DaysToAd... | 0 | 1,696 |
How to apply condition on $lookup result in mongoDB? | <p>With the reference of my previous question, I have a question about $lookup with add some conditions. You may get enough reference about question from below link description.</p>
<blockquote>
<p>Photo:</p>
</blockquote>
<pre><code>{_id: 1, photo_name: '1.jpg', photo_description: 'description 1', album_id: 1, fla... | 0 | 2,777 |
DB geography type MakeValid does not seem to be working | <p>I have an application where the user draws zones and later I check if a polyline crosses them.</p>
<p>All of a sudden the application crashed out with the error:</p>
<pre><code>A .NET Framework error occurred during execution of user-defined routine or aggregate "geography":
System.ArgumentException: 24144: This ... | 0 | 1,525 |
How to remove white underline in a SearchView widget in Toolbar Android | <p>I am using the Toolbar search widget in my project. Everything works fine but expect the thing which I am completely stuck up with removing the underline below the search field in my toolbar. I have tried many solutions and nothing works out. Below are some of the solutions that I tried.</p>
<p><strong>Requirement i... | 0 | 1,109 |
How can I make a horizontal ListView in Android? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/3240331/horizontal-listview-in-android">Horizontal ListView in Android?</a> </p>
</blockquote>
<p>Like many things in Android, you wouldn't think this would be such a hard problem but ohhh, by golly, would you ... | 0 | 3,353 |
How to uninstall with msiexec using product id guid without .msi file present | <p>I'm trying to automate the uninstallation of packages created using WiX for the purposes of changing the installed software stack & configuration without reprovisioning a whole OS. Eventually I'll use powershell scripting to do this but at the moment I can't seem to get my test package to uninstall interactively... | 0 | 1,676 |
Using Task.wait() application hangs and never returns | <p>I am new to C# and using <code>Task</code>. I was trying to run this application but my application hangs every time. When I am adding <code>task.wait()</code>, it keeps waiting and never returns. Any help is much appreciated.
EDIT:
I want to call DownloadString Asynchronously. And when I am doing task.Start() as su... | 0 | 1,498 |
Problem with bluetooth on android 2.1 (samsung spica i5700) where pairing works but connection does not work | <p>I have a Samsung Spica i5700 which I already have updated to Android 2.1. I am using the phone with an application called Run.GPS (<a href="http://www.rungps.net" rel="noreferrer">http://www.rungps.net</a>). This application logs data such as GPS position, route, speed, bearing etc. It can also log heartrate provide... | 0 | 11,925 |
Jax-ws : Java SOAP exception :MustUnderstand headers:[{http://www.w3.org/2005/08/addressing}Action | <p>I am using Jax-ws to implement client application for Onvif IP camera, I am sending a request to camera to create PullPointSubscription ,It seems the camera understands the request and process the request and send the correct response , but the client jax-ws code throws an exception </p>
<pre><code>MustUnderstan... | 0 | 3,594 |
Find out n numbers of missing elements from an array in java | <p>I have an array which carry some integer numbers. Say,<code>numbers={3,0,1}</code> or say, <code>numbers={9,6,4,2,3,5,7,0,1}</code>. Now I have to find out the missing numbers from the array. As per this example there is only one missing number in each set. 1st one miss 2 and the 2nd one miss 8. </p>
<p>I have alre... | 0 | 1,075 |
Why is [Owin] throwing a null exception on new project? | <p>I have a rather strange issue i'm not sure how to fix or if i can even fix it.</p>
<p>I've done some research into the issue but can't find an answer to what's causing it.</p>
<p>I'm following a rather simple guide at <a href="http://www.asp.net/mvc/tutorials/mvc-5/create-an-aspnet-mvc-5-app-with-facebook-and-goog... | 0 | 1,620 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.