Search Results: "Simon Richter"

14 November 2006

Simon Richter: Text direction switching

I've always wondered about the purpose of the Unicode LTR and RTL switch codepoints. Is an application required to insert these into an output stream when text direction changes? If so, gnupg would be non-conforming, as it does not emit them around Arabic names in uids (obviously, making them part of the uid would be beyond wrong). If they are not required, then they are redundant, and create another normalisation obstacle (but contrary to accented characters, one where you need current tables for the entire Unicode range, not just for the 200-ish code points that have been assigned for compatibility reasons).

Simon Richter: Portable music players and Web2.0 style community building: the next hype?

So the Zune's big killer feature is (heavily DRM'd) wireless sharing of music. While I believe this will finally educate the masses about the evils of DRM, I would rather have a way to "recommend" a piece of music and offer a snippet for download to people near me, even without me being active in any way. If something like this catched on, and the transfer rates were acceptable, I could get a few new tunes on my daily commute, and learn about new artists this way. Throw in a rating system (doubling as spam protection), and a way for me to get the URLs of the artists' homepages for pieces I marked as "noteworthy" while they were playing into my browser easily, and this is the platform of teh phuture.

Simon Richter: Just in time for the etch release

It is time for great evil to be unleashed onto the world. That is, I plan to write a bootloader for APUS systems that builds a proper flattened device tree and hands that off to the kernel, so APUS boards can boot the regular PowerPC multi-platform kernel.

10 November 2006

Simon Richter: Wacky ideas #10: syndication for bugs

As far as I've understood RSS, you can essentially syndicate any content that can be expressed as XML. So in theory, all that is missing so Debian's bug tracking system can track changes in the respective upstream and downstream BTSes would be an appropriate format and the implementations. Since I'm certainly not a Web 2.0 god, nor do I intend to become one, I have no idea how to make sure that no events are lost (for example when bugs fall off the main RSS feed during a mass filing), so I'd like input here, as well as on which events should be tracked and how to synchronise with multiple upstreams (which may be important for derived distributions).

7 November 2006

Simon Richter: Reusing code

A feature I'd like to see in an SCM is a refactoring aware merge tool. When I have one branch that has had most namespace, class and method names changed (I used to use CamelCase), merging another branch into that doesn't work well, because there are a lot of scattered little changes that each inhibit changes for a few lines before and after. Given enough discipline on behalf of the person doing the refactoring (in my case, me), the commit that introduced these changes can be reduced to a set of substitutions, which then can be applied to the last version in the branch being merged, and this should reduce the conflicts to a small few (mainly whitespace changes, probably).

3 November 2006

Simon Richter: Personality analysis, step one

I love solving chicken-and-egg problems in the most complicated-but-correct way possible. That is all.

Simon Richter: Optimisation

The correctness of an optimiser in a conforming C++ implementation is defined by the "volatile" keyword, that is, an optimisation is correct if it does not reorder, add or remove volatile accesses. However, people have come to rely on non-volatile accesses to be finished before a call to a function in another translation unit, even if you hand over a buffer which is then passed on to some external entity (syscall or hardware). Technically, this is undefined behaviour, since the compiler is free to identify the writes to the buffer space as dead stores and optimise them away. The correct way to fix the program is to declare the buffer volatile, but in a lot of cases, this requirement is too strong, for example in the case of TCP checksumming, where it is neither desired to force reading back the data, nor to build up the data in a temporary buffer and write in one go. What we'd need is something in between, that is ordered with respect to volatile accesses, but not internally.

1 November 2006

Simon Richter: Debian and/or Ubuntu in five years

So, the following package exists in Debian:

Package: update-manager
Version: 0.42.2ubuntu22-5

Now, what is this abomination? What does the "ubuntu" tell us? That this package was stolen from Ubuntu? That it has Ubuntu specific patches? Branding? Or that it simply is the same package that is in Ubuntu, and the maintainers saw no good reason to use a different version string in Debian? I prefer the last explanation, and believe this to be part of a greater trend. There have been a number of REJECTs because Debian simply does not have any releases codenamed "dapper" or "edgy", and people simply uploaded the package to the wrong upload queue. I believe the Ubuntu side also had a few uploads to "unstable" that their archive maintenance software could not process. Quite a number of packages are maintained by the same people in both distributions, and in most cases, it does not make sense to have packages differ at all. Even more disturbing, Ubuntu has been built for more architectures than they released edgy for, while some people in Debian are trying to reduce the number of architectures in the hope of getting towards a shorter release cycle, which Ubuntu has just admitted to be suboptimal for server installations by preparing an "LTS" release. So Debian and Ubuntu are becoming more and more alike. Now, is this a good thing, or would we all prefer that both keep a strong "profile"? And: if they are to grow together, where should we meet? I think most of us can agree on an installer with a big "expert" switch, and a lot of eye candy as long as you can deinstall it, but we'd also have to merge the respective communities, which is what I'd consider the more difficult part. Debian's NM process is quite different from the MOTU programme, and on both sides there will be "hardliners" (I consider myself one) who will push for their respective community's standards. Still to be filled remains the spot of the end user friendly distribution. I just got a call asking me to fix a printer setup, and, frankly, this stuff is *way* too complicated. Maybe a joint project, by members of the Debian and Ubuntu communities can tackle this?

