Search Results: "az"

19 June 2006

Michael Janssen: Weekend Weeviews: Jawbreaker, Real Genius, Primer

There are three reviews this week, because I neglected to review one which I watched earlier. I'm also trying to decide whether the links at the end are of any use, and whether it's useful to syndicate this to Planet Debian. Feedback is encouraged! ;-)

Jawbreaker

The whole premise of Jawbreaker gets laid out right at the beginning - after a opening sequence in which we see the title candy being made, a couple of girls kill a friend by surprising her and using a jawbreaker as a gag. The movie then degenerates into a formulaic nerdy girl gets to be pretty storyline. Unfortunately Jawbreaker doesn't pull it off as well as Mean Girls does, and ends up falling pretty flat. One saving grace of this movie is that it is very short at just 87 minutes. One small treat is that Rose McGowan is playing a decent role, although I do have a much older vision whenever I see her from her work on Charmed. One thing which keeps bugging me is how the movie reminds me of But I'm a Cheerleader, even though the plots and premises are very different. The soundtrack is very well done with good placement of good songs. Jawbreaker is bittersweet at a 5. (imdb, amazon)

Real Genius

I have always heard good things about Real Genius, but never saw it all the way through. Supposedly this is a tragedy. Apparently [info]ceilingsarecool saw it before, but didn't remember a bunch of the plot. A whiz kid enters college early and starts working for a professor. The premise is setup in the first 10 minutes or so, which is that Herr Professor is really corrupt and working to provide a laser weapon to the military. This leaves ample time for the comedy in the movie to play out, as Whiz Kid gets to experience all the wild antics of college with a high-IQ twist. Lasers are used fairly extensively in the movie (mostly as part of the plot) and get a nice chunk of credits in the end. The movie unfortunately doesn't really age well with time, unless you're a fan of 80's movies. There are no less than 2 montages with music, and the ultimate 80's end-of-movie song "Everybody wants to rule the world" by Tears for Fears is playing at the end. Real Genius still is smarter than many movies you'll see nowadays, so it burns in a 7. (imdb, amazon)

Primer

Small budget films are usually interesting to watch, because either they are simple masterpieces, or they try to be way more than they can be and end up being a trainwreck which you just can't stop watching. Primer is the rare gem which found a happy medium between complex and simple. At the start, a garage business is introduced with four tech friends making a bit of money selling to hobbyists. Apparently they have some sort of deal about who gets to pick the next thing they try, and one of them wants to try something related to physics. Two decide to attempt it on their own and they create a device which apparently lowers density, or gravity, or something. Then they discover it does much more than that - it can manipulate time. Fortunately there is still much of the movie left after this. The acting is not top notch by any means, and comes off as cardboardish, but it seems well-placed in this script because most techies that I know are not the best with social skills. It's important to note that the main focus doesn't lie on the device, but on the implications and ramifications. As the movie approaches it's end, the pace and convolution increases quickly. A rewatch is in order for Primer - and even then you still may be missing parts in the giant puzzle which is laid out before you. Shane Carruth directs, writes, and produces an amazing film, especially considering the sub-10k budget. Primer scores e^2.30258509. (imdb, amazon)

18 June 2006

Christine Spang: Graduation: Many Pictures, Few Words [dialup warning]

Friday - The Party Good food. Good Food Good times. (Though, I have to admit it was considerably more interesting when it got dark and the torches were lit and we tried to avoid melting the beach ball.) Playing volleyball Helpfully labelled drinks. Helpful labels! Saturday - The Graduation Good music. Brian Maxsween, singing Good speeches. (<plug> yes, this is me </plug>) Christine Spang, speaking Saturday - After We Are Graduated In which I pose with the superintendant. Me with Dr. Rudolph Rubeis, West Genesee Superintendant In which I pose with my brother outside in the blinding sunshine and blazing heat, while thinking about the cool water that happens to be behind us. Blinded outside In which I pose with my parents and brother in a moderately more forgiving environment at home. The Parental Units In which I pose with my brother and grandparents, who could probably stand in for an alternate Matrix cast, and kick your [posterior]. At least in this picture. The Matrix In which my cousin Mark discovers that my stole is kinda fun. Peekaboo! In which a good friend of mine gives me a freaking awesome shirt. This Blows I will now proceed to summarily disappear off the face of the ‘net from sometime tomorrow until late Monday or so, in which I Move To Cambridge.

