Older blog entries for company (starting at number 25)

27 Jun 2006 (updated 27 Jun 2006 at 17:32 UTC) »

To go with the rest of the people: GUADEC is great. What is apparently great, too, is my English. Thanks to all the people who really thought I was a native Brit, you made my day. It'll probably make the day of my former English teacher, too, when I tell him this.

And I've met almost all the people I wanted to meet. Only iain, thos and vuntz are missing on my list. I probably forgot one though.

And, most important: sri is totally afraid of my verbal skills and keeps hiding from me!

Since I was nicely asked to do so, I'll write a blog entry about this stuff, that's been happening around me.

Workspace switcher


The workspace siwtcher got a facelift for the upcoming GNOME 2.16. Besides some visual improvements, you'll notice from the above animation that dragging items around is now real drag and drop with proper highlighting and prelighting. It's also now possible to drag windows from the tasklist to the pager. Says Vincent:

This is awesome. I don't understand how we could live without this!
Volume Applet

It seems to be a not so well known fact that using the Ctrl key, you can select multiple tracks to control. This is especially useful for people who have a different volume track for headphones and speakers on their Laptop.

12 May 2006 (updated 12 May 2006 at 17:21 UTC) »
Byzanz 0.1.1

Today I received a patch by Richard Ferguson, who made new icons for Byzanz. Wow. Together with the translations and various other people helping me fix stuff, that's a nice list of stuff other people did for Byzanz. Basically the first release where I didn't need to do anything for it. :)
Get it here.

There's one interesting patch that I didn't include, which tries to add "save to HTML". Problem with that patch is that it requires saving two files. This breaks a lot of assumptions of various parts of the code (example: overwrite confirmation in the file chooser) and it would probably break user expectations, too. ("I saved to HTML and then copied that to my webspace, but now the image doesn't show up.") So if there is a good solution to that problem that any app implements, please tell me.

Guadec Accomodation

Since many people have been wondering about this and I couldn't find it on the GUADEC page:
The accomodation is 8 nights, checking in on Friday 23rd and leaving on Saturday 1st.

Quick note

It's a good thing to see all these people in the open source scene promote Free formats.

Byzanz 0.1.0

I've now arrived at what I'd call feature complete. It even has an about box! So, go grab Byzanz 0.1.0 and play with it.

So what's new in this release? Three things: The applet got a complete overhaul, you can now record your mouse pointer and the code has been moved to Gnome CVS. What's also new is me wondering about where I want to go with this thing. Should it be included in the Gnome desktop? Should it be made to record to other formats? If so, which? Do people want to record audio with it? Do people want to add things to these recordings (like bubbles explaining things) and need an editor for this? Do people even care? I guess I'll need to wait for recordings popping up on the net to see what people use it for.

Another thing I've played around with a lot while writing this thing is GIF encoding and decoding. Encoding is interesting for two reasons. The first is performance. You want to ideally have your GIF completely encoded when you press the stop button and not have to wait until it's done encoding. While for an average desktop session, this is no problem even on my old iBook, recording playback of a full screen H264 movie (which itself can take more than half of the performance of a 3GHz CPU) will have you wait a while for the result. So what's so slow in the encoder?

  • Color lookup is slow. Color lookup is the process of selecting that one of the 256 colors in a GIF that most closely matches the color we want to encode. I've yet to find an algorithm that implements that fast and efficient. The current tree-based algorithm and the "create a 64MB lookup table" approach seem both suboptimal to me - the first is slow, the second uses far too much memory.
  • Dithering is slow. There's a lot of calculations required per pixel to keep track of all the different error values. This could possibly be sped up quite significiantly by using vectorizations (Altivec, MMX, SSE), but I'm not a specialist on those.
The second thing that is interesting about encoding is the size of the encoded image. The current code already optimizes quite a bit. It tries to find regions that haven't changed and omits them or if that's not possible it sets them as transparent. That way you get a lot of transparent pixels, which result in a pixel array that can be compressed a lot better. You can see this by opening one of your recorded GIFs in the GIMP (which is an excellent debugging tool for animated GIFs btw). But there are of course still optimizations that might be useful, like marking a pixel transparent even though it changed, when it didn't change a lot.

