raw output

Flights to the Debconf5 booked

By jacobo, on 2005-2-27 at 16:44, under Mono & .NET, Debian

Amaya, I have recently bought the plane tickets for the Debconf 5, too (actually, my brother did). Vigo - Paris - Helsinki and return, 320 euros via Air France. As the stops in the Charles de Gaulle airport will be very short (under 1 hour), I will have to do some stretching in the planes before exiting them, as I’ll have to run! ;)

BTW, when I finish reading the book on ADO.NET (database access) I will start with the web application that Matt Kraai suggested… so don’t despair! ;-) Some skeleton design is already made, I will implement it as it is pretty generic (CRUD operations mainly) and then you’ll have the opportunity to ask for features ;-)

Mono savant

By jacobo, on 2005-2-18 at 00:42, under Translation, Mono & .NET, Debian

I think I’m going to cry. I not only understand the words of what this blog entry says, I can even understand the code! My reading .NET books is paying off!

By the way, has anyone got an idea for a simple ASP.NET web application I could create? The idea would be:

  1. to learn Mono
  2. to make a simple documented example of an ASP.NET application for everyone to see and comment on and learn, too :-)

I was thinking of an Internet pizza delivery service (a simple thing which would only collect orders, without the full back-end tracking pizzas, orders, drivers, etc), but if someone has thought of anything else…

On the Debian front, I’m still translating. I’m currently with d-i level 2 (applications which are not part of debian-installer itself but everyone interacts with), and when I have the iso-codes finished (country, region and language names), I will pass to level 3 :-)

O instalador de Debian xa fala galego

By jacobo, on 2005-2-14 at 11:28, under Translation, Debian

I’ve finished updating the Galician translation of debian-installer —for now :-) Now it’s time to see how many packages in d-i get rebuilt before the next d-i release, including my updated translations.

I have revised all strings in the package, converting them to a formal style (the computer is not your buddy) and turning the sentence structures into another ones which are more natural in Galician (we don’t use passive forms as much as in English, and we don’t go saying “please” all the time…). They are not fully compliant with the new ortographic rules yet, but it doesn’t matter very much as the old ones are still accepted (the ortographic reform is backwards-compatible).

And, of course, I should now start translating base packages, and think about studying the new ortography…

CSS pop-up menus

By jacobo, on 2005-2-13 at 19:16, under Web dev

In Mozilla, Opera and Konqueror (and I suspect that in Safari too), this site uses pure CSS pop-up menus for its navigation bar. And they work very well, too (except that I had to use position: relative instead of position: absolute for the menus as Opera positioned them in strange places. A pity, I liked it better with absolute…).

These menus are implemented in the following way: first, the menu is defined in the HTML part using only the tags <ul> and <li:

<ul id="menu">
  <li>Links
    <ul>
      <li>Option 1</li>
      <li>Option 2</li>
      <li>Option 3</li>
    </ul>
  </li>
  <li>Whatever
    <ul>
      <li>Option 1</li>
      <li>Option 2</li>
    </ul>
  </li>
</ul>

Then, some CSS trickery is performed to have the <ul> blocks below a <li> tag invisible, with display: none; when the <li> has the mouse pointer on top, the <ul> changes to display: block:

#menu li ul {
  display: none;
  // other declarations to have nice squares instead of bulleted lists
}

#menu li:hover > ul { display: block }

And that’s it. I read about it in this page by Eric Meyer. And it works, indeed. And the contents of the menus are visible to people with text-mode browsers, too!

The only thing is, the inventors of the :hover CSS pseudoclass, Microsoft, only support a:hover in their terribly outdated browser; other things such as li:hover or img:hover are not supported. That means that the really nice trick above does not work.

And that’s where I enter, with some ideas from Quirks Mode (where I learned almost everything I know about the W3C DOM, and I have very much to learn yet) and this page by Peter Nederlof, where the author describes a method to “fix” IE to “accept” :hover for everything. Basically, the trick involves rewriting stylesheets on the fly to change the :hover pseudoclass into a real class, and adding some Javascript to have all elements change their class when the mouse pointer hovers on them.

I didn’t need such a generic solution, so I just picked the ideas and made my own scriptset. First, a custom stylesheet to be loaded by Internet Explorer only (done via IE’s conditional comments) and a script for changing classes of elements that are under the pointer. The stylesheet is similar to the original one, but instead of using the :hover pseudoclass, it uses the .fhover class; thanks to the script, when the mouse pointer moves on top of a <li> element inside the menu, its class is changed to fhover, and then back to “none” when the mouse pointer moves off the element. The effect is the desired one.

I also take advantage of the fact that IE does not support the CSS “>” selector, to make some styles invisible to IE.

Now it works, more or less. Submenus are not shown correctly, but I’ll eventually get around to fixing them: at least, they work now!

If someone has any ideas to fix them and make them look like they do in Mozilla, Opera or Konqueror, I’d be very happy if you posted them as comments or e-mailed me (my address is not hard to find via Google. Look at the page’s footer for my name).

Getting started with Mono, soon

By jacobo, on 2005-2-11 at 12:50, under Mono & .NET

A couple of years ago, Miguel de Icaza came to Spain, to the Congreso Hispalinux, to show Mono off; and show off he did!

A couple of months ago, Mono was brought to my attention again, and as time passed, I grew more and more interested in it, so I bought “Mono, a developer’s notebook” and found that Mono would make a very pleasant platform to write applications on. Of course, having Windows and MacOS X versions of the Mono framework makes it more interesting for developers…

So I did what just one year ago I would have considered unthinkable: I bought three books with “.NET” in their titles and “Microsoft” in the covers.

And I already have a request for a program — a remake of a program for managing insurance agencies I had written back in 1996 using Clipper, which I’ll rearchitect in the next weeks and will code in Mono. It will be desktop-oriented, multiplatform and database-driven. Very year 1998-ish :-)

Also, thanks to this I will add some more marketable skills to my curriculum vitae, which is always doubleplusgood.

Currently translating d-i

By jacobo, on 2005-2-10 at 23:41, under Translation, Debian

So I vowed to never translate anything else into Galician. You know: it’s hard work, and nobody seems to appreciate it, and there was a recent change in the ortography which I haven’t digested well yet, so I basically stopped translating.

That is, until Christian Perrier came saying that the Galician translation of d-i was incomplete. And as I had made the translation of woody’s boot-floppies and I had recently been told that the new Galician translation was not very good, I decided to fix that.

(Indeed, the translation was not very good. I think that every no-no we had enumerated when we started translating and founded the “Proxecto Trasno” was there).

I intend to go on translating, but only for Debian. Don’t count on my l33t translating 5ki11z for anything else, thankyouverymuch.

Fist porst!

By jacobo, on 2005-2-10 at 23:27, under General

Ok, so now I’m starting a weblog in English.

If the design looks a little bit like Russell’s, this is because I don’t do web design (that’s why the colors are hideous, too). Turn a design into HTML and CSS I can, but….

My idea is that it will contain some technical information, things that happen to me, etc. Just like I had intended my diary in advogato to be, five years ago.