Out of the Sandbox – new Google PageRank

23 04 2005

Out of the Sandbox – new Google PageRank: “We are waiting now to see what the effect will be on traffic. However, we’re glad to have this obstacle out of the way. It is a frustrating situation; it is completely not within the control of any well-planned SEO strategy to combat the sandbox. Unfortunately, the data on the sandbox phenomenon is not documented. It may not happen to everyone. And its length is really independent of the blog age, as we’ve found. All of our blogs, started at different times, came out with PageRank with the new index.”

I discovered yesterday that the PageRank for this blog went finally from 0 to 5. Nice, but it doesn’t seem like it’s making a lot of a difference in terms of hits from Google searches. I think we can conclude, once and for all, that the Google Toolbar’s PageRank indicator is almost completely useless as a predictor of search results positioning.





The Firefox ad that never was

23 04 2005

041905firefox_400x490.jpgI can’t understand how this ad can possibly offend someone. Even with Pope Ratzi sitting right here in the center of Italy, it wouldn’t even raise an eyebrow. We’ve had a TV ad for a chewing gum, featuring a guy who couldn’t open a condom’s envelope with his — presumably rotten for lack of hygiene — teeth, running for months on national television. So much for being a traditional catholic country.

NevOn: Firefox blush at browser protection ad: “Anyway, I bet we do see that poster run. If not, at least the image repeated in blog posts like mine. Now that’s a an idea for some viral advertising…”

I’ll pick up the suggestion. Click on the ad to see the larger image.

Still on the subject of controversial ads that never did get shown, here’s a sexy video that was made for Microsoft but, so they say, Bill G. didn’t appreciate.





Re: What the bleep do we know?

21 04 2005

It’s interesting to see how normally smart people can be easily duped:

techno.blog(“Dion”): What the bleep do we know?: “I got to see a film that I have wanted to see for awhile now: What the bleep do we know?!.

This is part documentary, part story, part exploration.

It is my kind of movie. One where you are actually encouraged to THINK while you suck it all in. Imagine that.”

Sorry, Dion, you’re a very competent guy when it comes to Java and server-side programming in general, but you’ve been had. What the bleep do we know is not a documentary, it’s not a story and it’s not an exploration. It’s simply a very long infomercial for a cult:

Skeptico: What the (Bleep) Were They Thinking?: “I can answer that now. They were thinking that if they made a film using the word “quantum” a lot, plus plenty of feel-good drivel they would (a) make a ton of money (not that they are short of the stuff), and (b) gain more recruits to their loony-tunes cult. This is probably one of the few things they got right.”

Dion, I hope you’re a bit more skeptical when evaluating application servers or databases than you’ve been evaluating that film. Cheers.





Pope Ratzi on evolution

20 04 2005

Yesterday we chided Pope Ratzi for being a homophobic reactionary. Now it’s time, thanks to PZ Myers, to see how he stands on matters of science, especially in fields where science seems to be perfectly able to explain things like the evolution of living beings, without needing to resort to a lot of hand-waving about a “creator” or some kind of “intelligent design”:

It is the affair of the natural sciences to explain how the tree of life in particular continues to grow and how new branches shoot out from it. This is not a matter for faith. But we must have the audacity to say that the great projects of the living creation are not the products of chance and error…(They) point to a creating Reason and show us a creating Intelligence, and they do so more luminously and radiantly today than ever before. Thus we can say today with a new certitude and joyousness that the human being is indeed a divine project, which only the creating Intelligence was strong and great and audacious enough to conceive of. Human beings are not a mistake but something willed.

This is the same old pro-design argument that was first brought forward by William Paley more than two centuries ago and that has since been utterly refuted numerous times (see Richard Dawkins, The Blind Watchmaker, for instance). You’d think Ratzi would know better than that.

Indeed, his predecessor JPII sounded a bit more informed than him:

Today, more than a half-century after the appearance of that encyclical, some new findings lead us toward the recognition of evolution as more than an hypothesis. In fact it is remarkable that this theory has had progressively greater influence on the spirit of researchers, following a series of discoveries in different scholarly disciplines. The convergence in the results of these independent studies—which was neither planned nor sought—constitutes in itself a significant argument in favor of the theory.





Character encoding is a PITA

20 04 2005

I don’t know if it’s just us, but we seem to periodically run into the same troubles concerning character sets in Java web apps. This time I got bitten once again by the bug that causes international characters entered into an HTML form field to come out as an unintelligible string of random symbols when displayed on another page.