17 June 2006

Edd Dumbill: In search of agile infrastructure for web applications

Many advances have been made in agile software development. Frameworks such as Ruby on Rails embody agile principles by making software easy to write, easy to test, and above all, easy to change.If only we could say the same for the infrastructure on which we develop and deploy web applications. Not every application can be a Rails one, especially where it's been up and running for years. The systems we deploy on often rely on configuration files scattered all over the filesystem, and can be complex results of years of change.By extension, the systems we develop on often don't exactly mirror where we deploy. If we're lucky and careful, then we have a staging server which mirrors the live environment, but that's not too much of an advantage. Among other things, we need ways to evolve and refactor the live environment, and have our development environments easily track that.I'd like to call such an environment "agile infrastructure". Infrastructure that doesn't hamper developers, and allows live configurations to change and evolve. Infrastructure that allows new things to be tried with minimum cost, and can provide the best information possible to help future planning.Tools enable techniques, of course. It's a lot easier to be agile if you're programming in Rails rather than plain old PHP. So what are the tools enabling agile infrastructure?
Techniques I've found usefulWhile there's a long way to go, I'd like to describe some of the techniques I've been using to help create a flexible environment for developing a sizeable PHP/MySQL application.Operating systemAn operating system must be easy to bring into a known state with minimum interference. For this, I've found Ubuntu or Debian to be an ideal choice. Two of the main reasons include the constancy of stable releases and the fact that it's rare you need to stray outside the distribution's servers to get the software you need.DeploymentDeploying an application shouldn't break the cleanliness of your OS build. I prefer to package deployed applications into .deb files. This enables me to build on several advantages of the package management system:Source controlThe case for source control, thankfully, doesn't need making these days. Yet not every source control system is created equal. Developers shouldn't be constrained by source control, it should be cheap and easy to try new ideas and merge these in later.Not only cheap branching, but also easy merging, is required to keep development agile while still retaining the benefits of source control. Many people flock to Subversion these days, predominantly because it fixes some of CVS' more egregious misfeatures. However, merging can still be pretty difficult in Subversion.I prefer to use a system allowing easy merging, such as svk or bazaar. Because so many of us use laptops these days, disconnected operation is also a huge boon. Bazaar-NG offers both repository-oriented and completely decentralized operation, giving the best of both worlds. It also wins the competition for least setup overhead.VirtualizationPreviously a high-powered technology, cheap virtualization is now with us. Many identical virtual machines can be quickly created to enable testing and experimentation. Deployment to virtual machines can enable hardware independence for applications, reducing another big headache.Large organisations have it within their reach to bring new hardware online easily, and have invested much in management systems for it. Virtualization brings this in reach of small and one-man development teams.Desktop-based virtualizationSystems such as VMWare and Parallels untether developers from their desks. I use the OS X desktop daily for its productivity software, but an Ubuntu virtual machine for a large proportion of development work. A simple keypress lets me flick between the two. The advantages of multiple desktops to hand for web development are well known. (In fact, thanks to WINE and IES4Linux I can run Internet Explorer cheaply too from the same virtual machine).
Xen virtualizationAfter the initial novelty wears off, one of the most tedious tasks in the world is bringing new machines online. Combined with the tendency development environments have to get crufty as new ideas and tools are tried out, this makes for increasing disparity between the development and deployment environments.Wouldn't it be nice just to take a clean machine off the shelf, check out the source, and pick up again? Using Xen for Linux, this cheap virtualization is possible.Sadly, Xen isn't yet a packaged part of Ubuntu, but getting it up and running on Ubuntu Dapper isn't too hard. Warning: here's where things get pretty deep. Skip this bit if you're not interested in the nitty-gritty.I followed these steps:Getting over the DNS mountainIf you want it to be easy to bring new virtual machines up and down, you need to adopt a different approach to managing your DNS. You need to know how to predictably connect to a virtual machine. Yet it's going to get very boring and error prone to manage the IP address space manually in your DNS, or even to map the MAC addresses of your virtual machines in your DHCP configuration.
Help is at hand in the form of mDNS (also known as Rendezvous / Bonjour / ZeroConf). In the host machine, and in each virtual machine, I ensured the avahi-daemon and avahi-utils packages were installed, providing mDNS services. (You should also check that mdns is present in the hosts entry of /etc/nsswitch.conf).What all this does is allow the machines (virtual or otherwise) on the network to resolve names using mDNS. So if I create 3 VMs, alpha, beta and gamma, I can access these right away using the hostnames alpha.local, beta.local and gamma.local.Hey presto! Easily make machines appear and disappear without any need for sysadmin involvement. All the extra steps to add avahi installation can be easily scripted with xen-tools, to reduce the number of commands needed to birth a new machine to one.With this ease of creating new machines, it's much more straightforward to experiment with server topology and conduct experiments on server environments.ConclusionAgile development is necessarily constrained by the infrastructure on which it is conducted. The infrastructure itself is constrained by the tools and platforms of choice.By appropriate tool choice we can reduce the commitment and overhead of infrastructure. This enables developers to get on with the job they do best, and makes experimentation and evolution of infrastructure much simpler.When programming, it's dangerous to fall in love with your code, as the best solution may often involve throwing half of it away. The same hazard exists with infrastructure, with bizarre and awkward effects propagating back into code and operations. Get yourself a low commitment, agile environment, and you'll be able to keep up with the pace. 

