Recent blog entries for esteve

Snakes everywhere

I've been hacking a bunch of Python code recently: SCons, Buildbot, Twisted, SWIG bindings, etc. It has been a long time since I touched a line of Python (I worked with Zope and did some wxPython), but I still remember how to code Python.

There are still some issues I cannot understand:

  • global functions

    why len(list) instead of list.length?

  • regular expressions

    why are not regular expressions built into the language?

  • object orientation looks like a hack

    def foo(self, bar), str(4), etc. and so on

    Nevertheless, I prefer writing Python rather than Java, my wrists don't hurt so much :)

  • 23 Feb 2007 (updated 24 May 2008 at 10:52 UTC) »
    Brand new life

    New year, new girlfriend, new house, new job, same old myself

    New year... well, a bit too late

    New girlfriend... Mónica... she's awesome... beautiful, smart, funny and she loves me! What else could I ask for? She's a PhD student and a researcher at the Linguistics department of the Spanish Philology Faculty of the University of Barcelona. She works really hard at the "General and Etymological Dictionary for the XV Century Aragon Crown Spanish" workgroup under the guidance of Dr. Coloma Lleal. Mónica is a geek too, she even beats my geek-o-meter score when she begins to talk about Starwars (she found one of the few nerds who don't like lightsabers et al), loves Monty Python and tends to cite many punchlines from Top Secret and Airplane!

    New house... well, Mónica and I have decided to live together. We have been together for less than a year, and according to Elvis "only fools rush in". Well, call us fools... fools in love, but I'm pretty sure we'll be even happier living under the same roof.

    6 Nov 2005 (updated 22 Nov 2005 at 12:17 UTC) »

    /me disguises as Roger Ebert

    Clint Eastwood meets Han Solo

    I saw Serenity last week and man, it is a-w-e-s-o-m-e. Plenty of laughs, good action and a compelling story. I've never watched Firefly (it hasn't arrived to Spain yet and I fear it will never do...), so I knew little about the story.

    I was very surprised, since you won't need to know every minor piece of Firefly to understand Serenity. The ending is quite well thought:

    <spoiler>

    the idea that aggressiveness is a fundamental part of human nature is a very disturbing point, because it is true (at least, in part). What defines us as humans is that we can channelize it to good purposes (such as trying to defy our own limits)

    </spoiler>

    I'm quite reluctant to watch what most people call sci-fi (Matrix, Starwars, etc.) so I wasn't really convinced if I would enjoy Serenity, but I was wrong. I love slow paced sci-fi movies. I don't believe that sci-fi is all about laser shooting starships, but about the social impact of believable technology (I'm one of those who prefer Gattaca over Matrix).

    Good idea, bad implementation

    Corpse bride by Tim Burton gave me mixed feelings. The story behind it is quite funny, but the screenplay is irregular. Sometimes it was boring and sometimes funny.

    /me takes off Roger Ebert disguise

    Talks

    I finally gave my presentation on Rails & AJAX in Hackmeeting 05. The speech that served as a basis for my (bad) jokes can be downloaded from here It is a Theora/Vorbis encoded video.

    There's something funny about this, I wrote the application for the presentation in a couple of hours and, by the way, learnt about some minor aspects of Rails that I wasn't aware. "Every work of software starts by scratching a developer's personal itch" by ESR is completely true :) You can mail me if you want the source code (it has some AJAX tidbits, such as a live search).

    fxn asked me if I was willing to give that speech at his class at UB, and I have accepted. It's somewhat frightening, since the public will be composed of ex-classmates :P

    Plus, there's some guy at UC3M LUG (Felipe Talavera) who will give a talk based on my work about the same topic. It's nice when people find your work useful and want to reuse it :)

    Ouch, I wrote my last entry in 19th april, it has been a long time since then.

    Slavery was not abolished, it simply was reduced to 8 hours a day

    Ok, ok, this title is simply a joke by "Les Luthiers". I finally got a new job at Scytl one week after my last post (so it means 6 months, hmmm) and I'm pretty happy with this place. My position: Software Engineer (notice the Camel Case :P), my duties: Java, C and maths.

    I'm doing very funny things. Shared secret schemes and One Way Accumulators are two of the most impressive (at least to me) things I have done here. Maths seem to be somewhat useful after all ;)

    Oh! and thanks to you all advogaters who mailed me job offers. It's nice to receive mail from unknown people (unless they offer penis enlargements or Nigerian scams)

    Nihongo ga wakarimasu ka

    Hai, iego ga sukoshi wakarimasu. I'm attending Japanese classes at the Official School of Languages of Barcelona

    And, before anyone asks, I'm not doing this to understand Ruby documentation :)

    Synergy paradigms of pro-active catalysts

    Yeah, I don't know what does it exactly mean either. I will be giving a speech on the next Hackmeeting in Minorca about two of the most recent buzzwords: Web 2.0 and AJAX.

    Of course, I had to mix Ruby in it: it's the third rule of the Ruby Club, after the first two: "you don't talk about Ruby Club". So the speech will be about how to build AJAX-enabled Ruby on Rails applications.

    Next level

    I have been upgraded: from Observer to Journeyer. Does it mean I can bully Observers and Apprentices?

    The waiting...

    I hate to be tricked. One month after being accepted to work for Auna, I'm still waiting to sign.

    I would really like to listen "Hey guy, seems like this project was cancelled, sorry". I would get angry (of course! I rejected other offers) but I could keep looking for a new job.

    Well, my impression is that they are completely unprofessional, so I won't wait for them any longer and begin to look for a job (again).

    So, if any of you know of someone who is hiring, please let me know :)

    I guess I picked the wrong week to quit sniffing glue

    What happened to Advogato?!?! Seems like several accounts were deleted. Luckily I recreated mine, but lost all my certs and my personal introduction, WTF?

    26 Mar 2005 (updated 26 Mar 2005 at 23:50 UTC) »

    Parallel reading

    So I have a bunch of papers and books to read... the rational way should be:

    <geekspeak>

    read_book("Jakarta Struts Cookbook");
    read_book("Fun and games, A text on Game Theory");
    read_book("Kanji para recordar");

    Bah! It's funnier to implement it this way:

    pthread_t th1, th2, th3;

    pthread_create(&th1, NULL, read_book, "Jakarta Struts Cookbook");
    pthread_create(&th1, NULL, read_book, "Fun and games, A text on Game Theory");
    pthread_create(&th1, NULL, read_book, "Kanji para recordar");
    pthread_join(th1, NULL);
    pthread_join(th2, NULL);
    pthread_join(th3, NULL);

    This leads to lots of race conditions! By now, I have learnt that minimax is a MVC approach to eat sushi :D

    </geekspeak>

    A cup of coffee

    I've finally set up my Struts environment, composed by:

  • Eclipse, all around good IDE
  • Jetty as my servlet container
  • StrutsIDE plugin for quick and easy development
  • JettyLauncher, for firing up Jetty

    At first I tried NetBeans. Everytime I must do some Java development I retry working with NetBeans, desperately looking for an improvement from previous versions... and I'm always deceived, it's a resource hog!

    Something new under the sun

    Downloaded a JavaStudio Creator (formerly known as project Rave) trial version, it's based in NetBeans (= slow as hell). Instead of writing raw HTML/JSP/JSF code, you drag'n drop controls and edit their properties, much like WebMatrix.

    I played a bit with Java Server Faces. I see JSF as a mixture of Struts (30%) and ASP.NET WebForms (70%), which in turn is copied^Winspired by Apple WebObjects. I like the approach (taken by WebObjects, ASP.NET and JSF) of thinking about the Web as a regular GUI: events, controls, etc.

    If Sun plans to compete against ASP.NET, it should provide a stripped-down version of JavaStudio Creator for free, much like Microsoft does with WebMatrix. Nothing too professional: a minimalistic servlet container, a small collection of controls and some features removed (workflow navigation, eg.) to persuade people to buy a bigger version.

  • 22 Mar 2005 (updated 21 May 2006 at 21:23 UTC) »
    What's up Doc?

    It has been a long time since I posted an entry, and lots of things happened since then!

    Back pain prevented me from seating in front of a computer during long periods, one of the reason for my temporary departure from Advogato. 23 years old and already suffered lumbago, woohoo!

    Will code for food... or better offer!

    Next: I quitted my job, couldn't stand there anymore. My first feeling was uncertainty, I was unsure if I could find a new one. You know, when you have to pay bills, it's hard to do things like this. Well, one week after I quitted I had four job offers :) This should make me feel more self-confident I guess, don't know why I lasted so much after all.

    I chose to work for Auna, one of the biggest telcos in Spain, working in a new secret project: *cough* giant killer robots for the army *cough* ;) Just kidding.

    It's near (20-30 minutes walking from home), this gives me the chance to ride my bike everyday and get in shape (right now I'm too skinny).

    Ruby Evangelism

    Next week, I'll give a talk about Ruby at the monthly Barcelona Perl Mongers meeting. Let's see if I get some conversions ;)

    Games: it's a child's play!

    On the academia side, I'm working in my final year project. Reading anything related to game theory. cerquide has sent me lots of papers about this topic and we're testing several tools. Gambit was the first one to review, but we're unsure to use it since its development seems stalled. Next one, SSEL/CASSEL by none other than Dr David Levine, is a very ambitious project, sadly its funding ended and we don't know if it will continue. Last resort would be to write a framework from the ground up, since cerquide already wrote a library in Ruby. I played a bit and began to build a mini application in QtRuby around it, but my back pain didn't let me finish it.

    Now I must ask, Advogato community, do you know about good game theory free/opensource software? Freshmeat doesn't seems to contain much info.

    As a side effect, I joined a game theory group in UB, I won't be able to contribute much, but this will give the chance to learn many things! :)

    Obligatory spam

    Oh, I almost forgot this, Lagwagon has released a new album: Live in a Dive. I've listened to it, and I liked.

    It has many songs I love: Violins, Island of Shame, May 16th, Coffe and Cigarettes, Razor burn and several other ones. Though being a live album, sounds good and well recorded.

    14 Feb 2005 (updated 14 Feb 2005 at 21:56 UTC) »
    Food for thought

    I completed my reading of "Shadow Puppets" by Orson Scott Card. Now I'm reading "Kanji para recordar" (Remembering Kanji), I hope to learn some japanese, I like it's approach: don't try to remember systematically every kanji, just understand why are they written like that. E.g. "peach tree" is the "augury tree" (according to Momotaro story, the guy who appeared inside of a giant peach, preceding an augury) and "augury" is drawed from a "tortoise shell", since historically they used shells to predict future. So, to draw a peach tree, you would draw a tree and a tortoise shell, that's it!

    *Spoiler Warning*

    Mixed feelings about "Shadow Puppets": it's an OSC book, starring Bean and following Ender's Saga, that's great. On the other side... Bean became too mild, he has become a family guy, who desperately wants a son of his own and decides to marry Petra. C'mon it's Bean, the cold-blooded genetically modified lieuteniant who survived to Amsterdam streets when he was 4-6 years old. There are minor points that disturbed me: everybody seems to be a devotee -even Bean-, Aquiles seems to be a demigod and Peter is as stupid as he can be, but not as important as trying to redempt Bean and turning him into Ned Flanders.

    All in all, I give it a 6 out of 10 stars. Not bad, but not as good as "Ender's Shadow" (IMHO, the best in the saga, even better than "Ender's Game").

    Evangelism

    It has arrived, finally. Tomorrow will be the day. A bunch of geeks are organizing a festival around free software at the University of Barcelona.

    Ramon, Miquel and I are the nerds behind this, we are very excited about this, though it began as a stupid bet.

    You will find workshops (Blender, Mono and Install Fest), talks (Creative Commons, Migrating to Free Software, etc.), hmmm... I think it's better if you visit our website, Jornada de Programari Lliure (codenamed geekfest)

    We're planning to stream every talk and workshop, in Theora/Vorbis (preferred) and Divx/MP3 formats.

    11 older entries...

    New Advogato Features

    New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

    Keep up with the latest Advogato features by reading the Advogato status blog.

    If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!