Another interesting thing are GIF decoders. Since your average GIF image is small (you know those little animations on the web - the biggest ones are probably banner ads), but Byzanz easily records full screen animations that last multiple minutes and easily exceed 50MB in size, you find the limitations of the current GIF decoding libraries easily. And you find out that every project has its own GIF decoder. And you find out when you record a 17MB animation of a short movie with around 1500 frames (the movie itself is 9MB in size, so don't use GIFs to record movies ;)), that

  • the GIMP decodes the whole image into layers and then gets performance issues when rendering the resulting file, since it has to compose 1500 layers. Changing the visibility of one layer result in a huge lag. It's ok in memory usage though (around 300MB, probably only keeping the change regions).
  • Mozilla also decodes the whole image at once resulting in rendering hickups during playback of the loading animation. When it plays back the looping animation a second time, everything works fine though. It uses as much memory as the GIMP for this (300MB).
  • Internet Explorer 4 (the only one I have) opens the image fine and displays it without problems. No clue about memory usage though.
  • Gtk consumes all available memory and my machine hangs. (Crappy OOM handling therefor a desktop, Linux.) This is because it tries to keep the completely rendered frames in memory. That easily exceeds multiple Gigabytes.
  • note to self: test Konqueror
None of those applications handle GIF the way it was envisioned in the GIF spec: As a data stream. They all implement it like it's used most of the time: As ad banners. I wonder if Gtk and Mozilla devs would like to get their gif image handling code improved, even if that'd require writing a new library. I'd bet on "don't care really, the current code is good enough".

Oh and one thing: I need icons for Byzanz that don't suck. Feel free to create some and send them my way - or just check them in if you have a Gnome CVS account.

12 Jan 2006 (updated 13 Jan 2006 at 00:27 UTC) »
Byzanz 0.0.3

Byzanz 0.0.3 is out. This time it's supposed to work on a lot more computers than jus my laptops. The last release had the (expected) first release illnesses and for most machines didn't work at all. Particularly the "everything is red" and "Byzanz needs XComposite enabled" bugs are gone. A new demo of Gedit's new features is available straight from Paolo's blog

I was really overwhelmed by the feedback I got and how many people expressed interest. Such things really motivate. Thanks to everyone who emailed me with bug reports, tips or a translation. It's greatly appreciated. If this release actually works for normal people, I'm particularly interested in if it works on 64bit systems.

I should probably mention one thing: The whole code does not do error checking. So if something fails, it fails and it won't tell you or do something against it. Error reporting has to wait for one of the next releases I'm afraid. But then again, this is 0.0.2. ;)

Writing panel applets

Writing good panel applets is hard. And since pictures say more than a thousand words, look at this:

This is two very standard widgets given less size than requested. And I'll explain my big hurdles to writing good panel applets anyway:

  • Gtk widgets are really bad at handling the case of getting allocated less space than they requested (see the screenshots above). This is because the Gtk usecase is a window which sets its minimum size to the requested size of its contents, so it basically never happens. But for a panel this is a frequent happening, because the user sets the maximum size of the panel and not Gtk.
  • There are no containers that handle the different panels in a satisfying way. Since it is possible to have panels on all 4 sides on the screen (vertical and horizontal orientation) and with sizes from 23 to 120 pixels, there is a lot that can be and is done wrong with widget layout. The simplest example is that a container that behaves like a Vbox on a vertical panel should behave like a HBox on a horizontal panel.
  • Panel applets must be optimized for size. Since they occupy parts of your screen all the time, the space occupied should be as small as possible. A lot of widgets are written for nice display in big windows (as in 500x300 pixels or more) and don't care about using 2 or 3 pixels more. A GtkButton in the most-used themes uses on average 5 pixels on both sides for displaying the box around it. If you now remember that a normal panel is 30 pixels high, you can imagine that losing a third of your available space just for a nice border is not what you want.
  • Since the presentation space of applets is not very big, the information must be presented in a very compact form. For example text is not an option most of the time, since text is just too big. ("Hello World" requires 76x16 pixels in my configuration, that's almost enough to display 3 24x24 images.) Unfortunately there seem to not many widgets around that try to achieve the same goal. An exception might be the GtkToolbar widgets, but then again the toolbar uses a visually very different approach from panel applets, so just using toolbar items would look kinda stupid in a panel.
  • Applets normally don't react to right clicks but bring up the default menu instead. But lots of Gtk widgets intercept right clicks. This makes applets with those widgets feel wrong. (The window list does this for example)
So what I'd like to have is a collection of widgets that make it easy to create good applet UIs. And I'd like
And I'd like these widgets applied to the current applets. Current applets suffer heavily from this not being available. Just try using a 60px vertical panel as your only panel for a while to figure this out ;)
Unfortunately there seems to not be a lot of interest in getting applets working nicely the maintainers of that code tell me. I wonder why that is. Probably just a case of missing good libraries to use, as always...

Edit: Yes, that read 0.0.2 before, but people seem to have their own partition for $HOME which tends to cause issues. So I did a quick-fix to 0.0.3 for them.

9 Jan 2006 (updated 9 Jan 2006 at 13:30 UTC) »
Byzanz

It took me a while, but I'm now able to do useful things with it. Or said differently: Byzanz 0.0.1 is ready for everyone brave enough to play with it.

What is Byzanz?

Byzanz is a desktop recorder. Just like Istanbul. But it doesn't record to Ogg Theora, but to GIF.

Screenshots?

Here's one you can make with it:

The idea for that demo was taken from Richard's blog. He said he needed quite a while in Gimp for his pictures. I needed around 30 seconds. That link goes to a 1.6MB recording of the session I used to record the above demo.

Why GIF?

GIF is the best format I found for recording desktop sessions. The criteria I wanted were these:

  • You see use it in any browser. Preferrably without plugins.
  • It records a typical interesting desktop losslessly or at least in an acceptable quality and in an ok filesize.
  • It is free.
  • Recording works fast enough.

What's a "typical interesting desktop?"

  • Short tech demos like the one from Richard or similar.
  • Bigger tutorial style demos that are currently typically done in Shockwave/Flash. And I can't see those.
  • "Do this to reproduce the bug"
  • And my original reason was: I wanted to demo my ideas for animated themes like this one:
Why the name?

I couldn't come up with a better one and thought it's a clever pun on someone else and his application. ;)
And it's a name that's not yet taken. At least apt-file search byzanz doesn't return anything.