16 June 2006

Michael Janssen: Random Technological Stuff

Programming, windows style
I'm now in the thick of a bunch of win32 programming at my Honeywell part-time job. I don't mind it that much, but I continue to be amazed that Microsoft's IDE is still the one used most often. The autocompletion is nice, but that's about the only good thing about it. I am continually annoyed that the IDE doesn't know which definition of a function I want to use, and only seems to pop up it's hints when it decides. Add this to the fact that most win32 libraries aren't apparently setup in a way so you can put their source in the repository, and I have a lot of admin work which I'm not particularly thrilled to do. 10% programming, 90% random crap. I'm beginning to understand why the average lines of code per day is so low. I can't really complain that much though, I knew the tools we'd be using when I accepted the job.

Programming, rails style
I have been working with Ruby on Rails lately, mostly to make some new web applications which aren't released yet. Things which are possibly in the works:

I also have a couple of smaller applications which won't really go anywhere, and an internal application upgrade from php. I really enjoy building web applications in the Rails framework, and I have honed my skills at Ruby enough that I actually use it for small scripts when I get frustrated with bash. I tend to do my Ruby Coding in TextMate and with Locomotive on the iBook, although I may do some on the Debian machine soon.

15 June 2006

John Goerzen: How to solve "The following packages cannot be authenticated"

Users of Debian's testing or unstable distributions may be noticing messages from apt saying things like:

WARNING: The following packages cannot be authenticated!
foo bar baz
Install these packages without verification [y/N]?


I noticed today that google doesn't turn up good hits for the fix. The fix is really simple:

apt-get install debian-archive-keyring
apt-get update


That's it. You now have secure packages from Debian. Nice, eh?

14 June 2006

Joachim Breitner: XSA-Article available online

Just a quick follow up on my Cross-Site-Authentication Attack: My article for the German Linux Magazin which was translated for its English counterpart Linux Magazine is now available online. Before you ask: I did not chose the image there. I’m still waiting for the German version to be opened up, too, but that will probably not happen before October.At the GPN 5 last weekend (a conference compareable to the Chaos Communication Congress, only smaller) I have held a lightning talk on the XSA Attack. In preparation for that, I actually tried it on the internal wiki of the Entropia e.V., and despite the relatively high technical knowledge of its visitors, some fell for the trap. As that was the only preparation of the talk, I wonder how it was perceived. Comments and tipps with regard to the form are welcome.By the way: The German wikipedia page on XSA tells us that newer firefox browsers won’t allow such an attack to work, which is good.

Gunnar Wolf: Back to... Normality?

Yesterday night, without all the stares and ceremony I would have liked for such an important moment (but, hell, it was ~500m away of the Oaxtepec entrance!), I gave the three-finger-salute and rebooted moe.mexico.debconf.org. After some seconds, I started unplugging the six Ethernet cables that this noble machine held together forming Debconf6's connection to the world (thanks, Punk0 and Jyr, for working with this bunch of crazy and nervous people, five days nonstop until the wireless link between homer and moe worked fine and reliably, and still talking to us!) and ran back to the hacklab to finish packing the van with the lent equipment.
Ok, so now moe is back in its place, my office (believe it or not, yes, today I came back to work). Its identity has been restored to mosca.iiec.unam.mx, and moe's ancient but still working hard drive now sits idly where it belongs, in my desktop drawer. I am back in my place again, tired as I can be, but really happy of having ~250 of my closest friends visit my country. Besides, I am very happy that, AFAIK, this Debconf is the one that most people spend some time on an after-trip.
I am really happy with what we did at Debconf, even given all the problems we originally had. And... Well, I eagerly wait for Debconf7, where I expect to spend much more time attending talks - but most importantly, hanging out with you, having nice, fun talks/mao/whatnot.
PS: Alfie, you are severly mentally disturbed!

