Simulacre.org

Javascript, Ruby and Japan

Archive for February 2010

Create a 2GB RAM Disk in OSX

1
            
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://4194304`
            

The only variable is the number of sectors. Calculate it by (size in MB) * 2048

Valentine Choco

Yoshiko completely surprised me this Valentine’s Day with an insane Zoology Chocolate Chimpanzee and two cans of chocolate laced beer. Now I have to find a way to top her for White Day.

Read More »

Turn LI Elements into Links

Horizontal menus of links look great and save space. Building them from UL elements is good practice and makes for easy CSS styline. The LI elements will often contain a link causing them to behave like buttons to trigger a page load.

Read More »

Track Downloads and Exits Using Google Analytics and MooTools

Last week I recorded 190+ medical engline terminology audio flashcards for Yoshiko and her classmates at Nihon University School of Medicine. They figured that it would be a lot easier to remember the words if they could hear a native speaker pronounce the words and phrases whenever they wanted. That's fine, but I wanted to know when they downloaded the MP3s.

Read More »