Archives for Programming

TimeTrack v0.92 – Easy and free Project Management / Time Tracking

We’re finally closing in on a ‘launchable’ version of my pet Project Manager / Time Tracker. I’ve cleaned up the look quite a bit, and implemented a frontpage design my wife came up with. It’s actually quite usable, and we’ve been using it to keep track of a few projects at work with quite a [...]

Rails 1.1: RJS, Active Record++, respond_to, integration tests, and 500 other things!

Rails 1.1: RJS, Active Record++, respond_to, integration tests, and 500 other things! Rails 1.1 has been released sporting a load of fixes and new features.

New stuff in Rails 1.1

What (will be) new in Rails 1.1 A brief overview of what will be new in the upcoming Ruby on Rails 1.1 release. Lots of great stuff there, just hope I don’t have to rewrite my TimeTracker too much to take advantage of these great features. RJS templates look very interesting, as well as some [...]

TZInfo in Rails 1.0

I finally got around to timezone-ifying my project management webapp (yeah, I know, who hasn’t written their own clone of Basecamp? ), and found some great instructions for adding TZInfo to your app. Only problem was that after logging in and viewing the first page, all further requests just timed out or returned instantly with [...]

Seven Habits of Highly Effective Programmers

Seven Habits of Highly Effective Programmers > As a software engineer, you might want any number of things out of your job – a steady paycheck, the opportunity to work on interesting projects, a springboard to the next better job, or maybe you just like hanging out with other programmers. But by “effective”, I mean [...]

Ruby on Rails 1.0

Ruby on Rails Ruby on Rails has reached and 1.0 release. Lots of goodies and polish included, and the main website has gotten a face-lift. It also includes two new videos, one showing off how easy it is to do ajax-magic against Flickr, and one demoing migrations. Go get it!

Java Ices

Work has required me to look into streaming of audio/video at work, and as we’re mainly a Java shop, I’ve been struggling with audio decoding/encoding and Java. Java really needs to get its act together, and come up with a streamlined & polished media solution that actually works out of the box. I’ve been forced [...]

vorbisspi and length calculation

Seems the latest version of Jorbis has a bug which causes the length of a `.ogg` song to get a negative value if it’s longer than ~34 minutes. As I mostly deal with livesets of several hours, this didn’t work well for me. Anyways, the fix is to convert the length calculation `int`s to `long`, [...]

Tritonus Vorbis Encoding

I’ve been working on audio encoding using Java at work for a while, and one problem I ran into was with Tritonus and encoding a pcm stream to Ogg Vorbis. No matter what I did, I only got sound in the left channel. It seems Tritonus assumes that the channel buffers from libvorbis are allocated [...]

Duff’s device

And here I thought I knew everything there was to know about in C, but I guess not. Have a look at Duff’s device, which is 100% compliant ANSI C. Pretty neat. int n = (count + 7) / 8; /* count > 0 assumed */ switch ( count % 8 ) { case 0: [...]