Gunnar Wolf: Thanks!

Debcamp was really stressing - It seemed we would not be able to get things to work for Debconf. And it would suck. I was quite down when I last wrote a blog entry - Not in mine, but in Debconf's. Things looked quite hellish, and I was _very_ annoyed - Well, I must say: Thanks to you all for the support. Mooch's request has been honored extensively, and it does help. Really.
Yesterday we had the Debian Day. About 50 Mexicans showed up, after we had to jump through some hoops with the Oaxtepec management people (thank you, thank you, you are great! Real dedication to your job, to make us feel welcome and important). The talks were interesting and well presented, and the people left happy - and some of them, left quite late. We had presence from at least one national newspaper (La Jornada and a magazine, Software Guru. Good.
Then, during the night, we were flooded by arriving foreigners. Boy, the hacklab was packed! Good thing we now will have both hacklabs running.
I have to thank most than to anybody else to my wife, Gaby a.k.a. Nadezhda - She has done all the ugly paperwork... Without her, we would all not be here. And later, I would probably be sitting in jail or something ;-)
Seems that the bugs are ironed out. Now I'll try to attend the "Sun and Debian: can we be friends?" round table.

Gunnar Wolf: Visas for Debconf - Sorrow for our government's great history and current blindness

One of the most bitter and hardest tasks of running a large international conference such as Debconf 6 is the absurd process to ensure that every person interested in attending is able to do so.
Before I start ranting, let me point you to a very well written text my father wrote about two years ago, out of a similar frustration after organizing the XXV International Colloquium on Group Theoretical Methods in Physics - On travelling to Scientific Meetings.
Mexico is not a first world country, as you all know it (you didn't know? Well, please take note). Mexico is not a country that gets heavy migration - quite to the contrary, it is a country from where masses of people live in the United States (seven to ten million). We should not fear migrants staying at our country and stealing our precious job sources. The countries Mexico requests visa for are mostly those at or under our economic level (i.e. most of South America) or those with infrequent travellers coming (i.e. most of Eastern Europe, Asia and Africa (of course, we have to make sure they don't suddenly become tourists and give us more money).
Were it not for the "intelligent borders" the USA government is demanding on ours as a precondition to walk towards a migratory agreement that could in the future legalize at least part of the Mexicans that live in the USA, it would be impossible for me to understand why does a situation like what we have experienced happen.
We started, yes, the visa request process a bit late, due to some organization problems which should remain internal to the local organizing committee - However, we requested the visas for 25 people coming from Bangladesh, Bolivia, Bosnia Herzegovina, Brazil, Colombia, Croacia, El Salvador, India, Per and Russia with a process that started on March 25 - Well before May 5, where the first of them is scheduled to arrive. Of course, we knew the process would not be easy, but we were armed by the written assurement of a migration officer to my father assuring him the migration procedures would be vastly simplified during 2005.
I will try to keep the story short. I cannot also speak the whole experience, as it was my wife together with the Nul-Unu people who had the burden of doing all this.
Once you enter your request, it is impossible to track where it is - INM is a maze of twisty little passages, all alike. You cannot get any information by phone. When the papers were submitted, Nadezhda was told to come back in 10 days for getting the status update. Ten days later, she was told no information was yet available. Some days after that, she found the papers had been sent to Cuernavaca (Morelos state capital), where we should have presented them, because the conference is taking place in Oaxtepec, Morelos... No, they didn't pay attention to the fact that we repeated over and over that the organization running the conference, AMESOL, was based on Mexico City.
Ok, no big deal - We went to Cuernavaca so that the AMESOL president was interviewed on what the conference is about and why should we let all that people in our country, and demanding from him to accept personally the responsability of making sure each of them leaves the country as promised. Not only that, we had to go again because not all of the requests were sent the same day, and they belonged to different batches. They also asked the Oaxtepec people if the list of people had a room booked - of course, the hotel crew knew the group was coming, but not the list of individuals!
But no reply yet. The office in Cuernavaca said they would fax the results back to Mexico the next day. That next day took almost two weeks.
With the results already in Mexico, and with the help of some insiders we came in contact with thanks to different coincidences (I'm not giving any names or functions here, hope you understand), we finally got notice last Friday (April 28) that most visas were approved, but a handful (Bosnia, Bangladesh and Colombia) were held for national security reasons. At long last, yesterday (May 2) we told most of the group was approved, and got the magic authorization number with which they could go get their visas. Not all of them yet... I really hope the authorization can come on time, and we can get the rest of them here. At least it helped a bit that we as a committee invited them - Otherwise, people from poorer countries would have to show bank account statements assuring they have had an average of US$2000 in their savings account for at least one year - Impossible even for most Mexicans.
But the story, incredibly, does not end here. Why didn't I write about this before? Because I was just pissed off. Today, I am enraged.
Not only you have to go through a stupidly long process to be awarded a visa. Once the visa is awarded, you have to pay its fees. The visa is expensive, more or less as expensive as the USA visa is for us - around US$40. But the visa is worth nothing without the FM3 migratory document - I knew the FM3 was used by foreigner residents. It's basically a complete passport. A stupid, unnecessarily long document, where your entries and exits are recorded, where you should note your work place, etc. - All fine for a long-term resident... But we are being awarded limited one entry tourist visas. Oh, and by the way: An FM3 costs around US$100... So for the poorer countries, after being mistreated, ignored and degraded, you have to pay US$140, probably one whole fucking month of your salary just to get the needed permits?!
We complain a lot on how the USA government does not respect Mexicans. Just this Monday, May 1st, there was a massive migrant movement in the USA, seconded in Mexico via an (symbolic, yes, but nevertheless true) one day long economic boycott against USA companies. Mexicans speak of the rights of our migrants, of the abuse that the USA authorities make... But we are unable to treat others with dignity, to welcome them as our country did for many decades.
This makes me very sad. And very angry. I should have been writing information for you all to have a good and easy time when coming to Mexico, but that will have to be a bit later - I cannot just stay and stand this situation.

Gunnar Wolf: Novel noble ideas for solving the world's problems

Yesterday, the right-wing PAN candidate for the presidency of Mexico, Felipe Calder n, made a declaration that shadows the current president, Vicente Fox (from his same political party) almost look like a genuine statesman. (some links, La Jornada, El Universal) - And that's no easy feat, given that Mr. Fox is -so far- the nation's most prolific president... When it comes to stupid sayings.
How come Calder n rose so quickly to become a statesman? Let me first go through a bit of history. Not much, promise. Well, I'll do my best.
Twelve years and one month ago, Mexicans woke up with the frightening news we had a violent guerrilla group in Chiapas, one of Mexico's richest states, but one with the highest percentages of poor people - and, not coincidentally, of indigenous population as well. This uprising was very soon known all over the world - And its leaders quickly learned how to ensure they would not be prosecuted and exterminated: Simultaneously with the fighting, they made as large a media coverage as they could, strongly supported in the Internet democratization of the information that had just begun. Thousands of people all over the world understood their ideas -at least what they said at that time- and spread the word. I had my first trip in Europe with my (now) wife in 1996, and we saw many grafittis stating Viva Chiapas, Viva EZLN... It was amazing.
EZLN was (is) specially hard for the government to kill. As they don't do military sabotages, terrorism or so on, it is very hard to justify military action. After 12 days of fighting, a truce was decreed. The truce was broken once, in the early years of the Zedillo government, but officially there is a cease-fire, observed by both sides. The Zapatistas have took the ideas and further promoted them, with action. My Chiapas-born friend Alex Ju rez often tells me about the tremendous cultural difference between the Zapatista territories and the paramilitary ones - In the Zapatista areas, you see indians reading books, working their land, organizing themselves in the Fair Government councils, and strongly opposing alcohol and drugs. Just the opposite from the other areas.
EZLN shifted their strategy some months ago, going beyond stating their wishes for a fair regime and waiting for the government to look at them. I still don't really understand where they are heading, but the Sixth Declaration of the Lacandon Rainforest turns them into a political movement, clearly separated from the existing regime. They do not seek to be elected, they oppose every party and candidate. They define themselves as an anticapitalist movement, located down and to the left - Lets see where this goes to.
Well, back on track... One of the president's most famous stupid quotes is that, during his campaign, he promised to solve the Chiapas conflict in fifteen minutes. Well, it's been either fifteen very long minutes, or he just hasn't had any time to devote to those dirty indians. Mexicans are very frustrated by the lack of importance this man gave to one of our country's longest and most desperate needs.
Of course, Felipe Calder n must do something in this regard. Fox's shadow is a big one, and this little man must try to escape from Fox's biggest mistakes. So he just came with a formula that I don't know why no statesman thought of before: Instead of negotiating, instead of working to solve a very difficult problem, he declared he will unilaterally declare peace with EZLN.
I wonder if this year's Nobel prize will go to such an abnegated, smart and selfless person. Man, we could take this same solution to Darfur, to Israel/Palestine, to Congo, to Chechnya... If rulers all over the world start declaring peace unilaterally, all of the world's problems will be solved! What comes next, he will declare (maybe as Salinas did) that we are a first world country? Poor people are only sad reflections in the sand but don't exist in his reality?
Please, Mexicans: The man is clearly schizoid. Are you happy with Foxilandia? It seems that alternate realities are part of the PAN's action program. If you are not satisfied with Fox's results (who is?), don't vote for this guy. We will all regret it.

13 June 2006

Bartosz Fe&#324;ski: call Enter to continue!

At the beginning of the year I blogged that I lost my dog. Yesterday we took new one from our neighbour. Title of this message should be Press Enter to continue probably, but it's not polite to press animals. Yes, I called him Enter ;)
I borrowed camera today to make him some photos and here's one of them:

Isn't he sweet? :)
He's three months old. I don't have manual to this camera and I don't know how to fix that strange effect on Enter's eyes, so forgive me :P

Michael Koch: Experimental GNU classpath snapshots

Inspired by a blog post from Anthony Green about gcjwebplugin uploaded for FedoraCore 5 I created an experimental package for GNU classpath based on CVS. It includes the latest fixes for AWT/Swing. This means the new CairoGraphics2D implementation is used by default. This enables much more Java applications to work with GNU classpath. Another point to note is that this is the first upload of GNU classpath that includes gcjwebplugin, a free java applet plugin for web browsers. This version of it is fully reworked from the last solo release of it. It should be much more stable then ever. You can find it currently in the “experimental” distritbution of Debian. The next release of GNU classpath will be released in approximately 3-4 weeks. Then all these cool features will land in Debian “unstable”. I plan to continue uploading newer GNU classpath CVS snapshots to experimental. Stay tuned for more features and Java applications working with free runtimes. Who wants proprietary Java anyway?

Michael Janssen: Weekend Weeviews: The Iron Giant, Brazil

Wow, a semi-regular posting.

The Iron Giant

Small town america in the late 50s doesn't know what hit it. Science fiction is in it's hayday and the nation is on a hairpin trigger when a big robot falls from the sky and is discovered by a small boy. I had heard much about this movie and everyone I knew who saw it liked it. I have to tell you: the hype is well deserved. The story is compelling and heartening, good for children and adults alike, and the humor throughout is well done. Characters are voiced well. The story obviously revolves around the giant. Most of the story is centered around keeping the monstrosity hidden, which doesn't succeed for long. The government eventually figures it out and starts shooting, and then things really get interesting. The ending was just as fun to watch as the beginning, although I think they copped out on the very end, leaving it with a light note. It would have been really nice to see it end in a bitter-sweet tone. The Giant gets a 9. (imdb)

Brazil

One of the things I remember hearing about Brazil is that it was "Terry Gilliam's Directorial Masterpiece". It certainly is at that. In the 20th century somewhere, a clerical error causes a great movie plot. A futuristic society is thrown into disarray by a simple error in typing, starting with the death of an innocent man, and then the coverup of the century. The protaganist is in a dead-end job, but seems to be perfectly fine with it, until the girl of his dreams literally walks into his life. Gilliam and his cinematographer create a beautifully blocky and dull grey industrial wasteland set in stark contrast with the beautiful dreamland. The subplots don't obscure the main line which is compelling and kept me wanting more even though it clocks in at over 2 hours. The ending was unexpected and well done at the same time, and I couldn't see it done any other way. The directors cut is the only way to go with this one, and I haven't even seen the studio cut.
Brazil is berriffic, and scores a 12. (imdb)

12 June 2006

Ross Burton: Summertime!

Summer finally arrived in England last week, after a pretty miserable and wet spring. Annoyingly it arrived a few days late as we were hoping that it would be glorious whilst we were in Paris, but alas it was only good for the last two days. Of course summer means sitting outside with glasses of cold drinks and lazying around. We did a bit of that over the weekend but it was a little too sticky then, as today is much fresher I dug around the pit of doom that is our garden and built some of the (to be replaced very soon) garden furniture. My Office Lovely. However as the sun makes its way up the shadows to work in get smaller and smaller, we really need to get a sunshade. NP: Lounge stream, Digitally Imported Radio

11 June 2006

David Pashley: Class::DBI performance

Class::DBI is a very nice database abstraction layer for perl. It allows you to define your tables and columns and it magically provides you with classes with accessors/mutators for those columns. With something like Class::DBI::Pg, you don't even need to tell it your columns; it asls the database on startup. It's all very cool mojo and massively decreases the development time on anything database related in perl. Unfortunately, as far as I can tell, it has a massive performance problem in its design. One of the features of Class::DBI is lazy population of data. It won't fetch data from the database until you try to use one of the accessors. This isn't normally a problem, except with retrieve_all(). Basically this function returns a list of objects for every row in your table. Unfortunately, due to the lazy loading of data, retrieve_all() calls SELECT id FROM table; and then every time you use an object it calls SELECT * FROM table WHERE id = n;. For a small table, this isn't too bad, but for a large table, it's a killer. I did a little benchmark today to see just how much slower it is over plain DBI. I wrote two functions which iterate over a table, assigning one value to a function (forcing Class::DBI to fetch the data). The table in question contains 635 rows. The code I used was:
use strict;
use warnings;
use Benchmark qw(:all) ;
use Foo;
use DBI;
sub class_dbi  
   for my $foo (Foo->retrieve_all())  
      my $bar = $foo->bar;
    
 
sub dbi  
   my $dbh = DBI->connect("dbi:Pg:dbname=$db;host=$host",$user, $passwd);
   my $sth = $dbh->prepare("SELECT * FROM foos;");
   $sth->execute();
   while(my $row = $sth->fetchrow_hashref())  
      my $bar = $row-> bar ;
    
 
cmpthese(100,  
      'Class::DBI' => 'class_dbi();',
      'DBI' => 'dbi();',
    );
The results:
brick david% perl benchmark.pl
           s/iter Class::DBI        DBI
Class::DBI   10.3         --       -97%
DBI         0.351      2845%         --
Class::DBI is more than 28 times slower than using DBI directly. I'm hoping that someone will now tell me "Oh you just do blah", otherwise I'm going to have to rewrite some of my code. One thing to learn from this is that reduction in development time can often cost you more in other areas, and it's often runtime performance. Update: It appears that the bug is that Class::DBI::Pg does't set the Essential list of columns, so Class::DBI uses the primary column. you can fix this by adding the following to your database modules:
__PACKAGE__->columns(Essential => __PACKAGE__->columns);
Remember you'll need to do that for each of your modules; you won't be able to do it in your superclass, as you won't have discovered your columns yet. This has increased performance, but not massively. New timings (with the addition of using Class::DBI through an iterator):
              s/iter Class::DBI it    Class::DBI           DBI
Class::DBI it   6.35            --           -2%          -94%
Class::DBI      6.23            2%            --          -94%
DBI            0.350         1714%         1680%            --
Update 2: It appears that further speedgains can be made by not using Class::DBI::Plugin::DateTime::Pg to convert the three timestamp columns in my table into DateTime objects.:
              s/iter Class::DBI it    Class::DBI           DBI
Class::DBI it   1.26            --          -11%          -72%
Class::DBI      1.12           12%            --          -69%
DBI            0.350          260%          220%            --

9 June 2006

Andres Salomon: Holy Tango of Literature

Holy Tango of Literature, by Francis Heaney. The author creates poems in the style of famous poets, using anagrams of their names as the poem titles. For example, the following is the first stanza of “Brr, Footrest” (in the style of Robert Frost):

This ottoman is in my way.
I tripped on it again today;
It chills me with a nameless fear
To think it sees me as its prey.
And the best part? It’s under a Creative Commons license, and is freely available online.

7 June 2006

Erich Schubert: Mystery subscription

My last.fm status is "subscriber", though I never subscribed. Interesting. I thought maybe it was a test subscription of one month for my birthday or so (which was less then one month ago), but why didn't I get any mail to tell me of this test subscription then? Weird. So if anyone "secretly donated" this subscription to me, please, don't. But who would do so without telling me? I'm happy with their free service... So if you insist on wasting some money on me, consider my amazon wishlist instead (though I don't really care much about that stuff either...). Well, maybe the "ad" message was just delivered to the spam folder. After all, there is still a "subscribe" button on the last.fm page.

