title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
'Failed to load interface' error when loading compiled modules in ghci
<p>Hello Haskell community,</p> <p>I'm new to Haskell and ran into a problem when I tried to structure my first bigger project.</p> <p>Here's the minimal example of the problem (I'm using cabal to build).</p> <p>This is the directory structure of a simple module:</p> <pre><code>FooMod1 |- FooMod1.cabal |- Setup.hs ...
0
1,156
Python - Detect a QR code from an image and crop using OpenCV
<p>I'm working on a project using Python(3.7) and OpenCV in which I have an Image(captured using the camera) of a document with a QR code placed on it.</p> <p>This QR code has 6 variables respectively as:</p> <ol> <li><p>Size of QR code image</p></li> <li><p>Top</p></li> <li><p>Right </p></li> <li><p>Bottom</p></li>...
0
3,902
Pandas: add column with index of matching row from other dataframe
<p>Cleaning up sharepoint list for upload to mssql with proper table relationships.</p> <p>Basically, two dataframes (data, config), both share some common columns (country, business). What I want to do is to insert a new column in datadf where for each row it contains index of matching row in configdf based on values...
0
1,221
java.lang.IllegalStateException on response.SendRedirect("Location")
<p>I am a beginner in the world of Java EE. I have been trying to create a simple login System using Servlets and JSP following the guide provided here <a href="http://come2niks.com/?p=1589" rel="noreferrer">http://come2niks.com/?p=1589</a>. This is how my doPost() look like.</p> <pre><code>@Override protected void d...
0
1,676
PHP get phone number using intl-tel-input
<p>I can't GET or POST the data from intl-tel-input form that sent. Does anyone know how to solve this?</p> <p>I'm using intl-tel-input at <a href="https://github.com/jackocnr/intl-tel-input" rel="nofollow">https://github.com/jackocnr/intl-tel-input</a> to get visitors country and phone code.</p> <p>Follow are my for...
0
2,407
Parse a word document into an excel file
<p>I have a word document that has data that I would like to parse into an excel file. The source files are hundreds of pages long. I have been working with VBA, but I just started learning the language and have run into lots of difficulties with trying to input a .doc file. I have been able to use the <strong>Open<...
0
1,085
Django won't serve static files while using development server
<p>I just started a new development server for a website I am working on and I can't seem to get the Django development server to serve the static files I have for CSS and other things. The CSS for the admin site loads fine. I am running it in a virtualenv sandbox.</p> <p>In settings.py I've messed around with MEDIA_R...
0
1,121
Tower of Hanoi C++(using recursion)
<p>I wrote the following code as a practice exercise.<br> I'm getting incorrect output when I print the destination stack.<br> Can anyone please point out where I'm going wrong ?</p> <pre><code>//Tower of Hanoi using Stacks! #include&lt;iostream.h&gt; #include&lt;conio.h&gt; #include&lt;stdlib.h&gt; class Stack { pri...
0
1,366
Could not load file or assembly tools\EntityFramework .PowerShell.Utility.dll'
<p>When try to Install Entity Framework 6.1.3 From Package Manager console. I get following output.</p> <pre><code>Install-Package EntityFramework Attempting to gather dependency information for package 'EntityFramework.6.1.3' with respect to project 'OnlineShop', targeting '.NETFramework,Version=v4.6.1' Attempting t...
0
1,653
Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)
<p>I try to run my <code>rails c</code> but for some reason, I get this error:</p> <p><a href="https://gist.github.com/anonymous/166713e8cde860fb188a8dffb98a1563" rel="noreferrer">https://gist.github.com/anonymous/166713e8cde860fb188a8dffb98a1563</a></p> <pre><code>ᐅ rails c Running via Spring preloader in process 66...
0
2,214
How to add dynamic columns and rows to TableView in java fxml
<p>In java fxml I am retrieving the data from .csv file. I am adding dynamic columns and rows to table view and columns are adding to it but not the rows. I am trying and searching internet but I could not get any suitable result.</p> <p>My code:-</p> <pre><code>public class FXMLDocumentController { @FXML pr...
0
1,397
Using a QAbstractTableModel with a Qml TableView only displays the 1st column
<p>I'm trying to use a (class derived from) QAbstractTableModel with a Qml TableView;</p> <p>However, only the 1st column is displayed.</p> <p>The reason is QVariant MyModel::data(const QModelIndex &amp;index, int role) isn't called for non-zero columns, but I don't understand why.</p> <p>A QTableView works fine how...
0
2,826
JavaScript function to assign tabindex numbers?
<p>I have a form with many fields and I have given every single input, select and button a tabindex number. That works, but I'd like to do it programatically.</p> <p>The default tabindex order isn't correct because i have a two-column layout with groups in each column. I want to go top-down by group. How can I write a...
0
1,349
Implementation of sequential monte carlo method (particle filters)
<p>I'm interested in the simple algorithm for particles filter given here: <a href="http://www.aiqus.com/upfiles/PFAlgo.png">http://www.aiqus.com/upfiles/PFAlgo.png</a> It seems very simple but I have no idea on how to do it practically. Any idea on how to implement it (just to better understand how it works) ?</p> <p...
0
2,847
ConstraintLayout - centering views with next to each other vertically or horizontally
<p>How to center align 3 buttons with next to each other vertically using <a href="https://developer.android.com/reference/android/support/constraint/ConstraintLayout.html" rel="noreferrer"><code>ConstraintLayout</code></a>?</p> <p>To be clear, i want to convert this simple layout structure into flat UI using <a href=...
0
1,326
Are java primitive ints atomic by design or by accident?
<p>Are java primitive integers (int) atomic at all, for that matter? Some experimentation with two threads sharing an int seems to indicate that they <em>are</em>, but of course absence of evidence that they are <em>not</em> does not imply that they are.</p> <p>Specifically, the test I ran was this:</p> <pre><code>pu...
0
1,095
Iterate over already created nodes in D3js
<p>I am using a force-directed graph and am adding newly created nodes to the graph. This works perfectly fine.</p> <p>My node has a property called "state" that keeps changing. The problem I'm facing is that, in my code, the condition to check the "state" is only checked when a new node comes in. When theres an updat...
0
1,943
java.lang.NoClassDefFoundError: org/springframework/core/JdkVersion
<p>I am using Spring's JDBC template to write a DAO class for accessing data from the backend.<br> When I hit the URL, the following exception is thrown:</p> <pre><code>SEVERE: Servlet.service() for servlet [cinestop] in context with path [/cinestop] threw exception [Handler dispatch failed; nested exception is java....
0
4,205
Entity Framework - The context cannot be used while the model is being created
<p>I am trying to create a console application where I am trying to use Entity Framework to dynamically create database and tables to store the data. However, when I am trying to add data to my <code>DbSet</code>. I am getting the following error.</p> <blockquote> <p>An unhandled exception of type 'System.InvalidOpe...
0
1,189
How to install PyQt5 on Windows?
<p>When I try installing the PyQt5 on Windows using the command </p> <pre><code>python configure.py </code></pre> <p>I get this error:</p> <blockquote> <pre><code>Error: Make sure you have a working Qt qmake on your PATH. </code></pre> </blockquote> <p>I got the pyQt5 from <a href="http://www.riverbankcomputing.co....
0
1,150
Determining Bit-Depth of a wav file
<p>I am looking for a fast, preferably standard library mechanism to determine the bit-depth of wav file e.g. '16-bit' or '24-bit'.</p> <p>I am using a subprocess call to Sox to get a plethora of audio metadata but a subprocess call is very slow and the only information I can only currently get reliably from Sox is th...
0
1,712
Multi-Threaded Prime number Finder in Java
<p>I am making a java program that I have to find all prime numbers and the count of the prime numbers up to 200 million. I have to use trial division with static global variable that all the threads share to hold the next number to be checked if prime. As it finds a prime it adds it to a array then displays the array ...
0
1,521
Install mod_wsgi on Ubuntu with Python 3.6, Apache 2.4, and Django 1.11
<p><strong>How do I get mod_wsgi for Apache2 that was compiled for Python 3.6.1?</strong> </p> <p>(or any future Python version)</p> <p>I am using a Python 3.6.1 virtual environment with Django 1.11 and Everything is working according to the Apache error log except that mod_wsgi for Apache 2.4 was compiled for Python...
0
1,921
jquery select2 multiselect: How can I check if options is selected or not?
<p>I need to catch these 2 events:</p> <ul> <li>first option is selected</li> <li>all options are deselected</li> </ul> <p>Reason is - that I want to disable another dropdown (which is responsible for the content of my multiselect) when the first option is selected or all previous selected are deselected.</p> <p>Upd...
0
1,134
How can I create a zip in gradle from a list of files?
<p>This is most certainly a gradle newbie question but it's really beating me up. My source tree looks like this:</p> <pre><code>|-- master buildSrc build.gradle |-- comp1 !-- filea !-- fileb |-- comp2 !-- file1 !-- file2 !-- etc </code></pre> <p>I'm running the <code>build.gradle</code> ...
0
1,180
RPM %post scriptlet best practice
<p>I'm trying to track down what is the best practices for the %pre/%post scriptlets in an rpm.spec file.</p> <p>Specifically I have a system that has a pretty complicated installation. Among other things, it needs to do a lot of "Security-Enhanced Linux" customizations, iptable editing, user creation (with passwords)...
0
1,690
Flutter Provider setState() or markNeedsBuild() called during build
<p>I want to load a list of events and display a loading indicator while fetching data.</p> <p>I'm trying <strong>Provider</strong> pattern (actually refactoring an existing application).</p> <p>So the event list display is conditional according to a status managed in the provider.</p> <p>Problem is when I make a ca...
0
1,382
Can't get Feign Client to work for a basic example
<p>Can't get Feign Client to work. First tried with POST. Kept running into errors related to Encoder/Decoder saying type is not right. Then found an example on github to call simple GET API finally and decided to give it a shot. Still fails</p> <p>On Github and online, I am seeing multiple versions of Feign Client Sp...
0
2,634
How to avoid open-redirect vulnerability and safely redirect on successful login (HINT: ASP.NET MVC 2 default code is vulnerable)
<p>Normally, when a site requires that you are logged in before you can access a certain page, you are taken to the login screen and after successfully authenticating yourself, you are redirected back to the originally requested page. This is great for usability - but without careful scrutiny, this feature can easily b...
0
1,261
How do you transition between display:none and display:block?
<p>I am trying to delay the appearance of mobile nav items (ideally without using JS to delay their appearance) until the nav overlay fully expands (0.4s).</p> <p>There are two states: 1. non-overlay state: The top nav has a hamburger menu on the left and my name on the right. The 4 nav links are hidden. 2. overlay st...
0
2,632
How to add another fragment on the existing fragment?
<p>I am trying to create <code>tab layout with fragments</code>. When i add another fragment on item click it should show another fragment above it. I am unable to get the goal. Fragment just goes above the existing one but both the fragments content are visible. Please don't throw the link towards any developer page f...
0
1,531
APNS (Apple Push Notification Service) with Node JS
<p>I am looking to create APNS (Apple Push Notification Service), where the server will be sending notifications to the iOS devices. I am able to make the push notifications work via PHP using the SAME device token and the SAME certificate, however, I would like to send notifications via Node JS instead of PHP.</p> <p...
0
1,164
UnsupportedClassVersionError: has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version (..)up to 52.0
<p>I'm trying to launch the jar file I've builded for my Spring Boot project. First I did:</p> <pre><code>mvn clean package spring-boot:repackage </code></pre> <p>then I've tried to launch the jar file, and I had the following error:</p> <blockquote> <p>Exception in thread "main" java.lang.UnsupportedClassVersionE...
0
4,283
Drawing pixels in OpenGL
<p>I'm taking a Computer Graphics course at my university. I need to implement basic line drawing algorithms in modern OpenGL(3.3+) to draw primitives on the screen. Here's the function for Bresenham's Line Drawing Algorithm that I want to implement - </p> <pre class="lang-cpp prettyprint-override"><code>void bresenh...
0
3,578
How to keep Bluetooth connection background?
<p>I have created a Bluetooth Activity class in the android app, which works fine for all the Bluetooth functionalities like: scanning, pairing, connecting, sending and receiving data.</p> <p>The real problem is when the Activity is destroyed. Bluetooth is disconnecting.</p> <p>how can I make Bluetooth connection thr...
0
4,234
Adding data to ArrayList while reading data from Excel using POI Apache
<p>I am trying to read data from Excel sheets using POI Apache. The problem I am having is that I want to read the data of all cell of a row at the same time and store it in ArrayList of Type Class but the output is only cell by cell.</p> <p>Here is the class that open the excel sheet and read the data cell by cell.</...
0
1,687
How can I avoid std::vector<> to initialize all its elements?
<p><strong>EDIT:</strong> I edited both the question and its title to be more precise.</p> <p>Considering the following source code:</p> <pre><code>#include &lt;vector&gt; struct xyz { xyz() { } // empty constructor, but the compiler doesn't care xyz(const xyz&amp; o): v(o.v) { } xyz&amp; operator=(const...
0
1,559
Patterns or practices for unit testing methods that call a static method
<p>As of late, I have been pondering heavily about the best way to "Mock" a static method that is called from a class that I am trying to test. Take the following code for example:</p> <pre><code>using (FileStream fStream = File.Create(@"C:\test.txt")) { string text = MyUtilities.GetFormattedText("hello world"); ...
0
1,301
java.lang.ExceptionInInitializerError Caused by: java.lang.UnsatisfiedLinkError: Library not found
<p>I have existing code in c and c++. I have added these c files and cpp files in Android.mk file. And I have successfully created the .so files named itv.so in my application. But now when I am trying to run Android application It is showing error like...</p> <pre><code>12-20 13:26:31.362: E/AndroidRuntime(716): FATA...
0
1,153
RaspberryPi + Pocketsphinx + ps3eye Error: Failed to open audio device
<p>just installed pocketsphinx on my raspberry pi. Think i'm going crazy but not sure if I'm providing the correct device.</p> <p>Whenever I run:</p> <blockquote> <p>src/programs/pocketsphinx_continuous -adcdev plughw:1,0 -nfft 2048 -samprate 48000</p> </blockquote> <p>I get the following:</p> <blockquote> <p...
0
6,976
CSS help: how to format code block and code line?
<p>I notice code block which is tagged with </p> <pre><code>&lt;pre&gt;&lt;code&gt;this is my code block&lt;/code&gt;&lt;/pre&gt; </code></pre> <p>and code line which is tagged with<code>&lt;code&gt;this is code line&lt;/code&gt;</code> when Markdown converted to HTML.</p> <p>Stack-overflow or Github has implemented...
0
1,109
Using subquery in entity framework
<p>I am trying to write the entity framework linq query to generate the following SQL. But I am not sure how to use subqueries with entity framework.</p> <p>The Sql I want to generate is:</p> <pre><code>Declare @StartDate Datetime2; Set @Startdate = '2014-Feb-16 09:52' Declare @EndDate Datetime2; Set @Enddate = '2014...
0
1,611
How to use md-table with services in Angular 4
<p>I am quite new in the angular world and i'm trying to use the new md-table component in Angular Material 2 with Angular 4.</p> <p>I've made a service from an API which retrieves simple arrays of content. Now I'm trying to use this service as a data source for the md-table but I can't find a way to get the data from...
0
1,751
Getting OSError: [Errno 16] Device or resource busy: ' when using tf.keras.models.Sequential.fit_generator
<p>I modified a code that I found here: <a href="https://github.com/geifmany/cifar-vgg/blob/master/cifar100vgg.py" rel="nofollow noreferrer">https://github.com/geifmany/cifar-vgg/blob/master/cifar100vgg.py</a> so that it works with <code>tf.keras</code>, but when I use <code>fit_generator</code> I get the Device or re...
0
1,625
How do I set the width (in pixels) of an input slider?
<p>To this HTML code:</p> <pre><code>&lt;div&gt; &lt;code&gt;/range/1-3&lt;/code&gt;&lt;br /&gt; &lt;input type="range" value="0" min="0" max="100" onchange="send('/range/1', parseInt(this.value))" /&gt;&lt;br /&gt; &lt;input type="range" value="0" min="0" max="100" onchange="send('/range/2', parseInt(this.va...
0
2,099
how to fetch multiple checkboxes value in android
<p>In Android My requirement is :-</p> <p>I have multiple checkboxes and one button..after selection when You click the button it will display as text which boxes you have selected.</p> <p>So I have <strong>activity_test.xml</strong></p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/...
0
3,302
Hibernate-Unable to load class declared in Hibernate configuration </mapping> entry
<p>In Eclipse, I have been building a simple Hibernate+Spring+MySQL+Maven project recently.I am stuck at the stage of database&amp;java connection.When I run the project, it gives the the following error:</p> <pre><code>Exception in thread "main" org.hibernate.MappingException: Unable to load class [ src/main/java/com...
0
2,199
Jackson UnrecognizedPropertyException
<p>I am trying to convert JsonString to Java object.</p> <p>Json object</p> <pre><code>{ "action": "added", "data": { "Quote": { "TotalDiscountsAmount": 0, "Id": "test123" }, "Owner": { "Username": "00000000", "Id": "00000000" }, "Discount_Amount__c": 0, "Base_L...
0
2,528
Recyclerview viewholder possible to change views at other adapter positions (not current position)?
<p>I have a recyclerview with mediaplayer to play a song on each row. I only have one button for play/stop which changes symbol. </p> <p>Here is my problem:</p> <p>Example 1 (This works fine): </p> <p>(For adapter position 1) the user hits the play symbol and music plays for that adapter position and the symbol chan...
0
1,328
How to solve "Permission denied" error for qemu:commandline in libvirt?
<p>Please find below a sample of my dom xml. I am running the command virsh create and I get this error:</p> <pre><code>Unable to open file &lt;json file located inside install_dir&gt; </code></pre> <p>The permissions for this file are all good. </p> <p>Are there any special permissions needed for parameters under ...
0
1,297
How to load web worker using webpack's worker loader
<p>I'm trying to load a web worker script into my React application by using webpack's worker loader. However, I get a module not found error.</p> <blockquote> <p>ERROR in ./src/index.js Module not found: Error: Can't resolve './file.worker' in 'C:\Users\wyrm\Documents\Project\src'</p> </blockquote> <p>This is...
0
1,291
Angular: ng serve gives "webpack: Failed to compile"
<p>I started the <a href="https://angular.io/guide/quickstart" rel="nofollow noreferrer">Angular QuickStart tutorial</a>, but got stuck right in the first part.</p> <h3>What I did</h3> <p>I followed the guide, and up to <code>ng serve --open</code> all went nicely, while this command gave an error <code>webpack: Failed...
0
1,745
ANT Problems: net/sf/antcontrib/antcontrib.properties
<p>I am attempting to install software onto my Debian Lenny server. Specifically, Capture-HPC. I have setup VMWare server, along with all the prerequisites. When I go to run ant in the directory, i get the following error:</p> <pre><code>[taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.p...
0
1,987
SLF4JLoggerContext cannot be cast to LoggerContext
<p>I get known error: </p> <pre><code>Getting Exception org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext </code></pre> <p>I know that the solution is to remove log4j-to-slf4j from the classpath, as described here: <a href="https://stackoverflow.com/questions/25...
0
5,024
Using the sh step on Windows
<p><strong>TL;DR</strong> <em>I want to use the <code>sh</code> step even though Jenkins is running on Windows. I do not want to use the <code>bat</code> step, unless you can show me how to easily reproduce what I need done using <code>bat</code></em></p> <p>I've been converting some old Jenkins jobs over to 2.x Pipel...
0
1,185
Django AttributeError: 'Alias' object has no attribute 'urls'
<p>I've just finished writing out my model for my Heroes App:</p> <p>Here is my models.py file for my Heroes app:</p> <p>from django.db import models</p> <pre><code># Create your models here. class Hero(models.Model): codename = models.CharField(max_length = 30) profilePic = models.ImageField(blank=True) #bl...
0
2,402
Unable to resolve reference refs /refs/remotes/origin/branch while pushing after merging branches
<p>New to git and github.</p> <p>I want to replace the git <code>master</code> branch with my other branch <code>bridge</code> both locally and remotely. The problem is that git is unable to resolve the references for the <code>bridge</code> branch. The problem arises from pushing to github.</p> <p>How the git tree c...
0
1,784
MySQL - Conditional COUNT with GROUP BY
<p>I'm trying to refine a query that I am currently using:</p> <pre><code>SELECT `puid`, COUNT(DISTINCT `droid_v`) AS DROID, COUNT(DISTINCT `sig_v`) AS sig, SUM(NoExt) AS hits FROM temp GROUP BY `puid` </code></pre> <p>And I need to get it to only count <code>droid_v</code> where <...
0
1,394
@Autowired not managed in spring mvc "Injection of autowired dependencies failed"
<p>im trying to inject a bean into my class java ValiderBR</p> <pre><code> @Service public class ValiderBR extends BusinessRule { @Autowired ILog logger; ... } </code></pre> <p>but i have an error of injection caused by the @Autowired annotation</p> <pre><code>22 mai 2013 14:44:02 org.apache.catalina.core.App...
0
3,887
c++ using time() with both <time.h> and <ctime> included - which one takes precedence?
<p>I'm using a GNU/Linux distribution with Zsh 5.0.2, Vim 7.3, and GCC 4.8.0 to learn C++.</p> <p>The following code will not compile due to redefinition of the function <code>foo</code>:</p> <pre><code>#include &lt;iostream&gt; int foo() { return 0; } int foo() { return 0; } int main() { foo(); re...
0
1,226
Is there a simpler/better way to put a border/outline around my TextView?
<p>So I wanted to have a TextView with a cool border around it. I couldn't find any standard way of doing it, so I came up with this:</p> <p>@drawable/custom_bg_1: A blue rounded shape</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; ...
0
1,339
click javascript button using selenium Python
<p>I am new to Selenium Python and JavaScript. I am trying to automate the webpage navigations using Selenium python. I want to click one Java script button. Below is the html tag.</p> <pre><code>&lt;button type="button" class="hpButton" onclick="loadAddPage()" id="btnNew" tabindex="100" style="width: 83px;"&gt;New......
0
3,390
HTTP Livestreaming with ffmpeg
<p>Some context: I have an MKV file, I am attempting to stream it to <a href="http://localhost:8090/test.flv" rel="nofollow">http://localhost:8090/test.flv</a> as an flv file.</p> <p>The stream begins and then immediately ends.</p> <p>The command I am using is:</p> <pre><code>sudo ffmpeg -re -i input.mkv -c:v libx26...
0
5,191
Error creating bean with name: Lookup method resolution failed; nested exception is IllegalStateException: Failed to introspect Class from ClassLoader
<p>I am able to run this application in Eclipse IDE and everything is running fine but not able to run via <strong>java -jar payment_internal_portal-0.0.1-SNAPSHOT.jar</strong>. I have tried various approaches but I am not able to deploy this application in embedded tomcat via [<strong>java -jar payment_internal_portal...
0
4,685
How to return the fit error in Python curve_fit
<p>I'm trying to fit function to a data set of an experiment using python. I can get a really good approximation and the fit looks pretty good, but the error given for the parameters is incredibly high and I'm not sure how to fix this.</p> <p>The function looks like this: <a href="https://i.stack.imgur.com/rjxU2.gif" ...
0
1,326
Jacoco Android createDebugCoverageReport not found
<p>I want to run my tests in Android app and create coverage reports, so I added Jacoco configuration into my build.gradle file, but it doesn't work.</p> <pre><code>apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { applicationId "mm...
0
1,263
Swagger UI returns "no content" in the Response Body, and Response Code 0
<p>I'm newer to <strong>Swagger UI</strong>. I use swagger with <strong>Json</strong>. When the response is also <strong>Json</strong>. When clicking <strong>Try it Out</strong>, I see a correct Request <code>URL</code>, but the <strong>Swagger UI</strong> returns <code>"no content"</code> in the <strong>Response Body...
0
2,745
Windows Phone 8.1 Loading Images from Remote URLs Placeholder
<p>I'm messing around with some windows phone development as I'm new to it coming from an Android background.</p> <p>I am using "theCatAPI" to load a random picture of a cat and show it, then when the picture is clicked, or the button at the bottom of the screen, the image refreshes to a new one.</p> <p>I have the fo...
0
1,463
addpoint is not adding point in highcharts ,where data is updated dynamically with ajax
<p>my task is to add multiple series dynamically and update series data dynamically. my data is loaded with ajax request.</p> <p>i have used the logic given on highcharts side to update the data dynamically. but addpoint is not adding points to series dont know why, when i checked the series object, it has data but d...
0
4,906
Canvas - IndexSizeError: Index or size is negative or greater than the allowed amount
<p>So in Firefox I'm getting this error in the console when using drawImage on a canvas element. </p> <pre><code>"IndexSizeError: Index or size is negative or greater than the allowed amount" </code></pre> <p>Everything is working fine in Chrome. Common causes for this I found were returning negative values or trying...
0
2,193
How to read request.getInputStream() multiple times
<p>I have this code:</p> <pre class="lang-java prettyprint-override"><code>@Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { logger.info("Filter start..."); HttpServletRequest httpRequest = (HttpServletRequest) re...
0
1,612
Error "This message cannot support the operation because it has been read"
<p>I have the same problem that is listed in the following thread.</p> <p><a href="https://stackoverflow.com/questions/2805845/wsdl-first-wcf-server-where-client-does-not-send-soapaction/2806362#2806362">WSDL first WCF server where client does not send SOAPAction</a></p> <p>I performed the steps that are listed in th...
0
2,742
"The headers or library files could not be found for jpeg" installing Pillow on Alpine Linux
<p>I'm trying to run Python's Scrapy in a Docker container based on <a href="https://hub.docker.com/_/python/" rel="noreferrer">python:alpine</a>. It was working before, but now I'd like to use Scrapy's <a href="https://doc.scrapy.org/en/latest/topics/media-pipeline.html#using-the-images-pipeline" rel="noreferrer">Imag...
0
1,229
Clicking on Notification is not starting intended activity?
<p>I am using GCM in my application and also using NotificationManager to Create a Notification whenever GCM message is received.Till now everything is working perfectly and GCM message is showing correctly in Notification area, but when I click on the notification it should start an activity of my application which wi...
0
1,084
Windows 10 SDK won't install to Visual Studio
<p>I've been trying to get Visual Studio and the Windows 10 SDK to work for over a week now. First I couldn't install Visual Studio. That problem was resolved by uninstalling EVERYTHING vaguely related to VS2015, thanks to manually going through everything, but also the Visual Studio "TotalUninstaller". </p> <p>Plot t...
0
1,089
jqgrid calculate total column cells amount depending on other column cell values
<p>After using jqgrid's setFooterData function to calculate the total amount like in <a href="https://stackoverflow.com/questions/5121350/jqgrid-access-cell-data-while-it-is-being-edited">this question</a> , this is my grid and functions:</p> <pre><code>&lt;script type="text/javascript"&gt; function calculateTota...
0
1,958
How to completely traverse a complex dictionary of unknown depth?
<p>Importing from <code>JSON</code> can get very complex and nested structures. For example:</p> <pre><code>{u'body': [{u'declarations': [{u'id': {u'name': u'i', u'type': u'Identifier'}, u'init': {u'type': u'Literal', u'value': 2}, ...
0
1,052
Android: Sine Wave Generation
<p>I'm trying to use AudioTrack to generate sine, square, and sawtooth waves. However, the audio this is creating doesn't sound like a pure sine wave, but like it has some kind of other wave overlayed. How would I go about getting the pure sine wave like in the second code example, while using the method in my first ex...
0
1,104
Passing parameters between managedbeans primefaces
<p>I have a problem with my managedbeans. I cannot manage to pass parameters between them. Here is an XHTML snippet. It is basically a form for login. It just sends the parameters to back bean.</p> <pre><code>&lt;h:outputLabel for="username" value="Kullanıcı Adı: *" /&gt; &lt;p:inputText id="username" value="#{login...
0
1,252
can not use resultSet.setFetchDirection(ResultSet.TYPE_SCROLL_SENSITIVE) with spring jdbc DaoSupport with Oracle
<p>I want to use scrollable resultset, so when I use two lines of code:</p> <pre><code> rs.setFetchDirection(ResultSet.TYPE_SCROLL_SENSITIVE); rs.absolute(12); </code></pre> <p>in my DAOimpl, I get exception, plz help to solve them, thank in advance.</p> <pre><code> import oracle.jdbc.OracleTypes; import org.spr...
0
2,305
Fit Image in ImageButton in Android
<p>I have 6 ImageButton in my activity, I set images through my code in them ( not using xml).</p> <p>I want them to cover 75% of the button area. But where as some images cover less area, some are too big to fit into the imageButton. How to programatically resize and show them? Below is the screen shot</p> <p><img s...
0
2,221
Internal Server Error 500 while accessing $GITLAB/admin/runners
<p>I have restored Gitlab from a backup, now every time I try to access the <code>runners</code> webpage, I get a Internal Server error.</p> <p>I have tried uninstalling all configured gitlab-runners and accessing it, the problem persists. Here is a trace from the gitlab-rails/production.log:</p> <pre><code>Started G...
0
1,037
JSLint mixed spaces and tabs error
<p>I have run the following through JSLint:</p> <pre><code>$(document).ready(function() { /* Add paragraph on page load */ // Get all header elements var header = document.getElementsByTagName('h1'), parent, newP, text; // Loop through the elements for (var i=...
0
1,368
@EventListener for AuthenticationSuccessEvent or InteractiveAuthenticationSuccessEvent not fired
<p>I have this listener in the context of Spring:</p> <pre><code>package listeners; import java.util.Date; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.event.EventListener; import org.springframework.security...
0
1,307
Not all requested modules can be enabled - org-netbeans-modules-nbjavac.jar
<p>While working with NetBeans I have an error:</p> <blockquote> <p>Not all requested modules can be enabled: [StandardModule:org.netbeans.modules.nbjavac jarFile: C:\Users...\AppData\Roaming\NetBeans\11.2\modules\org-netbeans-modules-nbjavac.jar]</p> </blockquote> <p>I believe it's connected to my problem with Net...
0
1,525
Unexpected value 'undefined' declared by the module 'AppModule' at SyntaxError.ZoneAwareError
<p>I am getting below error when I run my angular 2 app with npm version 4.6.1. My ng build and gulp works fine on the project. Any comments/help appreciated. Thanks.</p> <pre><code>@angular/cli: 1.0.0 node: 6.10.0 os: linux x64 @angular/cli: 1.0.0 @angular/common: 2.4.10 @angular/compiler: 2.4.10 @angular/compiler-cl...
0
3,604
Failed to resolve: `com.google.android.gms:play-services-appindexing:10.0.0`
<p>While setting <code>compile 'com.google.android.gms:play-services-appindexing:10.0.0'</code> it is giving following error:</p> <pre><code>Error:(82, 13) Failed to resolve: com.google.android.gms:play-services-appindexing:10.0.0 </code></pre> <p>and while setting <code>compile 'com.google.android.gms:play-services-...
0
1,386
WPF Zoom control
<p>How to implement zooming in wpf? Creating an application in which user can upload and draw on the map.On using zoom slider, user is not able to draw on the map. Without zoom slider the user is able to draw. Instead of third party controls, is there any way to implement zooming? I tried implementing it and i can see ...
0
1,245
How to dynamically create a datagrid in WPF?
<p>I have the following datagrid in XAML:</p> <pre><code>&lt;DataGrid ItemsSource="{Binding View}" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="None" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeColumns="False" CanUserResizeRows="False" CanUserReor...
0
1,455
WFLYCTL0412: Required services that are not installed:
<p>I'm trying to add a datasource in Wildfly 10.0, but when i test connection this the error message that throws:</p> <pre><code>Unexpected HTTP response: 500 Request { "address" =&gt; [ ("subsystem" =&gt; "datasources"), ("data-source" =&gt; "PostgreCrawlazo") ], "operation" =&gt; "test-c...
0
1,684
Could not find org.codehaus.groovy:groovy-all:2.4.12
<p>After an update of android studio and gradle, I can not compile (in release mode) my application anymore.When I try to generate the APK, I receive this error:</p> <blockquote> <p>Could not find org.codehaus.groovy:groovy-all:2.4.12. Searched in the following locations: file:/Users/antonioleva/Library/Andr...
0
1,889
Openg GL 2.0 Android error 0x501 (GL_INVALID_VALUE)
<p>I am trying to build a little Open GL2.0 demo application on android but i am getting the following errors</p> <p>in log cat</p> <pre><code>07-02 20:50:40.110: E/libEGL(1252): call to OpenGL ES API with no current context (logged once per thread) 07-02 20:50:40.110: E/libEGL(1252): call to OpenGL ES API with n...
0
2,595
CSS Grid Layout not working in IE11 even with prefixes
<p>I'm using following HTML markup for my grid.</p> <pre><code>&lt;section class="grid"&gt; &lt;article class="grid-item width-2x height-2x"&gt;....&lt;/article&gt; &lt;article class="grid-item"&gt;....&lt;/article&gt; &lt;article class="grid-item"&gt;....&lt;/article&gt; &lt;article class="grid-item w...
0
1,250
Why do I get Python IOError: [Errno 13] Permission denied on writing to a file?
<p>I cannot figure out what I am doing wrong. I am running some tests and writing the results to a file. The portion of the code which writes to a file is the following (in a class called Tester):</p> <pre><code> @staticmethod def printHeader(resultsFileName): if not os.path.isfile(resultsFileName): ...
0
4,900
vs code Problems with C# extension, Some projects have trouble loading due to OmniSharp
<p>When I start editing a C# file I get this warning message</p> <pre><code>Some projects have trouble loading. Please review the output for more details. </code></pre> <p>I check the output and this is what I find</p> <pre><code>Starting OmniSharp server at 2/17/2021, 6:06:51 AM Target: /Users/zeyad/Documents/Sand...
0
2,016
java maven import issue: error: package com.google.gson does not exist
<p>I have a new environment, and I'm trying to make a simple java project in IntelliJ containing a ScoreCalculator.java class that will import com.google.gson. This <em>should</em> be simple but there's something I'm missing. </p> <p>I made a fresh maven project (including this dependency in pom.xml), and when I try <...
0
1,410
Disable vertical overflow in HTML/CSS
<p>Currently I'm learning about HTML/CSS, I want to create a blog in windows 8 style (metro style). But I have a problem in disabling the overflow-y. I'm using a table in <code>&lt;body&gt;</code> of html with a fixed size of each table data. But whenever I add a cell into a row in the table, if the row is overflow in ...
0
1,749
ERROR org.hibernate.LazyInitializationException - could not initialize proxy - no Session
<p><strong>class Client:</strong></p> <pre><code>package com.sdzee.tp.beans; public class Client implements java.io.Serializable { private Integer id; private String nom; private String prenom; private String adresse; private String telephone; private String email; private String ...
0
9,145
How should I log uncaught exceptions in my RESTful JAX-RS web service?
<p>I have a RESTful web service running under Glassfish 3.1.2 using Jersey and Jackson:</p> <pre><code>@Stateless @LocalBean @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @Path("users") public class UserRestService { private static final Logger log = ...; @GET @Path("{userId:...
0
1,320
android notify when startActivity intent has completed?
<p>I need to be able to tell when a spawned activity (via an intent) has completed, how would I do so?</p> <p>This is what I have:</p> <pre><code> alertDialog.setButton2("Text", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { St...
0
1,513