A little tip that can be very useful, how to restore a deleted Git tag. If you juste deleted a tag by error, you can easily restore it following these steps. First, use git fsck –unreachable | grep tag then, you will see the unreachable tag. If you have several tags on the list, use [...]
How to solve scrolling problems in Kile when using Gnome

From this morning, I was encoutering problems when scrolling in Kile editor using Gnome. When I scrolled, not all the lines were moving and the text was only correct when I clicked on them… After some researches, I found that the solution was to use a different graphics system. You can do that in any [...]
Swing tip : A better SwingWorker without exception swallowing

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. And you action can stop and you will never see why. In 95% of [...]
Tip : Batch resize images on Ubuntu Linux

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 do that. Of course, there is certainly [...]
Do not use relative path with LogBack

A little tip that can be useful and save a lot of time : Do not use relative path with LogBack. I wondered why this little LogBack configuration didn’t work : No file were written. I searched during a long time and after that tested with an absolute path and it worked really well. But [...]
Quick Tip : Launch Java Applications From Java applications with Ant

One week ago, I searched a way to launch a Java application from an other Java application without loosing portability. And I found a post on StackOverflow explaining how achieve that goal using Apache Ant. It’s really easy. It use the Ant classes and simulate a project launching and a build task. In this post, [...]
Tip : Optimize images on Ubuntu Linux

When working with a lot of images by example for galleries on a website, it could be really interesting to optimize the images to save a lot of space and directly improve the performances of the website and save some traffic if this is limited by your hosting. Optimize JPEG images with jpegoptim A great [...]
Tip : Profile an OSGi application with VisualVM

When you develop applications and you’ve performance problems, it’s really interesting to see what can cause this problems. And it that case, the profilers are the most useful tool. By example, we can use VisualVM, packed by default with the Java Virtual Machine. For more information, you can read this introduction to Java VisualVM. But, [...]
Tip : Integrate Play Framework in IntelliJ Idea
After created a Play Framework first application, it’s time to integrate it in IntelliJ Idea. This is made really easy because, play provide a command to create the Iml module file for the project. You can use the command play idealize app_name to create a iml module file.
Tip Replace an old copyright by a new one
Today, I searched a tool to replace the old copyright of the GNU GPL V3 license by the copyright of the Apache License 2.0. But I’ve not found a simple tool to do a multi-line replacement in a complete set of files. So like the developer I’m, I decided to do it myself. And because [...]
Most commented posts