July 2008

Birthday!

tung's picture

I'm 22, and I hope I post this before midnight rolls over.

I almost didn't post, since nothing really special happened, though I did get Monty Python and the Holy Grail on DVD, which was cool. But tomorrow, I'll be grabbing myself an Asus eeePC 900, which is gonna be even cooler.

I'd get the 901, but hell, I've looked everywhere on this island for one, without success. I guess I'll settle.

Plus I'm impatient.

Git aliases and diff colours

tung's picture

To get git st for status and git ci for commit:

git config --global alias.st status
git config --global alias.ci commit

And for colours when you're viewing diffs in a terminal:

git config --global color.diff auto
git config --global color.interactive auto

Forum info

tung's picture

Anonymous posting is enabled; you don't have to log in to say anything.

To quote something, just use greater-than signs (>) at the start of the line, like in email. Reply numbers might change if people delete their own posts, so keep that in mind.

Project page breadcrumbs

tung's picture

Looks like I found the perfect way to get those project pages to show the correct breadcrumbs.

Before, each project page was listed under the Projects section, but when you clicked on those pages, there was no breadcrumb trail leading back to that section. Some Googling I did didn't seem to shed any light onto it.

And then I stumbled across the Custom Breadcrumbs module.

Read more »

vim tips

tung's picture

Found some VIM tips online. I won't paraphrase the whole thing here; just the bits that were new to me. Read on, and embrace vimmery in all its glory!

Read more »

WATCH THIS RIGHT NOW OR ITS GONE FOREVER OSHI

tung's picture

WATCH DR. HORRIBLE'S SING-ALONG BLOG

An evil villain musical, split into three 15-minute pieces. Musical, hilarious and quaint. You'll watch it at the website, and you'll like it. Or you'll be weeping quietly when it's pulled off the intertubes THIS SUNDAY.

So watch it RIGHT NOW.

Okay, the disappearing forever bit isn't quite true: it's up on iTunes, and will be released on DVD, but it won't be free.

Can't believe I didn't find out about this until now. Also, stickin' it to the man.

Job's finished

tung's picture

Well, it took a while, but I just ported all the stuff from my old website onto this one. Now I never have to to look at that eyesore of a design again. Hooray!

On a separate note, there's meant to be an articles section on this site, but I haven't written or ported any yet, so it's not there yet. I'll get around to it once I write one.

persist.js framework

tung's picture

persist.js is a framework for the Sphere RPG engine that lets you store persistent data and code with persons and maps.

Read more »

Text wrap script

tung's picture

A screenshot of the text wrapper at work

This script can wrap strings given either a character or a pixel width, breaking it into an array of lines.

Handy to side-step the issues with char-by-char word "jumping" with Sphere's text drawing functions.

Read more »