Create your Simpson avatar
Yesterday a colleague pointed me to the Simpson the movie website. One of the coolest things of it is the possibility to create your own Simpson avatar.
How to resist?! :)
After some clicks I made this beautiful avatar:
{% img /images/avatar_simpson.jpg %}
Isn’t it amazing? :D
Hackweek aftermath
Earlier this year, I already added XML output to yast2-core which came in very handy for this project. Using the REXML stream listener to code the translator was the fun part of a couple of late night hacks.
The result is a complete syntax translator for all YaST client and module code. The generated Ruby code is nicely indented and passes the Ruby syntax checker.
Combined with Duncans Ruby-YCP bindings, translating ycp to Ruby should be quite useful as we try to provide support for more widespread scripting languages.
The translator is available at svn.opensuse.org and requires a recent version of yast2-core, which supports XML output and the '-x' parameter of ycpc.
Then run
ycpc -c -x file.ycp -o file.xmlto convert YCP code to XML.
Now use the xml-ruby translator as
cd yxmlconv ruby src/converter.rb file.xml > file.rb
Translating e.g /usr/share/YaST2/modules/Arch.ycp
{
module "Arch";
// local variables
string _architecture = nil;
string _board_compatible = nil;
string _checkgeneration = "";
boolean _has_pcmcia = nil;
boolean _is_laptop = nil;
boolean _is_uml = nil;
boolean _has_smp = nil;
// Xen domain (dom0 or domU)
boolean _is_xen = nil;
// Xen dom0
boolean _is_xen0 = nil;
/* ************************************************************ */
/* system architecture */
/**
* General architecture type
*/
global string architecture () {
if (_architecture == nil)
_architecture = (string)SCR::Read(.probe.architecture);
return _architecture;
}
...
outputs the following Ruby code
module Arch
require 'ycp/SCR'
_architecture = nil
_board_compatible = nil
_checkgeneration = ""
_has_pcmcia = nil
_is_laptop = nil
_is_uml = nil
_has_smp = nil
_is_xen = nil
_is_xen0 = nil
def architecture( )
if ( _architecture == nil ) then
_architecture = Ycp::Builtin::Read( ".probe.architecture" )
end
return _architecture
end
...
Preserving the comments from the ycp code would be nice -- for next Hackweek.
Btw, it's fairly straightforward to change the translator to output e.g. Python or Java or C# or ...
Guestbook and spam
In the last days I got an exponential grow of spam messages into the guestbook. Since drupal’s guestbook module has some problems with spam- prevention components, I’ve disabled anonymous posting.
I’ll enable it again as soon as possible.
BTW: I don’t know who will care about this limitation ;)
Field enhancement proof-of-concept finished.
I've been working on field enhancement for OpenOffice.org Writer for quite a while and today I finished my proof-of-concept hacking:

OpenOffice.org Writer has a lot of shortcommings wrt. to fields which I tried to address:
- Allow for in-place editing of input field (turn off pop-up)
- allow use of different fonts within one field
-
Nested Fields support on Write and allow nested conditions when using conditional fields
- ...
In my proof-of-concept I was able to enhance the Writer core such that these issues are addressed. (That's the good news!)
Unfortionately my proof-of-concept still needs a lot of love. First thing is to clean up the prototype and generate patches for ooo-build.
However I'm happy since this is my first major work on the OpenOffice.org Writer layout and the field support is an issue in OpenOffice.org Writer for quite a while...
New house opening
Last friday evening I made a party in my new house. We celebrated my birthday and also the “opening” of the new house.
Many thanks to Roberto for the photos (made with his mobile phone!).
Smolt - Gathering hardware information
They currently have data from approx. 80000 systems, mostly x86, which hopefully will grow in the future. The device and system statistics are quite interesting to browse. Besides hardware, smolt also tracks the system language, kernel version, swap size etc. It also tries to make an educated guess on desktop vs. server vs. laptop - typically a blurred area for Linux systems.
Once they offer an online API for direct access to the smolt server database, this really will be quite useful.
EDOS Project
Michael Schröders hackweek project is based on using well-known mathematical models for describing and solving package dependencies: Satisfiability - SAT
Apparently, some research on this topic was done before. The oldest mentioning of SAT for packaging dependencies I found is a paper from Daniel Burrows dating ca. mid-2005. Daniel is the author of the aptitude package manager and certainly knows the topic of dependency hell inside out.
However, the most interesting link Google revealed, was the one to the EDOS project.
EDOS is short for Environment for the development and Distribution of Open Source software and is funded by the European Commission with 2.2 million euros.
The project aims to study and solve problems associated with the production, management and distribution of open source software packages.
Its four main topics of research are:
- Dependencies With a formal approach to management of software dependencies, it should be possible to manage the complexity of large free and open source package-based software distributions. The project already produced a couple of publications and tools, but I couldn't find links to source code yet.
- Downloading The problem of huge and frequently changing software repositories might be solvable with P2P distribution of code and binaries.
-
Quality assurance
All software projects face the dilemma between release often - release early and system quality. One can either
- reduce system quality
- or reduce the number of packages
- or accept long delays before final release of high quality system
- Metrics and Evaluation The decision between old, less features, more stable vs. new, more features, more bugs should be better reasoned by defining parameters to characterize distributions, distribution edition and distribution customization.
"The first casualty of War is Truth"
Reading some blogs about the ODF/OOXML file format war the famous quote "The first casualty of War is Truth" (from Rudyard Kipling --- I guess) comes into my mind.
openSUSE LiveCD Installer
I was out of town for part of hack week, so I didn’t participate fully like my colleagues. I did get a couple evenings to mess around with something, though. I wrote an installer for KIWI-generated LiveCDs.

First page of live installer
It’s still in early development and has lots of hacks to make things work, but it does manage to install a working system onto your machine. The installation itself is really pretty simple. The LiveCD data is in a compressed squashfs image on the CD, and the installer just copies all of that to the disk. Then it just writes out an fstab, installs grub, etc.
As usual, however, the devil is in the details. Things like sound and video card detection are normally done by the YaST installer, so other methods must be used. It might be possible to invoke the relevant bits of YaST from the LiveCD installer to achieve the same effect, but I haven’t looked into it yet. I have everything checked into svn (svn://snorp.net/trunk/opensuse-live), so if you want to try and build a CD everything is there. I will also upload an ISO soonish.
Update: You can download a full ISO based on openSUSE Alpha 5 here.
Lots of improvements into Strigi inotify support
Some days ago I committed lots of changes regarding inotify support. Goodies and improvements have been introduced… I had this code laying on my laptop for several weeks because I wasn’t able to fully test it. An annoying bug afflicting the update index operations was blocking me. But some days ago Jos fixed it, so I didn’t have any excuse :)
These are the major changes introduced:
- event caching: using a small cache it’s now possible to simplify multiple events and prevent high cpu usage when lot of changes occur on the same files
- interruption handling during the re-index operations: changing the directories to watch during an indexing operation will break the previous job and start a new one
- other small changes for improving cpu utilization
Actually I’m very happy of the first point, but I think the second one can still be improved…