If I have no to little experience in either of them, but know enough Java and Ruby to be comfortable, is one framework harder to learn than the other? Is one easier to use for the beginner on these?
I know it is hard to answer. Just looking for general thoughts on it.
Hi,
Is there any reason behind using this date as standard for time manipulation? I have seen this standard in Java as well as in Python. These two languages I am aware of. Is other popular languages also follows the same standard?
Please describe.
From the java sources, it look like to drops into native code. Is the cost roughly equivalent to a volatile read or does it need to acquire a lock of some type?
Hi - I need to write some junit tests on java code that calls Math.random(). I know that I can set the seed if I was instantiating my own Random object to produce repeatable results. Is there a way to do this also for Math.random() ?
I am looking for :-
A mature, scalable and proven CMS solution
With Support for Mobilization (Android and iPhone)
Good Amount of Customization using Java / .NET
Lots of out of the box components to choose from.
Please help with recommendations.
p.s Are there any Mobile CMS providers which works in a SaaS model?
I was studying the legacy API's in the Java's Collection Framework and I learnt that classes such as Vector and HashTable have been superseded by ArrayList and HashMap.
However still they are NOT deprecated, and deemed as legacy when essentially, deprecation is applied to software features that are superseded and should be avoided, so, I am not sure when is a API deemed legacy and when it is deprecated.
Guys just finished reading one of my college books about threads in Java and I was informed that lock - what ever it is, is in Object class. So it looks like even though I'm not using threaded classes my objects will be heavier because of that? Don't you think that it's a bit annoying and unfair to expect from anyone to pay for something s/he have not intention of using?
Thanks
I am looking for seminal and excellent examples of libraries and projects that emulate the good practices of the Java Concurrency in Practice book.
The book is marvelous. However, I think supplementing this book reading with code reviews of projects and libraries that make use of the concurrency APIs effectively is necessary to drive the concepts into the brain.
One good example of what I am looking for is
https://code.google.com/p/concurrentlinkedhashmap/
Can folks help me with finding exemplary, well written code that use the concurrency api well?
I am interacting with a third party application using it's API, and would like to move it to the front of focus (so that it is on top of all other open windows) when a user performs a certain action. While I can move my application up and down in the hierarchy pretty easily, there doesn't appear to be a way to interact with other windows. Is it possible to move another program's window to front with Java?
Ok this situation is a bit difficult. But I am trying to embed a Java Jar into a C# form. Not as a new window or new process.
The Jar will be a game that uses the LWJGL library.
The C# Form will be a "wrapper" for it with tools and more.
Anyone have any ideas? Is this even possible?
I'm designing a web application.
I was wondering if it was feasible to design a php front end (using some php framework e.g. CakePHP), which stores and retrieves data to display to the user.
Then develop a java backend which listens to the database for changes, and depending on what was changed, performs some actions and updates the database.
Any thoughts on this type of implementation would be appreciated.
I'm trying to execute a simple example of Multicast sockets on Java.
MulticastSocket s = new MulticastSocket(6789);
InetAddress group = InetAddress.getByName("230.1.1.1");
s.joinGroup(group);
This code generates the error: IP_ADD_MEMBERSHIP failed (out of hardware filters?)
Any idea?
Thanks
I created a Java LinkedBlockingQueue like new LinkedBlockingQueue(1) to limit the size of the queue to 1. However, in my testing, this seems to be ignored and there is often several things in the queue at any given time. Why is this?
hi guys , i want to design a small website like stackoverflow (but in deferent language) and i want to use an opensource secure scalable cms to do that , so what cms to use ? ( i prefer using java )
thanks .
Most people have heard of a Content Management Systems. However, what basic features should an application contain so it can be considered as a true CMS? Also, what Java frameworks could be used to make one?
Most often the cleanup rules (Preferences Java Code Style Clean Up) in Eclipse work perfectly and create nice-looking code.
But sometimes, especially with comments and concatenated string snippets (like inline SQL queries), the cleanup just messes things up, and destroys my formatting.
Is there a way to say to Eclipse "Don't touch this block of text! I have formatted it just the way I like, and you would make it just less readable"?
According to the Release Notes:
All user request have an
X-AppEngine-Country header which
contains the ISO-3166-1 alpha-2
country code for the user, based on
the IP address of the client request.
My app is running on localhost with the 1.5.1 Java release which contains the X-AppEngine-Country header but I don't seem to be receiving any value for this header in my requests.
Do I have to deploy the app to a production instance to test this feature?
I want to compare to variables, both of type T extends Number. Now I want to know which of the two variables is greater than the other or equal. Unfortunately I don't know the exact type yet, I only know that it will be a subtype of java.lang.Number.
How can I do that?
Thanks!
hi guys , when every one of us program in java he would need a library (some jars) to complete his work .
so when this programmer find some libraries he need . how he can find the best of these libs ?
thanks.
Hi
I have a header field of 2 bytes where first four bits are packet type and other 12 bits are for length. but i don't know how to store this values and retrieve them.
I am using ms c++ for client and java for server. It is the client which has to set this values and server has to retrieve it.
Thanks