The T-Files


Mon, 30 Apr 2007

Babel

Four loosely connected stories of ordinary people across the globe in extraordinary unfortunate circumstances. You have to be prepared for a major feel-bad experience, Babel is quite the downer. On the other hand, the kids do not die in the desert, the arm does not come off, and the girl does not jump from the balcony, so compared to, say, 21 Grams, this is probably a happy end by Alejandro González Iñárritu standards.

8 points

Thu, 26 Apr 2007

La Fonera

El Movimiento sent me their cute wireless router for free, and I am wondering what to do with it. The idea is to form a community of people who share their Internet connection with strangers. If the community grows large enough, you can find a FONspot wherever you go. FON as a company can make a profit by charging non-members for access to the grid.

List of obvious concerns:

  • Security: I do not mind sharing my bandwidth, but I would not want strangers on my home network. The router solves this problem by sending out two separate signals, a public one and a private one. I assume that the two networks are not bridged in any way.
  • Security: Apparently, the device periodically phones home and downloads patches from a central server. In addition to that, FON can at all times login to it. Tin foil hat catches fire here.
  • Legal issue: If someone commits a crime using my Internet connection, I might be liable in some way. At the very least, you might end up with a funny profile file at some law enforcement or royalty collection agency. Big Brother does not not know that it is not you he is watching.
  • Legal issue: Sharing your Internet with FON might very well violate your ISP service agreement.
  • Practical issue: I am not sure what good a FONspot on the fourteenth floor of an apartment building would do. It could probably only be accessed from other residents here, and they all have Internet already.

On the other hand, privacy on the Internet is an illusion anyway, and security concerns are not too relevant currently, as the only WiFi-enabled device we have right now is the Wii, and Nintendo makes sure that whatever information it may contain (pictures? save games?) is very difficult to access in the first place. FON also has a collaboration with its capital partner Skype ( another one is Google) to provide Skype calls using VoIP phones, no need for a computer, which is quite intriguing for oversees travel (if it works).

Sun, 22 Apr 2007

Treasures of the Household

Part One: The Silver Nose carries my glasses at night.

Sat, 21 Apr 2007

Destroy Mannheim

Terada-san introduced me to a role playing and board game shop in Akihabara that hosts a monthly gathering of gamers.

Tue, 17 Apr 2007

A Barium Meal

Having turned thirty last year the annual health check shifted gears from casual inspection to thorough investigation, and I was served my first ever barium meal. I have to say that it was not as spectacular as I thought. Neither the taste of the barium sulfate, nor the machine that rotated me around made me sick. It was definitely much less unpleasant than the blood sampling. I did well there too this year, especially compared to two years ago when I fainted and last year when they had to go in three times to get enough juice out of me.

Other things on the menu:

  • Blood pressure measurement
  • Weight and height measurement
  • Torso X-Ray
  • Electrocardiogram
  • Abdominal ultrasonogram
  • Hearing test
  • Visual acuity assessment (they gave up on having me do that without glasses)
  • Intra-ocular pressure measurement
  • Urine and stool sampling
  • Life-style questionnaire, with particular focus on eating habits

Nothing dental. That never seems to be included in the bundle, wherever you go.

Mon, 16 Apr 2007

37.61 British pounds = 8 863.7533 Japanese yen

Cissy is a big fan of Sisi, but Tsutaya Discas has nothing in the way of Romy Schneider or even Helmut Berger. Amazon and the BBC to the rescue. 11 hrs and 50 minutes (plus bonus materials) of British television drama about the tempestuous reigns of Emperors Franz-Josef, Nicholas II, and Wilhelm II. Of course, only the first episode deals with Sisi, but hey, who wants to miss Patrick Stewart as Lenin?

Not having watched a minute of it yet, I cannot speak on the quality of the series, I just want to proclaim my happiness that Japan and Europe share DVD Region 2, and that orders from Amazon UK take only four days to get here. But would someone please fix the exchange rate ?

Sun, 15 Apr 2007

Blood Diamond

Surprisingly gripping movie about Sierra Leone fisherman Solomon who tries to keep his family alive and together during a brutal civil war. Having just escaped from forced labour in a diamond mine operated by the vicious rebel army he finds that his whole village has been displaced and his young son become a child soldier. His only chance is to strike a deal with diamond smuggler Leonardo DiCaprio, who shows much interest in the huge diamond that Solomon is said to have found and hidden, and who in turn has to cooperate with an American journalist wanting to expose the European and South African companies that are buying the blood diamonds.

8 points

Thu, 12 Apr 2007

Me wearing other people's glasses

Part nine: Maruyama-san
Sat, 07 Apr 2007

The thousand and one reasons to love Perl: [19] Switch

Starting with Perl 5.9.3, Perl finally has an official switch statement (in versions before there have been various hacks to emulate it, none of them pretty). The long wait has paid off, the Perl version is packed with dwimmery ("do what I mean").

/* C switch statement */
switch (data) {
	case 1:  printf ("one\n"); 
	         break;
	case 2:  printf ("two\n"); 
	         break;
	default: printf ("something else\n");
	         break;
}

