Skip to content

Random Tid Bits

Heres some programming tid bits that really didn’t deserve their own post, so I grouped them all together into one post! 😛 else-switch We all know about the common else-if language construct that is available in almost all programming languages, but here one you might of not been aware of: the else-switch statement. [code lang=”javascript”] if(false) { } else switch(number) { case 0: //do something break; case 1: //do something else break; default: //do default action } [/code] Actually, you can follow if with any control statement. For instance, you can have an else-return or an else-break statement. This might be old news to some programmers, but I never knew you could do that!..

Continue Reading

Download Internet Audio Streams

Streaming Windows Media Player support on the Mac is really bad. Its slow, buggy; simply horrible. However, I really wanted to listen to a show which I could only listen to via streaming WMA format. I started searching the net for a solution and found Mplayer. It worked fairly well, but I really like the ability to skip parts of the show which isn’t possible with a streaming WMA. I kept searching for a way to download the streaming WMA and put it into a WMA file on my hard drive. Mplayer came though again, using the Mplayer command line utility you can easily download the streaming audio to your hard-drive…

Continue Reading

Microsoft Ergnomic Keyboard

This year for Christmas I bought myself the Natural Ergonomic Keyboard 4000, and I have to say after about a month of use, this is one very nice keyboard. Before I got this keyboard I was using the standard Apple keyboard which caused my wrists to hurt after about 30min of typing. This keyboard doesn’t bother my wrists at all, the split design along with the elevated center really does relieve stress on my wrists. The programmable keys at the top are also very nice- and they are fully functional on OS X!..

Continue Reading

Windows On The Intel Mac

Will Shipley has posted about a bounty for the first person to get Windows to successfully boot on an Intel Mac. When I first heard about Apple switching to Intel chips I immediately thought: “Wow! Linux, Windows, and OS X on one machine! That would be computer utopia!”. Unfortunately Apple decided to use the EFI instead of BIOS, so Windows XP wont boot on the current Intel Macs (Windows Vista might boot though…). It’ll be interesting to see if this is possible and if it ends up being accomplished.

Continue Reading