John Goerzen: Usenix

Well, we're back from the Usenix '06 Annual Technical Conference. Overall, a very nice conference. This is the first Linux/Unix conference I've been to since the old LinuxExpo (NOT LinuxWorld) events in the late 90s.

I must say it was quite fun to be around so many intelligent *nix folks. I learned quite a bit, and learned how much I had in common with some (and how little with others). A very nice social at the New England Aquarium Friday night.

Some very interesting speakers, too, with lots of experience to share. I'm glad I was there.

I have only one main complaint about Usenix -- they tried to cram too much into too few days. The conference sessions ran till as late at 6:45PM, with BoFs after that. That left almost no time to see anything of Boston and meant that very few people could actually stick around for all the BoFs. Next year, they should use more days and schedule fewer things in the evenings.

The highlight of the trip, though, wasn't Usenix at all, but instead getting to meet some Boston-area Debian folks Saturday night. Lots of fun, and Mako is as crazy in person as he looks online :-)

Our train trip in each direction was nice, too.

More to come...

Evan Prodromou: 18 Prairial CCXIV

Another thing I've been wrong about in the past? JavaScript. I've always held that it was a cheap, lame, ugly knockoff language little better than a spreadsheet macro tool. I'm happy to say that my recent revisiting of JavaScript in the last 2 years has proved me wrong. JS is crazy, bizarre, and convoluted, true, but it's got a fundamental simplicity that I find appealing. The prototype-based inheritance is wacky, too. Anyways, I was interested to see that the ECMAScript 4 working group has published some specs for the next version of the language. It looks pretty cool.

