Die Beste Aller Zeiten

Going direct to heaven, going direct the other way

Page 11 of 14

Move Javascript to the bottom of the page

I have blogged about this before, but right now I’m happy to repeat myself: The Yahoo Developer Network has excellent advice on how to optimize load time for your web pages, and the best thing is that so much of it can be easily implemented.

Yahoos Rules for High Performance Web Sites start from the somewhat amazing observation that it’s not so much the response time of the server the time it takes the server to generate the page that slows down a web site but the things that happen after the HTML has been sent to the client.

Most relevant for my case was that a) the browser makes a new http request for each ressource (style sheet, script, image etc) in the page (and the more request the slower the page) and that with external javascript files progressive rendering is blocked for all content below the script, meaning the rest of the page will not render before the script files are downloaded. An easy workaround is to call the scripts near the page bottom (though there might be scripts where this is not possible).

I’m working on a site that uses prototype and various parts of the scriptaculous effects library, and I ended with six external javascript files. When I moved the script tags from the head section to the bottom of the page the load improved from about six seconds to two seconds (how do I know? I used Yahoos yslow to measure site performance).

Now you might say that two seconds over a DSL connection is still pretty slow. But so far I have tripled load speed and it didn’t cost me more effort than a single cut and paste action – I call that amazing.

I think most of Yahoos rules make sense only if you work on large sites with tens of thousands millions of visitors – I certainly will not set up a Content Delivery Network for a site with a few hundred visitors per day. Even so I think this proves that looking at the big boys can be a valuable excercise for us one man shops.

