title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Apache POI SXSSFSheet.getRow() returns null false positive | <p>i'm new creating questions, so here is i go =D</p>
<p>I have all my data stored in a SXSSFWorkbook and i'm trying to add some formula information before write and save the file, everything works ok but when i open the file there is some blank cells where the formula should be, i found that 176 rows return NULL, tha... | 1 | 2,237 |
ListView onClickListener() does not work after adding RadioButton | <p>I have a <code>ListView</code> (<strong>my_list.xml</strong>):</p>
<pre><code> <ListView
android:id="@+id/my_list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:choiceMode="singleChoice"
/>
</code></pre>
<p>The layout for each list item... | 1 | 1,043 |
Removing Signatures / attachments from outlook emails going to Mac users or SpiceWorks | <p>So here's an interesting problem I stumbled upon on. I’m running into issues by sending emails out to SpiceWorks and Mac users.</p>
<p>When a user has a problem they will email Help Desk. We setup a personal Outlook email to handle Help Desk tickets. Once the ticket hits the outlook mailbox it will automatically b... | 1 | 1,203 |
How to create index in mongodb with pymongo | <p>I use scrapy crawl data and save it to mongodb, i want to save <code>2dsphere</code> index in mongodb.</p>
<p>Here is my pipelines.py file with scrapy</p>
<pre><code>from pymongo import MongoClient
from scrapy.conf import settings
class MongoDBPipeline(object):
global theaters
theaters = []
def __in... | 1 | 1,072 |
Oracle SQL sub query vs inner join | <p>At first, I seen the select statement on <a href="https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_10002.htm" rel="nofollow noreferrer">Oracle Docs</a>.</p>
<p><a href="https://i.stack.imgur.com/tqAPt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tqAPt.png" alt="enter image des... | 1 | 1,322 |
Updating Expandable ListView after sorting the items | <p><strong>Overview:</strong></p>
<ul>
<li>I have an Expandable List View which displays items of the type <code>ToDoElement</code>.</li>
<li>Each <code>ToDoElement</code> item has one String for the Group-Element and 1-3 Strings for the Child-Elements</li>
<li>My custom List Adapter <code>expListAdapter</code> gets t... | 1 | 1,178 |
How do you perform one hot encoding with PySpark | <p>I am having problems converting multiple columns from categorical to numerical values. I am using PySpark but I am sure the problem is not the version of spark I am using. When working with one column, there is no problem but I ran into problems when converting multiple columns. Here is the code, and there are no mi... | 1 | 4,864 |
Slow response between WCF Services on same server | <p>I'm experiencing a very strange problem in my <code>UAT</code> environment. I have two <code>WCF</code> services that communicate with each other. On a high level, my web application communicates to a Business Layer, and from there it passes wcf requests to the transaction layer which processes all requests and retu... | 1 | 2,145 |
fastlane gym - specify derived_data_path but still creates DerivedData in XCode default location as well | <p>Am using a fastlane setup on a CI server where I call 'gym' then 'scan'. Both commands are passed the derived_data_path: param to a custom path. What actually happens though is, as soon as gym starts, the standard ~/Library/Developer/XCode/DerivedData path is written to as well as the custom path I have passed to gy... | 1 | 3,459 |
Which open source, extensible, potentially easy to use issue-tracker? redmine, trac, bugzilla, mantis, RT? | <p>Looking for an issue tracker for a medium-sized web application open project with a distributed team. We are planning to run this on our own server. It must be very easy for new users to submit new issues, and it must integrate well with other software.</p>
<p>Our major requirements, in descending order of importan... | 1 | 1,051 |
Xcode: Pass NSString from one class to another problem | <p>OK this should be an easy one but still im breaking my head here:</p>
<p>In my root view controller I have a <code>NSString</code> called "entry" and is working perfectly. I <code>NSLogged</code> it and it works.
I have another class called ´ParseOperation´ and in it i have a <code>NSString</code>called "localEntry... | 1 | 1,339 |
backbone.js collection adds empty element when created? | <p>I am assuming this is either a bug in my code or an undocumented (as far as I could find) feature of backbone.js. When I created my collection and my view there is already a model in that collection that I did not create, or I assume I did not create due to the undefined id. Below is my code.</p>
<pre><code>// ----... | 1 | 2,818 |
How to write code data into a text file | <p>I just did a simple code which takes user name and phone number and save those into an arraylist by creating object. I want to save those information (name and phonenumber) into a text file so that all old information I can get again. How do I do it? Here is my code ... </p>
<pre><code>import java.util.ArrayList;
i... | 1 | 1,258 |
Getting the MVC textbox value using Jquery | <p>Good day</p>
<p>I am trying to retrieve the value of a textbox field in MVC using Razor and assign it to a variable to later be passed via ajax to an action controller.
I have tried using .val() but when debugging using Google developer tools I keep getting .val() is not a function. I am not that experienced with j... | 1 | 2,213 |
getDiskStats failed with result NOT_SUPPORTED and size 0 | <p>please help me with this problem
my app crash when I try to run this code
I have attached a screenshot of my logcat
I have implemented source code from this link for the country code spinner
<a href="https://github.com/joielechong/CountryCodePicker" rel="nofollow noreferrer">https://github.com/joielechong/CountryCod... | 1 | 2,050 |
*** stack smashing detected ***: a.out terminated | <p>So I'm working on a program in my Programming I class and we were assigned to create a program that will check to see if a routing number from a bank is valid. Every time I run this program on NetBeans, I have no issue. <strong>BUT</strong>, when I run it through our Ubuntu student server, I get this crazy error. I'... | 1 | 2,928 |
How can I redirect to a page after session cookie expires? | <p>I'm using express and passport module for authentication. I tried in different ways to do redirection after session cookie expires without results.
Currently I'm trying with a schedule function after login action. I have the following code:</p>
<pre><code> var express = require('express')
, passport = require... | 1 | 1,098 |
Two way relationship with JsonBackReference & JsonManagedReference | <p><strong>ANSWER</strong></p>
<p>I'll solve my problem regarding to this blog <a href="http://www.baeldung.com/jackson-bidirectional-relationships-and-infinite-recursion" rel="nofollow noreferrer">Jackson – Bidirectional Relationships</a></p>
<p>Thanks you.</p>
<p><strong>UPDATE 2</strong></p>
<p>The problem is ab... | 1 | 1,264 |
Identification of private key in Pkcs11Interop.PDF library | <p>I am trying to setup up an example application with the <a href="http://www.pkcs11interop.net/extensions/pdf/" rel="nofollow">Pkcs11Interop.PDF</a> extension. I am unfortunately getting a <code>System.ArgumentNullException</code> setting the ckaId. What would work here? I tried different numbers here which all gave ... | 1 | 1,487 |
webpack-dev-server Error: EPERM: operation not permitted, stat 'D:\System Volume Information' | <h2>After I reinstalled my Windows and cloning project from GitHub, I am getting npm Error: EPERM: operation not permitted D:\System Volume Information</h2>
<p>In terminal I run:</p>
<pre class="lang-html prettyprint-override"><code>webpack-dev-server --open --config webpack.dev.js
</code></pre>
<p>And it compi... | 1 | 2,020 |
HttpClientHandler / The request was aborted: Could not create SSL/TLS secure channel | <p>The server team says that everything is fine with this HTTPS website, however the below code when using HTTPClient gives back "<strong>The request was aborted: Could not create SSL/TLS secure channel.</strong>" error and at the same time works perfectly fine by returning back the intended data.</p>
<pre><code>publi... | 1 | 1,320 |
jQuery DataTable refreshing data - MVC View building table first, then trying to display data retrieved via ajax | <p>I'm working on MVC5 and I initially load my datatable by iterating through my model data, manually building the table elements On document ready I initialize my table into a .datatable(). This part works just fine. Now, I allow my user to change what data they want to display (via a dropdown selection, change even... | 1 | 1,723 |
Quanteda: Fastest way to replace tokens with lemma from dictionary? | <p>Is there a much faster alternative to R quanteda::tokens_lookup()?</p>
<p>I use tokens() in the 'quanteda' R package to tokenize a data frame with 2000 documents. Each document is 50 - 600 words. This takes a couple of seconds on my PC (Microsoft R Open 3.4.1, Intel MKL (using 2 cores)).</p>
<p>I have a dictionary... | 1 | 1,109 |
Wrapper for a Command Line Tool in C# | <p>Using <a href="http://support.microsoft.com/kb/305994" rel="noreferrer">MSDN</a> I got the class to write a wrapper for my command line tool. </p>
<p>I now am facing a problem, if I execute the exe through the command line with arguments, it works perfect without any errors.</p>
<p>But when I try to pass the argum... | 1 | 1,488 |
Selectbox Laravel select onChange | <p>I would like to filter some results depending on my selectbox <code>poule_id</code> in Laravel. For example, if I select <code>poule_id = 1</code>, it should display (on click) all teams that are in the <code>poule_id = 1</code>.</p>
<p>Anyone knows a good practice or a quick tutorial to achieve that? I would like ... | 1 | 1,584 |
JSON data loaded from http.get() is undefined in my Angular 2 template | <p>I'm trying to read a local json file and parse it into a class that i made which have the same properties. When i try to read from the class, it gives me errors saying the class is null or undefined.</p>
<p>I have a file <code>hall.ts</code> which looks like this:</p>
<pre><code>import {Item} from '../item/item';
... | 1 | 1,323 |
SAPUI5/OPENUI5 - Routing with Dialogs | <p>I´m currently stuck with the combination of routing and dialogs.
I have a view with list elements and when I click on an element in the list I want the Detail view to be shown in a Dialog (Popup).
The thing is, I also want the ID of the list element in my url and when I reload the page while the dialog is still open... | 1 | 1,160 |
Node-soap: How to create a complex message with specific attributes? | <p>This is the message I need to send to <code>wsdl</code>:</p>
<pre><code><?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://WSDLPROVIDER" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSch... | 1 | 2,180 |
Div matrix structure using css | <p>I am this html for my products display page in e-commerce site, but some issues with alignment.... In this page will come near by 100 product so i need to show it like matrix </p>
<pre><code><div style=" margin: 0 auto; width:640px; text-align: left">
<div class="leftcol" >left column 1
... | 1 | 1,143 |
TypeORM error with MongoDB: .find() does not work, error: TypeError: Cannot read property 'prototype' of undefined | <p>I set up a Nest.Js / TypeORM / MongoDB stack as described <a href="https://medium.com/@chnirt/how-do-i-practice-with-nestjs-nestjs-typeorm-mongodb-9e407818a296" rel="nofollow noreferrer">here</a>.</p>
<p>It works to create an object user in MongoDB using the <code>create()</code> function, the object is recorded int... | 1 | 1,536 |
How do I ensure that only one copy of a daemon is running? | <p>My code to daemonize a process is: </p>
<pre><code>static int daemonize( const char *lockfile )
{
pid_t pid, sid, parent;
int lfp = -1;
char buf[16];
/* already a daemon */
if ( getppid() == 1 ) return 1;
/* Each copy of the daemon will try to
* create a file and write its process... | 1 | 1,736 |
Apache Tomcat and Apache TomEE server is not running web projects in eclipse | <p>At first I'm apologizing for asking same question twice. First time I didn't get any answer. Then I tried myself to solve the problem,but failed. This is why I'm asking the question again and this time I'm putting it briefly.<br>
I was learning Spring MVC framework by myself. I was using jdk 8.20 version, tomcat 8.0... | 1 | 9,943 |
FOSUserBundle/Symfony2: Validation Constraints not being checked against at all for the User entity | <p>I have validation constraints defined in my validation.yml for my User
entity, but none of them are actually being called; it was working at
one point but now none of the three constraints are being checked for.
I get SQL unique constraint errors, so it's definitely not being
handled in the code properly.</p>
<p>He... | 1 | 1,687 |
MS Bot, Direct line API, cannot send an activity, how to fix it? | <p>I been trying to set up MS Bot within an app. So far, I did following.</p>
<ol>
<li><p>set a REST endpoint for Bot, that connector listens to it. </p>
<pre><code> app.post("/botapi/messages", connector);
</code></pre></li>
<li><p>get APP_ID and APP_PASSWORD, emulator successfully connected to with following,</p>
... | 1 | 1,104 |
Unable to run unittest's main function in ipython/jupyter notebook | <p>I am giving an example which throws an error in ipython/jupyter notebook, but runs fine as an individual script.</p>
<pre><code>import unittest
class Samples(unittest.TestCase):
def testToPow(self):
pow3 = 3**3
assert pow3==27
if __name__ == '__main__':
unittest.main()
</code></pre>
<p>T... | 1 | 1,248 |
Android WebView flicker bug while animating view on device | <p>I am attempting to implement slide-in navigation (a la Facebook, Path, or Google+ Android apps). The complete source to reproduce this bug <a href="https://bitbucket.org/robertkarl/slide-navigation-web-view" rel="noreferrer">can be found here</a>.</p>
<p>When animating a <code>WebView</code> off the screen however... | 1 | 1,689 |
Get Position data from Item in RecyclerView | <p>I recently migrated from ListView to RecyclerView...
Everything seems fine except for that I don't know how to get the Data from an RecyclerView Item...
In ListView Item OnClick, I previously used <code>getItemAtPosition</code> but it isn't there in RecyclerView...</p>
<p>here is the relevant part of the Code... - ... | 1 | 1,256 |
Spring xml + JUnit - xml context file not working in src/test/resources but works in src/main/resources | <p>I'm having a problem with junit test like this. For some reason spring context files only work if I put them in the src/main/resources folder of the maven project. Intellij doesn't give me any warning but both junit test runner from mvn and from ide bomb.</p>
<p>Code and output in both cases included below:</p>
<p... | 1 | 1,085 |
Why does Clang++ not compile code with <header> on Windows? | <p>Why does clang++ compile this:</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}
</code></pre>
<p>and do not want compile this:</p>
<pre><code>#include <iostream>
int main()
{
std::cout << "... | 1 | 1,472 |
AngularJS fromJson returning string? | <p>I am experimenting with AngularJS's UI-Router for nested views, which seems to be working. However, in <strong>line 97</strong>, you will find a resolve, which delays the initialization of the nested view until the data is received and processed.</p>
<p>You will notice that I am capturing the json feed into localSt... | 1 | 6,255 |
How index.html in Angular-CLI .NET Core is called? | <p>I have built an Angular-CLI .Net Core SPA with Visual Studio 2017 by using</p>
<pre><code>dotnet new angular -o my-new-app
</code></pre>
<p>What I am struggling to find is how <code>index.html</code> which lies inside <code>ClientApp/src</code> folder is called by default when write e.g. </p>
<pre><code>http://l... | 1 | 1,182 |
FileZilla Errors error 550, error 501 | <p>Hi everyone i installed filezilla ftp server to my pc. I am tryin to upload a file on android application. However, I am getting error 550 which is directory not found and error 501 which is syntax error. I made some search on the internet but I did not find the solution. Could you please help me? And also here is t... | 1 | 1,051 |
Why is my override protected function createChildren being ignored? | <p>Here is the error:<pre>
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at view::ScoreBoard/setChipCount()[C:\Flex Builder 3\StackOverflowQuestion\src\view\ScoreBoard.as:32]
at model::MainDeckScoreBoard()[C:\Flex Builder 3\StackOverflowQuestion\src\model\Mai... | 1 | 1,960 |
Odd Internet Explorer 7 bug; not calculating padding on links correctly | <p>It would appear that I am suffering from a new bug in IE7, as I can't seem to find any reference to it anywhere else. It is best explained using screenshots, so here are a couple of links (and as a note, it's not a requirement for it to work in IE6, so I don't even want to know what it looks like under that!):</p>
... | 1 | 1,276 |
Shiny: problems with renderUI reactivity | <p>I have a seemingly small but tricky problem with a reactive function in a Shiny App. </p>
<p>The app is designed to show a lineChart when a firm is selected, and show a bar chart of all firms when "All" is selected. For example when selecting: </p>
<p>Filter by Category 1= 3 and Filter by Category 1: 2 in the ui, ... | 1 | 2,453 |
Flash a error/success message on flask after .validate_on_submit | <p>Newbie to Flask and a very short time to learn to do something decent(College).
I have a survey that I would like to use FLASH to flash the success and error messages(category), though I haven't been able to do so, I gave it a good research and I did get how it works, my code seems fine comparing to the examples I h... | 1 | 1,567 |
Rendering multiple polylines on MapView | <p>I have two sets of coordinates and trying to draw polylines on map view. I'm able to draw a polyline with one set of coordinates but I couldn't able to draw two polylines.</p>
<p>Below is the code...</p>
<pre><code>func drawRouteOnMap()
{
var centerCoordinate : CLLocationCoordinate2D = CLLocationCoordinate2DMa... | 1 | 2,663 |
The simplest Solr DIH indexing | <p>I'm trying to index data from a database in Solr using the DIH.</p>
<p>So I have modified the two config files as follows:</p>
<p><strong>solrconfig.xml</strong> :</p>
<pre><code><requestHandler name="/dataimport"
class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">... | 1 | 2,019 |
How to add selected indexes of tableview sections to an array | <p>I have a <code>tableView</code> with <code>section headers</code> and I want to append a certain user input to multiple selected <code>headers</code>. I have created the <code>section headers</code> and am able to change the image on the <code>section header</code> to show that it is selected but I want to create an... | 1 | 1,260 |
NIFI: out of memory error inspite of increasing the heap size | <p>I got myself into a problem where the NIFI service just refuse to start up. I monitored the nifi-app.log and found it was OutOfMemory error. I increased the memory in bootstap.conf file. But the error is still persisting.</p>
<p>Attached is the nifi-app.log</p>
<pre><code> 2017-12-19 17:08:37,133 ERROR [ActiveM... | 1 | 1,561 |
Encoding Ordinal Values in Python | <p>I'm trying to encode Ordinal Categorical Values in the 3rd column of my dataset where "Tiny Mongra" has the lowest value and "1st Wand" has the highest values. It is synonymous to using small, medium and large sizes where the current dataset denotes the size of a grain of rice.</p>
<p>I keep getting the following ... | 1 | 1,249 |
Error: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser | <p>I am getting this error.I am new to android studio and i need to create this plugin for unity to install an apk at runtime</p>
<p>Error - Attempt to invoke virtual method 'android.content.Context Android.content.Context.getApplicationContext()' on a null object reference</p>
<p>Plugin Class - </p>
<pre><code>p... | 1 | 1,953 |
AdMob app keeps crashing | <p>My Code:
Java:</p>
<pre><code>import android.os.Bundle;
import android.app.Activity;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.Menu;
import android.widget.LinearLayout;
import com.google.ads.AdRequest;
import com.google.ads.AdSize;
import com.google.ads.AdView;
public clas... | 1 | 4,480 |
Foreach loop into table from array data php | <p>I have an array like so: var_export():</p>
<blockquote>
<p>array ( 2009 => array ( 'Jan' => array ( 'AMT' => '79', 'QTY' =>
'886', ), 'Apr' => array ( 'AMT' => '0', 'QTY' => '1', ), 'May' =>
array ( 'AMT' => '19', 'QTY' => '216', ), 'Jun' => array ( 'AMT' =>
'5', 'QTY' => '60', ), 'Sep' => array ( 'AMT' => ... | 1 | 1,171 |
Deserialize flat array in XML by Jackson to List of Pojo | <p>can you help me to parse following XML file?</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<dataset xmlns="http:/foo.com">
<date>2017-10-25T09:13:54+02:00</date>
<element>
<id>1</id>
<name>Stuart</name>
<age>34</age>
... | 1 | 2,742 |
OpenCV4Android 3.1.0 JavaCameraView FullScreen and Portrait | <p>I am very new to OpenCV, trying it for the first time. I ran the Tutorial3<a href="https://github.com/Itseez/opencv/tree/2.4/samples/android/tutorial-3-cameracontrol" rel="nofollow">CameraControl</a>, camera preview was fine portrait and full screen, when I integrate the same code in my project, I somehow get the ca... | 1 | 2,952 |
retrieve all rows in Google Spreadsheet via API using Laravel | <p>I'm trying to get the data from Google spread sheet by using this library: <a href="https://github.com/kawax/laravel-google-sheets/" rel="nofollow noreferrer">This tutorial</a>, and I follow this tutorial to configure the setup of API and no any error, but once I tried to implement any of the examples they provide i... | 1 | 1,824 |
pip install faling with error gevent failed with error code 1 in /private/tmp/pip-build-muEt66/gevent/ | <p>I have a virtualenv. Inside the virtualenv i want to install some dependencies from a file. My command being </p>
<pre><code>pip intsall -r requirements.txt
</code></pre>
<p>I am attaching the terminal error output here. First it downloads all the packages in the requirement but it fails later with the attached me... | 1 | 3,683 |
How do I parse the output of msdeploy and fail a TeamCity build if there are errors? | <p>I'm using msdeploy.exe run from TeamCity for deploying ASP.Net projects to staging servers but if suffers severely from always returning a 0 status on exit, even when it raises several errors. This means that a bad deploy does not fail and all looks OK.</p>
<p>So I need to parse the output and have that raise an er... | 1 | 1,048 |
Why is my Bootstrap-Editable with Bootstrap-tables not working? | <p>I am creating a table which needs editable fields..</p>
<p>This jquery element is appended to the page:</p>
<pre><code>var container = $('#up-modal .modal-body');
var table = $('<table></table>');
table.attr('id','up-table');
table.attr('style','width:auto;');
table.attr('data-toggle', 'table');
table.... | 1 | 1,144 |
Update custom device tree on yocto | <p>I am using the sama5d27-wlsom1-ek board for my demo and I am trying to make changes to the device tree.</p>
<p>So far I have compiled core-image-minimal and find my dtb files are generated in</p>
<pre><code>/tmp/work/sama5d27_wlsom1_ek_sd-poky-linux-gnueabi/linux-at91/5.4+gitAUTOINC+3dba8c9991-r0/build/arch/arm/boot... | 1 | 10,417 |
mvn install from parent POM does not create target folder on grandchild module | <p>The maven project has the following structure Parent POM -> Child POM -> GrandChild POM added below. </p>
<p>When I run <code>mvn clean install</code> from GrandChild POM target folder is generated on the same path as GrandChild POM(parent/child/target) and all jar files from Module1, Module2 and Module3 are popula... | 1 | 1,362 |
NoClassDefFoundError: com/google/api/client/auth/oauth2/Credential | <p>Adding the <a href="https://stackoverflow.com/q/44895427/262852">suggested</a> line(s):</p>
<pre><code>CountDownLatch latch = new CountDownLatch(1);
..
latch.countDown();
latch.await();
</code></pre>
<p>surrounding the database query exposes the following exception after <code>ant jar</code> from Netbeans:</p>
<p... | 1 | 3,644 |
Input validation and exceptions with C# | <p>I am trying to validate input and handle exceptions in this program. Validating the following: strings in txtNAME should not be left blank, telephone number in txtTELEPHONE should be at least 10 digits, and txtEMAIL should be in email format with "@" and "." How do I validate these inputs and also handle exceptions ... | 1 | 1,738 |
Why is `make_unique<T[N]>` disallowed? | <p><sup>Assume namespace <code>std</code> throughout.</sup></p>
<p>The C++14 committee draft N3690 defines <code>std::make_unique</code> thus:</p>
<blockquote>
<p><code>[n3690: 20.9.1.4]:</code> <strong><code>unique_ptr</code> creation</strong> <em>[unique.ptr.create]</em></p>
<p><code>templa... | 1 | 1,321 |
React - click handler on child component with map not working | <p>I have 3 react components - a container (SearchBarContainer) and 2x presentational components (PostList & PostItem (child of PostList))</p>
<p>I am trying to attach a click handler to the post item which will bubble up to the SearchBarContainer, here is my code:</p>
<pre><code>class SearchBarContainer extends ... | 1 | 1,132 |
Wix error code 2343 | <p>I am packaging a MSI using WIX. The binaries need to be installed on a UNC drive (\share\xxxz\east). The installation works fine, the binaries are installed on the UNC, but I get the following error during uninstallation.</p>
<p><strong>"The installer has encountered an unexpected error installing the package. This... | 1 | 5,030 |
InnoDB missing from MySQL | <p>I have no idea of what I have done here, but my InnoDB engine seems to have gone from my MySQL server. I recently upgraded it from the dotdeb repository, then installed <code>mysql-server</code>.</p>
<p>There is no mention of InnoDB in my <code>my.cnf</code> except some comments which explain InnoDB is enabled by ... | 1 | 1,034 |
Run "apereo/cas" docker image prints "Failed to start connector" error | <p>My goal is to run CAS to replace ADFS. I thought starting with the docker image is a good place to begin.</p>
<p>I've tried running two different versions of <code>apereo/cas</code> and both have the same error.</p>
<p>Here's what I tried.</p>
<h2>command</h2>
<pre><code>docker run -p 8080:8080 -p 8443:8443 aper... | 1 | 4,811 |
useState(new Map()) is not working, but object does | <p>I honestly have no idea what is going on here. I have this code, on first render it should fetch popular repos and set them to the repos state, which should cause a re-render and paint the new repos on the DOM. The reason I use Map/obj is because I'm caching the repos to avoid re-fetch.
The code doesn't work as exp... | 1 | 1,469 |
Handling controlled form component changes in React | <p><strong>TLDR:</strong> Common design requirement seems impossible in React without violating React principles or ignoring standard encapsulation opportunities.</p>
<p>I have a form that displays existing data from a server API, and allows the user to edit the fields and update the data on the server. This happens d... | 1 | 1,913 |
Issue while accessing post method in CXF rest service | <p>i am trying to create a simple Restful web service and client using CXF 3.1.2 as below,</p>
<p>Service:</p>
<pre><code>package com.rs.sample;
import javax.jws.WebService;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws... | 1 | 2,063 |
HTML/CSS: What is preventing the body from covering the whole page? | <p>This is a homework assignment. My initial goal is to get a side bar on the right. I have the body, then a container div called "wrap" to hold the entire contents of the body. If I create another div for the side bar at the end of this "wrap" container div, the sidebar should be placed on the outside and I should be ... | 1 | 2,820 |
Imported scss class names converted to hashes | <p>I have a webpack configuration (based on React Universally). One thing I'm seeing is that class names on imported scss files are converted to hashes. </p>
<p>I tried as an alternative to import styles as an object and reference the style classes by name, but they simply disappear. Didn't see this behavior on other ... | 1 | 10,678 |
Elastic Search Cluster | <p>I am trying my hands on Elastic search and am having a hard time trying to create a cluster on a single machine with 3 elastic search instances. I have made the following changes on the instanses:</p>
<ol>
<li>changed cluster name {cluster.name: es-stack} on all the instances</li>
<li>changed node name {node.name: ... | 1 | 2,195 |
Identify the failed test cases | <p>I have participated in coding contest, where I have attempt the given problem, so I am supposed to come up with solution which should not only passing all the test cases, also well optimized in terms of time and space complexity, I have passed 3 out of 7 but I am still not able to identify the rest of the test cases... | 1 | 2,092 |
Bootstrap accordion not working | <p>I've been trying to make a collapse accordion to work, but when i click the links nothing happens, the other items are not expanding and the first is not collapsing. The body is split in 3 columns (1-10-1) and the accordion is placed in the middle. I'm using bootstrap 3.3.7 and jquery 3.2.1. Is this happening due to... | 1 | 2,069 |
brick breaker game ball bouncing | <p>I am trying to develop my very first android game and it is game named "brick breaker".
I believe everyone knows it. </p>
<p>Everything was fine until i came to the ball bouncing part. </p>
<p>To handle collisions I use this found code : </p>
<pre><code> scene.registerUpdateHandler(new IUpdateHandler() {
... | 1 | 1,541 |
Magento - extending the Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection class | <p>OK, so this is leading on from another question I asked here recently. Basically, I want to extend the <strong>Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection</strong> class, so I can add some extra filters for the product collections that can be re-used throughout my store (such as best-selling). This is ... | 1 | 1,210 |
Searchview in actionbar in fragment | <p>I am creating an android application. In the application I have a login page. After login a userlist is displayed. The userlist activity is <code>HomeActivity.java</code> that contains two fragments named as <code>UserListFragment.java</code> and <code>ChatFragment.java</code> The userlist is getting displayed from ... | 1 | 2,279 |
Difficulty Merging Two Videos Using AVMutableComposition | <p>I am working on a project wherein I am trying to merge two AVAssets (video files) together using an <code>AVMutableComposition</code>. My video files, when saved to my Camera Roll, are both exactly as expected. Their URL is valid, but yet my final exported product only shows the first video, and not the second mer... | 1 | 1,360 |
Insert new data in Custom Adapter and update list | <p>I have an list with an custom adapter, and upon refresh I want to add new data to be displayed(if any available).</p>
<p>But the list isn't being update. I tried all the methods with notifyDataSetChanged for the adapter but it's not updated.</p>
<p>Please help. I lost so much time with this and I feel like I'm loo... | 1 | 6,928 |
How to remove declaration and add root element in existing XML file (C#) | <p>I'm fairly new to XML and C#, so please understand if this question is too sily to ask.</p>
<p>I'm converting XML format using C# win-form application. The app opens a xml file using <code>OpenFileDialog</code>, then conversion will be excuted(this is already done, but I still need to add or remove some more like b... | 1 | 1,486 |
Angular 9 - Angular Material mat-paginator is not working | <p>I am using angular material for paginator. But it is not working. I googled and tried many things but it is not working. This is my component.html</p>
<pre><code><kt-portlet>
<kt-portlet-header [class]="'card-head-lg'" >
<ng-container ktPortletTitle>
<span>Su... | 1 | 7,452 |
how to create folder in phone memory and save images. | <p>how to create new folder "MyFolder" in phone memory and save all captured images on that folder?
Please help me. The following code save all images to Phone's default Image gallery. I want to create new folder and save all captured images on that folder. what should I do?</p>
<pre><code> public class PhotoCaptur... | 1 | 1,060 |
C getline() returns -1 before EOF | <p>I'm using the getline() function in a c program to read lines from a file, place read info into a struct, creates a thread with that struct as an argument, and repeat.
However, it getline() returns -1 before the EOF, after the second set of arguments under "id: test2" in the file provided.<br>
Since <code>print errn... | 1 | 4,130 |
Sending object with Kafka / Spring Boot | <p>I just want to send my BackAccount object with producer, and I want to consume that object. I have Producer and Consumer Config, but it gives me error.</p>
<p>My KafkaProducerConfig:</p>
<pre><code>@Configuration
public class KafkaProducerConfig {
@Bean
public Map<String, Object> producerConfigs() ... | 1 | 1,382 |
Magento isSalable returning nothing | <p>I ran into a problem somehow where a product that is in stock and has a quantity of over 400000 is saying it is not salable. Or rather isSalable is not returning a value.</p>
<p>I pulled up the function to take a look and I noticed something odd.</p>
<p>Here is the function:</p>
<pre><code>public function isSalab... | 1 | 1,214 |
CascadingDropDown Missing parameter: knownCategoryValues | <p>I am having some trouble getting CascadingDropDown lists to work, its displaying the Method 500 error inside the list. I have tried all the common solutions to this and still no luck.</p>
<p>I was originally getting the following error:</p>
<blockquote>
<p>System.ArgumentException: Invalid
method name 'get... | 1 | 2,069 |
upgraded my unity from 2018.4.0 to 2019.3.7, I cannot build an apk now | <p><a href="https://i.stack.imgur.com/SmP4F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SmP4F.png" alt="Android Modules"></a>I cannot build an apk, probably libraries are not resolved. Following are the errors:
CommandInvokationFailure: Gradle build failed.
/Applications/Unity/Hub/Editor/2019.3.7... | 1 | 4,237 |
How to implement 4-point perspective transform using HTML5 canvas & three.js? | <p>First, a visual example of what I am trying to achieve:</p>
<p><a href="https://i.stack.imgur.com/5Uo1h.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5Uo1h.png" alt="example"></a></p>
<p>(Photo credit: <a href="https://unsplash.com/photos/pGcqw1ARGyg" rel="noreferrer">https://unsplash.com/photos/pGcqw1... | 1 | 1,465 |
Python Chord Diagram (Plotly) - Interactive Tooltips | <p>I followed the guide here:</p>
<p><a href="https://plot.ly/python/filled-chord-diagram/" rel="noreferrer">https://plot.ly/python/filled-chord-diagram/</a></p>
<p>And I produced this:</p>
<p><a href="https://i.stack.imgur.com/wVzNc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wVzNc.png" alt="enter ima... | 1 | 3,280 |
MySql Database keyword searching with like operator | <p>I wanted to search some keywords from particular column and print all the column values corresponding to the keyword, Now the problem is if I use query </p>
<p>Select * from Candidate where skills like %C% , and different rows in skills are:</p>
<p>Java, C, C++, HTML, CSS, Net Beans, My Eclipse</p>
<p>Java, Asp.N... | 1 | 1,328 |
Integrating stripe with android app | <p>I am trying to support stripe payments from my android application but it won't run. Is the java incompatible? My code and errors are below:</p>
<pre><code>package io.noq.kiosk.android;
import java.util.HashMap;
import java.util.Map;
import com.stripe.Stripe;
import com.stripe.exception.APIConnectionException;
imp... | 1 | 2,371 |
Tailwind css purge removes all dark classes | <p>I have a pretty simple project which uses a couple of colours extended to the theme. When I enable purging in my tailwind.config.js file, everything is purged as they should, but all of my dark classes get purged too.</p>
<p>Does anyone have the same problem? I found an issue about this on tailwind's git as well: <a... | 1 | 2,081 |
fastboot problems leads to bootable but non-starting glass | <p>I was hoping to have some Glass hacking fun tonight. Turned out really bad. :( </p>
<p>Let me try to explain the steps I have taken. </p>
<ol>
<li>I installed Launcher.apk and Setting.apk</li>
<li>Paired a keyboard and mouse</li>
<li>All was good. </li>
</ol>
<p>Then I tried to unlock the device as described at... | 1 | 1,856 |
Connect to a docker container service inside WSL from Windows | <p>I have a Windows Subsystem Linux setup on my Windows 10 PC (Ubuntu 18.04).
I installed Docker toolbox on Windows, and running through a VM I can run docker commands normally by setting:</p>
<pre><code>export DOCKER_HOST=tcp://192.168.99.101:2376
</code></pre>
<p>I can access it fine and install/run docker containe... | 1 | 2,406 |
optimal control using scipy optimize | <p>I am trying to solve an optimal control problem where the cost function is J = x^T Q x + u^T R u subject to the x_dot = A x + B u and bounds for x and u. I know that there are some solvers like cvxpy, yalimp etc which could do this but I would like to do it myself to get a better ideas about the coding and possible ... | 1 | 1,902 |
ESP8266 WebServer how to stream unsigned char | <p>I was playing around with xxd -i this weekend to convert binary files into unsigned char arrays, thinking I could use it to embed small binary files into arduino code for transmission on mini web and other services. Problem is, it seems the functions in the existing libraries either expect const char *, string or Fi... | 2 | 1,591 |
JWT bearer token authorization being applied on exisitng MVC web appication in .NET Core | <p>I am trying out Web API's in .net core. I have added an API controller to my existing .net core MVC web application.</p>
<p>I am using JWT Tokens for authorization. I am doing this through the startup class.</p>
<p>The API works just fine.</p>
<p>But as expected the authorization is being applied on the entire MV... | 2 | 3,698 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.