title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Disable Button when Edit Text Fields empty | <p>I have two text fields and a Button. I want to disable the Button unless both EditText-Fields are not empty. I tried many solutions here at stackoverflow, but they don't work. Here is my code:</p>
<pre><code>import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Ed... | 0 | 1,133 |
How can I fix "500 : Internal Server Error" on jupyter notebook due to 'tornado.web' not having attribute 'asynchronous'? | <p>Jupiter notebook is not opening notebooks and shows a "500 : Internal Server Error" instead. What I did was activate an environment I need and launching Jupyter. Please find below what I did and the error message on the terminal:</p>
<pre><code>$ conda activate py3_parcels
$ jupyter notebook [I 18:20:39.663 Notebo... | 0 | 2,484 |
GSON identifying JSON Object as Primitive | <p>I am writing a relatively simple messaging app that saves its logs in the JSON format, and I am using the GSON library to parse these. I load a JSON file from a server, and put it trough <code>Gson.toJsonTree()</code> function. I'm not sure this is expected, but when I test the result from the previous function with... | 0 | 1,866 |
get TypeError: Cannot read property 'on' of undefined | <p>I am getting following error while implementing <a href="http://danielnill.com/nodejs-tutorial-with-socketio/" rel="nofollow">danielnill</a> example</p>
<p>when i added connection action and client side code in this example i got this error.</p>
<p><strong>Error:</strong></p>
<pre><code>/home/oneadmin/Desktop/tes... | 0 | 1,297 |
Adding actionbar to FragmentActivity | <p>I am making an app that is using google maps for some specific reason. So I created an Google Maps app in Android Studio and I got an activity that extends FragmentActivity. Everything works perfectly but now I want to add the action bar at top of the screen. The problem is that the map takes the whole screen and I ... | 0 | 2,307 |
Django South error with initial migration | <p>I have a new Django 1.3 project and app that I've created. I added south to my <code>settings.py</code> and have not yet run <code>syncdb</code>. When I execute the following commands per the South tutorial and documentation, I received the error shown below.</p>
<ul>
<li>Any thoughts on what's causing the problem?... | 0 | 1,629 |
EJB 3.1 Dependency Injection Failed | <p>i have created a stateless session bean like this : </p>
<pre><code>@WebServlet(name = "ProductController", urlPatterns = {"/ProductController"})
public class ProductController extends HttpServlet {
@EJB
private ProductFacadeBean productBean;
}
@Stateless
public class ProductFacadeBean extends AbstractFacade&... | 0 | 2,697 |
set checkbox in gridview based on datatable value | <p>I have a gridview control with a checkbox field and several bound fields. The checkbox field does not directly map to a field in the database. Rather, i want to read a value from a field in the database and "check" some of the checkboxes.</p>
<p>For example, given the following data from the database -> datatable... | 0 | 1,250 |
How to get data in Main.js from App.vue in Vue js? | <p>Here is my code in <code>main.js</code></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
imp... | 0 | 1,151 |
How to show checkboxes in jquery.datatables? | <p>I am using Datatables and I have the following code to generate the table. I want to display checkboxes for the read, write, execute and admin values.
If the value is equal to 1 , I want the checkbox to be checked. and if 0 checkboxes unchecked.</p>
<p>Javascript</p>
<pre><code><script type="text/javascript" ch... | 0 | 1,043 |
Best way to write String to file using java nio | <p>I need to write(append) huge string to flat file using java nio. The encoding is ISO-8859-1. </p>
<p>Currently we are writing as shown below. Is there any <strong>better</strong> way to do the same ?</p>
<pre><code>public void writeToFile(Long limit) throws IOException{
String fileName = "/xyz/test.txt";
... | 0 | 1,178 |
How to enable create, while also disabling edit for a Kendo Grid | <p>Is it possible to enable only inserting new records in Kendo grid, but disable editing records?</p>
<p>Best I could do is onDataBound remove "Edit" buttons in JavaScript.
I tried setting <code>Editable(ed => ed.Enabled(false))</code> but I get errors during runtime.</p>
<pre><code>@(Html.Kendo().Grid(Model) ... | 0 | 1,449 |
Installing mod_wsgi for Python3 on Ubuntu | <p>Could anyone give me a clear set of instructions for installing mod_wsgi on Ubuntu for Python 3?</p>
<p>I did get Flask & mod_wsgi successfully using Python3, and for a brief moment felt happy.</p>
<p>...until I looked at Apache's log and realised that I've run into this problem: <a href="https://askubuntu.com... | 0 | 1,767 |
echo user in view from sessions code igniter | <p>I am new in codeigniter. I have implemented a simple login system. I want to print out a username on my view page which is stored in sessions.
here is my controller</p>
<pre><code>class LoginController extends CI_Controller {
function index(){
$new['main_content'] = 'loginView';
$this-&... | 0 | 1,090 |
How can I open bootstrap modal on select box option change? | <p>I have a form which is submitted on option change. It is connected to the database. So everytime I submit the form, the page reloads and the value is selected (the value is now saved as "car" in the database).</p>
<pre><code><form class="cars" id="carSelect" name="car" action="index.php" method="get">
<se... | 0 | 1,216 |
Webpack with small initial script and async loading of all other scripts | <p>I have started using Webpack when developing usual web sites consisting of a number pages and of different pages types. I'm used to the RequireJs script loader that loads all dependencies on demand when needed. Just a small piece of javascript is downloaded when page loads.</p>
<p>What I want to achieve is this:</p... | 0 | 1,158 |
Missing artifact org.springframework.security:spring-security-parent:jar:3.0.7.RELEASE:compile | <p>I am getting a <code>Missing artifact org.springframework.security:spring-security-parent:jar:3.0.7.RELEASE:compile</code> error in the <code>pom.xml</code> when I add the maven dependency for <code>Spring Security</code> but when I remove that dependency the error disappears. Could someone help me understand that w... | 0 | 7,430 |
Shrink grid items just like flex items in css | <p>Is it possible to shrink grid items just like flex items in css?</p>
<p><strong>Grid items</strong></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
displa... | 0 | 1,124 |
Layout Preview showing blank screen with Coordinator layout in Android Studio 3.0 | <p>This is layout design code when I open the layout preview page grey android screen shows only (android...CoordinatorLayout) and nothing is showing on the screen. How can I solve this problem, I want to show the layout design on Layout Preview Screen.</p>
<pre><code><android.support.design.widget.CoordinatorLayout... | 0 | 1,102 |
Positioning reCAPTCHA widget with CSS | <p>I'm trying to align the reCAPTCHA widget with my input fields, but styling .g-recaptcha doesn't seem to achieve much. Does anyone know of any selectors I can use?</p>
<p>Form HTML:</p>
<pre><code><div class="contact-form">
<form role="form" method="post" action="contact-form.php">
<label for="... | 0 | 1,054 |
Eventmachine gem install fail | <p>I am not able to install eventmachine </p>
<p>Ok I know this has been asked quite a lot, but no solutions I found has helped me so far.So I posted here as a last resort.</p>
<p><strong>I use</strong> <code>windows 8 x64</code> using <code>ruby 2.0.0p195 (x64)</code> (installed throught Ruby Installer for Windows w... | 0 | 1,198 |
C# CS0120 "An object reference is required for the non-static field, method, or property" | <pre><code>class Program
{
int[] arrayOne = new int[3];
int[] arrayTwo = new int[5];
int[] arrayThree = new int[7];
int sumOne = 0;
int sumTwo = 0;
int sumThree = 0;
static void Main()
{
//call method to generate numbers
generateRandomNumbers();
//call method t... | 0 | 1,069 |
Semantic Issue: Incompatible pointer to integer conversion sending 'NSUInteger *' (aka 'unsigned int *') to parameter of type 'NSUInteger' | <p>So I get this <strong>warning</strong> :</p>
<pre><code>Semantic Issue: Incompatible pointer to integer conversion sending 'NSUInteger *' (aka 'unsigned int *') to parameter of type 'NSUInteger' (aka 'unsigned int')
</code></pre>
<p>Basically i am pulling in a JSON feed.. looping through it to match columns up wi... | 0 | 1,120 |
Swagger Spring API - xmlModelPlugin Error | <p>I'm trying to use swagger with following code : ................................................................................................................................................................................................................................................................................ | 0 | 3,180 |
"Invalid hook call" when mocking React HOC with Jest | <p>I'm using <a href="https://github.com/FoundersFactory/react-speech-recognition" rel="noreferrer">react-speech-recognition</a> to transcribe speech to text in my React app. react-speech-recognition provides the <code>SpeechRecognition</code> higher-order component, which injects additional properties like <code>brows... | 0 | 4,456 |
Design Pattern - Objective-C - MVC Model View Controller | <p>Hi I already read tutorials around the web on MVC and already read the topics on here. I think i got the concept of the MVC but i'm not sure of its implementation.</p>
<p>I've tried to apply it to a simple program, a window that have a label and a button.
The button increase a counter and the label shows the value ... | 0 | 1,436 |
How to debug a Python segmentation fault? | <p>How can I debug a Python segmentation fault?</p>
<p>We are trying to run our python code on SuSE 12.3. We get reproducible segmentation faults. The python code has been working on other platforms without segmentation faults, for years.</p>
<p>We only code Python, no C extension ....</p>
<p>What is the best way to... | 0 | 1,475 |
Simple lexical analysis java program | <p>My little project is a lexical analysis program in which i have to take every word found in an arbitrary .java file and list every line it appears on in the file. I need to have one look up table dedicated just to the reserved words and another for all additional words found in the document. So for a program like:</... | 0 | 2,085 |
Transaction TransactionImple ActionStatus.ABORTED was already rolled back | <p>I realize a migration of a DTO Business from TomEE to JBoss .</p>
<p>I have this entity : </p>
<pre><code>@NamedQueries({
@NamedQuery(name = "common.plagebusiness.plage.getAllPlages", query = "SELECT p FROM Plage p ORDER BY p.plageRgMax, p.plageCReseau") })
@Entity
@Table(name = "PLAGE")
public class Plage {
... | 0 | 1,235 |
WPF Listbox SelectionChanged | <p>I currently have an <code>Entity</code> that has a collection property on it. I want to know if why would the <code>SelectionChanged</code> only fire once and it won't trigger the <code>SelectionChanged</code> again once I try to select the item that was previously selected. </p>
<p><strong>MainWindowViewModel</str... | 0 | 1,687 |
How to make PrimeNG Menubar component work? | <p>I'm trying to make a menubar using PrimeNG, based on example from <a href="http://www.primefaces.org/primeng/#/menubar" rel="nofollow noreferrer">http://www.primefaces.org/primeng/#/menubar</a></p>
<p>I create something like this:</p>
<p><strong>app.component.ts</strong></p>
<pre><code>import {Component} from '@a... | 0 | 4,338 |
ModuleNotFoundError - No module named 'main' when attempting to start service | <p>Context:</p>
<ul>
<li>I created a Django application using Python 3.7.</li>
<li>I am (attempting) to use the 2nd generation Google App Engine standard environment.</li>
</ul>
<p>My application performs flawlessly when I run it via <code>python manage.py runserver</code>. Yet it comes to a sudden halt when I attemp... | 0 | 2,272 |
Querying DynamoDB with Lambda does nothing | <p>I have the following code for a Lambda function:</p>
<pre><code>console.log('Loading function');
var aws = require('aws-sdk');
var ddb = new aws.DynamoDB();
function getUser(userid) {
var q = ddb.getItem({
TableName: "Users",
Key: {
userID: { S: userid } }
}, function(err, d... | 0 | 1,343 |
Decryption Exception - length of the data to decrypt is invalid | <p>I am working in a C# application. We have common methods to store data on a file. These methods encrypt the data and store them on the file system. when we need the data, ReadData method decrypts the data and returns me plain text.</p>
<p>This code works fine in normal cases if size of the text in small. but for a ... | 0 | 1,338 |
Qt timers cannot be stopped from another thread | <p>Hy,</p>
<p>I'm writing my first Qt program and getting now in troubles with:</p>
<p><strong>QObject::killTimer: timers cannot be stopped from another thread</strong></p>
<p><strong>QObject::startTimer: timers cannot be started from another thread</strong></p>
<p>My program will communicate to a CANOpen bus for t... | 0 | 1,267 |
How to send form data to controller | <p>I have a simple J2ee application.
I want to create a simple form of registration, then send the data at controller to storage the data in mysql database.
So I have this jsp page:</p>
<pre><code><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib p... | 0 | 2,577 |
Embedding a Plotly chart in a Django template | <p>I am trying to embed a plotly pie chart in a Django html template. This works fine when the chart is produced in 'online mode' (i.e. the html snippet is stored on the plotly server) but not in 'offline mode' (i.e. when the html is stored locally). In the latter case, the chart does not appear. I want to be able to s... | 0 | 1,120 |
Tomcat 6/7 JNDI with multiple datasources | <p>When there are more than one <code><Resource></code> elements in context.xml and more than one <code><resource-ref></code> elements in web.xml, my application begins to throw</p>
<pre><code>TNS:no appropriate service handler found
</code></pre>
<p>and</p>
<pre><code>ORA-01017: invalid username/passwor... | 0 | 2,764 |
ImportError: cannot import name 'abs' | <p>I got problem while doing object detection using tensorflow-gpu</p>
<p>I was follwing the youtube tutorials
:<a href="https://www.youtube.com/watch?v=Rgpfk6eYxJA" rel="noreferrer">https://www.youtube.com/watch?v=Rgpfk6eYxJA</a></p>
<p>I'm trying to detect object using tensorflow-gpu with virtual environment.</p>
... | 0 | 1,188 |
Custom POST routes for create action not fired up | <h1># Explaining the context</h1>
<pre class="lang-rb prettyprint-override"><code>puts "I am learning Rails, building a simple forum application."
puts "I am pretty satisfied to where I got so far but routes... "
puts "...still figuring them out."
puts "Been 2 days trying all sorts of things."
puts "This is where I am... | 0 | 1,192 |
Why application is dying randomly? | <p>I am developing an music player app. All works fine except the app dies suddenly. Sometimes this happens when the app starts, and sometimes after running for long time. Sometimes all goes well without app getting died. I observed the log to get to know what is the causing the app to die and found this:</p>
<pre><co... | 0 | 7,001 |
C# Getting sender address from UDP message | <p>I have an embedded Ethernet interface (Lantronix XPort) that responds to a UDP broadcast with its identifying information.</p>
<p>I am able to multicast the "magic packet" and datagrams are received by the listener correctly, however I also need to find out what IP Address send that response datagram. If it were TC... | 0 | 1,094 |
Changing Java EE server from GlassFish to Tomcat | <p>I developed an applications using Netbeans with JSF, JPA and Primefaces and works fine in GlassFish server. I wanted to deploy in Tomcat server. I changed the server through properties, but the project can not be clean and built successfully. How can I change the server properly?</p>
<p>Details :</p>
<p>Netbeans 7... | 0 | 1,778 |
SSIS - Script Component, Split single row to multiple rows (Parent Child Variation) | <p>Thanks in advance for your help. I'm in need of help on writing SSIS script component to delimit single row to multiple rows. There were many helpful blog and post I looked at below:</p>
<p><a href="http://beyondrelational.com/ask/public/questions/1324/ssis-script-component-split-single-row-to-multiple-rows-parent-... | 0 | 1,569 |
How to remove space between widgets in Column in flutter? | <p>I looked for the answer but I couldn't found. </p>
<p>Why Column widget gives space between child widgets?<br>
I wanna remove this for my widget layout. Below is my code and space position.</p>
<p><a href="https://i.stack.imgur.com/3GSZs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3GSZs.png" alt="ent... | 0 | 2,335 |
Send email confirmation after registration django | <p>Im sending an email confirmation after a registration process in my django application. I need to find out for security reasons how can i validate the code im sending in the url without adding a new code field in the user model. So far im sending a random code in the url and the username which is validated but not t... | 0 | 1,173 |
How to align cards to the center with the same size? | <p>I am trying to align to the center in Oracle Apex cards by using the static content. My issue is that the alignment is not correct and the card sizes are not equal.</p>
<p>My HTML code:</p>
<pre><code><head>
<style>
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
... | 0 | 1,054 |
Pagination is not showing in jQuery datatable | <p>I am using JQUERY DATATABLES in my project. I have added all the reference and followed all the steps specified in documentation. But I am not able to see the Pagination's. I can see table sorting but I can see pagination numbers.I feel its picking wrong jquery library. How can I know which jQuery its referring?</p>... | 0 | 1,384 |
how to insert data in database using tinymce | <p>This are my codes for <code>TinyMCE</code>, when I intend to submit it doesn't appear on the database and what datatype should I put in the table:</p>
<pre><code>< CONNECTION TO DATABASE?>
<!-- Load jQuery -->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<sc... | 0 | 2,090 |
MongoDB aggregate $match and $group with $sum | <p>i have a collection with documents like this:</p>
<pre><code>{
"Company" : "4433",
"Descripcion" : "trabajo",
"Referencia" : "11817",
"HoraImportado" : "15:54",
"ImportedOd" : "2014-05-20T13:54:28.493Z",
"Items" : [],
"Notes" : [
{
"_id" : ObjectId("537b5ea4c61b1d174... | 0 | 1,922 |
PHP socket error Permission denied on Linux | <p>I have installed php 5.4.13 on Linux 2.6.34.</p>
<p>I have make simple client/server page using socket but it did not work on it.</p>
<p>It give permission denied error </p>
<p>Below is my php code</p>
<pre><code>if (false == ($socket = socket_create(AF_INET, SOCK_STREAM, 0))) // create socket
{
$stringData... | 0 | 1,369 |
PHP script stops working suddenly without reason | <p>I'm running a BIG PHP script, it might take a <i>full day</i> to finish its job,<br>
this script grabs data from MySQL database and use it with curl to test stuff.. it does it with about <i>40,000</i> records..<br>
So to make it run on background for as long as it needs, i used the terminal to execute it.. in the PH... | 0 | 1,045 |
sample example for JCS | <p>I am implementing JCS for the first time.</p>
<p>My requirement :
I have one java class with a main method in which i am storing some data in the cache.</p>
<p>I have second java class with a main method from which i am retrieving from the disk cache which i had stored using the first java class.</p>
<p>Please no... | 0 | 1,246 |
Get back the assembly level code from exe files? | <p>I was doing linux assembly programming and for the past few days I have switched to learn windows assembly programming. I am using <code>ml</code> as my assembler and <code>golink</code> as my linker. I have my assembly code and have obtained my <code>exe</code> from it. Now I need to get back its hex like <code>\xf... | 0 | 1,109 |
Why does flex-box work with a div, but not a table? | <p>The following simple snippet results in a single web page that takes up the available screen space with a header at the top, a footer at the bottom, and the main content taking up as much space as possible (with a dotted border to make it easier to see):</p>
<p><div class="snippet" data-lang="js" data-hide="false" ... | 0 | 1,088 |
How to post x-www-form-urlencoded in Flutter | <p>I am trying to send a <code>POST</code> request to an API to create an account.<br>
The request is working well, it should look like this : </p>
<p>Bulk Edit Mode :<br>
<a href="https://i.stack.imgur.com/1Q19G.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1Q19G.png" alt="Bulk Edit mode"></a></p>
<p>Ke... | 0 | 1,506 |
Posting form-data AND a file to ASP.NET Web API | <p>I have this ASP.NET Web API method, and I want to post an object and in the same time, a file!</p>
<pre><code> public async Task<IHttpActionResult> Post(Facility facility)
{
if (!ModelState.IsValid)
return BadRequest();
// Check if the request contains multipart/form-data.
... | 0 | 1,109 |
Jenkins/Github Error cloning remote repo 'origin' : Could not clone | <p>I need some help with an authentication issue I have encountered with Github/Jenkins.</p>
<p>Setup is as follows:
Jenkins master is on windows
Slave is running on OSX
Jenkins can communicate fine with the slave</p>
<p>When trying to pull from our private git repo we see the following error, this error is not on e... | 0 | 1,031 |
Working with DirectoryServices in ASP.NET Core | <p>I am upgrading my ASP.NET Core RC1 application to RC2. I have some references to <code>System.DirectoryServices</code> and <code>System.DirectoryServices.AccountManagement</code> in some *.cs files so that I can query LDAP. But I have no idea how to add references to it in RC2 in the <code>Project.json</code> file. ... | 0 | 1,437 |
Python Pandas highlight row in Dataframe | <p>I have a mysql query which returns a results table.
Such as the below:</p>
<p><img src="https://i.stack.imgur.com/L7rpb.png" alt="enter image description here"></p>
<hr>
<p>What I'm trying to achieve is to highlight the whole row when the last column's value is 'MM'.</p>
<p>I've used in the past a small snippet ... | 0 | 2,215 |
OAuth2 - Error 400: redirect_uri_mismatch | <p>I own a site and would like to place my products on Google Shopping, I currently use Google spreadsheets, but I would like to do this through integration. To import my products automatically. For this I verified that I need to use OAuth, but I am not able to make it work. I can not find where the error might be.</p>... | 0 | 1,080 |
Django OSError: [Errno 13] Permission denied | <p>I am new in python and Linux and apologize in advance for any confusion.
I am trying to collect my static files using</p>
<pre><code>python manage.py collectstatic
</code></pre>
<p>but something error here are my tracebacks</p>
<pre><code>> Copying '/var/www/Django/myweb/static/images/test.jpg'
Traceback (most re... | 0 | 1,107 |
Caused by: java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'appController' bean method | <p>Good morning all, i'm dealing with an Ambiguous mapping i cannot decode...
I'm using Spring mvc 4.0.6 and hibernate 4.3.6
I'm getting this error while launching the war in tomcat:</p>
<pre><code>ERROR [localhost-startStop-2]: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Err... | 0 | 2,858 |
Static Functions in C++ | <p>I've read a few posts on here about static functions, but still am running into trouble with implementation.</p>
<p>I'm writing a hardcoded example of Dijkstra's algorithm for finding the shortest path. </p>
<p>Declared in Alg.h:</p>
<pre><code>static void dijkstra();
</code></pre>
<p>Defined in Alg.cpp:</p>
<p... | 0 | 1,092 |
Kafka not able to connect with zookeeper with error "Timed out waiting for connection while in state: CONNECTING" | <p>I am trying to run my kafka and zookeeper in kubernetes pods. </p>
<p>Here is my <code>zookeeper-service.yaml</code>:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.1.0 (36652f6)
creationTimestamp: null
labels:
io.kompose.service... | 0 | 7,534 |
How to resolve the dependency and compile the Junit test classes using Gradle Bulid Tool | <p>I'm new to Gradle, currently i added a small java projects and executed well.</p>
<p>Correct me if my understanding since java is available we are able to complie the java project and executed well.</p>
<p>To test i have wirtten a test class with help of junit, but I couldn't not compile and not able to pull the d... | 0 | 7,436 |
How to create submodule with Angular | <p>I am creating an app in angular 2 with CLI , my app module is going too long so now i want to create submodules</p>
<p><strong>My submodule is</strong></p>
<pre class="lang-js prettyprint-override"><code> import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
imp... | 0 | 1,167 |
Clicking the device back button closes the app instead of going back to previous page | <p>If click any <code>ion-item</code> it open the desired page but if i click device back button it close the app rather than going back to previous page in android:</p>
<p>This is my ionic side menu:</p>
<pre><code><ion-side-menus enable-menu-with-back-views="false">
<ion-side-menu-content>
<ion... | 0 | 1,066 |
IntelliJ cannot resolve Junit for Maven project | <p>The closest post I could find on SO is: <a href="https://stackoverflow.com/questions/21339934/why-am-i-getting-cannot-resolve-symbol">Why am I getting "Cannot resolve symbol"?</a></p>
<p>But it didn't help me. :(</p>
<p>Here's my error screenshot:
<img src="https://i.imgur.com/QDPI7LH.jpg" alt="commercia... | 0 | 1,239 |
How to perform unauthenticated Instagram web scraping in response to recent private API changes? | <p>Months ago, Instagram began rendering their public API inoperable by removing most features and refusing to accept new applications for most permissions scopes. <a href="https://later.com/blog/instagram-api/" rel="noreferrer">Further changes were made this week</a> which further constricts developer options.</p>
<p... | 0 | 1,707 |
With ffmpeg, trying to change a container from Mpeg TS to MP4, fps became twice of Mpeg TS | <p>I got a Mpeg TS file from a capture board to make a DEMO video clip.</p>
<p>Here is information of the file from ffmpeg;</p>
<pre><code>Stream #0:0[0x51]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x61]: Audio: mp2 ([3][... | 0 | 1,456 |
Spring boot (mysql with jpa ): No bean named 'entityManagerFactory' available | <p>Started building a(<em>first</em>) spring boot application and this is my spring boot main class (<a href="https://github.com/sureshatta/stackOverflowExamples/tree/master/SpringBoot/MySQL" rel="noreferrer">Full code on github</a>)</p>
<pre><code>@EnableAutoConfiguration
@SpringBootApplication
public class Applicati... | 0 | 3,539 |
Passing parameters in a response.sendRedirect() - JSP | <p>I am new to Web Technologies. I am trying to do a simple program which ask the user to input a name, if valid the page redirects to another jsp file <code>"RedirectIfSuccessful.jsp"</code>, if invalid the page redirects to <code>"RedirectIfFailed.jsp"</code>. I am using the <code>response.sendRedirect()</code> metho... | 0 | 1,155 |
Laravel hidden attributes. e.g. Password - security | <p>According to <a href="http://laravel.com/docs/eloquent">http://laravel.com/docs/eloquent</a>, one can Hide Attributes From Array Or JSON Conversion by using a protected $hidden variable in the Model.</p>
<pre><code>class User extends Eloquent {
protected $hidden = array('password');
}
</code></pre>
<p>Great, h... | 0 | 1,180 |
How to test for exceptions thrown using xUnit, SubSpec and FakeItEasy | <p>I’m using xUnit, SubSpec and FakeItEasy for my unit tests.
I’ve so far created some positive unit tests like the following:</p>
<pre><code>"Given a Options presenter"
.Context(() =>
presenter = new OptionsPresenter(view,
A<IOptionsModel>.Ignored,
... | 0 | 1,073 |
calling javascript in infowindow google map | <p>I am trying to call javascript inside google map infoWindow(). I know it's a classic question. I have read a lot of similar question in stackoverflow butI I can't find solution :( </p>
<p>my code:</p>
<pre><code><!DOCTYPE>
<html>
<head>
<link rel="stylesheet" type="text/css" href="http:... | 0 | 2,826 |
Chef-client dying mid run | <p>We recently started having trouble with chef-client dying in the middle of a run after taking a lot more time stuck on various parts of the run-list that normally proceeded much quicker. I've been on my home wifi and my colleague has been on the work wifi, which has been having some connectivity problems of its own.... | 0 | 3,938 |
django admin - You don't have permission to edit anything | <p>I followed the <a href="https://docs.djangoproject.com/en/1.8/topics/auth/customizing/#a-full-example" rel="noreferrer">django doc</a> on creating a custom user model while extending the model itself with my own fields. So it became like this:</p>
<pre><code>class MyUser(AbstractBaseUser, PermissionsMixin):
ema... | 0 | 1,385 |
java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener | <p>We are three people developing a JSF project and we've not been into JSF before. Oddly, with the same data checked out from SVN, one of the team members gets an 404 error everytime using Tomcat 7.0.27.</p>
<p>At the time when Tomcat (used inside Eclipse) starts up, the following log is written out:</p>
<pre><code>... | 0 | 1,308 |
Setting tableHeaderView height dynamically | <p>My application creates a UITableViewController that contains a custom tableHeaderView which may have an arbitrary height. I've been struggling with a way to set this header dynamically, as it seems the suggested ways have been cutting this header short.
My UITableViewController's relevant code: </p>
<pre><code>imp... | 0 | 2,131 |
How can I force PHP to use the libiconv version of iconv instead of the CentOS-installed glibc version? | <p>The code I'm working on runs perfectly on Windows XP and on Mac OS X. When testing it on CentOS (and on Fedora and Ubuntu), it's not working properly. Searching the nets led me to the conclusion that it's the <code>glibc</code> version of the <code>iconv</code> that's causing the problem. So now I need the <code>lib... | 0 | 1,668 |
Understand U-Boot memory footprint | <p>I don't understand what is happening in RAM when loading U-Boot. I'm working on a Xilinx Zynq ZC702 evaluation kit and I'm trying to load a Linux kernel on it using U-Boot. So I used the Xilinx tool Vivado and the SDK to generate a BOOT.bin file that is written on an SD card step by step:</p>
<ul>
<li>Create an HW ... | 0 | 2,525 |
Maven throws nullpointer exception | <p>Good day,</p>
<p>I have built a project using maven. Throughout this project, I have concluded that one more dependency has to be added for a particular module. I have added this dependency in it's pom file and when I have tried to rebuild the project using maven, a null pointer was thrown.</p>
<p>Pom files before... | 0 | 2,413 |
Highcharts - show every month on datetime x-axis when the parent container is small | <p>I have a highcharts graph with 2 lines. The x-axis is type datetime.</p>
<p>I want a labeled tick in the x-axis for every month in the overall date range: Jul '11, Aug '11, Sep '11, etc.</p>
<p>The only way all of the monthly ticks will display is if I set my parent container to be extremely wide. However, my prod... | 0 | 4,442 |
Unique index or primary key violation: "PRIMARY KEY ON PUBLIC.CAR(ID) : While calling the POST service | <p>CarController.java</p>
<pre><code>package com.mytaxi.controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework... | 0 | 4,595 |
Find date range overlap in python | <p>I am trying to find a more efficient way of finding overlapping data ranges (start/end dates provided per row) in a dataframe based on a specific column (id). Dataframe is sorted on the 'from' column. I think there is a way to avoid the double <code>apply</code> function as I did:</p>
<pre class="lang-python prettyp... | 0 | 1,119 |
Android - Get each EditTexts values of ListView with custom ArrayAdapter | <p>I've got a ListView with a customer ArrayAdapter and a custom ListItem-XML. At the bottom of this ListView I've added a FooterView with a Button. Now I want to get all the values of the three EditTexts in each of my ListItems when I click this Button.</p>
<p>Here below is my code:</p>
<p>activity_checklistresult.x... | 0 | 2,253 |
how to save state with onSaveInstanceState and onRestoreInstanceState while orientation change | <p>I read almost all article about onSaveInstanceState and onRestoreInstanceState in Stack overflow but I cant solve my problem. <br />
I have a text view and button in my main.java and while you click on button value of a ( <strong>a</strong> is an int variable) variable will increase and show in the text view, but, w... | 0 | 1,339 |
HTML responsive email width issue in Outlook | <p>I'm creating a responsive email template based off of <a href="http://zurb.com/playground/projects/responsive-email-templates/basic.html" rel="nofollow">this</a>. </p>
<p>I've got it working how I want it in Gmail, Yahoo, Outlook.com etc. and most phones but I can't work out why Outlook on desktop doesn't like it. ... | 0 | 15,534 |
Trying to set size of charts in ng2-charts | <p>I am trying to set the size of my charts.</p>
<p>I have copy and pasted the ng2-chart example of the bar chart into my typescript file.</p>
<p>If I play around with the canvas :</p>
<pre><code><canvas baseChart width="100" height="100">
</code></pre>
<p>Nothing seems to happen with the size. It is always s... | 0 | 2,140 |
A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0x00002b2f7e9b2744, pid=28778, tid=1138739520 | <p>I am getting the following error while executing the program. </p>
<p>And this is not always happening.
The code contains some complex calculations with a large volume of data.</p>
<p>Could somebody help to identify the error </p>
<pre><code>#
# A fatal error has been detected by the Java Runtime Environment:
#
... | 0 | 7,051 |
Media player playing multiple files at the same time | <p>I am having a problem where once the user clicks on a sound to play from my ListView, then while that sound is playing they click on another sound, the 2 sounds they clicked play at the same time.</p>
<p>I would like to have the sound that was currently playing, finish, then start the new sound that they most recen... | 0 | 1,753 |
Using LINQ .Select() to cast into new type is TOO slow? | <p>Current project, broke head over this problem:</p>
<p>Client Repository:</p>
<pre><code>public class ClientRepository
{
// Members
private masterDataContext _db;
// Constructor
public ClientRepository()
{
_db = new masterDataContext();
}
public IEnumerable<ClientName> Ge... | 0 | 3,920 |
Android WebView crashes when clicking on a link | <p>I have some <code>WebView</code> widgets inside my <code>Activity</code>. I use <code>loadData()</code> to set the content, and this html contains a link. Some of my <code>WebViews</code> work okay, when I click the link, the web browser is started in a new window, but some make my app crash when I click on a link.<... | 0 | 1,261 |
how to hide Bottom Navigation Bar on new screen in flutter? | <p>Just like here when I click on the timer, the Bottom navigation bar was disappeared. I want to implement the same thing on flutter. Whenever I click on Bottom Navigation Bar Item, for the new screen the Bottom Navigation Bar should not appear.</p>
<p><a href="https://i.stack.imgur.com/uel8J.gif" rel="noreferrer"><i... | 0 | 1,663 |
MessageBodyReader not found for media type=application/octet-stream | <p>I'm trying to receive json data from <a href="http://api.openweathermap.org/data/2.5/forecast/daily?lat=35&lon=139&cnt=10&mode=json">http://api.openweathermap.org/data/2.5/forecast/daily?lat=35&lon=139&cnt=10&mode=json</a> with the following code snippet:</p>
<pre><code>private WebTarget get... | 0 | 1,389 |
Error : java.lang.NoClassDefFoundError Android | <p>I am following this <a href="http://www.truiton.com/2015/06/android-tabs-example-fragments-viewpager/">tutorial to create swipe tabs</a>. But I get the above error.</p>
<p>My gradle dependencies sturucture</p>
<pre><code>dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12... | 0 | 6,084 |
syntax error near unexpected token `}' ` | <p>I'm writing a shell script to make a new save file for the game risk of rain. I'm trying to make it so that each section of the unlocks that are available, such as achievements, monster logs, artifacts, etc. can either be added all at once to the file, or the user will be able to pick which ones they want added. I a... | 0 | 2,338 |
AngularJS UI Bootstrap Datepicker Date Format in Controller is not correct | <p>I am using a datepicker in my html page as follows:</p>
<p><strong>HTML</strong></p>
<pre><code> <div ng-controller="StartDateCtrl">
<label class="control-label" for="startDate"> Date:</label>
<div class="row">
<div class="col-md-6">
<p class="input... | 0 | 1,139 |
Php-fpm does not listen on ports | <p>I have been trying to get php-fpm (w nginx) to work with the default port(9000) and it just does not work.I am trying to use php 7.1 (also tried 7.0 and 5.6). The service started fine and I can also see the port open and being listened in ss/netstat. There are no errors in the php-fpm log. Initially I thought it cou... | 0 | 8,811 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.