title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Buttons Not Working When Adding Table Rows
<p>I have a table with a column that has 2 buttons, edit and deactivate. Both function perfectly. However, I also have a button outside of the table that adds a row to the table. On all added rows, neither my edit nor deactivate button work at all. How do I fix this?</p> <p>HTML/PHP:</p> <pre><code>&lt;table id="html...
1
3,000
Align Items of RecyclerView in each row in android
<p>I'm using RecyclerView with StaggeredGridLayoutManager to show tables of courses in my application, and that was OK, like the picture below: </p> <p><a href="https://i.stack.imgur.com/8gYvM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8gYvM.jpg" alt="enter image description here"></a></p> <p>...
1
2,563
Check if geo location(lat,lon) inside a circular geo fence
<p>I have a saved geo location(latitude,longitude).when a user presses a action button in app, the current location is recorded.</p> <blockquote> <p>I want to check if the current latitude,longitude(which I have) falls in a circular geofence (who's center geo point I have ).</p> </blockquote> <p>I don't want to c...
1
7,329
How set property background "Transparent" in listbox
<p>I have ListBox and i need set background "Transparent".</p> <p><img src="https://i.stack.imgur.com/4rPXf.jpg" alt="alt text"></p> <p>I've selected in red, then that should be transparent: <img src="https://i.stack.imgur.com/u8SH3.jpg" alt="alt text"></p> <p>style ListBox, ListBoxItem, ScrollViewer and ScrollBar:<...
1
14,674
Strange url encoding issue
<p>I have a strange issue with urlencoding a plus sign <code>+</code> as a query param for a request against an API. The API's documentation states:</p> <blockquote> <p>The date has to be in the W3C format, e.g. '2016-10-24T13:33:23+02:00'.</p> </blockquote> <p>So far so good, so I'm using this code (minimalized) t...
1
1,295
Flipfont app for galaxy phones
<p>I want to make an app that can change system font style in galaxy phone after installing my app user can change font from Setting>my Device >font style and choose from list without requiring root permission. I have my own font style in true type file. Click <a href="https://m.allfreeapk.com/present-flipfont,565969/"...
1
1,517
Pass java object to new android instance on list view click
<p>I have a list view populated by json returned from an api. As I parse the json I create a new java object that gets added to an array list. The array list is then used to build the list view. I can currentley click on an item in the list view and get a toast saying an item was clicked. </p> <p>I would like to to be...
1
1,907
Morris.js charts not working for me
<p>Any help Using morris.js charts. Downloaded from here </p> <p><a href="https://github.com/morrisjs/morris.js/" rel="nofollow">https://github.com/morrisjs/morris.js/</a> </p> <p>All works well, however when I want to add a different type of chart the chart will not show up, and he donut chart below stops working.</...
1
2,815
Why i am getting Post Not Allowed (405)?
<p>I am working with AngularJs, Bootstrap in front end and Java- Spring MVC -Spring security-Hibernate in the backend. 1. So i created a user 2. I log in 3. I fill the profil form and when a save, i have a 405 error.</p> <p>I don't understand why i am getting a 405 error when i make a post request.</p> <p>This is my ...
1
1,702
Display BMP using CreateWindow
<p>I want to display a logo at the top of the screen. The logo is a bmp file. I made an example program to show what happens in full working code:</p> <pre><code>#include &lt;windows.h&gt; #include &lt;commctrl.h&gt; #include &lt;tchar.h&gt; #include "resource.h" LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM,...
1
1,245
IMG_Load returns SDL_image error "unsupported image format"
<p>When I attempt to load a png file, the error "unsupported image format" is returned. People have previously posted about this topic on StackOverflow, but none of the solutions have seemed to work for me.</p> <p>I am working on a Linux machine, compiling with g++</p> <p>Here are my libraries...</p> <pre><code>#inc...
1
3,415
How to test Spring CrudRepository using @DataJpaTest in Spring boot 2.1.0.M4 using Junit 5
<p>I cannot test my spring crud repository using spring boot 2.1.0.M4 with Junit5 and <code>@DataJpaTest</code>. I am using the following spring crud repository interface.</p> <pre><code>@Repository public interface DestinationRepository extends CrudRepository&lt;Destination, String&gt; { Optional&lt;Destination&...
1
10,726
TypeError: Cannot read property 'pipe' of undefined gulpjs
<p>Im trying to setup gulp-spritesmith and getting the above error every time i paste something in the icons folder.Also trying to get it to compile through sass.Node version 2.14.12 on a mac.If there any other 'sprite' plugins that are easier to use please advise. </p> <pre><code> 'use strict'; // Include gulp va...
1
2,254
c++ using cin in a switch statement
<p>c++ I am writing a program with a menu. I am using a do while loop and a switch statement to execute the menu. I am calling functions into the different cases. When i call a function that has cin in it my program skips over the cin. How can i get the cin to work in my switch statement? </p> <p>here is the functi...
1
2,218
Python Reading Multiple NetCDF Rainfall files of variable size
<p>The issue I have is that the Australian Bureau of Meteorology has supplied me with Rainfall Data Files, that contains rainfall records recorded every 30 minutes for all active gauges. The problem is that for 1 day there are 48 30Minute files. I want to create time series of a particular Gauge. Which means reading al...
1
1,570
ASP.NET 5 Project Not Properly Targeting .NET 4.6.1 and cannot be debugged
<p>I am running ASP.NET5 RC1 UPDATE1. In project.json my framework is "dnx461". When I try to debug (in IIS Express with DNX_IIS_RUNTIME_FRAMEWORK set to DNX461) I get the following warning:</p> <blockquote> <p>Warning MSB3274 The primary reference "C:\mydll.dll" could not be resolved because it was built agains...
1
1,574
Show preview image for custom Gutenberg blocks
<p>I've created a batch of custom <code>ACF gutenberg</code> blocks and now trying to assign a preview image.</p> <p><strong>Issue: Getting the preview image to show</strong></p> <p>The below image here shows a <code>paragraph</code> component which is a default block.</p> <p><a href="https://i.stack.imgur.com/klkMJ.pn...
1
2,472
MediaMetadataCompat METADATA_KEY_ART only sets image the first time
<p>In my application, I'm making use of <code>MediaSessionCompat</code> to handle playing audio from my media player service. Particularly, I want to broadcast the current song's metadata to bluetooth devices (which works), and set the lock screen image to the current song's album art.</p> <p>Similar to this question:...
1
1,250
Example of SAX XML Parser for iPhone in iOS
<p>Can somebody post a link of SAX XML parser example in XCode, not from developer.apple.com. I need to parse this XML file:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;userfood_overview xmlns="http://www.wikifood.lu" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="htt...
1
1,540
Error: Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported`
<p>Error: Apps targeting Android 12 and higher are required to specify an explicit value for <code>android:exported</code> when the corresponding component has an intent filter defined.</p> <p>android:exported=&quot;true&quot; already been declared in my AndroidManifest.xml file but still I am receiving this error and ...
1
1,108
Get Predicted result from tensorflow
<p>I am doing my first tensor flow example with following code. </p> <pre><code>train_x,train_y,test_x,test_y=create_feature_sets_and_labels('pro.txt','neg.txt') n_nodes_hl1 = 1500 n_nodes_hl2 = 1500 n_nodes_hl3 = 1500 n_classes = 2 batch_size = 100 hm_epochs = 7 x = tf.placeholder('float') y = tf.placeholder('float...
1
1,817
The message with Action '' cannot be processed
<p>Can anyone tell me what i can do to fix this error when i call a WCF SOAP service from JQuery?</p> <p>Error: </p> <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;s:Body&gt;&lt;s:Fault&gt;&lt;faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none"&gt;a:Action...
1
1,638
send multiple file over TCP with C# using TcpClient
<p>I'm trying to send multiple files over TCP using C# TcpClient, for a single file it works great, but when I have multiple files, it sends only the first one.</p> <p>Here is my code:</p> <h1>SENDING FILES</h1> <pre><code>try { TcpClient tcpClient = new TcpClient(); NetworkStream networkStream; FileStre...
1
2,063
NullPointerException: Attempt to invoke virtual method ... on a null object reference
<p>When I start my SettingsActivity, I get the following Error, but I don't know why, because I have done everything as always.</p> <p>ERROR:</p> <p><code>FATAL EXCEPTION: main Process: com.android.niklasvlach.vertretung, PID: 9175 ...
1
3,384
Karma testing with typescript and angular 2 is throwing Typeerror for "System.config"
<p>I'm super new to testing, I'm using angular 2 as a new beginning to learning.</p> <p><strong>ERRROR:</strong></p> <pre><code>INFO [Chrome 42.0.2311 (Mac OS X 10.9.3)]: Connected on socket xo5ufjmFKLGc5QSuAAAB with id 34336816 WARN [web-server]: 404: /base/jspm_packages/es6-module-loader.js ERROR [karma]: Uncaught ...
1
1,498
Spring Boot and Thymeleaf: Object id field is null when sending back to controller
<p>I am using Spring MVC with JPA (Hibernate). The problem is that when I try to edit a user the id is not sent back (null) and therefore the repository save method makes a new User object instead of updating it. I have a User class which has a <code>MappedSuperClass</code> <code>BaseEntity</code>. The mapping is imple...
1
4,437
Cannot execute script in Termux that requires SU permissions
<p>So I don't usually post, instead spending hours trawling forums looking for an answer - but I'm at a complete loss.</p> <p>What I want to do:</p> <p>Quite simple really, I want a script that will automatically change the MAC address on my OnePlus 5, I already have all the commands I need to do this and can easily ...
1
1,063
Getting whole query string from REST GET service call
<p>Is there a way to get the whole query string without it being parsed? As in:</p> <pre><code>http://localhost:8080/spring-rest/ex/bars?id=100,150&amp;name=abc,efg </code></pre> <p>I want to get everything following the ? as one string. Yes I will parse it later, but this allows my controller and all follow-on code ...
1
1,082
Asp.Net / C# - How to get the Text of a Label control nested inside a Repeater?
<p>I am trying to get the text of my label which is inside a repeater, but I keep getting a <code>NullPointerException</code>. </p> <p>All of the data is coming from database and it is coming correctly. </p> <p>When I click on the LinkButton, I want to use the Label Text for next bit code. </p> <p>Aspx page:</p> <p...
1
1,235
Opencv(Python) memory usage issue
<p>I've a problem with my software in Python. It's a big while cicle where I took a intel realsense (USB camera) stream. Using opencv I make a couple of findContours and I send the results of contours to another software. </p> <p>The problem is that there is a memory consuption. In fact the RAM usage increase every 2...
1
6,336
How to capture keyboard input to stop an animation in opengl code.
<p>I have some code to move a toy car from left to right.</p> <p>I want to transform the code to stop its movement by the pressing of any key for example 's'....could someone help me do that...here is my code so far.</p> <pre><code>#include &lt;GL/glut.h&gt; // Header File For The GLUT Library #include &lt;GL/gl...
1
2,309
Cannot read property "displayName" of null, React DevTools
<p>I'm working with a boilerplate React + Redux + Electron project. Devtools worked fine while I was adding a bunch of components and working on the UI, but now it won't load and any time I try to load it I get an error in the console, initially telling me there's an Uncaught Type Error (#1 below), the second being a w...
1
2,939
How to combine/chain multiple Mono/Flux containing different datatypes without nested subscriptions
<p>We are using project-reactor to retrieve some data from an external webservice and generate a bunch of resulting objects.</p> <p>First we need to fetch some masterdata that is needed to trigger the next webservice calls. After the masterdata is available we retrieve some more data based on the results of the master...
1
2,108
Designer issue in VS: Events cannot be set on the object passed to the event binding service
<p>I have a little problem: the Winform control (that contains between others WPF) suddenly stopped to be displayed in Designer. </p> <p><img src="https://i.stack.imgur.com/kDr7e.png" alt="alt text"></p> <p>Message:</p> <blockquote> <p>Events cannot be set on the object passed to the event binding service beca...
1
10,709
schtasks /change
<p>I wan't to change the repeat time from one task from 5 minutes to 1 minute. The task is there:</p> <p>Folder: \</p> <p>HostName: ZSERVER</p> <p>TaskName: \Check_IIS_Server</p> <p>Next Run Time: 04.10.2012 16:30:45</p> <p>Status: ...
1
1,285
Jquery Tokeninput how to get name instead of the id
<p>I tried calling that, but it doesn't seem to return anything.. Am I doing something wrong?</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function() { $("input[type=button]").click(function () { alert("Would submit: " + $(this).siblings("i...
1
2,517
struts2 - java.lang.IllegalStateException occurs intermittently while action calls result stream to download PDF file
<p>I have an action called GetFile which directly opens a file download box to open PDF.</p> <p>Below is the struts.xml configuration and the action class for the same. I am using result type as stream to achieve this. I can see that the pdf download box opens all the times and i am also able to download the file. </p...
1
2,714
Using Python OpenCV, How would you extract an image area inside a particular color bounding box?
<p>Given a photo that I have manually drawn a colored bounding box, I want to copy / crop the image content, to keep the content inside the bounding box.</p> <p>The goal is to detect that color bounding box, and then use that to tell the script where to copy/crop.</p> <p>I have experimented with contours, but it appe...
1
1,141
Applet fails to load with Java 1.7 on Windows 7 if jar file is >a certain size
<p>We have a fairly complex signed applet that's been working fine for us since we developed it a couple of years ago. It runs fine with Java 1.5 and 1.6 on all OS/browser configurations we care about.</p> <p>It does not work with Java 1.7 in any browser on Windows 7 or Vista. We've seen it work on Windows XP. This ap...
1
2,892
C# exception handling in sharepoint know for sure file is not found
<p>This is my Code:</p> <pre><code> try{ using (Microsoft.SharePoint.Client.ClientContext context = new Microsoft.SharePoint.Client.ClientContext(siteURL)) { #region get the name of the file and check if the file is valid context.AuthenticationMode = Microsoft.Sha...
1
1,155
DirectoryEntry.Children.Remove throws "unspecified error"
<p>I have a little code to delete a security group from Active Directory, but when run, I get a COMException with the message "Unspecified error".</p> <p>Here is the code:</p> <pre><code>public void DeleteGroup(Model.Asset pADSecurityGroup) { using(DirectoryEntry ou = new DirectoryEntry(pADSecurityGroup.Organizat...
1
1,228
Thread not throwing an InterruptedException when interrupt() is called
<p>I am working on an application that reads and processes data over a network. While testing the connecting/disconnecting logic of the program I noticed that my consumer thread was not closing when it reached it's closing condition. Below is a stripped out version of the consumer class.</p> <pre><code>import java.i...
1
1,406
How can i get telnet output printed line by line?
<p>I have implemented a script that connects to a Cisco device and collects the show run output. </p> <p>The script is:</p> <pre><code>import getpass import telnetlib import time HOST = "10.62.149.9" user = input("Enter your remote account: ") password = getpass.getpass("User Password: ") enable = getpass.getpass("...
1
1,095
How to check if position if valid in StreetView in Android
<p>I have an app that is randomly generating positions in a GoogleMaps based on a defined boundary. So I first generate a random LatLng and then I verify if this point is inside my boundary. If it is, it's valid.</p> <pre><code>Builder builder = new LatLngBounds.Builder(); double antartica[] = {-62.5670958528...
1
1,543
How to Update Cookie Value in Angular js (or) JQuery
<p>I am Struck in Updating Cookie Value.Here I am using Angular js for scription. and here i need to update existing cookie, but i can't able update that one.</p> <p>here is my code, Please any one review and suggest me.</p> <pre><code>$.ajax({ type : "POST", url : appUrl + "/Login", data : { user...
1
1,287
Can't run pip: UnicodeDecodeError
<p>I have trouble using pip. For example: </p> <pre><code>pip install numpy --upgrade </code></pre> <p>Gives me the following error:</p> <pre><code>Collecting numpy Using cached numpy-1.10.2.tar.gz Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/base...
1
1,915
d3.js move node and label together
<p>In our project I want to add cicrles dynamically when the add node button is clicked and link these circles with an arrow. But When I linked the circles labels of the circles do not move together with circles. The code is below.</p> <p>JS Fiddle Link: <a href="http://jsfiddle.net/pinargocebe/kEhes/3/" rel="nofollo...
1
2,754
Changing page count with PrintDocumentAdapter and PrintManager
<p>I'm extending PrintDocumentAdapter to send roster information to a printer via Cloud Print. Everything is working well, until the settings are changed so that the number of pages in the document is decreased.</p> <p>For example, a table will fit on two A4 pages, but will require three A5 pages. Cloud Print starts w...
1
2,256
How to center a CSS spinning animation div?
<p>I'm trying to create a basic responsive-design webpage.</p> <p>As soon as the visitor arrives, I want them to see a CSS spinning animation loader before the loader fades out and the content fades in - I have acheived this using code from: <a href="https://ihatetomatoes.net/demos/css3-preloader/" rel="nofollow noref...
1
1,409
Laravel - foreach loop returns Trying to get property of non-object
<p>I have a collection of arrays (18), that ALL have a relation - <code>question</code>.</p> <p><strong>Function getting the data:</strong></p> <pre><code> $auditResults = Audit::where('audit_id', $id) -&gt;with('question', 'question.auditQuestion') -&gt;get(); </code></pre> <p>Within the question array, I...
1
1,594
Tensorflow converging but bad predictions
<p>I posted a similar question the other day <a href="https://stackoverflow.com/questions/37898795/tensorflow-accuracy-at-99-but-predictions-awful">here</a>, but I have since made edits to bugs that I found, and the problem of bad predictions remains. </p> <p>I have two networks -- one with 3 conv layers and another w...
1
9,971
How do you properly implement (C++) thread local storage in a dynamically loaded DLL?
<p>In this case my dynamically loaded DLL is loaded by Windows Explorer in order to add a new propertysheet (new tab) to the file/folder properties page.</p> <p>A simple example of this is StrmExt.dll (<a href="http://download.microsoft.com/download/F/C/6/FC6943EB-790A-44AA-B32D-14ED7E22FD5D/NTFSExt.exe" rel="nofollow ...
1
1,497
How to serve Django static files through HTTPS?
<p>I'm getting 404 errors when accessing static files served through HTTPS but static files work fine through HTTP. </p> <p>To be clear, I can access a particular page both ways e.g. <code>http://domain.com/page</code> and <code>https://domain.com/page</code> but in the HTTPS case, the images will fail to load. </p>...
1
3,084
Tomcat 5.5 Servlet/JSP/JSTL dependencies
<p>I have a problem with Tomcat 5.5 and Java EE webapp libraries. I'm using Gradle for dependency management and I'm using JSP API 2.0, Servlet API 2.4 and JSTL 1.1.</p> <p>I'm getting a <code>org.apache.jasper.JasperException: The absolute uri: <a href="http://java.sun.com/jsp/jstl/core" rel="nofollow">http://java.su...
1
1,103
rspec_api_documentation - How to have multiple examples
<p>My goal is to show multiple examples of parameters and responses using rspec_api_documentation with rswag-ui or by adding swagger-ui directly to the project. I'm having some trouble generating the correct open_api.json with my config and am wondering what I am doing wrong.</p> <p>Gems: </p> <ul> <li><a href="http...
1
4,411
AngularJS - Any way to call javascript after the template is linked?
<p>I'm trying to use a jQuery plugin (<a href="http://www.plupload.com/index.php" rel="nofollow">Plupload</a>) with AngularJS. I have created a directive that will be my file upload "widget". The directive looks like this (The code in the link function is a very simplified version of <a href="http://www.plupload.com/ex...
1
1,175
Stored procedure using cursor in mySql
<p>I wrote a stored procedure using cursor in mysql but that procedure is taking 10 second to fetch the result while that result set have only 450 records so, I want to know that why that proedure is taking that much time to fetch tha record.</p> <p>procedure as below:</p> <pre><code>DELIMITER // DROP PROCEDURE IF EX...
1
1,402
Hadoop: java.lang.Exception: java.lang.RuntimeException: Error in configuring object
<p>Thanks for your help first. In the map class, I instantiated another class WebPageToText. My first question: will the print in the map class appear when running the code in Hadoop? 2nd question: Please help me with this error.</p> <p>I keep getting this problem:</p> <pre><code> 14/04/02 20:39:35 INFO util.Nativ...
1
3,494
How to get actual connections count for NetworkServer in Unity
<p>I'm going to develop a simple multiplayer for my Unity game project. I've started from HLAPI, but it appears to be vvvery slow on spawning and syncing states, so I've decided to investigate Unity Internet services instead, starting from the basic examples at <a href="https://docs.unity3d.com/Manual/UNetInternetServi...
1
1,786
How to avoid putting a specific version of Spring Boot in a library
<p>I am developing a library based on Spring Boot, which could be used in multiple Spring Boot applications. The library is supposed to work with Spring Boot <code>1.3.0.M1</code> onwards.</p> <p>I was thinking how to avoid putting a specific version of Spring JARs in it, and instead let the application specify the ex...
1
1,147
jQuery Drag Image to Div
<p>I am trying to set up my site to allow an image to be dragged to one of three slots. The draggable works just fine, but the drop event is not firing. I tried adding alerts to the drag-stop event to identify if it was dropped on an area, but that always returns false. I have debugged the javascript, to no avail. ...
1
1,116
_mysql_exceptions error(1064, "check the manual that corresponds to your MySQL server version for the right syntax to use near 'default) VALUES
<p>I am trying to import CSVs to mysql database automatically using python script. I used the script from <a href="https://bitbucket.org/richardpenman/csv2mysql" rel="nofollow noreferrer">https://bitbucket.org/richardpenman/csv2mysql</a> to achieve this task. Below is the code:</p> <pre><code>import os import re import...
1
3,278
error on ggplot2 stat_smooth
<p>I receive an error when I try to use ggplot2 but I do not understand why. I am probably doing some little mistake somewhere... </p> <pre><code> &gt; head(d) TargetGroup2012 TargetGroup2000 bmi3 age3 PA_Score education3 asthma3 allasthma3 tres3 1 2 2 20.89796 55 ...
1
1,113
Is this a bug in Files.lines(), or am I misunderstanding something about parallel streams?
<p>Environment: Ubuntu x86_64 (14.10), Oracle JDK 1.8u25</p> <p>I try and use a parallel stream of <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/file/Files.html#lines-java.nio.file.Path-java.nio.charset.Charset-" rel="nofollow noreferrer"><code>Files.lines()</code></a> but I want to <a href="http://docs.o...
1
1,140
ggplot: plot columns of dataframe using
<p>I'm working in R and i've a problem :(. I've this dataframe that i want to plot using ggplot:</p> <pre><code> V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 1 -0.8067465 -0.4170181 0.9380890 0.613084937 0.4583916 0.4175951 -0.7183698 -0.3479931 -0.3...
1
1,205
Changing variable within while loop
<p>Instead of having code like the following:</p> <pre><code>if ( $Boss1 ==1) { $Boss1_holder = $tick; } else if ( $Boss1 ==0) { $Boss1_holder = $cross; } if ( $Boss2 ==1) { $Boss2_ho...
1
6,175
Can't seem to get chrome.contextMenus.onClicked to fire in Chrome extension
<p>I'm trying to write my first browser extension and I can't seem to get the click-handler to fire with a context menu item is clicked. The console.log calls don't seem to spit anything out to the console, and I tried using alert() just in case the "background" scripts (not sure what the difference between background ...
1
1,086
how do i solve integrating google map in fragment in android
<p>I have a problem integrating google map in fragment in android. I know how to do it in activity but fragment reference on this site are very old and not working in 2018. I don't have any error.below is fragment file. Any help will be highly appreciated. I have added API key and proper manifest file.</p> <pre><code>...
1
2,933
My page takes too long to load! How can I cut the page load time!
<p>Hi guys I'm testing out my application. Using firebugs I've found out my application is abominably slow and needs to speed up.</p> <p>I have one huge clumped up javascript file thats over 700KB, that includes all my js libraries but the spooky part is the code itself takes anything between 20 to 40 seconds to run. ...
1
1,636
primefaces autocomplete when cleared field giving previuos results of page on clicking submit button
<p>I am using an autocomplete tag of prime faces which retrieves results from a database.</p> <p>The problem is that when I submit the form leaving the autocomplete field empty the results I get on the page are those of the previous request (the previously selected autocomplete value) - it only gets cleared when I ref...
1
1,268
Invalid property 'fields[0]' of bean class
<p>I am working with spring and my entity is </p> <p><strong>myEntity.java</strong></p> <pre><code>@Entity public class Ecran { ... @OneToMany(fetch=FetchType.EAGER, cascade = { CascadeType.ALL } , mappedBy="ecran") public Set&lt;Fields&gt; fields = new HashSet&lt;&gt;(); ... } </code></pre> <p>and i am trying to c...
1
6,504
Android and Client Certificates
<p>I have been searching for this for a few weeks and can't seem to find an answer anywhere. I am trying to do the following for Android. This code is from a C# app I wrote but am porting it to Android. The web endpoint requires a cert to be attached to the request for mutual authentication to make the web service c...
1
1,456
STL List Implementation
<p>I've implemented a C++ STL list for practice purpose (obviously all constructors &amp; methods aren't there). Most of the functions are working properly. </p> <pre><code>#ifndef list_H #define list_H #include &lt;iostream&gt; #include &lt;stdexcept&gt; template &lt;typename T&gt; class list { public: list &lt...
1
4,982
Flutter SingleChildScrollView widget is pushing the whole container to the top and adding a chunk of white background
<p>When I add the SingleChildScrollView widget, the whole container just goes up and there's a box of white background at the bottom as shown in the screenshot. I tried removing the whole padding including the bottom and that didn't change anything. I'm not really sure what to do. Any help would be appreciated. <a href...
1
3,988
OpenCv Compiling With Code::Blocks on Windows
<p>I want to use the opencv library with code::blocks.</p> <p>I am using windows 7 Pro x86 os. I've installed Code::Blocks 13.12.</p> <p>I've download and extract opencv library on my disk (C:\Opencv242).</p> <p>I also have opencv 2.4.9 and some other versions.</p> <p>I already tried so much method. I never compili...
1
1,038
Hibernate 4 and Spring 4 HibernateException: No Session found for current thread
<p>I've looked trough all of the other posts regarding this issue and I can't seem to fix it. Everytime I call a method from my service, I get the No Session found exception.</p> <p>Here is my code:</p> <p>applicationContext.xml</p> <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt; &lt;beans xmlns="http://www...
1
4,343
Is it normal that the gcc atomic builtins are so slow?
<p>I have an application where I have to increment some statistics counters in a multi-threaded method. The incrementing has to be thread-safe, so I decided to use the gcc atomic builtins <code>__sync_add_and_fetch()</code> function. Just to get an idea of their impact, I did some simple performance testing and noticed...
1
3,293
My app crashes just because wakelock "DoNotSleep"
<p>My app works But when it goes to Stop service it just crashes because wakelock "DoNotSleep" state so I will be glad to hear some advices. thats my logcat:</p> <pre><code>05-15 00:41:06.925: E/AndroidRuntime(4471): FATAL EXCEPTION: main 05-15 00:41:06.925: E/AndroidRuntime(4471): java.lang.RuntimeException: Unable...
1
1,168
@model does not exist in current context MVC5
<p>I am facing the issue when I am trying to access model in the view as </p> <blockquote> <p>@model does not exits in the current context</p> </blockquote> <p>I have gone through many posts on the internet but could not resolve this issue. Below are the <code>Web.config</code> files for both inside the <code>View ...
1
2,266
Why does isomorphic-style-loader throw a TypeError: Cannot read property 'apply' of undefined when being used in unison with CSS-Modules
<p>I'm currently trying to render the application on the server, which works for the HTML and JS, but found that my styles (.less | .scss) would not load. I did some research and figured, not sure, that I was missing the <code>isomorphic-style-loader</code> in my Webpack configuration based on others running into the s...
1
3,852
angular wait for variable is defined
<p>I have 2 controllers and one service:</p> <pre><code>angular.module('objDescApp', ['ui.router', 'ui.bootstrap']); angular.module('objDescApp').config(['$stateProvider', '$urlRouterProvider', '$httpProvider', function ($stateProvider, $urlRouterProvider, $httpProvider) { 'use strict'; ...
1
1,867
How to write large amount of text to write characteristic
<p>I am writing an Android application with Xamarin.Android, but an answer in native Android would be appreciated as well. In my Android application, I have a BLE Write Characteristic that devices can write to. It works, but I can't send more than 20 bytes, the rest gets cut off. My code to create and add the service/c...
1
1,390
Position caret on dropdown menu Bootstrap 4
<p>How can I position a caret out of the drop-down menu? This is what I'm getting until now. </p> <p><a href="https://i.stack.imgur.com/ozysw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ozysw.png" alt=""></a></p> <p>This is what I'm trying to get. I'm trying to position the arrow like this drop...
1
1,025
no exported member 'Observable'
<p>I am trying to use agm in my angular project So I installed npm install @agm/core --save but when I use<br> AgmCoreModule.forRoot({ apiKey: 'my api' }), It makes an error that I can not understand :</p> <pre><code>ERROR in node_modules/@agm/core/services/google-maps-api-wrapper.d.ts(2,10): error TS2305: ...
1
1,184
First Received Frame was not SETTINGS - Etcd Java
<p>I am trying to run the jetcd client to access etcd running in a docker container on port 2379</p> <p>I was using the docker image <code>elcolio/etcd:latest</code> and executed the following command to start the container:</p> <pre><code>docker run \ -d \ -p 2379:2379 \ -p 2380:2380 \ -p 4001:4001 \ -p 70...
1
2,598
Jquery UI Dialog multiple dialog creation issue
<p>I have searched almost every single thing here and over the internet but i can't get this code to work. I am trying to get dialog box open when user click on php generated link which loads another page and it has a form etc. click on some link, it'll generate a popup, close it and then click some other or the same l...
1
5,470
Email through PHPMailer is slow
<p>When I am sending via Gmail using phpmailer, the email is taking a long time to send and also sometimes it is not going. I am using XAMPP as localhost.</p> <p>Here is my Code:</p> <pre><code>if($_POST['submit']{ /*MAIL PART BEGINS*/ //error_reporting(E_ALL); error_reporting(E_STRICT); dat...
1
1,445
Swipe screen to rotate camera
<p>I am writing a 3D game for smartphone using Unity3D and have no idea on making camera rotation (First Person Perspective).</p> <p>Making virtual joystick is too hard, so I decided to make camera rotate on screen swipe.</p> <p>User swipe smartphone's screen and camera turns around.</p> <p>Rotating works, but alway...
1
1,104
Breaking out Vaadin widgetset compilation
<p>In order to save time compiling, I'm trying to break out the compilation of the widgetsets to a TeamCity build project of its own, we're using nexus as repo. The Vaadin "base project" is then to contain a dependency to the widgetset artifact to fetch the current version. I'm sure this has been done before.</p> <p>T...
1
4,841
How do you make a character jump, both on objects and just normal jump?
<p>I'm kind of a beginner when it comes to java programming, and I have a project in school where I'm going to create a game much like <a href="http://www.icytower.com/" rel="nofollow noreferrer">Icy Tower</a>. And my question is, how am I going to write to make the character stand on the ground and be able to jump up ...
1
1,281
ClassNotFoundException error for Kotlin (non-android) project on Android Studio
<p>I attempted to create a normal Kotlin project (non-android, just desktop/command line project) with Android Studio 2.3.3.</p> <p>I followed the steps as laid out <a href="https://stackoverflow.com/a/29267962/571227">here</a> but with different <code>build.gradle</code> content whose content I shared <a href="https:...
1
2,998
Update foreign key column with another table's primary key
<p>Basically, I need to update a column in one table based on a column's value in another table. This question has been asked at least a couple times here and every answer with high votes states to join the two tables and set the value of a column in one table based on the value of the applicable column in the other t...
1
1,515
Is there a method to implement in flutter a sort of bluetooth broadcast like beacons?
<p>I would like to know how to realize a sort of "bluetooth broadcast" (using Bluetooth Low Energy) for a Flutter application. In particular, i want to achieve those points:</p> <ul> <li>I want to send random string and integers "in the air" using bluetooth.</li> <li>I want also to be able to receive those data by oth...
1
1,247
ASP.NET MVC Nullreferenceexception: System.Web.Mvc.WebViewPage<TModel>.Model.get.<Field at offset 0x00000004> was null
<p>I'm working on a project (ASP.NET MVC) for school but today I ran into this error. I'm already trying to fix this for a few hours but nothing works. In this application you log in and your profile will load. This works, but as soon as I change the profile data (in a form), post it, and return the view with a refresh...
1
1,736
File not found when using file after selecting it Android
<p>similar to this question <a href="https://stackoverflow.com/questions/30075095/file-not-found-error-after-selecting-a-file-in-android">File not found error after selecting a file in android</a> , I get a file not found exception after I select a file from SD however the solution in the question provided did not work...
1
2,397
ASP.NET Gridview Paging Problem
<p>I have a gridview that is databound in the code-behind using a stored procedure. I am handling the Paging event in the code as well, but whenever I click on a page number, I keep getting the empty data template instead of more rows. Any suggestions?</p> <p>EDIT: I am re-binding the data source of the gv after I c...
1
1,106
seek method RandomAccessFile
<p>I have an assignment where I need to display 200 random characters and then ask the use what letter they would like to replace and then replace all those letters. I have the random characters generated, but I am having trouble with replacing the letters. Can someone help lead me in the right direction? Here are some...
1
1,125
FOSUserBundle override action of a controller
<p>I'm trying to override the editAction in ProfileController.php but it's doesn't work. I can override template and form with success but not the actions of controllers.</p> <h3>app/config.yml</h3> <pre><code># FOS UserBundle Configuration fos_user: db_driver: orm firewall_name: main user_class: Intranet...
1
1,636
set the filename after finish download in Swift
<p>I trying to develop Download manager app for iPhone. I am using this class for downloading operation:</p> <pre><code>import UIKit import Foundation typealias CompleteHandlerBlock = () -&gt; () class newDownloadObject: NSObject,NSURLSessionDelegate, NSURLSessionDownloadDelegate { var session: NSURLSession! ...
1
1,311
building MUPDF for Android
<p>i'm new in using NDK and i want to build MUPDF library for my PDF Viewer project, i followed <a href="https://stackoverflow.com/questions/8500530/mupdf-reader-integrate-in-project/8587527#8587527">Integrate MuPDF Reader in an app</a> and also this <a href="http://mupdf.com/repos/mupdf/android/ReadMe.txt" rel="nofo...
1
1,273