Archive for the ‘Programming’ Category

Make your own video – Radiohead – House of Cards

Radiohead and people behind their laser camera video which can be watched here, are giving out the captured 3D data to enthusiasts to make their own videos. People can download this data free of charge, along with the source code for Radiohead’s house of cards video from google code repository located here.
I think I [...]

Smart Pointers :: counted_ptr

After working in C# or ObjC for a while you realize how painful C++ memory management can get at times. Being responsible for releasing pointers explicitly seriously hinders my program design sometimes. This is particularly a problem when doing new just can’t be avoided (unmanaged objects within managed classes), or when you’re managing [...]

Smarter Dictionaries in C#.Net

Alright, here we go. After a long long long time I have decided to yet again try and maintain a blog.
The other day at work I was trying to use .NET’s Dictionary class to create a hierarchical structure which allows me to do something like this:

torqueInfo[eAvatarGender.male][eJointName.elbow][eJointDirection.extension]
= new TorqueCurves(eAvatarGender.male, eJointName.elbow, eJointDirection.extension);

torqueInfo has been defined as:

Dictionary<eAvatarGender, [...]