Simon Richter: Idle? Nothing to do?

Yesterday I learned about nLite, which is a program to create customised Windows installation media, with additional drivers, certain questions preseeded etc., which is a great deployment tool. Now, debian-installer can be preseeded too, but there is no frontend that lets you do that comfortably; being able to add installer modules is the killer feature for OEMs wishing to ship a box with an installation medium. So this would be an interesting project for someone who wants to help Debian.

28 October 2006

Simon Richter: Peer pressure, again

Since everyone is doing it these days, I'm writing a wiki. It's a compiler for simple documents, with strictly semantic markup, but with a query language that allows database accesses.

Simon Richter: Another resolution

Perhaps this one could help: This is a contentless resolution. Voting will not have any effect
whatsoever. For this reason, the ballot only has a single option, and
ranking it as first will have the same effect as not ranking it
explicitly and thus placing it below the nonexistant other options.
As such, you have now gained two hours that you would have otherwise
spent reading the proposal and the various amendmends. Grab a beer. === Please do not delete anything between these lines ===
[ ] Whatever
=== Please do not delete anything between these lines ===

27 October 2006

Sven Mueller: Re: Wacky ideas #9: rerun maintainer scripts for changes in related packages

Interestingly, Simon Richter write about rerunning maintainer scripts for changes in related packages just when I thought that it would really be nice to get SpamPD (a SMTP-proxy in Perl which scans mails for spam using the Mail::SpamAssassin Perl module) restarted when SpamAssassin gets updated. Or to get spamd (which is part of SpamAssassin) restarted when a plugin is updated, removed or installed. Of course the second one is easier since the plugin package “knows” that SpamAssassin is affected by the change and can thus reload/restart spamd.
One idea I had for this is to create a hierarchy to which an admin or maintainer could add scripts (effectively providing hooks), like this:
/var/lib/dpkg/hooks/<package>/(removal update install)/(pre post)/<hook-package>
Where <hook-package> would be the package installing the hook while <package> is the package for which the action is to be “monitored”.So that I as the SpamPD maintainer could make the spampd package install a script in
/var/lib/dpkg/hooks/spamassassin/update/post/spampd which would get called whenever spamassassin is updated, after the update, to be exact.
An alternative on per-package basis would of course be:
/var/lib/<package>/hooks/(pre post)inst/<hook-package> or /var/lib/spamassassin/hooks/postinst/spampd for the above example. I would be quite intested to hear what other devs think about this.

Simon Richter: Teardown

Scott writes about "teardown", an effort to not run daemons' init scripts' "stop" command when the system is shutting down anyway and all the script would be doing is to send a SIGTERM. I generally like that, not because I'm a speed freak (in fact, I use the shutdown procedure really seldom), but because it forces people to write clean applications that can deal with failures in other applications better. When I'm no longer guaranteed that the database connection is still around when I'm sent a SIGTERM, then I have to design my database so that I can easily recover when my daemon is started up again.

Simon Richter: Wacky ideas #9: rerun maintainer scripts for changes in related packages

Currently one thing that is really annoying for everyone is that all services need to be restarted when we upgrade libc, especially when NSS has changed. It is the duty of the libc postinst to do this, so it needs to know about those services. So the idea is to allow a package to specify "call my postinst again when any of there packages is changed". Since I expect most packages providing a daemon to essentially list all library packages depended on, there might be an incentive to combine this with an earlier idea, splitting the Depends field into ABI-dependent and -independent, and just have a hint field "rerun postinst on reverse dependency upgrade"

26 October 2006

Simon Richter: Party

Tonight there is going to be a party at the Debian booth on Systems. If you are in Munich, you are invited to drop by; just be there before the exhibition closes at 6 PM.

25 October 2006

Simon Richter: Redirecting to the preferred hostname

Evan thinks that Planet Debian should redirect people to the preferred hostname, and gives a set of rules for mod_rewrite to do it. Since I got fed up with writing complex rewrite rules for hosts that exist in multiple TLDs and both with and without the "www.", I hacked up an Apache module that does this. You list the preferred hostname as ServerName and all the others as ServerAlias, and then set "RedirectToServerName On". The package lacks documentation at present, but on the other hand it is not that difficult to use if you can describe the usage in one sentence. :-) Update:Corrected the name of the option. Thanks to Jeff Waugh for pointing me at the mistake

Simon Richter: How to build an STL compatible container

