title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Xcode11 : Unable to install “AppName”
<p>If you try to run the app on a real device<br> The following error appears and cannot be executed.<br> Why does this happen?<br> Are there any settings that should be reviewed? </p> <h2>Issue Details</h2> <pre><code>Unable to install "AppName" Domain: com.apple.dtdevicekit Code: -402653103 -- App installation fai...
0
1,174
Configure ASP.NET Core 2.0 Kestrel for HTTPS
<p>TL;DR What is today the correct way to setup HTTPS with ASP.NET Core 2.0?</p> <p>I would like to configure my project to use https and a certificate like they have shown at <a href="https://www.youtube.com/watch?v=h9hlN0DOKRM&amp;t=1342s" rel="noreferrer">BUILD 2017</a>. I have tried several settings but nothing wo...
0
1,570
Parameter Names in WSDL with significant name
<p>I am creating a WebService in Java using JAXWS RI. The WSDL file is created when deploying the application WAR automatically. The problem is that I want the arguments (that each operation recieves) in the WSDL file to have significant names, but they appear as arg0, arg1, arg2 ... Is there a way to define the name...
0
1,061
Recyclerview duplicated items on scroll
<p>It seems like this is a pretty common question, but none of the other questions helped me on figuring this out. So, the problem is, I have a recyclerview that is duplicating the items when i scroll. Like this: <a href="http://i.stack.imgur.com/9iLbQ.png" rel="noreferrer">duplicated items.</a></p> <p>It looks like t...
0
2,753
How to use Microsoft.Office.Interop.Excel on a machine without installed MS Office?
<p>I'm writing an application which works with excel files. I need a feature to delete a sheet. I have to use an assembly Microsoft.Office.Interop.Excel.dll.</p> <p>It's running fine on developer machine but when I try to deploy it on server I'm getting an error:</p> <blockquote> <p>Could not load file or assembly ...
0
1,205
onkeyup and onkeydown not catching anything
<p>Can someone tell me whats going on? My console isn't throwing any exceptions.</p> <pre><code> function onKeyDown(){ var e = event.keyCode; //if (e==87 /*w*/){ up = true; throw('up'); //} ...
0
1,627
How make Java 8 Nashorn fast?
<p>I'm using Java 8 Nashorn to render <a href="http://commonmark.org/" rel="nofollow noreferrer">CommonMark</a> to HTML server side. If I compile and cache and reuse a <code>CompiledScript</code>, a certain page takes 5 minutes to render. However, if I instead use <code>eval</code>, and cache and reuse the script engin...
0
1,179
How to insert CDATA into XML text markup exported from Access 2003?
<p>I've got an XML export from Access 2003 and I tried to insert CDATA tag on text field (latin...) with XSLT but I'm very bad in XSLT...</p> <p>Here the XML source :</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;dataroot xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xsi="http://www....
0
1,336
laravel/framework requires ext-mbstring
<p>I am using Kali linux and I am having difficulty installing the laravel framework. I havelooked up in different links like <a href="https://stackoverflow.com/questions/40357524/cant-install-laravel-on-kali-linux">this</a> one and manyothers but nothing seems to work. For every this I do. It keeps bringing this error...
0
2,755
"No url found for submodule path in .gitmodules" error in Azure DevOps build
<p>A repo ("website") has a submodule ("template"). The submodule is referenced inside a directory of the repo. The goal is to use an Azure DevOps pipeline to build the repo and submodule together. However, the Azure DevOps build throws the following errors:</p> <ul> <li><code>fatal: No url found for submodule path '&...
0
1,216
What is the best way to reuse blocks of XAML?
<p>I've got many user controls like this:</p> <p><strong>PageManageCustomers.xaml.cs:</strong></p> <pre><code>public partial class PageManageCustomers : BasePage { ... } </code></pre> <p>which inherit from:</p> <p><strong>PageBase.cs:</strong></p> <pre><code>public class BasePage : UserControl, INotifyPropertyCha...
0
2,539
Jackson->Jackson + HttpPost = "Invalid UTF-8 middle byte", Setting Mime and Encoding
<p>I'm using the Apache HTTP Client libs and Jackson in my client. When I post JSON to the server I get the error:</p> <pre><code>org.codehaus.jackson.JsonParseException: Invalid UTF-8 middle byte 0x65 at [Source: HttpInputOverHTTP@22a4ac95; line: 1, column: 81] </code></pre> <p>If I don't set any headers than I ge...
0
1,480
Why RMI registry is ignoring the java.rmi.server.codebase property
<p>I am running a Hello World example for java RMI</p> <p>1) I run the registry in an empty folder </p> <pre><code>motta@motta-laptop ~/tmp $ rmiregistry </code></pre> <p>2) I start the HTTP server to retrieve the classes at runtime. The download folder contains the remote interface for the client-server </p> <pre...
0
1,077
Only show modal after validation check and form has been submitted
<p>There are quite a few examples out there at the moment and i have not been able to get this to work. I am trying to load my modal only once my form has passed simple validation and has been submitted. Right now it just loads the modal when i click submit, even if it fails validation.<br><br> For example below, the c...
0
1,282
Circular Progress Bar for Java Swing not working
<p>i've discovered this <a href="http://docs.oracle.com/javase/tutorial/uiswing/misc/jlayer.html#animating">test project</a> from Oracle site because i want to add a circular progress bar in my project.</p> <p>I'm developing the application with Netbeans, and when i start the application, the JPanel where the circle s...
0
2,546
yeoman webapp with grunt-connect-proxy not working
<p>I have installed the yeoman webapp generator and I am trying to set up a proxy to another server. </p> <p>I installed the proxy with the following. npm install grunt-connect-proxy --save-dev</p> <p>When I run grunt server, it shows</p> <pre><code>Running "configureProxies" task Proxy created for: /people to local...
0
14,522
Exit Application in Qt
<p>I have built an app in Qt that contains two buttons: an exit button and an import button. When the import button is pushed, a list of buttons is shown in a scrollarea on the screen (the file loggers.csv contains the data 1;2;3;4;5;). </p> <p>It all works fine, but when I push the exit button (which of course should...
0
2,080
How to setup app settings in a .Net Core 3 Worker Service
<p>I have been looking at a number of tutorials and SO questions (such as <a href="https://stackoverflow.com/questions/48778144/app-settings-net-core">App Settings .Net Core</a>) regarding reading appsettings.json in .Net Core 3 and I cannot find any pointers on how-to when dealing with the Worker service. There is no ...
0
1,266
C# ConfigurationManager.GetSection could not load file or assembly
<p>I am stuck! this seems really daft but I can not see where I am going wrong. I am creating a 2.0 C# ASP.NET website. I am trying to use a custom section in the web.config file with:</p> <pre><code>DatabaseFactorySectionHandler sectionHandler = ConfigurationManager.GetSection("DatabaseFactoryConfiguration") as Da...
0
1,388
PHP Curl request not working but works fine in POSTMAN
<p>I am trying to login to MCA portal ( POST URL : <a href="http://www.mca.gov.in/mcafoportal/loginValidateUser.do" rel="noreferrer">http://www.mca.gov.in/mcafoportal/loginValidateUser.do</a> )</p> <p>I tried logging in with POSTMAN app on Google Chrome which works fine. However, it doesnt work either in PHP/Python. I...
0
1,116
How to pass arguments to main function within Python module?
<p>I have recently started learning more about Python Packages and Modules. I'm currently busy updating my existing modules so that that can be run as script or imported as a module into my other code. I'm not sure how to construct my input arguments within my module and pass them to the main() function within my modul...
0
2,510
Can we make vue.js application without .vue extension component and webpack?
<p><strong>Note: Can we write vue.js large application without using any compiler for code like currently i see all example use webpack now to make vue.js code compatible for browser .</strong> </p> <p>I want make <code>vue.js</code> application without <code>webpack</code> and without using <code>.vue</code> extensio...
0
1,099
iphone SDK : Upload image from iphone to a php Server send empty file ?(sample code link inside)
<p>I try to send a photo and GPS location to server via PHP</p> <p>here is the PHP part:<a href="http://www.w3schools.com/PHP/php_file_upload.asp" rel="nofollow noreferrer">Copy from here</a> Saving the Uploaded File</p> <p>The examples above create a temporary copy of the uploaded files in the PHP temp folder on the...
0
1,251
How to retrieve my public and private key from the keystore we created
<p>My task is the following:</p> <ul> <li>Retrieve my public and private key from the keystore I created.</li> <li>Use these keys to encrypt a paragraph using my RSA 2048-bit public key.</li> <li>Digitally sign the result using the DSA-SHA-1 signature algorithm.</li> <li>Save the digital signature output on a file cal...
0
1,722
@WebMvcTest fails with java.lang.IllegalStateException: Failed to load ApplicationContext
<p>I'm having trouble getting my tests annotated with <code>@WebMvcTest</code> to work. I have also configured spring-cloud-config-server and spring-cloud-starter, and all Test classes with this annotation seem to fail. I have the following controller test:</p> <p><strong>Code:</strong></p> <pre><code>@RunWith(Spring...
0
7,461
Msys2 with python 3.8: ImportError: cannot import name 'open_code' from 'io'
<p><strong>NOTE: There have been several EDITs to the question, as per comments. They are indicated below, and separated by lines.</strong> <strong>As of now, the only remaining issue seems to be that numpy cannot load, possibly (but not certainly) due to two alternative python 3.8 systems present.</strong></p> <p>I h...
0
7,856
pyserial error - cannot open port
<p>I have seen simple code in stackoverflow using pyserial in USB ports with Python 3.3 but I can't get this to work on my new installation of pyserial 2.7 [in Windows 7, 64 bit, with 3 USB ports]. Installation of pyserial went smoothly, I can import without error and methods are recognized in the Pyscripter IDE which...
0
1,068
ANDROID_HOME is not set and "android" command not in your PATH Phonegap
<p>i have installed android bundle and i have configured everything in .bashrc file and even when i say android in command line .. i am getting android manager .. but when i say ionic platform add android i am always getting error as "Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulf...
0
1,230
Android:Crash: Binary XML file line : Error inflating class (using SurfaceView)
<p>I'm having android surfaceView and in that I'm trying to add buttons to this. In the surfaceView canvas I draw something. And I have a thread class to keep drawing.</p> <pre><code>package com.androidsurfaceview; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget....
0
4,600
Start fragment activity
<p>I have an application with many fragments, and am trying to go from one fragment to another when a button is clicked.</p> <p>The part I'm having trouble with is <code>startActivity(new Intent(HomeFragment.this, FindPeopleFragment.class));</code></p> <pre><code>package info.androidhive.slidingmenu; import info.and...
0
2,070
NodeJS - TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
<p>I have a Node/React project in my Webstorm that won't run because of this error. I had to reinstall Windows and start fresh with my development. I got the code back into the IDE, but when I start up the Node server, I am getting the following error: <code>TypeError [ERR_INVALID_ARG_TYPE]: The &quot;path&quot; argu...
0
4,293
error when using https with flutter http.dart package
<p>i am usin http.dart package to make http post for login, everything is work good when my restful api in localhost and with (http protocol), but when upload my backend api to shared host with (https protocol):</p> <pre><code>I/flutter (12071): HandshakeException: Handshake error in client (OS Error: I/flutter (12071...
0
1,421
Split linked list into two other lists, one with odd indices the other one with even indices
<p>The question asked to write a function split() that copies the contents of a linked list into two other linked lists. The function copies nodes with even indices (0,2,etc)to EvenList and nodes with odd indices to oddList. The original linked list should not be modified. Assume that evenlist and oddlist will be passe...
0
1,516
Using discord API with PHP & cURL
<p>i've made a bot on discord, and i want to make request to the API to manage channels, display messages, those kind of things. I've started by using Postman, to make some calls to the API, it works fine.</p> <p>Link to the API : <a href="https://discordapp.com/developers/docs/intro" rel="noreferrer">https://discorda...
0
1,109
Make SliverAppBar have an image as a background instead of a color
<p>I have a SliverAppBar with a background image.</p> <p>When collapsed it has a blue color as a background:</p> <p><a href="https://i.stack.imgur.com/LskEcl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LskEcl.png" alt="enter image description here"></a> <a href="https://i.stack.imgur.com/ioR0ql.png" rel...
0
1,700
The prefix "xsi" for attribute "xsi:schemaLocation" associated with an element type "beans" is not bound. When running spring on tomcat
<p>Please help me to get out of this error I am not getting how can I resolve this?</p> <p><strong>Here is my web.xml and Dispatcher-servlet.xml files:</strong></p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/...
0
4,001
Is the following possible in PowerShell: "Select-Object <Property>.<SubProperty>"?
<p>The scenario: I'm using Select-Object to access properties of a piped object, and one of those properties is itself an object. Let's call it PropertyObject. I want to access a property of that PropertyObject, say Property1. Is there any nice and clean way of accessing Property1, along the lines of:</p> <pre><cod...
0
1,609
Non-static method requires a target
<p>I have a controller action that works fine on Firefox both locally and in production, and IE locally, but not IE in production. Here is my controller action:</p> <pre><code>public ActionResult MNPurchase() { CalculationViewModel calculationViewModel = (CalculationViewModel)TempData["calculationViewModel"]; ...
0
1,209
AsyncTask, must it take such a performance penalty hit...?
<p>I'm developing a small app that reads in specific html-pages, re-formats them and then shows them in a WebView. If I run my code in the GUI thread, the performance hit is close to negligible compared to simply letting the WebView show the original html-page. But if I'm a good boy and do like I'm told, I'm supposed t...
0
1,446
Postgres image is not creating database
<p>According to <a href="https://hub.docker.com/_/postgres/" rel="noreferrer">these docs</a>, I can specify the name of the database created by the postgres docker image with the env var <code>POSTGRES_DB</code>. I have set it in my docker-compose file, but it isn't being created.</p> <p>Here's relevant section from t...
0
1,635
Graphics.DrawImage not changing size of image
<p>I have a function which takes in an image and resizes it to fit a canvas while maintaining its aspect ratio. This code is only a minorly modified version of the code from this answer: <a href="https://stackoverflow.com/questions/1940581/c-sharp-image-resizing-to-different-size-while-preserving-aspect-ratio">c# Imag...
0
1,122
Retrieve RadGrid cell value in ItemDataBound - "Input string was not in a correct format."
<p>I am trying to set a CssClass based on a the comparison of two cell values in my radGrid. Both cells are formatted for currency <code>{0:c}</code>, so that when I compare them, I have a $ sign in the text string. I know how to parse a string to remove the $ sign, which is what I am doing. However, is there a way ...
0
1,422
How to redirect after successful login? [PHP]
<p>I've created a login system. The registration page works like a charm. But there's some problem with the login page. When I try to login, it logs me in, but it stays on the same login page. I mean there is no visible change in the login page even after logging in. I want it to redirect after a successful login, I've...
0
1,963
Google Play error when uploading Flutter app debuggable
<p>I've been using Google Play app signing, Flutter and VS Code without problems for a while now but since yesterday, every release build for every single Flutter project I'm working on keeps hitting an error and reporting that I'm trying to upload a debug build.</p> <blockquote> <p>&quot;You uploaded an APK or Android...
0
1,500
Golang exec process and to disown it
<p>I am trying to fork processes with my daemon, and trying to disown them in case of my daemon crashes. Regular <code>os/exec</code> is high-level, therefore I went for <code>syscall.ForkExec</code> and produced the following code:</p> <pre><code>package main import ( "fmt" "os" "os/exec" "syscall" ...
0
1,644
Bootstrap navbar collapse doesn't work
<p>I can't find the reason why, when trying to use the navbar button from Bootstrap, it doesn't work.</p> <p>I think it has something to do with my page loading the jQuery library or something, though I don't understand.</p> <p>Here is my code. I'll show just the head and navbar parts since I believe there's where th...
0
2,199
Sending data from arduino through bluetooth serial
<p>I’m currently trying to design a controller that would communicate through Bluetooth to an android phone (Galaxy Nexus). I’m facing a few challenges. Also, I don’t have much practical programming experience.</p> <p>At the core of the controller resides an Arduino microcontroller who scans the state of 8 digital pin...
0
1,198
Playing sound in WebView from JavaScript
<p>I'm trying to play sound from JavaScript code loaded to WebView from assets:</p> <pre><code>WebView web_view = (WebView) findViewById(R.id.web_view); web_view.getSettings().setJavaScriptEnabled(true); web_view.setWebChromeClient(new WebChromeClient()); web_view.loadUrl("file:///assets/www/index.html"); </code></pre...
0
2,021
XMLHttpRequest cannot load file. Cross origin requests are only supported for HTTP. angular.js
<p>I posted a question a couple of days ago regarding me making a copy of a popular website.</p> <p>What I'm looking to do is to do an exact copy of a mobile version of a website, I'm aware its a responsive design, so I enabled emulation in chrome and copied the source it showed, however it throws out errors constantl...
0
1,178
Python Requests POST doing a GET?
<p>I am using Python 2.7.5, Django 1.7, requests 2.4.1, and doing some simple testing. However, it seems like when I call requests.post, the method is doing a GET instead.</p> <p>My code, talking to a RESTful API. Note that the POST command works via Hurl.it with this payload and endpoint:</p> <pre><code>def add_dumm...
0
1,609
How to remove bottom line from the ionic 2 components
<p><img src="https://i.stack.imgur.com/yZgVY.png" alt="![enter image description here"></p> <p>I'm using ionic 2. I need to remove the bottom white line from the input field. This is my addVehicle.html page,</p> <pre><code>&lt;form [formGroup]="addCustomerForm" (ngSubmit)="onSubmit(addCustomerForm)"&gt; &lt;ion-item ...
0
1,728
UITableView deleteRowsAtIndexPath crash when delete last record
<p>I'm encountering the following error when I delete the last record from a <code>UITableView</code>. </p> <blockquote> <p>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing se...
0
2,170
Failed to create CUBLAS handle. Tensorflow interaction with OpenCV
<p>I am trying to use a PlayStation Eye Camera for a deep reinforcement learning project. The network, TensorFlow installation (0.11) and CUDA (8.0) are functional because I have been able to train the network on a simulation.</p> <p>Now when I am trying to read in images from the real camera the network code crashes ...
0
2,270
Am I configuring Hibernate hibernate.cfg.xml file correctly?
<p>I am using Hibernate (4.2.3) in a project for the first time. I am trying to get it to connect to an H2 embedded (local) DB and have the <code>h2-1.3.173.jar</code> on the classpath as well as all the Hibernate JARs. I'm getting some disturbing error messages from Hibernate in my log output that make me wonder if I ...
0
1,612
Operation stopped while importing CSV file into SQL server
<p>I am trying to import CSV file to SQL server database, with no success. I am still newbie to sql server.</p> <p>Operation stopped...</p> <ul> <li><p>Initializing Data Flow Task (Success)</p> </li> <li><p>Initializing Connections (Success)</p> </li> <li><p>Setting SQL Command (Success)</p> </li> <li><p>Setting Source...
0
1,237
Getting Error "Package doesn't exists" while compiling ant build.xml
<p>I am new to ANT build and getting error "package org.testng.annotations does not exist" and "package org.openqa.selenium does not exist" on compiling ant build.xml. </p> <p>Here is build.xml</p> <pre><code>&lt;project name="TestNGProject" default="usage" basedir="."&gt; &lt;!-- ===============Initialize property==...
0
3,931
Solr DataImportHandler not found
<p>I am using <a href="http://www.apache.org/dyn/closer.cgi/lucene/solr/" rel="noreferrer">Solr 3.3.0</a> with Tomcat 6.0.26. I was able to successfully install Solr and i was even able to access its web interface using http:/localhost:8084/solr/admin.</p> <p>Now i want to use its dataimporthandler to index data from...
0
1,657
Unable to resolve service for type when using my repository
<p>When I try and access my repository, I receive an error:</p> <blockquote> <p>InvalidOperationException: Unable to resolve service for type 'software.Notes.Repositories.NoteRepository' while attempting to activate 'software.Notes.Http.Handlers.ShowNote'.</p> </blockquote> <p>So, I have a simple SoftwareContext:</p> <...
0
1,295
php send mail form not working with emails on same domain
<p>I am trying to add a contact form to a website which posts the form data to an email address. It works fine with any other email registrants like Gmail and Yahoo. but it doesn't work with emails with same domain name (e.g.: info@domain.com or support@domain.com). </p> <p>The same form was working fine with godaddy ...
0
1,233
PHP: Notice: Undefined index where the session variable is defined
<p>I am making a registration system with an e-mail verifier. Your typical "use this code to verify" type of thing.</p> <p>I want a session variable to be stored, so that when people complete their account registration on the registration page and somehow navigate back to the page on accident, it reminds them that the...
0
1,505
com.google.zxing.NotFoundException exception comes when core java program executed?
<p>I have a jpeg file which has 2D bar code. Image resolution is 1593X1212. I am using xing library to decode this barcode from image. I got following code on net.</p> <pre><code>import java.awt.image.BufferedImage; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java....
0
1,262
Node.js "passport-google-oauth2" delivers "failed to fetch user profile" error in Express application
<p>While developing the last example of a <a href="/questions/tagged/node.js" class="post-tag" title="show questions tagged &#39;node.js&#39;" rel="tag">node.js</a>'s introductory <a href="https://pragprog.com/book/jwnode/node-js-the-right-way">book</a> (an <a href="/questions/tagged/express.js" class="post-tag" title=...
0
2,284
Proper way to use Spring JAXB Marshaller with Java 9 without defining additional modules
<p>To illustrate my issue, I created a small spring boot sample application. The purpose of the application is to create a <code>Jaxb2Marshaller</code> bean.</p> <pre><code>@SpringBootApplication public class App implements CommandLineRunner { public static void main(String[] args) { SpringApplication.run...
0
3,606
How to send a correct authorization header for basic authentication
<p>I am trying to POST data from my API but I can't pass the basic authentication.</p> <p>I try:</p> <pre><code>$.ajax({ type: 'POST', url: http://theappurl.com/api/v1/method/, data: {}, crossDomain: true, beforeSend: function(xhr) { xhr.setRequestHeader('Authorization', 'Basic [REDACTED]'); } }); </cod...
0
1,073
Normalize data in SQL query
<p>I have an SQL query <code>A</code> (see below for more details) that returns a table as following:</p> <pre><code>cluster brand amount 0 bos 600 0 phi 300 0 har 100 1 pro 2500 1 wal 1500 1 ash 1000 2 dil 4200 2 sor 500 2 ...
0
1,040
Kubernetes : node(s) didn't find available persistent volumes to bind
<p>I am trying to set up a local storage as outlined here (<a href="https://kubernetes.io/blog/2018/04/13/local-persistent-volumes-beta/" rel="nofollow noreferrer">https://kubernetes.io/blog/2018/04/13/local-persistent-volumes-beta/</a>) . I'm getting the following error that the scheduler is unable to schedule the pod...
0
2,163
Can I get an image digest without downloading the image?
<p>Similar to the question "<a href="https://stackoverflow.com/questions/32046334/what&#39;s-the-sha256-code-of-a-docker-image">What´s the sha256 code of a docker image?</a>", I would like to find the digest of a Docker image. I can see the digest when I download an image:</p> <pre><code>$ docker pull waisbrot/wait:la...
0
1,478
Firebase database getInstance crashes app
<p>When running the sample after creating google-service.json, the app crashes when trying to get database reference in SignInActivity</p> <pre><code>mDatabase = FirebaseDatabase.getInstance().getReference(); </code></pre> <p>Crash log</p> <pre><code>05-21 09:27:27.644 488-488/com.google.firebase.quickstart.database...
0
1,180
Antd 4.0.0: How to use form.getFieldValue() and all form's APIs by `const [form] = Form.useForm`?
<p>I run React with Ant Design and am getting this error:</p> <blockquote> <p>Instance created by 'useForm' is not connect to any Form element. Forget to pass 'form' prop?</p> </blockquote> <p><img src="https://i.stack.imgur.com/55FHD.png" alt="Error image" /></p> <p>Code:</p> <pre class="lang-js prettyprint-override">...
0
1,346
Why Invalid conversion requested ERROR CODE: 17132?
<p>I am trying to get last inserted row id while inserting using JDBC prepared statements. I have an auto increment primary key column as identity column in table. My code is below:</p> <pre><code>public static String insertMeetingToDB(String organizer,String subject,String location,String start_date_time,String end_d...
0
1,298
Can't export pandas dataframe to excel / encoding
<p>I'm unable to export one of my dataframes due to some encoding difficulty.</p> <pre><code>sjM.dtypes Customer Name object Total Sales float64 Sales Rank float64 Visit_Frequency float64 Last_Sale datetime64[ns] dtype: object </code></pre> <p>csv export w...
0
1,866
Windows: Auto start PM2 and node apps
<p>At a Windows AWS server i have a NODE app and i'm using PM2 to launch the app</p> <p>I have tried the NPMs: "pm2-windows-startup" and "pm2-windows-service"</p> <p>But after i restart my AWS instance and run</p> <pre><code>PM2 ls </code></pre> <p>No node app shows up in the list...</p> <p><strong>I followed the ...
0
4,056
How to display two forms next to each other
<p>I am not very strong with css but what I have is 2 forms below:</p> <pre><code> //below is where it displays course name $outputcourse = ""; $outputcourse .= "&lt;p&gt;&lt;strong&gt;Course:&lt;/strong&gt; " . $course . " - " . $coursename . "&lt;/p&gt;"; //below is where it displays modu...
0
1,960
android image save to res/drawable folder
<p>I want to save image into my local drive folder or to <code>res/drawable</code> folder in my application. I'm right now saving img into sd card but I've to save it in res/drawable folder. My code is:</p> <pre><code>String image_URL = "http://chart.apis.google.com/chart?chs=200x200&amp;cht=qr&amp;chl=http%3A%2F%2Fan...
0
1,253
String.Replace only replaces first occurrence of matched string. How to replace *all* occurrences?
<p>Coming from other programming languages, <code>String.replace()</code> typically replaces all occurrences of matching strings. However, that is not the case with <em>javascript/typescript</em>. I found a number of solutions on the web with <em>javascript</em> utilizing regex. I immediately had issues with this solut...
0
1,267
Java error, cannot find feild user2303583
<p>Hi I am trying to get my code to create the new constructor objects which i reqiure to create mobile phone object, I have tried naming the constuctor fields to create object, however Error comes up at</p> <pre><code>public Mobile(String Mobilephonetype, String Mobilescreensize, String Mobilememorycardcapac...
0
1,273
How to add child nodes in NodeSet using Nokogiri
<p>I am trying to add child nodes under a root node. I tried it with the following XML but it doesn't work.</p> <pre class="lang-ruby prettyprint-override"><code>builder = Nokogiri::XML::Builder.with(@doc) do |xml| nodes = Nokogiri::XML::NodeSet.new(@doc, []) [].each {|nodes_one_by_one| &lt;&lt; nodes_...
0
3,086
Xcode swift view wrap content
<p>I'm an Android developer trying my hand at Xcode and it's been unpleasant so far. What I'm trying to do is have a custom view that has three sub views:</p> <ul> <li>UIImageView (for an icon)</li> <li>UILabel (for the title)</li> <li>UILabel (for the content)</li> </ul> <p>I want it such that the content label's he...
0
1,457
Duplicate annotation error - but where?
<p>Briefly, first - I get this Exception message:</p> <pre><code>serverError: class javax.faces.el.EvaluationException Duplicate annotation for class: interface javax.validation.constraints.Size: @javax.validation.constraints.Size(groups=[], min=0, message={javax.validation.constraints.Size.message}, payload=[], max=1...
0
8,875
How to avoid UpdatePanel scrolling on AutoPostBack?
<p>I have an ASP.NET FormView within an updatepanel. I'm auto-saving the form by setting AutoPostBack=true for each of the items within the FormView.</p> <p>This means the user can click a few elements in quick succession and fire off a few async postbacks almost simultaneously. </p> <p>The issue I have is that the u...
0
1,943
HttpURLConnection POST, conn.getOutputStream() throwing Exception
<p>I want to make a POST by using HttpURLConnection. I am trying this in 2 ways, but I always get an excetion when doing: <code>conn.getOutputStream();</code></p> <p>The exception I get in both cases is: </p> <blockquote> <p>java.net.SocketException: Operation timed out: connect:could be due to invalid address</p...
0
1,731
How to concatenate and minify multiple CSS and JavaScript files with Grunt.js (0.3.x)
<p><em>Note: This question is only relevant for Grunt 0.3.x and has been left for reference. For help with the latest Grunt 1.x release please see my comment below this question.</em></p> <p>I'm currently trying to use Grunt.js to setup an automatic build process for first concatenating and then minifying CSS and Java...
0
1,225
502 Bad Gateway for Laravel 5.4 with nginx and php7.0-fpm in Ubuntu
<p>I have my <code>Laravel 5.4</code> app setup in <code>Ubuntu 16.04</code> server with <code>nginx</code> and <code>php7.0-fpm</code>, it gives</p> <pre><code>502 Bad Gateway </code></pre> <p>Nginx virtualhost config,</p> <pre><code>server { listen 80; ## listen for ipv4; this line is default and implied ...
0
1,027
ReactJS and complex JSON object
<p>I followed ReactJS tutorial, which is quite simple to accomplish more complex stuff.</p> <p>In my case, I would like to use a complex JSON object, which contains a map, a single value, a list, etc... Here is the code:</p> <pre><code> var NotificationStatus = React.createClass({ loadNotificationsFromServer: ...
0
1,248
Exception in thread "main" org.hibernate.service.spi.ServiceException: Unable to create requested service
<p>I am new in Hibernate and facing one problem with execution. I am following one tutorial and did almost everything same but still getting error: <strong>Exception in thread "main" org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]</stron...
0
3,670
PostgreSQL:Failed to obtain JDBC Connection
<p>Im trying to set up Login form with spring security. Users, roles and passwords are stored in PostgreSQL database. I'm using Java configuration not XML. Using properties file to load JDBC connection details.</p> <p>But after I enter username and password to Login form and press Submit, It loads for couple seconds a...
0
9,138
iText pdf not displaying Chinese characters when using NOTO fonts or Source Hans
<p>I am trying to use NOTO fonts (<a href="https://www.google.com/get/noto/" rel="nofollow noreferrer">https://www.google.com/get/noto/</a>) to display Chinese characters. Here is my sample code,a modified sample code from iText.</p> <pre><code>public void createPdf(String filename) throws IOException, DocumentExcepti...
0
1,495
RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility
<p>I have this error for trying to load a saved SVM model. I have tried uninstalling sklearn, NumPy and SciPy, reinstalling the latest versions all-together again (using pip). I am still getting this error. Why?</p> <pre><code>In [1]: import sklearn; print sklearn.__version__ 0.18.1 In [3]: import numpy; print numpy._...
0
1,589
WildFly + Hibernate
<p>I've been struggling for days with configuring Hibernate and run it on WildFly. </p> <p>Here is my code:</p> <p>META-INF/persistence.xml</p> <pre><code>&lt;persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
1,497
ASP.NET Core 2.0 using Serilog to log stacktrace when exception is thrown
<p>So I've recently started to build a asp.net core application and for the logging i'm using SeriLog. This was working fine until recently I found out that most of the time the stacktrace of an exception is not being transferred to my logs. I'm using the .WriteTo.RollingFile() method to write to a .txt file in my Logg...
0
1,049
Spark runs on Yarn cluster exitCode=13:
<p>I am a spark/yarn newbie, run into exitCode=13 when I submit a spark job on yarn cluster. When the spark job is running in local mode, everything is fine.</p> <p>The command I used is:</p> <pre><code>/usr/hdp/current/spark-client/bin/spark-submit --class com.test.sparkTest --master yarn --deploy-mode cluster --num...
0
1,144
Cannot call web service
<p>I am currently trying to call a web service with a client built with Apache CXF. Though the service is available in the browser, I cannot connect to it, due to the following error.</p> <p>Any thoughts regarding the problem ?</p> <pre><code>org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor ha...
0
1,933
How to customize tooltip in Highchart?
<p>I want my tooltip to show the range of time according to the x-axis. <br>The image below shows what I want. So if anyone knows how can I do that, please let me know or suggest me. Thank you :)</p> <p><a href="https://i.stack.imgur.com/a0xbs.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/a0xbs.jpg" alt="e...
0
1,387
HTTP 500 - Cannot create JDBC driver of class '' for connect URL 'null'
<p>I have been searching to fix that problem for 3 days reading forums... Then I decided to ask for some help. Nedless to say that your help would be highly appreciated :-)</p> <p>I created a jndi resource for the mysql connexion in Tomcat context.xml instance in Eclipse My web app works fine when I start the server ...
0
9,619
floating elements <br clear="both"/> in a better css way?
<p>I have a few floating elements like a sidebar that floated besides a content area. If I don't add a <code>&lt;br clear="both"/&gt;</code> at the end of the sidebar, then footer and parts of the background get floated weird.</p> <p>Any quick solution I missed to think of?</p> <p>Thank you.</p> <p><strong>Edit:</st...
0
1,874
React setState in a map function
<p>I cannot wrap my head around the issue below. </p> <p>The issue relates to the asynchronous setState dimension. Usually I use the callback, but doesn't seem appropriate here. </p> <p>My goal is to create a state (that I will be able to sort) which is obtained by iterating on different states which are themselves c...
0
1,145
Working with images: Parameter is not valid
<p>It all started with <a href="https://stackoverflow.com/questions/4161873/reduce-image-size-c-sharp/4161930#4161930">a very useful piece of code, that I found here on Stackoverflow</a>.</p> <p>Then, I decided to make my own tweaks, and add image resizing to this method. However, after struggling with this problem I ...
0
1,399
File input add_field not adding field to every row
<p>I am parsing several logfiles of different load balanced serverclusters with my logstash config and would like to add a field "log_origin" to each file's entries for the later easy filtering. </p> <p>Here's my input->file config in a simple example:</p> <pre><code>input { file { type =&gt; "node1" path =...
0
1,200
ORA-01017: invalid username/password; logon denied when using wss4j
<p>I have many tests which access our Oracle DB without a problem, however when I run these tests along with other tests in our codebase which use a keystore, the tests that interact with the DB are no longer able to connect. Here is the exception they get:</p> <blockquote> <p>Caused by: java.sql.SQLException: ORA-...
0
1,979
Segmentation fault on function call
<p>I am trying to create a simulation of a stochastic queue system. The thing is that when running the file, I get a segmentation fault as soon as it tries to call update(). I figured it's a stack problem because the code in the function runs fine but since I am not very experienced with C I'd like your help too. Here ...
0
3,571