title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Oops; flutter has exited unexpectedly #42072 | <p>No flutter commands seem not to work on the terminal..I always get a crash report when I try to run flutter. I have tried several flutter commands but I am getting the same below report.</p>
<pre><code>Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 351c1d27593c0... | 1 | 1,538 |
How to add select field to FieldArray in formik | <p>I follow to this code:</p>
<pre><code>import React from 'react';
import { Formik, Form, Field, FieldArray } from 'formik';
// Here is an example of a form with an editable list.
// Next to each input are buttons for insert and remove.
// If the list is empty, there is a button to add an item.
export const FriendLi... | 1 | 1,491 |
Cannot read property 'length' of undefined (print map with geoserver) | <p>am trying to work with print with geoserver geoext/ext to print a map.
i successed to install the print plugin, since localhost:8080/geoserver/pdf/info.json?var=printCapabilities shows the print capabilities.
THE PROBLEM: when i try to load the page with the map and the print button i get this error:</p>
<pre><code... | 1 | 1,705 |
Angular2 tests running before compileComponents variables are set | <p>I am having an issue in an Angular2 text component where I am getting the following error when I attempt to run the testrunner:</p>
<pre><code>Component: Product Component Should ensure component subscribes to service EventEmitter on instantiation
Failed: Cannot read property 'detectChanges' of undefined
TypeError:... | 1 | 1,495 |
Filtering item from nested object array in typescript | <p>I have looked for a while now for examples but I can't find anything similar and my understanding of the filter function is lacking, any help is much, much appreciated. I'm trying to remove elements from the object where the nested items label === undefined.</p>
<pre><code>this.items = [ // main MenuItem[] object (... | 1 | 1,624 |
Passing data in modal with laravel | <p>I'm trying to pass data to a modal in laravel. I've created the foreach and modal in blade and the jQuery in a separate file. The modal opens but it doesn't pass the data through. I think my error is in jQuery.</p>
<p><strong>Blade code</strong> </p>
<pre><code>@foreach($course->activeLessons as $lesson)
&l... | 1 | 1,054 |
OpenCV undefined reference (FileStorage with vector<KeyPoint>) | <p>Been working with some OpenCV recently, however I have run across an interesting problem. I have a simple class to store data and read and write the data to a file.</p>
<p>Here is the write function:</p>
<pre><code>cv::Mat descriptors;
vector<cv::KeyPoint> keypoints;
void EventType::write(cv::FileStorage ou... | 1 | 1,080 |
Getting "rpc error: code = Unavailable desc = error reading from server: EOF" when trying to create a new etcdv3 client | <p>I'm trying to access my ETCD database from a K8s controller, but getting rpc error/EOF when trying to open ETCD client.</p>
<p>My setup:</p>
<ul>
<li>ETCD service is deployed in my K8s cluster and included in my Istio service mesh (its DNS record: <code>my-etcd-cluster.my-etcd-namespace.svc.cluster.local</code>)</li... | 1 | 1,871 |
B tree implementation to B+ tree | <p>im trying to create a B+ tree from a previous B tree implementation I create, but Im really lost here... the only difference from B to B+ im trying to implement, is storing the keys on the leaves instead of removing them.
<br>Example:
<br>Final B Tree
<br>3 6 false
<br>1 2 true
<br>4 5 true
<br>7 8 9 10 true</p>
... | 1 | 2,392 |
ANTLR4 book, calculator exercise | <p>I am stuck at a very fundamental level with antlr. Going through 'The Definitive ANTLR 4 Reference' by Dr. Parr. In section 4.2, 'Building a Calculator Using a Visitor' the following grammar is listed:</p>
<pre><code>grammar LabeledExpr; // rename to distinguish from Expr.g4
prog: stat+ ;
stat: expr NEWLINE ... | 1 | 1,160 |
Moq Verify with anonymous type parameter | <p>I have the following test, with supporting classes, but I can't figure out how to verify the call on the dependency.</p>
<pre><code>[TestFixture]
public class AnonymousGenericTypeParameterTests
{
[Test]
public void Test()
{
// Arrange
var dependency = new Mock<IDependency>();
... | 1 | 1,945 |
How to configure FuncAnimation (dynamic plotting from matplotlib.animation) to numpy arrays? | <p>I have some issues with the <em>FuncAnimation</em> fonction of <em>MatPlotLib</em>. I can't configure it to my code... I hope someone could help me !!</p>
<p>This is a diffusion equation, I need to plot it for each step of the time. At each step, the result of the calculation is a numpy array. I manage to plot it ... | 1 | 1,047 |
JAX-RS: NoSuchMethodFound Exception Jersey-media-moxy JSON | <p>I have been struggling with this for hours now. I'm working on JAX-RS with jersey. Everything was going fine until I had to return JSON at one place. I know there must be a jersey-media-moxy library to be there in order to binding your Java objects to JSON format. I downloaded several JSON libraries one after anothe... | 1 | 2,866 |
Request had insufficient authentication scopes [403] when creating a cluster with Google Cloud Dataproc | <p>In Google Cloud Platform the DataProc API is enabled. I am using the same key I use to access GCS and Big query to create a new cluster per <a href="https://stackoverflow.com/a/35710413/384554">this example</a>. I get a <code>Request had insufficient authentication scopes</code> error on the following line.</p>
<pr... | 1 | 1,469 |
Filter specific rows when loading csv file | <p>So I have this POJO class:</p>
<pre><code>public class Player {
@CsvBindByName
private String simTime;
@CsvBindByName
private String playerId;
@CsvBindByName
private String dimX;
@CsvBindByName
private String offX;
@CsvBindByName
private String dimY;
@CsvBindByName
private String roadS;
@CsvBind... | 1 | 1,042 |
TradingView WebHook API doesn't work, what could be blocking the POST requests? | <p>Ever since TradingView opened up their webhook support, I've been pulling out my hair trying to figure out why no signals are being received by my server. I've done the following so far:</p>
<ul>
<li>Made sure ports were open, made sure TradingView was actually sending the POST requests</li>
<li>Tried POSTing on a ... | 1 | 1,129 |
How to show save file dialog in Safari? | <p>I need help. I have an angular app and by using DocRaptor want to generate PDF and save it as file. But I cant trigger the dialog to save file in Safari with any method what I have found on Stack Overflow. Those methods open file in current browser tab and replace site html or open file in new tab. No one cant shows... | 1 | 1,884 |
Cygwin and SDL 2.0 : how to compile? | <p>I've downloaded SDL2.0 like this:</p>
<pre><code>~/tmp>wget http://www.libsdl.org/tmp/release/SDL2-2.0.0.tar.gz
</code></pre>
<p>Then I extracted it, went into the directory, and did <code>./configure && make && make install</code>. Everything went fine. Now I've made a very simple sample (see f... | 1 | 1,979 |
php unique/group associative array | <p>I would like to remove duplicates for the following array. I want to group by the first value and then rebuild the index.</p>
<p>ie</p>
<pre><code>Array
(
[0] => Array
(
[title] => California
[state_id] => 1
)
[1] => Array
(
[title] =... | 1 | 1,080 |
Maven Tomcat Embedded | <p>I am trying to run a Spring webapp using maven with the</p>
<pre><code>mvn tomcat:run
</code></pre>
<p>command, but whenever I navigate to <code>http://localhost:8080/myApp</code>, I get the error: "The requested resource () is not available". Nothing shows up in the logs. I think my app is supposed to be deployed... | 1 | 1,492 |
Custom dialog in fragment | <p>I have in my app a class which extends ListFragment. I want to show a simple dialog with the options "Edit" and "Delete" (as Textviews) when long-clicking the list items. Unfortunately, my dialog crashes while instantiating the Textviews.
Here's my code:
In MyListFragment class: </p>
<pre><code>@Override
public voi... | 1 | 1,225 |
Fragment no longer exists for key android:target_state | <p>I think I have same problem <a href="https://stackoverflow.com/questions/17935224/fragement-no-longer-exists-for-key-f0-index-1">here</a> but there is no answer. </p>
<p>I have an Activity with an ViewPager and a FrameLayout which will contain a Fragment. It look like this :</p>
<pre><code>Activity
|— ViewPager... | 1 | 3,734 |
In React, on button click, display alert for 5 seconds, then hide alert | <p>We are using this CSS which is for an animation where the div (or for any element using the <code>animate</code> class) disappears after 4 seconds.</p>
<pre><code>@keyframes FadeAnimation {
0% {
opacity: 1;
visibility: visible;
}
100% {
opacity: 0;
visibility: hidden;
}
}
.animate {
animati... | 1 | 1,588 |
Dragging UITableView | <p>I'm working on an iPhone application where I want to drag the table view (not the cells) upto a certain point in the screen. I have the tableview sitting in the bottom half of the screen and I have an image in the top-half.</p>
<p>When I scroll the table to see the rows below, the table should actually move up goin... | 1 | 1,180 |
Express4.10 bodyParser req.body undefined | <p>I'm trying to build the login of a node application trying to access the route / login get: req.body undefined</p>
<p>Error:</p>
<pre><code>TypeError: Cannot read property 'usuario' of undefined
at login (/home/makros/workspace/ntalk/controllers/home.js:8:24)
at Layer.handle [as handle_request] (/home/makros... | 1 | 1,858 |
JavaFX Wait for Page to Load Before Continuing | <p>I have a method that sets a new web page for the WebView's WebEngine that needs to wait until the page has finished loading to continue in the current method.</p>
<p>Essentially I want:</p>
<pre><code>MyMethod()
{
navigateToNewUrl();
waitForPageToLoad(); // This is the part I am struggling with
doSomet... | 1 | 1,269 |
CMake cross-compile problem with CXX_FLAGS in linker | <p>I have following toolchain for iPhone crosscompilation on mac os x:</p>
<pre><code># Platform Info
SET (CMAKE_SYSTEM_VERSION 1)
SET (CMAKE_SYSTEM_PROCESSOR arm)
# SDK Info
SET (SDKVER "3.0")
SET (DEVROOT "/Developer/Platforms/iPhoneOS.platform/Developer")
SET (SDKROOT "${DEVROOT}/SDKs/iPhoneOS${SDKVER}.sdk")
SET (... | 1 | 2,385 |
Android Multiple insert data to sqlite | <p>I try to insert multiple data to sqlite in android but I can't.
I want to create and insert like the code bolow, please help me.</p>
<p>here is my bad code,</p>
<pre><code>package com.pepakbahasajawa.database;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.s... | 1 | 1,117 |
Maven : Could not transfer artifact Error code 401, Authorization Required | <p>I am using maven 2.2.1 and Eclipse Helios as IDE
When i run mvn deploy from the command prompt , the deployment is successfull
But when i use Eclipse Maven plug and tried to deploy from there </p>
<p>I get the below exception </p>
<pre><code>[INFO] Total time: 1.148s
[INFO] Finished at: Mon Oct 03 21:22:57 IST 20... | 1 | 1,124 |
Element Class test showing ng-untouched and failing with proper input | <p>I'm trying to test a little angular app I have made.<a href="https://i.stack.imgur.com/3wYba.png" rel="nofollow noreferrer">My app</a> is just a simple table of users(you can add and edit users). Name and email input are validated. </p>
<p>I want to test validation on name input, the validation is quite simple - yo... | 1 | 6,312 |
How do I conditionally render an icon based on the value of a prop? | <p><strong>Goal</strong>: To conditionally render the appropriate icon for attendance statuses (default, present, excused, absent). </p>
<p><strong>Problem</strong>: I am having trouble using the state in a conditional statement to return the proper icon. </p>
<p>It seems that the first thing that happens is, in comp... | 1 | 1,305 |
Java Spring IOC constructor-arg inject a List<Integer> | <p>i am trying to develop a <code>Spring bean</code> like this</p>
<pre><code><bean id="id" class="java.util.ArrayList" scope='prototype'>
<constructor-arg>
<list>
<bean class='MyClass'>
<property name='id' value='1313'/>
<propert... | 1 | 2,029 |
Apache Flink, number of Task Slot vs env.setParallelism | <p>Could you explain differences between task slot and parallelism in Apache Flink v1.9? </p>
<ul>
<li><p>Here is the my understanding so far</p>
<ul>
<li>Flink says that TaskManager is the worker PROCESS. And normally you should have one TaskManager per one computer.</li>
<li>Let's say I have 3 computers and both of... | 1 | 1,283 |
Getting correct JSON formatting from an Angular form | <p><em>This is an updated version of my original question.</em>
I created a feedback form (ff) with a text input and file input, binded with [(ngModel)]="feedback.message" & "feedback.screenshot". </p>
<p>The console gives me this error "JSON.parse: unexpected end of data at line 1 column 1 of the JSON data"
eit... | 1 | 2,339 |
Use sampler2D and samplerCube in one shader in WebGL | <p>I am struggeling with when and how to use activeTexture, bindtexture and gl.uniform1i('TextureLocation', 'texture'), Int) functions. </p>
<p>However, all of my stuff worked so far but it seems my rudimentary understanding starts to become a problem now. </p>
<p>I am trying to use a cubemap and a texture map in one... | 1 | 1,776 |
Random Questions using DetailsView (Help) | <p>Greetings everyone, i would just like to ask how do i retrieve data rows in my table in my database randomly... i was able to create an online quiz wherein it displays the question,choices in consecutive order but what i want is, every time when user will start a quiz it will show questions in random order. I am us... | 1 | 3,657 |
Suddenly get ClassNotFoundException in Exception | <p>I finally switched from Helios to Indigo.
Suddenly I am getting ClassNotFoundException popping up.</p>
<pre><code>05-02 16:05:22.621: W/System.err(21126): android.view.InflateException: Binary XML file line #12: Error inflating class com.google.ads.AdView
05-02 16:05:22.631: W/System.err(21126): at android.view.... | 1 | 2,056 |
CloudConfigurationManager.GetSetting() returns null with Azure Configuration Manager 3.0 | <p>I just upgraded (via nuget) to the latest version of the Azure Configuration Manager (3.0.0):</p>
<p><a href="https://www.nuget.org/packages/Microsoft.WindowsAzure.ConfigurationManager/3.0.0" rel="nofollow">https://www.nuget.org/packages/Microsoft.WindowsAzure.ConfigurationManager/3.0.0</a></p>
<p>Once I did that ... | 1 | 1,337 |
How to Serialize a NSCFArray (possible JSON) to NSDictionary? | <p>I'm really stuck right now while using BZForursquare to get nearby Venues into a UITableView.</p>
<p>BZFoursquare: <a href="https://github.com/baztokyo/foursquare-ios-api" rel="nofollow">https://github.com/baztokyo/foursquare-ios-api</a></p>
<p>I get my Requestresult inside the requestDidFinishLoading Delegate Met... | 1 | 1,529 |
Issues passing json data to build morris.js plot dynamically | <p>I want to build a morris.js plot dynamically by using ajax, php, and mysql.</p>
<p>i have been searching with no success how to achieve this.</p>
<p>I get the array data successfully with ajax but now i can't pass these data to build the plot.</p>
<p>From the PHP script i get the following json array:</p>
<pre><... | 1 | 1,174 |
laravel/eloquent mutators/accessors in a pivot table | <p>Well, I think the title explains most of it. Lets get right into it!</p>
<p>Blank Model:</p>
<pre><code>class Blank extends Eloquent
{
protected $table = 'blanks';
protected $softDelete = true;
protected $hidden = array();
/**
* Get associated jobs.
*
* @return mixed
*/
... | 1 | 1,129 |
Unable to contact the remote controller at 192.168.56.3 | <p>Good morning,</p>
<p>I want to set up OpenDayLight SDN Controller and Mininet in VirtualBox. So far I installed both and got them running.
My interfaces are:</p>
<ul>
<li>1 NAT </li>
<li>1 Host Only Adapter</li>
</ul>
<p>for both the VMs.
The Host only adapter has an IP address of 192.168.56.1.
OpenDayLight VM r... | 1 | 1,066 |
Dynamic linking boost libraries and the auto-link not working properly? | <p>I used the following command to build <code>boost-1.53.0</code> on <code>Win7 Pro</code> with <code>VS 2013 Pro (VC12.0, 18.00.21005.1)</code>:</p>
<pre><code>b2 stage toolset=msvc link=shared runtime-link=shared threading=multi --without-graph --without-graph_parallel --without-mpi --without-wave --without-python
... | 1 | 1,308 |
MissingMethodException [Cannot create an instance of an interface] thrown selectively by ASP.NET MVC controller | <p>I'm getting strange (at least for me) behavior in an MVC 4 application.</p>
<p>I'm googling around this whole evening; also I read many SO posts - no joy; I know I can't instantiate an interface directly.</p>
<p>In this particular application I'm using Ninject for DI.
In the controller <strong>constructor</strong>... | 1 | 2,672 |
WPF - TabItem MouseOver not working as intended | <p>I have an issue with the IsMouveOver trigger with a TabItem Element.</p>
<p>When the mouse cursor is on a TabItem, its background color changes, which is what I want => It works.
However the background color of the TabItem also changes whenever my mouse cursor is on an item inside the TabItem.</p>
<p>Here's the XA... | 1 | 1,751 |
Laravel REST API and high CPU load | <p>I am developing a simple RESTful API using Laravel 4.
I have set a <code>Route</code> that calls a function of my <code>Controller</code> that basically does this:</p>
<ul>
<li>If information is in the database, pack it in a JSON object and return a response</li>
<li>Else try to download it (html/xml parsing), stor... | 1 | 3,761 |
ASP.NET Decimal.Parse() | <p>I have problem in webpage , Visual Studio claims that problem is with this line <code>decimal newAmount = PLNamount * Decimal.Parse(item.Value);</code>. The solution is crushed when I choose the Current (web page is simple current converter) .</p>
<p>this is listing of <strong>CurrencyConverter.aspx.cs</strong></p>
... | 1 | 3,129 |
CudaAPIError: [1] Call to cuLaunchKernel results in CUDA_ERROR_INVALID_VALUE in Python | <p>I'm having this error when trying to run this code in Python using CUDA. I'm following this tutorial but i'm trying it in Windows 7 x64 machine. </p>
<p><a href="https://www.youtube.com/watch?v=jKV1m8APttU" rel="nofollow">https://www.youtube.com/watch?v=jKV1m8APttU</a></p>
<p>In fact, I run check_cuda() and all te... | 1 | 2,200 |
Permissions trouble on AWS Lambda, can't spawn child process | <p>So I've created this nice little lambda, which runs great locally, however not so much when actually out in the wild.</p>
<p>The lambda takes an event, with html in the event source, converts that html to a PDF (using the html-pdf node module), passes that pdf to an s3 bucket, and then hands back a signed url that ... | 1 | 1,938 |
Creating database in android which stores image | <p>I am a newbie to Android app development. For 1 of my project, I need to store images in a database. So here's what I did.</p>
<pre><code> package com.img.db;
import java.io.ByteArrayOutputStream;
import android.app.Activity;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.... | 1 | 1,956 |
Receiving org.hibernate.ResourceClosedException "This TransactionCoordinator has been closed" | <p>I have a servlet, running on Tomcat 6, that uses Hibernate 4.1.6 and c3p0 0.9.1.2, and I am getting too much org.hibernate.ResourceClosedException, with the message "This TransactionCoordinator has been closed".</p>
<p>I've already checked that <code>beginTransaction()</code> and <code>rollback()</code> or <code>co... | 1 | 1,332 |
AttributeError: '_tkinter.tkapp' object has no attribute 'text' in tkinter | <p>I set up an weather application but when I click on button to get weather I getting this error?In this application I create <code>thread</code> for doing background proccesss.
Here I'm trying to get <code>self.text</code>value and access in another function.</p>
<p><strong>Error:</strong></p>
<blockquote>
<p>thr... | 1 | 2,421 |
"uninitialized constant" when running RSpec tests with Rails 2.3.8 and Bundler | <p>I just changed my Rails 2.3.8 project to load gems using Bundler, rather than the default Rails 2.3 loading mechanism. I followed <a href="http://gembundler.com/rails23.html" rel="nofollow noreferrer">the official instructions</a> and the site runs fine in development. I use RVM for gem management, and have a specif... | 1 | 1,675 |
OleDbDataAdapter: cannot update database | <p>I've been working on this since yesterday and I just can't update my database.
There are 3 tables. Here is a piece of code of one of WinForms. It loads data and display but after changing sth manually in the grid I get either errors by calling Update or anything happens at all.</p>
<p>please help because I'm going ... | 1 | 1,456 |
Port binding exception starting activemq | <p>I am trying to start activeMq using the command</p>
<pre><code>activemq.bat start
</code></pre>
<p>However using this command stops active MQ; which looks like the cause is port is not available. Here is the error snippet:</p>
<pre><code> INFO | Apache ActiveMQ 5.10.0 (localhost, ID:LT7634-51673-1426517344431-0:1... | 1 | 6,095 |
Memory leak without the use of new operator in C++ | <p>I am currently in the process of recreating a basic linux shell for my class and I'm having problems with valgrind detecting a memory leak even without the use of the new operator. I'm not sure where to look at and I can't make anything out of the valgrind error message. If anyone has any idea where the memory leak ... | 1 | 2,303 |
Chaining all statements in protractor | <p>My first stack overflow question....</p>
<p>I'm trying to chain an all statements in protractor but I'm getting the error.</p>
<pre><code>TypeError: Object [object Object] has no method 'all'
</code></pre>
<p>I'm looking at the API code on the following page</p>
<p><a href="http://angular.github.io/protractor/#/... | 1 | 1,687 |
Execute SQL Server stored procedure from VBA and retrieve all messages and result sets | <p>I want to be able to execute a SQL Server stored procedure from MS Access VBA, in such a way that I can read (1) all the resulting result sets, not just the first one; and (2) any messages produced by PRINT statements or similar.</p>
<p>I have a test stored procedure with one input parameter, which produces 3 disti... | 1 | 1,436 |
AJAX 404 Error - Call to controller action .Net MVC | <p>I have a fairly simply .NET application with one page. </p>
<p><img src="https://i.stack.imgur.com/NDVBf.png" alt="Structure of files][1"></p>
<p>The code is meant to populate a table when run by calling the relevant controller to get the code and printing it out using a script. </p>
<p>My controller:</p>
<pre><... | 1 | 1,879 |
LibUSB driver issues: timeout | <p>I am attempting to write a linux driver for a printer. I have run USBSnoop on windows XP and obtained the log. In this log it sets wMaxPacketSize to 1026. After i set the interface i get the response of 75 bytes. If i set it to 64 (in the lsusb output) i obviously only get 64 bytes back. </p>
<p>My issue is on a bu... | 1 | 1,763 |
Linking C++ to static library; undefined reference errors | <p>I'm trying to link a small C++ test program, <code>main.o</code> to a 3rd party static library, but get some inexplicable <code>undefined reference</code> errors.</p>
<p>Specifically:</p>
<pre><code>g++ -o secoTest -lpthread main.o libEAPI.a
main.o: In function `main':
main.cpp:(.text+0x29fe): undefined referen... | 1 | 1,171 |
Hibernate and Spring - load operations do the trich, update/delete operations don't | <p>I've been following this tutorial:
<a href="http://www.scribd.com/doc/25244173/Java-Struts-Spring-Hibernate-Tutorial" rel="nofollow">http://www.scribd.com/doc/25244173/Java-Struts-Spring-Hibernate-Tutorial</a>
The setup (described ahead) was working fine with the tutorial files, but when I have made the changes - de... | 1 | 2,672 |
x86 NASM Assembly - Problems with Input | <p>I am working to take input from a user twice, and compare the input. If they are the same, the program exits. If not, it reprints the input from the first time, and waits for the user to type something. If it is the same, the same thing as before occurs. If not, the same thing as before occurs.</p>
<p>Input and loo... | 1 | 1,796 |
Drawable Resource not found using Android 4.4.4 | <p>I'm costumizing my progressbar using the following drawable:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<gradient
a... | 1 | 1,707 |
a file upload progress bar with node (socket.io and formidable) and ajax | <p>I was in the middle of teaching myself some Ajax, and this lesson required building a simple file upload form locally. I'm running XAMPP on windows 7, with a virtual host set up for <code>http://test</code>. The solution in the book was to use node and an almost unknown package called "multipart" which was supposed ... | 1 | 1,440 |
Google Visualization Organizational Chart (Node Children) | <p>I have an organizational chart with many levels, the image below is taken from a part of it.
I try to get all the childs and sub childs of a selected node, like if "Power Business Unit" node selected it get all the 3 childs and for every single child do the same. I got the first level but I can't get the depth of th... | 1 | 1,124 |
Quartz xml configuration | <p>I want to run Quartzjob through xml configuration along with Tomcat Server.But when I start Tomcat my job is not at all starting.
could any one help ?
Here is My code:</p>
<p>web.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<web-app>
<listener>
<listener-class>
org.q... | 1 | 1,460 |
How to fix super classes have no public methods with the @Subscribe annotation in Android | <p>I want show 3 <code>fragments</code> in my <code>Activity</code> and load data from <strong>json</strong> in any <code>fragments</code>! I want show each <strong>json</strong> data into one fragment, but in my application show all of data in all fragments!
<strong>For example :</strong> i want show article data into... | 1 | 7,529 |
Encode array to base64 in go | <p>Here is my complete code for a function I develop:</p>
<pre><code>package main
import (
"database/sql"
"log"
"encoding/xml"
"github.com/gin-gonic/gin" //golang frameworks
_ "github.com/go-sql-driver/mysql"
"gopkg.in/gorp.v1" //work with database(mysql, etc.)
)
type Genre struct {
... | 1 | 2,608 |
Kubernetes Service not accessible on AWS-EKS | <p>I created a simple <strong>EKS</strong> cluster on aws as described in <a href="https://github.com/terraform-providers/terraform-provider-aws/tree/master/examples/eks-getting-started" rel="nofollow noreferrer">https://github.com/terraform-providers/terraform-provider-aws/tree/master/examples/eks-getting-started</a>.... | 1 | 2,137 |
CSS/JS files not showing from server to reverse-proxy OctoPrint server via Nginx | <p>I've got a Nginx server running on website <code>https://example.com</code>. I'm trying to serve a page (from an OctoPi) via reverse proxy, on another remote server that I own/admin, served at <code>http://1.2.3.4:1988</code>.</p>
<p>I can serve up the main page at <code>https://example.com/foo/</code>, but the css... | 1 | 1,481 |
XML Serialization: Problem deserializing an abstract property | <p>I am still trying to wrap my brain around this whole xml serialization thing, and it appears I am in need of some assistance yet again.</p>
<p>I need to be able to deserialize a property of an abstract type. This type will have many different concrete types being added over time, and is referenced in a lot of diffe... | 1 | 2,131 |
Ruby-OpenID: Requiring email-address from OpenID provider | <p>I'm playing with the <a href="http://github.com/binarylogic/authlogic_example/tree/with-openid" rel="nofollow noreferrer">authlogic-example-app</a> and I'm failing to get the email address from the OpenID provider (in my case: Google and Yahoo) when I register a user, resp. I get an empty response instead of an emai... | 1 | 1,726 |
Material-ui Tabs - how can I put scroll of them | <p>I am using Material-ui Tablist for my in my AppBar component. The problem is that I have too many Tabs and I want to make them responsive - when I have smaller screen some of them are just not visible.</p>
<p>The component's docs:</p>
<p><a href="https://material-ui.com/components/tabs/" rel="nofollow noreferrer">ht... | 1 | 1,238 |
Add and remove table rows dynamically with jQuery | <p>I am a beginner in jQuery. I have to put add and remove buttons to each table row. When remove any of row, I want the first column values to be serialized in ascending order. Now I just don't get it. Will appreciate for your help.</p>
<p>These are my jQuery codes:</p>
<pre><code>$(function(){
$(".addButton... | 1 | 2,236 |
Cannot debug, Fatal signal 6 (SIGABRT) at 0x00007c37 (code=-6) | <p>I ran into the following situation where I cannot debug the android app. I can run it but cannot debug it. I started brand new project copied everything and it worked (meaning was able to debug) but got this again. I tried both on emulator and my phone but no avail. I am using Android Studio 0.5.1</p>
<p>it fails a... | 1 | 1,681 |
JSON object- how to iterate through all properties without knowing their names? | <p>I have a fairly simple JSON:</p>
<pre class="lang-json prettyprint-override"><code>[
{
"hero-img": "girl-ipad.png",
"main-story-headline": "How to Stay Mentally Healthy During a Pandemic",
"main-story-paragraph": "lorem ipsum",
&... | 1 | 1,039 |
JQUery autocomplete in ASP.Net Webservice | <p>This is driving me crazy , I just keep getting the message "error" nothing else. I had this autocomplete working with AJAX Toolkit, but I want to try JQuery, I have very little experience with JQuery. Here is WebService code:</p>
<pre><code> [WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(Con... | 1 | 1,210 |
How to use Flask-APScheduler in existed Flask app | <p>I am trying to get familiar with Flask-APScheduler plug-in through the following sample code: <a href="https://github.com/viniciuschiele/flask-apscheduler/blob/master/examples/jobs.py#L1" rel="noreferrer">https://github.com/viniciuschiele/flask-apscheduler/blob/master/examples/jobs.py#L1</a></p>
<p>My project has t... | 1 | 1,158 |
Python Tkinter multiprocessing progress | <p>For my work, I frequently have to collect reasonably large datasets from a MySQL database, e.g. several parameters for several locations, and store that data in a CSV file per location. For this, I've written a small GUI. Since, the data has to be stored per location, I thought I'd take advantages of my 8-thread CPU... | 1 | 1,430 |
CSS Cursor Image using SVG Base64 URI | <p>So I have this SVG element I encoded to Base64:</p>
<pre><code>cursor: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjEzLjU1N3B4IiBoZWlnaHQ9IjEyLjI3M3B4IiB... | 1 | 3,518 |
How to fix "TypeError: argument of type 'ConnectionHandler' is not iterable" when running a django test? | <p>When I do ```python -m unittest`` inside of my users app, I get this error:</p>
<pre><code>TypeError: argument of type 'ConnectionHandler' is not iterable
</code></pre>
<p>I was customizing my User model in django and I wanted to make a test for it. I already did the migrations and the custom User model works good... | 1 | 1,860 |
Fragment Unit Testing: launchFragment throws ClassCastException | <p>I'm trying to call methods within my Fragment class in my unit test but I keep getting the error <code>java.lang.ClassCastException: androidx.fragment.app.testing.FragmentScenario$EmptyFragmentActivity cannot be cast to com.nu.rms.inspections.ui.activity.InspectionActivity</code></p>
<p>I'm following Google's <a hr... | 1 | 2,829 |
Tween.registerAccessor NoClassDefFoundError | <p>i 'm a newbie for LibGDX and Android. Btw sorry for my bad English.</p>
<p>Here is my problem. I just want to make a splash screen with libgdx and i watched Dustin Riley 's libGDX tutorial on youtube. But my codes doesn 't work and here is LogCat about error.</p>
<pre><code>05-07 11:05:19.004: E/AndroidRuntime(838... | 1 | 1,083 |
jQuery UI Datepicker working on Chrome but not on Safari | <p>I've been testing a page with a few jQuery UI elements and Safari has been giving me some headache. Check out the link: <a href="http://data-buckeye-590.appspot.com/index" rel="nofollow">http://data-buckeye-590.appspot.com/index</a></p>
<p>The first text input uses a jQuery autocomplete and both date fields use dat... | 1 | 1,061 |
C# SOAP Service without WCF | <p>I'm trying to create a SOAP web service and web client in C# <strong><em>without using the WCF tools</em></strong>. My objective is to create a client that communicates with a SOAP service that most likely is not using WCF. <em>I made a proof of concept client, but at the moment I'm not really sure how to write th... | 1 | 2,216 |
Django 2.1 Token matching query does not exist | <p>I've been trying to implement user authenitication in Django using <code>rest_framework.authtoken</code> as in <a href="https://iheanyi.com/journal/user-registration-authentication-with-django-django-rest-framework-react-and-redux/" rel="nofollow noreferrer">this guide</a>. My test cases, which test for a range of d... | 1 | 1,307 |
Can't locate Data/Dumper.pm when building dssp - perl is installed but cannot be found? | <p>I am trying to build dssp (<a href="https://github.com/cmbi/dssp" rel="nofollow noreferrer">https://github.com/cmbi/dssp</a>) on a server-node (not on server-login), and I am facing a problem with how the system finds dependencies. I am working on a centos 7.</p>
<p>The procedure of building dssp is : <code>run ./au... | 1 | 9,410 |
Adding a linear gradient to Material UI icon | <p>I've tried the process described in this question <a href="https://stackoverflow.com/questions/65051364/trying-to-add-linear-gradient-to-a-martialui-icon">Trying to add linear gradient to a martialUI icon</a> as a comment stated it should work, but it does not for me.</p>
<p>Thinking that maybe the icons counted as ... | 1 | 1,974 |
Log4j2 : How to configure multiple Appender with same type in Yaml configuration | <p>I'm trying to have 2 RollingRandomAccessFile in the same YAML configuration. I'm able to do it in XML but not in YAML. As a result, I want two files "application.log" and "payload.log".</p>
<p>Here's my working XML configuration : </p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<Configuration statu... | 1 | 2,163 |
Wsdl2java behind a proxy: WSDLException: faultCode=PARSER_ERROR | <p>I am behind a proxy and the maven cxf plugin is failing to access the <code>wsdl</code> file.</p>
<p><strong>The entry in the <code>pom.xml</code> is:</strong></p>
<pre><code><plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifa... | 1 | 4,284 |
How can I move a scrollbar from inside to outside a table? | <p>I have this scrollable table and notice that it only move its <code>tbody</code> not its <code>thead</code> and that's how it should be, but the scrollbar is inside the <code>table</code> which makes the <code>thead</code> and the <code>tbody</code> disarrange, so I had an idea to move the scrolllbar to outside the ... | 1 | 15,314 |
SslStream.AuthenticateAsClient Exception when using iPhone Apple Push Notification Provider (apns-sharp) | <p>I receive the following exception when using the Apple Push Notification Provider (apns-sharp). </p>
<p>The push notifications work on my development machine however it will not work within the Rackspace Cloud hosting. I have the exact Rackspace Cloud custom medium trust configuration running with my dev. machine ... | 1 | 1,114 |
How to avoid async.waterfall "TypeError: Cannot read property of undefined"? | <p>I am working on an async.waterfall that I am unsure of how to avoid: "TypeError: Cannot read property 'MediaUrl' of undefined". This TypeError doesn't occur each time the script is run.</p>
<p>The flow is as follows:</p>
<ol>
<li>getName (randomly chooses a name from a list of names</li>
<li>searchImage (uses the ... | 1 | 1,035 |
Trouble with PySerial and multiple Python installations | <p>I have Python 2.4.4 and 3.1.3 on my Windows 7 machine. I would like to use PySerial.</p>
<p>I heard that it was built in, so I tried <code>import serial</code> in both versions. Both caused an <code>Import Error</code>. </p>
<p>Then I downloaded the win32 installer from <a href="http://pypi.python.org/pypi/pyseria... | 1 | 2,776 |
How to overwrite extracted zip file in C#, WinForms? | <p>I have this code that backup and restore in C# using MS Access as its database. I finished doing the backup in zip format and now I want to restore the Zipped file. Any help will be much appreciated. </p>
<pre><code>public void BackupDatabase(string dateToday)
{
string dbFileName = "dbCPS.accdb";
... | 1 | 1,128 |
Jquery Mobile/Phonegap Swipe Gesture issue in Android | <p>I have the following code for swipe right event in jquery mobile/phonegap app.Code is working fine, but problem is i have to swipe 3-4 times to get response on android device.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>Slider Stop</title>
<meta http-... | 1 | 1,089 |
android - Out of memory Exception | <p>I develop one android app for book read. The Book pages and audios are download from Amazon Bucket. After downloading it stores on SD Card.</p>
<p>I place to two button for next and previous pages. When I display pages It gives me Out of Memory Exception.</p>
<pre><code>11-03 10:59:39.199: E/AndroidRuntime(13566):... | 1 | 2,682 |
Ansible get_url Download file only if changed | <p>I want to download the files from the yaml file download.yaml only if they changed.</p>
<p>I already found this <a href="https://stackoverflow.com/a/22668463/10966928">https://stackoverflow.com/a/22668463/10966928</a> but it seems ansible still downloads the whole file, even when it is not changed</p>
<p>task from p... | 1 | 1,738 |
Apply function to only one div class, not all | <p>I'm currently working on a location page on a website and am having trouble with a show/hide jquery effect. The jQuery below activates on-click and applies toggles the class of a div to show/hide it... pretty straightforward. However, when I add more divs with the same class and click on the activator link, it runs ... | 1 | 1,456 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.