Older blog entries for premus (starting at number 3)

14 Oct 2001 (updated 14 Oct 2001 at 03:35 UTC) »

I was playing with HyperPad and in about one hour I made it to use antialiased fonts, it looks cool, do the antialiasing is a bit strong and it's quite unpleasant in time. Anyway it looks a lot nicer, strange how ugly the fonts can be in Java under Linux. Also managed to solve the SkinLF bug, now if any skin it's used the backspace key in the editor works. I had to set the look and feel first and then create the widgets. It is a funny bug, I still can't figure why if you set the look and feel after the components are created the backspace and back cursor keys won't work.

Another not quite funny thing happened today, while switching from xemacs to xterm to make a clean build, I noticed the the build went extremely fast, when to start the application it failed. All the source files where deleted, the source directory was clean with the subdirectories still there but no file in them. No delete command was issued, just disappeared. It happened before (once) a couple of months,, but that time I was blaming it on Quanta (it was a beta version, and I was working around importing files into a project) but this time was no Quanta around. Must be something with reiserfs. Probably I should do a kernel upgrade! Anyway happily no harm was done (this time) as I had the fresh files in emacs and the sources where in the CVS, I'm lucky enough to do commits often ;)

9 Oct 2001 (updated 10 Oct 2001 at 17:19 UTC) »

mn8: O God, I'm running so late, like never before. I barely think or do anything else, yet still progress is so slow. The real problem is that designing an OO interpreter is not so trivial. All the time I have to come back to revise some design flows. I think that is called refactoring ;). At least I do it!

Spent the whole weekend working like a crazy to refactor a few things instead of adding functionality, which means four more days of delay. But I had to do it, it was just not looking and functioning right. This was also the first time (I remember anyway) of hating Java. I just don't understand why they did the static behave the way it does during inheritance. At the end had to use the Singleton pattern, it works but I'm still not very happy. I will leave it as it is anyway, can't afford and don't think there is other solution.

Being so late and still having to work on it, always makes me think if I'm not like the cowboy programmer in the project management examples. But mn8 is (some thing which never stops amaze me) working as it was planned, more ready and more complete every day. But as I look around me, I don't really see people doing as radical and as much refactoring as me, and this worries me. Is that possible that the design was right from the first time, I don't think so, there is no such thing. I'm afraid that the others rather patch things instead of doing refactoring.

This time being late had some benefits too. DataStore got a alpha but released Avalon (finally we are not going to release it with a CVS version of Avalon), lot's of bug fixes, and a brand new SEP interpreter plus a more stabilized XML-RPC server, and a full blown PHP/XML-RPC example. Yep it works great. Crow is working on some small Java tools to let us transforms mails from mbox format in XML and then to feed them to DataStore. Will need them latter anyway, plus that is a good way of testing DataStore.

Atech did the BEEP handler so now you can open an URLConnection to a beep://xxx URL and it will work, still you have to know what to talk over the connection, but at least will allow mn8 to open url's transparently. Now he works on the XML-RPC handler. Let's see how that works out.

A, not to forget about HyperPad. It got a pair of skin handlers so you can have skins in it (doesn't really work well, but don't think is our fault). It amazes me how well the new Linux Java works. It has better font rendering than the IBM one, and definitely is faster than under Windows 2000. It wasn't always like that. Linux rulez!

Thank's to neurogato for pointing out that: Alan's code crew text is actually lyrics to the tune of Motorhead's "(We Are) The Road Crew", yes indeed fits beautifully. BTW, if we are at the SmoothWall chapter it just happent last week to replace an old router based on LRP to a firewall running SmoothWall, it took us about two hours but only because, we went for the installation first and then to read the manuals, just like any (in)sane person would do. Great piece of software!

Random output of the day

Alan Cox (the Linux kernel hacker) started to write poetry. Check out his diary. Oy, I like them so much. If you are interested read them here, here and here.

People don't notice us, they'll never see
Under their noises a hacker may be
We edit by night and we sleep in by day
Writing up patches to send bugs away

Oh another one I like:

Reading junk, feeling bad
Another night going mad
x-jack drivers are so bad

But I just love the code I read
Another beer is what I need
Another bug, my ram is freed
We are the code crew

Go on Alan !!!

pphaneuf wrote about it's problems with morale slump. There was a time when I believed that this was the difference between professional programmers and amateur ones. I was wrong, it just happened to be very used to be productive. Then I had my own shares of problems with productivity. As a matter of fact I just slowly get out of one.

There where a few good comments on the phenomenon. I only have to add one thing which really annoys me. Chemicals! I have in my neighborhood a doctor which happens to be a family friend. Once, seeing the kind of color I can exhibit (all day long on front of my monitor, what do you expect ?) suggested to take a few vitamins. A couple of pills an my mood, energy and productivity was back.

During stress and long periods of intensive work, we often feed irregularly and badly which makes our metabolism a bit unbalanced, this can cause again depression and in the end get our productivity down the floor, which again makes us feel even worst.

I don't really believe in drugs, but here are a few things I found to be very useful to me during bad times, and which are not very serious drugs to make me worry to much about the fact that I use them from time to time.

  • Magnesium and B6 based vitamins
  • From time to time we do use to make crazy things like, sleeping 4 hours a day and working 16 and this for many weeks. This chaotic activity doesn't do much good to our neurons, plus that they don't really grow back once they died. So here is Piracetam in small doses, which gives a pus of oxygen to the brain and protects the neurons.
  • When things are getting even worse, and we are constantly depressed, there are the anti-depressive drugs. Now, this is a bit to much for me, but once again I've got a good tip from my doctor friend. Natural anti-depressive like Hypericum perforatum ( known as St. John's Wort ). You can find some pills containing the plant and does wanders despite the fact that it's the pure natural plant only and not some synthetic chemical.

If I only knew how to post an reply to an advogato.org article I would be saved, but hell I can not find how.

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!