Archive

Archive for January, 2005

Solaris Open Source Move Began

Solaris

As announced on Slashdot, Solaris has finally began it’s Open Source transition. The OpenSolaris.org website has opened with the first pieces of open source code released. Discussions about this had been going on for ages and everyone knew it was going to happen. The suprising part comes from the fact that it already has community support. Gentoo is gaining some serious expansion. Words about GentooBSD had been flying around, now GentooSolaris is becoming a reality with “Portaris”.

Sun Microsystems seems to like using the Open prefix and .org suffix for their open source projects. Will OpenJava.org open soon?

The Gentoo weekly newsletter also had other interesting informations, such as a PC vendor selling PowerPC desktops powered by Gentoo and Gentoo being installed on the MiniMac. It was probably the first attempt at installing Linux on Apple’s new machine ever.

Categories: General Tags:

GBrowser is getting closer?

Mozilla Logo

It seems like Firefox project’s leader has been hired by Google a few weeks ago. He is still devoted to the same project. The only difference is that his paycheck now comes from Google. Is Google trying to take over the Mozilla Foundation now that Netscape has left it behind? The news came out a few months ago that google had registered the gbrowser.com domain name. A simple WHOIS will confirm this (some parts have been stripped).

 Registrant:    Google Inc.    (DOM-1278108)    1600 Amphitheatre Parkway Mountain View    CA    94043 US    Domain Name: gbrowser.com    Created on..............: 2004-Apr-26.    Expires on..............: 2006-Apr-26.    Record last updated on..: 2004-Apr-26 16:46:39.    Domain servers in listed order:    NS1.ALLDOMAINS.COM 64.124.14.32    NS2.ALLDOMAINS.COM 209.25.143.102 

If Google can drive most IE users away to a gecko based browser, I would be a happy developper.

Categories: General Tags:

Rats and Long Term Memory

American scientists came up (and demonstrated) with an interesting theory to explain why some events are remembered and some others are not. To keep it simple, when a gene is triggered repeatedly with enough strength, chemical reactions occur and permanent links are created. Depending on the intensity, the duration of the neuron link varies. The article is very detailed, but should still be understandable by most.

The goal of the experiments were to understand the relations between short-term and long-term memory and see how memory passed from short-term to the other. As always, the tests have been made on lab rats brain cells. They actually made it to trigger the gene enough times to observe very strong links being formed. Is this a step towards cyber implants to improve children performence in school?

Categories: General Tags:

Those technologies begining with X

W3C Logo

I recently had to do a lot of work related to XML documents, and still have a lot more in the list. I basically had to touch about every specification available out there, including: XML, XML Schema, XSL-T, XSL-FO and XPath. All these technologies have been released around Y2K and support for them is getting there. For years, XML has been the buzz word to place on a resume, but there was nothing to it. Without all the other companions, XML really isn’t worth using.

The first one I had to play with was XML Schema. At first, I tought it was only a replacement to DTD. It partially is, but it does so much better. Not only it validates the available tags and arguments, it validates the content. Strings, numbers, complex types, it’s all in there. Validation can be applied on tag content or attributes. Generic types can be defined, extended and applies on multiple nodes. The syntax is a little heavy, but since it only has to be written once, it’s not so bad. Once XForms actually makes it to browsers, validation will be a charm.

XLS-T is probably the most versatile specification out there. It was originally part of the XSL specification, which included XPath and XSL-FO too. An early decision was to split them up to allow usage in other context. XSL-T is itself a language, with conditions, loops, functions and variables. It’s used to apply a template on XML. Basically, it allows to convert the raw data into other text formats. Those formats can be HTML or any other kind of XML file. In theories, it can do even more. It’s probably the best way around to work with XML as everything is made for it. Using the document() function, it’s even possible to access other XML documents and integrate the content on the fly! Of course, it implies even more validation as the file itself has to be validated against it’s DTD or Schema.

XPath is one of my favorite specification. It’s the shortest of them all, it’s not an XML format (which makes the writing a lot faster) and it’s extremely powerful. It’s half way between regular expressions and SQL, but for XML documents. It’s very easy to pick up and it feels natural after a few minutes. Every expression fits on a line. It’s mainly used in XSL-T to select nodes and values.

While XSL-T and XPath have been implemented in about every XML library and browser, XSL-FO has been left behind. The specification focus on printable data. Basically, the specification is a set of rule for XML->PDF conversion. It has to be generated by XSL-T to be dynamic. Countless formatting options are in the specification. The voccabulary is simply terrific. There are currently no parser supporting the entire set. It’s still very usable from the moment you can actually understand it. The difficulties come from the fact that the specification is very complex, support is only partial, documentation could be a lot better and error reporting is not very effective. It does have a very bright future ahead. From the moment there will be multiple complete implementations and a set of tools for development, it will be one of the best way to generate print output from data. It’s already possible prepare an output template in a matter of hours or days depending on the complexity, which is much better than writing a Perl script with PDFLib.

The major problem is that the rendering part is very slow. Each block of content has it’s own set of attributes. During development, it’s very quick since everything is generated with XSL-T. When it comes to the final parsing, the resulting file is huge and I don’t see many ways of optimizing the process. Generating a 200 page PDF can easily take over an hour. Forget about online PDF generation, at least for now.

Overall, when the technologies are implemented correctly, they are just great. W3C and it’s members have done a great job. As a side note, forget about Dave Pawson’s book (O’Reilly) on XSL-FO, it’s a piece of trash.

Categories: General Tags:

Nostalgic about old gaming days?

Tux Logo

I made quite a discovery today: a side-scrolling run-and-jump game! Super-Tux is a Super Mario clone with Tux as a hero instead of a plumber. The story is quite simple. Bad guy abducted Tux’s girlfriend and you need to go get her back. Other than the fact that there are no secret passages in huge pipes (there are huge pipes), the gameplay is very similar to the old Nintendo classic. I think the fireballs should have been replaced with snowballs and the bad guy in the end replaced for Bill Gates in the castle of SCO, but it’s still a very nice one. It’s actually quite fun to knock boxes to get pennies and get a bonus life when you reach 100, until you realise the game is saved after each level and loading the game brings you back with 4 lives…

Don’t get stoped by the screenshots on the website. The image compression really ruins them. The actual graphics look a whole lot better. Enjoy the ice-cube turtles and snow monsters. The game contains 26 levels. It should be enough to entertain for a few hours. The game is currently version 0.1.2 and is still under development, and open source.

Ok, this is not a technological advance, nor a killer app that will lead Linux to world domination, but it’s still fun!

Categories: General Tags:

Happy New Year?

Year 2004 ended up being a very bad year for our own planet. With war, George W. Bush being re-elected and the destructive Tsunami right before the end of the year, we can be assured the new year won’t be worst. For once, medias did a great job covering the event and pushing populations worldwide to support the victims of the tsunami. Was it the Christmas spirit? By now, over two billions have been unlocked for various purposes. The question is: how long will it last? Everyone’s favorite collective encyclopedia has a great coverage of the tragedy (took he animation there, complete one also available).

Tsunami Representation Animation

Satelite images of the disaster have been taken (before, after, sometimes during). Seeing those images, it’s easy to understand why there are so many missing and dead people. According to BBC, America is not safe from such disasters. Note that this source has been refuted multiple times afterwards, even by themselves.

On a non-human point of view, the earthquake that caused the tsunami was so strong that it actually changed Earth’s rotation axis. The difference should not make any difference since the planet usually has greater variations over a year (whew!). Still, we lost around 3 microseconds in the process.

Categories: Uncategorized Tags: