lundi 12 juillet 2010

Java Posse Podcast #314 all about Scala

Once again, plenty of interesting things, this time all about Scala (not about Java)

During the podcast several people said that it was a very bad idea to try to learn Scala using Lift as a training material because it is way too functional for a beginner (in the functional programming acception of the term)

Well, maybe I should try Lift now, to check if I begin to understand functional programming in general, and in especialy in Scala.

Hibernate build infrastructure switching from Maven to Gradle

In the world of build tools this is big news : Steve Ebersole announced that he wanted to migrate from Maven to Gradle for the Hibernate project. A list of reasons is given for the switch (and I utterly understand what they mean).

Well, it is a very good incentive to try Gradle (and really Groovy + Ivy is a very enticing combination).

samedi 19 juin 2010

Convert M4A/AAC file to and from WAV file on Linux

May be useful to create M4A/ACC files for phone ringtones, use faad and faac command line utilities :
  • faad foo.aac creates a foo.wav file
  • faac foo.wav create a foo.acc file

vendredi 4 juin 2010

Writing zippy Android apps Google IO Video

A Must-see presentation for development on Android : Writing zippy Android apps

I really liked the part where Brad Fitzpatrick explains what the difference is between an AsyncTask and IntentService :
  • AsyncTask : for non blocking "fire and forget" operations outside of the UI Thread (the OS may kill the AsyncTask upon certain conditions and the task may not be able to finish its job)
  • IntentService : use for non blocking operations that must not be interrupted outside of the UI Thread

mardi 25 mai 2010

Checked exceptions : really, the debat is not over

Whao, I knew that it was not over, but I did not suspect how much.

And even though I disagree with the conclusion of his article, we can be thankful to Elliotte Rusty Harold for having provided us with a thorough thread of discussion about checked vs unchecked exception.

(By the way, did I mentioned that I did not like checked exceptions ?)

dimanche 27 décembre 2009

Barbara Liskov : The Power of Abstraction

Great, great talk

Ho ! By the way, didn't she sort of tell that Checked Exceptions was not a good idea ? (at around 37:30 during the talk). And it was known 30 years ago...

dimanche 6 décembre 2009

Manages Linux devices with HAL

HAL, the Hardware Abstraction Layer of most recent Linux distros really is an impressive piece of architecture.

I'm impressed by how easy it is to take control of any low level parameter of any hardware.

Two example I've recently used :

A workaround to prevent nautilus in Ubuntu 9.04 from automatically mounting my MTP player :
I've added a no-automount.fdi file in directory /etc/hal/fdi/policy(See my answer "stephg said on 2009-11-09" in this post for more details)

An other example to slow down the cursor speed of my high resolution mouse. As the xorg configuration file is not used anymore in Ubuntu, the X11 options can be set with a HAL configuration file.
I've added a 10-x11-input.fdi file in directory /etc/hal/fdi/policy : This "merge" scheme really is brilliant because it allows to go back to a default configuration by deleting a file.