Dear Microsoft, please find enclosed a checklist: [X] implement "begin()"
[X] implement "end()"
[ ] have a typedef "iterator"

23 October 2006

Simon Richter: Work and hobby

One thing I've wondered about for some time: does having a job in a computer related field help or hinder working on Debian (if you leave out those of us who are lucky enough to get paid for working on Debian)? I've noticed that on many evenings, when I get home, I don't want to sit in front of a tube for the rest of the day, but sleeping is impossible because I still have a head full of ideas.

17 October 2006

Russell Coker: more on clean energy

One new technology for saving fuel in cars is the 6 stroke engine. This is an engine that has two power strokes for every intake of fuel. The first power stroke is from the fuel burning, the second is from water being injected into the cylinder and boiling rapidly using steam for power. A significant amount of the weight of a car or truck engine is the cooling system. With water being injected into the cylinder after every burn the engine will require no other cooling, this can mean a weight reduction of up to 500KG for a truck engine! It is claimed that this technique can "improve a typical engine s fuel consumption by 40 percent". Note that this technique could be combined with the technology in a Prius for even greater efficiency.

Simon Richter wrote an interesting response to my blog about clean energy. I'm guessing that the part of Germany he's from is similar in some ways to Amsterdam (where I used to live).

In Amsterdam tiny cars are used a lot more than they have been in most places. There is the Smart Car but there is also a tiny car that can only seat one person (I'll update this entry with a link if someone provides me one). The tiny car appears to weigh ~200Kg, has a maximum speed of 30Km/h, and is narrow enough to fit in bike lanes. Such cars will take little petrol and can be used for shopping. The short-distance car idea is being used by many people already in northern Europe.

Simon suggests having a standard baggage container that fits in all cars. I don't think that would work as there are many different design factors (parking space, cargo capacity, and aerodynamics) which force designers to choose different shapes.

I think that a better idea would be a standard baggage trailer that could be towed by any small car. It should not be difficult to design a trailer that can be safely towed at 30KM/h behind a tiny car. The supermarkets could rent such trailers to shoppers for a nominal fee. Then most shopping trips could use the cargo capacity of the tiny car, but when buying supplies for a party you could rent a trailer from the supermarket.

Another option is having shops deliver goods to you. I have observed an increasing number of people doing this at my local supermarket. Of course you would still need to take ice-cream home yourself and maybe milk and meat too.

Electric scooters are also a good option for travel. Unfortunately in Australia there are few good options for securing them at the moment. As an electric scooter is light enough to be carried it needs to be chained to something secure. In the Netherlands this wouldn't be a problem as the bicycle infrastructure includes plenty of bike racks to which you can chain your bike, scooter, etc. Of course the Netherlands is entirely flat so there's no need for an electric scooter. Melbourne has a lot more hills and most people aren't fit enough to ride a bike so scooters are needed to replace cars.

Regarding depersonalised cars. That would require a significant social change as currently cars are extremely personalised. One thing that I had been thinking about is the idea of sharing cars with neighbors. For example if you have an apartment building and there are a few people you trust then you could share a tiny car for going shopping. Sharing a car used for driving to work or for entertainment would not work well as the car would spend most of it's time in use (or at least parked somewhere away from home). Sharing a car that's used for small journeys would be much easier as such a vehicle would spend most of it's time at home.

In Australia most families have two cars. One is used a lot (spends maybe 70 hours a week away from home) and the other is used much less (maybe 10 hours a week). Instead of owning two cars it would be possible for families to own one car and share another.

Regarding the Pebble Bed Reactor, could the people who advocate it please read the Wikipedia article. The limiting factor is not thermal expansion (solids do not expand nearly enough) but the Doppler effect (fast neutrons are not as effective at triggering fission). But in spite of that issue, let's not consider an untested new reactor design to be the savior of nuclear energy. I think that most people who read my blog have a science or engineering background and know from experience that new technologies often don't work too well in the first version. When a new CPU has a bug it's usually not a big deal. When a new OS or application has many bugs it's often expected (expecially when the OS or application comes from a monopolist). But if a new design for a nuclear reactor turns out to have a bug then it will be a more serious issue.

Simon Richter: Databases for non-dummies

I took on the daunting task of deploying a content management system for my fraternity; most of the concepts are pretty clear already (wiki plus moderation system), but we also need database lookups on some pages. The general idea now is to have someone with database knowledge set up views, and to use a template in the wiki to reference it, but in a number of cases, the people writing the wiki pages, who are not used to working with databases, might need to adapt the query (limit something to a time period, select fields, etc.). So I'm looking for ideas for a presentation layer that eases writing selection and sorting criteria for non-computer-scientists, without dumbing it down too much (after all, the target user group comes from an academic setting, so abstract concepts are not a problem, but a steep learning curve is).

Next.

Previous.