Priit Haamer

Rails 4.0.0 rc2 and Ruby 2.0 dictionaries

Jun 13, 2013 • Read more

Just released updated versions of Mac OS X dictionaries for Ruby and Rails, which you can download here:

It took me some time since the Dictionary Development Kit was excluded from default installation of Mountain Lion and i had to make few changes to rubydictionary gem i use to build these dictionaries.

Another news is that rubydictionary gem is now updated to version 1.0 and can be used to build any dictionary out of Ruby source code.

Customize Press-and-Hold in OS X for your own good

Jan 29, 2013 • Read more

Note: The method below cannot be applied any longer on OS X El Capitan or above since modifications to /System directory is not allowed.

While using Estonian keyboard layout on my Macbook i'm short of a few but very important keys in coding such as backtick (`) or caret (^).

So i went and used to copy-paste these characters when needed. But that was a tedious process. Luckily, I got suggestion from a friend that Apple's PressAndHold feature introduced in OSX Lion can be customized. 
All it takes is to edit /System/Library/Input Methods/ to contain the following (I added bunch of other characters as well): 
  <string>q ` ^ ⌥ ⇧ ⌘ ⎋ ⏏ ⌫ ↑ ⇡ ↖ ⇞ ⇥</string>
  <string>q ` ^ ⌥ ⇧ ⌘ ⎋ ⏏ ⌫ ↑ ⇡ ↖ ⇞ ⇥</string>
Note that one needs to modify different files for different keyboard layouts. One gotcha is that it does not work by default in Terminal. In order to enable it, just restart Terminal once you've run this:
defaults write ApplePressAndHoldEnabled -bool true
Unfortunately, TextMate does not support PressAndHold at all, but the ones using sublime just need to run this:
defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool true

Ruby 1.9.2, Rack and Sinatra dictionaries

Oct 07, 2011 • Read more

Besides the popular Rails dictionary, here's a list of other dictionary files for Ruby libraries people ask me quite often:

Rails 3.1 dictionary!

Oct 07, 2011 • Read more

Just released a new version of Rails 3.1 documentation for together with rubydictionary gem. This gem is a RDoc formatter that turns any ruby documentation into a dictionary.

Download your copy of Rails 3.1 documentation here.

Rails 3.0 dictionary update

Sep 03, 2010 • Read more

Let's keep it short this time. Rails 3.0 is out. Updated dictionary is out. Download it now and enjoy! If you don't know what this is all about, please read my previous posts. - collaborative design tool in 48 hours

Aug 28, 2010 • Read more

This is a guest post by Siim Teller: And now for something completely different. Priit is too busy to blog himself this time and asked me to post instead. This is a deviation from his usual topics but don't change the channel, it's going to be interesting.

Defolio. Collaborative designing We're taking part of an event called Garage48 where the goal is to build a launch a product prototype in 48 hours. That's 2 days from the idea to something working. Priit proposed something he called "The Github for designers" that tries to solve the problem of backup, version control, sharing and hosting your designs and mock ups with your team or clients. It's called Defolio and it's all about collaborative design.

Rails 3 Dictionary for Mac OS X

May 26, 2010 • Read more

Rails 3 documentation is finally out for Mac OS X If you're not sure what this is about, please have a look at my previous posts on rather popular Ruby and Rails 2.3 dictionaries. Download your copy of Rails 3 Dictionary here.

YUI3 dictionary is here!

Oct 20, 2009 • Read more

YUI version 3 has been out for a while now, but still no dictionary? It took me some time to get myself together and spend couple of hours re-writing the scripts to build dictionary. Anyway, it's here now and ready for download. Enjoy!

YUI dictionary for Mac OS X

Mar 24, 2009 • Read more

YUI documentation inside Mac OS X dictionary gives you system-wide access to the docs - just about everywhere is supported. For example Spotlight, Dictionary dashboard widget, "Look up in dictionary" context menu and almost any other Cocoa-based application if you dare to use Control+Command+D key combination.

Rails 2.3 dictionary

Mar 21, 2009 • Read more

With Rails 2.3 now out of the door, it was time to update the dictionary as well. Download Rails 2.3 dictionary for Mac OS X. Enjoy!

jQuery dictonary for Mac OS X

Feb 16, 2009 • Read more

Shortly after publishing Ruby Dictionary, Mika Tuupola did the same with jQuery API documentation. He used jQuery documentation in XML format exported from wiki and some XSLT to boil things together which is a very elegant solution to do such things.

It's great to see the taking over the land of API documentation websites.

Updated Ruby on Rails dictionary

Feb 09, 2009 • Read more

First version of Ruby on Rails dictionary had many glitches in it -- lot of the pages were blank and didn't show up on Spotlight search. These issues are fixed by now and dictionary file has been updated. So, download it right away while it's hot!

Ruby dictionary for Mac OS X

Feb 07, 2009 • Read more

After publishing the Ruby on Rails dictionary for Mac OS X, i got huge number of request to do the very same with Ruby API documentation. Fortunately, most of the work has already been done and now it's time to publish the Ruby dictionary generated from Ruby API documentation.

Ruby documentation dictionary Mac OS X
If you've missed the Rails dictionary, then here's the short summary why this might be good for you. Basically, you just install extra dictionary into Mac OS X with Ruby documentation and get system-wide access to API docs through the operating systems dictionary service.

One of the coolest things is to have access to documentation through Spotlight. While coding, just hit ⌘ + Space and start typing the name of the function or class name that you're looking for. Notice that dictionary search for Spotlight was first introduced in Mac OS X Leopard.

Ruby on Rails dictionary for Mac OS X

Feb 06, 2009 • Read more

There are several great Ruby and Ruby on Rails API documentation browsing sites available on the web. But if you try to find that third argument for a method whose name you have forgotten from web it can really slow you down. So i finally took some time to generate Mac OS X dictionary out of Rails API docs which is ultra-fast and doesn't get in the way while you're coding.