cdb in Erlang

I’ve recently become fascinated by Erlang. I like it’s maturity, scale, and it’s methodology. It’s taken me a couple passes through and Programming Erlang and hours of reading the very well written Erlang docs to become familiar enough to write some simple code.

I’ve decided to implement the constant database, cdbin Erlang. It was a really fun project that required me to,

  • Implement a stand alone library in Erlang
  • Write tests
  • Twiddle bits
  • File I/O

Which I think are some fundamental steps to start understanding a development environment. I’ve released the code as under the MIT License on github.

A new bug in rhythmbox

This sucks. I believe that there is a way to improve the RhythmBox method of updating Play Count. At present, this number is only incremented during the equivelent of a findNextSong() method. However, if I were to only hear the last 3 seconds of a song, I should ask myself, did I _really_ just hear that song? The answer I believe is No! I frequently will play a track 75% through, I believe that at that point, credit must be given to Play Count. As such, the Play Count should be increased if and only if the total sum of play time is atleast 75% of the track.

Play Count should be a modifiable field.  For instance, I left my computer running playing the same song on loop the entire day on mute.  The Play Count has accumulated to 1089. Uhh… can I back that up?