title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Magento Admin Custom Sales Report
<p>I have to develop a module to export collection of product,order,customer combined attributes. So i thought rather than modifying the core sales report for this purpose better to do a custom functionality. These are the steps that i did but i am not able to produce it. Used magento 1.4.1 version for this.</p> <p><s...
1
1,459
Not able to read .xlsx files using spark-excel library
<p>I'm trying to read a .xlsx file and convert it to a Dataframe using spark-excel. But when I try to read the file it's throwing a </p> <blockquote> <p>java.lang.IllegalArgumentException: InputStream of class class org.apache.commons.compress.archivers.zip.ZipArchiveInputStream is not implementing InputStreamSt...
1
2,447
Encoding a image to base64 and upload to web service in Phonegap
<p>In my PhoneGap project, I use <em>navigator.device.capture.captureImage(captureSuccess, captureError, {limit : 1});</em> to take a picture. In captureSucces function, I get de MediaFile, and I encode it to base64 with this:</p> <pre><code>var file=""; var datafile=mediaFiles[0]; var reader = new FileReader(); rea...
1
1,197
Road Lane Detection program failing to detect lane properly
<p>I am trying to develop a program that can detect lanes on the road. I have experimented with both Hough Line Transform and Probabilistic Hough Line Transform. However none of these are getting the results that I want. </p> <p>Original Image:</p> <p><a href="https://i.stack.imgur.com/f38Xm.png" rel="nofollow norefe...
1
1,439
error: expected primary-expression before 'float'
<p>I am having some odd behavior from two of my functions. both are erroring when they are getting called in the build process. I am not to sure what it is I am missing as everything looks fine to me but that is obviously not the case.</p> <p>First line with the error:</p> <pre><code>matf4x4 perspective = perspective...
1
1,234
Hibernate session problem for transactions
<p>I am new to hibernate and trying integrate hibernate with an existing spring based application.</p> <p>I configured session factory and transaction manager, transaction proxy template.</p> <p>I am also using Quartz scheduler in this application.</p> <p>When I run the application, I am getting the following except...
1
4,138
Get the contour (outline) from a png image with the correct edges
<p>I have multiple png files and I'm trying to get the polygon contour coordinates. That is the simplified coordinates, only each outer corner (not a convex hull polygon).</p> <p>The program that will do this at the moment is python and opencv. But another program is oke I did try to fix this using npm packages, imagem...
1
3,774
Use Lodash to transform this nested json data
<p>I'm new to lodash. I have this kind of json data. I already have 90-120 lines of code that parses it, does some calculation to it, and creates new json. It's becoming a nightmare.</p> <p>I would like to ask help on how I can transform this json using lodash's methods.</p> <p><a href="http://pastebin.com/BjBLwJDA" ...
1
2,855
Select all inputs that contain a custom attribute
<p>I have a DataView with an XTemplate setup. The XTemplate looks like this</p> <pre><code>tpl = new Ext.XTemplate( '&lt;table&gt;', '&lt;tpl for="."&gt;', '&lt;tr&gt;', '&lt;td&gt;{task}&lt;/td&gt;', '&lt;td&gt...
1
1,123
Select the first email
<p>I need to extract data from incoming emails in Outlook and save it as a row in Excel.</p> <p>I found a macro for Outlook to pull data from selected emails into Excel and another one to make the first macro trigger on receiving an email, BUT when it triggers, it still pulls the data from SELECTED email(s) and I need...
1
1,789
Making sub menu run horizontal
<p>I'm having a bit of trouble turning my vertical sub menu into a horizontal one, everything I try seems to be incorrect or I end up changing the rest of the look of the main menu.</p> <p>HTML</p> <pre><code> &lt;nav&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.html"&gt;HOME&lt;/a&gt;&l...
1
1,324
How to programatically change the visual state in silverlight
<p>I have the following code (it's just the Blend ControlTemplate of a ListBoxItem plus two new states and an event handler to ease the example):</p> <p>xaml:</p> <pre><code> &lt;StackPanel&gt; &lt;Button Click="ButtonBase_OnClick" Content="Clicle"/&gt; &lt;ListBox Grid.Row="1" Margin="12,0,12,...
1
1,958
Upload big video from PhotoLibrary to server
<p>I have a problem with uploading big video asset to a server from PhotoLibrary.</p> <p>I get my asset data as <a href="https://stackoverflow.com/questions/4545982/getting-video-from-alasset?answertab=active#tab-top">described here</a>, export the video to local document, and then upload.</p> <p>But when I upload a ...
1
1,614
Vlc.DotNet - Not able to set the volume before playing an audio
<p>I downloaded the Vlc.DotNet project from Github and have been adding more functionalities to its Sample Forms application. Everything goes fine, except on thing: I noticed that every time I start the application and play an audio, the audio sounds like its volume is 100% (or something around that) - even after I set...
1
1,272
Building MQMD header in compute node of IBM message broker
<p>I'm having trouble trying to add MQMD header in compute node. Tried something like that:</p> <pre><code>SET OutputRoot.Properties = InputRoot.Properties; CREATE LASTCHILD OF OutputRoot DOMAIN('MQMD') NAME 'MQMD'; SET OutputRoot.MQMD.Format = MQFMT_NONE; SET OutputRoot.MQMD.CodedCharSetId = 1208; SET OutputRoot.M...
1
1,716
Schedule sending emails in Spring boot
<p>I would like to schedule sending email notifications using Spring boot, the user creates the notification(Subject, Message, Sending date...)</p> <pre><code>public class EmailNotification implements Serializable { /** * */ private static final long serialVersionUID = 3400952201530474821L; ...
1
1,228
Flutter save List with shared preferences
<p>I try to save a list of strings permanent to the device. When trying to add a List through a pop-up dialog I the following error is displayed</p> <p><em>E/flutter (10074): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method 'add' was called on null.</em></p> <p><em>E/flu...
1
1,869
How to merge 2 SQL CASE statements for output in a single column
<p>I'm using SQL Server 2014 and I have a query where I need to merge 2 CASE statements for output in a single column called, say, 'Market Final'.</p> <p>Case statement 1 is as follows:</p> <pre><code>(CASE e.TravelAgencyTypeCode WHEN 'DMC' THEN g2.CountryGroup ELSE g.CountryGroup END) AS 'Market Final' </code></pre>...
1
1,247
Push Notifications don't work after deploying Expo app to Apple store's TestFlight
<p>Push Notifications works perfectly side loaded to my iOS phone. I can fetch the token and successfully save it to and recall it from my Google Firestore db. Recalling it to send out notifications also work as expected. If I'm not in the App, I get a notification. If I am in the app, my Notification Listener work...
1
1,329
build error with xtgmath.h and cmath
<p>I recently installed GLUT, and GLEW, and was running some OpenGL example code the other day. I come back to my project and try to run some basic c++ code:</p> <pre><code>#include &lt;iostream&gt; int main() { using namespace std; cout &lt;&lt; "Come up and C++ me some time."; cout &lt;&lt; endl; co...
1
4,775
Send special characters in xml through web service using .net
<p>i'm developing a .net application which consumes a java web service, i created the client through wsdl.exe tool and its working fine, one of the method of the web service, receives an xml document as a parameter, and im using an <code>XmlTextWriter</code> to generate the document, but im having problems when includi...
1
1,223
how to draw rectangle on a image dynamically using canvas in react js
<pre><code>import React, {Component, useState, useEffect} from 'react' import {Line, SteppedLine, PolyLine, Circle, Rectangle} from 'draw-shape-reactjs'; import img from '../images/mountains1.jpg' import './parentContainerCSS.css' class ParentContainer extends Component { constructor(props) { super(props) t...
1
1,633
creating a search button
<p>I want to create a button on my c# form and when I type in a clients id or surname and I press the search button, it should display all his info on the c# form.</p> <p>This is not working, a message box displays 'clientid' when the button is clicked.</p> <p>Code in Class</p> <pre><code> public bool searchperso...
1
3,394
Error when opening .tar.gz via Shell to install Apache Maven
<p><strong>Machine:</strong></p> <p>Mac OSX 10.5.8 32-bit.</p> <hr> <p><strong>Goal:</strong></p> <p>To install apache maven per its <a href="http://maven.apache.org/download.html" rel="nofollow">websites instructions</a>, in order to install the JUNG package according to its <a href="http://sourceforge.net/apps/tr...
1
1,087
I'm getting this error for my verilog code, "Illegal operation for constant expression"
<p>when ever I compile this code, I get the following errors.</p> <pre><code>module mv2_generate ( input [127:0] c_array [1:0], input [127:0] p_array [1:0], input [127:0] p1_array [1:0], output reg [15:0] min_mv ); //genvar index; integer a, b, index, m; //genvar m; // a= (m*7)+m+7; // b= ...
1
2,445
How to prevent multiple AJAX calls when using JQuery scroll event handler during lazy-loading?
<p>I load data into my DIV with AJAX using 3 different functions. I am trying to prevent multiple AJAX calls when the browser scroller remains at the bottom of the DIV that I am lazy-loading data into.</p> <p>This works but sometimes (just sometimes) the scroller remain at the bottom of my div and this will cause man...
1
2,119
I need a tool to parse Lua tables, preferrably in Ruby or Java
<p>I need a tool to parse Lua table expressions. If all else fails, I will eventually just code a small Lua module to convert tables to XML, but for the time being, I am interested in a Ruby library doing that, but failing that, I would accept tool in any language, provided I can look at its source.</p> <p>Here is an ...
1
1,058
VueJS Nginx and docker set up - Local ERR_EMPTY_RESPONSE
<p>This is my first time using Docker so apologies if this drives you mad when reading this.</p> <p>I'm currently attempting to dockerise my Vue application with Nginx and a dev container (Neither works at the moment)</p> <p>I have been going endlessly around tutorials but keep going round in circles as my folder struc...
1
2,599
Azure DevOps - Set a Build variable using another variable (nested/composed variables)
<p>In Azure DevOps I have a Pipeline variable "package version" and I set it using <code>0.1.3$(Rev:.r)-alpha</code> .</p> <p><a href="https://i.stack.imgur.com/OS94q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OS94q.png" alt="enter image description here"></a></p> <p>I use that variable to rep...
1
1,389
How to implement routing with Angular 4 Material dialogs
<p>I want to allow people to fill out an enquiry form on my web-app that is opened in a modal dialog. First tho, I want people to read a disclaimer about the sort of enquiries I will field.</p> <p>I want to do this in Angular 4 with Material dialogs via routing, but how do I set up separate routing for my dialogs? Is ...
1
2,080
Continuous Integration & Deployment - Xcode 6.1, OS X Server 4, Testflight, Cocoapods
<p>With the recent release of Apple software, I could not find any up-to-date solutions for continuous integration &amp; deployment using the new Xcode 6.1, OS X Server 4, and TestFlight (Apple's alpha/beta distribution platform). After hours of frustration, I was able to get everything working smoothly. I share this ...
1
1,186
JAVA Inheritance student, undergrad and gradstudent code
<p>For a class project I was asked to create three codes. Student Class</p> <ol> <li><p>First, the student class containing three Parameters. </p> <ul> <li>Name(String) </li> <li>TestScores( int array),</li> <li>Grade(String). </li> </ul></li> <li><p>An empty Constructor. sets the Name and Grade to empty Strings. Th...
1
1,580
Sugar ORM is not saving data into the database
<p>I am currently using <a href="https://github.com/satyan/sugar" rel="noreferrer">Sugar ORM</a> and <a href="http://loopj.com/android-async-http/" rel="noreferrer">Android Async Http Client</a> for my Android application. </p> <p>I read through the documentation of Sugar ORM and did exactly what is written there. My ...
1
1,358
Django view not updating after changes in model
<p>I am running into a problem with a Django project I am currently working on.</p> <p>I have a view in which I create a model instance via a POST request:</p> <pre><code>class CreatePollView(View): template = "polls/create_poll.html" @method_decorator(login_required) def post(self, request): que...
1
1,404
call function on button click reactjs
<p>I am trying to show different html body on same tab having two buttons. I have two buttons. I want to show different html on two different buttons, for doing this i have added two functions named <code>xyz</code> and <code>abc</code> for rendering html. But I'm not getting how to call this functions. For doing this ...
1
2,679
How to add/change registry keys in HKEY_LOCAL_MACHINE
<p>I've been struggling with adding keys and changing values in HKLM. I can add keys and set values in HKCU without issue using the following:</p> <pre><code>My.Computer.Registry.CurrentUser.CreateSubKey("TestKey") My.Computer.Registry.SetValue("HKEY_CURRENT_USER\TestKey", "MyTestKeyValue", "This is a test value.") </...
1
1,457
MYSQL - Duplicate entry '0' for key 'PRIMARY'
<p>I have a parent table Customers and a child table Addresses. When I created Customers I left ADDRESS reference ID 0 so I could fill it in later. Well now is the time insert the ADDRESSES id's into Customers but when I run the command I get a duplicate error, even though there isn’t any. </p> <pre><code>insert into ...
1
1,288
How to send SOAP request over HTTP use digest authentication HTTP in Java (or C#)?
<p>I have web service with url is <a href="http://192.168.0.10/services/abc?wsdl" rel="nofollow noreferrer">http://192.168.0.10/services/abc?wsdl</a><br> This web server using digest authentication with username is admin and password is admin<br> I want to send request follow to this server</p> <p>SOAP request XML is...
1
1,517
Azure Functions: how do you read the settings in host.json at runtime?
<p>Is there a way to read the host settings in the host.json file at runtime? Say you have a host file like this:</p> <pre class="lang-js prettyprint-override"><code>{ "version": "2.0", "extensions": { "serviceBus": { "messageHandlerOptions": { "maxConcurrentCalls": 16 } } } } </code>...
1
1,693
Why not showing validation error message in laravel 5.6
<p>I want to show error message for password and confirm_password match.Below are my code please help me how to show error message if password not match.</p> <p><strong>PasswordResetController.php</strong></p> <pre><code> public function reset(Request $request) { $request-&gt;validate([ 'e...
1
2,173
Telerik Radgrid dynamically added controls disappear after postback
<p>I have the feeling this is a rookie problem, but I must be missing something.</p> <p>I have a <strong>Telerik Radgrid</strong>. In one of the columns I add some controls, during the <code>ItemDataBound</code> event. These controls function as checkboxes of sort, so I change some properties using Javascript when peo...
1
1,631
Laravel - Update Uploaded Files in Input File
<p>I want to update my uploaded images, but as soon as I update 1 image the other images are removed why is that? I want to left them as what they are when they had been upload. help me please thanks.</p> <p><a href="https://i.stack.imgur.com/f4mRr.png" rel="nofollow noreferrer">Here is an image of the problem</a></p...
1
1,681
How to run JavaFX application using JDK 11/Maven/Eclipse IDE
<p>The problem: Running a JavaFX application that is based on a Maven non-module project (project name = “howdyjfx”) from the Eclipse IDE generates the following compilation error:</p> <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project howdyjfx: The parame...
1
2,839
Facebook for Flutter App Crashes on IOS and works fine on Android
<p>App for unknown Reasons Crashes on pressing on facebook login button for IOS but it's working perfectly on android for unknown reasons ,, if anyone faced this problem please tell how to you solved it</p> <p>here is the error</p> <pre><code>*** First throw call stack: ( 0 CoreFoundation 0...
1
2,761
how to convert string png to image in javascript
<p>Look at my code!</p> <pre><code> var imageQRCODE; $.ajax({ url: URL, data: { c1: ca, c2: cli}, success: function(image) { imageQRCODE = image; } }); </code></pre> <p>this is my html:</p> <pre><code> &lt;div class="areaQrCode"&gt;&lt;img src="javascript:imageQRCODE"&gt;&lt;/div&...
1
1,136
How to configure hangfire with unity?
<p>I have ASP.NET Web API application. The application is using Unity as IoC container. The application is also using Hangfire and I am trying to configure Hangfire to use Unity. </p> <p>So based on <a href="http://docs.hangfire.io/en/latest/background-methods/using-ioc-containers.html" rel="noreferrer">documentatio...
1
1,363
Restkit MultiForm Post with an Image
<h1>Problem</h1> <p>I've been trying to post to the server with a multiform request that includes an image attachment. I haven't had trouble getting the image to the server, it is the other information that is not sending correctly.</p> <h1>Details</h1> <p>I'm using object mapping to configure several different att...
1
1,125
How to remove selected items from listview when click remove button in android
<p>am displaying names in list view, with check boxes,here i have button if i click that button that time i need to remove selected items and from list view, remain items only i need to show in list view,using below i code i can find what are the items i selected but i dont know how to remove those, can you any one su...
1
2,235
Android DatePickerDialog Api 23 (Android 6)
<p>I am triggering a DatePickerDialog, It's working and showing fine till api 22 (Android 5.1), I am setting mix and max dates on it (min = current date, max = 1 month starting from current date), but It's just showing current date in Api 23, I attached code and images.</p> <pre><code>///////////////////////////////da...
1
1,263
Sending mail in Nuxt.js with nuxt-mail
<p>I am a total newbie at Nuxt.js/Vue.js so here are some newbie questions :D</p> <p>I am having problems with sending mail from a contact from in my Nuxt.js application. I am trying to use nuxt-mailer but I can't make it work. I have installed <code>axios</code> and <a href="https://github.com/dword-design/nuxt-mail"...
1
1,167
Hibernate's Session exception
<p>Im new in hebirnate. Try execute example code.</p> <pre><code>public class HibernateUtil { private static final SessionFactory sessionFactory; static { try { // Create the SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); } catch (HibernateException ex...
1
1,438
how to save currency symbol unicode in mysql table
<p>I'm using mysql table to store currency symbol unicode but when I return it to my android app in dto it showing the same unicode string(<strong>\u20B9</strong>) and not the currency sign(<strong>₹</strong>).</p> <p>Earlier I was using it hard coded like <code>dto.setCurrencyCode("\u20B9")</code> and it was working ...
1
1,230
Slick slider arrows behave as slides in resposnsive mode
<p>I have integrated slick carousel for my bootstrap project and I have modified the slick-theme.css for some customization. I have run into this weird issue which is in responsive mode the slider goes all wrong and slides are duplicating and the arrows(they are customized as next and previous buttons) are shown as sli...
1
6,752
"AWT-EventQueue-0" java.lang.NullPointerException
<p>I'm getting a ''Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException'' in my code. I have no idea why and where this exception occurs. The compilation works fine but sometimes I get this error at runtime. Can I have some help here? The full error message is this:</p> <pre><code>Exception in thread ...
1
2,258
Dynamically group or filter objects within an array that share a given property name and value
<p>I want to iterate through an <code>array loop</code> and do stuff according to the property name and value of the objects within the <code>array</code>.</p> <p>The <code>array</code> is retrieved from a very "flat" <code>JSON</code> file, that is a collection of <code>git</code> commit logs from several <code>git</...
1
6,339
Postgres - Phoenix/Elixir install errors
<p>I am following this tutorial <a href="http://codetunes.com/2015/phoenix-blog/">Elixir blog in 15 minutes using Phoenix framework - Step by Step</a></p> <p>But I have a problem, which I have no idea how to fix. I think it has something to do with postgres. </p> <p>I did:</p> <pre><code>$ mix ecto.create $ mix ecto...
1
1,502
timeout at net.schmizz.sshj.transport.KeyExchanger.waitForDone(KeyExchanger.java:160)
<p>I have a nightly job that is using <code>net.schmizz.sshj</code> SFTP library.</p> <p>I suspect that there was a change on the server that we SFTP into. However, I cannot pinpoint what the exact change is. Nor can I reproduce it outside the production server. So I am looking for insight of a root cause or how to re...
1
1,126
How can I use `email` in "django-rest-framework-simplejwt" instead of `username` to generate token?
<p>In django-rest-framework-simplejwt plugin <code>username</code> and <code>password</code> are used by default. But I wanted to use <code>email</code> instead of <code>username</code>. So, I did like below:</p> <p><strong>In serializer:</strong></p> <pre><code>class MyTokenObtainSerializer(Serializer): username...
1
1,090
Threading issues in C++
<p>I have asked this problem on many popular forums but no concrete response. My applciation uses serial communication to interface with external systems each having its own interface protocol. The data that is received from the systems is displayed on a GUI made in Qt 4.2.1.</p> <p>Structure of application is such th...
1
1,296
mvc ajax.beginform not working with partialview
<p>I have been trying to get cascading dropdowns working in asp.net mvc4 .... For now I am starting with ajax.beginform ... later I may go to straight jquery....</p> <p>My problem is that the first (track) ajax.beginform is called, it calls the controller and then this directs to the second partial (rail) ... but when...
1
3,820
LibCurl SFTP Rename file
<p>SOLVED ...</p> <p>After more shifting around, by using the "rename" as quoted command, it required the full path inclusive of the original name and full path inclusive of rename-to destination. I didn't try with the path in my other frustrated attempts.</p> <hr> <p>Hi all, I've tried all different combinations, ...
1
1,216
how to fix "value below was evaluated just now" in angular 7
<p>I keep getting an "i" icon beside the array </p> <p><a href="https://i.stack.imgur.com/FpL6a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FpL6a.png" alt="enter image description here"></a></p> <p>the ngFor doesn't display the items on first load unless I click the pagination. then that's the ...
1
1,186
Python Behave 'Context' object has no attribute 'find_element'
<p>I have a sample BDD Python Behave code. When i run behave test.feature the homepage opens but then I get the following error:</p> <pre><code>'Context' object has no attribute 'find_element' </code></pre> <p>Full error is:</p> <pre><code>Scenario Outline: visit test and search for product -- @1.1 By product # te...
1
1,246
InfluxDB missing tag value (putInfluxDB nifi processor)
<p>i'm new in InfluxDB, the problem consists in that i have to insert python dicts in InfluxDB via Nifi and i have tried different ways and i allways got the same error telling that tag is missing:</p> <p><a href="https://i.stack.imgur.com/rfIkV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rfIkV....
1
1,358
return dictionaries in list where dictionary key equals value
<p>I have a database table with thousands of near duplicates that I would like to merge. I use <code>psycopg2.extras</code> to execute a query and eventually get the results in a list of dictionaries.</p> <pre><code>dict_cur = conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor) query = """SELECT DISTINCT pat_ui...
1
1,200
The XML element 'tr' from namespace '' is already present in the current scope
<p>I'm trying to build a CDA document by serializing my object to XML, here's the XML part that causing me some troubles : </p> <pre><code>&lt;component&gt; &lt;section&gt; &lt;templateId root='2.16.840.1.113883.10.20.1.11'/&gt; &lt;templateId root='1.3.6.1.4.1.19376.1.5.3.1.3.6'/&gt; &lt;!...
1
2,469
Set Bar Chart column width size
<p>Is there a way to set JavaFX Bar Chart column width size? </p> <pre><code>import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.chart.BarChart; import javafx.scene.chart.CategoryAxis; import javafx.scene.chart.NumberAxis; import javafx.scene.chart.XYChart; import javafx.stage.Stage; ...
1
1,131
How to use Flutter AppTheme TextTheme without overriding automatic text color
<p>When I use the text theme from my app, <code>Theme.of(context).textTheme.subhead</code> The text is updated with the proper size and weight, but the color is also always black. How do I use the defined text theme, while still allowing the color to change automatically (eg: from black to white, when placed on a dark...
1
1,304
Delay while launching activity from service
<p>I have a broadcast receiver which receives screen off broadcast, and when the screen is turned off, it launches an Activity. I've named this activity LockScreenActivity. I've added <code>getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);</code> in <code>onCreate()</code> of the activity, so tha...
1
2,716
Can't create InetSocketTransportAddress in TransportClient: NoNodeAvailableException[None of the configured nodes -are available: []]
<p><em>UPDATED: Hopefully clearer details and code...</em></p> <p>I'm trying to make my first Java application to talk to ElasticSearch, which is running on this node (timestamps and log-levels removed):</p> <pre><code>$ bin/elasticsearch [bootstrap ]Unable to lock JVM Memory: error=78,reason=Function not im...
1
2,879
About getParameters failed (empty parameters)
<p>I'm trying a camera capture application with SurfaceView.</p> <p>The application's overview is</p> <ol> <li><p>It can detect Face in realtime (on camera view).</p></li> <li><p>It can store the movie.</p></li> </ol> <p>I'm using android.media.MediaRecord class for saving the movie.</p> <pre><code>myRecorder = new...
1
1,328
React native KeyboardAvoidingView not moving correctly
<p>I have a <code>TextInput</code> that when pressed gets covered by the keyboard. So I wrapped it in a <code>KeyboardAvoidingView</code>. But regardless of the behavior that I set for this view, the <code>TextInput</code> won't move above the keyboard. Using <code>position</code> as the behavior moves the <code>TextIn...
1
1,871
Internet Explorer css issue problems with the slider
<p>I am using the Lumi theme I purchased from sooperthemes (they seem like they are no longer in business) for Drupal. It works great except for in Internet Explorer (all versions I have which is 10, 11 and 8).</p> <p>Basically, the first slide is partially visible off to the right. And the rest of the slides are not ...
1
1,205
Starting processes under specific credentials from a Windows service
<p>I've spent a few days on this problem and even though there are tons of different examples online it's a tricky problem and I can't get them to work in my scenario.</p> <p>I have a Windows service that runs under the Local System account. It has a WCF endpoint listening to API requests. When told via the API, the s...
1
1,120
How to hide side nav bar using HTML and CSS
<p>Hi I want my navbar to be automatically hidden when I move the mouse.There is an example i want to use <a href="https://codepen.io/JFarrow/pen/fFrpg" rel="nofollow noreferrer">https://codepen.io/JFarrow/pen/fFrpg</a>. I have read some document online, but I still can not figure out how.. Here is my code:</p> <p><d...
1
2,275
Kotlin Type mismatch: inferred type is Activity? but Context was expected ERROR after upgrading flutter to the 3.0.0
<p>I am using <a href="https://github.com/ravinandan25/simple_beacons_flutter/tree/master/android" rel="noreferrer">beacon plugin</a>. After I upgraded flutter to the version 3.0.0, it throwed this error:</p> <pre><code>Class 'BeaconsPlugin' is not abstract and does not implement abstract member public abstract fun onR...
1
10,114
Flutter TextField TextFieldController setState - position of cursor changes
<p>I recently wrote a test program that I needed that is essentially a CRUD program. I needed to handle this differently to other similar programs that I have written, because I normally use a stateful FAB widget, and don't have to setState() to enable and disable the FAB. In this test program I didn't want to use the ...
1
3,431
using conditionalPanel in Shiny ui.R and server.R: different selectInput based on a condition
<p>I have looked at the majority of the stackoverflow posts on using conditionalPanel in shiny and still have not been able to find my bug. </p> <p>I seem to be able to pass my parameters for "yr1" and "scen1" from server.R to ui.R, but the conditionalPanel does not appear to be working. </p> <p>In my shiny app I hav...
1
1,720
net::ERR_NAME_NOT_RESOLVED as a result of trying to consume web api from HTML5 client
<p>Using the UpdateController.js file below:</p> <pre><code>(function () { var app = angular.module("app", []).controller ('UpdateController', function($scope, $http) { var onUpdatesComplete = function (response) { $scope.updates = response.data; }; $http.get("//*******/api/Update/GetUpdates") ...
1
1,127
CORS, ASP.NET Web API, Kendo UI
<p>I have the following scenario:</p> <ul> <li>An ASP.NET Web API project (hosted at localhost:8081) which calls my BLL to implement business logic</li> <li>An ASP.NET MVC4 project (hosted at localhost:8080) which will form my web layer</li> <li>Future plans to add projects for Mobile etc</li> <li>I followed the steps...
1
3,351
PHP Instagram friendships/create/ Error
<p>I trying to friendships/create/ function in Instagram but I've got some error.</p> <p>account/login function is working.</p> <p><strong>friendships/create Error: "Please update your Instagram app to continue following."</strong></p> <pre><code>require_once("instagram.php"); $username = ''; $password = ''; $agent ...
1
1,208
"Cannot access a disposed object" after minor code modification
<p>Using ASP.NET MVC5, EF6 &amp; Ninject as Backend, AngularJS as frontend with token based auth (JWT).</p> <p>We recently had to enable @ chars in the user names. Base on <a href="https://stackoverflow.com/questions/19460078/configure-microsoft-aspnet-identity-to-allow-email-address-as-username">this answer</a> in th...
1
1,679
iOS: Migrating existing Core Data-database into iCloud
<p>I'm using Core Data in an existing application. Now I want to integrate iCloud so that the user can synchronize their contents between their iOS-devices. To do that I've written the following code for my NSPersistentStoreCoordinator (of course the placeholders are filled out in my code):</p> <pre><code>- (NSPersist...
1
1,607
Database Error: "NullPointerException: Attempt to invoke virtual method getApplicationInfo()... on a null object reference"
<p>I'm building a simple multi-activity list app to practice with SQLite. I was trying to get the strings from the database to display in the <code>listview</code> when this started. I'm getting the error</p> <blockquote> <p>java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.Applica...
1
3,482
What event should be used on a p:tree to select a tree node and have a context menu?
<p>I'm creating a PrimeFaces (5.3) tree with a context menu. Selected nodes should be stored in <code>#{myBean.selectedNode}</code>. When I select a node using the left mouse button the correct node is set. But, when I try to run an action on a node from a context menu, <strong>without selecting it first</strong>, the ...
1
1,510
Error: Unable to parse bindings. Message: ReferenceError: Id is not defined; Bindings value: text: Id
<p>I am new to knockout js and i am getting error as follows </p> <p><code>Error: Unable to parse bindings. Message: ReferenceError: Id is not defined; Bindings value: text: Id</code></p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;title&gt;&lt;/title&gt; &lt;sc...
1
6,441
Display .pdf in image box in asp.net
<p>The goal is to upload a .ppt, convert it to a .pdf, and then show that to the user.</p> <p>Right now I can upload and convert just fine. If I uncomment those two lines in my code-behind, it shows a full-screen display.</p> <p>Is there any way I can display the .pdf inside an 'asp:Image' or some other non-fullscree...
1
1,592
How solve this type error "The File formate is not supported" when sharing images to whatsapp?
<p>I am implementing one app to share images to whatsapp when clicking on "share button" and according to this project i created one Imageadapter that extend Baseadapter and one activity for sharing images.So,When i am clicking on "Share button" it should generate "The file formate is not supported".</p> <p><strong>Im...
1
2,052
Is there a way to hide the footer of UITableView?
<p>I have a table view that is inside a viewcontroller, the tableview resizes according to the dynamic cells, sometimes there are only 1 rows, sometimes more, the problem is that the footer of the tableview occupies a lot of space, i want the footer to hide, i tries using the delegate method viewForFooterInSection, and...
1
1,181
JavaScript to calculate Age based on date
<p>Currently am using JavaScript code to calculate age based on date of birth given by user, its working good but the age showing is wrong.</p> <p>mycode :</p> <pre><code>function getAge(dateString) { var now = new Date(); var today = new Date(now.getYear(),now.getMonth(),now.getDate()); var yearNow = now.getY...
1
1,290
Connect to mongodb running inside Docker
<p>I am using Windows 10 </p> <p>I have installed Virtual Box </p> <p>In virtual Box I have installed Ubuntu with network setting as Bridge Network</p> <p>I am using Docker Toolbox for Windows to Start Docker </p> <p>In Docker I have Mongodb container running at default port </p> <p>I am doing all my development s...
1
1,088
org.elasticsearch.action.UnavailableShardsException
<p>I face the similar problem like <a href="http://elasticsearch-users.115913.n3.nabble.com/New-to-Elastic-Search-I-get-this-exception-org-elasticsearch-action-UnavailableShardsException-td3244381.html" rel="nofollow">http://elasticsearch-users.115913.n3.nabble.com/New-to-Elastic-Search-I-get-this-exception-org-elastic...
1
2,480
How do I remove carriage returns from the JSON output of my WebAPI service?
<p>I have created a Web API service that outputs JSON which is to be consumed by a KendoUI datagrid. Here's the rub: the KendoUI datagrid is VERY picky about the JSON code it consumes; it must not have any kind of carriage returns/line feeds. It has to be one big block of unformatted JSON.</p> <p>We worked with someon...
1
2,932
D3 circle pack: html in text attribute
<p>The code below works fine in that I can output a text string into the bubbles.</p> <p>But how do I output HTML markup into the bubble text label? You can see my HTML markup in the first "name" attribute.</p> <p>This div is very simple in this example, but it will eventually contain more markup and a class id to a ...
1
1,298
Query specific sheets of a google spreadsheet
<p>I am attempting to use a google spreadsheet as a temporary database. I have followed the instructions at the folowing tutorial and everything is working fine</p> <p><a href="http://www.alatechsource.org/blog/2012/05/using-the-google-spreadsheets-data-api-to-build-a-recommended-reading-list-code-words.h" rel="nofoll...
1
1,246
Sort List(of Object) by object properties
<p>I'm trying to achieve something where the answer is already given for. But it's in <code>c#</code> and I don't have any knowledge what-so-ever over <code>c#</code> so I'm looking for a vb.net alternative.</p> <p>I made a <code>class</code> called <code>BomItem</code> which has several properties like quantity, desc...
1
1,642
Boost Python class export fails to compile with linking error in visual studio 2013
<p>I compiled Boost myself and used it to export the following function to a DLL :</p> <pre><code>#include &lt;boost/python.hpp&gt; using namespace boost::python; std::string greet() { return "hello, dude !!"; } BOOST_PYTHON_MODULE(hello) { def("greet", greet); } </code></pre> <p>This loaded fine in Python ...
1
1,345
Python Setuptools and PBR - how to create a package release using the git tag as the version?
<p>How do I actually create a release/distro of a python package that uses a git repo tag for the versioning, using <code>setuptools</code> and <code>pbr</code>?</p> <p>There is plenty of information on the basic setup and configuration required:</p> <ul> <li><a href="https://setuptools.readthedocs.io/en/latest/setup...
1
1,053
How to load Yii 2 fixture?
<p>I use a simple fixture to populate the table in the test database. But when I try to load it, check integrity code throws exception 'Table not found: []'.</p> <p>My fixture:</p> <pre><code>&lt;?php namespace tests\unit\fixtures; use yii\test\ActiveFixture; class IdentityDocumentFixture extends ActiveFixture { ...
1
2,470
iOS 6 and iAds giving too many warnings
<p>Here is my iAd code and I'm getting warnings about </p> <pre><code>setRequiredContentSizeIdentifiers - deprecated in iOS 6 ADBannerContentSizeIdentifier320x50 - deprecated in iOS 4.2 ADBannerContentSizeIdentifier480x32 - deprecated in iOS 4.2 setCurrentContentSizeIdentifier - deprecated in iOS 6 ADBannerContentSize...
1
1,539