title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Android Adding Dynamic ListView Header | <p>I have a list view and I am trying to set header for it so that it looks like a table header. Here is the XML file of my list view row:</p>
<p><strong>PS: I have removed some codes to shorten the question</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
</code></pre>
<p></p>
<pre><code><Te... | 2 | 2,745 |
How to print arguments in SVN hook | <p>I am using windows7 and VisualSVN Server.
I have wrote simple SVN post-commit hook which looks like</p>
<pre><code>C:\Perl64\bin\perl C:\repositories\secret-project\hooks\myhook.pl %1 %2
</code></pre>
<p>and myhook.pl script looks like</p>
<pre><code>$svnlook = '"C:\Program Files\VisualSVN Server\bin\svnlook.exe"... | 2 | 1,528 |
Failing to browse React application deployed to Heroku | <blockquote>
<p>When wirite <a href="https://tictactoesko.herokuapp.com/" rel="nofollow noreferrer">https://tictactoesko.herokuapp.com/</a> in a browser then I
recive folowing error message:</p>
<p>Failed to compile ./src/index.js Module build failed: Error: Cannot
find module 'eslint/lib/formatters/stylish'... | 2 | 2,592 |
Duplicate zip entry retrofit-1.3.0 | <p>I get an error when I try to create signed Apk with Proguard activated, relative to a duplicate zip entry with retrofit :</p>
<pre><code>Note: there were 110 duplicate class definitions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Warning:can't write resource [.readme] (Duplic... | 2 | 1,125 |
Still can't stop the Thread | <p>I want to stop the thread with simple CTR+C, but data is keep coming and coming, so I have to close the window and start it again. Help me please to fix the issue. In order to see what I'm saying, just type your twitter username and password in user and pass</p>
<pre><code>import threading
import random
import time... | 2 | 1,359 |
How to read a bit file in VHDL? | <p>I am new to VHDL. I am doing a MP3 decoder using VHDL and i happen to come across with this huffman coding from a website. However, I have difficulty in figuring out which lines actually indicates the input bit file. Below is the source code:</p>
<pre><code>use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.a... | 2 | 2,122 |
Rsyslog create two listeners (with and without TLS) with omfile as output. Possible or not? | <p>I am trying to create a rsyslog.conf with multiple listeners e.g. with and without TLS (with streamdriver). It is possible to create multiple inputs, but as I read in the rsyslog documentation, it seems to be impossible to move the streamdriver parameters e.g. streamdriver.mode="1" from module() to inputs() or to ac... | 2 | 1,100 |
Team Foundation Services are not available from server | <p>OK, I hate to reopen a previously solved case, but I can't get it to work. I have two endpoints listening to events from TFS 2010 event service, one build with Web Service (ASMX) and one with WCF (SVC). The first one works fine. The second causes TFS to raise this error</p>
<pre><code>HistoryId : 4643911
E... | 2 | 1,409 |
emma code coverage on jenkins is not creating reports | <p>I am trying to generate code coverage reports using emma on jenkins, however it is failing</p>
<p>Builds are successful. It is only the emma reports that are failing. </p>
<p>Here is my pom.xml</p>
<pre><code><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc... | 2 | 5,416 |
How to avoid embedded MongoDb download with Spring-Boot | <p>In my project, I am using spring-boot and embedded Mongo Db, see my pom.xml file :</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://... | 2 | 4,174 |
Issue in deploying JBPM 5.4 console server war on Websphere application server with JPA2 feature pack to use oracle database | <p>Facing issue in deploying JBPM 5.4 console server war to use oracle database. Please find below the stacktrace. </p>
<pre><code> [10/31/13 19:17:01:295 IST] 00000009 JPAPUnitInfo E CWWJP0015E: An error occurred in the org.hibernate.ejb.HibernatePersistence persistence provider when it attempted to create the co... | 2 | 6,615 |
python request | construct POST request body | <p>I am trying to construct below POST request using python requests.</p>
<p><strong>Request header</strong></p>
<pre><code>Host: www.example.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
X-CSRF... | 2 | 2,193 |
Prevent split cards in columns with CSS | <p>I'm making a timeline with two columns. The problem I've got is that one card is split over two columns like shown on image below. How could I solve this problem? Here you've my SCSS and HTML code.</p>
<pre class="lang-css prettyprint-override"><code>.card-col-2 {
@media (min-width: 980px) {
column-count: 2;
... | 2 | 1,486 |
Spring Security AnonymousAuthFilter With PreAuthenticationFilter Allowing Unauthorized Requests | <p>I have a fairly simplistic Spring Security configuration in my Spring MVC web app. I am receiving REST requests from a remote web application that get authenticated through my preauth filter. I simply look for a header in the request, and if present, I return that String value (which is the username) as the authen... | 2 | 1,024 |
Cloudformation Stack not receiving signal from userdata in EC2 Launch Template | <p>In my template, I'm provisioning an ASG that uses an <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-launch-template.html" rel="nofollow noreferrer">EC2 Launch template</a></p>
<p>In the <a href="https://docs.aws.amazon.com/en_pv/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launch... | 2 | 1,212 |
Authenticating emails with JavaMail on android | <p>I'm making an android app where I need to send and email from inside the app(without using intent), so I searched on the web and finally decided to use the JavaMail API.
I've built the code to use Gmail email providing email and password from the users but unfortunately Google blocks my emails, doing a search I foun... | 2 | 2,617 |
Html.ValidationSummary Twitter Bootstrap Modal not working | <p>this section of code does not work.</p>
<pre><code> @if (ViewData.ModelState.Any(x => x.Value.Errors.Any()))
{
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
... | 2 | 2,772 |
has one route error message "No route matches [POST] "/users/create"" | <p>The error occured after submitting "Create" account, no matter I entered password or not, the error message is below:</p>
<pre><code>No route matches [POST] "/users/create"
</code></pre>
<p>I built the page of registration, this is my <code>new.html.erb</code> in <code>users</code> file</p>
<pre><code><div cla... | 2 | 2,992 |
Powershell: How to dynamically update a nested JSON array? | <p>What I'm trying to do is take any well-formed JSON file/object and search for a path inside it. If the path isn't found, move on. If it is found, update the value. Once updated, save the updated JSON to the original file.</p>
<p>The catch to this, is the well-formed JSON structure is not known ahead of time. It's p... | 2 | 1,667 |
trying to reuse components in vue.js | <p>i'm fairly new in vue.js and i'm trying to do an app where you can find books but i'm stuck at the moment to reuse components.<br />
When i open the app, the bookList component is used to show the most viewed books.<br />
What i want to do is:<br />
Search books from the input field and fill the bookList component w... | 2 | 1,369 |
Grouping data between ranges using LINQ in C# | <p>I have made a following code to create me a range between two numbers, and data is separated in 7 columns: </p>
<pre><code> private List<double> GetRangeForElements(double minPrice, double maxPrice)
{
double determineRange = Math.Round(maxPrice / 7.00d, 3);
var ranges = new Li... | 2 | 1,115 |
Talend-Convert IF-THEN ELSE into Ternary operator | <p>We are trying to turn IF-THEN-ELSE statement of tableau Reporting/BI tool <strong>INTO</strong> TERNARY OPERATOR Java Based Talend tool Or JAVA based IF-THEN-ELSE</p>
<p><strong>Input Data</strong> </p>
<pre><code>if isnull([Ship Date (Calculated)]) then
(if (attr(trim([Corp Acct Name])) = 'ABC'
or attr(trim([Co... | 2 | 1,086 |
Add tool tip in a datatable in R Shiny | <p>I am trying to add tool tip using JS script <em>attr</em> function,some how the written script is not giving the desired result (adding tool tip for the 1st column of the datatable).As I am new JS Script so unable to debug the error, can anyone suggest me why the below code is not giving me the correct result. Here ... | 2 | 1,257 |
Google Maps Android API authentication issue | <p>I'm trying to use Google Maps on Android, but I'm getting these messages:</p>
<p><code>I/Google Maps Android API(21300): Failed to contact Google servers. Another attempt will be made when connectivity is established.</code></p>
<p><code>E/Google Maps Android API(21300): Failed to load map. Error contacting Google... | 2 | 1,182 |
Signature validation failed for SAML Response | <p>I have configured ADFS with Identity Server. I have a signed certificate from ADFS which is imported into Identity Server. I have also changed the IdpAlias property appropriately. However, I am getting following error, while using travelocity.com appliction. <br><br></p>
<p>SEVERE: An error has occurred
org.wso2.ca... | 2 | 1,704 |
Issues while extracting data from corrupted database | <p>I have a problem with a corrupted database that i need to extract the data from it..</p>
<p>as a start our database server crashed and we extracted the .mdf and .ldf files from the file system but it appears that a specific database “XYZ” was running some operations when the crash happened as when I was trying to a... | 2 | 1,167 |
Grails Integration Test - Null object for getBean() | <p>I cannot figure out why my integration tests here are throwing exceptions.</p>
<h2>Integration Test ##</h2>
<pre><code>package sample
import grails.test.mixin.*
import org.junit.*
/**
* See the API for {@link grails.test.mixin.web.ControllerUnitTestMixin} for usage instructions
*/
@TestFor(UserController)
clas... | 2 | 1,316 |
GTID replication failing error 1062 | <p>I am having trouble setting up a slave replication. Both use mysql 5.6 and have GTID on. Master is on rackspace's cloud databases HA instance</p>
<p>The dump I include has a GTID on it and the master.</p>
<p>I enabled GTID on slave by adding the following to the slave (i didn't have it on). I then deleted all the ... | 2 | 2,040 |
Stop infinite loop paint() method? Add JButton with paint()? | <p>I wrote program to draw wheel (circle with 6 segments) and each segment with different colour. and animate the wheel..</p>
<p>here is the code:</p>
<pre><code> public class ExamWheel extends JFrame implements ActionListener{
JButton b_start = new JButton("Start");
JButton b_stop = new JButton("S... | 2 | 2,108 |
jooq codegen with JPADatabase not working | <p>I have an issue using jooq codegen with JPADatabase. I have gone through this <a href="https://stackoverflow.com/questions/42968155/unable-to-generate-jooq-classes-from-h2-using-jpadatabase">post</a> and made the changes accordingly. My project contains sub modules and the entity classes are in domain module. I have... | 2 | 2,350 |
Exception handling with IP Address Module | <p>I'm not a software engineer by trade (Network Security Engineer), and am learning more automation techniques and coding. I'm sure I'm just missing something pretty obvious within my code and any assistance would be appreciated. </p>
<p>I'm running an input script asking users to enter in IP addresses in either CI... | 2 | 1,662 |
Laravel return rendered html view without \r \n -- json | <p>I have a little weird problem with rendering a view and replacing it after the ajax call with another html section.</p>
<p>code looks like this:</p>
<p>// ajax - controller function </p>
<pre><code>$view = view('renderedData', [
'test' => $data['test'],
'unicorn' => $data['unicorn']... | 2 | 1,387 |
Internal Server Error when I try to use HTTPS protocol for traefik backend | <p>My setup is ELB --https--> traefik --https--> service</p>
<p>I get back a 500 Internal Server Error from traefik on every request. It doesn't appear the request ever makes it to the service. The service is running Apache with access logging and I see no incoming requests logged. I am able to curl the service direct... | 2 | 1,850 |
Cannot run Robolectric test in Android Studio using Realm + PowerMockito | <p>I was using Realm, PowerMockito and Robolectric to write test for my app. The test is running fine if I use <code>./gradlew test</code>, but if I run with the configuration in Android Studio. It will show error as below.</p>
<p><code>com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.powe... | 2 | 1,590 |
How can I set the default state of a checkbox based on value in firestore in react table | <p>How can I set the default state of checkboxes based on values from firestore in React Table.
Sorry if the question is a bit basic. I have read through the official docs and couldn't really make sense of how to do it, I've also looked at a good few other examples.</p>
<p>I'm looking to check the value in a firestore ... | 2 | 3,291 |
Getting relative angular velocity from quaternions | <p>I want to simulate gyroscope readings (angular velocity in local frame) by supplied vectors.
I have this vectors (x,y,z) with sampling 1s:</p>
<pre><code>[0, 0, 1000]
[469.47156279, 0.0, 882.94759286]
[981.62718345, 0.0, 190.80899538]
</code></pre>
<p>Rotating Z by 28 degrees by Y axis and then by 51 degrees again a... | 2 | 2,183 |
Rails 3: Bundle install fails on Nokogiri gem, says libxml2 | <p>Hi I'm trying to get a dev environment setup on my windows machine. I've installed rubygems via cygwin. When I run bundle install I get an error on installing the nokogiri gem. It says I'm missing libxml2. </p>
<p>When I go to the nokogiri website they say "gem install nokogiri" should do everything I need for wind... | 2 | 2,131 |
How to group child objects from one List in a TreeView? | <p>How do I take a List and then in a TreeView group them by their Class? I read <a href="http://www.codeproject.com/Articles/36451/Organizing-Heterogeneous-Data-on-a-WPF-TreeView.aspx" rel="nofollow">this</a>, but it doesn't group the child objects, it just has the related properties in collections instead.</p>
<ul>
... | 2 | 1,858 |
CountVectorizer(): StreamBackedCorpusView' object has no attribute 'lower' | <p>I am trying to run and instantiate CountVectorizer() on NLTK Movie reviews corpus, using the following code:</p>
<pre><code>>>>import nltk
>>>import nltk.corpus
>>>from sklearn.feature_extraction.text import CountVectorizer
>>>from nltk.corpus import movie_reviews
>>>neg... | 2 | 1,225 |
Regex to remove multiple html nested tags | <p>I am having html sting like: </p>
<pre><code><p dir="ltr">hello boys <b><b><b><b><b><b><b><b><b>n</b></b></b></b></b></b></b></b></b><b><b><b><b><b><b><b><b&... | 2 | 3,136 |
Dropbox error 400 invalid_request when loading all paths of the users files | <p>I am getting error 400 while trying to retrieve the users full list of files name from the app folder after the user logs in.</p>
<p>I am using this tutorial to set up the the dropbox sdk:
<a href="https://www.dropbox.com/developers-v1/core/start/ios" rel="nofollow noreferrer">https://www.dropbox.com/developers-v1/... | 2 | 2,879 |
edit django form with instance always loads with empty form fields | <h1>models.py</h1>
<pre><code>class summary_model(models.Model):
username = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.PROTECT)
summary=models.TextField(unique=False, blank=False, null=False)
numberofprojects=models.CharField(max_length=264, unique=False, blank=False, null=False)
numb... | 2 | 1,259 |
Reading and sending a pdf from node to client - blank pages | <p>I'm currently reading a PDF via a node backend, sending it through an API gateway layer and back to the client - when the response hits the client however, the pdf is downloaded with the correct number of pages but is completely blank. I've tried setting the encoding in a number of ways but with no luck. When settin... | 2 | 2,008 |
How to make `Spinner onItemSelected()` to update `ListView` items from arrays in `strings.xml`? | <p>Starting on Android dev here and I have a question regarding the update of a <code>ListView</code>.
Following some tutorials I was able to make:</p>
<ul>
<li><code>Spinner</code> with 4 items (Client A, Client B, Client C, Client D);</li>
<li><code>ListView</code> with <code>Checkbox</code> and a <code>TextView</c... | 2 | 2,338 |
Date picker not displaying in primefaces 4.0 due to validation of facesContext | <p>Hi I am having a technical issue with my web application (Primefaces 4.0, Java/Spring/Hibernate), I have validation on all my date such that the user cannot select a date in the future. When my validation is displayed on the form, it blocks all datepicker from being displayed.</p>
<p>Below is the error in firebug:<... | 2 | 1,838 |
Lua: methods and properties when exporting class from c | <p>I use lua as a scripting language for my 3d engine. I have lua "classes" for several objects and now I want to use properties instead of getters and setters. So instead of something like this</p>
<pre class="lang-lua prettyprint-override"><code>local oldState = ui:GetChild("Panel1"):GetVisible()
ui:GetChild("Panel1... | 2 | 1,117 |
How to call an overloaded oracle procedure via c# | <p>I have two procedures in a package (TEST_PAK) that are overloaded on Oracle 9i. One takes a string and one takes an array as parameters. The problem i run into is when i try to call with null as a parameter. I am using C# and ODP.NET to call the procedures. </p>
<p>Here's the head of the two procs:</p>
<pre><c... | 2 | 1,163 |
ValueError: Tensor Tensor("dense_1/Sigmoid:0", shape=(?, 1), dtype=float32) is not an element of this graph | <p>Im using tf.keras to load a model I made previously with tf.keras but when I try to make the prediction I just get this</p>
<pre><code>[ERROR] [1560045312.143498]: bad callback: <function callback at 0x7f16fe94b8c0>
Traceback (most recent call last):
File "/opt/ros/kinetic/lib64/python2.7/site-packages/rosp... | 2 | 1,800 |
What is the right way to integrate polyfills to make Angular compatible with Internet Explorer? | <p>I develop a client-side graphical interface with Angular. Users of the application must be able to view the graphical interface from <strong>Internet Explorer</strong>. The problem is that Internet Explorer doesn't display anything, just a <strong>blank page</strong>. Other browsers correctly display the Angular app... | 2 | 1,037 |
Dev C++ with OpenCV compile error | <p>I'm using Dev C++ 4.9.9.2 and OpenCV 2.4.8, I'm also in Windows 7 x86. These are in my compiler setting, <code>-L"D:\opencv\build\x86\vc12\bin" -lopencv_highgui248 -lopencv_core248 -lopencv_flann248 -lopencv_gpu248 -lopencv_imgproc248 -lopencv_legacy248 -lopencv_ml248 -lopencv_nonfree248 -lopencv_objdetect248 -lopen... | 2 | 1,453 |
Execute script in web browser (python - selenium) | <p>within a web page is a script that allows you to see a video and other.</p>
<p>using python and selenium can not be run the script after the mouse clicks. Of the currently am using this code:</p>
<pre><code>videoGemPath = ".//*[@id='brandconnect']/a/img"
scriptPath = ".//*[@id='content']/script"
... | 2 | 2,375 |
PHP Validation to require One of Two Form Fields filled in | <p>I am developing a site that uses javascript to handle many functions and PHP based Captcha code to validate the form field.</p>
<p>It works great, but the form will submit if none of the fields are filled in. </p>
<p>I need one of two form fields ['email' or 'phone'] filled in, but neither can be left blank. </p>
... | 2 | 1,371 |
Your requirements could not be resolved to an installable set of packages in laravel 5.7 | <pre><code>Unable to install package from laravel 5.7
Using version ^0.8.4 for barryvdh/laravel-dompdf ./composer.json has been updated
Loading composer repositories with package information Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
P... | 2 | 1,629 |
Spring Boot (ConfigServer) is restarting all the time | <p>we have a very simple Spring Boot Service (<code>@EnableConfigServer</code>) running behind a nginx proxy.</p>
<p>The service basically works, but it is restarting all the time (Context is closed and started continuously).</p>
<p>See the log files here: <a href="http://pastebin.com/GErCF5x6" rel="nofollow">http://... | 2 | 1,633 |
Can I use a combo box to change the voice of my speech synthesizer to one of the system TTS voices? | <p>I would like to have a combo box on my form which allows the user to select the voice which they would like to use. How can I implement such a feature?</p>
<p>Currently, my form consists of four buttons and a combo box. The code behind the buttons and the synthesizer is as follows:</p>
<pre><code>private void butt... | 2 | 1,163 |
Giraph Shortest Paths Example ClassNotFoundException | <p>I am trying to run the shortest paths example from the giraph incubator (<a href="https://cwiki.apache.org/confluence/display/GIRAPH/Shortest+Paths+Example" rel="nofollow">https://cwiki.apache.org/confluence/display/GIRAPH/Shortest+Paths+Example</a>). However instead of executing the example from the giraph-*-depend... | 2 | 1,463 |
How to debug: uWSGI Error Python application not found. And how to set up uwsgi logging | <p>I'm running <code>nginx</code>, <code>uwsgi</code> and <code>pyramid</code>.</p>
<p>I know that the error is due to something in my <code>production.ini</code> file but I'm not entirely sure what. I'm not so keen to guess what the problem is, I would much rather have a meaningful error message. </p>
<ul>
<li>/var/... | 2 | 1,051 |
Trouble with gem installations | <p>I am in a coding bootcamp and I have encountered an error in which I am having a hard time fixing. I currently in an exercise where I am learning how to create dynamic routes. Every time I run my server I am getting errors when I go to my routes and it states that:</p>
<pre><code>Could not find nokogiri-1.8.2 in an... | 2 | 1,542 |
Issues with maven compiler | <p>I am trying to use jetty plugin for a grails project. I am currently using jdk 1.6.0_45. It seems that the jre version used by jdk 1.6 is a little old one for jetty plugin and it generates the following error.</p>
<pre><code>Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.UnsupportedCl... | 2 | 7,321 |
formik axios post form submission on reactjs | <p>Newbie in reactjs ,trying to build a simple form with formik and validating with Yup library .just got a problem ,how to submit axios post request in formik with validations shown in below code.i have confusion on handle submit function onSubmit</p>
<p><strong>CODE</strong></p>
<pre><code>import React,{useState} fro... | 2 | 1,393 |
How to convert HTML to Java (Android)? | <p>I have 3 files to upload from my android tablet and I will like to convert the below HTML. Please give me examples for 3 files uploaded from android to server.</p>
<pre><code> Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data; name="submit-name"
--AaB03x
Content-Dispos... | 2 | 1,822 |
error in creating multiple tables in single ANDROID DB name | <p>I am getting a problem when I'm using two tables in single DB, My apps forcely closed. Please help me out using multiple tables in SINGLE DB. </p>
<p>Here i have two tables i.e Property & quote with same DB name.</p>
<p>property.class</p>
<pre><code>public class PropertyDb {
public static final String K... | 2 | 4,596 |
Unable to create media player in android FileNotFoundException | <p>I am developing an App streaming audio, using MediaPlayer class.
See app screenshots, What am I doing wrong here ?? Please review </p>
<pre><code>package musicplayer.androidhive.com.musicplayer;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
import andro... | 2 | 3,557 |
AWS Cognito - How to customise the input fields? | <h2>THE SITUATION:</h2>
<p>In my Vue app, I am using the <a href="https://docs.amplify.aws/ui/auth/authenticator/q/framework/vue" rel="noreferrer">aws authenticator</a> to handle login/signup. <br>
I need to customize the style, but it's a bit tricky since its structure is made of shadow DOM.</p>
<p><a href="https://i.... | 2 | 1,302 |
How to get the Interface ID (IID, i.e. the GUID) of an interface when importing a WinRT winmd? | <h1>Short version</h1>
<p>How to you get the interface identifier (IID) for an interface from a <code>*.winmd</code> file when using <strong>IMetadataImport</strong>?</p>
<p>e.g. <strong>Windows.Globalization.ICalendar</strong>: <code>{CA30221D-86D9-40FB-A26B-D44EB7CF08EA}</code></p>
<h1>Longer Version</h1>
<p>A <a hre... | 2 | 1,233 |
passing an array from an user defined action in controller to a view in Yii | <p>In my Yii application I need to perform joint queries in controller and display the final view in views. this is the mysql query I need to perform.I hav three tables namely,items,manufacturers,items_manufacturers</p>
<pre><code>SELECT items.id,item_desc,manufacturers.id,manufacturers.name FROM items_manufacturers... | 2 | 1,062 |
Getting different result on OKHTTP from postman | <p>I am trying to get some data from server. the main problem is I don't have the server access, but of course I know the request details, I am using PostMan for the testing server calls and than implementing them on android using OkHttp.</p>
<p>Here is what I get from server on android side using both HttpUrlConnecti... | 2 | 1,737 |
How to retrieve data from sqlite Db and set to kivy TextInput fields? | <p>I'm learning kivy by making small applications from kivy docs and other online resources. The current code has
two textinput fields (UserID, UserName) to store values in the db, using RecycleView the stored data is displayed
on buttons with the Kivy GUI. </p>
<p>On button press, I require corresponding data from t... | 2 | 2,819 |
Anonymous Pipe not ending stream? | <p>Hello I am having a strange error with using pipes to communicate between two process. In short everything is working fine with the program except that the client side never closes the stream, meaning the server's streamReader.readLine never returns null, causing the sever process to never terminate. I'm convinced t... | 2 | 2,094 |
R: problems constructing nested for-loop and saving results | <p>This is a question which is based on a question I asked before: <a href="https://stackoverflow.com/questions/17074277/read-many-files-compute-something-save-results-in-dataframe-r">Read many files, compute something, save results in dataframe (R)</a> .</p>
<p>Still I have around 100 files with data from a simulatio... | 2 | 2,021 |
numberOfSections being called? iOS | <p><strong>Skip all this info and skip to the update at the bottom...</strong></p>
<p>I have dealt with unrecognized selectors before, but I cannot figure out what is going on this time. The call stack is opaque and I can't find out where the problem is originating from. I have tried using symbolic and exception break... | 2 | 6,444 |
Braintree - Google Pay button does not display | <p>i just cut & paste this code on a html file that I called payg.html : <a href="https://jsfiddle.net/f1am0dr7/" rel="nofollow noreferrer">https://jsfiddle.net/f1am0dr7/</a></p>
<p>I paste the "jsfiddel html section" at the beginning of the page. </p>
<pre><code><div id="container"></div>
<script ... | 2 | 2,486 |
Angular2: Component is not part of any module | <p>I have a working ionic/firebase app and now want to create a web app with the same functionality. I started with this template: <a href="https://github.com/ng-lisbon/angular-firebase-seed" rel="nofollow noreferrer">https://github.com/ng-lisbon/angular-firebase-seed</a>. It's Angular 4, Firebase 3.9. </p>
<p>Proble... | 2 | 1,037 |
How can i display MYSQL Data using DataTables using While Loop | <p>How can i display Data from MYSQL table using DataTables
I tried but Top part shown me
<a href="https://i.stack.imgur.com/Rsj32.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rsj32.png" alt="enter image description here"></a></p>
<p>Bottom Shows Records from MYSQL table.</p>
<p>I want DataT... | 2 | 1,074 |
FFTW3 1D transform with MPI is slow | <p>I'm testing FFTW 1D c2c transform using MPI.
After compiling and running the 2D example on FFTW3 tutorial I have seen that with 8 nodes execution is 2x faster than using only one node(using large size like 4096x4096). </p>
<p>So I modified this example for 1D but something goes wrong becouse I see this timing :</p... | 2 | 1,360 |
MKOverlay route working in Apple Breadcrumb iOS code but not in my app | <p>I am working on an iOS application and want to include the Breadcrumb iOS Mapkit route functionality provided by apple as one of the feature. I have created a UIViewController in the storyboard (as a tab from a tab bar controller) and inserted a MKMapView in it. I have also connected it to the outlet in ThirdViewCon... | 2 | 1,598 |
Why TextBlock Text is not updating in ViewModel? | <p>I am trying to post some values to the next screen through XML serialization and Isolated Storage. Values are posted from textbox and also from textBlock to the next screen's textBlocks with button click event. But the TextBlock's text is not posted to the next screen, only the textBox text is posted. If I debug and... | 2 | 1,993 |
Quarkus project once covered to mutli-module form got 404 when hit the existing endpoints | <p><strong>quarkus.version</strong>:1.0.1.Final</p>
<p>Used to have working <code>quarkus</code> web project with rest-easy end-points.</p>
<p>Converted it to multi-module one. </p>
<p>Still use <code>maven</code>.</p>
<p>This way:</p>
<pre><code> my-project-service
- my-project-api
- data-api-object.java
... | 2 | 1,471 |
java.rmi.ConnectIOException & java.net.SocketException: Socket operation on nonsocket: connect | <p>I'm an italian guy, so sorry for my BAD english.</p>
<p>I'm writing a RMI program in Java, and this is the section of the node's code to connect to the RMI server:</p>
<pre><code>try
{//trying to connect to the Server
Remote RemoteObject;
BootstrapServer_Interface serverObject;
Regi... | 2 | 2,412 |
OpenCV Build process warning : field of class type without a DLL interface used in a class with a DLL interface | <p>I just installed CUDA 7.0 and generated the <strong>OpenCV</strong> makefiles for <strong>VisualStudio 2013 x64</strong> through CMake. While building in the Debug configuration(and Release too) in VS2013, I have tons of warnings like these and its taking hell longer(to the extent that I had to end process!) then it... | 2 | 2,145 |
CakePHP 3 - association is not defined - even though it appears to be | <p>I've baked a legacy application using CakePHP 3.7</p>
<p>The database contains 3 tables as follows: <code>regulations</code>, <code>groups</code>, <code>filters</code>. The hierarchy as far as the application goes is:</p>
<ul>
<li>Regulations
<ul>
<li>Groups
<ul>
<li>Filters </li>
</ul></li>
</ul></li>
</ul>
<p... | 2 | 1,546 |
How to create a DAG from a list in python | <p>I am using networkx to manually input the (u, v, weights) to a graph. But when the input gets bigger this manual insertion of nodes and edges will become a really tiresome task and prone to errors. I'm trying but haven't figured out that how to perform this task without manual labour.</p>
<p><strong>Sample Input:</s... | 2 | 1,560 |
How to configure SWD pins using registers in STM32? | <p><strong>Info:</strong> I create Blink using registers in STM32. This works, except that after the firmware the SWD connector stops working for me. The reason most likely is that the SWD is on the same port along with the LED. When configuring the port and the LED pin, I probably reset the SWD settings.</p>
<p><stro... | 2 | 1,155 |
CSS Animation has a bug in Safari, but working in Firefox and Chrome | <p>I've been trying to make a header animation that plays on page load. It works great in Firefox and Chrome, but in Safari there's a small bug with the transform.</p>
<p>First, the following image shows the webpage load in Chrome. It looks exactly the same on Firefox.
<a href="http://i.stack.imgur.com/Orn46.gif" rel=... | 2 | 2,210 |
boost::property_tree compile error (error C2061: syntax error : identifier 'p') | <p>I'm struggling to compile some code that utilises the boost property tree. I'm using Visual Studio 2010.</p>
<p>If I simplify the code as much as possible to reproduce the error, the code looks like the following...</p>
<pre><code>#include "AppleiTunesLibraryImporter.h"
#include <boost/property_tree/xml_parser.... | 2 | 4,310 |
Editable DataTables table in ReactJS | <p>I have a basic ReactJS+Flux application where is a table (jQuery DataTables plugin) as a main component. When I click on cell 'Delete row' in first column, data of row are deleted and application sets new state with new data, but table isn't rendered with new data. </p>
<p>In <a href="https://jsfiddle.net/69z2wepo/... | 2 | 3,650 |
Webpack optimization module concatenation: multi referenced from single entry bailout | <p>I am trying to wrap my head around module concatenation with Webpack 4.</p>
<p>I have an entry.js script which uses imports from multiple modules which in turn import multiple modules.</p>
<p>Using optimizationBailout warnings when bundeling throws following bailout warning.</p>
<p>ModuleConcatenation bailout: Mo... | 2 | 1,039 |
Laravel 5.6 - Class name must be a valid object or a string | <p>My Laravel application is throwing the next error:</p>
<pre><code>(1/1) Error
Class name must be a valid object or a string
in HasRelationships.php line 656
</code></pre>
<p>I have to said that right now this project is in a shared hosting but that's the only part that does not works at all. This is the HTML file... | 2 | 5,004 |
NullPointerException in viewHolder during ListView refresh using notifyDataSetChanged | <p>I'm trying to refresh my Listview after my app downloads new data, parses it, and adds it to an array list, which is displayed in the listView. This all happens when the user pulls down to refresh. Except I can't figure out how to refresh my listView, and when I use notifyDataSetChanged, it just throws a null pointe... | 2 | 5,399 |
TabView and close button problem | <p>I try to do the same thing as Davs Rants Example :
<a href="http://blog.davglass.com/files/yui/tab3/" rel="nofollow noreferrer">http://blog.davglass.com/files/yui/tab3/</a></p>
<p>But I must forget something...</p>
<p>I have this error :</p>
<blockquote>
<p>Node was not found" code: "8 [Break on
this error]
... | 2 | 1,106 |
Converting Tensor to Ragged Tensor in Graph mode using Keras | <p>I want to convert a Tensor to a Ragged Tensor in my graph using Keras.
However, the function <code>RaggedTensor.from_row_lengths</code> fails in my graph. </p>
<p>Tensorflow version: <code>tf-nightly 2.1.0.dev20191203</code></p>
<p>Here's a code sample: </p>
<pre class="lang-py prettyprint-override"><code>impor... | 2 | 1,191 |
MariaDB/MySQL composite unique index not effective | <p>Situation: I've created unique composite index over table, which took some time, didn't delete duplicite records and doesn't prevent me from inserting duplicate rows.</p>
<p>Anybody knows what is going on in here?</p>
<p>Table structure:</p>
<pre><code>> DESCRIBE translations;
+-------------+--------------+---... | 2 | 3,347 |
How to insert array to mongodb using node.js | <p>I have an array like <code>[ 570dec75cf30bf4c09679deb, 56fe44836ce2226431f5388f ]</code>. Now I want insert this for new collection named <code>notifications</code> like </p>
<pre><code>{
"_id": ObjectId("57bd39c9734ff3602a312b33"),
"userId": ObjectId("570dec75cf30bf4c09679deb")
}
and
{
"_id": ObjectId("57... | 2 | 1,394 |
jquery ui autocomplete search in xml file | <p>I add a search input with autocomplete to parse an xml file.</p>
<p>I have some difficulties to understand how it works exactly.</p>
<p>my code: </p>
<pre><code>var myArr = [];
$.ajax({
type: "GET",
url: "data.xml",
dataType: "xml",
success: parseXml,
complete: setupAC,
failure: function... | 2 | 1,219 |
jQuery animation only on page loading | <p>I have a site where I animate the background when I load the page. Each of my page has this structure:</p>
<pre><code><?php require 'Top.php'; ?>
<!--Page content-->
<?php require 'Bottom.php'; ?>
</code></pre>
<p>The Top.php looks like this:</p>
<pre><code><html xmlns="http://www.w3.org/1999... | 2 | 1,749 |
How to find and plot the local maxima of a polynomial regression curve in R? | <p>I have yield data for a farm (independent variable) and various nutrients which serve as predictors. I have performed univariate (cubic) linear regression using <code>lm(y ~ ploy(x,3))</code>. Then I plotted the predictor variable (P) against the yield, and added a best fit curve (Figure 1). How do I then find the l... | 2 | 3,078 |
Why can't SortedSet be used as a Priority Queue or Min-Heap? | <p>I was attempting to solve the running median problem (on <a href="https://www.hackerrank.com/challenges/ctci-find-the-running-median" rel="nofollow noreferrer" title="hackerrank">hackerrank</a>) using a sorted set. Only it's elements don't appear properly sorted.</p>
<p>See it in action here: <a href="http://rextes... | 2 | 1,033 |
validate username ajax and json and asp.net | <p>So I'm new to json/ajax/jquery/webservices</p>
<p>I am trying to do a join page whereby the user types in a few letters and gets instant feedback on whether or not the username is available or not. </p>
<p>I have an html file [the user front end], and an asmx webservice, the webservice checks to see if whatever t... | 2 | 2,020 |
Subnet DemoSubnet is in use and cannot be updated | <p>I have created a DemoSubnet and an ElasticIP, then I am trying to deploy a ARM template which has a Virtual machine which is trying to attach with that existing elastic IP. The template works fine initially, and after some time its failing due to below error</p>
<blockquote>
<p>"At least one resource deployment o... | 2 | 4,390 |
How to avoid Slow setInterval? | <p>I have a Voice URL I got it from Database and want to play it using react-native-sound, </p>
<p>So I make a reusable component that renders a play icon and duration "without animation right now"</p>
<p><a href="https://i.stack.imgur.com/gKAYc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gKAYc... | 2 | 2,070 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.