Difficulty 2 · Easy

Difficulty level 2 of 5: Easy

How long is a year?

How to find out how long a year is on Earth by only analyzing text? This approach is lifted straight from an excellent and very inspiring talk by Peter Norvig. 1) Go to www.google.com/trends/ 2) Type in the word “Icecream”…

Make a RAM disk on Mac OS X 1.5 or later

Create the RAM disk: diskutil erasevolume HFS+ “ramdisk” `hdiutil attach -nomount ram://1165430` (the magic number 1165430 is explained here as the number of 512 byte sectors. The string “ramdisk” is just the name of the disk, which will appear under…