title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Java Executequery Hangs
<p>I'm executing a very simple SQL, that when I run in SQL Server Management Studio it's take a few seconds. But when I run in java using JDBC it freezes. The memory usage goes from 34MB to 280MB.</p> <pre><code>public int size() { int lines = 0; string StringSize = "SELECT COUNT(BO_Numseq) FROM dbo.BOLETO"; ...
2
1,072
Updated views in list item don't stay updated when scrolling through listview[IMG + SOURCE]
<p><strong>The short version of my question:</strong> If I have a listview where each item has a button and that button causes a textview on that listitem to be updated, how do I make changes I make to the list row from a onClickListener in getView permanent?</p> <p><strong>Detailed description of problem:</strong> I ...
2
7,934
Getting error for Login and Logout using facebook SDK
<p>this is my MainActivity:</p> <pre><code>package com.FBupdater; import java.io.IOException; import java.net.MalformedURLException; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageButton; import android.widget.Toas...
2
4,571
Bootstrap Collapse is collapsing but immediately closing the Collapse
<p>When I click on the toggle button the collapse comes down but when ending the down animation the collapse goes up without any interaction.</p> <p>I tried everything of library references and its order positioning but even then I get the same result as before.</p> <p>This is my HTML-Code:</p> <pre><code>&lt;nav cl...
2
1,246
Remove NA columns in a list of dataframes
<p>I am having some trouble cleaning data that I imported from Excel with <code>readxl</code>. <code>readxl</code> created a large list of objects with classes = <code>c('data.frame', tbl_df, tbl)</code> (I would also like to know about why/how it has multiple classes assigned to it). Each of those objects is one of th...
2
1,320
Package missing on maven build
<p>I'm trying to run a JUnit test in Travis CI using Maven, but every attempt makes me face the same error:</p> <pre><code>[ERROR] \luiz.kill\Workspace\hawickjames\src\main\java\com\lzkill\main\CountElementaryCircuitsFromRFC.java:[3,24] error: package org.jgrapht.graph does not exist </code></pre> <p>I also see this ...
2
1,871
Comparing two csv files by non unique values from multiple columns, output to csv extra data where matched
<p>I have run out of search terms and have come full circle. I've read and tried a ton of question and answers on what I thought would be a fairly simple task, but no joy.</p> <p>I have two csv files.</p> <pre><code>**file1.csv** (2,000 + lines)&lt;br/&gt; product_code, colour, size, sku, more cols..., barcode&lt;br/...
2
1,762
How to Refresh. Datagridview after adding data.im using sql database
<p>below is my code for my project. hope you can help me. thanks in advance. :)</p> <p>this is my sqlcontrol code</p> <pre><code>Imports System.Data Imports System.Data.SqlClient Public Class SQLControl Public SQLCon As New SqlConnection With {.ConnectionString = "Server=xxx\SQLEXPRESS;Database=SQLTest;User=sa;...
2
3,498
How do I use a button to open a website from the browser on an Android widget?
<p>So I have been trying for hours to get this to work and I can't for the life of me figure it out. I have tried many different ideas I've found just googling it, but without any luck. I am trying to create an android widget that you can click on an image and it uses the default browser to open up a website. I am able...
2
1,715
Show "Free Shipping text" when free shipping price rule is enabled
<p>Already made a script with help from this forum and friends, like:</p> <pre><code> &lt;?php // Determine if product "free shipping" is true if ($_product-&gt;getFreeShipping()) { echo '&lt;span class="freeShip"&gt;'.$_product-&gt;getAttributeText('free_shipping').'&lt;/span&gt;'; } // Determine if product costs ...
2
1,236
I can't create a Stripe customer and subscribe him to a plan in Android
<p>I'm using Stripe and I get the card token but I can't create a customer. Android Studio gives me a NetworkOnMainThreadException with the Internet permission on the manifest. This is my code:</p> <pre><code>public void registerOnClick(View v) { Card card = new Card("4242424242424242", 12, 2017, "123"); ...
2
1,092
UIViewRepresentable hidden behind SwiftUI View
<p>I recently asked (and got a valid answer) to a question related to this issue. </p> <p><a href="https://stackoverflow.com/questions/61254931/how-do-i-get-my-uiviewrepresentable-to-correctly-size-for-its-content">How do I get my UIViewRepresentable to correctly size for its content?</a></p> <p>As I mentioned in the...
2
2,145
WHERE IN clause using VB.NET in Entity Framework
<p>I have two CheckboxLists. Based on the items checked, the checked values are concatenated into a comma separated string and passed to my entity framework method. The result would be a List(Of Entity).</p> <p>I want to convert </p> <pre><code>SELECT * FROM dbo.Findings /*Below criteria is added only if any of the ...
2
1,518
D3 attribute height: Expected length, "NaN"
<p>May be a simple mistake as I'm super new to D3 but I'm trying to create a simple bar chart with a scaled height for the bars. It works fine with hard coded heights but returns the error "Error: attribute height: Expected length, "NaN"." when I try to use a linear scale. I've console.logged the typeof for d.grossbil...
2
1,192
Proj4Leaflet orign on custom projection
<p>I've set up a Leaflet map using the fabulous <a href="http://kartena.github.io/Proj4Leaflet/api/" rel="nofollow">Proj4Leaflet</a> plugin. Within my map I'm using a custom reference system (<em>EPSG:28533</em>). The map tiles (<a href="http://sg.geodatenzentrum.de/wmts_webatlasde/tile/1.0.0/WMTSCapabilities.xml" rel=...
2
1,233
retrieve chat message in firebase issue in ios swift
<p><a href="https://i.stack.imgur.com/rvctL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rvctL.png" alt="enter image description here"></a></p> <p>I am using firebase for chat app.when I try to send a message. than message, table got value but not update chat-message table. I refer to this link H...
2
1,296
Android location is always null with both NETWORK_PROVIDER and GPS_PROVIDER
<p>This the Service class that I'm trying to use from my MainActivity.java. Running on emulator.</p> <pre><code>package com.example.sonia.project; import android.app.Service; import android.content.Context; import android.content.Intent; import android.location.Location; import android.location.LocationListener; impo...
2
2,642
JSch giving invalid private key errors for key pair generated by Java
<p>I am generating a keypair using Java's <code>KeyPairGenerator</code> for use with JGit. However, JSch (the underlying SSH implementation for JGit) keeps giving me <em>"invalid privatekey"</em> errors when trying to use the generated private key. </p> <p>Here is the stack trace:</p> <pre class="lang-none prettyprin...
2
4,893
Android multi-threading - Timing of playing sounds & responses
<p>Really new to this stuff so bear with me!</p> <p>In my app I need to prompt the user to respond via button press to a noise, and record the response if it happens only while the sound is playing. I also need to have a variable sound presentation time, and variable time between the sounds...</p> <p>The issue that I...
2
1,133
Reference table name column in another table in join - SQL Server
<p>I have following condition :</p> <p>Table-1 <br/> col1&nbsp;&nbsp;&nbsp;col2&nbsp;&nbsp;&nbsp;&nbsp;col3<br/> 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;40&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;100 (identity column value for tblABC)<br/> 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;41&nbsp;&nbsp;&nbsp;...
2
1,083
Gregorian Calendar in C
<p>I really don't know much about c program so really need your help.. This is the program to find the day of input value(ex. 1583.3.31 -> Thursday) and print "Wrong year/month/day" if it is unvalid date. I wrote return 0; in the middle part because I have to get out from this when the date is unvalid. I checked it wo...
2
1,161
CKEditor 5 custom button fails in Vue.js component
<p>I implement the CKEditor5 from source in my Vue app. I use the <strong>ckeditor5-editor-classic</strong> (following <a href="https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs.html#using-ckeditor-from-source" rel="nofollow noreferrer">this guide</a>) and want to add a custom butto...
2
1,875
program unexpectedly closing
<p>Having issues on my first XAML application I have created in VB.net using Visual Studio 2010. Every time I run it and I want to click on the apply button (I am meant to input data in some fields and then click the apply button and that just shows a messagebox.show of what I have entered) the program crashes. I am ru...
2
1,718
v16.6.0 or higher Context API not working when child is used in component that provides the context
<p>I'am using the new context API of react (v16.6.0 or higher) by declaring the <code>public static contextType</code> inside the component that consumes the context. This is working fine as long as the component that declares the <code>Provider</code> does not directly use a component that consumes the context in it's...
2
1,404
Too many connections with PDO persistent connection?
<p>I've been struggling with this for quite a while, and it's to the point where I need to ask for help because even with all the research I've done I can't get a handle on why this is happening.</p> <blockquote> <p>Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too many connecti...
2
2,939
Unable to read Graph API Access token which is stored in ADAL TokenCache from WebAPI
<p>The question in posted in StackOverflow is as follows</p> <p>We have a multi-tenant Web app (ASP.NET MVC 5.2.2) which is protected by Azure AD for user authentication and Web app calls the Backend Rest APIs (ASP.NET Web API 5.2.3) which is also protected VIA OAuth 2.0 bearer token. We are using Open-ID Connect pro...
2
2,159
Cannot login with Spring Boot Security
<p>I have a Spring Boot app with MySQL. I can save Users in the database but when I try to login, it keeps saying that the username or password is incorrect. Even when I hard code an User, it still doesn't work. </p> <p>I created the setup using the <a href="https://www.youtube.com/watch?v=TNt3GHuayXs" rel="nofollow n...
2
2,197
Read var_dump data with PHP
<p>May I know how can I retrieve givenNmae and middlename value in each array in the following example with PHP? Thank you. </p> <pre><code>object(stdClass)#13 (1) { ["contact"]=&gt; array(157) { [0]=&gt; object(stdClass)#14 (6) { ["created"]=&gt; string(20) "2007-10-27T04:54:45Z" ["updated"]=&...
2
2,372
Print HTML with ChartJS
<p>I'm using <a href="http://www.chartjs.org/" rel="nofollow noreferrer">ChartJS</a> to generate a chart.</p> <p>And I'm using the command below <a href="https://stackoverflow.com/a/30077759">StackOverflow</a></p> <pre><code>&lt;script&gt; function printDiv(divName) { var printContents = document.getElementById(di...
2
1,097
REUSE_ALV_FIELDCATALOG_MERGE for generating ALV hierarchial list?
<p>When I execute this code some error occurs. Can <code>REUSE_ALV_FIELDCATALOG_MERGE</code> function module be used to generate alv hierarchial reports in ABAP? And are there any tips for the simplest fieldcatalog merging?</p> <pre><code>REPORT ZSAMPLE_ALV_HIERACHIAL. DATA : IT_VBAK LIKE TABLE OF VBAK, WA_VBA...
2
1,614
Displaying MySQL query results as HTML with EJS
<p>I am building an app (using EJS view engine and Node.js) which interacts with an MySQL database I have built locally. I can receive results from my queries successfully as a JSON string, but I cannot send the information to a view (to be displayed as HTML) as I am getting the error: unsafefoods is not defined.</p> ...
2
2,757
Docker & Selenium unable to connect to renderer
<p>I am trying to setup browser testing with selenium and docker with behat.</p> <p>The main issue I am having is reliability when running the tests.</p> <p>Sometimes I can get connected and am able to run tests fine, but a lot of the time I cannot.</p> <p>It seems quite inconsistent, I startup the containers and ru...
2
2,417
How do I send message to ActorRef at start of Akka-Stream 2.0 flow?
<p>The goal is to send the <code>WSConnectEvent</code> once a client is connected and the stream starts. With akka-streams 1.0 I was able to accomplish this with the following:</p> <pre><code>Flow(Source.actorRef[WSResponseEvent](65535, OverflowStrategy.fail)) { implicit builder =&gt; sdpSource =&gt; // I...
2
1,196
Entity Framework Core - ValueConverter with ValueComparer to convert Enum to Class not working
<p>I'm trying to send this Json to my API with <a href="https://www.postman.com/" rel="nofollow noreferrer">Postman</a>:</p> <pre><code>{ &quot;name&quot;: &quot;yummy food&quot;, &quot;brand&quot;: &quot;brand&quot;, &quot;tags&quot;: [ &quot;1&quot;, &quot;2&quot; ] } </code></pre> <p>...
2
7,092
Spark/Java: NoClassDefFoundError in GSON dependency
<p>I have a small Spark project using a JAR file, which I am packaging with Maven.</p> <p>I am using GSON to work with JSON files, and I specifically need the JsonReader class.</p> <p>I added the GSON dependency, and when I run it as a standard Java project it works fine. However, when I package it and run it in Spar...
2
1,229
R: Propensity Score Matching using MatchIt. How to find the number of matched observations with replace = TRUE?
<p>Please consider the following:</p> <p>I am matching data with the <code>MatchIt</code> package in R. I have fewer controls than treated and use the option <code>replace = TRUE</code>. According to the <a href="https://imai.fas.harvard.edu/research/files/matchit.pdf" rel="nofollow noreferrer">manual</a>, the weights...
2
1,890
Error linking to mongo-c-driver library while building collected performance monitoring package
<p>I am trying to build the <a href="https://collectd.org/download.shtml" rel="nofollow">collectd</a> system performance monitoring package (version 5.4.1; building collectd on Fedora v20 VM) and want to use the write_mongodb plug-in. </p> <p>I run <code>./configure</code> in the folder collectd-5.4.1 where I have dow...
2
3,302
java.lang.NoSuchMethodError: reactor.core.publisher.Flux.toIterable(I)Ljava/lang/Iterable" in Azure Data Lake Storage (ADLS Gen2)
<p>I am writing a java program to connect to Azure Data Lake Storage (ADLS Gen2). But when I try to iterate the file-system list of storage account I get &quot;java.lang.NoSuchMethodError: reactor.core.publisher.Flux.toIterable(I)Ljava/lang/Iterable&quot; error.</p> <p>Stack trace:</p> <pre><code>HTTP Status 500 - Hand...
2
2,869
Why UITableView cell overlap while scrolling?
<p>I have a <code>UITableView</code> with approx 100 row.</p> <p>Each cell having checked image but when we scroll the <code>UITableView</code>, all the cells overlapped in unchecked cell. </p> <pre><code>(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { stat...
2
1,566
SSIS: Try/Catch not working in Script Transformation
<p>I have spent last few hours to figure out whats wrong with my script transformation. I have SSIS that is used to load data from flat files to db. this data is very messy, variable column count, from time to time there is e.g. blank line. So I have created Script transformation to handle problem with variable column ...
2
1,378
Port numbers not hiding in nginx reverse proxy (next js server)
<p>I am trying to deploy a next-js app by create-next-app, I have a custom express server like this -</p> <pre><code>const express = require('express') const next = require('next') const dev = process.env.NODE_ENV !== 'production' const nextApp = next({ dev }) const handle = nextApp.getRequestHandler() const fs = req...
2
1,322
Change icon on mouseover/out fails
<p>I'm tearing my hair out over this code. As you may guess, I'm relatively new to coding. I would appreciate any insight you have into why it is not working. </p> <p>I am trying to change marker icons on mouseover/out. I am trying to create and add listeners in a for-loop. In the loop, the markers are created from an...
2
1,308
DROP DATABASE crash mysql server
<p>I've a little problem when I want to DROP my database.</p> <p>When I execute :</p> <pre><code>DROP DATABASE `mydb`; </code></pre> <p>MySQL returns :</p> <pre><code>Error Code: 2013. Lost connection to MySQL server during query </code></pre> <p>(Executed from phpmyadmin, I'm disconnected and redirected to login/...
2
1,572
Model with multiple outputs and custom loss function
<p>I'm trying to train a model that has multiple outputs and a custom loss function using keras, but I'm getting some error <code>tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError: iterating over ``tf.Tensor`` is not allowed in Graph execution. Use Eager execution or decorate this function with @tf...
2
2,806
"UnexpectedValueException" on yii2 composer update
<p>Got "UnexpectedValueException" Your github oauth token for github.com contains invalid characters:"" while composer update on yii2 project.</p> <p>When i was installing jui datetimepicker via composer, I have asked to give git token to install it. I had generated the t...
2
1,636
jQuery UI draggable/droppable not working
<p>I'm working on a site that requires a drag &amp; drop feature. I'm modelling the code off of the <a href="http://www.elated.com/articles/drag-and-drop-with-jquery-your-essential-guide/" rel="nofollow">final tutorial on this site</a>.</p> <p>However, for some reason I keep getting the error: </p> <p><code>Uncaught ...
2
1,576
SIGSEGV SEGV_ACCERR crash in NSFileAttributes dealloc when autoreleasepool is drained?
<p>I'm getting a strange crash when using NSFileManager to get the file size in a background thread. </p> <p>I have a property of a song object called localFileSize:</p> <pre><code>- (unsigned long long)localFileSize { return [[[NSFileManager defaultManager] attributesOfItemAtPath:self.currentPath error:NULL] fil...
2
2,121
How to distribute items evenly, without random numbers
<p>I have a situation where I need to evenly distribute N items across M slots. Each item has its own distribution %. For discussion purposes say there are three items (a,b,c) with respective percentages of (50,25,25) to be distributed evenly across 20 slots. Hence 10 X a,5 X b &amp; 5 X c need to be distributed. The o...
2
2,587
Jetty + SpringMVC: Error when set configureDefaultServletHandling because cannot find the default servlet name
<p>I created an simple application without web.xml and spring-servlet.xml config file. I just config in Java code. This is the project structure:</p> <p><a href="http://i.stack.imgur.com/Hw9iu.png" rel="nofollow">Project structure</a></p> <p>This is my main class:</p> <pre><code>public class TripMapServer { private...
2
1,590
junit @SpringBootTest for org.springframework.cache.Cache
<p>I already have spring ehcache in place in a spring-boot application. 1 api is implemented for cache eviction. And I am writing junits for this. </p> <p>Here is the config code of cacheManager in my Configuration.java </p> <pre><code> @Bean public CacheManager cacheManager() { EhCacheManagerFact...
2
1,046
How to find the coordinates of the outside corners of these 4 squares? (morphological closing/opening does not conserve squares if image is rotated)
<p>One of the first processing steps in a tool I'm coding is to <strong>find the coordinates of the outside corners of 4 big black squares</strong>. They will then be used to do a homographic transform, in order to deskew / unrotate the image (a.k.a perspective transform), to finally get a rectangular image. Here is an...
2
1,121
C# and Office integration
<p>I need advice on which path to take. </p> <p>I'm developing a C# application and I'd like to have some integration with the Office suite. </p> <p>The solution is going to be used for students / teachers in the final semesters of Law School, that serve low income families - our customers. </p> <p>Almost all the in...
2
1,105
RedirectToAction is not working with Tempdata - ASP.net core MVC
<p>I have this method in which I am trying to redirect the request to a different controller. To the called controller , I need some data from the previous controller and so I had this put in the Tempdata. But when I use Tempdata before the line where I call RedirectToAction, the requested is not getting passed to the ...
2
1,558
ERROR in ./src/client-app/index.js - Module build failed: Error: Cannot find module '@babel/core'
<p>I am trying to run an app written in React and Webpack and webpack-dev-server too. I'm using Windows. I'm using: Node v8.9.4 Npm v5.6.0 Webpack v3.11.0 Webpack-dev-server v2.9.1 I am executing this command to start the app:</p> <pre><code>"start": "webpack-dev-server --config webpack/config/dev.config.js --open", <...
2
5,603
publish html plugin: violates the following Content Security Policy directive
<p>Hi I'm using jenkins and i have generate report in the end of automation run, after the run the jenkins generate publish html directory to the job folder that I can see the current log report, but I got some error</p> <blockquote> <p>ExtentScreenshot.html:1 The source list for Content Security Policy directive ...
2
1,204
FB Login Button Not Showing in Chrome and IE
<p>I have seen similar problems posted here, and I have added as many solutions that made sense (HTML Doc changes, relocating and reordering the scripts/button) but the button only renders and is click-able in Firefox.</p> <p>Facebook Tab/Page interface is here: facebook.com/TodaysAesthetics/app_157293451075619</p> <...
2
1,473
Make web workers start sooner, without delay
<p>I'm trying to speed up a javascript website I'm building with a web worker. This is totally new for me, I'm learning. </p> <p>I managed to have this web worker run and do what it should (i.e. load some CSV data, transform it and send it back). </p> <p>But It seems to me that this web worker is starting his job a...
2
1,253
openAPI 3.0 is not showing try it out button for API endpoints
<p>I've configured my api with swagger openapi3.0, unfortunately, it is not showing try it out button for my API endpoints. am I missing any configuration in the swagger file? can anyone help me how to solve this error?<a href="https://i.stack.imgur.com/MyvKF.png" rel="nofollow noreferrer"><img src="https://i.stack.img...
2
1,297
Component with fewer than 1 type argumanet in class delcaration
<pre><code>/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow */ import React, {Component} from 'react'; import {Platform, StyleSheet, Text, View} from 'react-native'; import { createBottomTabNavigator, createSwitchNavigator, createStackNavigator, createAppContainer } fr...
2
1,838
Mapbox GL JS image overlay with multiple maps on page
<p>I now understand how image overlays work (I am a newbie) and have no issue inserting them into a map now, however I have 4 maps on one page (image attached of how it looks) and I am wanting to overlay an image on one of them (top left). Below is my code that works - and below that code that doesn't work. Where do I ...
2
3,001
Update textbox value in asp page through WCF service from console application
<p>I have a c# console application scheduled to run on a Win 2003 server reading values such as disk space, cpu usage etc.</p> <p>Now I want to display these values online or real-time, on an aspx page.</p> <p>This my (non-working) attempt so far:</p> <p>The WCF service:</p> <pre><code>using System; using System.Co...
2
1,603
pyGame add enemy sprites
<p>im currently trying to work on a small adventure game use Pygame of course, but im having trouble with adding enemys or 'creeps' basic movement is done and even a map editor or sorts but i require x number of creeps to be spawned and well, ideally, try and touch the player sprite.</p> <p>please find below my source...
2
10,707
Scrapy Custom Project Command: "ImportError: No module named commands"
<p>I am trying to make a Scrapy custom project command to run spiders. I found <a href="http://doc.scrapy.org/en/master/topics/commands.html?highlight=commands_module#register-commands-via-setup-py-entry-points" rel="nofollow">Register commands via setup.py entry points</a> and did the following:</p> <ol> <li><p><code...
2
1,172
docker, container ports and iptables
<p>I have inserted an iptables rule to block access to my containers from the internet (according to the official docker docs), but now my containers cannot access the internet either.</p> <p>I run a container on a dedicated server like this:</p> <pre><code>docker run --name mycontainer --network network1 -d -p 10000:8...
2
5,027
Select Multiple Columns from XML Type column in MS SQL Server
<p>I have used XML column for store data which can have dynamic nodes and attributes i.e. a Account node can have N number of nodes, I would like to retrieve those all nodes in single select query as multiple columns i.e. Col1, Col2, Col3 etc.</p> <p>I tried below query but its returning vertical rows, I would like to...
2
1,044
Validate a table column
<p>How to validate a specific column in a HTML table by click function in javascript or jQuery?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table class="table tabl...
2
1,185
pdo_sqlsvr SQLSTATE[08001]: [Microsoft][ODBC Driver 11 for SQL Server]TCP Provider
<p>I am trying to connect remotely to the mssql server by using <code>pdo sql_srv</code> but I still get error by fallwoing.<strong>PDOException</strong>:</p> <blockquote> <p>SQLSTATE[08001]: [Microsoft][ODBC Driver 11 for SQL Server]TCP Provider: An attempt was made to access a socket in a way forbidden by its ...
2
1,037
Update column based on value in previous row plus values in current row
<p>I'm trying to calculate the new qty on hand based on the previous row's new quantity on hand plus the current row's receipts minus the current rows issued. Then for the next row repeat the process. I want reset based on item_no, and loc. </p> <p>Below is the code to create the table.</p> <pre><code>CREATE TAB...
2
1,500
gulp-uncss 'TypeError' undefined when used with gulp-if
<p>I started loving gulp but I've been having too many cryptic errors that are very hard to find and at the end I'm working for my gulpfile.js instead of doing my job.</p> <p>Anyway, I tried <code>gulp-uncss</code> before, outside <code>gulp-useref</code> and therefore outside <code>gulp-if</code>, but my <code>gulpfi...
2
1,055
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'univ' cannot be null
<p>I am trying to insert data in table using laravel and mysql but I see the error <code>SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'univ' cannot be null</code> , while I am not inserting any null value. I am filling all the field in form. what is the reason? please help.</p> <p>My form is education....
2
2,502
Verifying a mocked method uses specific CancellationTokenSouce which is also mocked
<p>Im trying to verify that a specific CancellationTokenSource is used as an actual parameter in a method call.</p> <pre><code> public void DataVerification(Object sender, EventArgs e) { _entity.PopulateEntityDataVerificationStage(_view.DataTypeInputs, _view.ColumnNameInputs, _view.InitialRo...
2
1,419
Android camera preview rendered to a texture is stretched
<p>I'm sending android camera preview to Unity3d using texture and it is stretched. The preview is not rendered to any view in android but directly to a texture with:</p> <pre><code>setPreviewTexture(texture); </code></pre> <p>Then, the bytes are sent to Unity3d and drawn on screen with every onPreviewFrame.</p> <p>...
2
2,671
TypeError: undefined is not an object (evaluating '_Firebase.default.init')
<p>I am trying to initialize my firebase inside my react native app. When I call the function init() from my Firebase.js to my App.js using Firebase.init(), an error message will appear. </p> <p>I have excluded the non-important parts of the code.</p> <pre><code>//App.js import Firebase from './database/Firebase'; ...
2
1,254
LDA in Spark 1.3.1. Converting raw data into Term Document Matrix?
<p>I'm trying out LDA with Spark 1.3.1 in Java and got this error:</p> <pre><code>Error: application failed with exception org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 1 times, most recent failure: Lost task 0.0 in stage 0.0 (TID 0, localhost): java.lang.NumberFormatExc...
2
1,175
Django debug toolbar says I have a query that is duplicate 1367 times
<p>I have a short view but with a complex query (the model that uses comes from a database MySQL view). The problem is that when this view executes, template loads too slow. The Django debug tool shows that a query is duplicated 1367 times, but the duplicated query has nothing to do with the complex database view query...
2
4,001
Configure JOGL with maven
<p>I'm trying to configure JOGL with maven following the guide found here: <a href="http://jogamp.org/wiki/index.php/Maven" rel="nofollow noreferrer">http://jogamp.org/wiki/index.php/Maven</a></p> <p>As far as I understand should be enough to include these dependencies:</p> <pre><code>&lt;dependencies&gt; &lt;dep...
2
1,862
Android : String method return Null
<p>I know that this Question is repeated but I can't find the answer in Internet.</p> <p><code>02-10 11:03:28.465 22410-22767/com.eztimetable.eztimetable I/System.out﹕ ERROR : null 02-10 11:03:28.465 22410-22767/com.eztimetable.eztimetable I/System.out﹕ error 02-10 11:03:28.595 22410-22410/com.eztimetable.eztimetab...
2
1,291
Failed to change locale for db to 'en_US'
<p>I go through all the link regarding this issue, but not able to get any clue on that. The exception report I got is from Google Developer Console. I tried the code to in Nexus 4 Device, its working fine.</p> <p>Below is my stack trace &amp; Code. Can anyone found why the exception is happening.</p> <p><strong>Stac...
2
2,114
Wrong position of CAShapelayer in sublayers of UIView
<p>I'm trying to draw: O-O-O in the midY of UIView but get:</p> <p><a href="https://i.stack.imgur.com/miLSr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/miLSr.png" alt="wrong position of layers"></a></p> <p>Here is a func for calculating position for CAShapeLayer.frame. Even indices are dots and...
2
1,202
export outlook calendar event using applescript
<p>I try to export calendar event to file .ics format but some error:</p> <pre><code>property byCategory : "By category" property byPattern : "Names matching pattern" property icsFormat : "VCalendar" property outputFolderPath : the path to the desktop ------------------------------------------- -- main -- set calend...
2
2,001
How to handle the code when onSurfaceChanged method is being called twice
<p>sometimes depending on device, onSurfaceChanged method called more than once, which results in crash of camera preview(I am using camera2). I have no idea how resolve this problem. Here is a part of my code:</p> <pre><code>@Override public synchronized void onSurfaceChanged(GL10 gl, int width, int height) { ...
2
1,293
Uncaught TypeError: Cannot read property 'addPoint' of undefined ( Highstock live data)
<p>As I posted a previous question, I am using Highcharts to consume a REST API (Spring app) (<a href="http://85614a50.ngrok.io/api/devices" rel="nofollow noreferrer">http://85614a50.ngrok.io/api/devices</a>) with 2 series (axes)</p> <p>The first series is memory vs time, so the object contains (Memory usage, timestam...
2
4,725
PingFederate Single Log-Off: My IdP issues only one LogoutRequest
<p>Building off of @Scott T.'s <a href="https://stackoverflow.com/q/8234254/109941">answer</a>:</p> <blockquote> <p>...PingFederate (acting as an IdP) <strong>knows</strong> which SPs you have federated with in a given session. When the user kicks off SLO (from the example you gave - at the IdP - it could also b...
2
1,382
Ajax Success event does not fire when calling service
<p>I am using JQuery to make a AJAX to a local service. My local service is a HttpHandler (e.g., Request.ashx). Within Request.ashx, it's responsiblity is to make a call to an external website (e.g., CallExternalWebsite()). CallExternalWebsite() uses .NET's System.Net.WebRequest() to initiate a request. When the ex...
2
1,032
Microsoft Cognitive Service Vision API ClientException Error
<p>I'm trying to use Vision Cognitive Services to receive the description of an image but my code always throws this exception:</p> <pre><code>Exception Microsoft.ProjectOxford.Vision.ClientException HResult=0x80131500 Origine=&lt;Non è possibile valutare l'origine dell'eccezione&gt; Stack: in Microsoft.ProjectOxford....
2
1,207
Excel ADO force data type
<p>I have data stored in excel files and I'm trying to run SQL queries on them using VBA. Problem is that the data I'm working with is pretty dirty and unfortunately my control over its contents is very limited. Because of that excel is freaking out and is constantly assigning wrong data type to columns.</p> <p>My bes...
2
1,194
Parsing a complicated XML file with Python
<p>I am trying to parse a very ugly XML file with Python. I manage to get pretty well into it, but at the npdoc element it fails. What am I doing wrong?</p> <p>XML:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt; &lt;npexchange xmlns="http://www.example.com/npexchange/3.5" xmlns:xsi="http:...
2
1,078
Handling client and server error on grpc java/node
<p>I am using grpc to communicate between a Java server and node client. When either of them die/crash the other dies to.</p> <p>Here is the exception thrown on Java server when node client dies -</p> <pre><code>Nov 08, 2016 11:28:03 AM io.grpc.netty.NettyServerHandler onConnectionError WARNING: Connection Error java...
2
1,572
otest crash with -[id<NSURLAuthenticationChallengeSender> userCredential:]
<p>We have a class that uses <code>AFHTTPClient</code> and <code>AFHTTPRequestOperation</code>'s internally. In development, we connect to a server with an invalid SSL Certificate, so we have this code in the method that returns the request operations:</p> <pre><code>if (self.allowInvalidSSLCertificates) { ...
2
5,347
Rspec and Capybara throw inconsistent Postgresql errors each time I run my tests
<p>Postgresql throws various errors or stalls I run my feature test suite which uses Rspec, Capybara-Selenium, and DatabaseCleaner. I can't pin it down because the error changes every time. Sometimes there are no errors at all. I would appreciate any guidance out there. </p> <p>Here's Error1: </p> <pre><code>Processi...
2
2,146
Warning system, getting the reason(includes discord.js, quick.db)
<p>I want to know how I can get the reason and when I do .warnings @user it says the amount of warnings and reason. I have the amount of warnings clear, but not the reason. When I run this code it says &quot;Foot has 4 warning the reasons is [object Object]&quot; Foot is my account btw.</p> <p>I've tried db.fetch() I'v...
2
1,243
AngularJS ng-repeat - Data list inside a another list items
<p>I want to bind a data list. But this data list is inside a another list. In following code <code>ng-repeat="Menu in Menus"</code> is working properly. but <code>ng-repeat="TopCat in Menu.TopCategories"</code> is not working and it is inside the list.</p> <pre><code>&lt;li ng-repeat="Menu in Menus"&gt; ...
2
1,063
SQL query to fetch products with most top 1 most recent price change
<p>I'm using SQL Server 2005.</p> <p>Let's say I have a table for products and another table for prices so that I can track price changes over time. I need a query that fetches distinct products (easy part) plus each product's most recent price and the date it changed. </p> <p>Products Table:</p> <pre><code>CREATE T...
2
1,290
Can't start mongodb on AWS instance
<p>I have worked on mongodb database. I have installed this in my server &amp; worked on this. But currently I am facing a problem. My mongodb database is not responding. When I am giving this command : mongo</p> <pre><code>MongoDB shell version: 2.6.10 connecting to: test 2015-07-02T06:22:11.363+0000 warning: Failed...
2
1,220
Testing @ngrx/Effect with jest
<p>I am trying to test @ngrx/Effect with Jest <a href="https://brianflove.com/2018/06/28/ngrx-testing-effects/" rel="nofollow noreferrer">following this article</a> but I keep having the same error no matter what. The <a href="https://github.com/ngrx/platform/blob/6.1.0/docs/effects/testing.md" rel="nofollow noreferrer...
2
2,815
Write loop sql query from data array (php, mysql)
<p>I have a problem with php script.</p> <p>I have an array, which is generated from form, where <code>$_POST['store']</code> is an array from jQuery form with functionality to add multiple rows:</p> <pre><code> Array ( [client] =&gt; [darvad] =&gt; [owca] =&gt; [ldrive] =&gt; [store] =&gt; Ar...
2
2,886
Why does FragmentTransaction.hide() not hide my fragment?
<p>I'm making an Android app that uses the action bar tabs (I'm using the support library's action bar), each associated with a fragment that I generate dynamically.</p> <p>The idea is to show the fragment whenever its tab is selected using FragmentTransaction.show() and hide the deselected tab with FragmentTransactio...
2
1,170
Splitting Xml Document according to node
<p>My xml document looks like .. (its actually a kml file for google map..)</p> <pre><code> &lt;kml xmlns="http://www.opengis.net/kml/2.2"&gt; &lt;Document&gt; &lt;Folder&gt; &lt;Name&gt;Folder1&lt;/Name&gt; &lt;Placemark&gt; &lt;Name&gt;Placemark1Folder1&lt;/Name&gt; &lt;LookAt&gt; ...
2
1,585
Chrome 30 and the width of elements of type display: table-cell?
<p>I'm experiencing a problem with with the latest beta version of Chrome (30.0.1599.14 beta.)</p> <p>I cannot calculate the true width of elements of type display: table-cell.</p> <p>Here is some test code that outputs the width of a table cell to the console as the browser window is resized:</p> <pre><code>&lt;!DO...
2
1,161
Dynamically rendered UI: how to delete old reactive variables on second run
<p>Hello heroes of Stack overflow, </p> <p><strong>SHORT SUMMARY:</strong> <em>App works great, until you change the entered number in the input field. UI re-renders great, but server side fails on stuff still in the memory it seems. Detailed explanation below:</em> </p> <p>I have a nicely working dynamic app, but I...
2
5,906