6 June 2006

Aigars Mahinovs: The curse of Montesuma - a British Internet manjana

A couple of days before going off to Debconf6 the wireless access to the Internet stopped working for me in the network of my university. I went to the network guys and they told me that I was using too much of it, so they blocked my IP address and now need to check my laptop for anything that could be of a copyright violation. When they found out that the laptop in question only has Linux installed and that the "high traffic" was mostly bunch of podcast downloads and some CD's of Linux distros (including some Dapper beta CDs), they decided to not look at my laptop (they would not know how anyway) and assured me that my laptop would be connected back the next day. I still could access the net by tethering myself to an Ethernet socked, so I was not worried. The next day the wireless was still non-functional and so it was the day after that. I was working on with Ethernet and then left for Debconf. Almost three weeks later I come back to the university only to find out that my wireless is still blocked. I go to computer guys again and they again assure me that it will be enabled the next day ... or at least on Monday. During the weekend I do all I can to get my Debconf6 photos out to somewhere you could see them and do it in proper format and quality. In the end I get them uploaded to http://koyanet.lv/~aigarius/ as zip files (no compression). "aday" is the day of my arrival, "cday*" are the DebCamp days and "day*" are the main conference days with "day0" being the Debian Day. I go home satisfied only to come back next morning and find that now _both_ wireless and Ethernet access is blocked for my laptop. Apparently my interactions with the photos and catching up on some audio and video podcasts have generated around 14 Gb of traffic (both ways summed together) and that looks to be a big NO-NO in this university. After long and heated negotiations between my boss and the IT department the best we could agree on was that my laptop will be reconnected tomorrow, but if I use more then 2 Gb of traffic (both ways) in one month again, the laptop will be removed from the network permanently. Wonderful studying conditions, right? The only solution anyone could offer me is to get a ADSL connection in the place I am renting. That will cost me 12 pounds per month for "line rental" and 25 pounds per month for 8 Mbit down / 512 Kbit down ADSL connection with 40 Gb monthly traffic cap. And that is the best deal that I could find, because if I do exceed that cap for two months in a row they will not charge me per Gb as other will, but will only downgrade priority of my traffic until the end of the month. And the traffic cap in this service only applies to peak time and I can use it all I want during the night. But still the prices are just crazy and there still is a traffic limit. Encouraging the use and discovery of new Internet technologies, right? (.... sarcasm-o-meter overload ....)

Next.

Previous.