0
votes
2answers
109 views
mssql handles line returns rather awkwardly
Here is the problem:
for your reference:
database entries 1,2 and 3 are made using jython 2.2.1 using jdbc1.2.
database entry 4 is made using vb the old to be replace program using odbc.
We have ...
-6
votes
0answers
37 views
is there a volatile in python, just like in java? [on hold]
I have a global flag which is set in one thread and read in another thread.
After I set the flag to False, the second thread does not see the change.
I know that in Java this problem could be ...
39
votes
8answers
4k views
As a Java programmer learning Python, what should I look out for? [on hold]
Much of my programming background is in Java, and I'm still doing most of my programming in Java. However, I'm starting to learn Python for some side projects at work, and I'd like to learn it as ...
3
votes
1answer
121 views
+50
cost / mapping function for determining center of object based on detected features
I wrote an object tracker that will try to detect and follow a moving object in a recorded video. In order to maximize the detection rate, my algorithm is using a bunch of detection & tracking ...
0
votes
1answer
36 views
I need to construct an IPv6 packet with extension headers.
I have been researching for days now and i am getting pretty desperate.
I am trying to construct an IPv6 packet WITH extension headers in any language possible(must be through a programming language ...
0
votes
2answers
103 views
How do I stop consuming in RabbitMQ with Java and Python clients?
I have both Java and Python clients that I use channel.basicConsume(). At some point I would like to stop those consumers without stopping the entire program.
In Python with Pika I have put ...
1
vote
3answers
54 views
java equivalent of python regex
I am new to android development. And now i am struck with a regex pattern. I had tried many things but in vain.
I am trying to find the java equivalent of the regular expression "r'\^\d+\~[A-Za-z~ ...
0
votes
2answers
44 views
Recursive max function for a range in java or python
I have this exercise from 'Think java, how to think like a computer scientist.' by Allen B Downey:
Write a method called maxInRange that takes an array of integers
and a range of indices ...
-3
votes
0answers
27 views
Code bases containing simple well documented functions [on hold]
I'd like to automatically generate a bunch of simple coding test questions similar to those at: http://codingbat.com/ (specifically those in the warm-up sections). Ideally I'd like to generate ...
0
votes
1answer
17 views
Match byte spans from an annotation into a text document, Python or Java
I'm using the MPQA opinion corpus in which annotations and documents are saved in separate files. The annotation files contain character offsets (byte spans) into the documents
e.g. 850,861
string ...
0
votes
0answers
59 views
websockets on android with autobhan
I am trying to implements websockets on android. For that I am using autobahn, I am successful to pass messages between browser and server. However, my android code is not working. I have implemented ...
0
votes
2answers
69 views
same implemention on java and python, two very different running times [on hold]
My friend and I made a program to do the same thing, his was in java and mine in python. The question we had to solve was "What is the smallest positive number that is evenly divisible by all of the ...
-4
votes
2answers
75 views
CSV parsing ( it can be done with ruby,c#, java, python or any other language) [on hold]
I have to add all the values from all the colums of a CSV file. This is the CSV file I am using:
1,2,3
4,5,6
1,8,9
12,2
Here is the code ( I am using ruby but I am open to opinions ) :
require ...
-2
votes
0answers
69 views
Creating an Android App [on hold]
I don't know if this is the right place to ask this, but I'm going to go ahead and ask since you are all programmers..
I have a good idea for an Android App (I think so anyways), and I believe with a ...
0
votes
12answers
3k views
How can I measure the execution time of a for loop?
I want to measure the execution time of for loops on various platforms like php, c, python, Java, javascript... How can i measure it?
I know these platforms so i am talking about these:
for (i = 0; ...