Archive for the 'Java' Category



I've been using some proprietary frameworks and libraries, that are using Files objects, and only File objects, everywhere in the interfaces. It's not that is bad to have methods accepting File objects, but it's not wise to accept only that. For example the DOM/SAX XML parser in the JDK, accept File object but includes also [...]

Workaround to multi threaded testing

Since it has been introduced in JDK 1.5, I have loved the Executor abstraction over multi threaded execution. Basically you define tasks, implementing Runnable or Callable interfaces, and you submit those tasks to an Executor implementation, knowing that before or later the task will be processed. It's the Executor who knows how the tasks must [...]

Lady Java

This is video is quite recent, but already very popular. It’s a parody of Lady Gaga songs, about Java. Looks like Oracle is gonna benefit of the Java wave even though they already declared themselves as bad asses, more interested on money and control than on technology. Java rocks, and ever will. Despite Oracle.

JavaBeans to XML, with no libraries.

Converting JavaBeans to XML and viceversa is quite a common task, and there are tons of libraries around for this purpose. But I always like to use what is already available in the JRE, avoiding dependencies as much as possible. In the past I and Simone developed a rest API using the JSR57 serialization, that [...]

Maven Local Repository Modules

Local repository modules are useful when your project depends on some jars that cannot be found in any public or proprietary repository. In such cases, you have two choices: importing the jar in your local repository manually before running the build, as suggested in the mvn faq, or make your build process do it for [...]

A super funny video about a young and rebel Java developer grown in a Microsoft family. Hope you'll enjoy as I did. I think the original source of the video is here.

Android.jar sources

Yesterday I wrote a post to explain how to link Android sources in Eclipse. If you use a different IDE, probably you can't have Eclipse facilities but it may be easier to have the sources "in line" with the android library. For myself usage I packed the android sources into some jar files. To have [...]

If you are working with the Android Development Toolkit (ADT) for Eclipse you may have noticed that the sources for android.jar are missing. The Android SDK comes without the sources, and even if you manage to download the source code for the Android library, the ADT does not allow you to attach the sources to [...]

Wake on LAN

Many modern computers and network enabled devices support the functionality to be turned on remotely. This is commonly referred as Wake on LAN or Remote Wake-Up. Technically this is done sending a datagram packet in broadcast to all the computers in the same network, on any port (the usual one is port number 7); the [...]

Some time ago, I've answered to a job interview question which was sounding more or less like: «suppose you have 20 minutes to talk to an audience of junior developers about what have been the lessons you learned from your software development experience, and resume that in three points, about what a good developer shall [...]




About

You are currently browsing the NewInstance weblog archives for the 'Java' category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Calendar

February 2012
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
272829  

Follow me

twitter flickr LinkedIn feed

Enter your email address:

Archives


Categories

Tag Cloud