title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Getting Id with jquery for jeditable | <p>I've been making a site and am now working on the administration part of it so that users can easily be managed, articles easily modified etc.
I wanted to use jeditable so that the admin would be really easy to use.</p>
<p>Part of JEditable is working (the p tags are becoming inputs) however I'm having trouble send... | 2 | 2,216 |
Webpack function to generate HtmlWebpackPlugin Instances - undefined | <p>I'm trying to configure webpack to generate <code>HtmlWebpackPlugin</code> instances according to how many <code>.handlebars</code> files I have in the Source folder.</p>
<p>The problem here is that even though inside the function everything comes back correctly, (names, file directories etc), when I try to call th... | 2 | 1,756 |
mvc3 model does not contain definition for GetEnumerator | <p>This is the controller.
what I need is to access the IList named model in the view. I want to display Barcode and ImageUrl.</p>
<pre><code>using BezoekerSysteem.Models;
using System.Data.SqlClient;
using System.Web.Mvc;
using System.Data;
using System;
using System.Collections.Generic;
namespace BezoekerSysteem.C... | 2 | 1,438 |
how to properly send push notifications | <p>This is not my first app sending push notifications but it is my first app where I send a notification to all my users at the same time.</p>
<p>What Im experiencing is that not all my users receive the notification, only some of them, even though they have the settings correct(ie notifications for my app enabled), ... | 2 | 1,283 |
what is wrong with this shapely error message | <p>I have a dictionary called Rsize which have number-List as key-value pair. The dictionary is like this</p>
<pre class="lang-py prettyprint-override"><code>{10: [0.6621485767296484, 0.6610747762560114, 0.659607022086639, 0.6567761845867727, 0.6535392433801197, 0.6485977028504701, 0.6393024556394106, 0.62238664362573... | 2 | 2,276 |
React Router / Redux / HOC not working with 'render' prop | <p>I am using react router v4 and I'm trying to wrap my head around a react-router / redux / HOC related issue. I have a higher order component working. The HOC itself is <code>connect()</code>-ed to redux store. This approach works perfectly if I wire it up in a <code><Route /></code> via a <code>component</code... | 2 | 1,226 |
Why does beginBackgroundTaskWithExpirationHandler allow an NSTimer to run in the background? | <p>I know there are a lot of questions on similar topics, but I don't think any quite address this question (although I'm happy to be proved wrong!).</p>
<p>First some background; I have developed an app that monitors user location in the background and this is working fine, but battery usage is high. To try and impro... | 2 | 1,557 |
Load Class, Generate Object of this class | <p>I'm a beginner at java Reflection/Dynamic Loading. I want to load a specific Class ( that implements an Interface ) from a jar-File. Further more i want to initialize an Object of this Class and cast it to my specific Interface.</p>
<p>I tried <code>.loadClass()</code>, <code>class.forName()</code> and if I cast <c... | 2 | 1,046 |
Vagrant and php7 installation fails | <p>Today I wanted to install php7 from scratch. I saw some tutorials and now my vagrantfile looks like:</p>
<pre><code>Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision :shell, path: "bootstrap.sh"
config.vm.network :forwarded_port, guest: 80, host: 4567
config.vm.provider ... | 2 | 1,177 |
OnCheckedChanged event fires more and more times for every time it is clicked | <p>I have an ASP.NET page that contains a gridview.</p>
<p>I have to create columns dynamically based on a datatable, some field type info and some header texts.</p>
<p>I do that by creating templates.</p>
<p>It created the grid fine and all looks good, however when i click a checkbox and the checkedchanged event fi... | 2 | 4,200 |
R: why is merge_recurse failing? | <p>The <a href="http://cran.r-project.org/web/packages/reshape/reshape.pdf" rel="nofollow">undocumented</a> merge_recurse() function from Hadley's reshape package is widely recommended on this site for merging multiple dataframes into one. Can anyone help me figure out why it is failing for me?</p>
<pre><code>df1 &l... | 2 | 1,065 |
Mail send with PHPMailer doesn't work | <p>So I'm trying to use PHPMailer to handle the email form on my website.</p>
<p>I wrote the code here based on a tutorial I found.</p>
<pre><code><?php
error_reporting(E_ALL);
require_once("class.phpmailer.php");
include("class.smtp.php");
$email = new PHPMailer();
//
... | 2 | 1,110 |
Working Directory: null Environment: null when trying to call compiled FFMPEG in android | <p>I have the compiled FFMPEG file. I try to combine an image and an audio clip to form a video clip. Function to combine those two are: ffmpeg -i /mnt/sdcard/KaraokeVideos/allmapeople.mp3 -i /mnt/sdcard/KaraokeVideos/Penguins.jpg /mnt/sdcard/KaraokeVideos/video_finale.mpg. </p>
<p>I have used that in the code:</p>
<... | 2 | 1,714 |
How can I remove or clear list in command object in JSP in SPRING MVC , | <p>I am working with Spring MVC. My command object contains a collection object, it looks like as follows:</p>
<pre><code>public class DimensionStoneBean {
int stoneNo;
float length;
float breadth;
float height;
float dimension;
String isIssued;
public int getStoneNo() {
return st... | 2 | 3,434 |
Sorted vs. Unsorted Data in a priority queue Why does un sort automatically and sorted wait? | <p>I understand that a min heap is the structure that the class uses because of its efficiency. It seems to me that when unsorted data is given to a PQ it sorts it into a heap. </p>
<p>BUT when it is fed ascending elements according to the compareTo method it waits to sort it into a heap after the first action is pr... | 2 | 1,428 |
Call to a member function isCollection() on null | <p>I, using the Graphaware Neo4j-php-OGM. I would like to access the 2nd level relationship. I can't seen to get it to work. What am i doing wrong?</p>
<p>I'm trying to execute the following:</p>
<pre><code>public function allowToContinue($userUuid, $permissionUuid)
{
$userRepo = $this->entityManager-&... | 2 | 1,564 |
Android - Update Location every x minutes | <p>I'm pretty new to android, and this is my first post here, so please be kind! :-)</p>
<p>I'm trying to create a service which runs in the background and does a location update every x minutes. To run it every x minutes I'm using the AlarmManager, as described here: <a href="https://stackoverflow.com/questions/44590... | 2 | 1,084 |
PYTHON/DJANGO: "SUser.user" must be a "User" instance | <p>I have a problem with adding new custom user to the database. I know thare's some threads about it on the internet but I couldn't find solution for my problem. After hitting "Submit" button in registration page which template is here:</p>
<pre><code>{% extends 'strona/Main.html' %}
{% block body %}
< form action... | 2 | 2,148 |
Configuring a connection timeout when connecting to a MS SQL Server database from a lua script using FreeTDS and unixODBC | <p>I have a lua script, running on a RHEL7 host, which has been written to connect to a MS SQL Server database (using FreeTDS / unixODBC) and retrieve a value. The script generally works OK, however, if the target server is offline/unavailable, it will just hang (for approximately 6 minutes 20 seconds), before somethin... | 2 | 1,202 |
In Firebase,how to send message to a particular person only | <p>I am creating a chat application using <code>firebase</code>, now it is in a condition that anyone using this app can send and receive message,that means no privacy,if a person sends a message all users can see that message.</p>
<p>I want to send message to a particular person,one to one chat is needed.How to do th... | 2 | 10,150 |
cross domain json data rejected in django tastypie | <p>I have used django-tastypie using GET,POST,PUT,DELETE methods , they are working smoothly when both client and server are from same domain but if I make a request from different domain nothing happened at all. </p>
<p>Any clue?</p>
<p>models.py</p>
<pre><code>from django.db import models
class Entry(models.Mod... | 2 | 1,294 |
Monte Carlo simulations in Python using quasi random standard normal numbers using sobol sequences gives erroneous values | <p>I'm trying to perform Monte Carlo Simulations using quasi-random standard normal numbers. I understand that we can use Sobol sequences to generate uniform numbers, and then use probability integral transform to convert them to standard normal numbers. My code gives unrealistic values of the simulated asset path:</p>... | 2 | 1,358 |
Bootstrap Container Class Not Taking Up Full Width Mobile Devices | <p>I have a registration form I am trying to make more user friendly for mobile devices. I'm using Bootstrap 4 and trying to get my registration form to take up the full width of the screen for smaller devices like iPhones, etc., I have used the appropriate container class name for the div containing my row and form. ... | 2 | 4,774 |
Angularjs2 'templateUrl' in @Component - how to display razor view | <p>How to render a ASP.NET MVC5 Razor View (.cshtml) in the 'templateUrl' in @Component. On using '/Home/Index', the page hangs.</p>
<pre><code>import { Component, OnInit } from '@angular/core';
import { Product } from './model';
import { InventoryService } from './dataService';
@Component({
selector: 'my-app',
... | 2 | 2,074 |
how to send message to whole width in slack? | <p>I have a question related to sending a message to Slack from Jenkins (groovy script).
Currently, I use SlackNotificationPlugin for sending messages to Slack and I'm trying to send line for the whole width of Slack, but instead of it, I can use only half of Slack width.</p>
<p>I use code below:</p>
<pre><code> ... | 2 | 2,777 |
Variable undefined when using Doctrine QueryBuilder | <p>I want to make alternative way for making stored procedures by using Doctrine but I am stuck, could any one help me? </p>
<h2>Example stored procedure to be formed:</h2>
<pre><code>CREATE PROCEDURE catalog_get_department_details(IN DepartmentName)
BEGIN
SELECT name, description
FROM
department
... | 2 | 1,364 |
Sencha Touch 2 - my form does not display | <p>I am new to Sencha touch. I am trying to define a form (because I want to re-use it) but I cannot manage to display it on the screen.</p>
<p>This is my form code:</p>
<pre><code>Ext.define('WSCP.view.form.PersonForm' , {
extend: 'Ext.form.Panel'
, requires: [
'WSCP.view.text.IdText'
,'WSCP... | 2 | 1,338 |
How to refresh call log | <p>I'm trying to refresh the call log once a button is pressed. I have both a Uri and Cursor defined</p>
<pre><code>Cursor c;
Uri allCalls = Uri.parse("content://call_log/calls");
</code></pre>
<p>and then this function is called in onCreate</p>
<pre><code>public void checkLogs() {
c = getContentResolver().query... | 2 | 2,743 |
jQuery script not running in JSF page using ui:composition | <p>I'm trying to get my jQuery code to run in my JSF page which uses <code>ui:composition</code>. I've tried so many different things including putting in <code><head></code> tags, <code><h:head></code> tags, eventually I came across <a href="https://stackoverflow.com/questions/9000101/how-to-add-different-... | 2 | 1,042 |
OneToMany relation with nested ManyToOne relation returns broken relation entity | <p>I'm creating a structure where I have Repositories, Contributions and Users.</p>
<p>A repository has multiple contributions done by different users. It is important that I know the count property on the contribution.</p>
<p>But when I create a new Repository entity without connections I get weird behaviour.</p>
<... | 2 | 1,549 |
Change content stack panel dynamically with button click WPF | <p>I would like to change stack panel content/data on button click in the same window.</p>
<p>I have a menu list on left and on the right of the window I have 2 stackpanel which I want to update. This is actually my configuration screen. Following is my XAML code:</p>
<pre><code><Window x:Class="Manager.Screens.Co... | 2 | 3,053 |
Schema validation for anyType element | <p>I'm trying to make use of Visual Studio's schema validation while editing some XML files. The files contain serialized objects for <code>DataContractSerializer</code> to read.</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<MyRoot xmlns="http://schemas.datacontract.org/2004/07/MyDomain"
xm... | 2 | 1,029 |
IndexOutOfBoundsException: Inconsistency detected. Invalid item position | <p><a href="https://i.stack.imgur.com/UK0jE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UK0jE.png" alt="enter image description here"></a></p>
<p>I have a recylerview that have items (containing circle progress bar for survey time left)</p>
<p>I use background thread to update the <code>Circula... | 2 | 3,893 |
mysqli flag fields (working code) | <p>This is a follow-on post from <a href="https://stackoverflow.com/questions/11437650/what-do-bit-flags-in-mysqli-mean-using-fetch-field-direct">What do bit flags in mysqli mean using fetch_field_direct</a>. Here is an example of a script that will process a table in a database specified in the url by adding ?tablenam... | 2 | 2,976 |
How to convert a double array into a int array | <p>Hello everyone my name is Fyree, I have recently been finishing up a school assignment, and am in need of some assistance. First let me give you the second half of my code to which this question pertains:</p>
<pre><code>public class Rate_Graph_Graph extends Rate_Graph1{
double Aa, Bb, Cc, Dd, Ee, Ff;
... | 2 | 1,828 |
Transformation in vertex shader only works with post-multiplying | <p>I am currently in the process of learning OpenGL and GLSL to write a simple software that loads models, display them on the screen, transform them etc.</p>
<p>As a first stage, I wrote a pure-C++ program without using OpenGL.
it works great, and it uses a Row-major matrix representation:</p>
<p>So for instance mat... | 2 | 1,124 |
Usage of Redux Form Fields component inside a FieldArray component | <p>I have a <code>Fields</code> component that I am trying to use sometimes by itself and sometimes from inside a <code>FieldArray</code> component. I have added a snippet below with a simplified model.</p>
<pre><code>import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers } ... | 2 | 1,119 |
Unable to call methods of a custom view (canvasview) from Activity or class | <p>I'm unable to call methods of a custom view ("canvasview") from the Activity that sets the layout including the view. I can't even call canvasview's "getters" from the activity.</p>
<p>Also, I'm passing the view to a custom class (that does not extend Activity), and I can't call canvasview's methods also from my cu... | 2 | 1,250 |
Update Clock and Text in UI PyQt5 | <p>I have a problem to put the actual time while the UI is running, also the text y would like to change it in a certain period of time. I also try to use MainWindow.update() in my case Reloj.update() but it continue with the same problem, put it with an loop it's a bad idea.</p>
<p>I will put some code just to see ho... | 2 | 1,641 |
Initial SessionFactory creation failed: java.lang.NoClassDefFoundError: javax/persistence/NamedStoredProcedureQuery | <blockquote>
<p><strong>SOLVED</strong></p>
</blockquote>
<p>What did i do to solve it?</p>
<p>I added the <code>Persistence JPA2.1</code> to the library</p>
<p>Initial error</p>
<p>I'm having this <strong>error</strong>:</p>
<pre><code>Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: javax... | 2 | 2,116 |
uitableview cell delete, custom animation | <p>i am trying to create a custom animation for the deletion of table rows by overriding the deleteRowsAtIndexPaths method. i created the custom insert animation successfully and tried to reverse the animation for the deletion part but i get some errors: Assertion failure in -[UITableView _endCellAnimationsWithContext:... | 2 | 2,480 |
Android App crashes at line 54(Integer.parseInt) and not entirely sure why | <p>I've been debugging my app with my phone and all the logcat errors I get refer to line 54 in my activity where I parse a String into an Int. The basic idea of the app is a penny converter in which the user enters the number of pennies they wants to convert and is divided from quarters down to the remainder pennies. ... | 2 | 1,847 |
How do you loop a video using DSPack? | <p>I've got a very simple program that uses DSPack from within Delphi 2010. I have a form with a TFilterGraph and a TVideoWindow. The video plays and renders nicely. I can't seem to figure out how to make the video loop back to the beginning when it ends.</p>
<p>How do you make a video automatically loop using DSPack?... | 2 | 1,223 |
How to get Sqlite data as Json using GSON | <p>I'm trying to format my <code>sqlite</code> data from all my columns into a <code>JSONArray</code>.</p>
<p>My sqlite data example is as follows:</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>id | name | produ... | 2 | 1,028 |
java.lang.UnsupportedOperationException at javax.faces.context.FacesContext.getExceptionHandler | <p>I am trying to migrate my existing JSF 2.1 application running on JBoss AS 5.1.0 to JBoss EAP 6.4. I have added Mojarra jars from JBoss AS 5.1.0 and all other required jars as module dependencies in my jboss-deployment-structure.xml.
When I try to start the Jboss EAP (standalone.bat). I am getting the following pri... | 2 | 1,297 |
React/RCTDefines.h file not found in RCTBridgeModule.h | <p>I was using <code>Expo</code> and I separated <code>expo eject</code> for module use.</p>
<p>And I tried <code>pod install</code> in iOS file. it was work.</p>
<blockquote>
<p>Pod installation complete! There are 51 dependencies from the Pod file
and 63 total pods installed.</p>
</blockquote>
<p>But An error ... | 2 | 1,339 |
com.squareup.SocketRocket.NetworkThread(18): EXC_BAD_ACCESS | <p>I Got an error when run application a few minutes.</p>
<p>Error Msg:(3 Threads trace)</p>
<ul>
<li><p>thread #1: tid = 0x7940d5, 0x0000000110b58c96 libsystem_kernel.dylib`mach_msg_trap + 10, queue = 'com.apple.main-thread'</p>
<ul>
<li>frame #0: 0x0000000110b58c96 libsystem_kernel.dylib<code>mach_msg_trap + 10
fr... | 2 | 1,672 |
Unable to install secp256k1 for pythereum? | <p>the error I am getting is below. I have installed the dependencies required for pythereum by:</p>
<pre><code>brew install --force pkg-config libffi autoconf automake libtool openssl
</code></pre>
<p>and the response I am getting is</p>
<pre><code>Warning: pkg-config-0.29.1_2 already installed
Warning: libffi-3.0.... | 2 | 1,999 |
Xamarin.Forms ListView change Cell on ContextMenu open | <p>I use Xamarin.Forms to define a <code>ListView</code>. This <code>ListView</code> defines some <code>ContextAction</code>s on inside the <code>ViewCell</code>. Depending on the platform, these context actions are then presented to the user. In Android, this is triggered by long-pressing the specific item. Sadly, thi... | 2 | 1,083 |
Summing 3 vectors and get the result in neon | <p>I'm trying to sum d0,d1,d2 + d3,d4,d5+ d6,d7,d8. I don't know the best instruction for that and then take the average by 9. I know how to do the averaging using approximation, but summing those lanes, I can't find an instruction for that ? I also have incorrect output image, so I suspect of the averaging operation i... | 2 | 2,490 |
Unable to import classes from maven dependency of dynamic web project in eclipse | <p>I converted a dynamic web project into a maven project by right-clicking on the project and choosing Configure -> Convert to Maven Project. I added below dependency jar in pom.xml. </p>
<pre><code><dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assure... | 2 | 1,634 |
What is the formula for setting WEB_CONCURRENCY on heroku? | <p>I am frequently getting this error <code>Memory quota exceeded</code> for my <code>ruby on rails</code> application hosted on heroku:</p>
<pre><code>2014-12-29 11:09:37.876 355 <45>1 2014-12-29T11:09:37.210533+00:00 heroku worker.1 - - source=worker.1 dyno=heroku.22144543.00c11b4d-8ec6-46d9-addf-f03163e10f0c ... | 2 | 10,923 |
Retrofit 2.0 java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING | <p>I'm using Retrofit 2.0 in my app. Everything was quite good, but when I started request, it returns:</p>
<pre><code>**java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING
at line 1 column 21 path $[0].iso**
</code></pre>
<p>Here's my API interface:</p>
<pre><code>public interface GetPhones {
@... | 2 | 1,052 |
How do I rotate an image based on my cursor position, and have it work? | <p>I've looked around for any questions similar to this one, and haven't really found anything other than <strong><a href="https://stackoverflow.com/questions/9972449/rotating-an-element-based-on-cursor-position-in-a-separate-element">this</a></strong>.</p>
<p>I've tried using the code above, and have failed miserably... | 2 | 1,321 |
how to display alert box with Bootbox js plugin | <p>i have written a php code…</p>
<p>// If click check the session is set or not</p>
<pre><code>if(isset($_POST['reserve'])){ if(!empty($_SESSION['username'])){
$db->query(“INSERT INTO `reserve` (`r_b_id`,`r_m_id`,`r_date`) VALUES
(‘$book_id’,'$userId’,'$date’)”);
}else{
echo ‘ ‘; // I nee to display alert box he... | 2 | 1,415 |
odd compiled code | <p>I've compiled some Qt code with google's nacl compiler, but the ncval validator does not grok it. One example among many:</p>
<pre><code>src/corelib/animation/qabstractanimation.cpp:165
</code></pre>
<p>Here's the relevant code:</p>
<pre><code>#define Q_GLOBAL_STATIC(TYPE, NAME) \... | 2 | 1,752 |
database session handler problem | <p>Hello i'm trying to understand how sessions work and how does <code>session_set_handler()</code> works, so i've started build a class for session handling but i've encountered some problems with the <code>write()</code> function can you please help me solve the problem?</p>
<pre><code><?php
class Session extends... | 2 | 1,347 |
ErrorException in helpers.php line 531: htmlentities() expects parameter 1 to be string, array given | <p>this page works perfectly with few of rows in my database. but when I insert a lot of rows to database i get this error. thanks for any help and sorry for my bad English.
here is the error:</p>
<blockquote>
<p>ErrorException in helpers.php line 531: htmlentities() expects
parameter 1 to be string, array given (View:... | 2 | 3,578 |
Apple push server not working, caused by single token | <p>I created a push notification server for my apps. This server works fine on test and production. I created an API which can recieve a serialized array of device tokens.
This API is created in PHP, and the call to the API is PHP as well.
This is the array:</p>
<pre><code> 'devices' => serialize(array(
//... | 2 | 1,536 |
GAE Python - OperationalError: (2013, 'Lost connection to MySQL server during query') | <p>I've been trying to connect to ClouSQL using Flexible Environments (vm:true)</p>
<p>but when I upload my app using:</p>
<pre><code>gcloud preview app deploy --version MYVERSION
</code></pre>
<p>An error is thrown:</p>
<pre><code>OperationalError: (2013, 'Lost connection to MySQL server during query')
</code></p... | 2 | 1,026 |
SQLiteException: near "=": syntax error (code 1) | <p>I am trying to read a single object from my sqlite database but I am getting this error doing so:</p>
<pre><code>android.database.sqlite.SQLiteException: near "=": syntax error (code 1): , while compiling: SELECT id FROM Property WHERE id =
... | 2 | 2,618 |
Uploading Audio to Cloudinary | <p>this is my first Stack Overflow post so please go easy on me!</p>
<p>I'm building an audio recording app using EXPO as the SDK with React Native. One of the main features of the app is to be able to to record live audio as well as uploading audio from the client's device. By leveraging Expo's Audio API and FileSyst... | 2 | 1,315 |
How to compare form input data to database data in a custom codeigniter form validator? | <p>Edit: Some naming had been mixed up in my attempts to solve it myself. I've fixed the callback etc naming and the same error persists.</p>
<p>I am attempting to create a login page for my codeigniter website. I already have a registration page that correctly inputs usernames and passwords in to a "users" table. I a... | 2 | 1,647 |
D3js collision not updating | <p>I'm trying to create an animated bubble chart using d3js. It seems to be working except for one small thing: when i animate the size of the nodes they start to overlap. </p>
<p>My co-worker and me have been at it all morning but we seem to be missing or overlooking something.</p>
<p>Our html/js:
</p>... | 2 | 1,832 |
MVC4 C# multiple Forms one page validations | <p>I've got 3 forms on one view on mvc project like this"</p>
<p>VIEW:</p>
<pre><code> <div>
<fieldset>
<legend>Deposit Money</legend>
<div>@Html.LabelFor(u=>u.AccountNumber1)</div>
<div>@Html.DropDownList("Accounts",... | 2 | 2,050 |
RadioButton Not Unchecking | <p>I know this has been asked a lot but I'm still quite unable to find a workaround for this one. These radio buttons are not clearing when I select another radio button. I don't want them to return or display a value but rather set the value.</p>
<p>All three radio buttons are inside the radio group with ID <code>rad... | 2 | 1,826 |
django: implementing search with select dropdown inputs | <p>So here is my HTML. the sub category will be populated by options on the basis of the category selected using js.
home.html:</p>
<pre><code><form method="GET" action="{% url 'searchapp:search' city category %}"
class="form-inline row input-group" id="search">
<select class="form-control " id="pla... | 2 | 1,738 |
Android : Passing button click response from getView() method of adapter class to mainActivity | <p>The question is simple. I have written a seperate class which extends ArrayAdapter. This adapter deals with couple of TEXTVIEWs and a BUTTON. The problem is I am not sure whether I have take the response from Button's onClickListener written in getView() method to the main_activity. The main_activity has lot of logi... | 2 | 1,058 |
Unfortunately "app" has stopped issue with Android Studio | <p>Community</p>
<p>I have been having issues getting this application to operate within the AVD. When I run the application it begins to load and then the error message "Unfortunately, MyMedicare has stopped" appears. My research on Google, Stack, and Youtube alleviates nothing. Anyone got any input?</p>
<p>My MainA... | 2 | 13,965 |
Python: Alternative to `.replace('null', '""')` to replace null and None values with string in nested JSON | <p>This is a follow up to this stackoverflow question</p>
<p><a href="https://stackoverflow.com/questions/41710262/python-replace-none-values-in-nested-json">Python replace None values in nested JSON</a></p>
<p>which gives this solution to replace all <code>None</code> and <code>null</code> values in a nested json </... | 2 | 11,828 |
AngularJS datatables refresh after adding new object | <p>I'm trying to add new user like this :</p>
<pre><code>$scope.users = UserService.query();
UserService.save({}, newUser, function (data) {
$scope.users.push(data);
});
</code></pre>
<ul>
<li>It's adding to server (F5 creates wanting result),</li>
<li>checking with <code>console.log($scope.users)</code> its also ... | 2 | 1,096 |
Passing a Struct pointer (with char pointers in body) in C# via P/Ivoke | <p>I have a .DLL file in C. The primary structure required by all functions in that DLL is of the following form. </p>
<pre><code>typedef struct
{
char *snsAccessID;
char *snsSecretKey;
char *snsPath;
char *snsTopicName;
char *snsTopicAmazonResourceName;
char *snsDisp... | 2 | 1,024 |
save data to the database using spring boot | <p>when I post the data using the postman, the server replies with error code 500. the NetBeans terminal show:(java.sql.SQLIntegrityConstraintViolationException: Column 'email' cannot be null)</p>
<p>bellow my entityclass:</p>
<pre><code>@Entity(name="user")
public class UserEntity {
@Id
@GeneratedValue
private lo... | 2 | 1,511 |
java.lang.NumberFormatException: For input string: "pname" | <p>why I always get numberformatexception?
I try to retrieve values in my database to my jsp.
I want to view my join table in my jsp.</p>
<p>I have 2 entities</p>
<p>Item Class</p>
<pre><code>public class Item {
@Id
@Column(name="p_id")
private String pid;
@Column(name="p_name")
private String pname;
@Column(nam... | 2 | 3,097 |
Database versioning without history tables | <p>I was going through this <a href="https://stackoverflow.com/questions/323065/how-to-version-control-a-record-in-a-database">post</a> for record level versioning of tables. I noticed that the architecture deals with the usage of history tables. However, my scenario does not require rollback but retrieving point in ti... | 2 | 1,085 |
Adding, duplicating and removing elements with jQuery | <p>So basically, I have been trying to writing some jQuery that will add and duplicate a row of inputs on click, everything is working perfectly except for this.</p>
<p>Illustration of problem:</p>
<p><img src="https://i.stack.imgur.com/3rgnn.png" alt="enter image description here"></p>
<p>When you hit the remove bu... | 2 | 1,048 |
SoapFaultClientException: username and/or/password cannot be null | <p>I have build a client, that should fetch data from a remote, wsdl-based webservice (using SOAP).</p>
<p>But everytime I try to connect (with a call of a function) with the service I get the following exception:</p>
<pre><code>org.springframework.ws.soap.client.SoapFaultClientException: Username and/or Password can... | 2 | 2,986 |
Correct way to send onPreviewFrame() byte[] with Sockets | <p>I'm trying to send the preview frame from a phone's camera to a tablet. In the server app I start a thread from <code>onPreviewFrame()</code> to establish a ServerSocket which in turn starts another thread that responds to button click, for verification purposes, from the client app. Like so...</p>
<pre><code> @... | 2 | 1,873 |
Remove module install queue from OpenErp | <p>I was installing a custom module that requires the <code>decimal_precision</code> module, however, this module has been updated, so i downloaded and installed the brand new from <code>apps.openerp.com</code> </p>
<p>Now is giving me the common <code>No handler found</code> error, i need to abort the module installa... | 2 | 1,331 |
Sax parsing in GoLang - Slow speed | <p>Given the following code in C# / .NET Core 2.1</p>
<pre><code>class Program
{
static void Main(string[] args)
{
var totalAmountSeconds = 0;
using (var reader = XmlReader.Create(@"C:\Users\kevin\Desktop\temp\XML.xml"))
{
var stopWatch = new Stopwatch();
var el... | 2 | 1,660 |
How to use global variable in symfony twig file? | <p>I have done setting in app/config/config.yml</p>
<pre><code>twig:
globals:
mandatory_note: %mandatory_note%
</code></pre>
<p>parameter also set in config.yml file</p>
<p>parameters:</p>
<pre><code>mandatory_note: "Note: * marked fields are mandatory"
</code></pre>
<p>And in twig file I have accessed the var... | 2 | 1,406 |
Copy inputStream to file and read from it | <p>I want to copy the content of an <a href="/questions/tagged/input-stream" class="post-tag" title="show questions tagged 'input-stream'" rel="tag">input-stream</a> which is actually a bitmap to a <a href="/questions/tagged/file-output-stream" class="post-tag" title="show questions tagged 'file-output-stream'" rel="ta... | 2 | 1,570 |
VB .NET server generating Excel file on the fly | <p>I have a VB .NET web application running on a server with multiple requests and performance requirements.
I have a function that retrieves some data from a DB and has to generate an excel report to show to the system users.
I somehow did it, but my solution has not the performance I'd like it to have: basically what... | 2 | 1,455 |
SAS sumifs - Finding number of pills of certain types used by patients | <p>Input Data:</p>
<pre><code>user DOB UseDate numPills Type
1 2013-01-01 00:00:00.000 2013-04-11 00:00:00.000 4 A
1 2013-01-01 00:00:00.000 2013-07-20 00:00:00.000 5 A
1 2013-01-01 00:00:00.000 2014-01-02 00:00:00.000 1 A
2 2013-01-02 00:00:00.000 2013-04-12 00:00:00.000 1 ... | 2 | 2,260 |
How to hide empty accordion content? | <p>I am writing a page using ASP.NET C# environment. I have 7 categories which are shown in a jQuery UI Accordion widget. In other words I have 7 tabs. </p>
<p>Each accordion content comes from DB.</p>
<p>Sometimes some categories are empty. So I want to hide the empty categories.</p>
<p>My head content has those co... | 2 | 1,576 |
Problem with Java selector/SocketChannel | <p>I'm having a problem with a multiplayer game. Right now, I'm just trying to get the server to send the current level to the client. The server is definitely sending the data, but it never gets to the client application.</p>
<p>Client code: </p>
<pre><code> public void run() {
while(true)
{
try {... | 2 | 1,568 |
Node.js SELECT*FROM a table in a SQL database | <p>My problem is that I can enter data from my input boxes into an SQL table, but the problem is that the text from the table will not show on the page i want to. What works is that the playlist page will show the a href links depending on how many playlists i have made just not the text.</p>
<p>I have left out the da... | 2 | 2,607 |
Infinite redirect loop in my website, but why? | <p>I get 404 in link checkers for some of my pages, which I can open in browser normally, and I also get an infinite loop warning in Google webmaster tools when I check those pages, and I can’t find the source of the problem!</p>
<p>Here’s the whole story: I had two websites, w1 and w2. After a while, I decided to mov... | 2 | 1,221 |
Base64 image file encoding with C++ | <p>I am writing some simple code to encode files to base64. I have a short c++ code that reads a file into a vector and converts it to unsigned char*. I do this so I can properly use the encoding function I got.</p>
<p>The problem: It works with text files (of different sizes), but it won't work with image files. And ... | 2 | 1,643 |
Testing whether $httpProvider.interceptors.push() have been called with jasmine in Angular | <p>I have found many articles here how to test Angular's config phase and I was able to create my tests against <a href="https://github.com/mgonto/restangular" rel="nofollow">restangular</a> and <a href="https://github.com/grevory/angular-local-storage" rel="nofollow">LocalStorageModule</a> module configuration. The on... | 2 | 1,193 |
Android Activity transparent background | <p>I have a pretty common requirement. </p>
<p>I have an Activity that needs to appear Full-screen on Mobile Devices (Size-Normal), and as a Dialog on Tablet Devices(Size-Large and Size-XLarge).</p>
<p>In both the formats, I have UI-Widgets displayed in the content-view of the Activity such as a Horizontal-ProgressBa... | 2 | 1,745 |
Android Architecture Components and LiveData, too many MutableLiveData objects? | <p>Before android architecture components were released I started to work on a project where I had my own ViewModels that had the same life cycle as a Fragment and the ViewModels state was saved in a StateObject inside a Loader so that the state could survive orientation change. The ViewModel talked to the Fragment thr... | 2 | 1,536 |
UIButton category issues | <p>I have made extension for UIButton class. Now if I use it everything works good. But I have another class that create for me array with UIButton objects and here I have some problem.</p>
<p>I have Helper class with method that return for me <strong>array</strong> with UIButton objects.</p>
<p>In ViewController.m i... | 2 | 1,608 |
Custom migrations for PostgreSQL Materialized View with SQLAlchemy | <p>I'm trying to auto-generate migrations for materialized views in SQLAlchemy, and the only thing that's not working is detecting changes between revisions. More specifically, it <em>always</em> generates a change, even when the model hasn't changed.</p>
<p>I think the problem is, and I could just be using the wrong ... | 2 | 3,128 |
Unity C# InvalidCastException: Cannot cast from source type to destination type | <p>I'm currently encountering an error in a large scale project.</p>
<p><strong>Code below:</strong></p>
<pre><code>public void SaveFileExists(){
Debug.Log ("SaveFileExists was called.");
//GameObject.Find ("_Scripts").GetComponent<SaveGame> ().Load ();
UserData userdata = null;
//Creating a ... | 2 | 3,215 |
Side navbar in bootstrap not working with demo | <p>I'm using this code to try and get a side nav bar:</p>
<p><a href="http://bootsnipp.com/snippets/z4Q2r" rel="nofollow noreferrer">http://bootsnipp.com/snippets/z4Q2r</a></p>
<p>When I copy and paste this into my app what happens is the left nav bar is only as tall as the number of links, and the content area start... | 2 | 1,779 |
Moving Around A Python Canvas Without Using Scrollbars | <p><strong>Background:</strong><br>I have a program using Tkinter as the basis of the GUI. The program has a canvas which is populated with a large number of objects. Currently, in order to move all objects on the screen, I am simply binding a movement function to the tag 'all' which of course moves all objects on the ... | 2 | 1,442 |
Symfony 5 Login form action return Invalid CSRF token | <p>I'm using security component of symfony 5 to create authentication system, I used make:auth of symfony cli and I enabled login after register form, when logout and trying to login with login form it return Invalid CSRF token error !</p>
<p>this is my login form twig :</p>
<pre><code>{% extends 'base.html.twig' %}
{... | 2 | 2,274 |
Refresh dropdownlist based on select option in list | <p>I really need help. Am new to <code>jQuery</code> and i am trying to refresh a <code>dropdown list</code> or change its value when an option from the list is selected.</p>
<p><strong>HTML</strong></p>
<pre><code><select name="State_locate" class="State">
<option value=" " selected="selected">Select... | 2 | 1,072 |
Android Record video | <p>I have this problem with getting my adnroid program to work. I have this as my record.java code</p>
<pre><code>import java.io.IOException;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.media.CamcorderProfile;
import android.media.MediaRecorder;... | 2 | 1,683 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.