In order to use post-5.8 features you have to enable them with the new feature pragma. This assures that the new keywords do not conflict with existing code. The keywords are not called switch and case, but given and when. A straightforward translation of above C code (also using the new say function, which is Perl's println) is the following:

use feature qw( switch say);

given($data) {
	when (1) { say 'one' ; break; };
	when (2) { say 'two' ; break; };
	default  { say 'something else'; break; };
}

The first improvement that has been made is to make the break optional. Whereas C and Java will fall through to the next option, which is usually not what you want, Perl will break out by default.

given($data) {
	when (1) { say 'one' ; };
	when (2) { say 'two' ; };
	default  { say 'something else';  };
}

Conversely, you cannot get the C behaviour of falling through to the next option. There is a continue keyword, which will go to the next when, but that condition will still be checked.

# this code does not work !
# it will say "something else"
given($data) {
	when (1) { continue; };
	when (2) { say 'one or two' ; };
	default  { say 'something else';  };
}

But the when clause is quite smart and can do more than simple literal comparisons, letting you say

# this works
given($data) {
	when ([ 1, 2]) { say 'one or two' ;  };
	default  { say 'something else';  };
}

This smart matching feature supports many different types of comparisons and it can also be used outside of when using the new ~~ operator.

Finally, you can combine the switch with a loop:

my $count = 0;
for (@array) {
   when ("foo") { ++$count }
}
say "\@array contains $count copies of 'foo'";
Thu, 05 Apr 2007

YAPC::Asia 2007

Ingy döt Net: Kwiki and the Symlink
Proposing a new way to package and install Perl modules with their dependencies, using Subversion and symbolic links. Does not work on Windows, but is much easier (and cleaner) than a normal CPAN install. Inspired me to download Ingy's slideshow system Spork to make the slides for my lightning talk.
Emerson Mills: Virtualization and Package Deployment with EC2
Introduction and demo (that did not work because the Internet connection was down) of the tools that come with the Amazon EC2 hosting service
Mark Jason Dominus: Higher-Order Parsing techniques for Perl
Demonstration how to build a parser from scratch using only functions and function-generating functions, based on MJD's acclaimed book
Dan Kogai: perl I18N in 20 minutes
Showcasing the Unicode capabilities in Perl and comparison with other languages
Naoya Ito: Network programming with Perl
Everything you ever wanted to know about BSD sockets, epoll, kqueue and the like.
Ben Trott: Everything Vox
CTO of Six Apart shares some tricks how to make their sites scalable and fast: Caching, partioning, batch processing. Apparently these big web sites do not really use RDBMS anymore, at least not as an abstraction layer for the physical data storage, precisely because sufficient performance cannot be achieved without complete control over physical storage and access paths.
Tomohiro Ikebe: Inside livedoor 2006-2007
A similar talk to the previous one, about the architecture that livedoor (they insist on the casing) is using, and the changes there over the past year (strictly confined to technology).
Marty Pauley: Perl Worst Practices
Java was designed for stupid people, Perl for clever people. Fortunately for Java, it can (and is) also be used by clever people. Unfortunately for Perl, it can (and is) also be used by stupid people, which is dangerous.
Audrey Tang: Perl 6 Today
An overview/roadmap about the state of Perl6 development. Nothing too specific, and nothing really new, either. We'll just have to wait until Christmas.
Jesse Vincent: Abusing Domain Specific Languages for Fun and Profit
Three examples of domain-specific languages that are implemented in Perl and can be parsed using the Perl compiler, even though they do not look like Perl at all anymore.
Kang-min Liu: Asynapse - The missing links between servers and clients
An API to easily expose server-side code to Javascript applications (or other REST clients). Also, a converter for Mac Interface Builder files to YUI or XUL.
Dave Rolsky: Patterns in Perl
Design patterns from the GOF book, and why some of them do not really make sense in Perl, as they seem to only exist to work around limitations in languages like C++.
Yoshinori Takesako: s/ Perl5 Regular Expression / Perl6 Regex and Rule /mixes;
An overview of the new regular expression features in Perl6.
Daisuke Maki: (Ab)?using Class::C3
An introduction to a popular library for method dispatch when using multiple inheritance.
Chia-liang Kao: Pushmi - Subversion replication system
A subversion mirroring system for people that do not want to use SVK but still need to have at least read-only access when your Internet is down due to an earthquake.
Gosuke Miyashita: Assurer - a pluggable server testing/monitoring framework
Introduction to Assurer, a server health monitoring system
Lightning Talks
Twelve five minute talks, including three extremely funny ones, and mine, which was not nearly finished when time was up. Three parts: exposition, explanation, live demo. Gong after the first act. Should have practiced it beforehand.
Sun, 01 Apr 2007

Long live the Organization for the Organized!

  1. The United States of Leland (8 points)
  2. The Shipping News (8 points)
  3. Raising Arizona (7 points)
  4. Elizabethtown (7 points)
  5. Match Point (7 points)
  6. Matchstick Men (7 points)
  7. The Shawshank Redemption (8 points)
  8. Timeline (unwatched)
  9. The Jacket (7 points)
  10. The Pink Panther (2006) (4 points)