Thursday, April 05, 2012

Adding Norwegian (Bokmål) Dictionary to JetBrains RubyMine on Ubuntu

Firstly, install the aspell-no package:

sudo apt-get install aspell-no

Secondly, convert the just installed Norwegian Bokmål dictionary to the format appropriate for RubyMine:

aspell --lang nb dump master | aspell --lang nb expand | tr ' ' '\n' > nb.dic

Thirdly, open the RubyMine settings dialog, find "Spelling" in the "Project Settings" section and switch to the "Dictionaries" tab. Then press "Add" in the "Custom Dictionaries Folder" section and choose the folder where you've just created the nb.dic file.

The process of converting and adding dictionary for any other language should be similar.

WhatFont: the easiest way to find out the fonts used in a webpage

WhatFont helps you easily get font information about the text you are hovering on.

Many thanks to Sacha Greif for mantioning it on his blog. Check the "Tools of the Trade" post to find other useful tools.

Wednesday, April 04, 2012

Keyboard shortcut for "inspect" button

Have you ever tried to "catch" an element that shows only on hover using "inspect" tool in Google Chrome? No luck, right? Finally, there is a way to select it without clicking the toolbar button!

The shortcut is Ctrl-Shift-C for Win/Linux, Cmd-Shift-C for Mac.

As of Chrome 18, it's not mentioned on help overlay (press F1 to view it).

Check the related issue in the Chromium bugtracker.