The picture below is of Amsterdam by night. It was taken by Astro_Soichi on board the ISS, from an altitude of 400 km. Excellent.
Amsterdam from space!
March 6th, 2010Groen Werkt!
March 3rd, 2010Netbeans ignores class (+ solution)
March 3rd, 2010The weirdest thing happened while I was programming with my favorite IDE, Netbeans 6.8, today. When I work on big applications, I usually split them in two or three projects (usually model, view, controller). Then I import the projects in the main application project. At some point Netbeans suddenly told me it couldn’t find a class in an imported project to which I referred, even though nothing was wrong with it, and everything compiled perfectly using Ant. Netbeans however insisted the class wasn’t there and produced error messages and enough red warning lines to make it unworkable.
I googled around a bit, but found nothing. So before trying to find the actual problem, I made a copy of the class that Netbeans couldn’t find, deleted the old one, and renamed the copy to the original. And then the problem was gone.
What gives?
Let’s give away some more civil rights
December 30th, 2009On Christmas Day, a young misguided Nigerian named Umar Farouk Abdulmutallab tried to cause an explosion on flight NW253 from Amsterdam to Detroit. He brought with him 80 grams of pentaerythritol tetranitrate, a useful amount for his purposes, but insufficient knowledge on how to use it. There was only one way he could have caused serious damage to the plane, which involved putting it in a box and banging it against the wall. The way he did it, there was never any danger (Google translation from Dutch to English).
Since the incident, travellers on flights to the U.S. and on U.S. internal flights have had to endure heightened security measures and the minister of justice in the Netherlands is using this incident as a means to force the E.U.’s plans of using full body scanners at air ports. Body scanners are devices that pierce through one’s clothing to see what he or she is carrying, greatly compromising the privacy of countless people, who are, let’s not forget still innocent. With these devices, the pentaerythritol tetranitrate on Abdulmutallab would have been found.
Abdulmutallab’s father had been warning U.S. authorities that his son was growing more radical for some time, but the man was ignored. Not because of policy, but because someone didn’t pay attention. Had these warnings been taken seriously, Abdulmutallab’s name would have been placed on a no-fly list, and he would never have gotten on board flight NW253, or any other flight toward the U.S. No body scan needed.
We give up irresponsible amounts or our civil rights into the hands of those we put in charge of our safety, because they deem it necessary, and when they screw up, the solution is to give up more privacy? Why not just fire the ones who were sleeping and tell the rest to actually use the power we gave them?
NW253
Putting faith in its place
December 17th, 20092012: Predictable, mostly boring and just plain stupid
December 14th, 2009I have a wrist watch, which runs pretty accurately, but for five times a year I have to set back the date one day, because the date dial has 31 positions, and it’s not a very smart watch. That however, doesn’t make me think that each month in the year has in fact 31 days, that there is a conspiracy going on involving the American government, and that anyone who doubts me is an ignorant fool.
I find it odd how Roland Emmerich can produce exactly the same movie over and over again, but still manages to make each one worse than the last one.
I saw 2012 yesterday evening, and I’m starting to see a pattern. A pattern of a scientist who stumbles on something impossible, authorities keeping things under wraps, a heroic American president, a couple finding back their lost love, a moralistic speech toward the end, and an anti-hero or weirdo for comic relieve. First all the characters are introduced, while the danger starts to loom (most of them don’t care/believe/notice yet). Then the danger turns out much worse than expected, cue massive CGI, in which the characters survive or die, and in the end everybody is cheering, despite general destruction.
But in 2012 we are presented with much more off-the-shelf plot elements. We had astronomical alignments in Tomb Raider, The Biggest Solar Flare Ever in Solar Crisis and trouble with the Earth’s core in The Core. Emmerich finds a combination of all three in some bizarre Maya calendar inspired doomsday theory, and produces a movie that, after the aforementioned introductions, presents us with hugely awesome CGI in which entire countries are flipped upside-down, an aircraft-carrier crashes onto the white house and Yellow Stone Park simply explodes. This part of the movie is fun, despite the repetitive nature of the frightening bits.
But as soon as our heroes arrive in the Chinese Himalayas (their plane ran out of fuel, but the mountain was brought to them) the fun is over. From that point onwards the viewer has to sit through tedious arguments about who gets to be saved in the bible-like arks and who doesn’t (apparently the giraffes do). There are a few actions sequences left, but all of them are completely predictable and therefore totally boring.
I could go on and say that the neatest recent planetary alignment occurred already in 1998, that doctor Phlox should know better than to confuse a magnetic pole with a geographic one, or that to repopulate a species you need considerably more than two specimen, but I guess that if this was a good movie, I probably wouldn’t have complained about it being utter crap, science-wise. But as it is, this is a predictable, mostly boring and just plain stupid movie.
Samurai Cow
December 11th, 2009It seems like a cow has been born with some shape resembling a cross on its forehead:
You’ll note that to its Christian owners, the cross has obvious religious meaning, which makes them think that they have received a sign from their deity. I don’t think a divine being would be so bad at drawing, but the cross is obviously there.
At the end of the clip, the commentary says that the cow won’t be eaten, which made me think of a particular episode from the documentary series Cosmos, in which is explained how a certain type of crab from Japan became known as the Samurai Crab:
Now if this cow is permitted to reproduce, it seems to me that any of its offspring which is also blessed by a cross on their forehead, won’t be eaten either, maybe leading to results comparable to the Samurai Crabs.
Come to think of it, maybe the farmers were already favouring ancestors of this animal with shapes on their foreheads resembling crosses, thereby helping the selection process create this shape. After a few generations, the cross probably had matured enough to call the press. It would be interesting to see the foreheads of any of the of the other cows on that farm and neighbouring farms. If none of them has anything white on their forehead, it will be much easier to claim that something must be going on, than if many of the cows from that area display similar shapes.
In any case, this cow is demonstrating natural selection based on adaptability right in front of the eyes of its Christian owners. Excellent.
Review: Isaac Asimov, Forward the Foundation
November 26th, 2009Forward the Foundation is the last book Asimov wrote for his Robot/Foundation metaseries. It is the second book about Seldon’s efforts to develop his psychohistory science, a way of predicting the future using statistics. The events in the book take place after Prelude to Foundation and before the first book of the original Foundation trilogy. Like Prelude to Foundation, the book is mainly about the difficulties Seldon has in his research. He has enemies and opponents who make life difficult for him, and friends who can do little to help him. All this is set against a backdrop of a decaying empire.
It is an odd book, mainly because its just not a very good story. In fact, it is several stories in a row, each with the psychohistory development as their background thread, Seldon and a few others as main characters, and a continuing trend towards making Seldon’s goals seem more hopeless with each passing page. Seldon is able to overcome every hurdle through coincidences, which is also what brings the book to a happy end in which he can set up things so that humanity is spared a thirty thousand year long Middle Ages.
Apart from the fact that this unlikely rescue seems to contradict the very idea of psychohistory, it also makes for an unsatisfying book. Except for Prelude, Asimov’s characters usually solve their problems using logic and ingenuity, which is what makes them so incredibly fun to read. Also very unsatisfying is the sudden disappearance of a few main characters without any kind of explanation or closure. If Asimov wanted the reader to feel Seldon’s loss, that is not the way to do it.
Review: Asimov, Prelude to Foundation (1988)
November 14th, 2009The story centres around Hari Seldon, who proposes a statistical way to predict the future of humanity, during a talk at a conference on Trantor, the Galactic Empire’s capital planet. The Empire’s aide Eto Demerzel, as well as the Emperor’s main challenger, the Mayor of Wye, both want to make use of this new tool to increase their power. Seldon convinces both that his proposal has a long way to go before becoming useful, but both insist that that isn’t necessary to make the common man believe that Seldon is some sort of oracle. Seldon meets a man, Chetter Hummin, who tells him that, rather than allowing him to fall in their opponent’s hands, Demerzel and Wye would rather kill him. Seldon, protected by historian Dors Venabili (female), in an attempt to escape them, starts travelling around Trantor, while trying to find out if his science can be made practical.
An an Asimov-story, this book contains logical discussions and unexpected plot-twists. However, they are too late, too little, and too predictable. The biggest problem with this book however is that it lacks direction. While looking for ways to develop his science, Seldon goes through a couple of episodes that make little sense. Venabili’s tenacity in protecting Seldon from any and all danger seems without reason either. She seems to have abandoned a successful career and a rich social life with far too little justification. And even though Seldon and she share many dangerous and intimate situations, there is no relational development between them at all.
As always with Asimov, all the answers come at the very end, but he gives us nothing during the rest of the book. In his other novels, false explanations that are nonetheless just as probable, are offered all the time, and it is this constant turning up-side-down of things that makes these stories compelling. It is a pity this book has almost none of that. With the badly worked-out characters of Seldon and Venabili, and an R. Daneel Olivaw who is a mere shadow of his former self, what remains is a book that leaves the reader with an unsatisfied sense of ‘who cares’, and which serves no purpose for itself. Instead this novel seems to be written only to fill in some story gaps and make Seldon aware of the events in the Robot novels.
Kubuntu Karmic installation
November 7th, 2009I upgraded my desktop box from Ubuntu Jaunty to Kubuntu Karmic today as well, since I find the latter’s advantages over the former outweighing its disadvantages. Among the advantages are the standard availability of Firefox 3.5, the out of the box working of sound (no hassle with sound systems this time), and faster booting up. Also, KDE is just way cooler than Gnome.
I still have a few minor complaints about the installation though. While it looks nice, it’s bloody slow, which is especially annoying when entering text or configuring partitions. Secondly, the keyboard layout configuration won’t let you try out your selection any more, but instead shows a diagrammatic picture of the chosen layout, which was in my case not even correct.
Also, at the summary screen, the last chance to bail out, I got no indication that the installation program was aware of my Windows XP installation. Luckily, it was, and an entry to boot into it appeared in the Grub menu after I rebooted.
The newest nvidia driver doesn’t seem to have any problems on this computer, but when configuring my dual screen setup using nvidia-settings, that particular tool appeared unable to parse the config file /etc/X11/xorg.conf. After taking a look at it, it looked like some sort of rudimentary version and after some Googling around, it seems like configuration of the X server is done automagically using dbus now. Which screws up. I did find a work-around that works nicely though. The trick is creating a fresh xorg.conf and putting it in the default location. Apparently, Xorg doesn’t ignore it (yet). Here’s how:
# sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.karmic # sudo nvidia-xconfig # kdesudo nvidia-settings
After this, I had a fresh and nicely working Kubuntu desktop. My usual post-installation command did the rest:
# sudo apt-get install sun-java6-jdk vim kubuntu-restricted-extras build-essential subversion mysql-server openssh-server mplayer-nogui mencoder gqview gimp imagemagick

Hi! You've reached my blog. I use this to express thoughts on various topics that somehow interest me, like technology, science, the environment, democracy and the like.