Update: There's been quite a few people testing it (cool!) and writing me mails about one thing I forgot to mention: Byzanz currently requires a running Composite manager on your X server to work. If you think you're brave enough to try this, see here for a good tutorial on how to make it work. Otherwise wait for me to fix it in a future release.

Havoc has a big rant about why the iPod rules and all the other players don't. This rant is probably correct for the US, but it fails for Europe. Because all his arguments are based on the fact that the iPod is the dominant music player. And in Europe, it isn't. When I'm having my daily commute in the subway, you can see some people with iPods, but most of the people use so called mp3 sticks. And of course I have reasons for why I believe the iPod fails in Europe:
  • Because these sticks are dirt cheap (you can get them for less than $50 and even when they were you they cost less than $100 pretty fast). They are in fact so cheap, it's a convenience product. The iPod is expesive and definitely not convenience.
  • Music players aren't cool (at least not with people I talk to). Mobile phones are. And conceerning the youth ringtones are definitely cooler than a whole song. Ican only imagine what an Apple mobile phone would result in...
  • Apple doesn't really live up to the "all your music" claim. People here use Windows and Winamp or Windows Media Player. So using the iPod would either mean switching your music playback program or copying your songs manually in Windows Explorer. All your music?
  • I don't know a single person that had even considered buying anything at iTMS (or at any of the other music shops that do far more advertising around here, like Musicload). People I know trade CDs and burn them and that doesn't work with iTMS purchased songs.
So I guess what it all comes down to is that I think that the iPod isn't doing so well because it's so well designed, but because Apple managed to make it synonym with "mp3 player" and especially "cool mp3 player". But it only managed that in the US.
31 Aug 2005 (updated 31 Aug 2005 at 19:57 UTC) »
When NASA was trying to go to the moon, there was a great deal of enthusiasm: it was a goal everyone was anxious to achieve. They didn't know if theys could do it, but they were all working together.

I have this idea because I worked at Los Alamos, and I experienced the tension and the pressure of everybody working together to make the atomic bomb. When somebody's having a problem - say, with the detonator - everybody knows that it's a big problem, they're thinking of ways to beat it, they're making suggestions, and when they hear about the solution they're excited, because that means their work is now useful: if the detonator didn't work, the bomb wouldn't work.

I figured the same thing had gone on at NASA in the early days: if the space suit didn't work, they couldn't go to the moon. So everybody's interested in everybody else's problems.

But then, when the moon project was over, NASA had all these people together: there's a big organization in Houston and a big organization in Huntsville, not to mention at Kennedy, in Florida. You don't want to fire people and send them out in the street when you're done with a big project, so the problem is, what to do?

Richard P. Feynman, What do you care what other people think?, p.214f., WW Norton & Company 1988, ISBN 0-393-02659-0

s/NASA/Gnome/
s/moon project/Gnome 2.0/
s/Houston/Utah/
...

I'll leave it as an excercise to the reader to figure out if NASA has gone uphill or downhill since reaching the moon.
The whole book this quote is from was an interesting read for me, especially with the parrallels between how NASA and Gnome evolve. And this quote sums it up best.

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