Perhaps I Should At Least Mention This…

30 Aug, 2010

Since the last blogpost, (again) a lot have happened—just mentioning a couple of ‘em:

Regex, The (2008)

18 Dec, 2008

So I have this list of movies I've seen - it's a plain text file accumulated from roughly the steps outlined here - let's say I just saw the movie "Cloverfield" on DVD...

  1. Fire up Opera
  2. Type g imdb cloverfield
  3. Click the first link in the results to go to the IMDb entry for that movie (to verify that it's indeed the one I saw)
  4. Select the movie's title on that page
  5. Hit ⌃ ⌥ SPACE to open selected text in Quicksilver
  6. Type AP to get the command "Append to file..."
  7. Hit TAB and hold F (for "filmlisten.txt")

That's it — the movie has been added to my list.

The problem is: At some point in time between the inauguration of my sacred file and now, they (IMDb) changed the format of the title for movies starting with "The ...". You see, before (back in the day, once upon a time, etc.) — Kubrick's 1980 movie was listed as Shining, The (1980) whereas now, it's listed as The Shining (1980).

Being so darn picky about that, my textfile was a mess... you see, I like a certain kind of order in the universe (at least in my part of it) so once in while, I'd follow that last step with an additional ⌃ SPACE + ↩ to open the textfile in TextMate, then F5 to sort the lines alphabetically.

But alphabetically just wasn't good enough anymore, because some movies we're listed in the old format while others were in the new one. And there were just about a couple of hundred titles pending a fix so I needed a command of some sort — and no, doing a simple Find & Replace wouldn't be able to fix this.

Enter Regex — Regular Expression(s)

A Regular Expression is the perfect solution here, because you can easily match something, store it and then come back and fetch it again. TextMate lets you do this in the Find & Replace dialog, so I hammered this in:

Regular Expression: ^(.*)(,) (The)( \(\d{4}\))\s*$ - Replacement: $3 $1$4

- and there you have it. All titles properly titled and order has once again been restored to The Galaxy.

10 Years Ago, Today

16 Jun, 2008

I can’t believe it’s actually been ten years since I entered the stage at Train, Aarhus with two of my very good musical friends Tove & Johan, to play my final exam concert from “The Royal Academy of Music, Aarhus” - after four years of studying it was quite a relief to get onstage and just play

A couple of personal highlights included opening the show with What-A-Girl! (my instrumental tribute to the one and only) and getting to perform Steve Vai’s “Die To Live” for a bunch of musicians who had for too long been engulfed in the world of Jazz and music theory. Hehe - just kidding :-)

I know, I know - it would only be appropriate to provide you with some evidence, and I'm working on it - I'll put a couple of MP3's up later, but for now: Cheers!

So there you go - two songs for the price of none. Enjoy “What-A-Girl!” & “Mr. F.”:

CSS Variables TextMate Bundle

06 May, 2008

So a couple of weeks ago, I’m discussing with my good friend and colleague Sebastian, that I’d been trying (again, for the umpteenth time) to come up with a usable “Dynamic CSS” solution, and I quickly jot the latest syntax down on the whiteboard next to us.

This time I was eager to use “proper” CSS syntax, and then solve the dynamicness with some kind of server-side processing, so I’d chosen to use a special at-rule @variables (though I shortened it to @vars on the whiteboard) for the declaration of variables and then a var() function for retrieving a variable where needed…

Mere two days later this document shows up in my RSS Reader and I’m completely baffled!

So then I thought: “Well, if others have conjured up the exact same syntax, then it’s definitely the way to go. But how do we get to use it now? No-one (save Webkit in a nightly, possibly) is going to actually implement this anytime soon…”

“Well—no harm done, creating a couple of Snippets for TextMate,” I figured, and then I just went ahead and clumsied up a pair of Commands also, so now I’m actually able to use it as an everyday tool when developing CSS.

Go ahead and check it out.

And by all means, let me know if you’re using/hating it…

So that’s what he’s been doing

13 Mar, 2008

I have been a busy little bee...

On September 18th, 2007 I was offered a position as Frontend Developer at Dynamicweb Software A/S (a Danish CMS Software Provider). I started working there on November 1st, and I’ve been happily coding ever since!

(By “Frontend Developer” I actually mean the frontend of the Admin interface for the product Synkron Via CMS, which was acquired about a year ago by Dynamicweb Software A/S.)

I do a lot of what I love to do now, on a daily basis - and by all means, let's just name a few:

  • Write ridiculous volumes of JavaScript (using Prototype)
  • Spew out streams of XML & XSLT, almost without blinking
  • I even do XML to JSON using XSLT, and then straight into DOM objects.
  • Did I mention that I do a lot of XSLT too?
  • Listen to music on my iPod while standing at my motorized desk
  • Tackle complex programming tasks (contemplating while solving my Rubik’s Cube)
  • Talk to a whole slew of talented and smart people
  • CSS? It’s my middle name (or, eh... if I had a middle name and it started with ‘S’, CSS would be my initials, right?) — lots of it too
  • Spend more time with my family

I will write again soon and talk some more about coding for real, using the Scrum model...

iTamaPodchi

06 Sep, 2007

I really think the new iPod nano looks a lot more like a Tamagotchi than an MP3 player.

Now the touch one is the one I want—very badly…

Now with 50% extra!

24 Aug, 2007

I just added another section to the site, so I’m now up to a whopping three pages! (And yes, percentage math is so weird — you were probably just about to write me an email, telling me that 1 out of 3 is 33%, right?)

Sometimes you need to Think!

17 Aug, 2007

AtWere I used to work I havehad the explicit luxury of using a 30″ Cinema Display, which has a lot of space for timestealing apps, widgets & whatnots, so I’ve begun to use a real gem of an app, that makes me focus just a little better on the task at hand — it’s called Think, and it works by highlighting the app you’re currently using, dimming the surrounding screen real estate to your preferred color (and transparency!).

I like simple stuff like that.

Feed me, Seymour

16 Aug, 2007

I just added an RSS feed for the hungry souls (yes, I’m talking to you, Sebastian) who can not live without IV content from me. (One hand should be able to count them, with enough fingers left for ordering beers for the collective.)

Need I mention that I am, of course, also hand-coding the feed, to solidify my skill-set? Didn’t think so.

There’s absolutely one such thing!

9 May, 2007

Chris Cornell releases a new solo album on June 5th and a couple of songs have already been available on his website for listening (don’t you just love QuickTime Pro’s Save As...?) - including the 1st track “No Such Thing”... Man, that song rocks! If you loved the way he just burns in the outro of “You Know My Name”, you’ll definitely like this one even more.

Into the merryness of being Blogging

13 Mar, 2007

OK, admitted – I’m a sucker for weird and crazy blogpost titles (I’m not alone on this) — something we might as well get used to, here at the place once known as “Greystate Web Sanctuary”.

In the true spirit of being a programmer fully capable of typing endless streams of XML, XSLT & other goodies (such as having excellent ASP, HTML & CSS skills), this current version of greystate.dk is actually hand-coded, down to the last greater-than sign. Go figure.

Of course that’s not going to be a permanent thing, right? Noooo, no. Definitely not. Speaking of permanent stuff – I am of course going to turn that cute little date thing into a permalink one day soon. Yes I am…