title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Calling AS/400 RPG Programs from Java | <p>I want to call AS/400 RPG Programs from java, but I'm facing an error as below</p>
<blockquote>
<p>com.ibm.as400.data.PcmlException: Exception received: [com.ibm.as400.access.ObjectDoesNotExistException] /QSYS.LIB/%LIBL%.LIB/GETKURSJAV.PGM: Object does not exist.
at com.ibm.as400.data.ProgramCal... | 2 | 1,401 |
Size balanced binary tree heap in python | <p>So I am working on some homework and I have to complete a size balanced binary tree heap implementation, and I'm having some trouble with my enqueue function. We were given some code to start with and I am a little confused about how to access the classes and such. Of the following code, the only things that I have ... | 2 | 3,429 |
When are views automatically transformed based on their superview? | <p>I asked a similar question before, but now I have done some more work on it and have a more refined question.</p>
<p>I have the following code in my applicationDidFinishLaunching:, creating 3 views and adding them as subviews of the window:</p>
<pre><code>- (void)applicationDidFinishLaunching:(UIApplication *)appl... | 2 | 1,276 |
When click drop down menu opens all sub menus | <p>I have a menu with several sub menus and when I click to open one of the sub menus, all sub menus all openned. How can I open only the clicked sub menu?</p>
<p><em>I know that this has been asked several times but I can NOT figure out how to fix my problem.</em></p>
<p>HTML:</p>
<pre><code><ul id="menu-main-to... | 2 | 1,267 |
Non-greedy matching with grep | <p>Non greedy matching as far as I know is not part of Basic Regular Expression (BRE) and Extended Regular Expression (ERE). However, the behaviour on different versions of <code>grep</code> (BSD and GNU) seems to suggest other wise. </p>
<p>For example, let's take the following example. I have a string say: </p>
<pr... | 2 | 1,097 |
check the manual that corresponds to your MySQL server version for the right syntax to use near '? and password = ?' at line 1 | <p>I'm having a problem with SQL. this is my code and I don't know why and don't know to fix it. I use Java EE and Eclipse to do this. </p>
<pre><code>public void userLogin(String username,String password) {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
... | 2 | 1,802 |
Android navigation drawer right side not working | <p>I have a navigation drawer and I try to change its opening position. I want my navigation drawer to open on the right side.</p>
<p>This is my navigation drawer xml code:</p>
<pre><code><ge.me.custom.CustomDrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout5"
a... | 2 | 1,887 |
Paypal NVP with php error | <p>I am trying to get up and running using Paypal's NVP interface for my website to process my custom cart. I've downloaded their sample code (<a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks" rel="nofollow">here</a>) and have tried to run unaltered without... | 2 | 4,276 |
Parse xml response with XElement into Model class | <p>I have the following class:</p>
<pre><code>public class Location
{
public string Name { get; set; }
public long Latitude { get; set; }
public long Longitude { get; set; }
public string AddressLine { get; set; }
public string FormattedAddress { get; set; }
public string PostalCode { get; set;... | 2 | 1,287 |
Firebase auth user information stream | <p>I have a profile page the shows the user his currently registered email and an edit icon that takes him to the page where he can edit the email.
When the user changes the email successfully, he is returned to the previous page that showed him the registered email.</p>
<p>I want the user to see the new email. But the... | 2 | 1,453 |
Calling a FORTRAN DLL using ctypes | <p>I am trying to learn how to complie FORTRAN code into a DLL that I can call from Python using ctypes. Even a simple example is not working, can anyone help?</p>
<p>I have a single procedure in FORTRAN:</p>
<pre><code> subroutine ex(i)
integer i
i=i+1
return
end
</code></pre>
<p>Then I try to run this fr... | 2 | 1,207 |
Node (keystonejs) address already in use error, but is not. Also EACCES error. NGINX behind | <p>Project has <a href="http://keystonejs.com" rel="nofollow noreferrer">keystonejs</a> which is a Nodejs CMS.</p>
<p>Suddenly (well, probably after try to install SSL certificates, stop and start again the node server and nginx) it stops working.</p>
<p>When I try <code>node keystone.js</code> with my no-root user I h... | 2 | 1,116 |
Error(38,1): PL/SQL: ORA-00932: inconsistent datatypes: expected DATE got NUMBER | <p>I have a problem with some <code>Oracle SQL</code> code I'm running and I can't for the life of me see what the problem is. I have this code that works:</p>
<pre><code>create or replace
PROCEDURE XP_CLOSE_SCORECARD (pSC_VER_ID IN NUMBER)
AS
------------------------------------------------------------------... | 2 | 9,411 |
Object not serialized | <p>i have a fileupload control in asp.net, used to upload images. i want to show preview the image in image control of asp.net. here is the aspx code</p>
<p>C# code behind</p>
<pre><code> protected void Btn_Preview_Click(object sender, EventArgs e)
{
try
{
if (FU_Img.Ha... | 2 | 2,455 |
Primary Key Issues with ManyToManyField Relationships in Django | <p>I am attempting to use ManyToMany relationships in Django and almost everything is working perfectly. I have <strong>resources</strong> and <strong>case studies</strong>. The objective is to have (case studies) able to pull any number of items from the resources table.</p>
<p>Here is what works perfectly</p>
<ul... | 2 | 1,045 |
npm install fails after npm-check-updates | <p>The npm install command fails for the following package.json:</p>
<pre><code>{
"name": "xxxxxxxxx",
"version": "0.6.8",
"description": "xxxxxx",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": ""
}... | 2 | 3,258 |
Objective-c bluetooth says it's connected but CBCentralManager does not discover it | <p>In my app, I search for previously connected devices with the delegate method <code>retrieveConnectedPeripheralsWithServices</code> first, then scan for nearby devices if nothing is found. Here is the code</p>
<pre><code>- (void)searchForPeripherals {
NSLog(@"*** scanning for Bluetooth peripherals... ***");
... | 2 | 1,918 |
Reactive Form Validation errors not displaying in Angular 5 | <p>I'm working on Angular 5 applications, I wanted to display the follow error message based on user inputs</p>
<pre><code>emptyUserName = 'You must enter a username';
minlengthUserName = 'User name must be at least 3 characters long';
maxlengthUserName = 'Username cannot exceed 20 characters';
userNamePattern = 'Usern... | 2 | 1,105 |
JQuery Mobile seeing black overlay blocks on Android | <p>I currently created a sample app built using JQueryMobile and Phonegap. Its a simple app, nothing special and it is intended to run on the Android platform, both for Mobile and Tablets.</p>
<p>I have a page on the app which displays a popup dialog box, with a black/transparent background. This popup appears if a us... | 2 | 1,109 |
Serenity - Cucumber - Java - Aggregate Report is not being created (Maven) | <p>I'm trying to generate the Serenity Reports in IntelliJ IDEA with Maven in Java with Cucumber and Serenity.</p>
<p>This is my runner:</p>
<pre><code>import cucumber.api.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import org.junit.runner.RunWith;
@RunWith(CucumberWithSerenity.class)
@Cuc... | 2 | 6,392 |
draw on canvas without removing the background image on erase function | <p>I am trying to draw and erase on image and then save it to sd card. I got success in drawing and saving it to sd card, but when i checked the save image in sd card I got a black background image not the image at i draw.</p>
<p>Please suggest me how to apply image as a canvas background and erase draw text without l... | 2 | 3,050 |
Social button with expanding hover (flipped horizontally) | <p>I've got an animated twitter button, made with css. But I want this effect to be flipped horizontally; the text left and the icon right. And the expanding hover effect to go from right to left. I have tried many things, but can't seem to find a solution. Is there anybody who can help me here?</p>
<p><a href="http:/... | 2 | 1,386 |
ASP.NET's ObjectDataSource and NHibernate Session Management | <p>Let me describe the context first:</p>
<p>In a .NET C# project, I use NHibernate to make the link between the C# objects and the database model. I have mapped my objects with NHibernate Mapping Attibutes.</p>
<p>I have written data access queries in HQL, all of them being isolated in individual methods, which are ... | 2 | 1,077 |
keep getting SSL error when making a get request in python | <p>I'm making a simple get request as follows:</p>
<pre><code>import requests
response = requests.get('url')
</code></pre>
<p>And it errors out with the following output:</p>
<pre><code>Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 41... | 2 | 1,296 |
Why Database Connections are not being closed in this case | <p>I am observing that the Database connections are not being closed my running the command on MYSQL Prompt </p>
<pre><code> show status like 'Conn%';
</code></pre>
<p>The Connections are kept on increasing </p>
<p>This is how i am making Database connections </p>
<pre><code>package com.conn;
import java.sql.Connec... | 2 | 2,433 |
Apache Cordova, SQLite, Delete from [table] where id=? does not return | <p>I have an Apache Cordova application that caches data that cannot be sent to a server when no communications are available, such as no 3G coverage etc.</p>
<p>I have some code that runs when the device comes back online. The idea of this code is to recursively ripple through that cached data and send it to the serv... | 2 | 1,571 |
Could not open authorized, Permission denied | <p>I got this error when trying to set SSH login on my user.</p>
<pre><code>Feb 2 13:56:57 (none) sshd[4075]: debug1: trying public key file //.ssh/authorized_keys
Feb 2 13:56:57 (none) sshd[4075]: debug1: Could not open authorized keys '//.ssh/authorized_keys': Permission denied
Feb 2 13:56:57 (none) sshd[4075]: d... | 2 | 1,428 |
Change label text while image in UIScrollview changes | <p>I want to create an image gallery similar to this:</p>
<p><a href="http://sweettutos.com/2015/04/13/how-to-make-a-horizontal-paging-uiscrollview-with-auto-layout-in-storyboards-swift/" rel="nofollow noreferrer">http://sweettutos.com/2015/04/13/how-to-make-a-horizontal-paging-uiscrollview-with-auto-layout-in-storybo... | 2 | 1,153 |
Why daisy() in cluster library failed to exclude NA when computing dissimilarity | <p>According to <code>daisy</code> function from <code>cluster</code> <a href="http://stat.ethz.ch/R-manual/R-devel/library/cluster/html/daisy.html" rel="nofollow">documentation</a>,
it can compute dissimilarity when NA (missing) value(s) is present.</p>
<blockquote>
<p>In the daisy algorithm, missing values in a ro... | 2 | 1,114 |
Reading PNG files using Tensorflow | <p>I want to build a conVNN based on my own image dataset. for that I first I need to read the files here's what I've done :</p>
<pre><code>import tensorflow as tf
# Here generating a tensor of type string that include all the filename with png extention
filename_queue = tf.train.string_input_producer(tf.train.matc... | 2 | 8,661 |
Adding clickable text to DrawingGroup | <p>Have (finally) created a baseball diamond control using XAML. (code below). I now need the ability to create "clickable" text at the major positions (1B, 2B, SS, 3B, etc). The text also needs to be rotated (since I draw this entire control in the corner and then rotate it at the end.</p>
<p>Can someone assist in ... | 2 | 2,100 |
Trying to put some text and a button on top of a slideshow from WOWSlider | <p>So I have this webpage template that I am trying to replicate for a class at school. A part of the webpage includes a slideshow, which I used WOWSlider to make, and I've got the text on top of the slideshow like I need. But for some reason, the button continues to stay behind the slideshow, even after trying to use ... | 2 | 2,762 |
C# Change Namespace Prefix on Root Node of SyndicationItem | <p>Not even sure if I'm asking the right question, but here it goes. Basically because of a lack of support of the WCF DS client for "OData deep inserts" I'm having to manually build up an Atom request. I have the request nearly complete, the only thing that is missing (and it causing a problem on the request to the se... | 2 | 2,757 |
Packing and unpacking *.obb file | <p>Good day! </p>
<p>Lets say I have a directory named test. It contains several dirs and files in it.
(dir_1: file_1, file_2 ; dir_2: file_1, file_2; ... ;dir_5:file_1, file_2;)</p>
<p>I do
jobb -d ./test -k key -o data.obb -pn com.example.obbtest -pv 1</p>
<p>And get </p>
<pre><code>Slop: 0 Directory Ove... | 2 | 1,386 |
How to add custom popup window in shopify? | <p>Hi simply I want to add a popup window that appears when the user clicks on a link/button on the product page to show him/her the washing instruction for example.</p>
<p>I found this <a href="https://codepen.io/TopherV/pen/yNOeXO" rel="nofollow">code</a> but I doesn't seem to work with me. I need simple code :) </p... | 2 | 1,500 |
Dropdown in Nav bar not working with Bootstrap and Angular | <p>I am learning Angular and Bootstrap. I have some code generated by Yeoman and I have a situation where normal links in my Nav bar are working fine. However, drop down items are not working (the drop down appears in the nav bar but does not expand when clicked). As you can see, I have put my navbar code into the v... | 2 | 5,271 |
Symfony2 translation form with a2lix_translations and Gedmo doctrine-extensions | <p>I work in Symfony 2.5</p>
<ul>
<li>gedmo/doctrine-extensions": "dev-master</li>
<li>a2lix/translation-form-bundle": "2.*@dev</li>
</ul>
<p>I'm trying on adding a translation on my entity Collection with the values name and description.</p>
<p>Here is my entity collection:</p>
<pre><code> /**
* Collection
*
... | 2 | 1,636 |
ASIO UDP: class std::allocator<void> has no member named ‘construct’ | <p>I have followed <a href="https://stackoverflow.com/questions/22965899/#22967714">this example</a> to set up an asynchronous UDP receive. But it fails on compilation:</p>
<pre><code>g++ -Wall -Wconversion -Wfatal-errors -Wextra -std=c++11 test1.cpp
</code></pre>
<p>Error message:</p>
<pre><code>In file included fr... | 2 | 3,098 |
Excel XML Spreadsheet CSHTML | <p>I want to create a graph in Excel with the spreadsheet reference.</p>
<pre><code>@model IEnumerable<ARTex.Core.Models.Reservation>
@{
Layout = null;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment; filename= Reservaties - " + DateTime.Now.T... | 2 | 1,151 |
Bootstrap Tabs - How get rid of the 'active mouseout' style | <p>Bootstrap Tabs, I can't figure out the active state or find its selector, it seems like there are two active states. One when it's selected, and two when you mouseout of the selected tab. I've searched StackOverflow but can't find or figure out what's going on here.</p>
<p><a href="http://plnkr.co/edit/Wt3labEqfnN... | 2 | 1,656 |
Cannot Decrypt Varchar2 password using DBMS_CRYPTO.DECRYPT | <p>what i need </p>
<ul>
<li>i need to decrypt password store in database.</li>
</ul>
<p>I tried sql </p>
<p><a href="https://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_crypto.htm#i1001225" rel="nofollow noreferrer">https://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_crypto.htm#i1001225</a></p>
<p>sql</p... | 2 | 2,046 |
Primefaces gmap doesn't show after click on p:commandButton (ReferenceError: google is not defined ) | <p>I see gmap just after update page. If I don't update page I get error in chrome console</p>
<pre><code>Uncaught ReferenceError: google is not defined index.xhtml:1
Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitl... | 2 | 1,090 |
Node JS - nodemailer & imap-simple - Identify threads | <p>(I feel sorry for my poor english, but i'll do my best !) :)</p>
<p>I'm trying to setup a local mailbox for a personnal project, and i'm trying to use imap-simple and nodemailer to do that.</p>
<p>I want to be able to identify a thread, when i send an e-mail.</p>
<p>Here's what i exactly want to do :</p>
<p>In m... | 2 | 1,770 |
How to upload file to s3 through nodejs express from Angularjs | <p>I am facing problem to upload file to s3 by nodejs express, and angularjs.</p>
<p>I am using angular directive to send file to node express and from node to s3.</p>
<p>Angular directive :</p>
<pre><code> (function() {
'use strict';
angular.module('app').directive('ngFileModel', ['$parse', function ($parse) {
... | 2 | 1,567 |
Docker sqlite + Spring Boot | <p>I have a working Spring Boot application with sqlite. When I am trying to create a container I get the exception</p>
<pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa... | 2 | 1,346 |
Webapp on Tomcat not responding | <p>I have a installed Tomcat7 on my Windows Server. And I have a war-file to deploy Java application with REST to my Tomcat. I have no problems to go to Application Manager and to deploy my app. But I have a problem to get response from that app. Previously it was install on another Tomcat server and it worked fine. I ... | 2 | 1,388 |
Image transition effect between images | <p>i read this post <a href="https://stackoverflow.com/a/6712572/728750">https://stackoverflow.com/a/6712572/728750</a></p>
<p>and implement the code in my application but the problem is image is changing so fast because <code>timer1.Interval = 50</code> when i increase timer Interval to 300 then i found transition ef... | 2 | 1,368 |
Sign PDF with signature hash provided by api | <p>I am trying to sign a pdf with <code>PDFBox</code> and a third-party signature provider.</p>
<h3>My procedure:</h3>
<ol>
<li>Getting the pdf from user input</li>
<li>Creating a PDDocument with the content of the given pdf</li>
<li>creating a PDSignature with all given properties such as organisation or location but ... | 2 | 2,681 |
drag, zoom imageview without matrix android | <p>i need a solution for implement drag and zoom , routate ImageView around screen onTouch event without using matrix.
i searched a lot but all answers done it with matrix and because i have multi objects in screen matrix is not suitable for me, i want drag and zoom ImageView object not matrix in the ImageView, after s... | 2 | 2,359 |
AngularJS: Can't get access value of isolate scope property in directive | <h3>Problem:</h3>
<p>In a directive nested within 3 ui-views, I can't access the values of my isolate scope. <code>scope.values</code> returns <code>{}</code> but when I console.log <code>scope</code> I can see all the values on the <code>values</code> property.</p>
<p>In a different app I can make this works and I c... | 2 | 1,763 |
TFS API Add multiple test points and results to one test run | <p>I am using the TFS API to add a test run and would like to add multiple test points to a test run and add one test result to each test point in the test run. When I try to retrieve the test results after adding the second test point I only get one test result back (the one that corresponds to the first test point).<... | 2 | 1,610 |
android - can't make my table scroll horizontally | <p>I am trying to make a horizontally scrollable table in android. When I enter data that exceeds the screen size the scroll bar doesn't appear. I tried all sorts of stuff (with / without the LinearLayout as a child of the HorizontalScrollView, all sorts of options for the controls width). Nothing works. Help, please.<... | 2 | 1,730 |
Multiple ports and mount points in AWS ECS Fargate Task Definition using Ansible | <p>I went through the documentation provided here</p>
<p><a href="https://docs.ansible.com/ansible/latest/collections/community/aws/ecs_taskdefinition_module.html" rel="nofollow noreferrer">https://docs.ansible.com/ansible/latest/collections/community/aws/ecs_taskdefinition_module.html</a></p>
<p>It gives me nice examp... | 2 | 1,598 |
jQuery tabs programmatically call a URL based tab from within code | <h2>Situation</h2>
<p>As you can see in the screenshot below, I have an area of my site which makes use of tabs to split up the user dashboard. The tab indexes along the top are declared as URLs and as a result jQuery creates the references at runtime. I would like the user to be able to click the "here for free c... | 2 | 1,123 |
Use SQL Query for Dropdown - ASP.NET Core 2.0; RazorPages; VS 2017; Entity Framework Core | <p>I currently have an ASP.NET Core 2.0 Web Application (built in VS 2017 from the default web application template). I have a RazorPage with a dropdown built in that I would like to populate via a SQL Query. I've used Entity Framework Core to build a model of my database as follows:</p>
<pre><code> public partia... | 2 | 1,032 |
scan-array CUDA | <p>I'm trying to scan a simple array using CUDA but it seems there is something wrong with the code below..I am trying to find what i am doing wrong but i can't.Can anyone please help me?</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
__global__ void prescan(int *g_odata, int *g_idata, int n){
... | 2 | 1,305 |
Undefined symbol - confused | <p>On Ubuntu 10.04 LTS:</p>
<pre><code>/usr/bin/g++ -> g++-4.4
/usr/bin/gcc -> gcc-4.4
</code></pre>
<p>I am writing a libssl_ext library in Ubuntu which is based on openssl library (libssl.a and libssl.so)
When I type</p>
<pre><code>$nm -C -defined-only -g libssl_ext.so
</code></pre>
<p>I can see the followi... | 2 | 1,056 |
Spring MVC. Tomcat. HTTP Status 404 – Not Found | <p>I need to configure Spring Mvc without web.xml. Use only java config</p>
<p>My WebConfig</p>
<pre><code>@EnableWebMvc
@Configuration
@ComponentScan(basePackages = "controllers.web")
@Import({PersistenceJPAConfig.class})
public class WebConfig extends WebMvcConfigurerAdapter {
@Override
public void addResou... | 2 | 4,214 |
Values not getting binded from jsp to action class in Struts 2 | <p>I am working on Struts2 web application and currently i am facing issue with the form binding. The binding from jsp to the action class is not working. </p>
<p>The scenario is i am having a list which is being set from the previous action. In current jsp I am iterating over the list and printing the values in the T... | 2 | 2,221 |
Setting up an open directory master on OS X Lion Server for the first time: LDAP issue | <p>We have a server running as an open directory master. So far it has been perfectly fine: users can access their data via VPN or network accounts on client machines. However, the LDAP log consistently reports errors. I've attached the log below:</p>
<pre><code>Sep 12 13:01:54 server slapd[61]: conn=6890 op=27: attri... | 2 | 2,114 |
Issue in downloading image from Firebase Storage and saving it in SD Card | <p>I had uploaded the image on Firebase Storage successfully. I have the URI and using Glide, I'm able to show the image on an <code>ImageView</code>. I want to save this image on my SD card but I'm getting an exception </p>
<pre><code>java.io.FileNotFoundException: No content provider:
https://firebasestorage.google... | 2 | 1,090 |
jQuery Ajax post to WCF getting bad request | <p>I am attempting to create an auto-complete box... and I can retrieve appropriate JSON using Fiddler, but when implemented in code, I get a connection error.
Code: </p>
<pre><code><htm>
<Head>
</head>
<body>
<input type="text" id="txt_search" name="search">
<span id="suggest"><... | 2 | 1,095 |
Google Maps - Array | <p>Hey guys I just started a new project with google maps. I'm a newbie in both javascript and google maps API.</p>
<p>UPDATED:
What I'm trying to do is to add a informationWindow to each marker with different content. So when the marker is clicked, the content for that specific marker pops up.</p>
<p>Right now only ... | 2 | 1,457 |
search between two dates that are entered manually | <p>I want to get the results between two dates when i enter the dates and click the search button. I have only put one date search so far. here's how it is shown. <a href="https://i.stack.imgur.com/toB7q.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/toB7q.jpg" alt="enter image description here"></a... | 2 | 1,324 |
Find a specific location lies inside a polygon/edge using mapbox/leaftlet | <p>I have done the below code to create a layer and then found the coordinates which shows in the side div.
But when i click on the button i need to check whether the point(6,79) lies inside the polygon or on the edge of it.</p>
<p>I have used(mapbox/leaflet) to do all these.</p>
<p>So please do help me to get this d... | 2 | 1,758 |
hashmap to show data in expandable listview in android | <p>I am trying to show data in an expandable listview from server in android. I am trying to implement hashmap within the <code>AsyncTask</code>. Please see the following code.</p>
<pre><code>private class HttpAsyncTaskReports extends AsyncTask<String, Void, String> {
private ProgressDialog dialog;
publi... | 2 | 3,470 |
Can't use fisheye lens effect on my image in Java | <p>I want to use <a href="https://www.google.com/search?q=fisheye%20lens&rlz=1C1ARAB_enSK458SK458&source=lnms&tbm=isch&sa=X&ei=_uG5UtfWKonYswbW_4DYBg&ved=0CAcQ_AUoAQ&biw=1920&bih=922" rel="nofollow noreferrer">fisheye lens algorithm</a> in Java, but I can't implement a main method.</p>
... | 2 | 2,555 |
Java TLS client can't find certificate when accessing soap service | <p>I have a java app that runs inside Tomcat. It is trying to access a TLS client certificate authenticated SOAP service. All certificates being used are self-signed. I specify the trustStore and keyStore via the Java Options in Tomcat and I have also tried doing it in code for all the needed properties before creat... | 2 | 1,604 |
How can I send byte commands via bluetooth to the serial port of a lego mindstorms EV3 using c++? | <p>Using C++, how would I go about sending commands to my EV3/nxt from a machine that isn't running lego software? I'd like to control the forward, backward, left, and right directions of my mindstorms robot. Can I load the brick to respond to certain byte commands and then just send those byte commands via bluetooth f... | 2 | 1,307 |
jqGrid treeGrid editRow and not-editable-cel | <p>I have grid with several editable cols</p>
<pre><code>colModel: [
{
name: 'id',
width: 1,
hidden: true,
key: true,
resizable: false
},
{
name: 'name',
editable: true,
sortable: false,
resizable: false
},
{
name: 'na... | 2 | 1,230 |
Python Problem: TypeError: __init__() missing 1 required positional argument: 'brett' | <p>I'm new to Python and i'm trying to programm a chessboard. I followed the steps by a Professor and now i want to implement the Possibility to get the Board(Where the pieces stand) from serial input (Arduino). Somehow im getting more and more Errors.</p>
<p>After i looked up for all, i cannot solve this one:</p>
<blo... | 2 | 1,570 |
Display results from select dropdown then clone and add another select | <p>So I'm building two select dropdowns where the user selects and the value is displayed above. The user also has the ability to "Add" another dordown and select again from the same options.</p>
<p>Having trouble cloning the div as well as getting the value to display. It seems to be cloning the div multiple times.... | 2 | 1,205 |
Memory Leak in kafka | <p>We have built a data ingestion pipeline using Kafka. We have a consumer that reads from a kafka topic and writes to a database continuously. These consumer pods is experiencing issues with OOM events. We run kafka on top of k8s.</p>
<p>We are now seeing that the consumer pods are being restarted every 4-5 days due ... | 2 | 1,247 |
Pylons on OS X: proper launchd plist to start and keep alive pylons server? | <p><strong>Update: It was simply an import error in the Pylons app (because $PYTHONPATH is different when running a launchd job) that was causing a fail-respawn cycle. Many thanks for those who told me to look at my logs.</strong></p>
<p>Hi all,</p>
<p>I'm on OS X, trying to set up a launchd job to start and keep ali... | 2 | 1,132 |
Desktop screen to Plane in Unity3D (RAM overflow) | <p>I try to stream the desktop of a Computer ingame onto a plane in Unity3D (and later interacting with it). I got to work the screencapturing, but already after a minute the unity game just fills the RAM of my PC (~30GB).</p>
<p>I already try to clean it by calling the Garbage Collector manually, but calling it doesn... | 2 | 1,097 |
Number picker in custom listview changing number by itself | <p>I am working on app in which I am using a Custom ArrayAdaptor to populate my listView.The customoized row includes a number Picker along with some text boxes in its activity.
Now the Problem Part-->
The funny part is that when i am changing the number of number picker in a particular row other number pickers of oth... | 2 | 1,295 |
Print Diamond Pattern using Haskell | <p>I need to write a Haskell program that will generate a diamond output recursively.
Here is some sample output for given input<br/></p>
<p>input : 1<br/>
output : </p>
<pre><code> *
* *
*
</code></pre>
<p>input : 2<br/>
output :</p>
<pre><code> *
* *
*
* *
* * * *
* *
*
* *
*
</c... | 2 | 1,128 |
Upload a file via <input \input> in HTML form with VBA | <p>I am trying to upload a picture file to <a href="https://www.newocr.com/" rel="noreferrer">OCR Site</a>, however, the PDF file doesn't get uploaded into the site. </p>
<p>I am using the following code to achieve it and below is the HTML segment :</p>
<pre><code>Sub DownPDF()
Dim FileName As String: FileName =... | 2 | 1,992 |
qt:RCC parse error while executing step "Make" | <p>What I want to do now is simply show my .qrc picture to my scene, but something keep going wrong with my program. I've checked my path and it should be fine.
thanks in advance for the great help!</p>
<p>my picture is placed in a folder called "img" under my project.(img folder was newed by right clicking main.cpp a... | 2 | 1,167 |
Express POST - Returned JSON is treated as invalid by JQuery | <p>I am trying to write a small authentication service using Express and Node.</p>
<p>I did a search on SO and don't seem to find my answer
even though there're many similar questions but no
definitive answer really.</p>
<p>I tried many variations of my server side code but
seems I am still missing something.</p>
<p... | 2 | 1,413 |
Kafka Connect topic.key.ignore not works as expected | <p>As I understand from the documentation of kafka connect this configuration should ignore the keys for metricbeat and filebeat topic but not for alarms. But kafka connect does not ignore any key. </p>
<p>So that's the fully json config that i pushing to kafka-connect over rest</p>
<pre><code>{
"auto.create.indices... | 2 | 1,218 |
Kibana displays "Searching...", displays no results. Confirmed data exists in ElasticSearch | <p>I am trying to build a new index, but I have run into some issues in Kibana. The Discover page has displayed "Searching..." for several hours now, on just a handful of data points. I think there may be an issue with the formatting?</p>
<p>The indices page shows that Average, Maximum, and Minimum are all numbers, an... | 2 | 2,576 |
Transform camera- to world-coordinates | <p>I am using a Intel Realsense D415 camera to measure the distance to objects and get the corresponding 3D-coordinates. The coordinates I am getting are accurate but I get problems when I try to transform them to another coordinate-system.</p>
<p>What I am trying to do is:</p>
<ol>
<li>Find an object in the RGB-Frame<... | 2 | 1,885 |
RecyclerView is displayed as a grey box with it's name in the center. Same for an implemented audio Visualizer view | <p><a href="https://i.imgur.com/joEzSaw.png" rel="nofollow noreferrer">Here</a> an image to better show the problem I'm having...
<img src="https://i.imgur.com/joEzSaw.png" alt=""></p>
<p>Around a week ago I implemented a music Viusalizer from <a href="https://github.com/gauravk95/audio-visualizer-android" rel="nofoll... | 2 | 2,750 |
ggplot2: How much do "panel.grid.major" and "panel.grid.minor" inherit from "panel.grid"? | <p>According to the documentation of ggplot2, found <a href="https://cran.r-project.org/web/packages/ggplot2/ggplot2.pdf" rel="nofollow noreferrer">here</a>, both theme elements "panel.grid.minor" and "panel.grid.major" inherit from "panel.grid".</p>
<p>It seems that "panel.grid.major" inherits the size from "panel.gr... | 2 | 1,065 |
UITableView custom cells always change there content - must stop it | <p>i have a UITableView with custom cells (code below) that load the data from <code>NSDictionary</code> (the <code>NSDictionary</code> loads there data from NSArray <code>objectatIndexPath:indexpath.row</code>.</p>
<p>Now, i have a DidSelectRow functions that works in the same way (NSArray -> NSDictionary -> Cell dat... | 2 | 3,280 |
How to catch exceptions with the CompletableFuture class in REST web services and Spring? | <p>I have developed some async web services with spring framework and REST, I have consumed it from a client created with spring class <code>AsyncRestTemplate</code>. Class return an object <code>ListenableFuture<ResponseEntity<T>></code> (with the method <code>getForEntity</code>), which brings the value r... | 2 | 1,247 |
How to resize a GLUT window? | <pre><code>from OpenGL.extensions import alternate
from OpenGL.GL import *
from OpenGL.GL.ARB.multitexture import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
class TestTexture():
def __init__(self):
self.window_width = 800
self.window_height = 800
def init(self):
glClearColo... | 2 | 1,185 |
X11 Getting Title Bar Size | <p>I'm writing a simple text user interface with libX11 and I've got a set of code working for a basic library abstraction.</p>
<p>The problem is when I try to draw text, the title bar blocks the first line. So now I have to offset the vertical printing by about 20 pixels. Is there a way to determine the exact size of... | 2 | 4,762 |
can use API GET but not API POST | <p>Im working on an existing Windows Service project in VS 2013.</p>
<p>I've added a web API Controller class I cant remember now if its a (v2.1) or (v1) controller class....Anyway I've called it SyncPersonnelViaAwsApiController</p>
<p>Im trying to call it from a AWS lambda...so If I call the GET</p>
<pre><code>publ... | 2 | 2,717 |
Angular2 router with Http data service through a Resolve with Observable catching 404 | <p>In my resolve guard I am getting an Http Observable to return the JSON of a user from a particular <code>id</code>.</p>
<p>I want to catch an error and reroute to the users overview if the <code>id</code> does not exist. I have seen code that solves that with a Promise, but not with an Observable. <strong>I would l... | 2 | 1,566 |
Storing NSImage and NSData in a Cocoa Core Data App | <p>I am writing a Cocoa App to display a 2-d floating array. I now want to assign these images to an entity attribute in Core Data, so I use the transformable data type. </p>
<p>The problem starts when I try to store an NSImage (and / or NSData) within an Entity ("TheEntity") using a transformable attribute, call it... | 2 | 1,404 |
How to use Cloud Functions for Firebase to write a SOAP service? | <p>I need to implement an soap web service using firebase functions.
I found a module called soap-node <a href="https://github.com/vpulim/node-soap" rel="noreferrer">soap-module-github</a> which seems promising, since it integrates with express, and firebase says it uses express for http calls, but the problem, is I do... | 2 | 4,664 |
VueJS SFC(Single File Component) won't compile | <p>I'm getting this error whenever I add an extra line of html to the html in my SFC ~home.vue. See error below:</p>
<pre><code>> webpack --mode development
Hash: 1e4bd20702518101b259
Version: webpack 4.29.3
Time: 2565ms
Built at: 02/11/2019 10:53:45 PM
Asset Size Chunks Chunk Names
bundle.js ... | 2 | 3,117 |
Images/CSS Transform not loading in Safari | <p>I'm using some (seemingly) basic css inside of a bootstrap frame, and for some reason once I placed my code into bootstrap it started spazzing out and not displaying images or transforming.</p>
<p>If you go <a href="http://www.hearthstonecardbacks.com/test.html" rel="nofollow">here</a> on Chrome/FF/(Even IE) you ca... | 2 | 1,353 |
using PL/SQL assoc array index by varchar2 in C# | <p>I have PL/SQL code:</p>
<pre><code>create or replace
package TEST_PKG2 as
type AssocArray is table of varchar2(20) index by binary_integer;
type AssocArray_varchar is table of varchar2(20) index by varchar2(10);
--type AssocArray_varchar is table of varchar2(20) index by integer;
function assoc_arr... | 2 | 1,240 |
Apt-get with Packer randomly failing | <p>I'm using Packer to build an ami with a file ami.json that runs two provisioners built off the default Ubuntu Server 20.04 LTS image. The problem is Packer build randomly fails on <code>apt-get install ansible</code> with the error <code>E: Unable to locate package ansible</code>. The same ami.json file builds or do... | 2 | 5,469 |
Adding Meta Boxes to Custom Post Type not working | <p>I've tried many things to fix this, I'm fairly new to coding a plugin but I can't seem to get this to work.</p>
<p>I have created a custom post type ("Book") perfectly fine. Now I'm trying to add meta-boxes into it. I can't seem to get the coding to connect to each other properly. </p>
<p>I've tried adding the slu... | 2 | 1,482 |
Default Select option Angular 8 Reactive forms | <p>I want to get all my data from my API and set them as defaults for my reactive form. I was able to bind all the values using <code>ngModel</code>. I just don't know how I can do this with my <code>select</code>. In my HTML I am getting my 1st select option from my home service. The second option onward, I am using m... | 2 | 4,456 |
Get SubTypes in Java with Reflections library | <p>I try to get classes that implements an interface in a given package, using <a href="https://github.com/ronmamo/reflections" rel="nofollow noreferrer">reflections library</a>. </p>
<p>I have the following code : </p>
<pre><code>package TestClass;
import org.reflections.Reflections;
import org.reflections.scanner... | 2 | 1,051 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.