title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Conditionals in handlebars
<p>I want to add a class on a div based on part of my data set(JSON). This is what I have data:</p> <pre><code>{ "title":"energy star", "cat":"power", "diff":"Investment", "description":"When purchasing appliances, consider buying 'energystar' certified appliances to radically reduce the amount of e...
2
1,587
Why do I have extra white space on the left side of my page below the logo?
<p>I'm trying to figure out how to stretch the border of a div containing a three-column layout across the page. It stretches to the right correctly, but is not correct on the left side. Can anyone shoot me some pointers?</p> <p>As a side question, is this why the third column in my content-container div is not editab...
2
2,046
Could not read script react.gradle as it does not exist
<p>I'm new react native development i'm facing this error. react.gradle does not exist.</p> <p>i want to run and make apk from android and then i want to upload to Google Play Store. am unable to understand why this error is happening although i have install npm on my macOS. but error still apears. Thanks in advance<...
2
2,753
Deserialization of JSON Object to ObservableCollection<T> and binding it to a GridView Or ListView in a MVVM (Template 10) On App Lauch
<p>I am a newbie to MVVM for UWP, I am in a bit of a quagmire, I want to bind a Deserialized JSON Object to a GridView or ListView but I am faced with this scenario.</p> <p>When I start the App the Deserialization runs and but the GridView is empty, In order for me to see the deserialized data, i have to navigate to a...
2
9,409
Check mail attachment
<p>I am using vb.net to display email from outlook express! Everything work fine but when some message has attachment, i can not display message that email has attachment!</p> <p>This is my code:</p> <pre><code> Private Sub LoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoginB...
2
1,296
Inconsistent full screen height on Samsung Internet Browser
<p>When developing a full-screen app, I realized that the chromium-based Samsung Internet Browser reports inconsistent viewport height (be it using <code>window.innerHeight</code> or <code>document.documentElement.clientHeight</code>). The inconsistency arises from the first page load vs subsequent loads.</p> <ul> <li...
2
1,205
Xamarin iOS CGPath draw polygon with curved/rounded corners
<p>I'm trying to create a class that draws a polygon in a custom <code>UIView</code> subclass. I have it working, but now I want to smooth the corners by rounding them off and I'm not sure how to do that. Here is what I have so far:</p> <pre><code>public class MyView : UIView { private List&lt;CGPoint&gt; points; ...
2
1,742
Operation timed out and Connection reset by peer - 400 concurrent accesses to MySQL
<p><strong>Some background</strong></p> <p>I am working on project where we have a obsolete very simple bookshop web application from 1999 written in Java EE 1.4. However, the purpose is to modernize it in order to run it in cloud environment like Amazon AWS. We decided that we will rewrite it from start using Spring ...
2
1,625
WebView.javaScriptEnable(true); null pointer exception error at android
<p>I'm trying to write a simple calculator. I have a SimpleActivity class which looks like this:</p> <pre><code>package org.muzzy.calc; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.webkit.WebChromeClient; import android.webki...
2
4,105
Android/JSON: org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
<p>I am gettig the error in title when I try to upload contents of my <code>SQLite</code> DB to a corresponding <code>MYSQL</code> Database using a <code>PHP</code> script hosted on <code>00webhost.com.</code> </p> <p>I am also getting the toast output: <code>"Error while uploading. Please try again later."</code>whic...
2
5,419
Merge TileCache Layers
<p>I have a TileCache server with this configuration:</p> <pre><code>[cache] type=Disk base=/var/maps/cache [osm] type=Mapnik mapfile=/var/maps/bin/mapnik/osm.xml bbox=-180.0,-90,180.0,90 srs=EPSG:4326 [oge] type=MapServerLayer mapfile=/var/maps/defs/OGE.map layers=OGETransLines </code></pre> <p>I am using OpenLaye...
2
1,235
Dynamically add new tables and rows querying XML source with Javascript and PHP
<p>I am programming a webservice that queries different databases for prices. The web service writes a new <code>&lt;Result&gt;</code> node into the <code>XML</code> page that is given back when calling <code>http://service.com/xml.php?search=carpet</code> as soon as it has results from the database. Unfortunately the ...
2
1,490
Split a component into smaller components react
<p>React tells us to divide the code as much as possible into components. I have all this code, I have a table and in it there is a button that opens a dialog to enter data and save them with the handleChange function but having all this together, is generating that the data entry is very slow.</p> <p>With the handleC...
2
3,267
Can't get out parameter of Oracle in .net
<p>As i said in title, problem is - out parameter of oracle of procedure is null in .net ,although this parameter is assigned in pl/sql testing. Out parameter datatype is nvarchar2. I tried to change this value to int, and it worked well. But i need to return text from procedure!!! What is the issue? BTW i use using O...
2
1,655
Webpack breaking changes for builtin modules on Gatsby site
<p>I've tried deploying my Gatsby site to Netlify, but I keep getting these errors for various node modules whenever I try to deploy. I've tried making a webpack.config.js file and including both of the suggested solutions to no avail. I've also tried using alias instead of fallback, adding a browser section to the pac...
2
2,234
Boost directed graph: comparing edges of a vertex
<p>A brief background: I'm building a semantic graph, using BGL directed graphs with an adjacency list:</p> <pre><code>class SemanticGraph { public: typedef std::shared_ptr&lt; Node &gt; Node_ptr; typedef boost::adjacency_list&lt; boost::vecS, boost::vecS, boost::directedS, Node_ptr &gt; Graph; typedef b...
2
1,156
Rails 5 - Understanding the new action and rendering errors
<p>My questions is regarding section 5.10 of the official <a href="https://guides.rubyonrails.org/getting_started.html" rel="nofollow noreferrer">Rails guide</a> </p> <p>I have an <strong>articles</strong> model with fields <strong>Title</strong> and <strong>Text</strong></p> <p><strong>article.rb</strong> :</p> <pr...
2
1,059
Move Element of a list in Prolog
<p>I would like to move elements in a list in prolog to a new location within the same list, similar to a cut &amp; paste operation.</p> <p>For example, if i have the list [1,2,3,4,5]</p> <p>I want something like:</p> <pre><code>move(List, D1, D2, D3, Newlist) </code></pre> <p>List = original list, D1 = from what e...
2
1,215
Wildfly 8.x ClassNotFoundException: org.jboss.virtual.VFS
<p>I'm trying to deploy an <code>ear</code> application on a wildfly 8.x server.</p> <p>The problem is when I want to start my server, the log console printed me the following errors: </p> <pre><code> 14:00:09,825 ERROR [org.springframework.core.io.VfsUtils] (MSC service thread 1-7) JBoss VFS packages (for both JB...
2
1,676
Not able to login into LDAP with Fr3d LDAP Bundle (Register works)
<p>I'm struggling with implementing Fr3d LDAP Bundle (with FOSUserbundle) into Symfony. I came that far as being able to login for the first time and getting registered in the database. Though now I got the problem that I can't login a second time. It just throws "bad username and password". Here are my configs:</p> <...
2
1,042
Maven Lifecycle Woes - 'pre-integration-test'
<p>Good afternoon,</p> <p>I am currently modifying a POM so that as well as compiling the code it creates a deployment package that can be easily run on the target servers.</p> <p>The parent POM calls many modules that get built in turn. So that I get all of the build artefacts from these modules into a known locati...
2
3,384
Apex charts in Angular 9
<p>I have some problem using apex charts in angular 9, essentially I'm able to see the chart (line chart) when I mock the data as in the first screenshot, but I can't get data from REST API, I mean the chart disappears. <a href="https://i.stack.imgur.com/qVMH4.png" rel="nofollow noreferrer">mocked datas</a></p> <p>This...
2
1,356
Spring RMI refreshStubOnConnectFailure not working
<p>I read the following blog entry here, <a href="https://stackoverflow.com/questions/1477121/reconnect-rmi-client-after-server-restart/1485920#1485920">Reconnect RMI client after server restart</a></p> <p>It states that when the property refreshStubOnConnectFailure is set to true that my client RMI will try to reconn...
2
3,986
"Invalid use of Null" in Access Query
<p>I have two near-identical databases (the second was a copy of the first, and then modified with different company/product information). There is an aging report that never worked right, that I had to fix. I have it working on one database (A), but the second one (B) kicks up the "Invalid" error.</p> <p>The report q...
2
1,426
NHibernate: Querying with OR operator
<p>I am looking for a way to build an OR operator into a query to look for a particular value in one field of a table as well as in another field of a joined table. This is pretty basic in SQL, but I can't for the world figure out how to do this in NHibernate. I have been searching the web, but the examples I find are ...
2
1,192
OpenCV Convex Hull coordinates
<p> I wanted to find the convex hull in order to even the edges of a hand-drawn triangle on paper. Smoothing using image processing was not enough because i needed to detect this triangle too and a hand drawn triangle tends to have more than three points if the approxPolyDP function is used. A convex hull of a triangle...
2
1,093
Firebase installation error with "Pre-built binaries not found for grpc@1.19.0 and node@12.1.0"
<p>I am trying to install firebase on my MacBook, and is getting the following error. </p> <pre><code>$ npm install -g firebase &gt; grpc@1.19.0 install /Users/satoshi/.nvm/versions/node/v12.1.0/lib/node_modules/firebase/node_modules/grpc &gt; node-pre-gyp install --fallback-to-build --library=static_library node-pr...
2
2,145
Knockout not updating view when model is updated when using click binding
<p>I'm using knockout 3.0 in an MVC5 application, along with knockout.mapping (v2.4.1) library.</p> <p>When a button is clicked I want a knockout viewModel property to be updated, and the associated control's values updated as well.</p> <p>The following is a condensed proof of concept from my larger project that does...
2
1,485
How to Async Task Network Operation in Service in Android?
<p>This is my Service which does network operation. But it is throwing NetworkonMainThreadException which i understand android upper version doesn't allows network operation under main thread. Now i want to use Async Task for this purpose. I am not sure which are all code i need to add under Async Task from Service Cla...
2
1,226
Primefaces KeyFilter: Not working after calling "ajax update" on h:inputText
<p>Prime faces p:keyFilter stops working when an ajax update happens on h:inputText. Please have a look at the following example.</p> <p><strong>Expected Behavior:</strong> p:keyFilter should allow only alphabets and numbers in inputText at any point of time.</p> <p><strong>Steps to reproduce:</strong></p> <p>1) Go ...
2
1,048
IOS App crashes when run on physical device, runs when simulating
<p>Recently updated my iPhone and Xcode and I'm having some problems running my app on my physical device. When I run it on the simulator built into Xcode it runs fine, no drama. </p> <p>However, when I launch it on my physical device it crashes, with no error code apart from: </p> <p>Thread 1: EXC_BAD_ACCESS (code=1...
2
3,804
Android: ViewPager Gallery from sdcard
<p>I have some code for a ViewPager Gallery, however the images are taken from the drawable folder, whereas I need them from a folder on the sdcard.</p> <pre><code>protected Integer[] mImageIds = { R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, ...
2
1,917
Php read excel file which have non english content using PHPExcel lib
<p>I have a xlsx file which contain non English content (Russian). I'm using PHPExcel lib to read it. When I read my file the out put is totally messed up ? is there any way to fix this ? I tried to convert utf8 but no luck. Any help would be appreciate . Here is my code.</p> <pre><code>&lt;?php include_once 'Classes...
2
1,513
Duplicate primary key error while inserting data in mysql
<p>I'm inserting data in mysql database with JPA, but i get this error!</p> <pre><code>Query: InsertObjectQuery(eu.telecombretagne.loraFabian.KPI.KPI@7a363633) javax.persistence.RollbackException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions....
2
3,172
Tensorflow Dropout implementation, test accuracy = train accuracy and low, why?
<p>I have tried dropout implementation in Tensorflow. </p> <p>I do know that dropout should be declared as a placeholder and keep_prob parameter during training and testing should be different. However still almost broke my brain trying to find why with dropout the accuracy is so low. When keep_drop = 1, the train acc...
2
2,381
Error when running angular e2e test on gitlab CI
<p>I'm having a not very meaningful error on my gitlab CI server when running e2e tests.</p> <pre><code>[22:40:18] I/launcher - Running 1 instances of WebDriver [22:40:18] I/local - Starting selenium standalone server... [22:40:18] E/launcher - Error: Error: Server terminated early with status 1 at earlyTerminatio...
2
1,291
React-Native NFC Reader returns: The NFC tag's type is not supported
<p>I am trying to create an android app that will be used to make a payment with an Ingenico terminal. I added the react-native-nfc-manager (<a href="https://github.com/whitedogg13/react-native-nfc-manager" rel="nofollow noreferrer">https://github.com/whitedogg13/react-native-nfc-manager</a>) to my project an followed ...
2
1,449
two ng-submit events for validation on two forms in one html page
<p>I have two forms 'Signup' and 'Login' in one html page using only one controller in angularJS(Something similar to facebook login page). Using ng-submit event for validation for both of them, restricts one from being executed. So after doing some research on it, I used ng-submit event on the signup form and ng-click...
2
1,938
OpenGL 3.3 + OSX + GLFW Does not work
<p>I'm following the <a href="http://opengl-tutorials.org" rel="nofollow noreferrer">http://opengl-tutorials.org</a> tutorial series, and came up with a very basic code for drawing a white triangle on screen, but I can't seem to get it to work.</p> <p>I've compiled glfw without any additional options using appleshell'...
2
1,964
EDIT-UPDATE BUTTONS IN Repeater control
<p>I have a repeater control with collapsible panel inside a div.(class header and class detail).when i click Edit button inside the detail division - cancel and update button are showing but when i click the edit button the div is collapsing and can see the update and cancel button only after clicking the row one more...
2
1,298
Spring boot - Configure second datasource along with gloud gcp postgresql primary datasource
<p>Setting up our Spring Boot project we have a database hosted on Google Cloud Gcp. We use Spring Data JPA to manipulate our database objects and it works great.</p> <blockquote> <p>application.yaml</p> </blockquote> <pre><code>spring: jpa: database-platform: org.hibernate.dialect.PostgreSQL95Dialect properties:...
2
1,350
HTTP 500 error from domain name but not server name
<p>I am getting HTTP 500 response when I try to access a URL. But when I replace the domain name with server name, it works fine. What can be causing the problem? </p> <pre><code> java.io.IOException: Server returned HTTP response code: 500 for URL: http://domainname/Test/test.jar </code></pre> <p>However, I am able ...
2
2,166
How to store GPS Location in SharedPreferences Android
<p>I have five fixed GPS locations in my application. When you come near them, it will be stored in the application and unlock a medal of some sort. I have used SharedPreferences for my quiz and medals, but I am a little unsure on how to store GPS in SharedPreferences as well. This is my code so far.</p> <pre><code> ...
2
2,740
XSLT: Sorting based on sum of values from other nodes
<p>I'm rather new to coding xslt and have got rather stuck trying to do the following.</p> <p>I have an xml file that has breeding info for horses broken into two main sections. 1. Horses node has the performance details of individual horses as well as an id to who their sire was. 2. Sires node is list of the Sires a...
2
2,389
Absolute import failing in subpackage that shadows a stdlib package name
<p>Basically I have a subpackage with the same name as a standard library package ("logging") and I'd like it to be able to absolute-import the standard one no matter how I run it, but this fails when I'm in the parent package.</p> <p>It really looks like either a bug, or an undocumented behaviour of the new "absolute...
2
1,029
copy chart control to new form
<p>Is there a way to copy a chart control to a new form? I have a Windows Form with a chart control on it, but the form is not allowed to be resizable. For that reason I have a button "Zoom" that opens the chart in a new form that is resizable. I have set a lot of chart properties in the "original" chart (axis color, a...
2
1,136
Laravel 5.8 file upload using PUT method with ajax
<p>I'm trying to update a file using a PUT method with ajax. For whatever reason I can't send a request in my controller. I created a custom validator to check whether a file is missing or a certain input request is missing. It keeps on returning 422 file is missing and name is missing. What do I miss? Here's my code b...
2
1,475
Carousel Items not appearing in horizontal in Bootstrap
<p>I trying to create a multi column bootstrap carousel, but all items are appearing in vertical, PFB my html code:</p> <pre><code>&lt;!doctype html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;!-- Required meta tags --&gt; &lt;meta charset="utf-8"&gt; &lt;meta name="viewport" content="width=device-width, ...
2
3,412
Using dependency injection in a PHP web application
<p>I have been reading a lot about dependency injection recently, and in theory it has made a lot of sense. The idea of having easy to test, single responsibility classes just sounds smart. However, I'm struggling with how far to take it.</p> <p>I'm working on a PHP web application right now that has a CMS component a...
2
1,249
android socket exception permission denied
<p>I am trying to follow this code example here: <a href="http://simena86.github.io/blog/2013/04/30/logging-accelerometer-from-android-to-pc/" rel="nofollow">http://simena86.github.io/blog/2013/04/30/logging-accelerometer-from-android-to-pc/</a></p> <p>I am getting a socket error: Permission denied exception though.</...
2
4,883
<f:setPropertyActionListener /> : no update
<p>i have a problem with the <code>&lt;f:setPropertyActionListener /&gt;</code> property. Fields are not updated with the values saved in the target. when i debug i found that the target is initialised with the value but it doesnt work when i try to extract data in xhtm page.</p> <p>Here is the Code: </p> <p> ...
2
4,206
Flutter Web: Unhandled error detected in the injected client.js script on flutter run
<p>I am getting the following errors when I run <code>flutter run -d chrome</code>. I am unable to figure out where this error is coming from. I tried the solutions in <a href="https://stackoverflow.com/questions/60768325/flutter-web-crashes-with-cannot-open-file-client-js">here</a> but did not change anything.</p> <bl...
2
1,775
Fail to install basemap 1.2.1 with conda due to package conflicts, how to resolve?
<p>I installed Basemap on Conda (Win 10 64, Python 3.7.3) in a non-root environment but I ended up with the problem that <a href="https://github.com/matplotlib/basemap/issues/430" rel="nofollow noreferrer">there is no epsg in the proj folder</a>. Following the advice from github I found out I had version 1.2.0 and trie...
2
15,352
JQuery Checkboxes Group check
<p>All,</p> <p>I have the following code. How can I fix it so that the category checkbox for each category is checked only if all the items under that are checked?</p> <p>Thanks</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script src="http://www.google.com/jsapi"&gt;&lt;/script&gt; &lt;script&gt; google.load("jque...
2
2,088
Delete one of data JSON from Database
<p>I want to delete JSON from database but I can't</p> <p><a href="https://i.stack.imgur.com/7ae4K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ae4K.png" alt="enter image description here"></a></p> <p>My delete function in controller:</p> <pre><code>public function deletephoto($id) { ...
2
1,576
How to configure Mabinogi to run in Lutris?
<p>I'm attempting to play <a href="https://mabinogi.nexon.net/" rel="nofollow noreferrer">Mabinogi</a> by Nexon on Linux Mint 20 (Ulyana) using Lutris. I've previously used Lutris to play Heroes of the Storm but otherwise don't have much experience with it (or with gaming on Linux, in general). There's no installer on ...
2
1,221
What does <S extends T> List<S> save(Iterable<S> entities) mean
<p>Its in the <code>JpaRepository</code></p> <pre><code> /* * Copyright 2008-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
2
1,668
how do i set my capture image to image view
<p>how do i set margin in between image view? in my code i create many imageview by using for loop but no space in between two image view how do i set margin in between teo image view?? how to i add space in between two imageview programically???</p> <pre><code> ScrollView scroll = new ScrollView(MainActivit...
2
1,710
Show a large-size image when click on thumbnail and giving opacity
<p>I think It's better that I explain like this:</p> <ol> <li>There are 6 small images on the page next to each other</li> <li>user clicks on one of them</li> <li>all of the 5 other images (except for the image that the user clicked) will have an opacity of 0.7</li> <li>A large version of the image (the image that the ...
2
3,021
Moving Windows C++ project from Qt4 to 5 gives hundreds of seemingly unrelated compilation errors
<p>I upgraded to Qt5/msvc2010 and am now trying to build a project using Qt Creator that was working fine with Qt4/msvc2008 (no source code has changed since it was working).</p> <p>The project uses some COM elements to talk to external audio recording devices via an Olympus SDK.</p> <p>What could cause all of these ...
2
1,338
Understanding how to implement a Flux architecture using Flummox
<p>I currently have a very simple React app that uses state to determine a couple of views. Clicking on the submit element fires a simple call to an endpoint passing either login or registration credentials. I could continue down this road to use React and JSON returned from the server to determine my views, but I am a...
2
1,743
sqlalchemy ORM query object returns result of different type depending on context
<p>I'am working with alchemy ORM's Query object. In different context it returns different types.</p> <p>I have following table in postgres:</p> <pre><code>select * from test; test_id | test_col1 | test_col2 ---------+-----------+----------- 1 | ABC | ABC 2 | XYZ | XYZ </code></pre> <p>I ...
2
5,567
Animating custom CheckedTextView when clicked with AnimationDrawable
<p>I want to add some kind of Material look to my checkboxes. I want the checkmark drawable to animate from one state to another, using custom drawables. I tried to animate both an <code>ImageView</code> (to see if it works) and a <code>CheckedTextView</code> (which is what I really need).</p> <p>In order to do this I...
2
1,228
How to display files in a list view on Android
<p>I am creating an Android application that consists of a list view populated from files which were present in an internal storage. When I click a button it shows an error:</p> <blockquote> <p>java.lang.ArrayIndexOutOfBoundsException length=1; index=1</p> </blockquote> <p>This is my activity after clicking button ...
2
1,846
How to get variable's value in a lambda expression from outside the function in Kotlin
<p>I'm trying to get the value of the variable "finalvalue" in order to use it in another function, but it's not visible/accessible from outside the "edittext.onClickListener()" function.</p> <p>I tried to declare it as a companion object but still I couldn't make it. Also, declaring it in main class makes it visible,...
2
1,606
xcodebuild Interface Builder error, Failure Reason: Timed out waiting for FIFOs to open
<p>I am getting an error when building with xcodebuild on Xcode 7.1/El Capitan</p> <p>Restarting has not helped .</p> <pre><code>xcodebuild -workspace CL.xcworkspace -scheme CL -configuration Release 2015-11-12 11:55:49.889 ibtoold[5348:95303] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/I...
2
1,569
Set specific div contenteditable to true on button click using Javascript (MVC)
<p>I am populating divs with data in it by use of a foreach :</p> <pre><code>@foreach (var item in Model.EmploymentDetailsList) { &lt;li&gt; &lt;i class="fa fa-user bg-aqua"&gt;&lt;/i&gt; &lt;div class="timeline-item"&g...
2
2,436
ExtJS Horizontal Scroll bars blocking tab titles in TabPanel
<p>This is an issue I've had a hard time researching and tracking down. When loading the following panel in a view, scroll bars appear on each tab title (not one long scroll bar for all of the tabs, but individual tab titles). It's not a huge issue for me since I'm on Mountain Lion with small scroll bars, but other use...
2
1,337
want to show validation error on handlechange using react hooks
<p>I am new to React 16, Please find the below code which I am using for Validation using hooks. I have used a reusable Select box and on the value of the option, I am showing an input box. Validation rules: if the select box is empty on click of submit i want to show error and hide it when I select a value then if the...
2
1,109
Fail to loop in creating multiple NCDF4 files from analysis
<p>I have the following script to write analysis outputs to individual NCDF4 files. The script is writing the first file and stops. the error i am getting is :-</p> <p>Error in R_nc4_create: Permission denied (creation mode was 4096) Error in nc_create(ncfname, list(tmp_def, tmp_def2), force_v4 = T) : Error in nc_c...
2
1,098
PowerShell Active Directory Objects Writable Properties
<p>I'm working on a script to synchronize two Active Directory forests (Production and QA, if you don't understand why, it doesn't matter, I need to do it). The problem I've run into is filtering properties to only writable and only those that are normally writable. From the MMC "Active Directory Users and Computers" I...
2
1,169
AWS API Gateway integration with AWS Event Bridge(Cloudwatch Events) in Cloudformation Script
<p><em>Original Requirement</em>:</p> <p>Create a route/path on AWS Api Gateway which connects API Gateway directly to AWS Event Bridge (Cloudwatch Events) and puts/pushes event on an event bus of it.</p> <p>Was able to create it and executes just fine when done from AWS Console.</p> <p><em>Actual Problem</em>:</p> <p>...
2
1,076
Biometric Prompt not showing prompt for face unlock
<p>I am trying to authenticate my app with fingerprint as well as face unlock depending upon user has setup authentication for his device.Now in my app I want face unlock which is not getting displayed.For that I have removed finger prints but it never comes up.My device supports Android 10.I know oem select what to sh...
2
1,228
Dynamically Generated Telerik MVC3 Grid - Add Checkboxes
<p>I have a grid that is dynamically generated based on search criteria. I render the grid in a partial view using Ajax. That all works fine.</p> <p>I now need to add a checkbox column as the first column.</p> <p>Also, how do I get filtering, sorting paging etc. to work now since it is in a partial view. When i click...
2
1,069
Remote nodejs server deployment with forever
<p>I'm trying to deploy a node js server on a remote machine by a post-commit hook, which would call a script on the remote machine that does the actual deployment.</p> <p>The problem I'm facing is if I run the remote script on the machine it works fine, but when I try to execute the same script by an ssh command the ...
2
1,211
Can not include vlc library in java application
<p>i'm try to create media player for clients using vlcj with out need to install VLC in their PCs, from VLC.</p> <p>i take this code from official site of VLC it work fine until i add EmbeddedMediaPlayerComponent() it get error</p> <p>when i use </p> <blockquote> <p>new NativeDiscovery().discover();</p> </blockqu...
2
2,374
how do I return two JSON arrays from an .ajax Call?
<p>I'm using jqPlot and since I can't find one decent place to find out how to send multiple series to jqplot through JSON, I will try to work around it.</p> <p><em>so here's a little background:</em></p> <p>Right now, I can call my servlet and return a JSON array with the data that I'm going to display in the chart....
2
1,315
PayPal Parallel Payment IPN
<p>I have been stuck for days! I am trying to get the details from PayPal IPN from a parallel payment.</p> <p>I need the two email addresses that money was sent to and the amount, also the status.</p> <p>I am looking here:</p> <p><a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;content_ID=develope...
2
1,736
How to make a simple updater for my electron app
<p>My code so far.</p> <h3>Package.json</h3> <pre><code> { "name": "myAppName", "version": "1.0.0", "description": "myAppName description", "main": "main.js", "scripts": { "start": "electron main.js", "build": "build --win" }, "build": { "squirrelWindows": { "remoteReleases": "https...
2
1,494
Custom preference title font size is larger than standard preference in android 5
<p>My app has custom preference with custom layout and after trying my app on android 5, I noticed that my custom preferences look different (font size, color, padding) than the others. So I thought it would be an easy fix just taking <code>preference.xml</code> from android 5 SDK, merging with my changes and placing a...
2
1,325
Doctrine entity manager using wrong connection
<p>According to the <a href="https://symfony.com/doc/current/doctrine/multiple_entity_managers.html" rel="nofollow noreferrer">Symfony docs</a>, multiple entity managers can be configured by listing them in <code>config/packages/doctrine.yaml</code> then selecting a specific entity manager in a controller like this: <c...
2
1,633
Numpy savez exceptions
<p>I recently found this statement:</p> <blockquote> <p>np.savez is not multi-process safe, because it always uses gettempdir() + key + ".npy". So, if you're running the same script over different data sets, you will roach your own data when one process removes the /tmp/arr_0.npy of another process.</p> ...
2
1,151
Timer and exception handling in windows service
<p>I had strange issue with below mentioned code. I don't understand what is the exact issue. Below code is part of windows service. This code is calling one com class function to perform some operation on message queue after fixed interval. I have used System.threading.timer for this purpose. After start, service is...
2
1,636
Show a KML layer
<p>I have the example to save the content of a div to a PNG file (got it from here: <a href="http://openlayers.org/en/master/examples/export-map.html" rel="nofollow">http://openlayers.org/en/master/examples/export-map.html</a>)</p> <p>Besides that, I also need to show several kml layers. I got one of the examples and...
2
2,089
Position RelativeLayout below RelativeLayout
<p><a href="http://i.stack.imgur.com/RxFjP.png" rel="nofollow">RelativeLayout in Android Studio</a></p> <p>i have a horizontal LinearLayout in which i have a RelativeLayout and i want another RelativeLayout to be below it and likewise throughout the xml file but the Layout is appearing at the immediate right of the p...
2
1,485
how to get location using async task? android
<p>I am using async task and searching my gps location(using network provider) I am getting a error at <code>locManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locListener);</code> </p> <pre><code>public class SimpleDirect extends MapActivity { MapView mapView; private ProgressDialog pDialog; p...
2
3,617
CSV: Change One Field Column
<p>I have file named <code>test.csv</code> which has 85 fields?</p> <p>I have to read that file, change 1 column &amp; save it again.</p> <p>I have below code.</p> <pre><code>$file_name = "test.csv"; $infos = array(); if (($handle = fopen($file_name, "r")) !== FALSE) { while (($data = fgetcsv($handle, 0, ",")) ...
2
1,419
How to Convert HTTP Response XML Document into object in C#?
<p>I want to convert HTTP Response XML document into object.</p> <p>When I tried to Deserialize I am getting Error like </p> <blockquote> <p>An unhandled exception of type 'System.InvalidOperationException' occurred in System.Xml.dll</p> </blockquote> <p>Additional information: There is an error in XML document ...
2
8,449
Joining in PySpark gives unexpected results
<p> I'm using Spark version 2.0.0 with python version 3.5. I have a parent table with two columns: GroupID and ID. I need to break the data into 3 subsets so I am using stratified sampling. </p> <p> Once I obtain my subset (sample A) I perform a left join and look for sample A IDs are null. The expected output is a su...
2
1,091
how to return an array from a pthread
<p>I've been trying to get an array of ints back from a thread. I think I'm really close. The errors I'm getting are about dereferencing a void pointer and invalid use of a void expression here</p> <p>assn3.c:29:29: error: dereferencing ‘void *’ pointer [-Werror]</p> <pre><code>printf(" %d", (int)answer[j]); ...
2
1,210
Passing a handler from a background Handler Thread, to background thread
<p>Can anyone point me in the right direction here please ? </p> <p>I have an activity which spawns two threads, a thread for handling messages, using a Looper</p> <pre><code> public static class MiddleThread extends Handler{ static public Handler handler; public void run() { Looper.prepare(); ...
2
1,352
sos berlin scheduler -- job chain - how to trigger other job after job timeout
<p>I'm using sos berlin scheduler (version linux-x64 1.10.5).</p> <p>Normally when job in job_chain timeout, scheduler will kill the job process and send a email. So, based on this, I want to trigger other job. But, I have tried two ways all doesn't work.</p> <p><strong><em>Way 1:</em></strong></p> <p>Add a functio...
2
1,558
Bound c++ value not updating in QML
<p>I read from an .ini file into an integer in c++, which is then utilised in QML through binding. In runtime, the value in the .ini file can be changed, which causes the c++ integer to also be changed. I'm finding that although the integer does indeed change in c++ (verified through qDebug()), the bound value in QML d...
2
1,115
Asp.net MVC API lock a function based on method parameters
<p>I have a helper function which deserializes an XML file, and generates c# objects from it.</p> <p>After that, the objects are added into server memory. The only way of adding something in the server's memory is only through this function.</p> <pre><code>public class DeserializeXmlHelper { public void Deseriali...
2
1,141
Extract contents of a large zip file
<p>I am trying to extract contents of a zip file of size ~500MB containing around 250K files.</p> <p>Here's what I am trying to do -</p> <pre><code>import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurre...
2
2,681
ghostscript command line arguments printer selection in ps file
<p>I am using a c# wrapper to batch print pdf files without user interaction. I am using a ps file which is created dynamically by c# wrapper and Iprovide that ps file as process start args. The reason for use a ps file is gs does not support dynamic user friendly spooler name as command line args. he problem is gs doe...
2
1,196
__copy_helper_block_ crash in AVFoundation
<p>I have a strange crash in my video processing app. It uses <code>AVFoundation</code> to work with video &amp; audio and <code>GPUImage</code> for filtering. I have never faced this issue myself but after releasing it to the App Store it appeared in Crashlytics quite often. Here is the log of the crash:</p> <pre><co...
2
1,740
E/Toast: setGravity() shouldn't be called on text toasts, the values won't be used
<p>I'm watching a lecture, but I got stuck in a place called &quot;Showing the toast location.&quot;</p> <p>If you enter the left (X coordinate) and right (Y coordinate) in the equation, the toast position is</p> <p>They fly accordingly,</p> <p><a href="https://i.stack.imgur.com/0Atwy.png" rel="nofollow noreferrer"><im...
2
1,781
How does Gitlab's "pages" job work internally?
<p>I have a Gitlab project like this (.gitlab-ci.yml):</p> <pre><code># Sub-jobs listed as comments stages: - check-in-tests # shellcheck # pylint # unit-tests - several-other-things # foo # bar # baz - release # release # Run some shell code static tests and generate l...
2
1,074
NoHostAvailable Exception on Async operations with Datastax Cassandra driver
<p>I'm using nested Asynchronous query execution with Cassandra. Data is continuously streamed in and for each incoming data, the below block of <code>cassandra</code> operations are executed. It works fine for a while but then starts throwing a lot of <code>NoHostAvailableException</code>.<br> Please me help me out he...
2
2,412