ferrari.mind.publish()

You just found Benjamin Ferrari's web log. I occasionally write here about stuff I'm fascinated with. You might also be interested in my link feed, where I constantly post stuff I found on the web, or the comments I write on other peoples sides. Finally, I recommend this list of other web logs to you.

Popular Articles

Python Decorators

Ruby, Python Compared

Delicious As a Feed Aggregator

Re: Developing A State Of The Art Web Application

Reduce Any Map And Filter All Lambda

Blogging With Emacs, Ruby and Textile

A short note on Mac OSX (Tiger)

Closures in Python

You can subscribe to all my stuff using RSS syndication: RSS (articles and linkfeed | articles only | linkfeed only | contributions to other sides)

You can also contact me at
benjamin DOT ferrari AT knallgrau DOT at

This blog is still beta. Everything you hate will be fixed in the final version.

This blog has moved to http://blog.bookworm.at . The most up-to-date RSS feed is http://blog.bookworm.at/feeds/posts/default Please update your feed readers. Thank You!

How to hack alien technology with C#

There is an episode from the tv series "stargate sg1" where they need to write a virus that is supposed to block the intergalactical traveling system so the bad guys cannot get to them.

Just in case you wonder how such a code would look like or if you need evidence that .NET also runs on non-intel platforms, here is a snippet from the C# code that is shown in that epsisode.

FileStream fout = new FileStream(outfile, FileMode.OpenOrCreate, FileAccess.Write);
fout.SetLength(0);
byte[] bin = new byte[40];
long totlen = fin.Length;
[via some guy who wrote it down first]

Why are you so sure intergalactic traveling systems aren't Intel based?
benjamin.ferrari - 16. Sep, 17:09

battery life...

In the series, all star gates seem to run on (endless) battery power. So I guess such a gate must run on an architecture that is optimized for low energy consumption, not CPU cycles. And this pretty much puts Intel out of the competition.

.