Simulacre.org

Javascript, Ruby and Japan

Unblocking the Keyboard and Readline in EventMachine

Reading from the keyboard without blocking under EventMachine is pretty simple. Just use the builtin EM.open_keyboard and give it a connection handler. If you want to use Readline as well, unfortunately, you'll block the reactor unless you change the behavior of $stdin.

Read More »

Pry Remote for EventMachine

Connect to Pry remotely using EventMachine with tab-completion, paging, user authentication and SSL support.

Read More »

Making GNU Screen Remember Splits

GNU Screen is a great terminal multiplexer or simple window manager for CLI interfaces. Newer versions support spliting a single terminal window both horizontally and vertically. Whenever you detach from a Screen session, any split windows you setup in that session will be lost unless you run nested Screen sessions.

Read More »

Ssh Adapter for EventMachine

Use net-ssh within EventMachine without blocking the reactor.

Read More »

Back in Time: Time Machine for Ubuntu Linux

Back In Time is a great GUI that reproduces the most important OSX Time Machine features: simple graphical configuration and snapshot backups. The current version (0.9.26) is, unfortunately, broken if you want to back up an entire installation. There is a fix, but the developer has not released it yet. Applying the fix yourself is, fortunately, very easy.

Read More »

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 »

Setup a Content Delivery Network in 30 Minutes

Using a Content Delivery Network will cut down on your hosting fees and improve user experience. Most CDNs are expensive. Building your own is horribly expensive and complicated. Google is cheap and easy, but in a good way.

Read More »

List of 500+ Look-Alike Kanji

From the very start KanjiTastic has given you a quick way to retrieve kanji that look similar to the one that you are studying. All you have to do is click on the “Related Cards” link at the top of the card then select Similar Kanji.

Read More »

Twitter Cli Tools

Just finished putting a little polish on a few Twitter command line tools that integrate nicely with GeekTool

Read More »