jlaine.net

Brushed Metal Look

John Gruber on Brushed Metal look:

Let’s say I have a Safari window and an iChat window open side-by-side, with no overlap. I think the Safari window is active, but it’s actually the iChat window. I type Cmd-T to open a new tab in Safari, but instead, I get the Font Panel in iChat.

Agreed. Just closed an iChat window instead of a Safari window with Cmd-w. Thankfully I have autologging enabled in iChat.

TextMate Goodie #1

As I promised, here’s a macro/snippet trick you can use to create a ruby function definition in TextMate:

  1. Create a new snippet as follows and bind it to trigger _def:

    def ${1:funcname}
    $2
    end
  1. Type word ‘test’ into a new document (to be used in the macro recording).
  2. Start recording pressing alt-command-M.
  3. Press alt-W to select the word you wrote in step 2. Note that this selects the word you’re in unless you already have a selection (in which case the selection stands intact). Therefore starting a new macro like this with alt-W is almost always a very neat trick.
  4. Press command-X to cut the selected word.
  5. Type ‘_def’ and press tab to invoke the snippet you created in step 1.
  6. Press command-V to paste the word you cut a few steps ago.
  7. Press tab to move the cursor to the second insertion point of the snippet (i.e. in the middle of the def block).
  8. Stop recording the macro and save it. David Heinemeier Hansson uses keybinding command-enter for this macro and it sounds like a reasonable option to me, but feel free to select the binding as you please.

There you go! Now you can just type the name of the function and hit command-enter and get the function body created for you. Note that this technique is by no means limited to ruby or function definitions. You can actually do with it almost anything. Just let your imagination fly!

TextMate Is Here!!!

UPDATE 041007: I’m now the licensee #75. Who’re you :op

The long and rainy fall has turned a lot brighter today, as the highly anticipated TextMate is finally here. It’s admittedly still a bit raw apple (pun intended) but still easily comes even with the huge buzz it was laden beforehand.

Some very handy features:

  • Handling of projects ala Dreamweaver
  • Very easily extendable with the built-in macro and snippet features
  • Comes pre-installed with syntax highlighting package for Ruby, Rails, and many more languages. Besides that, writing your own language bundle is a breeze.
  • Considering its features, TextMate is very lightweight
  • Most importantly, TM just feels right. It just sits a lot more naturally on my desktop than BBEdit, not to mention Emacs which I otherwise love.

OK, enough of that. If you are a lucky one equipped with an OS X box, go get a copy, right now, thank you very much. If you’re at all like me and fall in love with the editor, you’d be happy to shell out the forty bucks for the candy (who said a text editor should cost hundreds of dollars).

As a final carrot, I’ll be sharing a few macro and snippet examples on this very forum. Stay tuned!

TextDrive Rules OK

TextDrive announced a new 2GB/40GB hosting plan and I got into the hook immediately. Well, actually I was kind of needing the extra hardrive space so a 100% increase with 50 extra bucks wasn’t that bad. Besides, if (or when 8) I get slashdotted, I’ve now got 4 times as much bandwidth to abuse. Oh, and did I mention TextDrive runs Rails? Oh, the beautiful life…

Back in Business

OK, I’m back after an eventful weekend at the coast. I run two competitions on the Saturday and then we had the housewarming party of my friend in Turku.

The first race was the Finnish Relay League final, I ran in our second team since I was feeling really tired after the military games. The race went still quite ok.

On the afternoon we had the first-ever SonniTonni, club championships in 1000m on the track. I finished second at 2:43, a very good time considering the hard schedule during the previous days.

Anyway, we are moving to a new flat these days, so my posts will still be pretty irregular for a few days. I hope I can still dig into my Rails project soon again.

Still Going Strong

Apologies for my few days’ absence from here. Things have not stagnated, however, I was just running the Finnish champs in military troop orienteering this week (which we — coincidentally — won ;). Have to go to drink some coffee and eat a piece of cake with a few generals now, I’ll continue my changeover later.

Test Entry

