Jul 25
Best Scala TextMate bundle →
Jun 30
Jun 26
Good Scala TextMate bundle →
Jun 26
2,5 times faster heckle
RSpec has built-in support for heckle, but executing every “$ spec spec_file —heckle my_method” from command line is boring.
Why not use rake?
Yeah, nice one! Well, not really. “$ rake heckle_all” takes about 87 seconds to complete. First line executes shell script “spec” that runs ruby, then spec with heckle, then next line starts its own ruby again and again. Ruby starts slowly. Can it be done better?.
Yes! After some hacking I ended up with something like this:
Woohoo, “$ rake heckle_all” now takes “only” 33 seconds. Thats 2,5 times faster! ;]
Yes, I know, nothing to be excited about, but imagine you have some more code. One hour instead of two and a half! Isn`t that impressive?
It couldn`t be a benchmark post without nice chart

Jun 14
Intellij IDEA Monokai color theme
Port of Monokai theme for Textmate.

- Download the Monokai.jar.
- Select File –> Import Settings within IntelliJ IDEA
Jun 08
SSH tunels with iChat and Colloquy
University`s internet connection sucks. The only open ports are 22,80 and 433. I wanted to have access to jabber and IRC but those ports are blocked. Solution? - SSH tunnels and some scripting to switching it on and off quickly. (This is just setup for iChat and Colloquy, not a ssh-tunnels tutorial!
Requirements
All you need is server with ssh on port 22.
Setup
iChat
I created two accounts in iChat with the same login but different server settings.

First one has localhost and port 8000, and other one with MY_REAL_JABBER_HOST and MY_REAL_JABBER_PORT.
Colloquy
Again, I created two connections.
One for localhost and port 7000, and second for irc.freenode.net and 6667. (You can use any server you want)
Scripting
You need to set up ssh tunnels. I do it with
And the last one - AppleScript.
Just save those files as enable-tunels.app and disable-tunels.app and you`ll have quick access to them via spotlight.
May 31
Flushing DNS cache in OS X →
Apr 29 Reblogged
Loremify is a one-click tool to copy Lorem Ipsum. It lets you wrap in html, specify the amount of text, and copy it to your clipboard—all in one click. It runs as a Dashboard Widget in Mac OS X, and is a mere 400kb download. (via esquareda)
Apr 13
Merb app with Scala models →
Mar 30
Liftweb 2.0 API →
Feb 17
Lift: Form fields attributes
+ =
- one - The most basic tag, there are no attributes in code nor markup.
- two - Same as above but with id attribute set in markup. As you can see in generated html this attribute is lost.
-
three -
-%>syntax preserves markup attributes. - four - Other way of setting html attributes.
- five - When setting attributes in both code and markup the second one has higher priority.
Feb 16
Lift: “if(loggedIn)” in view
Via: http://wiki.github.com/dpp/liftweb/logging-in-users-without-any-db (there is a bug)
View: Boot.scala: