From the monthly archives:

February 2010

Objective C to generate random numbers

February 8, 2010

Sometimes a simple piece of code can surprise you.
The purpose of the following piece of code was to generate a randomn number between 1 and 10, 10 times.
int i ;
int r;
for ( i =0; i<10; i++)
{
r = arc4random() ;
NSlog(@”%s \t%d \t%d  \t%d”, [...]

Read the full article →

Hackintosh ATI Video Drivers Background

February 5, 2010

This thread is not a guide, it’s purpose is to gather information for reverse-engineering ATI cards. It’s not complete and if you can fill any of the holes, it’s very welcome. Email me here, johndavidson@gmail.com.
Support for ATI cards is provided by 2 kexts and a plug-in. The kexts are ATINDRV.kext and  an acceleration kext.
Each adapter has an associated frame-buffer driver to provide 2D support [...]

Read the full article →

Use VLC to stream a webcam

February 2, 2010

Based on an Article from Gerald Naveen in India
VLC can be used as a streaming media player.  And by enabling one of its various input interfaces, it’s even possible to stream a webcam using just VLC.
To stream a webcam:

Start VLC (all my instructions/snapshots will be as of vlc 0.9.6).
Before proceeding further, let us open the [...]

Read the full article →

Show hidden files in OSX

February 2, 2010

Here’s a quick tip. If you find yourself needing to access hidden files on your Macintosh, run this from the terminal. Please note that the inverse of the first command will restore your default settings.

Display Hidden Files
# defaults write com.apple.Finder AppleShowAllFiles TRUE
# KillAll Finder

Read the full article →