Thu 2010-02-04 ( En ob )

Here’s a good article about the recent discussion about finally allowing gays (and lesbians) to serve openly in the US military. I hope Obama and the Admirals get this through.

And what about you, Turkey? Serbia? Greece? Singapore, Malaysia, Myanmar? North and South Korea? Sri Lanka, India, Pakistan? Western Asia (except Israel)? Venezuela, Chile? Cuba? And, for god’s sake: Jamaica.

Thu 2010-02-04 ( En fu pi )

Or, the original version:

Tue 2010-02-02 ( En pr )

They do. As do Germans, Spaniards, Californians, Czechs, Polish, Indians, and propably some Japanese. I think that’s cool :)

Sun 2010-01-31 ( En pi ra )

This has got to be one of the ugliest logo images of a professional project ever:

But it’s used on their official website! This is embarrassing for “The Industry’s Foundation for High Performance Graphics”, as they call themselves. Seriously, drop animated GIFs. They stink.

Website Copyright 1997 – 2010 Khronos Group. A-ha. How about updating it to today’s web standards? At least make it valid!

I hope they make a WebGL website in the future ;)

Thu 2010-01-28 ( En ma )

Well, my prediction was wrong. After all these years, rumors have become reality: The iPad exists.

So, here are my thoughts about it:

  • The name is silly.
  • The lack of multitasking (they would have mentioned it if it was allowed) is definitely a problem. I don’t mind this limitation on the iPhone, but I can’t see anybody doing office work without being able to switch to email, browser, calendar, and messaging applications. I’m sure Apple knows that, and has come up with some solution.
    • Maybe apps really save their state always, and are starting up so quick that it doesn’t really matter if an app is running or not, the springboard just mimics an Exposé.
  • The A4 is running at 1GHz and has a graphics chip built in. I think this is interesting; Apple may become CPU/GPU-independent in the future. A4 in the 4th-gen iPhone?
  • Nobody seems to know about the RAM. But I guess it’s not fast enough for tasks like video editing or compiling.
  • Somehow, I’d like to code on that thing! TextMate 2 for iPad?
  • The user interface seems strange to me…a crossover of the iPhone OS full-screen, one-app-at-a-time interface on a traditional Mac OS X desktop?
  • Why in the world did they put in a compass and a microphone?
  • The keyboard is “almost to scale” – what’s that supposed to mean? How am I to type on this thing? Do I always need a chair? (They really needed that armchair for the presentation.)
  • Price: $499 is cool, but why is it so much more expensive with 3G or more storage? But I guess 64GB would be enough for almost every task, for now.
  • GPS seems to be limited to the 3G model.
  • No camera…so, I take a camera with me and…how to get the photos on the iPad?
  • No ports. No USB, no micro display, no nothing. I want to be able to plug in USB sticks! They didn’t even put in one of those SD card slots that recently popped up in MacBooks and iMacs. The answer to this is Accessories. Some of those cost extra; I don’t know if the SD/USB dongles are included.
  • Apparently the 3G model uses Micro SIM. That may be a problem, even if it’s unlocked.
  • 10 hours battery are nice, but expected.

All in all, it seems I would still need a laptop to perform day-to-day tasks. In its current form, the iPad is no replacement for a MacBook, not even the Air. It will be compared to the Kindle and other tablets, and the price will surely be a major con.

But as Mel Martin says, I’m sure Apple improves it over the next years.

Mon 2010-01-25 ( De pi fu )

20cm Eis sind bereits zuviel für deutsche Eisbrecher.

Sowas brauchen wir:

Sun 2010-01-24 ( De pi ra )

Am Dienstag hatte ich mich bereits darüber aufgeregt, dass Mikronesien offiziellen Protest gegen den Ausbau eines Kohlekraftwerks in Tschechien einlegt, angeblich aus Angst, nasse Füße zu kriegen.

Vergessen wir mal, was man mit Deichen alles machen kann. Ein virtueller Besuch der pazifischen Inselngruppe hat mich überrascht: Die bewohnten Inseln der Föderierten Staaten von Mikronesien haben hunderte Meter hohe Berge!

Chuuk

Die kleineren Inseln sind unbewohnt; Anstiege des Meeresspiegels (falls sich der Anstieg der letzten Jahrzehnte fortsetzt) hätten allenfalls einen Effekt auf sehr flache Atollinseln. Die Schicksale einzelner Bewohner, deren Häuser tatsächlich in letzter Zeit überflutet wurden, sind nicht übertragbar auf die gesamte Bevölkerung.

Die Insel Pohnpei, Sitz des Präsidenten, ist eine Berglandschaft:

