0
votes
1answer
31 views

Error passing arguments from Java to Python

I'm calling on some Python modules from Java. The module is using numpy, so I'm using Runtime.getRuntime().exec() to call Python. In Java I am doing something like this: File python = new ...
-1
votes
0answers
23 views

Print raw position data using LeapMotion controller [on hold]

I would like to get raw position data in the form of cartesian coordinates (x,y,z) from a single finger pointer using python for the LeapMotion controller. I am also open to using any of the other ...
0
votes
5answers
158 views

Why doesn't the index/list of an array begin with 1? [duplicate]

Is there any special reason? I know that that's how the language has been written, but can't we change it? And what are the challenges we'd face if the index start with 1?
-1
votes
2answers
58 views

Reading serial information in Java

I'm working on porting an Android app that has already been developed in Python. In the Python program, there is a line that I'm trying to fully understand: self.comfd = Serial(...) # from the ...
3
votes
3answers
56 views

ompi_evesel->dispatch() failed when running OpenMPI process from Java ProcessBuilder

I am trying to create a Java GUI to control and run an MPI process. I can run an MPI process from my command line, but am unable to run via the Java Process Builder. I get the following error ...
1
vote
0answers
39 views

Streaming objects to a subprocess

I want to stream n objects to a subprocess, each "object" is a string followed by a newline. The obvious thing is use a temporary file as we can write (on parent process) and read (on child process) ...
1
vote
2answers
29 views

Android socket client not receiving from server

i'm trying to communicate with a server and but i cant seem to get it to recieve the response from the server on my phone. it just hangs in an infinite loop. it recieves in a python client but not in ...
1
vote
2answers
68 views

From Python to Java: Proper while loop declaration

How do I write this code in Java? def gcd(a, b): """ Calculate the Greatest Common Divisor of a and b. Unless b==0, the result will have the same sign as b (so that when b is divided ...
-5
votes
0answers
42 views

How do I put a picture over a video and save the resultant video? …in PYTHON /JAVA / C++ ETC [on hold]

I wanna put a border(image) on a video then export the resultant video in PYTHON. I am open to other languages!
0
votes
1answer
22 views

Trouble consuming XLedger's SOAP/WSDL interface

I'm having trouble figuring out how to consume this WSDL interface. I have zero experience with WSDL (and SOAP in general) and to top it off the consumer has to run on Google AppEngine. This leaves me ...
0
votes
1answer
20 views

How to use cloud stack API Using java / python?

Is there any way to use cloud stack API along with java / python? In the clouds stack documents they only provided the information about the interface of the API. how to use those API along with ...
-2
votes
0answers
41 views

Desktop app with 4chan api [on hold]

I want to make a desktop application so I can browse 4chan. I knew Java and Python, what else do I need to know to make it. How do I get information from 4chan, like the tread name and so on. ...
1
vote
2answers
348 views

Passing numpy arrays to Java using Jpype

I am trying to convert a numpy array into a Java-like array using JPype's JArray command. values = valBD.ReadAsArray() JArray(float, values.ndim)(values) leads to the following error message: ...
0
votes
8answers
203 views

Will this SQL cause any problems?

I'm sure everyone knows the joys of concurrency when it comes to threading. Imagine the following scenario on every page-load on a noobily set up MySQL db: UPDATE stats SET visits = (visits+1) If ...
0
votes
1answer
35 views

Python - how can i read in and read out so that other readers can read it for further pursing?

I have to run the Java application and read the syslog to trigger some other Python based events. At the same time i also need to dump and store it in /var/tmp/log.log of all java outputs, but ...

1 2 3 4 5 135
15 30 50 per page