title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
VBA error 1004 - select method of range class failed
<p>First time poster, so if there is any formatting, or guidelines I failed to adhere to, please let me know so that I can fix it. </p> <p>So I am basically asking the user for the file directory of the excel file, then I setup some variables (originally set at public as project variables, since these were being used ...
0
1,150
Visual Studio Code debugging with AngularJS
<p>I want to debug my Angular App with the new Visual Studio Code, but It seems there is a problem with Angular and Visual Studio Code..</p> <p>This is my launch.json:</p> <pre><code>{ "version": "0.1.0", // List of configurations. Add new configurations or edit existing ones. // ONLY "node" and "mono" ...
0
1,246
Correct way of reusing PreparedStatement instance?
<p>What's the right way to create a PreparedStatement, reuse it a few times, then clean it up? I'm using the following pattern:</p> <pre><code>Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(...); // first use stmt = conn.prepareStatement("some statement ?"); stmt.se...
0
1,336
Font-Awesome ExtJS ActionColumn
<p>I'm Using FontAwesome with ExtJS in my app. </p> <p>All other buttons are working fine with font awesome when I do this:</p> <pre><code> iconCls: 'fa fa-edit' </code></pre> <p>But when using the same configuration in the actioncolumn (Component that allow you to put buttons on a Grid) the icon simply doesn't appe...
0
1,042
Odata No NavigationLink factory was found
<p>I am currently working on a mvc4 web api odata service where I want to return a List of Users where Users have a list of Languages. When I want to get the Users I get the following error:</p> <p><strong>Error:</strong></p> <pre><code>&lt;m:innererror&gt; &lt;m:message&gt; The 'ObjectContent`1' type failed to seria...
0
1,275
java.lang.StringIndexOutOfBoundsException: String index out of range
<p>Hi I wrote a java code to find longest word made of other words. My logic is to read the list of words from the text file and add each word into an array (In the text the words are sorted and there will be only one word in each line) After that we check if each element in the array has other elemnts as substrings. I...
0
1,667
how to display image on center - extjs 4
<pre><code>win = Ext.create('widget.window', { title: 'View Image', closable: true, closeAction: 'hide', width: 600, minWidth: 350, height: 550, layout: { type: 'border', ...
0
3,748
React Native - Unable to execute JS call: __fbBatchedBridge is undefined
<p>I've been following this tutorial <a href="https://www.raywenderlich.com/126063/react-native-tutorial" rel="noreferrer">https://www.raywenderlich.com/126063/react-native-tutorial</a></p> <p>and decided to start from scratch after experiencing problems.</p> <p>I ran <code>react-native init PropertyFinder</code> and...
0
1,269
making simple Calculator using netbeans
<p>i am making a simple calculator using Net beans but there is a problem in between Button and text field . i want that thing where i click button "1" after clicking one it supposed to show one but nothing showing and please help how to setup "+" button in between them help please. /* * To change this templat...
0
6,983
Google Maps API Places search box not working
<p>I have been following the <a href="https://developers.google.com/maps/documentation/javascript/examples/places-searchbox" rel="nofollow" title="Places search box example">Google Maps API Places search box example</a> in order to create a map with a search box.</p> <p>Both the map and the search box appear just fine...
0
2,083
How to initialize UIColor from RGB values properly?
<p>I am working on an iPhone application which uses various colors. When user selects the particular color button I set drawing color accordingly. I am getting the color for some but in the most of the cases I am getting white color.</p> <p>Here is my code:</p> <pre><code>-(IBAction)colorSelected:(UIButton *)sender {...
0
1,305
unknown database in jdbc
<p>I am using JDBC and new to it. but I keep getting this runtime exception:</p> <pre><code> connecting to psysical database... com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'kholofelodb' at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeCo...
0
1,382
Openpyxl : need the max number of rows in a column that has data in Excel
<p>I need the last row in a particular column that contains data in Excel. In openpyxl sheet.max_row or max_column gets us the maximum row or column in the whole sheet. But what I want is for a particular column.</p> <p>My scenario is where I have to get some values from database and append it to the end of a particul...
0
1,502
Why "Android resource linking failed" error appears when i lower the Target SDK from 28 to 27?
<p>I am using Whatsapp sticker source code to build my own sticker app. when i build this project with Target SDK version 28 or 29 it compiles flawless but when i lower the <em>Target SDK version to 27</em> then it **fails to link the resources.**I want this code to work on Android Oreo devices too.</p> <blockquote> ...
0
3,593
How to insert an image into sqlite database?
<p>I have tried the following code :</p> <p>1.Code to convert bitmap to byte array :</p> <pre><code>private byte[] bitmaptoByteArray( Bitmap bmp) { ByteArrayOutputStream stream = new ByteArrayOutputStream(); bmp.compress(Bitmap.CompressFormat.PNG, 100, stream); byte[] byteArray = s...
0
1,475
GsaIOException Buffer overflow, no available space
<p>I have a MediaPlayer app with a live streaming function. When I test the app with a physically device(API 22 Lollipop and API 23 Marshmallow) there are no problems with starting of the stream. Today I want to test the application with a Emulator (API 25 Nougat). Stream is not working and I get the following error:</...
0
3,911
What is the operator precedence when writing a double inequality in Python (explicitly in the code, and how can this be overridden for arrays?)
<p>What is the specific code, in order, being executed when I ask for something like</p> <pre><code>&gt;&gt;&gt; 1 &lt;= 3 &gt;= 2 True </code></pre> <p>If both have equal precedence and it's just the order of their evaluation, why does the second inequality function as <code>(3 &gt;= 2)</code> instead of <code>(True...
0
1,188
How to wait for 2 Actions in @ngrx/effects
<p>Can effect wait two actions like Promise.all? Example:</p> <pre><code>@Effect() pulic addUser() { return this.actions$.ofType(user.ADD) .switchMap(() =&gt; { return this.userService.add(); }) .map(() =&gt; { return new user.AddSuccessAction(); }); } @Effect() pulic addU...
0
3,108
NaN loss in tensorflow LSTM model
<p>The following network code, which should be your classic simple LSTM language model, starts outputting nan loss after a while... on my training set it takes a couple of hours and I couldn't replicate it easily on smaller datasets. But it always happens in serious training.</p> <p>Sparse_softmax_with_cross_entropy s...
0
1,387
lxml error "IOError: Error reading file" when parsing facebook mobile in a python scraper script
<p>I use a modified script from <a href="https://stackoverflow.com/questions/2030652/logging-into-facebook-with-python">Logging into facebook with python</a> post :</p> <pre><code>#!/usr/bin/python2 -u # -*- coding: utf8 -*- facebook_email = "YOUR_MAIL@DOMAIN.TLD" facebook_passwd = "YOUR_PASSWORD" import cookielib,...
0
1,419
Jquery AJAX POST call return 200 status OK but error
<p>Hi I have implemented one Ajax POST request to call web service. It always return 200 OK but execute failed event I have tried lot of things but I am not getting where I am doing mistake. I am adding my code here. <a href="http://fiddler2.com/">Fiddler</a> shows the response content but Ajax is not executing success...
0
3,007
Unable to center image with position absolute
<p>On my image I have a progress bar in svg that wraps around image. How ever when I try and center the image it does not go into the middle. The svg does but not the image.</p> <p>Question: How is it possible to make the img and svg be in middle of column.</p> <p>Codepen Example <a href="http://codepen.io/wolfgang19...
0
2,064
PrimeFaces inputText enable/disable
<p>I have two radio buttons on JSF2/PrimeFaces page, which I need to enable/disable an inputText field depending on the choice.</p> <pre><code>&lt;h:form prependId="false"&gt; &lt;p:panelGrid id="notif"&gt; &lt;p:row id="notif1"&gt; &lt;p:column&gt; &lt;h:outputText value="label...
0
1,419
keep button position on panel resize
<p>I've been messing around with something that should be simple.</p> <p>I've moved jobs and trying to get some of the basic tools I have used before, but of course I don't have the old source to look at.</p> <p>We had extended panel to have some standard properties and functions (save, close, save and close).</p> <...
0
1,619
malloc.c: No such file or directory
<p>I am trying to write a program in C which accepts a stream of inputs and break the input based on the occurrence of spaces in the string and creates a 2-D array from them. e.g.</p> <p>If input is :</p> <p><code>this is cat</code></p> <p>Output:</p> <p><code>this</code><br /> <code>is</code><br /> <code>cat</code...
0
1,028
TypeError: unsupported operand type(s) for -: 'str' and 'str' in python 3.x Anaconda
<p>I am trying to count some instances per hour time in a large dataset. The code below seems to work fine on python 2.7 but I had to upgrade it to 3.x latest version of python with all updated packages on Anaconda. When I am trying to execute the program I am getting following <code>str</code> error </p> <p>Code: </p...
0
1,027
Angular js Routes, 500 internal server error
<p>I have a directory structure like this - </p> <pre><code>-project -public -app -app.js ( angular app module ) -server -server.js ( node root js file ) -includes -layout.jade -scripts.jade -views -index.jade -partials -main ...
0
1,209
Uploading file with ajax and java servlet
<p>I am trying to upload a csv file inside from a jsp page using a servlet that extends HttpServlet. Inside the jsp page I am using an ajax that should call the servlet.</p> <p>This is the ajax part:</p> <pre><code> $(function() { $(".upldBtn").click(function() { alert("Upload button pushed"); ...
0
1,666
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: A required header representing a Message Addressing Property is not present
<p>Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: A required header representing a Message Addressing Property is not present</p> <p>what i am missing? i add wdsl-addressing programatically:</p> <pre><code>wsbp.setOutboundHeaders( new StringHeader(WS_ADDR_VER.messageIDTag, uuid), replyTo.createHeade...
0
2,393
Using an abstract class in C++
<p>I'm trying to use an abstract class when passing an extended object as an parameter to a function, but my attempts so far have led to some compiler errors.</p> <p>I have a few clues as to what the problem is, I'm obviously not allowed to instantiate an abstract class, and I believe some of the code in MyClass is tr...
0
1,184
Cannot find commons logging class
<p>It's strange. I just changed some stuff in my web application and can't revert the stuff because I can't remember what I've changed.</p> <p>I'm getting this exception when trying to run my webapp:</p> <pre><code>Exception sending context initialized event to listener instance of class org.springframework.web.conte...
0
9,418
How to test if method has been called only once and not the second time in Jasmine?
<p>I am testing mechanism that should call method once and prevent any subsequent calls with jasmine, I can see by attaching breakpoints that method is NOT being called second time however jasmine test fails. I would assume it has to do with <code>spy</code> not being designed to be used for multiple checks.<br> <stron...
0
1,370
Setup Java 6 annotation processing configuration for eclipse compiler with maven
<p>What's the best way to setup the eclipse project compiler configuration for Java 6 annotation processors?</p> <p>My solution is to setup the <code>org.eclipse.jdt.apt.core.prefs</code> and <code>factorypath</code> files manually. This is a bit cumbersome:</p> <ul> <li>Reference the processor jar in the factorypath...
0
1,454
Message: "CSRF token mismatch.", exception: "Symfony\Component\HttpKernel\Exception\HttpException",…}
<p>I am A PHP developer and currently moving towards Laravel framework as per my task I have to complete the realtime table using ajax but I am sticking with an error which is CSRF token mismatch error please help me to resolve the error I am posting shortcode only</p> <p><strong>JAVA Script</strong></p> <pre><code>&lt...
0
1,061
Hibernate: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
<p>First of all sorry. I know it's have been alot of same topics, but maybe my english bad or maybe I did not find the right answer.</p> <p>I use Optimistic locking @Version annotation. I need one for one Row from one table have numerous Rows from different table and I did insert like this:</p> <p>So it has to look ...
0
2,004
Jquery Text editor
<p>I have recently decided to use the jQuery text editor. However, I am confused when I access the <code>textarea</code> on which I am using the jqte the textarea shows no data. </p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;m...
0
1,284
C++ FFmpeg create mp4 file
<p>I'm trying to create mp4 video file with FFmpeg and C++, but in result I receive broken file (windows player shows "Can't play ... 0xc00d36c4"). If I create .h264 file, it can be played with 'ffplay' and successfully converted to mp4 via CL.</p> <p>My code:</p> <pre><code>int main() { char *filename = "tmp.mp4...
0
3,725
Get row Id from a display tag table on a jsp, into a struts 2 action class
<p>I am using display tag to display data in a table on a JSP. Now I want to give two links for each row, one for editing &amp; one for deleting the row.</p> <p>There are some posts on stackoverflow regarding the same([question]: <a href="https://stackoverflow.com/questions/3454288/how-to-use-multiple-buttons-one-on-e...
0
1,762
How to make maven to take resources from /src/test/resources instead of /src/main/resources for a dependent project?
<p>I've searched the forum to find the answer to my problem, but I was unable to find it. My problem is, that:</p> <p>I have two projects: ProjectA and ProjectB. ProjectB uses ProjectA. In ProjectA i have two folders: /src/main/resources and /src/test/resources. In ProjectB i run: mvn clean install. I want, that in th...
0
2,196
Try / Try-with-resources and Connection, Statement and ResultSet closing
<p>I have recently having some discussions with my professor about how to handle the basic jdbc connection scheme. Suppose we want to execute two queries, this is what he proposes</p> <pre><code>public void doQueries() throws MyException{ Connection con = null; try { con = DriverManager.getConnection(d...
0
1,516
Problems calling webservice - javax.xml.ws.WebServiceException and class do not have a property of the name
<p>I have a wsdl file, lot of xsd files, jxb binding file. I created a web service client using Apache CXF cxf-codegen-plugin. Java classes are created without any errors. But when I try to call any of the generated methods, I get an exception:</p> <pre><code>Exception in thread "main" javax.xml.ws.WebServiceException...
0
1,193
Downgrading Elastic Search from 7 to 6?
<p>I am trying to downgrade Elastic Search from 7 to 6 as the application I am using only works on 6.</p> <p>When I install 6 I get boosted to 7 for some reason:</p> <pre><code>{ "name" : "activecollab-v6", "cluster_name" : "elasticsearch", "cluster_uuid" : "D7qs_zqTTX6Rv8AiE_ioqw", "version" : { "number"...
0
5,729
PhpMyAdmin error: 403 forbidden
<p>I had phpmyadmin installed but when i was on the site : ip/phpmyadmin i tried to logon, but i couldent, it would not redirect me so I removed it and reinstalled.</p> <p>From then on I cant even connected to the site. In the /etc/httpd/phpMyAdmin.conf file I have added my ips four times like so...</p> <pre><code># ...
0
1,031
Unable to install CRDs in kubernetes kind
<p>I am setting up a <code>kind</code> cluster</p> <pre><code>Creating cluster &quot;kind&quot; ... ✓ Ensuring node image (kindest/node:v1.22.1) ✓ Preparing nodes ✓ Writing configuration ✓ Starting control-plane ️ ✓ Installing CNI ✓ Installing StorageClass ✓ Joining worker nodes ✓ Waiting ≤ 5m0s ...
0
1,139
Android - how to parse JsonArray from string?
<p>I am trying to parse a json array from json string but it always throws the exception <code>data of type java.lang.String cannot be converted to JSONArray</code>.</p> <p>Please tell me if I make any mistake.</p> <p>Thanks.</p> <p>Here is my codes to get Json from server:</p> <pre><code>try { Stri...
0
1,703
Running spark scala example fails
<p>I'm new to both Spark and Scala. I've created an IntelliJ Scala project with SBT and added a few lines to build.sbt.</p> <pre><code>name := "test-one" version := "1.0" scalaVersion := "2.11.2" libraryDependencies += "org.apache.spark" % "spark-core_2.10" % "1.1.0" </code></pre> <p>My version of Scala is 2.10.4 ...
0
1,113
check return value fread and fwrite
<pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int main(int argc, char *argv[]){ if(argc != 3){ printf("Usage: ./copy filename newfile\n"); exit(1); } int bytes; long file_size, file_copied_size; FILE *file_to_copy, *new_file; if((file_to_copy = fopen(argv[1], "rb")) == NULL){ ...
0
1,038
How to read and save attachments using node-imap
<p>I'm using <a href="https://github.com/mscdex/node-imap" rel="noreferrer">node-imap</a> and I can't find a straightforward code example of how to save attachments from emails fetched using <a href="https://github.com/mscdex/node-imap" rel="noreferrer">node-imap</a> to disk using fs.</p> <p>I've read the documentatio...
0
1,066
Parse bson string in python?
<p>I have a bson formatted string in file</p> <p>I want to read that file and get the encoded json.</p> <p>I was looking into the example here:</p> <pre><code>&gt;&gt;&gt; from bson import BSON &gt;&gt;&gt; bson_string = BSON.encode({"hello": "world"}) &gt;&gt;&gt; bson_string '\x16\x00\x00\x00\x02hello\x00\x06\x00\...
0
1,801
Gson throws MalformedJsonException, and other Exceptions
<p>I tried to save data to json string in a txt file using Gson and then restore it using Gson either. Things go well if I do it in eclipse. But when packaged to jar, Gson throws Exceptions.</p> <p>Here is the code for saving the file.</p> <pre><code>String gsonStr = gson.toJson(masterShips); // masterShips is Array...
0
2,486
nknown error: Runtime.evaluate threw exception: SyntaxError: Unexpected token var
<p>I have this code:</p> <pre><code> JavascriptExecutor javascriptExecutor = (JavascriptExecutor) driver; // javascriptExecutor.executeScript("W.setOffer({offer: {kind: \"coupon\", title: \"Hello\", availability: " + // "\"available\"}},{})"); String script = "var ...
0
1,645
How can I keep objects from being released when using Objective-C ARC with Xcode 4.2?
<p>ETA: See the bottom for some more info I got by Profiling the app.</p> <p>I have an iPhone app that I just converted to use ARC, and now I'm getting several errors because of zombie objects. Before I switched, I was manually retaining them, and everything was fine. I can't figure out why ARC isn't retaining them....
0
3,013
JSP - Get Add result in the same form/same page
<p>I am trying to figure out how to add two nubers and have the result on the same page using Java/jsp (in this case - in the "result" area in the jsp. I tried with session attribute, but there is still something wrong with my code... I do not want to use javascript etc, but "pure java" only :) </p> <p>Could you help:...
0
1,268
cannot create temp file for here-document: No space left on device
<p>i have a digital ocean Ubuntu server, two days ago every page in my website gives me error 500, </p> <p>in ssh i got this error message "No space left on device",</p> <p><a href="https://i.stack.imgur.com/Tv1ld.png" rel="noreferrer">For more info please check this SSH screenshot</a> <br /><br /> so i restore backu...
0
1,223
redirect from jsf?
<p>I am working on application with jsp, jstl and jsf for my college project, thats being said, I am as well very new to jsf.</p> <p>Everything is going great so far. However, I seems to have a problem figuring out how to do redirect from managed bean to page with dinamyc parameters. For example <code>article.jsp?arti...
0
1,340
Jenkins fails when running "service start jenkins"
<p>I installed jenkins on Centos 7 using the following:</p> <pre><code>sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key yum install jenkins </code></pre> <p>as <a href="http://pkg.jenkins-ci.org/redhat-stable...
0
1,767
AngularJS : $watch not triggered on change ($scope issue with include page)
<p><strong>Html:</strong></p> <pre><code>Filter: &lt;input type="radio" ng-model="Type" value="Rear"&gt; Rear &lt;input type="radio" ng-model="Type" value="Front"&gt; Front &lt;br&gt; Select: &lt;name-value-select entry="entry" field="axleType" options="filterTypes"&gt;&lt;/name-value-select&gt; </code></pre> <p><st...
0
1,838
marginTop does not work with ConstraintLayout and wrap_content
<p>In my Fragment I have a ConstraintLayout with <code>layout_height=&quot;wrap_content&quot;</code> and I would like to have a margin between my two buttons at the bottom of the view.</p> <p>When I add this margin as <code>layout_marginBottom</code> to the upper button (<strong>button_welcome_signup</strong>) it seems...
0
2,160
Failed to install android-sdk: "java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema"
<p>When installing the android sdk tools the following error is emitted:</p> <blockquote> <p>java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema</p> </blockquote> <p>Why is this happening and how can it be fixed?</p> <p>Debug output:</p> <pre><code>$ java --version java 9 Java(TM) SE Runtime Envir...
0
1,074
Can't enable CORS in ASP.Net Core web api
<p>I created an ASP.Net CORE web API project, with a single controller, and would now like to call it from a client (React) web app.</p> <p>However, the call fails with "No 'Access-Control-Allow-Origin' header is present on the requested resource.".</p> <p>When calling the same endpoint from Fiddler, the expected res...
0
1,469
How to increase annotation font size and bold the annotation value in line chart of google api chart?
<p>I am using google api line chart with annotation. How can I change the font size and font format?</p> <pre><code>&lt;script type="text/javascript"&gt; google.load("visualization", "1", {packages: ["corechart"]}); google.setOnLoadCallback(drawChart); function drawChart...
0
1,416
react-native run-android failed with error: Execution failed for task ':app:dexDebug'
<p>I'm using windows 8.1. with <code>react-native-cli: 1.0.0</code> and <code>react-native: 0.31.0</code> </p> <p>After adding <code>react-native-maps</code> to the project, I ran command <code>react-native upgrade</code> and given <strong>Y</strong> to all questions. Then linked deps with <code>rnpm link</code> as w...
0
7,741
Angular issue: Property 'nativeElement' does not exist on type 'ProductdetailComponent'
<p><strong>UPDATE:</strong></p> <p>ElementRef and fixing my syntax solved the issue in the title. The main problem I'm running into now is that I still can't change the textContent with this code </p> <p><code>ngAfterViewInit() { this.product1.nativeElement.textContent = this.productList[0].productName; }</code><...
0
1,110
Responsive tile layout with flexbox
<p>I want to create a tile layout (similiar to the metro style tile layout or what it's called of Windows 8). So I have some tiles/boxes, some are quadratic, some can be twice the sice and quadratic and some can have twice the width. So far so good, but I have an issue with responsiveness which I thougt flexbox would s...
0
1,149
AngularJS POST to Server
<p>I have an angularJS form which posts data to a Java Servlet, but I am not seeing the request go through; servlet "create" wasn't called.</p> <p>Here's my code:</p> <p>test.html</p> <p> </p> <pre><code>&lt;body&gt; &lt;form ng-controller="UserController"&gt; &lt;leg...
0
1,290
11001 returned on all calls to getaddrinfo()
<p>Having an issue connecting to a device on my network. Whenever I call getaddrinfo() it returns 11001. I have checked this with numerous different IP's in the IP_ADDRESS string (Global Var). I've checked all the non-working numbers with nslookup, and most exist there.</p> <p><a href="https://stackoverflow.com/questi...
0
1,858
Android ConnectionService incoming calls
<p>I'm trying to implement <code>iOS callkit</code> behavior on Android. I'm receiving a push notification from firebase and I want to show "incoming call" screen to the user. To do it I use <code>ConnectionService</code> from <code>android.telecom</code> package and other classes. </p> <p>Here is my call manager clas...
0
2,448
How to set a fixed height for a JavaFX text field regardless of its contents?
<p>I'm making a notepad application using JavaFX which includes a font selector window. The font selector includes a textfield within a gridpane layout which functions as a sample of what the selected font options will look like.</p> <p>Font selector:<br> <a href="https://i.stack.imgur.com/L1iI2.png" rel="nofollow nor...
0
2,261
Remove blue outline from Select box React Material UI
<p>I'm using a React Material UI Select component in my project. I've managed to get most of the desired custom styles, but there is still a blue outline around the Select box when the dropdown paper is visible, or once an option has been selected and you move the mouse off the box (but it is still in focus). Which ele...
0
1,363
Android xml rendering issue in eclipse?
<p>On creating new xml files in a project, rendering issue occur with error log as follows: </p> <pre><code>java.lang.NullPointerException Exception details are logged in Window &gt; Show View &gt; Error Log The following classes could not be instantiated: - android.support.v7.internal.app.WindowDecorAct...
0
2,463
Split a large json file into multiple smaller files
<p>I have a large JSON file, about 5 million records and a file size of about 32GB, that I need to get loaded into our Snowflake Data Warehouse. I need to get this file broken up into chunks of about 200k records (about 1.25GB) per file. I'd like to do this in either Node.JS or Python for deployment to an AWS Lambda fu...
0
13,683
How can I populate a table's cell through JavaScript code?
<p>I have a table as below. I have to populate the "Amount" field using the "Buy Quantity" and "Market Price" field. Amount = Buy Quantity*Market Price. I am doing something as -</p> <pre><code>&lt;script&gt; function populate() { var rows = document.getElementById("mytable").getElementsByTagName("tr"); for ( var i = ...
0
1,056
WCF duplex service using net tcp: "Stream Security is required..."
<p>I'm writing a service that allows users to register with it and receive notifications when an event happens. I'm trying to do this with netTcpBinding, but keep coming up with errors, even when running on my local machine.</p> <p>When I try to send a notification, I am timing out, getting this error:</p> <blockquo...
0
3,002
Retrieving data using LINQ
<p>I am stuck with this problem since few evenings. I have <code>SQLite</code> database in my application. I have created that SQLite DB from a file. The ERD diagram is shown below: <img src="https://i.stack.imgur.com/1bUqG.png" alt="enter image description here"></p> <p>And now in my application I create a connection...
0
1,260
phonegap.js crashes android app
<p>I'm having this weird problem, where including the <code>phonegap.js</code> file in my project causes the app to crash on both the android emulator and my phone. I got the latest file from <a href="https://github.com/phonegap/phonegap-android" rel="noreferrer">GitHub</a>, so I can't see why this isn't working.</p> ...
0
5,656
Typescript error - The Angular AoT build failed - Node.js + Ionic mobile app
<p>I'm trying to create an Android app (Node.js + Ionic) that shows random text and pictures (the selection of texts and pictures are stored in arrays). I'm trying to install this app on my phone. The app works in Chrome. </p> <p>When I give the ionic serve command in the command prompt, it works perfectly in Chrome, ...
0
2,085
JavaScript TypeError: Cannot read property 'id' of undefined
<h1>Preface:</h1> <p>I have an HTML table where user fills in Name and URL of social networks where they have account. Each row has a checkbox. With the help of jQuery and JavaScript, on pressing Add Row button, a row is dynamically added to the table and on pressing delete row button those rows are deleted for which ...
0
3,420
Custom Listview with CheckBox single selection
<p>Here I am creating custom listview with checkbox / RadioButton. I got this but I need the single selection for that.</p> <p>I try using this <code>lstvw.setChoiceMode(ListView.CHOICE_MODE_SINGLE);</code> but it not works for me. Is there any other solutions for that then please let me know.</p> <p>main.java</p> ...
0
1,273
Reading attribute values with XmlReader
<p>I have an XML file that I'm trying to read from <a href="http://www.newyorkfed.org/markets/seclend/xml/v3_0/secLendingXML.cfm" rel="noreferrer">here</a>, and have the following code:</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.I...
0
1,164
Can Process.Start() take the system PATH into account?
<p>I've been searching and experimenting for a while with this, but I have had no luck.</p> <p>I am trying to make a console program to automate some tasks that I couldn't quite do with a BAT file. I want to call "signcode.exe" from the Windows SDK, the bin folder with all the tools in my system PATH, and I can call ...
0
1,185
ClassCastException DataSource cannot be cast to javax.sql.ConnectionPoolDataSource
<p>I'm getting this exception:</p> <pre><code>java.lang.ClassCastException: org.apache.tomcat.jdbc.pool.DataSource cannot be cast to javax.sql.ConnectionPoolDataSource </code></pre> <p>When I try to run my webapp (in Tomcat6) that use tomcat jdbc pool that seamlessly work with Tomcat7</p> <p>I have included these ja...
0
1,307
Error in x[j] : invalid subscript type 'list' while using subset in R
<p>I have a problem while I'm trying to subset my dataframe. Here is the code that I'm using to import data file and sub-setting;</p> <pre><code>fiber_val&lt;-read.csv(file.choose(), header=TRUE, dec=",", check.names=FALSE,stringsAsFactors=FALSE) y&lt;-14 z&lt;-16 fiber_val[, y:z] &lt;- sapply(fiber_val[, y:z], as.num...
0
1,913
Android ExpandableListView : set background color of selected item on click
<p>I am trying to set a background color for item when the user click on a child item in my <code>expandableListView</code>.</p> <p>Here is the code :</p> <pre><code>expListView.setOnChildClickListener(new OnChildClickListener() { @Override public boolean onChildClick(ExpandableListView parent, View v, final...
0
1,212
wsdl2java error on generating the java classes
<p>I'm trying to write a java SOAP client for a PHP SOAP server. For an easier start I would like to generate the java classes via wsdl2java, but unfortunately I'm getting the following error from wsdl2java.</p> <p>[edit] I forgot to mention, that I'm using wsdl2java from Axis2 1.6.2 to generate the java classes. [/ed...
0
6,707
How to create nested object in MongoDB schema
<p>I currently have the following schema for a MongoDB document which is supposed to save user data:</p> <pre><code>var userSchema = new mongoose.Schema({ username: {type: String, unique : true}, password: {type: String}, firstname: String, lastname: String, sketches: [ {name:...
0
1,404
AngularJS: ui-router Redirect view on success & refresh scope with new contents
<p>I am migrating from ng-view to ui-view.</p> <p>In my controller, upon successful create / update / delete, I would like to redirect to an index view with the newly updated / created / deleted data.</p> <p>I currently do this using <code>$state.go</code>.</p> <pre><code>app.controller('AdminSupplierCreateControlle...
0
1,397
rJava load error in RStudio/R after "upgrading" to OSX Yosemite
<p>I recently "upgraded" from OSX Mountain Lion to Yosemite and from R 3.1.3 to 3.2. Immediately after the upgrade, when I opened R or RStudio I got a pop-up message saying that I needed to install Java 6. In addition, loading <code>rJava</code> or any package that depends on rJava (e.g., <code>xlsx</code>) caused RStu...
0
1,479
CreateFileMapping, MapViewOfFile, handle leaking c++
<p><strong>Background:</strong> I am trying to create a memory mapped file that can be accessed by multiple processes. In the below code I only put in the code that pertains to the question I currently have to make things simpler. According to msdn I should be able to create a filemap, map the view of the file and clos...
0
1,613
Headless continuous integration with Jenkins
<p>I’m trying to set up Jenkins on a RackSpace ArchLinux Cloud Server, but I’ve been unable to.</p> <p>Whenever I try to access Jenkins site, I get this error:</p> <pre><code>AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true"? java.lang.NullPointerEx...
0
1,216
Send string from service to activity
<p>I'm trying to send string from service to my main activity with broadcast. I have read in a few forums that there are 2 ways to use broadcast. One is to register the activity in the manifest and the second way is to do it on the activity, local. I would like to know how I can use the second way. I have tried to do ...
0
1,361
namenode, datanode not list by using jps
<p>Environment: ubuntu 14.04, hadoop 2.6</p> <p>After I type the <code>start-all.sh</code> and <code>jps</code>, <code>DataNode</code> doesn't list on the terminal </p> <pre><code>&gt;jps 9529 ResourceManager 9652 NodeManager 9060 NameNode 10108 Jps 9384 SecondaryNameNode </code></pre> <p>according to this answer : ...
0
3,403
Quartz Scheduler : Failed to obtain DB connection from data source
<p>I trying to implement <code>Quartz-Scheduler</code> in <code>Spring-Boot</code> application. </p> <p>But when I'm trying to schedule job, I'getting this exception:</p> <pre><code>2017-03-21 15:57:42.817 INFO 12069 --- [o-8080-exec-178] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'QuartzScheduler' ...
0
5,043
Styling HTML5 Video Controls
<p>I can't seem to get the styling correct on the video player controls as nothing seems to align correctly.</p> <p>I've tried wrapping the items in divs, and lis but things just don't seem to move or align correctly.</p> <p>Any suggestions?</p> <p>What i have so far: <a href="http://jsfiddle.net/pp6Wn/">http://jsfi...
0
7,111
Material Design Lite grid with tables
<p>I am experimenting with the recently released MDL kit and trying to use the grid layout with cards and tables. </p> <p>what I found was the MDL grid is not as flexible as the Bootstrap grid for nested columns (probably 'cos I don't know enough about it yet). So in my 3 column layout I use cards and tables side-by-s...
0
2,595
Display menu on hover reactjs
<p>In a react application, I am using reactstrap css framework to make the dropdowns to list the dropdown menus.</p> <p><strong>Example.Js</strong></p> <pre><code> &lt;Dropdown className="d-inline-block" onMouseOver={this.onMouseEnter} onMouseLeave={this.onMouseLeave} isOpen={this...
0
1,056
Nginx error -Starting nginx: nginx: emerg unknown "status" variable
<p>What I am trying to do using nginx is- to call a backend for authentication and if the response is successful I will redirect to website 1 (for example -google.com) and if authentication fail I will redirect to website2(facebook for example).</p> <p>Below is my nginx.conf-</p> <pre><code>user nginx; ...
0
2,170
What does request_mem_region() actually do and when it is needed?
<p>I'm studying on writing embedded linux driver, and decided to fire a few GPIOs to make sure I understand the book <a href="https://static.lwn.net/images/pdf/LDD3/ch09.pdf" rel="nofollow noreferrer">(LDD3, chap9.4.1)</a> correctly.</p> <p>I am able to control the correct GPIO pins as intended (making it high and low,...
0
1,047
I get the error "Unreachable statement" return in android
<p>Why do I get the error that line 92 is an unreachable statement? The error is in this line:</p> <pre class="lang-java prettyprint-override"><code>final RadioButton r1 = (RadioButton) getView().findViewById(R.id.radio1); </code></pre> <p>Code:</p> <pre class="lang-java prettyprint-override"><code>public class Ta...
0
2,894
MVC - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
<p>I am having a problem with some Ajax code I wrote for my MVC 5 project, I am trying to implement a search bar for my table using ajax but I am running into this error "Failed to load resource: the server responded with a status of 500 (Internal Server Error)".</p> <p>This is my Partial View code which includes the ...
0
1,524
Ecplipse ANT build error
<p>I'm new with ANT build, and I have a trouble with it, when I try to build I'm receiving a message:</p> <p>BUILD FAILED C:\Users\user\Documents\PM\proyecto-base\proyecto-base\intranet\build.xml:169: Reference xdoclet.classpath not found.</p> <p>but I have xdoclet.classpath declared already in the same file.</p> <p...
0
5,155