Thu 2010-01-21 ( De pi )

Ich war schon etwas überrascht, als ich am Flughafen Schönefeld (das ist der kleine im Osten von Berlin) im Zeitungsladen diese hübschen Groschenhefte sah:

Diesmal im Heft: selbstklebendes Lippenbärtchen!

Zwischen Mangas, Schnulzromanen, Marvel und Star Trek – Panzer aus dem 2. Weltkrieg?

Eine oberflächliche Recherche per Handy bestätigte meine Befürchtung: ein Neonazi-Magazin, das die Verbrechen der Wehrmacht zu Heldentaten verklärt. Kostet nur 2 Euro. Fluggäste aus Russland können sich hier gleich wohl fühlen: Es gibt noch Deutsche, die sich an die alten Zeiten erinnern!

Ich musste mich zurückhalten, das Zeug nicht einfach in den nächsten Mülleimer zu werfen. Ob das auch in Tegel verkauft wird?

Uncyclopedia hat jedenfalls auch einen sehr schönen Artikel zum Landser, den ich mir auf der Rückfahrt durchlesen konnte. Auch lesenswert: die Feldküche TFK 250.

Wed 2010-01-20 ( En pr )

Ruby 1.8.6

…defines the following constants:

Tue 2010-01-19 ( De ra pi )

…und erwirkt eine offizielle Aufforderung an Tschechien, den Ausbau eines Kohlekraftwerks zu überdenken. Mikronesiens Präsident hat “Angst davor, wegen des klimabedingten Anstiegs des Meeresspiegels in den Fluten zu versinken”. Die komplizierte Kette von Kohlendioxid-Ausstoß und Kohlendioxid in der Atmosphäre, über Treibhauseffekt, Wolken, Niederschläge, globales und lokales Klima, bis zur Wassertemperatur und der Höhe des Meeresspiegels ist wissenschaftlich noch längst nicht komplett verstanden, aber “Greenpeace hat Mikronesien natürlich mit Informationen versorgt”.

Super! US-amerikanische NGOs missbrauchen kleine Inselstaaten für ihre politischen Zwecke. So wie die Armee das früher gemacht hat.

Übrigends:

Es wird angenommen, dass der Anstieg des Meeresspiegels in den nächsten 100 Jahren keine oder nur eine geringe Bedrohung für die Riffe darstellt, da gesunde Riffe wahrscheinlich zu einem vertikalen Wachstum von bis zu 10 mm pro Jahr in der Lage sind.

Vielleicht sollte Tschechien (und der Rest der Welt) mithelfen, die Riffe gesund zu halten und Deiche zu bauen, und allen wäre geholfen. Mikronesien ist nämlich wunderschön:

Mon 2010-01-18 ( De ra )

Microsoft kann nicht einmal ein Download-Programm richtig machen: Es ist nicht in der Lage, einen Download nach Unterbrechung fortzuführen (leider erwischte mich der tägliche Netsplit.)

Dann probiere ich Windows 7 eben nicht aus.

Mon 2010-01-18 ( En pr pi )

Two weeks ago, I demonstrated how to draw text on a WebGL texture. Eric Shepherd is even rendering video [warning: with sound]. Today, I’m rendering web content – that’s to say, a HTML page.

Again, I’m using the canvas 2d context to draw the content before using its data for the texture. The example is also based on Giles’ WebGL Lesson 7.

Mozilla’s Firefox has a unique feature called drawWindow. It’s not secure and thus you have to ask the user for explicit permission. So, it’s not ready for general usage, but it’s a nice demonstration.

Note: Before the example works, you have to enable the signed.applets.codebase_principal_support option in about:config. Disable it afterwards!

I also use an IFrame. So, this is about as evil as it gets.

Firefox only; you'll be asked for permission.
You need a WebGL-enabled Firefox to see this.

Here’s the code:

Sat 2010-01-16 ( De fu pi )

Fri 2010-01-15 ( De fu )
D       A          h    fis
Schöner wäre diese Erde –
     G     D      G   A
ohne Pferde  ohne Pferde
D         A               h     fis
Soll euch doch der Teufel holen
        G     D         G   A
All ihr Stuten  und ihr Fohlen
D       A                h       fis
Von der Schnauze bis zum Schwanz
G     D G                 A
Pferde  ich veracht’ euch ganz

(Text: Robert Gernhardt, Melodie: Johann Pachelbel)

Thu 2010-01-14 ( En ma pi )

The world expects a “tablet/slate/unicorn/whatever”…as James Higgs puts it.

My prediction, and I go out on a limb with this, is:

There is no f*cking tablet!

Update: Oh wait, now they’re even dismissing a non-existing product!

Apropos…why not posting some more images of unicorns :)

Tue 2010-01-12 ( En pr )

Kirk Haines just stated:

If superior execution time is only achieved by offloading extra work
to an idle core, then that really isn’t a gain.

Agreed. Just because we have multiple cores now, that doesn’t mean we have to spawn threads for everything. In my opinion, achieving great single thread performance with good algorithms and clever optimization is still the best way of programming fast applications.

Tue 2010-01-12 ( De fu )

π × Daumen – wieviel ist Daumen?

Die Antwort auf alle Fragen ist bekanntlich 42. Also:

π × Daumen = 42   |⋅ 1/π

Daumen = 42/π ≈ 13,37

Das ist eindeutig ein hundertstel 1337.


Yeah!

Sun 2010-01-10 ( De fu )

Großstadt Uppsala und die Universität Upssala.

Fri 2010-01-08 ( En pr pi )

I compiled a pie graph of times needed for CodeRay scanner tests. More test data for a language means more time to run the tests.

As you can see, I have a lot of tests for Ruby (60,000 lines of code) and C (70,000), and less for Delphi (11,000). The combined “other” languages are C++, the CodeRay debug format, diff, ERB and Nitro HTML templates, Scheme, and XML.

I used the excellent Gruff graph library.

Here’s the code:

Thu 2010-01-07 ( En pr pi )

WebGL has no text rendering functions. But it’s pretty easy to create a texture with text using canvas 2D context:

Looks best in Safari. Firefox has some strange issues with the font rendering.
You need a WebGL-enabled browser to see this.

The interesting code:

Thu 2010-01-07 ( En pr )

When cp -r takes a lot of time, I want to have an estimate how long it will take. My first approach was based on checking the size of the copied data repeatedly with du -sh.

This is obviously now very clean. Marco (a fellow student) told me that cp reacts to the SIGINFO signal by printing the progress to stdout. The manpage says:

If cp receives a SIGINFO (see the status argument for stty(1)) signal, the current input and output file and the percentage complete will be written to the standard output.

This is what the output looks like:

$ cp3 large.file large.file.copy 
large.file -> large.file.copy  42%
large.file -> large.file.copy  88%

Here’s the code:

Wed 2010-01-06 ( En pr )

I’m trying out a new scanner/encoder concept for CodeRay that would (hopefully) make highlighting even faster while improving the code at the same time.

Basically, it’s about bypassing the Tokens representation altogether.

The tests can be seen at Odd-eyed code.

Here are my results so far:

Tue 2010-01-05 ( En pr )
(1..100).select { |n| p n if ('1' * n) !~ /^1?$|^(11+?)\1+$/ }

Basically, the /^(11+?)\1+$/ part checks if the 1-string can be factorized. See Avinash Meetoo.

Mon 2010-01-04 ( En pr )

I use TextMate for everything that is text. Programming, organizing, shell-foo, writing for studies, protocolling, writing songs or guitar tabs, looking at patches and code, organizing, learning. And I have given up some great editors for it – Delphi, RDE, VIM, Weaverslave…actually, I switched to Mac in 2006 because of this software.

Sun 2010-01-03 ( En pr )

I just found out that I am [one of] the 129th most busy Rails Contributor[s], for my work on 7 patches back in 2006 and 2007.

Actually, I’m even #97 because 3 tickets for murphy where counted separately. Yay! I’m one of the top 100 Rails contributers. Now that’s something to brag about :D [Update: Xavier Noria added the alias. Great!]

Funny: Ezra Zygmuntowicz, Ola Bini, Sam Ruby, _why (the lucky stiff) and Zed Shaw come in last with only 1 commit. Even JEG2 has only worked on 3 tickets.

Also funny: There are currently exactly 1337 contributors listed!

Sat 2010-01-02 ( De ma )

Knut und ich haben in der Nacht vom 1. zum 2. Januar eine kleine Install-Party veranstaltet, das heißt, wir haben uns Zeit genommen, gemeinsam einige Software zu installieren. Erfahrungsgemäß dauert das länger, und man ist froh, wenn man entstehende Probleme gemeinsam lösen kann.

Thema: Snow Leopard, also Mac OS X 10.6, auf unseren beiden MacBooks (Rico und Triella) zu installieren. Beide arbeiteten bisher mit Leopard (10.5). Eine Probeinstallation auf meinem iMac lief reibungslos.

Sat 2010-01-02 ( En pr )

devtail.com, a new site about developers’ lifes and works by Ian Stewart, is using my CodeRay syntax highlighter :) Nice.

Quote from his mail to me:

*Such* a great gem!