title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
word limit in textarea - problem | <p>I want to make a word limit on textarea in the below form any body help me?</p>
<pre><code> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-... | 2 | 1,090 |
Angular 4 : how to send id of a user in modals bootstrap | <p>I'm working with Angular 4 as front end and spring boot as back end , i wanted to use bootstrap modals to show the details of a user while i click on a button 'user details' .</p>
<p>this is clients.component.html</p>
<pre><code> <!--/.col-->
<div class="col-lg-12">
<div class="card">
&l... | 2 | 2,294 |
Vim:E523: Not allowed here | <p>I received this error when i tab in vim.</p>
<blockquote>
<p>Traceback (most recent call last):<br>
File "< string >", line 1, in < module ><br>
File "utils.py", line 15, in write<br>
current_buffer.append('some text')<br>
vim.error: Vim:E523: Not allowed here<br></p>
</blockquote>
<p><br>
I have t... | 2 | 1,076 |
FlatList with ScrollTo in React Native | <p>I'm new to React Native, I'm trying to make a FlatList in an application with Expo that will pull some categories of products from a Json, I managed to make the FlatList and also a Json simulation for testing, however I wish that by clicking on any item in the FlatList it directs the Scroll to the respective section... | 2 | 1,841 |
unable to find valid certification path to requested target - Flutter | <p>I created a new Application in Flutter. I try to run that application on Android Mobile. It shows below Error.</p>
<pre><code> "Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertP... | 2 | 1,196 |
Proper credentials for node & s3 | <p>My goal is to set up an S3 bucket that my node application can download objects from. I am new to building websites and api requests and have spent a lot of time reading up on AWS's documentation but am really confused.</p>
<p>What are the best ways to set up credentials so that my node application can connect to S... | 2 | 1,976 |
Dictionary TryGetValue | <p>I want to preserve state in windows phone when user leaving my app.<br>
How can I create a general method <code>TryGetValue</code> that gets value from dictionary?</p>
<p>My code so far:</p>
<pre><code> public class StatefulPhoneApplication : PhoneApplicationPage
{
#region constructor
public... | 2 | 1,498 |
State not saved after change language in android | <p>I have implement app in which i have change language after click on list item and it is changed but after kill app the state of language not saved..... though i have save it to sharedpreference....</p>
<p>Here is my code:</p>
<pre><code>public class Languages extends Fragment {
// private int current = -1;
View vi... | 2 | 2,256 |
Multiple Radio Button Validation | <p>I am creating a web form that contains a table housing radio buttons as options for the user to pick. I have grouped the rows by ID and wish the page to not allow users to continue unless each row has a valid selection. I am having trouble with this as the form posts as long as one group has a selection and doesn't ... | 2 | 2,069 |
How to reset spinner list when fragment resume? | <p>I have two spinner in my application which populating list from sqlite and it is working fine. When I select State in first spinner then second spinner list populate depend on first spinner. Now what I want that when I select item in both spinner and then I press back and again launch the activity then the list of s... | 2 | 2,055 |
Laravel Queue Not Working For Sending Mail | <p>I try to send mail on the background but it's not working.</p>
<p>I run php artisan queue:listen and hit the controller for sending mail but it's not received.</p>
<p>After run common php artisan queue:listen its show job in processing.</p>
<p>In jobs, table job entry insert successfully.</p>
<p>.env file</p>
<... | 2 | 1,201 |
How does one add scores and a total? | <p>" <strong>When the user clicks the Add Your Scores menu item, add the score for each type of drink to the drink's total</strong>, clear the text boxes, and reset the focus."</p>
<p>I am stuck trying to figure out how to add what is quoted above. I think I am over thinking it and making it harder than what it really... | 2 | 1,128 |
Refactoring rxjs 5 to rxjs 6 code - retryWhen | <p>I've had this service code written in rxjs 5 notation:</p>
<pre><code> constructor(private _authService: AuthService) {
this._ws$ = WebSocketSubject.create<any>({
url: WS_URL,
protocol: this._authService.token
});
this._ws$.retryWhen(errors => {
// switchMap to retriev... | 2 | 1,032 |
@postConstruct method with parameter | <p>I've got a list of orders on a database, and I want to show two separate datatables in two JSF pages: one table regarding all orders, and one table regarding the current logged user.
Problem is, only the first one is actually showed on the page.</p>
<p>JSF page with the datatable links</p>
<pre><code><h:command... | 2 | 1,189 |
Android Intent not starting activity | <p>I'm having issues getting startActivity(intent) to actually open the next activity. when I press the associated button it's printing the string to the debug console, but the new activity just isn't starting. Am I doing something wrong.</p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
... | 2 | 1,048 |
Cannot access running instance from client - Eucalyptus | <p>I have set up a private cloud under ubuntu 10.04 server through eucalyptus packages (v 1.6.1)
Here are my configurations
CLC,CC,WS3, SC (Frontend) - 10.X.X.29
NC - 10.X.X.30</p>
<p>NTP Configured</p>
<p>Hwinfo - Intel quadcore (Q8300), 500GB, 4GB RAM, VT-x enabled in both the systems</p>
<p>I bundled,uploaded &... | 2 | 1,468 |
The instance member cannot be accessed in an initializer, try replacing the reference to the instance member with a different expression -alternative? | <p>I want onPressed() function to run nextStory() (so that I don't have to repeat the code more than once), but it says instance member 'nextStory' cannot be accessed in an initializer. Can anyone help to achieve this? I'm using the latest flutter and dart. I'm sharing my code (which is giving this error) to better exp... | 2 | 1,644 |
Getting TypeError: __init__() got an unexpected keyword argument 'upload_to' in Django Project? | <p>I have just started learning Django frame work and got stuck after getting an unexpected error as below:-(I have tried to post all information, which i find necessary to be here)</p>
<pre><code>TypeError: __init__() got an unexpected keyword argument 'upload_to'
</code></pre>
<p>I got this error while running comman... | 2 | 2,346 |
Python Binary Multiplication. Divide and Conquer | <p>I need to understand why my code gives wrong answers. The task is to create binary multiplication by divide and conquer method. I found some papers that describe this type of problem:
<a href="https://en.wikibooks.org/wiki/Algorithms/Divide_and_Conquer#Divide_and_Conquer_Multiplication" rel="nofollow noreferrer">wi... | 2 | 1,224 |
Linq2Sql -> Searching the database against a local collection of values - "Queries with local collections are not supported" | <p>I am running up against the wall with Linq2SQL. I love it, its amazing the flexibility, but I have run up against interesting hangups. I hope its just my lack of knowledge of it, and there really is a solution. Take for example... a linq2sql query like this:</p>
<p>// some local collection of ids</p>
<pre><code>v... | 2 | 1,081 |
Jenkins, TestNG, WebDriver: OutOfMemoryError: Java heap space | <p>Sometimes when I run my auto-tests (Jenkins, TestNG, WebDriver, Selenium Grid) I see following output: </p>
<pre><code>Exception in thread "Thread-1" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuil... | 2 | 1,291 |
Why Im getting java.lang.ArrayIndexOutOfBoundsException when I add the plugin com.google.gms.google-services? | <p>Everything is okay and I can run the app to a device until I add <code>apply plugin: 'com.google.gms.google-services'</code></p>
<p>This is my Gradle file</p>
<pre><code>buildscript {
repositories {
google()
maven {url "https://repo1.maven.org/maven2"}
maven { url 'https://maven.google.... | 2 | 7,670 |
Finding repeater control in class | <p>Am trying to find a repeater control in a class and i don't know where I have done mistake.</p>
<p>In my ASPX page i have repeater which contains two image buttons, and at the page load am calling a method which I have defined in the class.</p>
<p>this is my class page,</p>
<pre><code> public class Authorization
... | 2 | 1,342 |
Create a table from scope object values | <p>I have a table which I'm trying to create from a scope-object that I'm creating in my controller.</p>
<p>I would like the headers to take the value from 'rowHeader', which works fine. But the problem is that I wan't my cell values to be taken from 'cellValue' property.</p>
<p>In my fiddle I've added a "Desired tab... | 2 | 1,194 |
Custom dialog builder crashing activity | <p>I am trying to create a custom dialog with custom buttons. I got the dialog working alone without buttons and after researching the buttons I needed dialog builder. I tried it like this:</p>
<pre><code>package com.example.beerportfoliopro;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.... | 2 | 5,291 |
Spring Data Neo4j Repository for Relationship Entity | <p>I wish to query the RelationshipEntity like we query the NodeEntity.</p>
<p>Package Info:</p>
<pre><code>groupId=org.springframework.data
artifactId=spring-data-neo4j
version=5.1.5.RELEASE
</code></pre>
<p>I have posted the dummy code below. Please don't mind if there are any mistakes or errors as long as the concep... | 2 | 1,976 |
Text fields with validation in the Flutter BLoC library | <p>I am trying to learn the BLoC pattern in Flutter, but I just don't get it. I followed a tutorial on Udemy from which I generated the following code for a simple login form:</p>
<p><code>BLoC Class</code></p>
<pre><code>import 'dart:async';
import 'package:login_bloc/src/blocs/validators.dart';
class LoginBloc exte... | 2 | 1,447 |
How to find backward primes within a range of integers? | <p>I'm trying to solve a backward prime question.</p>
<p>Following is the question:</p>
<blockquote>
<p>Find all Backwards Read Primes between two positive given numbers (both inclusive), the second one being greater than the first one. The resulting array or the resulting string will be ordered following the natur... | 2 | 2,034 |
Entity Framework 5 Identity Insert | <p>I am trying to insert a record into a table with an identity primary key. Sometimes, I need to set the pk. This can for instance be useful when creating known test data to make reliable integration tests or to debug a production issue in an isolated environment.</p>
<p>Other posts say to execute a sql statement:</... | 2 | 1,095 |
Altitude getting zero always through gps android | <blockquote>
<p>hello,this is my code that I am used to get latitude,longitude and altitude.Longitude latitude getting properly but altitude return always zero.I could not understand how to get altitude.please check code and let me know.</p>
</blockquote>
<pre><code>if (!isGPSEnabled && !isNetworkEnabled) {
... | 2 | 1,576 |
How to troubleshoot Android not displaying Firebase push notifications, despite device registered and API showing success | <p>I have a React Native app that uses <a href="https://github.com/zo0r/react-native-push-notification" rel="nofollow noreferrer">https://github.com/zo0r/react-native-push-notification</a> to manage push notifications.
Attempting to migrate from GCM to FCM messages on Android is not working, and I cannot find a way to ... | 2 | 1,744 |
AWS S3 need to generate pre-signed url for GET via wcf to return to classic asp request form | <p>I need to create a WCF web service that takes a request from a classic ASP page/form and returns a pre-signed expiring URL in AWS S3. (I have a little WCF experience. I've previously been able to return a custom JSON formatted object.)</p>
<p>Now, I need to take a form post, get the name of the file requested from ... | 2 | 2,899 |
Adding Cart Items to the Database and retrieving | <p>I have three tables in mySQL namely user, restaurants, cartlist.</p>
<p>here user table is for saving the user details.
restaurant table is for saving the meal details, price and quantity.
cartlist is to add the restaurant details.
Now when the specific user login to the app, I want the cartlist items of specific u... | 2 | 1,353 |
How to solve electron and grpc version problem in angular project | <p>I have a angular project trying to run in windows application. Project includes firebase, electron. I am trying to build and publish windows desktop app but it failed with many errors</p>
<p><strong>package.json</strong></p>
<pre><code>"@angular/cdk": "~7.3.2",
"@angular/common": "^7.2.4",
"@angular/compiler": "^7... | 2 | 3,334 |
Javascript Three.Js GLTF Loading Is Very Slow Compared To Other GLTF Viewers | <p>Hello I'm trying to implement a 3D Model Viewer using Three.Js however I have a problem with the loading times and I don't know where the problem might be.</p>
<p>As an example I'm trying to upload this model here (download link): <a href="https://opensplit.com/gltf/assets/PromoModel.glb" rel="nofollow noreferrer">h... | 2 | 2,606 |
How do I get a hidden value using Jquery? | <p>I am trying to get a hidden field (product) value in my form and pass this through on the thank you page:</p>
<pre><code><form action="" name="downloadform" id="downloadform" class="downloadform" method="post">
<div class="field">
<input name="name" type="text" id="name" class="input... | 2 | 2,037 |
Can't connect to Xively using Arduino + wifi shield, "ret = -1 No sockets available" | <p>Thanks so much for looking guys. I'm just getting started with Arduino wireless sensor projects and I've hit a clue wall. I'd appreciate any insight or help troubleshooting my project. </p>
<p>I'm using an Arduino Mega, with the Wifi Shield to attempt to upload 4 channels (all floats) to my Xively feed. I'm using... | 2 | 3,073 |
Nightwatch : Unable to create new service : ChromeDriverService | <p>I am trying to automate a simple test case using Nightwatch framework of validating a login. I have followed the steps mentioned on : <a href="https://www.softwaretestingmaterial.com/browser-automation-with-nightwatch-and-selenium/" rel="noreferrer">https://www.softwaretestingmaterial.com/browser-automation-with-nig... | 2 | 1,603 |
saveOrUpdate many-to-many table with Hibernate + MySQL | <p>I have webapp, which uses <code>Hibernate 4</code>, <code>Spring 3</code> and <code>MySQL</code>. Hibernate sessions and transactions are managed by spring.</p>
<p>Right now I am confused about how to insert data into <code>computer_app</code> table using Hibernate.
Here's the script for creating a database:</p>
<... | 2 | 1,802 |
java.lang.ClassCastException: ish.message.Message cannot be cast to android.app.Application | <p>I'm making an app, which is throwing the "ClassCastException: cannot be cast to android.app.Application".
I've referred various similar questions on stackoverflow but none of the answers solve my problem.</p>
<p>Here's my code: </p>
<p>MainActivity.java:</p>
<pre><code>public class MainActivity extends ListActivi... | 2 | 3,065 |
JavaScript - How can i select the audio playback? | <p>I have this code but how can i select the Audio Playback/Speaker? (Camera selection and Microphone selection is working but how do i now select the speaker? sometimes there are hdmi or usb sound or built in sound cards i need to select that and test a sound)</p>
<p><img src="https://i.stack.imgur.com/5FCAX.png" alt... | 2 | 2,099 |
Making authenticated POST requests with Spring RestTemplate - 500 Internal Server Error | <p>I'm trying to do a post request in a service of spring.</p>
<p>Here's my code : </p>
<pre><code>public class LoginServices {
private static RestTemplate restTemplate;
public static Token getTokenResponse(String username, String password) throws HttpClientErrorException{
MultiValueMap<String, String>... | 2 | 3,818 |
How to intially set opacity when using interpolation | <p>I have quite an issue, where I cannot set initially opacity of an image as 0 when using interpolated scroll value.</p>
<p>So when I am using <code>logoOpacity</code> value Animated.View is fully visible, but for example if I use <code>__opacity</code> it does apply valid value and image is partly visible.</p>
<p>U... | 2 | 1,848 |
set default tab active when page loads Angular 4 | <p>I have a working side menu with [routerLinkActive] which allows me to get an active tab when I click on them.
however, I cant get to load a default tab active</p>
<p>This is my html file:</p>
<pre><code><div class="collapse navbar-collapse" id="bs-sidebar-navbar-collapse-1">
<ul class="nav... | 2 | 1,327 |
How can I format a given date in Java using switch case? | <p>I need to format a date (month, year), but I can't do it correctly.</p>
<p>The problem is:
Given the following data<br />
Year: 2016<br />
Month: 12<br />
Date: 31<br />
Next N days: 5</p>
<p>Produce the following output:<br />
"December has as many as 31 days"<br />
"Today date: December 31st 2016&qu... | 2 | 1,930 |
Remove duplicate items from a LinkedList, where the nested collection items can be in any order | <p>I have Nested LinkedList which contains Some elements.I want to Remove Duplicate Inner LinkedList From Outter LinkedList.The order of element Does not Matter.[Cat,Mouse,Dog] is Same As [Mouse,Cat,Dog] and I Want To remove 1 Of Them.
example:</p>
<p>suppose</p>
<pre><code>[[Cat,Mouse,Dog],[Dog,Mouse,Cat],[Dog,Horse... | 2 | 1,129 |
android studio recyclerView with firestore | <p>I have orders collection in firestore:
<img src="https://i.stack.imgur.com/COhkV.png" alt="enter image description here"></p>
<p>And I have Sellers collection and inside Sellers collection have another Fruits collection :
<img src="https://i.stack.imgur.com/wMxMx.png" alt="enter image description here"></p>
<p>I w... | 2 | 2,723 |
Create API in node js to get data with multiple queries with my sql | <p>I am new to node js. I am trying to develop API for getting items list by its category list. For that i have create a function to fetch all available active featured tags from table ( featured_tags ). After that featured tag list fetch i want to get items list from ( items ) table which belongs to that particular ta... | 2 | 1,242 |
Connecting to IoT Core MQTT | <p>I am trying to connect to Google's MQTT server but I am getting errors
I created all the certificates and registered my device (Adafruit huzzah32)</p>
<p>and the documentation says you connect to <code>mqtt.googleapis.com:8883</code></p>
<p>So I do</p>
<pre class="lang-cpp prettyprint-override"><code>WiFiClientSe... | 2 | 1,534 |
Setup angular CLI in AWS | <p>Trying to setup devleopment enviornment in EC2 Cent OS, facing issues in installing Angular CLI.</p>
<p>Installed node js using :</p>
<pre><code>curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 9.3.0
[root@ip ~]# node -v
v9.3.0
[root@ip ~]# npm -v
5.6... | 2 | 2,175 |
Force cmake to use older boost library | <p>I want to compile a simple project using the Point Cloud Library. Unfortunately it uses an older version of the boost library as I currently have installed via official repositories.</p>
<p>So I installed the older libraries in <code>/opt/oldlibs/boost/libs</code>. I try to set in the CMakeLists.txt this new path, ... | 2 | 1,385 |
EJS not rendering | <p>I simply make a little templating system with EJS, Express.js on node.js but the render is a bit wtf...</p>
<p><a href="https://i.stack.imgur.com/L63dM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L63dM.jpg" alt="here the render"></a></p>
<p>And here the code of my server.js :</p>
<pre><code... | 2 | 1,132 |
"is not a function error" in angular 2 | <p>I try to call function testAlert() by 'Alert' button click.</p>
<p>Component code: </p>
<pre><code>import { Component, Input, OnInit } from '@angular/core';
import { Router } from "@angular/router";
import { Radio } from './radio.model';
import { RadioService } from './radio.service';
import '/app/rxjs-extensio... | 2 | 1,971 |
Uncaught TypeError: Cannot read property 'html' of undefined - AJAX post answer only in spesific div | <p>I have this error: </p>
<blockquote>
<p>Uncaught TypeError: Cannot read property 'html' of undefined</p>
</blockquote>
<p>What I'm trying to create is a voting system for each video on my page from a database. I've managed to make it with AJAX the only problem is that I can't output the answer in the correct div... | 2 | 1,352 |
Google Chart API - Change value with mouse click (setValue) | <p>I have created a donut chart from Google Charts API. When clicking on each slice, it should increase by 10 units and decrease the adjacent slice (clockwise) by 10 units. What I have thus far is a alert popup that explains this, but I would like to redraw the chart with the new values. </p>
<p>Here is my code:</p>... | 2 | 1,843 |
phantomjs-maven-plugin : error Could not find a suitable constructor | <p>I am trying to run the <strong>com.github.klieber.phantomjs-maven-plugin</strong> alone before trying to run it with <strong>com.github.searls.jasmine-maven-plugin</strong>.</p>
<p>The final goal is to be able to run Javascripts tests in maven then in Jenkins.</p>
<p>But I always have the same error : </p>
<pre><... | 2 | 1,182 |
How to initialize multidimensional associative array with empty values | <p>I want to create and initialize a multidimensional array with known possible keys for the second dimension but no values.</p>
<p>This array will store <code>event_ids</code> (populated dynamically) and for each <code>event_id</code> an array having exactly four different counts (also filled dynamically).</p>
<p><s... | 2 | 1,112 |
django dumpdata => load on heroku | <p>I'm trying to load the data from my sqlite database to heroku postgres but it is not working.</p>
<p>First I ran:</p>
<pre><code>manage.py dumpdata --indent 1 > data.json
</code></pre>
<p>and then I tried to upload it to heroku with (after I committed the file to heroku):</p>
<pre><code>heroku run python mana... | 2 | 1,329 |
React CSS Translate Transition not working | <p>I am trying to animate a side menu, but for some reason it just wont work!</p>
<p>I read on a few answers that using a map to map the <code><li></code> items could be the issue (and I have tried with just a few items with static text), but that doesnt seem to be the problem.</p>
<p>Additionally, I have also pu... | 2 | 1,389 |
generate json with column value as json dict key | <p>I'm using postgres 9.2, and I'm trying to construct a query that generates json in a particular format. I've gotten pretty close with a simple <code>json_agg</code> expression, but now I'm stuck moving forwards.</p>
<p>I have a simple three-table schema, the definition is:</p>
<pre><code>CREATE TABLE project (
... | 2 | 1,070 |
Passing parameters from parent stack to child stack in nested stack - Cloudformation | <p>I am trying to pass the paramters to internet facing elb using root. I have created a nested stack with a root.yml acting as root and vpc and elb are the child stack. I am trying to pass the parameters from root to elb.yml but it gives an error <code>Parameter values specified for a template which does not require t... | 2 | 2,956 |
Null Pointer Exception When Autowiring Class | <p>I am building a REST API using Spring Boot with Shiro for authentication. I am getting a NullPointerException when I try to Autowire a repository in my realm code. Autowiring the repository elsewhere does not produce this error.</p>
<p>Here is my authorizing realm:</p>
<pre><code>@Component
public class CCDAuthori... | 2 | 1,597 |
datatables returns Invalid json response when i am loading french text FROM database | <p>I am getting this error only when I select a column which has French content in it. It may be a language issue. What can I do to avoid this error? </p>
<blockquote>
<p>DataTables warning: table id=example - Invalid JSON response. For more information about this error, please see <a href="http://datatables.net/... | 2 | 1,849 |
Reuse UdpClient vs Disposing it | <p>I am creating a chat application where users are behind a router (NAT). So the main problem is sending those clients a message. The server has no problem receiving messages.</p>
<h2>This is my protocol (rules):</h2>
<ol>
<li><code>UdpServer</code> listens for a udp packet from <code>client A</code></li>
<li><code>... | 2 | 1,312 |
Django: How can I make Form Wizard take in a request object when it creates the forms? | <p>How can I make it so that when Django's Form Tool's Wizard creates my forms, it also gives <code>request</code> object as a parameter? The main reason why I'm using Form Tool is to have a multi-page form. Right now to "normally" create my <code>AnswerForm</code> without the Wizard, it looks like </p>
<pre><code>for... | 2 | 1,173 |
How to implement tokenizer.rbegin() and rend() for boost::tokenizer? | <p>I'm playing around with boost::tokenizer however I realize that it does not support rbegin() and rend(). I would like to ask how can I add these two functions to the existing class? </p>
<p>This is from the boost site:</p>
<pre><code>#include <iostream>
#include <string>
#include <boost/tokenizer.... | 2 | 2,554 |
Android Layout: 3 buttons at the bottom | <p>I am designing a layout which has 3 buttons at the bottom very adjacent to each other. Because I want to add some more button in the middle of the screen too so what I am doing is I set up a whole screen as a Relative Layout and to get the 3 buttons at the bottom I add a Linear Layout to contain those 3 buttons. How... | 2 | 1,200 |
Warning: Failed context type: The context `store.isRequired` is marked as required in `Routing`, but its value is `undefined` | <p>I'm having an issue with react-redux Provider:
I moved our router out of our index.js to a routing.js file. I used a Provider to give my Routing component knowledge of the store but I'm getting a strange warning before the execution reaches the render method : </p>
<p><code>Warning: Failed context type: The context... | 2 | 1,125 |
Internal Server Error - 500 while making simultaneous AJAX requests in ASP.NET MVC4 | <pre><code>function InitializeCharts() {
for (var i = 0; i < arguments.length; i++) {
compName = arguments[i];
$.ajax({
async:true,
timeout: 60000,
dataType: "json",
url: "/SalesDashboard/GetChartData",
data: { company: compName, from: startDate, to: endDate },... | 2 | 1,614 |
Off by 20 pixels (y axis) when adding subview myNavigationController.view | <p>I have a navigation controller with a menu button. When the menu button is pressed, the current view (complete with its navigation bar) should slide to the right, and a menu should simultaneously and contiguously slide in from the left. The details are explained in the comments in the code, below.</p>
<p>It works e... | 2 | 1,145 |
Gulp - Unexpected character '@' (1:0) while parsing style\main.scss | <p>I have gulp installed and this is the error that I get. Can someone help me out please?</p>
<p>I have tried deleting the node_modules and did the npm-install. But it still doesnt work.</p>
<p>This is how my gulpfile looks like.</p>
<pre><code>var gulp = require('gulp');
var gutil = require('gulp-util');
var brows... | 2 | 1,972 |
ArrayIndexOutOfBoundsException - when parsing a csv file | <p>I want to transform a csv file. My file looks like that:</p>
<p><img src="https://i.stack.imgur.com/Kdy8O.png" alt="enter image description here"></p>
<p>I am using the <code>opencsv</code> libary to parse my csv. That is my <code>run</code> method to parse the file:</p>
<pre><code>public void run() throws Except... | 2 | 1,369 |
Modal and FlatList | <p>i work on my first react-native project and its also my firts javascript work. I want at least a news-app with own database informations. The backend is already finish. Now im in struggle with the app- i want an Popup with Modal with informations from my api like news_image, news_content and news_title. The News are... | 2 | 2,147 |
Check Bluetooth State on specific device on android | <p>I'm trying to know at my application start up if a paired device is connect or not. In practice the main app give me an MAC address and I've got to respond if we're connected or not. </p>
<p>A BroadcastReceiver can't be a full option because if the user start the connection with the device before launching the app ... | 2 | 1,179 |
Run a process for at least 5 seconds in C# WPF | <p>My goal is to force a process to run for at least 5 seconds (any amount of time really). I am working of the .NET Framework 3.5, with Service Pack 1. The idea is that the document holds some information that the user must see, so to safe guard against them immediately clicking to close the document, we can force i... | 2 | 1,511 |
Issue printing out objects from arraylist | <p>First i have a class called card with this code</p>
<pre><code>public class Card
{
private int value;
private String suit;
// private int value;
//private String rank;
public Card (int v, String s)
{
value=v;
suit=s;
}
public int random()
{
int randomNum = ((int)(Math.random() * 100) % 13 +1);
return r... | 2 | 1,027 |
How to group by a pivot table with LINQ | <p>I'm new to LINQ but from what I've read and looked up what I'm looking for is something like <a href="http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b" rel="nofollow noreferrer">GroupBy - Simple 3</a>. Issue is I don't want to group by a little object, I want to group by and separate by those groups a pivot ... | 2 | 1,286 |
Could not deserialize result from HTTP invoker remote service [...]; nested exception is java.lang.ClassNotFoundException: | <p>I am receiving the following error only when a shared library is added to my application on an IBM WebSphere instance (version 8.5.xx). The goal is to move a lot of shared libraries (jars) between some applications to a shared library on the server in order to reduce the war sizes of the applications. From what I ha... | 2 | 1,347 |
Android : Initialize XML object from programmatically which has parameter | <p>I have a class called CoverFlowClass.
I used to do this to create a class,</p>
<pre><code>CoverFlowClass coverFlow = new CoverFlowClass(this)
coverFlow.setAdapter(new ImageAdapter(this));
</code></pre>
<p>But now I want to use XML so I can do layouting. I create an XML code like this:</p>
<pre><code><id.co.aj... | 2 | 2,328 |
Shopify Store - Variant Not adding To Cart | <p>I cannot get my swatch variants to change what product is being added to the cart. No matter what I add it is adding the 'emerson' product. Here is my product.liquid code. I am also using the swatches app. </p>
<pre><code>{% include 'bold-product' with product, hide_action: 'break' %}{% if bold_hidden_product %}{% ... | 2 | 14,464 |
jsonParser cannot be resolved error | <p>I am using the jsonParser twice . I am getting an error when I use it in the second method.
Could someone tell me why am I getting this error?</p>
<p><strong>This is the first method in which I am using it</strong> </p>
<pre><code> protected Void doInBackground(Void... arg0) {
ServiceHandler json... | 2 | 2,327 |
Unable to Set Foreign Key to Null | <p>I have an optional foreign key that I'm attempting to set to null. No matter what I've tried, on SaveChanges(), the update statement sets the foreign key to the previous value instead of null.</p>
<p>Simplified Child Class:</p>
<pre><code>public class Child
{
[Key, Column(Order = 0), ScaffoldColumn(false)]
... | 2 | 1,249 |
"Username could not be found" error when using HWIOAuthBundle with FOSUserBundle | <p>Stumped here. Using HWIOAuthBundle to allow social login with FOSUserBundle on Symfony3.</p>
<p>Log in with username and password functions fine, but when authenticating with social logins (in my case, Facebook and LinkedIn), error "Username could not be found" is returned on a redirect to the login page.</p>
<p>A... | 2 | 2,701 |
Android RelativeLayout.LayoutParams can not cast to AbsListview.LayoutParams (Error below 4.4.4) Working fine on 5.0 & 6.0.1 | <p>I have used a <code>ListView</code> and the parent in the <code>xml</code> is <code>RelativeLayout</code>.
When I run the app on 4.4.4 it gives me <code>ClassCastException</code> but when I run it on 5.0.1 or 6.0.1 it runs without any error. Please have a look in the code snippet.</p>
<p><strong>Error :</strong> </... | 2 | 15,072 |
Estimating logistic regression using BFGS optimization algorithm | <p>I tried to use <code>scipy.optimize.minimum</code> to estimate parameters in logistic regression. Before this, I wrote log likelihood function and gradient of log likelihood function. I then used <strong>Nelder-Mead</strong> and <strong>BFGS</strong> algorithm, respectively. <em>Turned out the latter one failed but ... | 2 | 2,104 |
write objects from array to text file c# | <p>This C# assignment is about creating groups for salesmen at diffrent levels depending how much they sold for, and then write this info to a textfile using a streamwriter.</p>
<p>I have done all parts except the streamwriter part. What i do so far is to create the file, but there is no ouput.
When i run this the con... | 2 | 2,972 |
android - RecyclerView updating every second and have a longPressListener | <p>I have a <code>RecyclerView</code> with a counter in every list item, as the counter callback is called, it updated the relevant fields and call <code>nottifyDataSetChanged</code></p>
<p>it works fine but the problem is, I also have a long press listener attached to it, as the data is updated while user was pressin... | 2 | 2,532 |
How to change an ImageView visibility from a different activity after pressing a button? | <p>I'm developing a simple android game divided into levels. I want a check icon (ImageView) to appear next to a level button (on level select menu) when that level is completed.
A level is completed after pressing a button, as follows (InsideLevelActivity):</p>
<pre><code> final EditText level1editText=(EditText)f... | 2 | 1,190 |
Can not get the div margin-top to work | <p>I'm trying to create a basic layout, where you have a header, a left col, content area, and the right col. When I'm setting the margin-top of the leftmenu (left col), it's not pushing the div down. I want the div to be under the header and have a border around it.</p>
<p>The maring-top for the .leftmenu is not work... | 2 | 1,597 |
Throwing an exception "Uncaught TypeError: Cannot read property '0' of undefined" while using tablesorter.js with knock out js | <p>I am working on an application in which I am using knockout Js and I am trying to implement table sorting on clicking the respective columns with jquery.tablesorter.js. in MVC4 Web API
Sorting without knockout Js works fine. I have the code below</p>
<p><strong>1. Index.cshtml</strong></p>
<pre><code><div class... | 2 | 2,295 |
Unknown segmentation fault involving vtable lookup | <p>So I messing around with virtual functions, trying to find a way to mitigate their cost, and I encountered an entirely unknown error. My entire code follows;</p>
<pre class="lang-C++ prettyprint-override"><code>#include <iostream>
#include <cmath>
class Base
{
public:
virtual vo... | 2 | 1,509 |
Cannot programmatically access some files in iCloud Drive | <h1>This may be my solution</h1>
<p>I suspect that my problem occurs because I did not turn on "iCloud" capabilities but since I have a free developer account I cannot do that.</p>
<p>If turning on "iCloud" capabilities is the solution, <strong>is there also some documentation which states this</strong>?</p>
<p>I on... | 2 | 1,045 |
MSDeploy won't accept dynamic path for deploy destination | <p>We're using MSDeploy with a Web Deployment Project to deploy our web site project using TFS Builds (TFS 2010 and VS 2010).</p>
<p>TFS Build sends the built files to a sub-folder of the specified drop folder, so if I specify the drop folder as:</p>
<blockquote>
<p>\\machineName\Builds</p>
</blockquote>
<p>The bu... | 2 | 1,307 |
Why does printf specifier format %n not work? | <p>This is my code:</p>
<pre><code>#include <stdio.h>
int main(void) {
int n;
fprintf(stdout, "Hello%n World\n", &n);
fprintf(stdout, "n: %d\n", n);
return 0;
}
</code></pre>
<p>This is my output:</p>
<pre><code>Hellon: 0
</code></pre>
<ol>
<li>Why does the <code>fprintf</code> format ... | 2 | 1,460 |
Magento 2 Rest Api is clearing cache too frequently on product updates | <p>We have an issue with Magento 2's Api regarding the full page cache and updates from the rest API from our ERP system. The ERP is constantly pushing inventory, stock and product updates through the API and in turn this flushes the cache for every product update resulting in a consistently non-cached website. We trie... | 2 | 1,732 |
ThreeJS / Angular - "scene is undefined" | <p>I'm just discovering ThreeJS and I'm trying to load an .obj file with the OBJLoader of ThreeJS.</p>
<p>Unfortunately, I'm getting an error </p>
<blockquote>
<p>Cannot read property 'scene' of undefined</p>
</blockquote>
<p>this error is produced at the line <code>this.scene.add( object );</code></p>
<p>Here is... | 2 | 1,317 |
IndexError when replacing missing values with mode using groupby in pandas | <p>I have a dataset which requires missing value treatment.</p>
<pre><code> Column Missing Values
Complaint_ID 0
Date_received 0
Transaction_Type 0
Complaint_reason 0
Company_response ... | 2 | 2,268 |
layout dilemma: Header, Content and Footer which expands their background color horizontally (but at the same time have centered content)? | <p>I created a layout were everything is centered (with the "margin="0 auto" technique). I also wanted the header and footer to be black and expand to both sides when the browser enlarge to the sides. If I center everything the black background will center too and it wont expand indefinably. The only solution I found w... | 2 | 3,608 |
Need to detect click and touch event on my RecyclerView with row detection | <p>I've tried to set up a click and toch listener for my RecyclerView with tutorials. But every tutorial I've tried I finaly failed because I've set the RecyclerView up with an other tutorial and all tutorials are looking different. Please can you help me detect click for each row? For example when a user clicks my fir... | 2 | 2,689 |
android: calling Button.setText() causes undesired relocation of Button | <p>I'm having this problem where a <code>TableLayout</code> of <code>Button</code>s is relocating all <code>Button</code> objects whenever i call <code>Button.setText(String)</code>. i've given no indication that the <code>View</code> should be moved... and i really don't want it to. if anyone knows how to keep thes... | 2 | 3,086 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.