Some time ago, I came to the conclusion that if we used UTF-8 everywhere, we’d have had less problems. And, indeed, by encoding all files in UTF-8, setting container and form encoding to UTF-8 in web.xml, ensuring all pipelines are serving UTF-8 streams, putting relevant <meta> tags in the HTML output, specifying UTF-8 as the charset in JDBC connection properties and having an UTF-8 encoded database, when a problem comes up it is a safe bet that someone, somewhere forgot one of these precautions and fixing it is usually just a matter of finding where.

Until today, at least. Today I spent a few hours fighting with this kind of bug and painstakingly reviewing everything in order to make sure that UTF-8 was specified everywhere, to no avail. At last, I gave up and set page encoding to ISO-8859-1 and everything is now hunky dory again.

Sometimes I wish all the world stopped using national character sets and everything was encoded as 7-bit ASCII once again. 127 characters should be enough!





Italian catholics don't get the new pope

20 04 2005

ratzinger.jpgI’m watching TV right now and what I’m seeing is an endless string of debates amongst and interviews by and to catholics. It would have been interesting if they had invited an atheist, for a change.

Anyway, all those catholics seem to be very happy about the choice of Joseph Ratzinger as the new pope. I wonder what do they have to be glad of. Most of them are much more “liberal” than even John Paul II was, especially regarding sexual morals. I’ll bet that when their daughters are going out with their boyfriends, they will certainly teach them about the proper usage of condoms and contraceptives.

They do not seem to realize how brutally reactionary the new pope is. One who seems to get it very well is Andrew Sullivan:

His views on the subordinate role of women in the Church and society, the marginalization of homosexuals (he once argued that violence against them was predictable if they kept pushing for rights), the impermissibility of any sexual act that does not involve the depositing of semen in a fertile uterus, and the inadmissability of any open discourse with other faiths reveal him as even more hardline than the previous pope.

One of the few smart observations I heard tonight was expressed by journalist Antonio Socci. Ratzinger chose Benedict XVI as his name in memory of St. Benedict, who kept alive Christianity in the Middle Age, against barbarians. The new barbarians, in Ratzinger’s view, are liberals and relativists, and a new St. Benedict is probably needed to fend them off.

Oh well, why do I care? It’s those catholics who will have to come to terms with the clash between their doctrine and their true beliefs and behavior, not me.





Ratzinger-Z

19 04 2005

After Mazinga-Z, a new robot will save the Earth: Ratzinger-Z!

Ratzinger-Z

Here’s the soundtrack (MP3, 1.92MB).





Nutch Page Ranking

18 04 2005

Nutch logoI’m presently doing some experiments with Nutch, the Open Source search engine that has recently been moved to the Apache Incubator.

I’ve been reading about how Nutch’s Open Source ranking algorithm is supposed to be better being open, but I couldn’t find — either googling around or nutching around ;) — a complete description of how it ranks pages. Does it take into consideration inbound links like Google’s or not? I’d really like to know.





LazyWeb: How to create an Image from a byte array using JAI

18 04 2005

Dear Web,

I have the following problem: I need to adapt some code that reads an image from a file using JAI to read it from an array of bytes having exactly the same content as the file. The code for reading from a file is quite simple:

RenderedOp img = JAI.create("fileload", "filename.jpg");

My problem is that I don’t have the JPEG file on disk, but it’s in memory inside a byte[] and I guess that I should do something along the lines of:

RenderedOp img = JAI.create("WHOKNOWS", data);

Or:

RenderedOp img = JAI.create("WHOKNOWS", new ByteArrayInputStream(data));

I couldn’t find anything googling around, the JAI documentation is a mess and the FAQ is of no help.

Please help! What operation name should I use instead of “WHOKNOWS”, assuming what I’m trying to do is even possible?

Please note that the byte array does not contain a raster, but a JPEG-encoded image.





Security update makes Java unusable on OS X

17 04 2005

If this is for real, I will hold off upgrading to 10.3.9, which I planned to do later today. On the other hand, I’ running the stock JDK and not a developer release, so maybe this doesn’t apply.

Mark Watson: “This morning when applying the latest software update zapped Java, I just went ahead and did an OS X re-install followed by re-applying security patches, etc. About 90 minutes wall clock and about 20 minutes of my time wasted.. eerrrrrr….”

By the way, there is no evident comment or trackback link on Mark’s site, so I hope he’s checking his referrer logs.