Archive

Archive for December, 2003

Fansubs

December 21st, 2003
Comments Off

December 20th, 2003
Comments Off

Went to go watch The Last Samurai lastnight. I loved the costumes and the set design. It must have been such a great project to work on.

I know it’s revisionist history to glamorize a feudal system like that, but we do the same with the medieval and dark ages in Europe. But hey, it’s definitely a Hollywood film.

On the other hand, it does make me yearn for more martial arts training.

Interesting set of training / historical reference videos Discussing fake swords used in movies Iaido Brief discussion of Iaido schools Old article about Shinkendo VERY interesting discussion of “tameshigiri”, or cutting objects with a sword. Under History > Eishin Ryu > Tameshigiri

Aikido and Iaido Center in Los Angeles(!!!)

Fight

Synchronizing Backups

December 16th, 2003
Comments Off

I spent a long time looking for a Linux command line tool that would help synchronize backups around a semaphore… I didn’t implicitly trust the value of a touch /tmp/.dontdoanythingrightnow. I eventually found a good answer in the appropriately-named lockfile utility. It basically takes care of race conditions in scripts pretty handily. Run it, and if another process already has run lockfile on that semaphore, it sleeps for n number of minutes, waking up each minute to retry. On failure, it sets its return code so you can write up failure detection routines that don’t get tripped unless the previous procedure is taking longer than you planned.

http://www.die.net/doc/linux/man/man1/lockfile.1.html http://linux.about.com/library/cmd/blcmdl1_lockfile.htm

Pass along a number of minutes to delay, and you can devise some pretty trustworthy synchronized scripts in a difficult environment.

Tech

Blog Christening

December 16th, 2003

So i finally jumped back on the bandwagon.

For ultimate reference, i’m Gordon Luk. I’m a guy living in Los Angeles with a penchant for getting in way over my head. I work as a Systems Administrator, but i also am experimenting with business, entrepreneurship, web programming, and trying to have a little fun on the side.

I decided to start this blog to archive my work and discoveries while developing my career. Also, it should be useful for annotating various thoughts and mental explorations that may otherwise go unresearched.

Change