Apr 112012
 

Here are the things you need to know about using any new font for Rubymine:

  1. It needs to be Unicode
  2. It needs to go into the $JDK_HOME/jre/lib/fonts directory

That is absolutely it. The last thing is the Monaco font, which I have attached for your downloading pleasure. It turns out DejaVu Sans Mono just isn’t as nice — however nice it may be — and Inconsolata XL doesn’t quite do it for me either.

Aug 312011
 

You can use xargs to grep the same word through different files. But how do you use xargs to grep different words through the same file?
Like this:

echo “your fancy word finder stuff here” | xargs -i bash -c ‘grep -n “{}” your/file/here’

Not something that’s useful every day, but when you want it, hot damn is it nice to have.

Feb 052011
 

Scrivener is a wonderful OSX app for writing basically anything you want (novels, plays, theses, etc). There’s a beta out for Windows. As it turns out, they’re actually developing it using the Qt toolkit.

The Windows Beta runs on WINE, if you do a bit of work. I am getting all my information from a Lifehacker tip, just rewriting it and adding some more information for those who don’t know enough.

  • Install WINE — version 1.3.5 or higher.
  • Download winetricks
    $ wget http://winetricks.org/winetricks
  • I also recommend installing the ‘cabextract’ tool, as indicated in the previous link.
  • run winetricks and install the following runtime libraries:
    $ sh winetricks vcrun2008 vcrun6 quartz dotnet20
  • I did not need to do this, but the link also recommends downloading qsvg.dll and qtsvg.dll and copying them to your ~/.wine/drive_c/windows/system32 directory. I’m not actually sure where to find these, and installing Scrivener created a qsvg4.dll file.
  • Finally, install and run the Beta.

Let me know if you run into any issues following these instructions.

%d bloggers like this: