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...]

Tip : Batch resize images on Ubuntu Linux

Ubuntu Logo

After needing to optimize a lot of images at once, this weekend I needed to resize a lot of images to the same size because they were too big.Like every other thing in Linux, there is a really simple tool to automate that. I used imagemagick to … [Read more...]

Java Concurrency – Part 6 : Atomic Variables

Duke Cowboy Java

When a data (typically a variable) can be accessed by several threads, you must synchronize the access to the data to ensure visibility and correctness.By example, if you have a simple counter (yes, once again) :This class works really … [Read more...]