title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
javascript Welcome modal only disappears partially | <p>I have a modal window opening when the page loads.</p>
<p>It opens well, however, when I close it, it does not disappear completely, as the grey body-background stays, plus the link in the back become disabled.</p>
<p>I must have got something wrong in the code.</p>
<p><div class="snippet" data-lang="js" data-hid... | 3 | 1,792 |
Deployment failing due to exception in JBoss server | <p>While deploying war file in JBoss server getting following exception. But couldn't find any thing. I'm not sure what exactly the root cause of this issue.</p>
<p>Why Jobss throwing this exception?</p>
<p><strong>ERROR [URLDeploymentScanner] Incomplete Deployment listing:</strong></p>
<pre><code> --- Incomplete... | 3 | 12,110 |
BufferedReader Not Reading Correctly | <p>For some reason, When using my buffered reader to read a .mcf (Map Configuration File), It will not correctly find the characters. This is what I'm using for testing purpose.</p>
<p>RendererPanel.java:</p>
<pre><code> File file = new File("src/net/PlatformPeril/resources/Railroad.mcf");
BufferedReader b... | 3 | 1,086 |
How to send different data to custom cells in the same UITableView? | <p>This is for a blog app and the issue I'm having is with the layout of the post and its comments.</p>
<p>Ideally the layout would be like this (version 1):</p>
<p><img src="https://i.stack.imgur.com/yTFzL.png" alt="enter image description here"></p>
<p>The parent is a UIScrollView, and all other elements you see ... | 3 | 1,086 |
Application keeps device on (partial wake lock) | <p>I have use service for collect fixes from network plocation provider. I have not use wacklock, but my app whatever locks device. </p>
<p>I have seen it in Battery Histor for GB, for example:
Screen ON: 2 minutes;
Running: 5 minutes;
Partial wake lock by my app: 10 minutes.</p>
<p>It should be? I need collect locat... | 3 | 1,027 |
Div has margin-top, but I don't added it | <p><img src="https://i.stack.imgur.com/qV1bI.png" alt="enter image description here" /></p>
<p>I have 2 divs and in seconds style I didnt set margin-top. Green is .header and aqua is .products</p>
<pre><code>.header {
width: 100%;
height: 100vh;
background: #32a852;
}
.products {
margin-bottom: 80px;
... | 3 | 1,774 |
Jasper Sub Report Sizing Issue | <p>Looking for the best way to solve my dilemma. I am building a report and the data source that is being used is JSON <- Not much experience with JSON.</p>
<p>This is how data looks coming across to me via JSON</p>
<pre><code>Parent
Child
Child (NEED SOME FIELDS HERE FOR HEADER)
FINAL CHIL... | 3 | 4,371 |
Delphi 10.3: unable to open DFM in IDE, out of memory | <p>I'm developing a project in Delphi Rio 10.3 Community and it currently has 24 units. This particular form I'm having problems with contains 28 frames of the same type, each containing a TChart component with a few buttons and checkboxes (print chart, show/hide series/labels, etc.). Everything was fine until about 20... | 3 | 4,235 |
Getting Unresolved Reference from Singleton Class | <p>I am working with android studio and in Kotlin. I am working with a Singleton class so my confusion is that my getInstance function is not being called when I am trying to add that into my setupRecyclerView function and it keeps saying it is an unresolved reference. I also have the issue that my <code>NewsListActivi... | 3 | 1,912 |
Navigating to a new web page and accessing its contents | <p>I want to navigate to a new page from a web page and access its contents and then again return back to the original page and access the contents of the original page. But it throws an error. </p>
<p>I am able to navigate to a new page and access its contents and also I am able to navigate to the original page but u... | 3 | 2,914 |
GC doesn't collect when WeakReference references a delegate? | <p>It seems to me that when I use the <code>WeakReference</code> class on a delegate method of an object class, the object class gets collected by the GC but there is still another copy of it residing in the <code>WeakReference</code>?</p>
<p>I find it difficult to explain in words. I will give an example. I have the ... | 3 | 1,064 |
How do I get the last row of a bound WPF Datagrid to notify View Model when the SelectedItem Changes? | <p>This is my first post - I welcome any advice on how I post questions should I need it.</p>
<p>I have a WPF <code>DataGrid</code> that has <code>ItemsSource</code> bound to a property called OrderDetails(List Of OrderDetails) and <code>SelectedItem</code> bound to a property called CurrentOrderDetail. </p>
<p>Insi... | 3 | 1,277 |
problem in sending or loading data to localstorage, when I do refresh- cart data is not there to show. I am loading data from firebase | <p>I am loading data from firebase, so when I refresh, it takes time to load it. And added data are not present in the cart that,s why I am not getting any product in the cart. But I did follow the same process to store user data, and it,s working fine, which means I am getting a registered profile in console. Can anyo... | 3 | 2,085 |
How do I create a quiz app with three different answer modes? | <p>I am trying to create a quiz app which should feature 5 questions, chosen randomly from a bank of questions. But, the there should be three different ways of answering the questions :</p>
<ol>
<li>At least one should use radio buttons</li>
<li>At least one should use a drop down</li>
<li>At least one should use text... | 3 | 1,177 |
SDL - Update Surface in C | <p>i use SDL Lib and SDL_TTF Lib</p>
<p>I have a code that allows you to enter text
And then display the text on my window
so here the code</p>
<pre class="lang-c prettyprint-override"><code> TTF_Init();
SDL_Init(SDL_INIT_VIDEO);
TTF_Font * font = TTF_OpenFont("C:\\Windows\\Fonts\\Arial.ttf", 25);
... | 3 | 1,737 |
OpenLayers webapplication stopped working in IE11 | <p>A few years ago we developed an OpenLayers webapplication.
Everything worked fine until a few weeks ago.
The application stopped working in IE11, became very slow in Edge.
No problems with other browsers.
When I try to debug (by pressing F12) IE crashes.
The application is used by a few hundred users, a lot of them ... | 3 | 1,464 |
Wrong time measuring while using stopwatch, clock() and openmp | <p>On a ubuntu 14.04 machine I'm running a C++ code, which is parallel in some its parts (I compile with ICC, the -fopenmp option and use #pragma instructions).</p>
<p>I need to measure with precision two kinds of times:</p>
<p>1) a first time, let's say T1, which is the time spent by the code doing only non-parallel... | 3 | 1,082 |
How to make related_name to User's Model in Django? I want to query username from anothe model | <p>The aim is to show the lessons that were inserted only by the current user which is: user_author_lesson. The user_author_lesson is actually a Foreign key to the User model. I want to query the username field in the serializer queryset. Or maybe there is another way to implement that. Thank you.</p>
<p>models</p>
<pr... | 3 | 2,498 |
Parent node output on if child of sibling node exists XSLT | <p>I need to get an output of a parent node that has the same contents of a certain element in another XML file. I am new to XSLT so I am hoping you can help me point out my mistake.</p>
<p>Here is my external xml: "XML2.xml"</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<root>
<section>... | 3 | 1,186 |
Scrolling data in ListView | <p>I'm trying to create a ListView that automatically scrolls its lines. I used as a basis a routine available here at the Forum. My problem is that it is in the message "RenderBox was not laid out" (attached image). </p>
<p>The ListView worked fine until I included SingleChildScrollView. </p>
<p>Can someone help me?... | 3 | 1,707 |
Removing nulls from Pyspark Dataframe in individual columns | <p>I have a pyspark dataframe like this:</p>
<p><code>+--------------------+--------------------+
| name| value|
+--------------------+--------------------+
| null| null|
| null| null|
| null| null|
|... | 3 | 1,065 |
Create files in Django with user input | <p>I am building a Django messaging app where each chat room has its own template, model and view. What I'm struggling with is figuring out a way for a user to create private chat rooms with user input. I wanted the user to specify details in a template form and when they click submit, the files will be generated to cr... | 3 | 3,521 |
Expectation Maximization Algorithm (EM) for Gaussian Mixture Models (GMMs) | <p>I'm trying to apply the Expectation Maximization Algorithm (EM) to a Gaussian Mixture Model (GMM) using Python and NumPy. The PDF document I am basing my implementation on can be found <a href="https://www.ics.uci.edu/%7Esmyth/courses/cs274/notes/EMnotes.pdf" rel="nofollow noreferrer">here</a>.
Below are the equatio... | 3 | 1,577 |
MSP430 relocation types missing in documentation | <p>If you check the <a href="http://www.ti.com/lit/an/slaa534/slaa534.pdf#page=70&zoom=auto,0,701.3" rel="nofollow">slaa534.pdf</a> file from Texas Instruments there are only 18 relocation types:</p>
<p><code>Idx. Name.
1. R_MSP430_NONE
2. R_MSP430_ABS32
3. R_MSP430_ABS16
4. R_MSP430_ABS8
5. R_MSP430_PCR16
6... | 3 | 1,104 |
(ASP.NET - C#) Having problems with storing textbox.text in a listview to a datatable | <p>I'm trying to save the data inputted in the textboxes after clicking linkbutton <code>lnkUpdate</code>. When i click <code>lnkupdate</code>, it seems that there is no change in the datatable.</p>
<p>aspx code</p>
<pre><code><div class="col-md-7">
<div class="well well-sm">
... | 3 | 4,621 |
NSInvalidArgumentException, Unrec thrown in Monotouch | <p>The issue I am facing is thrown on only one device out of several test devices. All devices are iPhone 4s iOS 5.1.1 with another with iOS 6.0.1.</p>
<p>There are several answers to similar questions but none contain both symptoms.</p>
<p>The application has been written in Monotouch.</p>
<p>The symptoms of the is... | 3 | 1,251 |
Trouble decoding this json string | <p>Hello I have trouble decoding this json string.
I want the data in the addr tab in inputs.
I got this far but cant quite seem to get it to work.
As it says that he cant find the index: prev_out.</p>
<pre><code>$obj = json_decode($json, true);
print_r($obj['inputs']['prev_out']['addr']);
</code></pre>
<p>Thanks in ... | 3 | 4,327 |
adding a method to non-restful routes in rails 4 | <p>i would like to perform an action on some of my routes, the problem is they are not in a 'resources' block because I need named methods for each. I want to be able to toggle the state of each an attribute in each item in an index type view. I wwas attempting to incorporate <a href="http://buckybits.blogspot.co.uk/20... | 3 | 1,701 |
AWS Glue RDD.saveAsTextFile() raises Class org.apache.hadoop.mapred.DirectOutputCommitter not found | <p>I'm creating the simple ETL that reads a billion of files and re-partition them (in other words, compact to smaller amount for further processing).</p>
<p>Simple AWS Glue application:</p>
<pre><code>import org.apache.spark.SparkContext
object Hello {
def main(sysArgs: Array[String]) {
val spark: SparkContext ... | 3 | 1,418 |
Struggling to pull MultiPolygon coordinates from a GoeJson to sql | <pre><code>DECLARE @GeoJSON nvarchar(max) = N'
{
"type": "FeatureCollection",
"name": "PARCELSGJSON",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "... | 3 | 2,885 |
Vue.js: How do you call component specific methods outside of component? | <p>The goal here is to use OpenTok WebRTC platform for a video chat web app built with vue. Here is an example of <a href="https://github.com/opentok/opentok-web-samples/tree/master/Vue-Basic-Video-Chat" rel="nofollow noreferrer">OpenTok in Vue</a>.</p>
<p>I'm getting confused on where to call specific methods for the... | 3 | 1,249 |
Tensorflow quantization: Array output does not have MinMax information | <p>I am attempting to create a Tensorflow quantized model for inference with the Coral USB Accelerator. Here is a minimal standalone example of my issue:</p>
<pre><code>import sys
import tensorflow as tf
CKPT = "a/out.ckpt"
TFLITE = "a/out.tflite"
args = sys.argv[1:]
if 0 == len(args):
print("Options are 'train... | 3 | 1,246 |
getting an empty array from a request to eventful api | <p>Im trying to use the eventful api to get information about only music events (concerts) between two dates. For example I want to get the below information about each concert from 20171012 to 20171013:</p>
<pre><code>- city
- performer
- country
- latitude
- longitude
- genre
- title
- image
- StarTime
</code></pre>... | 3 | 1,371 |
Spring boot and JPA | <p>After creating project by spring boot and choosing JPA and WEB dependencies to my application I cannot build it and I have errors in output
<a href="https://pastebin.com/S8SN30v3" rel="nofollow noreferrer">https://pastebin.com/S8SN30v3</a> <-I pasted my output
I'm quite sure that the cause why web application can... | 3 | 1,400 |
Getting Error - 'Inconsistency in usage of column' while partitioning a table | <p>I have got a table <code>ee_company_product_listings_par</code> which has got many columns including <code>cplc_id</code> and <code>marketplaceID</code>.</p>
<p>This is the DDL of the table:- </p>
<pre><code>ee_company_product_listings_par | CREATE TABLE `ee_company_product_listings_par` (
`id` int(11) NOT NUL... | 3 | 1,162 |
SpringBoot2.4.4 Junit5 with JaCoco test coverage is not shown | <p>i am using junit5 with springboot 2.4.4 version. I have integrated jacoco for the test coverage. However my test gets passed but coverage is not shown in it.</p>
<p>Here i am mention a demo class of the concept what i am implemented</p>
<pre><code>public class Calculator {
public int sum() {
return sumPrivate... | 3 | 2,477 |
Modify a parameter value used in multiple beans in Java unit test | <p>I'm wrting a JUnit to test a threshold value, which is passed from a <code>.properties</code> file like:</p>
<pre><code>threshold=8
</code></pre>
<p>And I use a spring context to apply this threshold value:</p>
<pre><code><context:property-placeholder location="classpath:test.properties"/>
<si:channel i... | 3 | 1,069 |
Google Sign In Android requestTokenId | <p>I am trying to sign in with Google. when I am not using the requestTokenId it's working fine, but when I am using, I'm not able to login.</p>
<p>LOGCAT:</p>
<pre><code>D/GoogleLoginCallBackHand: handleSignInResult:false
D/GoogleLoginCallBackHand: handleSignInResult:12500:null
</code></pre>
<p>getting the same is... | 3 | 1,196 |
In a basic WPF project, how can I avoid making a wide scope class initialization? | <p>This is a very basic question, and I'm certain the reason I haven't found an answer is because I'm not 100% positive how to google it.</p>
<p>I have a very simple project, where I want to use a class that contains my info.</p>
<pre><code>public class MyInfo
{
public string name = String.Empty;
public strin... | 3 | 1,241 |
WSO2 Identity Server 5.1 Alpha will not start, hangs | <p>I got the 5.1 Alpha release today and was unable to get it to completely start. it hangs at (or after) this log message:</p>
<pre><code>INFO {org.apache.catalina.startup.TaglibUriRule} - TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined
</code></pre>
<p>I am starting it up with the same env... | 3 | 3,650 |
GCP API Client Libraries Java Examples - com.google.api.services.deploymentmanager.DeploymentManager | <p>I am looking to automate the provisioning of google cloud resources using Deployment Manager. Only I want to use the JAVA API library instead of gcloud.</p>
<p>Specifically need to provision the following components using DeploymentManager.</p>
<ol>
<li>Cloud SQL - MSSQL</li>
<li>Cloud Run Service</li>
<li>VPC Netwo... | 3 | 1,343 |
scrapy+selenium how to crawl a different page list once i'm done with one? | <p>i'm trying to scrape data from an "action/user trading" website, it is in italian so i'll try to be as clear as possible.
I'm also really new to Python and Scrapy, it is my first project.
The website has not an easy way to follow links, so i had to come up with a few things.
First i go to the general list,... | 3 | 1,725 |
Upload image using Django built in forms | <p>I am trying to upload an image using the Django built in forms, and can't seem to get the image to actually be stored. The form functions as expected, where I can browse for a file, and submit the form (everything else from form is posted and saved), but the image does not get saved into the "media/images" folder</p... | 3 | 3,554 |
PHP sharing code | <p>I have a class file and within the class file some code.
How can I share the code across multiple pages.
The code tackles the use of fetching a resultset when using a prepared statement</p>
<p>The code is like this. How can I reuse the function mps_fetch_assoc. I want the code only on one place.</p>
<pre><code><... | 3 | 1,381 |
no data transfer app stops working | <p>I have a activity (MyFTPClient) that connects to FTP server and downloads a list of files asynchronously.
MyFTPClient.java</p>
<pre><code>@Override
protected void onPreExecute(){
dialog = ProgressDialog.show(MyFTPClient.this,null,"Please wait...");
}
protected ArrayList<String... | 3 | 6,846 |
How to get the recent values of grouped result? | <p>Below is the document which has an array name datum and I want to filter the records based on StatusCode, group by Year and sum the amount value from the recent record of distinct Types.</p>
<pre><code> {
"_id" : ObjectId("5fce46ca6ac9808276dfeb8c"),
"year" : 2018,
"... | 3 | 1,425 |
NullReferenceException when trying to access to foreign key of parent table | <p>I have been learning C# and ASP.NET Core for around 1 month. I have a problem with this NullRefrences error and I can't find out the reason. I create a news webpage by asp.net core and in the administration section when I create a comment section for the article I get the "NullReference" error to show comments belon... | 3 | 2,474 |
Highstock.js question: how to draw VWAP indicator only for current day data? | <p>I develop a project where we use Highcharts.js/Highstock.js library. I use candlestick chart where I display VWAP indicator (here is sample code in JSFiddle: <a href="http://jsfiddle.net/ogorobets/vh3y8195/" rel="nofollow noreferrer">http://jsfiddle.net/ogorobets/vh3y8195/</a>).</p>
<pre><code>var ohlc = JSON.parse... | 3 | 1,787 |
How do you know whether to automate testing or use manual? | <p>I've made a login screen and menu for a Doctors management system. User logs in and is sent to main menu, depending on role type they have different controls on each sub menu. </p>
<p>It all works well and now its time to test.</p>
<p>I've never done automated testing - unit, integration or end to end. </p>
<p>As... | 3 | 3,595 |
Page content not appearing completely in jQuery mobile 1.4.0 | <p>I have the following Form in my jQuery mobile app , the problem is when I tested this page on a low density screen mobile device the radio buttons choice3,choice6 and the checkbox didn't appear , Save button not located in the center as appear in the photo this happens only on low density devices , since the cont... | 3 | 2,146 |
Save Google Map containing many markers as image | <p>I recently asked about saving a google map as an image and this pointed me to using google static maps api, see: <a href="https://stackoverflow.com/questions/16235161/save-current-google-map-as-image">Save current Google Map as image</a>. </p>
<p>However, I now have the problem that my map contains too many marker... | 3 | 2,205 |
Regexp error in node: Cannot read properties of undefined (reading 'length') | <p>I'm developing my first project with node and I came across this error with regexp module that I can not solve. I was thinking that it might be a problem with the routes. I begun to have this problem when I started to work with ejs so I also think the problem might be that package.
Does anybody know what the problem... | 3 | 1,337 |
How do I apply the conversion from charCodeAt to C # here? | <p>So I've already found posts on this topic, but that didn't really help me. On the one hand, I have tried something like this, for example, but it is not quite right in my case**(C#)**.</p>
<pre><code> string temp;
foreach (var a in chaine)
temp = ( Convert.ToUInt16(a).ToString("X4"));... | 3 | 1,510 |
SQL Query taking too long. How to make my queries more efficient? Creating smaller tables from database tables? | <p>I'm new to SQL and I'm trying to make a simple Query where I gather a lot of information about one order from many different tables. </p>
<p>This is my code (it's just mostly select statements):</p>
<pre><code>Select
o.Customer_Purchase_Order_Number as Shopify_Num,
o.Control_Number,
o.Date_Entered as AMT_Times... | 3 | 2,072 |
Jquery Radio button value not changing | <p>Need some help, ive searched google and have no luck.</p>
<p>I am trying to update my radios-button's value in the div class "size-number". That value I want use it within the ajax request below. When i inspect element, the radio-button has the updated value of the button available but when i console.log it in jque... | 3 | 1,062 |
Laravel PDF creation Call to undefined method stdClass::save() | <p>I made a pdf creator link in my laravel app. But when i click on my link to the PDF i get a 404. This is my code:</p>
<p>Link to the customer: </p>
<pre><code><a href="/mvs/mvs/public/admin/kunden/pdf/{{ $kunden->id }}">Button html</a>
</code></pre>
<p>Route:</p>
<pre><code>Route::get('/mvs/mvs/pu... | 3 | 1,101 |
NoClassDefFoundError for MongoClient in cloud9 | <p>I'm using maven to create a jar that i can launch.</p>
<p>So i do : <code>mvn clean install</code> and i get the jar.</p>
<p>When i do : <code>java -jar target/ProjetMRS-0.0.1-SNAPSHOT.jar</code> i got this error below :</p>
<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: com/mongodb/MongoCl... | 3 | 3,618 |
Invalid unicode while sending a POST request to django with libcurl and jsoncpp | <p>I've created a REST endpoint in Django using the rest-framework module; the simple code goes as below:</p>
<p>models.py</p>
<pre><code>class Data(models.Model):
name = models.CharField(max_length=256)
description = models.TextField()
def __str__(self):
return self.name
</code></pre>
<p>serial... | 3 | 1,248 |
RxJava `switchOnNext` with infinite streams | <p>I am trying to write a simple example that uses the <code>switchOnNext</code> operator. I want to generate an infinite stream of infinite streams. EAch individual stream will generate from 1 to infinity. </p>
<p>Using <code>switchOnNext</code> I would expect that each observable will emit it's first <code>n</code> ... | 3 | 1,488 |
My terminal is showing error for following code | <p><strong>ERROR</strong></p>
<p>*<code>Server started on port 4000 Database ErrorMongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 (node:1616) UnhandledPromiseRejectionWarning: MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 at NativeConnection.Connection.openUri (C:\Users\HARSH KUM... | 3 | 1,217 |
ListItems in MvxListView bind inconsistently with Items in MvvmCross 6.4.1 after Upgrading | <p>As the title indicates, I am in the process of upgrading the dependencies of an existing Xamarin.Android project. The Android project uses MvvmCross for much of the cross-platform code (we support other platforms as well). As part of this upgrade, we are moving from MvvmCross 6.2.2 to 6.4.1. We are currently buildin... | 3 | 2,076 |
Navigation problem (with a back button) in an Android app | <p>Here is a navigation problem I am having within an Android app.
I must be missing something very basic, but can't see what.
Let's hope a new eye will spot the issue.</p>
<p>The app has three activities: MainActivity, FirstActivity, and SecondActivity.</p>
<p>And the navigation is meant to go like this:</p>
<p>MainAc... | 3 | 1,194 |
Unable to include Bootstrap using npm in angular-cli project | <p>I am trying to include bootstrap using npm in angular-cli project. After downloading it using npm, I am trying to use it by importing bootstrap.scss in styles.scss and including jquery and bootstrap.min.js in angular.json.</p>
<p><strong>styles.scss</strong><br></p>
<pre><code>@import '~bootstrap/scss/bootstrap.sc... | 3 | 1,104 |
Stop server from client's thread / Modify server's variable from client's thread | <p>I would like to write an application that could stop the server based on client's input. The server is multi-threaded and I do not understand how can I do this. </p>
<p>Basically, I described my problem here: <a href="https://stackoverflow.com/questions/43757999/modify-servers-variable-from-clients-thread-threading... | 3 | 2,049 |
Updating dependencies not working | <p>I'm following golang.org installation to install go 1.10</p>
<pre><code>delia@delia-VirtualBox:~/Descargas$ sudo tar -C /usr/local -xzf go1.10.2.linux-amd64.tar.gz
[sudo] password for delia:
delia@delia-VirtualBox:~/Descargas$ sudo nano ~/.profile
delia@delia-VirtualBox:~/Descargas$ source ~/.profile
delia@deli... | 3 | 6,627 |
xbuild in rpmbuild not working | <p>I'm currently trying to package our project into Fedora RPM. Therefore I use the following spec: <a href="http://sourceforge.net/p/audiocuesheet/code/145/tree/trunk/RPM%20Build/AudioCuesheetEditor.spec" rel="nofollow">http://sourceforge.net/p/audiocuesheet/code/145/tree/trunk/RPM%20Build/AudioCuesheetEditor.spec</a>... | 3 | 5,587 |
Code after readObject() does not run | <p>I am working on a UI which reads serialized object from zookeeper, deserializes it and then converts it into JSON. For some reason I am not able to deseerialize the MQTopic object. But I am able to do the same with other objects.</p>
<p>This is the part which converts the byte[] into the MQTopic object.</p>
<pre><... | 3 | 1,476 |
Android - Find original X and Y point from image view after scale zoom | <p>I'm building a "find the different" app, and I'm stucked on a problem for a while now..
My app receives X and Y points from a data source and when the user touches the range of that point he has "found the different".</p>
<p>The problem is that I've created a new feature that let the user zoom in... | 3 | 2,402 |
Is there a way to add a tuple of position as an attribute to a created node in networkx? | <p>I'm trying to get the position of all the nodes that are being made into my graph. The current goal is to create all the nodes which possess an <code>x</code> and <code>y</code> coordinate.</p>
<p>What I was reading is about attributes when using <code>add_nodes_from()</code> and possibly create a position attribute... | 3 | 1,113 |
Android Layout - ScrollView blank space and in front of menus | <p>Its my first question here.
I want the main page to have a scrollview with an image on top and some text on the botton of the imagem.
Created the scrollview on other activity and included on the app.bar.main activity.
Now I have 2 problems.
1 there is a blank space on top of the imageview inside the scrollview.
2 th... | 3 | 1,208 |
reducing memory consumption allocated by date core | <p>I have a great difficulty is one week. I get a JSON with many objects and each object you can get up to 8 photos. I'm doing a test with a base of 15,000 objects put my memory consumption remains always almentanto until I receive the error <code>"Malloc error “can't allocate region” failed with error code 3"</code></... | 3 | 4,372 |
To display the default Title in Full calendar | <p>Need to put the default title in calendar if no events found in full calendar.</p>
<pre><code>$(document).ready(function(){
var eventMap=[];
<c:forEach items="${fullCalendarList}" var="inspectorCal">
'<fmt:parseDate pattern="dd/MM/yyyy" value="${inspectorCal.end}" var="parsedDate"/>... | 3 | 1,249 |
osx, making tableview reloadable | <p>I have another simple question I can not solve by myself. I have two xibs. main.xib for the user input and result.xib for the results. Xib2 starts when a button is pushed on input-xib.
The button action (in AppDelegate.m):</p>
<pre><code>- (IBAction)pushRun:(id)sender {
if (!rwc)
{
rwc = [[ResultWi... | 3 | 1,135 |
Query is too Complex? Using an append query | <p>I have been using this append query for days and it randomly throws this exception:</p>
<blockquote>
<p>Query is too Complex</p>
</blockquote>
<p>The query inserts into a different table the data retrieved back from a union query. </p>
<pre><code>INSERT INTO [CA-SSI Dispatch]
SELECT
SSIQuery.[Phonenumber] AS P... | 3 | 1,337 |
Random memory acces violation | <p>I've this sample code :</p>
<pre><code>map *d;
i = MAP_SIZE;
j = sizeof(map);
d = malloc(MAP_SIZE);
if (d == NULL) {
exit(EXIT_FAILURE);
}
dest.x = dest.y = 0;
for (i = 0; i < WINDOW_HEIGHT / AREA_RESOLUTION; i++)
{
for (j = 0; j < WINDOW_WIDTH / AREA_RESOLUTION; j++)
{
k = GetAreaPos(... | 3 | 1,169 |
Get Speed of Touchmove in HTML5 | <p>How can i get speed(velocityX) with which my finger moved from one point to other in HTML5.I have used speed(velocityX) in android .like this</p>
<pre><code>public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY){
private static final int SWIPE_MIN_DISTANCE = 30;
private static... | 3 | 1,058 |
solr lucene space search in word(String) break in 4 part than search with * | <p>I am new in lucene search<br>
i have String in alfresco like citation <strong>(1980) 01 CCH 2013 CochinTrib</strong> and i have search string in 4 part that make complete citation string citation = <strong>(year) volume Journal page_no</strong><br>
than input give in search string year and volume search string is ... | 3 | 2,488 |
ajax implement on internal pages jquery mobile | <p>im making an internal page jquery mobile ive search question here in stackover but those are not similar to mine.i want to know if it is possible to use ajax in loading internal pages.i want to load my about1 page and about2 page in the about page here is my sample code:</p>
<pre><code><!-- start about -->
... | 3 | 4,416 |
spring-boot property exception while externalizing datasource properties and using actuator | <p>Im creating a small application using spring-boot + gorm + sqlserver datasource (very similar to Tim Yates' <a href="https://github.com/timyates/data-gorm-mysql/" rel="nofollow">https://github.com/timyates/data-gorm-mysql/</a>). </p>
<p>My datasource properties are in application.properties:</p>
<pre><code>dbDrive... | 3 | 1,944 |
no match for ‘operator<<’ in ‘os << "Test Failed ["’ when os is an ostream & | <p><strong>Edit:</strong> I incorrectly used <code>#include <stdio.h></code> when I needed to include <code><iostream></code>. This happened mostly because I was integrating some C style code with a larger C++ program.</p>
<p><strong>EndEdit</strong></p>
<p>I'm using a simple test framework for my college ... | 3 | 1,093 |
webpack-dev-server Hot Module Replacement does not work and the whole app is refreshed | <p>I didn't come up with this configuration, searched the internet but couldn't find anything useful. My issue is that every changes refreshes the entire page, like F5, instead of hot reloading.
I've tried:</p>
<ul>
<li>adding <code>inline</code> and <code>hot</code> to <code>devServer</code></li>
<li>adding <code>--in... | 3 | 2,785 |
NextJS getStaticProps() is not called after params change | <p>In my web app, front end is conected with Contentful cms to gather data about some products.</p>
<p>This is part of my directory configuration /pages/[category]/items/[id]</p>
<p>Inside /pages/[category] is located Index.tsx with some code:</p>
<pre><code>// Page component
interface ProductsIndexProps {
product... | 3 | 1,159 |
.NET Core CLI command fails to create new app on Windows 10 | <p>After installing <a href="https://dotnet.microsoft.com/download" rel="nofollow noreferrer">.NET Core 3.0</a> on <code>Windows 10</code>, I followed <a href="https://docs.microsoft.com/en-us/dotnet/core/#net-core-30" rel="nofollow noreferrer">this Microsoft tutorial</a> to create a new simple <code>Hello World</code>... | 3 | 7,087 |
Removing rows from Tableview after time expires | <p>I have searched every source I know of for help on this problem. I want to make individual rows within a tableview disappear after a certain amount of time expires. Even if the app is not open, I want the rows to delete as soon as the timer reaches zero. I have been trying to arrange each post into an dictionary wit... | 3 | 1,689 |
Switch off java.langObject initialization in podam | <p>I have POJOs:</p>
<pre><code>class PersonJob {
private PersonAddress address;
//a buch of fields (non Object type)
}
class PersonAddress extends AbstractContact {
//empty fields class
}
class AbstractContact {
private Object contactId;
public Object getContactId() { return this.contactId }
public ... | 3 | 2,265 |
Adding unique info window to multiple markers | <p>I've been trying to add info windows to my markers and tried a lot of options which i've found on this site but nothing seems to work for me.</p>
<p>My google maps has a custom image and filters.</p>
<p>I hope someone can help me out with the coding for this.
I want all markers to have its unique info window.</p>
... | 3 | 7,762 |
Register component using both baseclass and interface using Castle.Windsor and conventions | <p>I have components in my solution that handles redirects in my system based on different states of the user.
Those components are base on the abstract type RedirectAction and are doing the job.</p>
<p>I have another interface in the system that is used to monitor if services and functions are working/active. Called ... | 3 | 1,025 |
Splitting cnn layer in keras | <p>I'd like to get rid of some channels in CNN. It consists of two models which are combined to create a simple model. </p>
<p>It creates correct output but in intermediate layer but still gives an error later.</p>
<pre><code>def highAccuracyModelTillConv2(input_img):
conv1_1 = (Conv2D(32, (3,3), padding='same', k... | 3 | 1,153 |
Node.js http request close response after eventEmitter callback | <p>I have a node.js ES6 project running on a Raspberry Pi with a main file and some imported ES6 child modules (http and a temperature sensor in the example).</p>
<p>When the server receives a request I would want to call an async parent function (I can do this with EventEmitter) and on callback print temperature valu... | 3 | 1,475 |
Automatic differentiation (AD) with respect to list of matrices in Haskell | <p>I am trying to understand how can I use <code>Numeric.AD</code> (automatic differentiation) in Haskell.</p>
<p>I defined a simple matrix type and a scalar function taking an array and two matrices as arguments. I want to use AD to get the gradient of the scoring function with respect to both matrices, but I'm runni... | 3 | 1,596 |
Wheel view in phonegap windows app | <p>I have an <code>android</code> application which contains a <code>wheelview</code> to change its items and select any specific item. Now I'm creating the app in <code>phonegap</code> using html and css so I took <code>ul</code> and <code>li</code> as an alternate to <code>wheelview</code>. </p>
<p>I have a <code>ul... | 3 | 1,688 |
Dynamic LinearLayout + Touch Event always use the last LinearLayout added | <p>I'm tying to add a list of dynamic "buttons" to a Layout. right now my buttons consist of a LinearLayout, ImageView and TextView. I add a touch even to the LinearLayout on each iteration. All objects are added and display correctly. But everything goes wrong from there.</p>
<p>The touch event will fire for each but... | 3 | 1,260 |
Search in my StartActivity and show the results in my ResultActivitty | <p>I am new to app development and i've run into a problem. Before my weather app only had one activity with search and results on the same layout file. </p>
<p>Now i have divided it into a StartActivity with just a EditText to enter the city name and a search button, and in the results activity i've put all the resul... | 3 | 6,708 |
Expanding the functionality of a simple GUI | <p>I am attempting to teach myself how to make a GUI using Java swing and Window Builder Pro, after watching several youtube videos, and reading some tutorials, and asking a previous question located <a href="https://stackoverflow.com/questions/17411154/first-attempt-at-a-simple-gui">here</a> I have accomplished the fo... | 3 | 2,018 |
Cakephp database session destroy handler makes the page unresponded | <p>I'm trying to do the database session in my CakePHP application. Everything is fine so far.
The problem is that when I try to log out, the page is taking too long to respond and got the message "The connection was reset".</p>
<p>Even if my <code>MySession.destory()</code> method contains just a line <code>return tr... | 3 | 1,052 |
W3 Slider - Uncaught TypeError: Cannot read property 'className' of undefined | <p>I have a failure message in my console. It says:</p>
<pre><code>script.js:151 Uncaught TypeError: Cannot read property 'className' of undefined
at showSlides (script.js:151)
at script.js:126
</code></pre>
<p>Its about a Slider I got from W3 School (<a href="https://www.w3schools.com/howto/howto_js_slideshow.... | 3 | 2,234 |
VHDL-controling LCD screen ALTERA DE 2 | <p>heloo I am currently working on ALTERA DE2 board . I want to use the LCD screen . I manged to turn it on . In this code the lcd_bus is the output of the lcd for exmaple if the code for number one is : "0100110001"
so if I write in the code :
WHEN 1 => lcd_bus <= "0100110001" then I will see output lcd_bus = 010... | 3 | 2,323 |
How to get specific attributes with values from an xml document using c# console? | <p>I have an xml document like below:</p>
<pre><code><?xml version = "1.0"?>
<Employees>
<Employee Id="1" City="Seattle">
<EmployeeName>Nancy Davolio</EmployeeName>
<Country>USA</Country>
</Employee>
<Employee Id="2" City="Tacoma">
... | 3 | 1,240 |
Replacing content in <p> in jQuery | <p>This is a jQuery function that should accumulate a variable called p1 or p2 depending on the class of the td clicked. It should then append this to the paragraphs <code>cheap</code> and <code>premium</code> depending on the class. The function to write to the class is at the bottom, although I feel that this might b... | 3 | 2,975 |
jQuery SlideToggle opens all divs with the same ID | <p>Iam new here and very amateur at coding. I have a problem Ive been strugling with for a couple hours. I have 2 divs with the same ID and when I hover one, the jQuery script slides div on both of the divs. I cant explain it really good so here, i post the website where you can see the problem and the code. Thanks for... | 3 | 1,103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.