Un web debe medical. Tote abstracte con lo, de nos celo auxiliary simplificate. Ha sed infra introductori, russo anglo-romanic le con. Nos vide facto campo su, maximo vocabulos con de.

Lateres original per e. Duo westeuropee primarimente ha, lo duo vista inviar. Involvite dictionario international web ma, signo russo preparation se via, con debitores brevissime simplificate su. Su auxiliar greco-latin immediatemente non, publicava vocabulario intermediari da pro. Pro o usos multo, pan facto europeo es.

Le como patre latino nos, existe mundial abstracte ha nos. In pan servi brevissime. Ma web esseva facite technic, hodie durante representantes uno su, del es inter involvite. Lo web europeo original articulo, qui tamben representantes ha. Se del celo europeo.

Un uno anque interlingua international, campo tempore vocabulario sia o. Da infra signo secundarimente uso. Rapide parolas ascoltar o uno, duo tu ille human, uno un facite publication simplificate. Nomina rapide su con, qui capital scientific in, tote involvite movimento uno ha. Pro illo esseva o. Utilitate preparation e con.

Su pro esseva europa practic. Celos technic uno se, via romanic greco-latin preparation lo. Vostre technologia es duo. Pan da usos unic prime, nos ma celos facite technic. Ultra nostre millennios non un, nos post articulos brevissime de.

Le sia sine scientia. Su pro historia dictionario, ma sia tres parola scientific. Da nos vostre populos appellate, ha per ultra anteriormente, es interlingua publication sia. Interlinguistica americano al uno, qui medio abstracte o, multo parlar vocabulos un uno.

Nos lo tote auxiliary greco-latin. Major internet americas sed e, sine celo giuseppe il uso. De involvite encyclopedia professional web. Medio cinque facite un pan. Se toto vista traducite duo.

Tu terra capital web. Del titulo latente o, tu pan iala sine primarimente. Sia abstracte hereditage continentes lo. Uso ultra finalmente independente un, se national incorporate non, iste parlar facite via de. Lo tres nomina web. Con religion giuseppe tu. Multo lingua professional con su.

Sia es scriber synonymo secundarimente, super personas linguistic es qui, le pan esseva complete historiettas. Signo cinque africa es per, tu facto distinguer pro. Populos secundarimente e per. Se uno regno excellente, qui infra vocabulario primarimente tu.

Web altere parola connectiones al, ma pro westeuropee methodicamente. Le duo major vostre initialmente, o veni internet publication pan. O union inviar basate web. Nos tu texto extrahite, duo o studio incorporate, via de medio giuseppe summarios. Web o membros americano distinguer. E con primarimente sanctificate, qui il altere origine promotores. Tu scientific periodicos essentialmente web.

New Test Entry

Religion avantiate gymnasios sed o, scientia complete voluntate qui se. Tu proposito hereditage vocabulario uno, pan specimen intermediari anteriormente o, per scriber specimen intermediari da. Ma qui utilitate instruction, e web gode grammatica publicationes, lo con multo parlar encyclopedia. Lo durante magazines supervivite con, se sed romanic involvite computator. Sed titulo paternoster su, sed al vista abstracte encyclopedia. Libro traduction de via, per un peano scientific.

Pro patre responder distinguer o, le multo giuseppe duo. Active mundial supervivite es uno, da que ille contos historiettas. Ma practic continentes sia, ma pro post instituto millennios. Il del human auxiliar anglo-romanic, in web commun moderne incorporate. Le non signo publicationes. Pan lo facite lateres, post regno traduction in qui.

Del tempore historiettas un, etiam articulo su qui. E uno addresses summarios, libera greco-latin international con le. Pan su servi vostre initialmente. Il sed sine traduction, duo existe ascoltar ma, lo voluntate angloromanic non. Sed al intention traducite.

Subjecto questiones interlingua e duo, es nos cinque facite preparation. Inter anque durante le duo, duce programma distinguer pan ma, inviar introduction via in. Specimen presenta association pan su, duo es original westeuropee, da usate anglese magazines uso. Via le infra westeuropee initialmente, sia iste union message e, es iala patre practic web.

First Post

Gosh, let’s take this lorem ipsum bs away from here.