Older blog entries for fzort (starting at number 179)

14 Nov 2009 (updated 16 Nov 2009 at 09:55 UTC) »
Deluxe agglutination

Yume no naka e itte mitai to omoimasen ka?
    -- lyrics for an old Japanese pop hit

  • yume no naka: inside a dream
  • iku: to go (infinitive)
  • itte: going (-te form of iku - gerund, kinda)
  • itte miru: try going
  • itte mitai: want to try going
  • itte mitai to omoimasu: think about wanting to try going
  • itte mitai to omoimasen ka?: how about wanting to try going?
  • yume no naka e itte mitai to omoimasen ka?: don't you want to try going into a dream?

Yeah yeah, off-topic for Advogato... but who's reading this anyway?

11 Nov 2009 (updated 11 Nov 2009 at 14:38 UTC) »

Yeah, "Go". Like it usually happens with anything coming from Google, I got bombarded with links to this from random people.

Far be it from me to disagree with Ken Thompson, but I respectfully take issue with the following item in their FAQ:

Go doesn't provide assertions. They are undeniably convenient, but our experience has been that programmers use them as a crutch to avoid thinking about proper error handling and reporting.

assert() is not meant to be used for error handling and reporting. It should be used to enforce (and document) invariants. Leave it out of your language if you will, but I'll keep using it until someone pries it from my cold, dead fingers.

On other news, still studying Japanese. Less than one month to the test.

25 Oct 2009 (updated 3 Nov 2009 at 11:38 UTC) »
Cheat Sheet

  • mado o shimemasu: I close the window.
  • mado o shimemashou: let's close the window!
  • mado o shimetai desu: I want to close the window.
  • mado o shimenagara (...): while I close the window (...)
  • mado no shimekata ga wakarimasu: I know how to close the window.
  • (place e) mado o shime ni ikimashita: I went (to place) to close the window.
  • mado o shimete imasu: I am closing the window.
  • mado o shimete (kara), (...): after I close the window, (...)
  • mado o shimete kudasai: please close the window.
  • mado o shimete mo ii desu: you may close the window.
  • mado o shimete wa ikemasen: you may not close the window.
  • mado o shimete dame desu: you may not close the window (rude).
  • (person ni) mado o shimete hoshii desu: I want (person|you) to close the window.
  • mada mado o shimete imasen: I haven't closed the window yet.
  • mado o shimete mimashou: let's try and close the window.
  • mado o shimeru: I close the window (plain form - avoid if you're older than 6).
  • mado o shimeru mae ni (...): before I close the window (...)
  • mado o shimeru koto ga dekimasu: I (can|am able to) close the window.
  • mado o shimeru koto ga adjective desu: closing the window is adjective.
  • mado o shimeru tsumori desu: I'm planning to close the window.
  • mado o shimeru (kara|no de) (...): I close the window, therefore (...)
6 Oct 2009 (updated 6 Oct 2009 at 15:39 UTC) »

I'm taking the Japanese Language Proficiency Test Level 4 (the easiest one) in December. This means I have a couple of months to memorize a huge list of words and kanjis. I started to write a small drill application to help me (screenshot), because I didn't like the ones I found. I wanted something like the excellent kanatest, but with kanjis and complete words as well. Randomly generated sentences would also be nice.

1 Oct 2009 (updated 2 Oct 2009 at 00:40 UTC) »
dkg: seriously dude, WTF? I just had a look at an article linked from your post, with a transcription of the supposedly controversial bits of Mark Shuttleworth's talk. Isn't the word "guys" gender-neutral in that context? Also, how hard is it to understand from the context that he obviously intended the world "girl" to mean "non-techie companion of the opposite sex", whatever that sex may be?

Get a grip, you people. I'm alright with folks denouncing the oppressive patriarchy, but calling Shuttleworth's talk "sexist" is crossing the line towards utter batshit insanity. You guys (and here I'm using the word in a non-gender-specific way) are the ones who owe him an apology.

ncm: good one. I didn't find the tone "insulting" at all. Well, maybe he took issue with the last paragraph...

After a weekend coding marathon, the project is starting to look more like a game. New video here.

By Jupiter, I love to code, especially when it's something as cool as this! If only I could do it full time... :-)

8 Sep 2009 (updated 8 Sep 2009 at 22:44 UTC) »

I had a productive holiday. The world needs more Tetris clones.

3 Sep 2009 (updated 3 Sep 2009 at 22:06 UTC) »

Cartesian product of a list of lists, in Scheme:


(define cartesian-product
  (lambda (lists)
    (let loop ((lists (cdr lists))
               (result (map list (car lists))))
      (if (null? lists)
        result
        (loop
          (cdr lists)
          (apply
            append
            (map
              (lambda (l)
                (map
                  (lambda (i)
                    (append l (list i)))
                  (car lists)))
              result)))))))
(display (cartesian-product '((a b c) (d e f) (g h i))))

Not very efficient, but kinda cute.

29 Aug 2009 (updated 31 Aug 2009 at 13:56 UTC) »
This post is just for the Brazilian readers. Sorry, non-Brazilian Advogatans.

Regulamentação da Profissão de Analista de Sistemas

Para quem não ouviu falar sobre isso ainda, por favor leia isto agora e se revolte.

O assunto é muito grave. Se você é contra, envie e-mails e/ou cartas para os senadores do CAS. O e-mail que enviei está aqui. Se estiver com preguiça de escrever, fique à vontade para mudar só a assinatura e enviar a mesma carta, mas por favor se manifeste!

Compilei os e-mails e endereços dos senadores do CAS aqui. Se quiser enviar uma carta, o endereço é o da primeira linha do arquivo, acrescido do gabinete (por exemplo, "Ala Teotônio Vilela Gab 03" no caso da senadora Rosalba, a atual presidente do CAS).

Obrigado pela atenção.

Now, back to our regular programming.

170 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!