From the category archives:

Uncategorized

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 →

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 →

Buffalo USB Wireless N adapter WLI-UC-GN OSX 10.5.8

January 29, 2010

Insanely Mac Forum Thread
Here’s what I did to get the Buffalo WLI-UC-GN Wireless N USB dongle working with OSX 10.5.8, Darwin kernel 9.8.0.
I got the idea for the fix from ayenon . The site is in Japanese, but you can get the main idea by looking at the screen print.
I chose the Buffalo Wireless [...]

Read the full article →

Fixing the Master Boot Record (MBR)

January 21, 2010

1. Put Disc in drive
2. Startup PC
3. Let the PC run into the CD
4. Choose the Recovery Console
5. Type you admin username
6. Type your admin password
7. Type fixmbr
8. Type exit
9. Eject Disc
10. Load windows !
11. Enjoy !

Read the full article →