JTheque Core 2.1.0 released !

Hi,It's my pleasure to announce that I've finally released JTheque Core 2.1.0 !The different services of the core are now separated using OSGi. With this separation, I've improved a lot the design of the core and the orthogonality of the … [Read more...]

Compute command-line arguments with Apache Commons CLI

For a project at school, I needed to refactor an old code parsing almost 30 command line arguments. I needed to add some more arguments and change some old args, but the old code was not maintainable at all. So I decided to use a library to make the … [Read more...]

The Pragmatic Programmer – Book Review

Book Review

This week, I finished a new book : The Pragmatic Programmer, from journeyman to master, written by Andrew Hunt and David Thomas.According to the author, reading this book will make you a better programmer, a pragmatic programmer. A pragmatic … [Read more...]

Swing tip : A better SwingWorker without exception swallowing

Duke Tubbing

When we develop Swing applications, SwingWorker are very helpful. But there is a big disadvantage using this class. if you don't call get() in the done method, you will lose all the exceptions that the computation in the doInBackground() has thrown. … [Read more...]

Solve Einstein’s Riddle using Prolog

Einstein

This week, we started learning Prolog at school. So to exercise, I choose the Einstein's Riddle. Einstein wrote this riddle in the 19th century. He stated that only 2% of the population can solve it by mind. Personnally, I'm not of this two %, I … [Read more...]

JDK 7 Features updated ! Plan B has apparently been approved

OracleStratSmall

I was presenting the Plan B of JDK 7 the last week and apparently, this plan has been approved.The JDK 7 Features page has been updated on the site of Oracle.So here are the (definitive ?) list of features for JDK 7 :JSR 292: Support for … [Read more...]

JTheque Utils 1.1.5

Java Logo

Hi,It's my pleasure to announce the release of a new version of JTheque Utils, the 1.1.5.There is a lot of changes in this version. First of all, the library is now OSGi Ready, you can use it with no problem in an OSGi application. Here are … [Read more...]

Java Concurrency – Part 7 : Executors and thread pools

Duke Cowboy Java

Let's start with a new post in the Java concurrency series.This time we'll learn how to start cleanly new threads and to manage thread pools. In Java, if you have a Runnable like this :You can easily run it in a new thread :This is … [Read more...]

Hardware Guide : The power supply

power-supply

After writing a lot about Java concurrency, I wanted to write about something else, I chosen Hardware, so I wrote a new guide about power supplies. Introduction The power supply provide electrical power to the computer and to the several … [Read more...]

Java 7 Delays and Plan B

Duke Java Logo

Mark Reinhold has posted a message about the planning of Java 7. In this message, he explains that the current schedule of the JDK 7 is completely unrealistic. This delay is due to the add of new projects (lambda, Coin, Jigsaw) and the acquisition of … [Read more...]