I any case I’ve ordered Steve Souder’s (Yahoo! performance chief) book High Performance Web Sites – I don’t know if there’s anything in it that I couldn’t find as well on the YUI-Blog, but to buy the book seems a nice way to appreciate his work.

    Now, deliver

    I love, love, love the International Space Station (hey, what else could I say as a science fiction fan?) but so far it has done very little except to prove – since it has not floated away into space – that gravity actually works.

    I knew that.

    But yesterday, with some 16 years delay, the european space laboratory Columbus was connected to the ISS, enhancing it’s capability for science experiments – which is where I get a bit of a problem, since for all my enthusiasm I know only in very broad terms what actual experiments Columbus is supposed to do or what’s going to happen with the results, and the coverage on the websites of ESA and DLR is hardly exhaustive. Columbus was quite expensive (well, unless you compare it with what in a country like Germany is spent on cigarettes or alcohol or simply wasted) and it feels a bit odd to be left out of the loop when, as a matter of fact, my taxes helped to pay for the loop. Now that the thing is finally in place I expect detailed reports on what experiments are done, why they are worth the effort and if and how the results are released to the public.

    Having part in a space station is all very nice but it shouldn’t be an end in itself. We’re waiting for the goods so now, deliver.

      STS-122

      Space shuttle Atlantis (STS 122) is scheduled to launch Thursday, Feb 7, after the mission had been repeatedly postponed due to technical problems. Atlantis will carry the Columbus laboratory to the International Space Station which will greatly (finally!) enhance the stations capability to do some actual science.

      I hope everything works out this time. I’m a bit of a space enthusiast, so it would be such a perfect birthday present for me.

        I am footnote

        Yesterday I went to the movies to see “I am Legend”. I love Mathesons novel, so I knew I would be disappointed. But I had at least hoped for some kind of mindless action flick, a dumbed-down version of the original story with cool special effects. The movie was mindless, alright, but in a annoying rather than a fun way.

        It was probably not the fault of the leading man. I had seen Will Smith first in Men in Black and had cast him down as a decent Eddy-Murphy stand-in, but had really come to like him after his performance in Ali. Smith makes an excellent Robert Neville; here he is very much a character actor, and at the end of the movie he looks exhausted and even old, an Robinson Crusoe without hope for rescue on his desert island of Manhattan. So, no objections here.

        Nor was it the scenery, the desert Manhattan through which the Protagonist stumbles. Of course the movie is in large parts a Quiet Earth-ripoff, with much better production values and a lot less atmosphere. But plagiarism is a form of flattery, plus IaL had some potentially cool monsters thrown in so that was okay also.

        (massive spoilers below the fold)

        Read More

          Does anybody really use the “merge”-feature?

          Joomla 1.5 has finally arrived and so I guess I should put a bit more effort into the 1.5 module – so far most bug reports and feature request have been for the “contentitem module”, but I expect that will change soon.

          While I’m willing to honour every feature request I possibly can I hate unnecssary efforts, so I do not want to include features nobody uses. The content item module has a feature called “merge items” that allows to display multiple content items as one, so you can print or pdf (can I use “pdf” as a verb?) multiple items in one go. I built this for the guy on whose request I originally wrote the module, but I’m not sure how many people actually use this.

          The “place here”-module so far misses the merge-option. I would be interested in your opinion – do you think this is an important feature, or just a nice-to-have (and other features should be other included first), or is this completely useless?

            It might help to read some Books besides the Bible

            “Intelligent Design” is a fundamentalist religious movement that, despite it’s claims that physics, chemistry, biology, history, archeology etc are all wrong and the world has been created relativly recently by some superbeing (okay, let’s not play games here, they mean the christian god) tries to disguise itself as a science. At the moment most supporters of that idea live in the USA – I sometimes wonder if they have some kind of contest over there like, you know, “who manages to do the most damage to the countries reputation” (at the moment they have a tie between warmongers and religious nutjobs).

            Read More

              The Voice of Ursula K. LeGuin

              Ursula LeGuin is one of my favourite writers, despite the fact that I hardly ever read poetry and fantasy and thus confine myself to the science fiction portions of her work. Even there the quality is a bit uneven (for example “Eye of the Heron” reads like a second rate LeGuin-ripoff despite being an original work). On the other hand when she scores, she scores big – even after nearly forty years “The Left Hand of Darkness” and “The Dispossessed” are landmarks of the genre and as an incessant writer she has published a number of immensly readable novels and short storys ever since (my favourite piece is “The Shobies’ Story” from the collection “A Fisherman of the Inland Sea”).

              78 year old LeGuin also maintains an expansive presence on the World Wide Web , a small part of which is dedicated to the spoken word. I will never have opportunity to see her at a live event – Ursula LeGuin doesn’t travel anymore and even if she did it would be unlikely that she would come to Germany – so I really appreciate that she published a piece as “read by the Autor” – alas it’s not SciFi but fantasy, but I still think it’s great to hear the voice of a favorite author (and she has a good reading voice, too).

              So here is the link: Ursula K. LeGuin reads an excerpt from A Wizard of Earthsea, Chapter 10: “The Open Sea” [5Mb MP3]

                Denying the Holocaust

                [1] When she started to study the topic, Deborah Lipstadt writes in the Preface to Denying the Holocaust, few people thought the effort was warranted; the idea that somebody would take holocaust deniers seriously obviously seemed strange to them.

                To me that was, in a way, the most surprising thing in the whole book. Holocaust denial and antisemitism have been from the very start a part of post-war german culture. Writer Erich Kästner observed how germans during the reeducation period would insist that the pictures of emaciated corpses taken in liberated concentration camps were merely “allied propaganda”. In his book Notabene 45 Kästner quoted an american officer who said “Of course we will rebuild the country with the help of former nazis collaborators.” [2]. The officer added something to the effect of “who else is there”.

                Who else, indeed. Heinrich Lübke, head of the west german state from ’59 to ’69 had worked during the “Third Reich” for the company that built the facilities at Peenemünde (and used KZ inmates as workforce) [3]. At the end of the sixties, during the time of the first “Grand Coalition” between social democrats and conservaties the FRG was governed by the odd couple of Willy Brandt, a Nazi opponent and Kurt Georg Kiesinger, who had been during the Nazi era a propagandist in the foreign office under Ribbentrop [4]. Kiesinger eventually resigned after the German Democratic Republic published its “Black Book” with records of some 5000 high ranking politicans, judges, industry leaders and other public figures who had started their respective careers under Adolf Hitler. The Blackbook was quickly denounced as communist propaganda – which it was, only it was still correct, and it exposed a large number of politicans, jurists, industrial leaders etc as Nazi supporters and former members of the NSDAP. Later there was the Bitburg Affair, Historians debate, these days we have Neo-Nazist partys in some state parliaments and in between there has been hardly a year in which nobody either denied or justified the holocaust in public. Since not even the democratic insitutions could extricate themselves from their Nazi roots it would have never occured to me that holocaust deniers could be looked at merely as “kooks” who could be easily ignored.

                However “Denying the holocaust” is a book about the USA and for an american audience. Deborah Lipstadt traces holocaust denial back to it’s origins from World War I revisionism- originally a school of thought by serious historians who would have preferred a isolationist position for the US in the war, but was quickly annexed by people who sought to exonerate Germany (which in the treaty of Versailles was considered to be solely culpable for the war) and maintained that the allied forces had committed far greater war crimes than the germans. When in the late 1930s and the 1940s the US again faced a choice if they should join a war in distant europe this radical brand of revisionists added antisemitism to their repertoire, either based on homegrown products like Henry Fords antijewish brochures or on stuff that had been fed to them by the Nazi propaganda machine; it portraited jews as members of a vast international conspiracy that employed both capitalism and communism to subjugate the world under jewish rule and more specifically to drive to USA to war against Germany.

                From these beginnings – or so it would seem from the way Lipstadt presents her facts – holocaust denial after World War 2 was inevitable. When the self styled revisionists tried to exonerate Germany from the – horribile dictu – comparatively small infraction of starting WW I they could hardly sit by as it was brought to trial for the much greater crime of genocide against the jewish population of europe. Since they were already convinced that Germany was innocent victim of jewish machinations they now contended that no jews had been killed or at least the number of deaths had been greatly exaggerated and that those killed had been legaly executed for espionage, sabotage or treason.

                Ideologically the worldview of holocaust deniers was by now pretty much complete. What followed was a shift in emphasis, as antisemitism became the goal and exonoration of germany the means, and a change in tactics. Holocaust Denial tried to move away from the fringe of self-publishing rabble rousers into the mainstream of academics and mass media. They gave themselves fancy names – but the name alone does not make a reputable “Institute” (sc. “for Historic Review”). Their publications emulated serious publications – but this was all appearances, no real substance. They claim to use historicals sources, but their quotes are either taken out of context, or misquoted, or they are complete fabrications. Their biggest success however was to establish holocaust denial as the legitimate “other side” in public discourse. Allowing holocaust deniers to disseminate their claims through newspapers, radio shows and tv programmes suddenly became a matter of “free speech”, as if the right for free speech had ever included a right to be published in all relevant media, even those with specific anti-discrimation policies (which inexplicably never seem to cover antisemitism). More important than a deep commitment to civils rights was perhaps that right wing antisemitism met with antizionism from the left. To claim that the holocaust had been somehow invented by the jews to blackmail the germans serves both sides, so ideology could not work as a safeguard (it used to be the case that right wingers and lefties disagreed with each other as a matter of principle, so you had usually one faction that was correct).

                The book includes too much detail to be easily summarized in a review – which is a good thing of course, it means Deborah Lipstadt did a good and thorough job. However I have one “but”, but I think that’s a big one: Holocaust denial in Germany, and/or by Germans would have deserved much broader coverage. There’s a small chapter about the “Historikerstreit” (historians debate) but there’s no mention of, for example, Hennecke Kardel (who contented that Hitler and all leading Nazis were jews who arranged the Holocaust to discredit National Socialism) [5], Ingrid Weckert (who perpetuated in Feuerzeichen the myth of a “jewish declaration of war” against germany), the very versatile Germar Rudolf [6], who authored one of the countless bogus reports on the unfeasibility of murder in gas chambers [7] and others (it should be not suprising that the german holocaust denial scene is large and diverse, since it were germans who perpetrated the holocaust in the first place). Given the neo-nazis curious penchant for internationalism I would be surprised if the german denial scene hasn’t had some influence on it’s american counterpart.

                Even so – I’m not too god a lavish praise, so I just say it’s a must-read if your at all interested in the topic. Plus it’s much more useful than History on trial, since it is a comprehensive history of a political “idea” rather than a report of a tiresome court case brought forth by a disgruntled holocaust denier.

                1. After I wrote about History on trial a commenter asked for a review of Denying the Holocaus, since the former is more or less a consequence of the latter. So, here’s the review. I planned to amend this with a few of my own musings about holocaust denial in germany, but I guess I’ll save this for a later blog post. So here we go.
                2. Kästner, Erich, Notabene 45 p.299 in: Kästner für Erwachsene, Zürich 1983. “Collaborator” might be a bit sharper than the german original “[Leute] die mit Hitler zusammengearbeitet haben”
                3. http://www.zeit.de/2007/30/Heinrich-Luebke?page=all
                4. Enzyklopädie des Holocaust, Benz/Graml/Weiß (ed.), München 1997, p. 852
                5. Kardel, Hennecke “Adolf Hitler, Begründer Israels”, Geneva 1974
                6. Rudolf habitually assumes different personalities with different “qualifications”, sometimes even within the same text where he quotes his own pen names as authorities to bolster his own argument
                7. while the “Rudolf-Report” was written in 1991 as “expert” testimony for Otto Ernst Remer, a holocaust denier (see http://h-ref.de/personen/rudolf-germar/rudolf-report.php), it seems that it wasn’t published as a book before 1994, so maybe the document wasn’t well known when Listadt published her book in 1993

                The Darth Vader Problem

                George Lukas’ movie The Return of the Jedi has one of the strangest redemption scenes ever to be shown in cinema: Inmidst of a battle in which thousands die, a man who has supposedly killed billions of sentinent beings and subjugated the survivors to tyranny gets his absolutions after he helps his offspring to defeat the vicious emporer (completly pointless btw. because the subsequent events would have killed the emporer in any case). Yes, I’m perfectly aware that Darth Vader is a fictional character, but emotional images like a scene of forgivness to the father by the son transports a message to to audience, an in this case the message is any kind of crime is ok as long as you say you’re really, really sorry.

                But is it, really? Can any crime be forgiven? And who is to grant forgiveness, is it the victims? And in that case is it okay when one victim forgives or do we need to round up a majority of them or all of them to arrange an orgy of absolution?

                Exodus International is a christian organisation aims to “cure” gay/lesbian christians from homosexuality. The name is probably meant to be some kind of allegory, like, Exodus will lead you from the barren desert of homosexualty to the promised land of post-maritial heterosexual sex for the purpose of procreation. The choice of name, while not inappropriate, is a bit strange given that the man who led the tribes through the desert never was allowed to enter the promised land himself.

                Exodus International cannot possibly “cure” homosexuality because homosexualty is not a disease. Exodus Internationals attempt to “cure” homosexuality is really an exercise in destroying peoples personalities by applying social pressure (we wash your brain so you can come clean, that kind of thing). And while their long term conversion rate from queer to straight is zero, Exodus leaves in it’s wake a visible trail of wrecked lives, and a couple of deaths.

                Beyond Ex-Gay an online community for the survivors of ex-gay expericences – has a reprinted letter and video statements from some former Exodus leaders who stood down from their conviction that homosexuality needs cure and apologized for the damage they had done. Especially the video messages are emotionally powerful – these are a commited, no-nonsense type of people who underwent a significant change for the better. So, their redemption is at hand, or is it.

                One thing that puzzles me is that these people still cling to their christian faith. I usually do not like the more notorious atheists because, willfully confusing correlation and causation, they attribute every possible crime to faith if there is a chance that the perpetrator has been exposed to religion at some time of his life (as most people have been). But in this case there is no weasling out or dodging the issue: Almost every religion has instituted some insane policy toward sexuality, and when it comes to gay sex the idea to kill by cure is, horribile dictu, one of the more benevolent approaches. The only way to be a gay christ is to start, for all intents and purposes, your own christian sect that allows for “homosexual tendencys”. What is this religion thing, some kind of buffet where you can pick and choose (“I want some of that heavenly father and a pinch of bodily resurrection, but please hold the hellfire for sodomites”) ? And by the way what’s wrong with saying “gay and lesbian” – do I say I have a “heterosexual tendency”?

                But the more important question is the question of forgiveness. To say “I’m sorry” might work for tyrannical galactic overlords, but in real life we expect people to suffer punishment for their crimes before they are allowed to re-enter society (feeling very bad does not actually count as punishment). And most of them seem to have renounced their faith in Exodus when they fell in love with members of the same sex, so things get even worse when you muster a little cynicism and look at their motives: It seems they had little qualms about wrecking other peoples lives up to the point where they wanted to get laid themselves.

                I probably shouldn’t get upset about all of this. Some of the victims of anti-gay treatment have in their various blogs signalled forgivness to the penitents. I myself am neither gay nor religious. All this happened in a foreign country, and while most germans would claim to be religious very few would bother to actually do anything about it. But then I think of a friend, how she shook her fist in helpless anger at the TV screen when, just after a particularly nasty child rape scandal within the church, a catholic official declared that homosexuality is a sin. The church that could not even enforce enough self-restraint among it’s employees to spare children from sexual assault now denounced her sexuality as a lesbian? This whole idea that homosexuality needs a cure is a direct attack on people I love.

                To stay within in the Star Wars-metaphor from the first paragraph I now should write something on the nature of forgiveness and perhaps conclude with a quip about the death-star of Bethlehem and how it will eventually explode – but then, what would be the point (since it won’t, anyway). So believe whatever you like or even be anti-gay how much you like (this is, after all, free speech territory), but for what little it’s worth, if you go after my friends it’ll take a lot more than to say “I’m sorry” to make me stop being angry at you.

                  Small Change in the Module for Joomla 1.0.x

                  I didn’t really intend to make any more changes to the content item module for Joomla 1.0.x because, frankly, the code is less than elegant and the best way to improve it would be to rewrite it from scratch (on the other hand it works, so why bother). Still I implemented a suggestion from the comments, in part because it allowed me to get rid of a large swath of code in the module.

                  The change concerns the way content items are ordered when they are displayed in the module. There are now three select boxes with ordering criteria (order by section, category, create date etc) that will be applied one after another, although I expect that not all combinations will make sense.

                  This is one of the few times that a new version is not fully compatible with previous versions; you can still overwrite the files with the new versions, but you have to re-enter the ordering information in the module parameters before thing will work properly. Both the new and old versions are available at the download page (see left sidebar).

                    Page 11 of 14

                    Powered by WordPress & Theme by Anders Norén