title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Set a minimum height on bars in D3 graph | <p>I think this should be fairly simple, but I'm new to D3 and don't know where to start. I'd like to set a minumum height to the bars in my bargraph so that even bars with a value of 0 are still visible. </p>
<p>I'd also like this to be accurately represented by the Y axis (ideally by adding a buffer between the X ax... | 1 | 3,833 |
Error in implementing realtime camera based GPU_SURF in opencv | <p>As the CPU based SURF in opencv was very slow for realtime application, we decided to use GPU_SURF, after setting up the opencv_gpu we made the following code:</p>
<pre><code>#include <iostream>
#include <iomanip>
#include <windows.h>
#include "opencv2/contrib/contrib.hpp"
#include "opencv2/objdet... | 1 | 1,395 |
Add items to a List in Firebase in Android | <p>I am having a hard time trying to figure out how to add more items dynamically to a List in Firebase. As of now I am able to add just one item at the correct firebase location. The user needs to be able to add more items to the list. I am using a custom model class for the data. I would greatly appreciate any help, ... | 1 | 1,601 |
JCIFS SmbFile.listFiles crashing | <p>Firstly I would like to say I do have the Internet Permissions on.</p>
<p>I try to do this</p>
<pre><code>jcifs.Config.registerSmbURLHandler();
SmbFile file = new SmbFile("smb://");
SmbFile[] files = file.listFiles();
</code></pre>
<p>new SmbFile(...) executes fine, when file.listFiles() attempts to run it crashe... | 1 | 1,995 |
Building a Kotlin + Java 9 project with Gradle | <p>I'm fairly new to Gradle (and Java 9, to be honest), and I'm trying to use Gradle to build a simple library project that is a mix of Java 9 and Kotlin. More in detail, there is an interface in Java and an implementation in Kotlin; I'd do everything in Kotlin, but the <code>modules-info.java</code> is java anyway, so... | 1 | 1,162 |
Android 6.0.1 couldn't enable wifi hotspot programmatically | <p>When I tried to enable wifi tethering from the following code it throws the exception</p>
<blockquote>
<p>java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.....</p>
<p>.... not granted this permission: android.permission.WRITE_SETTINGS</p>
</blockquote>
<p>But this... | 1 | 1,165 |
R shiny: rendering LaTeX interactively | <p>Using LaTeX in R shiny I found this tip <a href="https://stackoverflow.com/questions/22251956/r-shiny-how-to-output-a-good-looking-matrix-using-rendertable">How to output good-looking matrix</a> helpful. (Sorry my knowledge and reputation is too short to comment there.)
But at least for me it doesn't work interactiv... | 1 | 1,092 |
Docker : sharing /dev/snd on multiple containers leads to "device or resource busy" | <p>When <a href="https://docs.docker.com/engine/reference/commandline/run/#add-host-device-to-container---device" rel="noreferrer">adding host device</a> (<code>--device /dev/snd</code>) to a Docker container, I sometimes encounter <code>Device or resource busy</code> errors.</p>
<h2>Example</h2>
<p>I have reproduced... | 1 | 1,095 |
How to control the order of the layers on a map in d3js | <p>I have a simple question about making maps with d3js. I want to make a map with two layers. One layer is the contour of the map (geoJson) and the other layer contains the streets (topoJson). My problem is that streets layer always is loaded in front of the layer of contour, no matter which one is written before in t... | 1 | 1,227 |
maven package executable-jar cannot run "NoClassDefFoundError" | <p>I compiled my project using maven <code>maven package</code> command and exported successfully created executable-jar file.</p>
<p>But when I run this, just error output <code>NoclassDefFoundError</code></p>
<pre><code>$ java -server -Xms512m -Xmx2048m -Dlogback.configurationFile=`pwd`/resources/logback.xml -jar s... | 1 | 6,479 |
check in if ngmodel or forms are dirty or has input | <p>how to check in angular if ngmodel or forms are dirty or has input using form fields but not using formgroup.</p>
<p>I wanted to check if 5 of the inputs fields has value or dirty I want to show like a message but how do we check if for example 5 fields from DealFields or ngModel dealDispositionFormFields are dirty ... | 1 | 2,139 |
zk element if @load equals condition | <p>I have a list which I build in zul file.</p>
<pre><code><listbox id="someId" model="@load(vm.searchResults)" selectedItem="@bind(vm.selectedItem)" vflex="1" multiple="true">
<listhead>
<listheader label="${labels.l1}" width="150px" align="center"/>
<listheader label="${label... | 1 | 1,039 |
Improve performance of Highcharts line chart | <p>I'm using Highcharts to create a zoomable line chart that has 1440 data points, here's a <a href="http://jsfiddle.net/x8rmayx6/">JSFiddle demo</a> thereof.</p>
<p>In Firefox, the performance of the chart is very sluggish, it takes several seconds to render, and there's a long delay between hovering over a datapoint... | 1 | 1,356 |
ARM Template containing config settings for web app | <p>I am encountering strange behavior when deploying an ARM template.</p>
<p>I have the following template: (Note that sasUrl value 'xxx' has a real, working value in my file)</p>
<pre><code>{
"name": "[variables('webAppServiceName')]",
"type": "Microsoft.Web/sites",
"location": "[resourceGroup().location]",
... | 1 | 1,308 |
Using if/else if in my calculator program | <p>I'm working on a project by where I have to create a simple program that works based of the user input. I've gone with a basic calculator but I'm having trouble getting my if/else if statements to work. Basically, if the user types in "Addition", I want the program to say "...I will help you with addition!", and so ... | 1 | 1,036 |
NiFiCoreException: Unable to start Flow Controller | <p>i get this error when starting Nifi 1.9.2 in cluster mode with embedded zookeeper 3.5.5.</p>
<p>I successfully start three zookeeper 3.5.5 separately using Java 1.8.nifi.</p>
<pre><code>org.apache.nifi.web.NiFiCoreException: Unable to start Flow Controller.
at org.apache.nifi.web.contextlistener.ApplicationSta... | 1 | 2,936 |
Payment Authorization & Capture the Payment (Future) using PayPal-node-SDK (PayPal Express Checkout) | <p>I'm working with PayPal Express Checkout and and what i need to do is Authorize and Capture the payment later separately, my current PayPal flow is,</p>
<p>1) I create a payment using following code:</p>
<pre><code>var paypal = require('paypal-rest-sdk');
function createPayPal(req, res, itemsArray, redirectsTos) ... | 1 | 1,990 |
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2 | <p>This is my <code>javax.swing</code> class. But it always throws the error <code>java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2</code>. Not quite sure what is causing it. Where is the error?</p>
<pre><code>import java.awt.event.*;
import java.awt.*;
import java.sql.*... | 1 | 1,970 |
swiper 3.3.1 main image and thumbnail not in sync | <p>swiper 3.3.1
issue reproduced on: chrome, firefox (haven't checked other browsers)</p>
<p>As I click on the right arrow and reach the 5th image, the thumbnails slide to the wrong image (main image and thumbnail image are not in sync anymore).</p>
<p>The problem disappears if I set centeredSlides: true (but I want ... | 1 | 2,161 |
gaierror when trying to send email with Django using Google App Engine | <p>I have deployed a Django project on Google App Engine and have set up django-password-reset in order for users to be able to reset their password through email verification.</p>
<p>However, when I try to submit the recovery request I get this error:</p>
<pre><code>Environment:
Request Method: POST
Request URL: h... | 1 | 1,920 |
java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex | <p>From the last few hours I'm trying to resolve this problem.</p>
<p>These errors came after updating the dependencies. The error I'm getting here is :</p>
<blockquote>
<p>Execution failed for task app:transformDexArchiveWithExternalLibsDexMergerForDebug'.</p>
<p>java.lang.RuntimeException: com.android.builder.dexing.... | 1 | 1,473 |
Python socket stress concurrency | <p>I need a Python TCP server that can handle at least tens of thousands of concurrent socket connections. I was trying to test Python SocketServer package capabilities in both multiprocessor and multithreaded modes, but both were far from desired performance.</p>
<p>At first, I'll describe client, because it's commo... | 1 | 1,265 |
Index was out of range. Must be non-negative and less than the size of the collection.Parameter name index | <p>I want to Delete and Insert the Record but I have the error which is Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index I can't solve it please tell me how to solve it and yes I have the problem of Updating the Imge also please tell me how to update the image ... | 1 | 6,162 |
Using C++ COM interface in C# for both client and server | <p>I need to make a piece of C# code interact through COM with all kinds of implementations.</p>
<p>To make it easeier for users of that integration, I included the interacted interfaces in IDL (as part of a relevant existing DLL, but without coclass or implementation), then got that into my C# code by running Tlbimp ... | 1 | 1,085 |
How to configure email notifications in Redmine? | <p>I have installed Redmine in offline mode by using Bitnami and configured email notifications as follows, as says in <a href="http://www.redmine.org/projects/redmine/wiki/EmailConfiguration" rel="nofollow noreferrer">Redmine: Email Configuration</a></p>
<p>My environment:</p>
<pre><code>Environment:
Redmine ver... | 1 | 1,530 |
ERROR: Failed to build gem native extension | <pre><code>gem install unf_ext -v '0.0.6'
localhost:workflow_boyun ryan007$ gem install unf_ext -v '0.0.6'
Building native extensions. This could take a while...
ERROR: Error installing unf_ext:
ERROR: Failed to build gem native extension.
/Users/ryan007/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
ch... | 1 | 1,200 |
Kendo-grid locked column and grouping | <p>I have grid with locked (frozen) column and grouping like this:</p>
<p>demos.telerik.com/kendo-ui/grid/frozen-columns</p>
<p>But I have only one frozen column and small width.</p>
<p>And when I group by column with long string values (eg ship address), these group values in group header displayed in multiple line... | 1 | 1,414 |
Maven Failsafe Plugin is always skipping integration tests | <p>I am attempting to configure my Maven project to have unit tests and integration tests. The unit tests are already working fine using the Maven Surefire plugin and are named according to the pattern <code>*Test.java</code>. </p>
<p>After adding the Failsafe plugin, like so:</p>
<pre><code> <plugin>
... | 1 | 1,501 |
Using otool (recursively) to find shared libraries needed by an app | <p>I have a Cocoa app that uses otool to find required shared libraries that an app needs to function properly. For example, say I run otool -L on an app that uses QTKit.framework. I get a list of the shared libraries used by the program (including the basic frameworks like Cocoa.framework and AppKit.framework):</p>
<... | 1 | 1,223 |
Flyway migrations don't work when the version is 0 | <p>When I have a file with 0 as the version number, Flyway won't pick it up.</p>
<p>Maven dependency:</p>
<pre><code><dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>3.2.1</version>
</dependency>
</code></pre>
<p>Sp... | 1 | 1,050 |
How to set a minimum and maximum limit for a date picker in android? | <p>I'm working on an app in which i'm using a custom date and time picker.
I've created a dialog box and inside that i'm showing date and time picker respectively now I want to set a minimum and maximum limit for the date picker.
Such as one should not be able to select the previous date from today and not more than a ... | 1 | 3,154 |
Sequence Stack: uninitialized value was created by a heap allocation | <p>Just now I wrote a simple data structure <strong>Sequence Stack</strong> in c, and met a problem. </p>
<pre><code>==8142== Use of uninitialised value of size 4
==8142== at 0x408F4AB: _itoa_word (_itoa.c:195)
==8142== by 0x40935EA: vfprintf (vfprintf.c:1629)
==8142== by 0x4099EFE: printf (printf.c:35)
==814... | 1 | 1,357 |
file_get_contents returns strange characters with some Wikipedia pages, why? | <p>I have gone through most of the solutions but they all didn't work.</p>
<p>I try to parse a Wikipedia page using file_get_contents but the return differs according to something in the page I haven't figure out yet.</p>
<p>For example when I use it with this page, <a href="http://en.wikipedia.org/wiki/Word" rel="no... | 1 | 2,634 |
undefined reference to `PQconnectdb' | <p>Recently a project that i am working on requred to add postgresql support to it. Project is written in C(its open source<a href="https://github.com/meetecho/janus-gateway" rel="nofollow noreferrer">Janus gateway</a>).</p>
<p>I follwed these steps to install the postgress and libps-dev.</p>
<pre><code>sudo apt-get ... | 1 | 1,117 |
How to apply Custom Paging in JQGRID | <p>I have a Jqgrid, In my MVC view, there is no problem in displaying the data in the grid. But I want to apply the custom paging in the grid, so i have created the method in my controller which takes two parameters (pageNumber and rowSize) and returns the data based on the these two parameters.
<strong>Now my questio... | 1 | 2,370 |
ClientHttpRequestInterceptor not called in springboot | <p>I am trying to add logging to my application using ClientHttpRequestInterceptor.My interceptor is not being called.
Not sure what is going wrong here -</p>
<p>Here is my code -</p>
<pre><code> @Component
@Slf4j
public final class RestTemplateInterceptor implements ClientHttpRequestInterceptor {
... | 1 | 1,130 |
Sum vector of integer using MPI c | <p>I want to sum vector of integer using MPI.</p>
<p>Let's assume I have a vector a with 20 elements and a vector b with 20 elements too and I want to sum them in a vector c.</p>
<p>The rank 0 will send parts of the vector a and b to another rank,that will calculate the sum and then return another vector with the ans... | 1 | 1,325 |
rails script/server doesn't start the server | <p>I downloaded, setup all the gems for <a href="http://github.com/bestbuyremix/BBYIDX" rel="nofollow">http://github.com/bestbuyremix/BBYIDX</a></p>
<p>Now when I type:</p>
<p>rails script/server</p>
<p>I got the output, but server doesn't start??</p>
<pre><code>create
create app/controllers
create ... | 1 | 1,119 |
codeigniter phpexcel error ZipArchive::getFromName(): Invalid or uninitialized Zip object | <p>i'm trying to import data to oracle from excel file (.xlsx) use codeigniter and phpexcel, this is my controller :</p>
<pre><code>private $filename;
public function form(){
$data = array();
if(isset($_POST['preview'])){
$upload = $this->RoadmapModel->upload_file($this->filename);
$u... | 1 | 1,810 |
How to avoid react-native FlatList re-render every time I select/de-select a row | <p>See <a href="https://snack.expo.io/@evanchan/selectable-flatlist" rel="nofollow noreferrer">Reproducible demo</a> or <a href="https://github.com/YikSanChan/flatlist-selectable-searchable/blob/echan/experiement-memo/App.js" rel="nofollow noreferrer">code</a>.</p>
<p>I try to build a simple selectable list upon react... | 1 | 3,341 |
kubernetes.client.rest.ApiException: (401) Reason: Unauthorized; What IAM to create/delete GKE pods | <p>I'm trying to read a list of active pods in my GKE cluster. I also want to be able to programmatically create and/or delete pods using a python client. What IAM access rights should I grant my service account to accomplish this? Since I've been trying almost anything to get it working this service account current... | 1 | 2,029 |
jqGrid : deleting last record dosen't refresh the grid + trouble with paging | <p>I 've two problems in jqGrid</p>
<p>1) Suppose there is 91 records in table with rownum set to 10, now when i navigate to last page and delete the record number 91, it does not reload the grid automatically, when i use ReloadGrid explicitly it went to reload the whole data from controller which increases the networ... | 1 | 1,850 |
Polymorphic exception handling: How to catch subclass exception? | <p>I have the following simple hierarchy of two C++ exceptions:</p>
<pre><code>class LIB_EXP ClusterException : public std::exception {
public:
ClusterException() { }
ClusterException(const std::string& what) { init(what); }
virtual const char* what() const throw() { return what_.c_str(); }
virtual... | 1 | 3,875 |
Unicorn + nginx - upstream prematurely closed connection while reading response header from upstream -504 Gateway Timeout | <p>I'm getting 504 Gateway Timeout error message in browser when I am trying to download the records in excel format. As I did the investigation about this, there was a timeout issue when the query execution is going long. Hence, I have changed the unicorn workers timeout value to 240 (even I tested with 1000+) and ngi... | 1 | 3,403 |
Class not found using javaConfig | <p>I am using annotations to dynamically create a Bean, I get the following errors.</p>
<pre><code>package demoproject;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ProductFactory {
public ProductFactory() {
/... | 1 | 1,148 |
How to predict input image using trained model in Keras, .h5 saved file? | <p>I'm only beginning with Keras and machine learning in general.</p>
<p>I trained a model to classify images from 9 classes and saved it using model.save(). Here is the code I used:</p>
<pre><code>from keras.layers import Input, Lambda, Dense, Flatten
from keras.models import Model
from keras.applications.resnet50 i... | 1 | 1,612 |
How to fix " :react-native-firebase:compileDebugJavaWithJavac FAILED" + cannot find import com.google.firebase.iid.FirebaseInstanceIdService; | <p>Recently I cloned a new project and tried to <code>react-native run-android</code>
Unfortunately for some reasons, I can't run my project and the terminal shows me this error: <code>> Task :react-native-firebase:compileDebugJavaWithJavac FAILED</code>, and above this Err I saw more info about this in detail => 'c... | 1 | 2,785 |
Service dies when activity dies | <p>Hope you can help me, because I am almost sure that it can be done... but I don't seem to be able to do it.</p>
<p>I'm doing a task that can take very long (varies from a few seconds to a couple of hours), so I though of a service to make the task and an activity to start/stop/monitor. Organically similar to a MP3 ... | 1 | 1,408 |
Multiple actions were found that match the request C# | <p>I am trying to point to my action, basically I have 1 controller that has different methods, I want to point to the different methods, everything worked well when I had 1 method called create, now I have 1 called <code>createDocument</code> (ignore best practice REST from now). So every time I need to point to the <... | 1 | 1,297 |
What is the safest way to initialize bash arrays with quoted values from function output? | <p>I prefer to program my bash scripts to be as procedural as possible. One difficulty I've encountered in trying to do so happens when passing array data between functions, a task that's not well supported in bash.</p>
<p>As an example, it's trivial to initial an array in bash with multiple hard-coded, quoted values... | 1 | 2,077 |
Gradle: Attach source and javadoc to local file in IntelliJIdea | <p>I am using gradle (v1.9) and IntelliJIdea (v12.1.6). I have a simple java project and a <code>build.gradle</code> file. One dependency is not on maven central, so I have placed the jars in the <code>lib</code> folder.</p>
<h1>Problem</h1>
<p>For the dependencies that are on maven central, gradle builds the library... | 1 | 1,325 |
How to Cancel a ProgressDialog without call Dismiss? | <p>The cancel's Toast and the dismiss's Toast appears when I press the Cancel Button. How can I solve this?. Thanks.</p>
<p>EDIT : I need a Toast when push the Cancel Button, and I need another different Toast when the ProgressDialog finish correctly (when I dismiss it). But now, I have the correct Toast when Progress... | 1 | 1,358 |
No soap.so PHP module file after installing SOAP | <p>I have an issue where, after installing SOAP for PHP 5.3, I have no
/usr/lib64/php/modules/soap.so file on my system and can therefor not use native SOAP.</p>
<p>What am I missing? I have --enable-soap=shared set as you can see below.</p>
<p>When I run the following command on my CentOS VM running PHP 5.3.10:</p>... | 1 | 1,317 |
jQuery ajax posting large data is slow in Chrome and Safari | <p>I have to make a bandwidth test with javascript and php, I use jQuery, and try all browsers, but:</p>
<ul>
<li>Firefox - UP: 7-8 Mbps</li>
<li>Explorer 9 - UP: 7-8 Mbps</li>
<li>Opera - UP: 7-8 Mbps</li>
<li>Safari - UP: sometimes 800-900 kbps</li>
<li>Chrome - UP: 100-200 kbps or no data</li>
</ul>
<p>Have you an... | 1 | 1,385 |
Angular 6 - passing data between components | <p>I am learning angular 6 and typescript and have some problems with passing data between multiple components. It looks like on "expense-box.component.ts" component "this.participants" in ngOnInit method is null/empty. So I am not getting any data. </p>
<p>First (parent) component - <strong>expense.component.ts</stro... | 1 | 1,195 |
How to save multiple row forms in laravel using ajax? | <p>Hey guys I'm a bit confused with this. How do I input multi row forms in Laravel 5.5 using ajax? The idea is to add items and when adding items the Item number increments, then
I want to save this table in my database:
<a href="https://i.stack.imgur.com/k94Kd.png" rel="nofollow noreferrer"><img src="https://i.stack.... | 1 | 5,263 |
Function checking if an integer type can fit a value of possibly different (integer) type | <p>Is it possible to create a templated function that checks if a primitive data type can fit a value of potentially different primitive data type? Let's limit the scope to integer types for the moment.</p>
<p>More precisely: Is it possible to create a "one fit all" templated functions yet without getting com... | 1 | 1,424 |
How to print field created by 'WooCommerce Custom Order Data' Plugin to email | <p>I installed WooCommerce Custom Order Data PlugIn to create a custom field after checkout is completed. In a custom plugin I use the woocomerce_thankyou-hook to collect some data from the order and save it as a string to $order->custom->officer_text.</p>
<p>I need to print that custom data to the admin-new-order-mai... | 1 | 1,173 |
Simple OpenTK Shader not working | <p>I'm currently trying to get into GLSL using the OpenGL superbible and <a href="http://www.learnopengl.com/" rel="nofollow noreferrer">http://www.learnopengl.com/</a>. My desired environment is OpenTK.</p>
<p>I tried to convert the "<a href="http://www.learnopengl.com/#!Getting-started/Hello-Triangle" rel="nofollow ... | 1 | 2,759 |
foundation tab not working | <p>I use Foundation 5.3 with Jade and express.</p>
<p>I created a tab component, pasted the code from Foundation Docs but it seems to be not working.</p>
<p>I included what css and js which I supposed is enough, however, only the active one in tabs can <em>display</em>, for others, when I click the title of tab, it d... | 1 | 1,665 |
Android databinding in an expandable listview | <p>I have a very specific Question. I am using the android databinding library:
<a href="https://developer.android.com/topic/libraries/data-binding/index.html" rel="noreferrer">https://developer.android.com/topic/libraries/data-binding/index.html</a></p>
<p>I have a datamodel like this:</p>
<pre><code>Class Participa... | 1 | 1,211 |
doctrine2 and Symfony2 upload file (mimeTypes for csv), get the right extension | <p>I am using the symfony upload method in order to import csv or exel files into my application.</p>
<p>My problem is that symfony/doctrine don't recognize my csv file if I don't write this mimeTypes <code>"text/plain"</code>.</p>
<p>Let me explain correctly. This is my entity code:</p>
<pre><code>namespace ...
us... | 1 | 1,743 |
npm install errors for package scrypt | <p>I need to install an npm package on my computer, which has a dependency on the package "scrypt". When installing, the build fails due to this dependency. Now, im looking to resolve this error, first (obvious) idea being to install the scrypt-package separately.</p>
<p>Some info for the environment: I am ru... | 1 | 8,242 |
How to increase axios speed? | <p>Because I'm new to using axios so I usually have a trouble in using it. Specifically, I'm making a <code>react-infinite-scroll</code> feature now, but when I compare its speed with other site, my post(<code>react-infinite-scroll</code> feature) is gonna be shown slowly a little. Then I'm thinking this problem is cau... | 1 | 1,373 |
Can't access $rootScope from another controller | <p>Why can't I access the <code>$rootScope</code>, particulary the currentUser object and the <code>signedIn()</code> function from the RegistrationController?</p>
<p>I'm trying to follow a tutorial example and I'm able to sucessfully set the <code>$rootScope.currentUser</code> variable in a service (Authentication), ... | 1 | 1,064 |
How to save a Enum data in a POJO file to MongoDB | <p>I am able to save a Simple POJO file content in MongoDB using Gson, but now I want to save the enum data inside POJO file to MongoDB. But I am not getting how to save the enum data.</p>
<p>This is my POJO file:</p>
<pre><code>import javax.annotation.Generated;
@Generated("org.jsonschema2pojo")
public class Covera... | 1 | 1,134 |
Changing the font in latex | <p>I am using latex to write a report. However, when I want to add a Gantt chart into it, I found that the font of all the content after this Gantt chart changed. So can anybody tell me how to get it back? Thanks!
This is the code of the chapter includes Gantt chart</p>
<pre><code>\section{Risk Analysis}
\section{Pro... | 1 | 1,461 |
'Undefined' when attempting to pass MaterialUI theme props to styled components | <p>I'm attempting to access my Material-UI theme props within a styled component, however I keep getting...</p>
<p><code>TypeError: Cannot read property 'primary' of undefined</code> or similar errors in the browser.</p>
<p>Here is my custom theme (<code>index.ts</code>)</p>
<pre><code>import { createMuiTheme } from &q... | 1 | 1,167 |
Is this the right way to detect a touch on a rectangle in LibGdx ? Does not seem to be working for me | <p>This is the code for my gamescreen where i want burst my ballon when its touched .
orientation is portrait.
but it does not seem to work for me.</p>
<pre><code> public class GameScreen implements Screen {
final BB game;
private BitmapFont font;
private static final int no_of_frames = 2;
Texture ball... | 1 | 1,801 |
maven compile does not recognize my local repo dependency | <p>I have a local jar file to import into my folder, and I have run the mvn install:</p>
<pre><code>mvn install:install-file -Dfile="C:\myapp\Development\core\target\api-core-1.0.0.jar" -DgroupId="com.myapp" -DartifactId="api-core" -Dversion="1.0.0" -Dpackaging=jar
</code></pre>
<p>And this is successuful:</p>
<pre>... | 1 | 3,388 |
How can I give my widgets' width a percentage rather than an explicit value? | <p>Based on how XAML works, I thought I could give my android widgets a percentage value for width. After searching, I found that *theoretically," this is available via the "layout_weight" property. But using this does not produce the desired appearance. Specifically, this xml:</p>
<pre><code><LinearLayout
andr... | 1 | 13,895 |
kotlin.UninitializedPropertyAccessException: lateinit property mRepository has not been initialized | <p>I have a method in my SearchViewModel and I want to test this method by Mockito and JUnit4.(searchCity())
but this error is shown after running the test:</p>
<p>kotlin.UninitializedPropertyAccessException:
lateinit property mRepository has not been initialized</p>
<p>SearchViewModel class :</p>
<pre><code>class ... | 1 | 1,949 |
405 Method Not Allowed on IIS localhost not working since yesterday | <p>I am really out of ideas and need some help. I am developing a web application with AngularJS as frontend language and a backend in C#.NET. All this is done in Visual Studio Express 2013 using a MS SQL database. </p>
<p>One of the functionalities is to upload (POST) a picture to the server. This worked well for the... | 1 | 1,199 |
OverlayPanel inside a Datatable | <p>I need to have an overlay panel in each row of my datatable for changing a record on the fly. As you can see below:</p>
<p><img src="https://i.stack.imgur.com/V0Ol9.png" alt="enter image description here"></p>
<p>I don't know why when I press the save button it calls two times the Setter of my attribute(str) where... | 1 | 1,024 |
JSF: CommandLink not working with dataTable and ajax | <p>I have a commandLink inside a dataTable. dataTable is populated by an ajax call. But my commandLink is not pointing to the correct location. Here is the code.</p>
<pre><code><h:form id="form1">
<h:outputLabel value="Search Movie: " /> <h:inputText value="#{movieBean.movie.name}" id="inputName">... | 1 | 1,025 |
Exception when running a simple android facebook integration program using Parse | <p>I have made a simple program for facebook integration of android using "Parse" i have used following code but showing exception my code and logcat is shown below:</p>
<p><strong>main.java</strong></p>
<p>package com.example.facbk;</p>
<pre><code>import com.facebook.android.AsyncFacebookRunner;
import com.facebook... | 1 | 2,719 |
Why componentWillMount is called after rendering? | <p>I am working with React and I am trying to understand the lifecycle. I am doing a <code>componentWillMount</code> method in order to get the <code>props</code> I need before the render occurs. I need to know how to update the state when the view loads.</p>
<p>All I am trying to do is a <code>GET</code> request in o... | 1 | 1,208 |
Laravel 4 RESTful API with Angular.js | <p>I have a <strong><em>RESTful API</em></strong> based application with <strong><em>Laravel 4</em></strong> and <strong><em>Angular.js</em></strong>.
The application's CRUD processes are handled by angularjs $http service.</p>
<h1>The Backend Side (Laravel 4):</h1>
<h2>Routing : app/routes.php</h2>
<pre><code>//...... | 1 | 1,373 |
upload image to server in android | <p>I want to post an image and text data to server. When I'm sending the data, it only sends the text data, but not the image.</p>
<pre><code>public class MainActivity extends Activity implements
android.view.View.OnClickListener {
private static final int SELECT_PICTURE = 0;
Bitmap bm;
ImageView img;
EditText ed... | 1 | 1,881 |
Kubernetes DNS no longer resolving names | <p>I have a cluster consisting of 6 servers, 3 masters and 3 workers.
Up to this morning everything worked fine, until I removed two workers from the cluster.</p>
<p>Now the internal DNS is not working anymore.
I cannot resolve an internal name.
Apparently google.com is resolved and I can ping it.</p>
<p>My cluster i... | 1 | 4,469 |
Clojure : Get "OutOfMemoryError Java heap space" when parsing big log file | <p>all.<br/>
I want to parse big log files using Clojure.<br/>
And the structure of each line record is "UserID,Lantitude,Lontitude,Timestamp".<br/>
My implemented steps are:<br/>
----> Read log file & Get top-n user list <br/>
----> Find each top-n user's records and store in separate log file (UserID.log) .</p>
... | 1 | 1,472 |
AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for' | <p>I am trying to read meta info from celery task in case of timeout (if task is not finished in given time). I have 3 celery workers. When I execute tasks on 3 workers serially my timeout logic (getting meta info from redis backend) works fine. But, when I execute tasks in parallel using threads, I get error 'Attribut... | 1 | 2,589 |
C# SharpPCap Read Packet Content | <p>i'm tryin' to read the content of the packets that i've captured with SharpPCap.
This is my little code</p>
<pre><code>private void button4_Click(object sender, EventArgs e)
{
// Retrieve the device list
var devices = LibPcapLiveDeviceList.Instance;
// Extract a device ... | 1 | 1,223 |
Issue passing value into Angular 2 component | <p>I am trying to pass a simple string into an angular 2 component. For the life of me I can't find the issue. I am passing the value in as a hardcoded value on the component from index.html</p>
<pre><code><html>
<head>
<title>Angular 2 QuickStart</title>
<meta charset="UTF-8">
... | 1 | 1,058 |
C++ Multithreading: is initialization of a local static lambda thread safe? | <p>The C++11 standard says about local static variable initialization that it is supposed to be thread safe (<a href="http://en.cppreference.com/w/cpp/language/storage_duration#Static_local_variables" rel="nofollow noreferrer">http://en.cppreference.com/w/cpp/language/storage_duration#Static_local_variables</a>). My qu... | 1 | 4,586 |
onclick function in IE11 not working | <p>I've this template for function call to show some detail.
It is working in IE9 but not in IE11. How to make it compatible for IE11?
The event is not getting called.</p>
<pre><code> <xsl:template name="DrillLink">
<xsl:param name="ObjectName" select="''"/>
<xsl:param name="Obje... | 1 | 1,447 |
Facebook like and Twitter tweet buttons causing Cross Domain Issues | <p>I am using both the twitter tweet button, and the facebook like button</p>
<pre><code><a href="http://twitter.com/share"
class="twitter-share-button"
data-url="http://example.com"
data-text="some text"
data-count="horizontal"
data-via="someone">Tweet
</a>
<script type="text/javascript... | 1 | 1,067 |
Dependency Registrar for other assembly | <p>I have a simple question about dependecy registration. </p>
<p>I'm developing a brand new web application that use Engine Context paradigm with Autofac container. For any library on the solution I have one class implementing <code>IDependencyRegistrar</code> that implement a common <code>Register</code> method, due... | 1 | 1,179 |
how to convert multipart/form-data to multipart/mixed | <p>The document insert REST api (POST /v1/documents) requires multipart/mixed for content-type. All the examples online show how to use multipart/form-data. Based on my research I learned that multipart/mixed needs to be embedded in multipart/form-data. Can someone please point me to a example or resource where I can g... | 1 | 1,734 |
Upgrading grails from 2.1.1 to 2.4.3 | <p>I am upgrading a grails app from 2.1.1 to 2.4.3 and solving errors along the upgrade is a never ending story.</p>
<p>Now I am stuck at this point.</p>
<p>Any ideas how to solve this?</p>
<p>Thanks!</p>
<p>C:\workspace\grails_apps\monitoring>grails run-app</p>
<pre><code>| Running Grails application
| Error 2014... | 1 | 4,060 |
How can I refresh DataTable after an ajax success? | <p>I have tried different ways to refresh my data table after an AJAX Success, but without luck. I tried draw() and .ajax.reload() function, but still no luck. Do you have any idea how to refresh it?</p>
<p>Here is my code</p>
<p>HTML</p>
<pre><code><table id="giacenza" class="table table-striped table-bordered"&... | 1 | 1,896 |
How to send my MySQL data with PHP code to morris-data.js? | <p>I got a problem how to make morris chart with data from MySQL database. I have made a php code with output like how JSON template can accepted to morris-data.js.</p>
<p>Here's my php code name cobaJson.php:</p>
<pre><code><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css"&... | 1 | 1,110 |
FCM Notification onclick does not open desired activity | <p>i have tried almost every solution posted here and combination of every flag but it is not working.</p>
<p>Following are use cases in which i am having problems.</p>
<p>1) When i am in application <strong>FCM</strong> notification opens my desired activity.
Data is passed to <code>onNewIntent</code> in main activi... | 1 | 1,895 |
Dismiss alertDialog Android removeView() on the child's parent first | <p>I want to close/dismiss the alert Dialog but when I click in button <em>valider</em> I had this error : I don't know which views give me the problem, even there's no method remove View in my views "<strong>layout</strong>" or "<strong>v</strong>" </p>
<pre><code>java.lang.IllegalStateException: The specified child ... | 1 | 1,252 |
MediaStreamRecorder and TypeScript Uncaught TypeError | <p>I am currently developing an audio recorder that uses the users PC microphone, which works fine. However, when I want to record the audio I get this type error:</p>
<blockquote>
<p>audioHandler.ts:45 Uncaught TypeError: MediaStreamRecorder is not a function</p>
</blockquote>
<p>This is the code:</p>
<pre><code>... | 1 | 1,028 |
Bootstrap collapse with just one element shown | <p>I'm trying to use the collapse components of Bootstrap.</p>
<p>It works well but I noticed that sometimes it doesn't close all the other elements; when I click in order from the first to the third and then back to the first again, the third one remains open.</p>
<p>My markup is the same as the example code that Bo... | 1 | 1,159 |
Azure Pipeline error: template file not found in repository | <p>I am trying to use 2 repositories on the same pipeline. One repository contains source code and the other has templates.</p>
<p>The azure-pipeline.yml of repository source code looks like this:</p>
<pre><code>
pool: alm-aws-pool
resources:
repositories:
- repository: AzurePipelines
name: ALM/AzurePipeli... | 1 | 1,861 |
Submit a Spark application via AWS [EMR] | <p>Hello I'm very new to cloud computing so I apologize for (maybe) the stupid question. I need help to know if what i do is actually computing on the cluster or just on the master (useless thing). </p>
<p><strong>WHAT I CAN DO:</strong>
Well I can set up a cluster of a certain number of nodes with Spark installed on... | 1 | 2,220 |
Date ValidationError in Django | <p>I want to block users whose premium plan has expired after 30 days(though I might change the days later). And redirect them to the payment page. I'm doing this by checking the db if the expiry date has reached so it can block them from viewing exclusive content. I wrote the below codes to carry out the operation but... | 1 | 1,127 |
How to convert a nested javascript object to only first level properties object? | <p>I have the below object <code>inputObj</code> and I want to convert it to a simple object like <code>outputObj</code>.</p>
<pre><code>var inputObj = {
'a' : 1,
'b' : true,
'c' : 'string1',
'd' : {
'e' : 'string2',
'f' : false,
'g' : 5,
'h' : {
'i' : 7,
... | 1 | 2,779 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.