I am looking for a easy to use library in java that can convert a video into arrays(corresponding to frames). Arrays will be used for frame processing with standard algos like GMM
Clojure is said to be a language that makes multi-thread programming easier.
From the Clojure.org website:
Clojure simplifies multi-threaded
programming in several ways.
Now I'm looking for a non-trivial problem solved in Java and in Clojure so I can compare/contrast their simplicity. Anyone?
I have written a java application which is a RMI server. I need to start rmiregistry to run this application and i also want my apllication to start automatically when the system starts.
I have converted my application into a windows servise. When i try to start my service it shows this error
Error 1067: The process terminated unexpectedly
Is it because my program throws an exception when my application is started before the rmiregistry is started.
Hi guys.
First I want to say is that I am 37 years old and not from programer background (actualy from biology). And my question is should I start learning java? I have coded in php and javascript for a year and a half. Every answer would be appreciated
Thanks in advance
Bobi.
What would be the best way to wait for a return key press from the user using the Java Scanner Class?
In a command line tool I would like the user to confirm before carrying out an action.
Please correct me if there a more standard way of doing this in a command line tool.
In java if I am looping over the keySet() of a HashMap, how do I (inside the loop), get the numerical index of that key?
Basically, as I loop through the map, I want to be able to get 0,1,2...I figure this would be cleaner than declaring an int and incrementing with each iteration.
Thanks.
I have started making some small Java games that run in a browser and have found a couple of game portals where I can host then (GameJolt.com, JavaGameTomb.com and Games4j.com). Most of the other portals I find either only allow Flash or offer the games for download.
Apart from those above, what other portals exist that allow hosting applets?
Can anyone tell me how to stream my desktop through sockets in Java? I tried using screen captures and sending them 1 at a time but it's no good. Too slow! I think to redirect the video stream would be better.
Why do we use reverse domain name like com.something. or org.something. structure for java packages?
I understand this brings in some sort of uniqueness, but why do we need this uniqueness?
i want to create a messagebox which will be automatically close without users input. i tried reading couple ofjava tutorials. its a timer class. but i couldnt find the code examples.
can someone please help me to do it. a small code example would be great
Is there any way I can get system info, like processor/ram etc (preferably cross platform, in browser)?
I am looking to implement this in a website, so I need it in either flash or a java applet.
Is there anyway to make web service calls from a Java client app. (Apache Axis based) in parallel? Does async style Web Service client (Apache Axis based) help?
Should a future release ofJava deprecate the use of raw types to force the migration to generics? I could also see having raw types not allowed by default but allowing them via a compile flag for legacy code.
I need to get the minimum and maximum values in a collection of floating point values, after applying an absolute value conversion. In python I would do this
min(map(abs, [-5, -7, 10, 2]))
how can I perform the same operation in java in the most elegant way?
In Java if an input argument to a method is invalid, we can throw an IllegalArgumentException (which is of type RuntimeException). In C++, there is no notion of checked and unchecked exceptions. Is there a similar exception in standard C++ which can be used to indicate a runtime exception? Or is there a common style not in the standard but everyone follows in practice for a situation like this?
Or, should I just create my own custom exception and throw it?
In python I can construct a HTML string without worrying about escaping special characters like < or " by simply enclosing the string in triple quotes like:
html_string = """
<html>
<body>
<p>My text with "quotes" and whatnot!<p>
</body>
</html>
"""
Is there a similar way to do this in Java?
I have a java.util.Set<City> cities and I need to add cities to this set in 2 ways:
By adding individual city (with the help of cities.add(city) method call)
By adding another set of cities to this set (with the help of cities.addAll(anotherCitiesSet) method call)
But the problem in second approach is that i don't know whether there were any duplicate cities in the anotherCitiesSet.
I want to do some processing whenever a duplicate entry is tried to be entered in thecities set.
i am trying to make java application that can get the information from other active window program ...such as information bar or even screenshot of other active window
is JNI the only option in this case?
thanks
Hi everyone,
I have a double number like 223.45654543434 and I need to show it like 0.223x10E-3
for example,
how can I do it in java????????
URGENT!!!!!!!!!!!
thanks!
Is there a well-known implementation, that has friendly open-source licensing (not GPL), of an ECC (error correcting code) library (e.g. Reed-Solomon) for Java?
Hi all,
I have a matrix.I found the 10th power of matrix using Java.After finding the 10th power,I need to round off the double values to 3 decimal places.Please help me to round off the double values in the matrix to 3 decimal places.
Is there a third party library to detect the use of a Java 1.5 library when compiling with a 1.5 compiler with -source 1.4 and -target 1.4? I could use a 1.4 rt.jar in the bootclasspath however I hope there is a better way. To be used, for example, to fail the compile/build if a newer library is used.
The question but in C#. So does Java have C#'s command? I need it for Matches-SearchTerm-Files-relationship.
foreach(var i in BunchOfItems.SelectMany(k => k.Items)) {}
java.util.zip sucks for stream compression. The longer you leave an Inflator/Deflator open without calling end(), the more native memory it uses up. This is a known issue: http://bugs.sun.com/view_bug.do?bug_id=4797189 which nobody seems to care about fixing.
What is a good alternative? Preferably one that is free and is still actively supported by its developers.