Search Results: "Erich Schubert"

27 April 2006

Erich Schubert: AppArmor receiving it's share of critique

By finally coming forward and "applying" for inclusion into the mainline kernel, AppArmor finally has to face critique on it's approach. And it seems that it's being beaten up quite a bit. I don't think there is anything in AppArmor that you can't do with SELinux just as good (Yes, SELinux does use labeled files to work around the hardlink issues, but guess how these labels are assigned initially? By pathname. If you have a hard link with two different labels, only one of them will stick.). You can in fact "learn" your SELinux policies just like AppArmor. That's called audit2allow, and it is frowned upon for good reasons, and only considered to be okay for interim solutions. There are also tools in development to produce meaningful policies, that is where SELinux really sets itself apart from AppArmor. In AppArmor, you specify for each "confined" application which files it access (and which capabilities), usually by learning these. On SELinux, you basically divide your system into meaningful parts (e.g. logfiles, user mail, user web files) and then specify which kind of access an application is to be granted. This manual part, deciding which access is allowed, is a big feature. Apparently the AppArmor thunderbird policy has "learned" the setuid permission for thunderbird, which I consider a very bad idea. You can't just learn everything while application may have bugs (or workarounds, or security nets - e.g. it might try to setuid and quit if it succeeds!). And despite some claims, SELinux does not require you to have a policy for everything on your system. Only in "strict" policy, whereas if you use "targeted" policy, you'll have a so called "unconfined" domain, too. The AppArmor approach reminds me a lot of what grsecurity 1.x ACLs were doing, back with some 2.4.x kernel. It never worked too well for me, that's why I can't say much about newer grsecurity versions... but to me, grsecurity sounds a lot better than AppArmor. Much more mature.

Erich Schubert: Samba break? Cool! Oh, that Samba for Windows compatibility...

You know you really don't care about windows when reading about an "annual Samba break" sounds like a good idea to you, until you notice he was not referring to dancing.

26 April 2006

Erich Schubert: What the web 2.0 is made out of

Share your search 2.0, create and manage your social news to upload photos online! As pointed out by Benjamin Hill, dropping this list of web2.0 companies into a word frequency counting tool such as this gives the following interesting statistics:
226SHARE
166YOUR
97SEARCH
712.0
50CREATE
50MANAGE
50SOCIAL
49NEWS
46MASH-UP
44TO
44UPLOAD
42PHOTOS
41ON
41ONLINE
40FIND
36BOOKMARKING
36FOR
30PUBLISH
29STORE
That is what the web 2.0 is made out of, only one keyword missing here: hype.

Erich Schubert: GNOME UI oddness

Despite having usually a very clearly laid out and intuitive UI, this time GNOME was very odd... I had added a network connection via the "Places" menu. That was very easy (except it didn't connect when I pressed connect, but just created a new connection). But that connection has been sitting in my menu since then, and in the "Computer" view of nautilus, too. So I wondered how to get rid of it. After trying around a bit, and even looking in the .gnome folder, I gave up and asked on IRC for help. Getting rid of them is actually quite easy - just open the "Computer" view in nautilus and "unmount" them (even if you never actually used this "network bookmark") This is something the GNOME UI people really have to redo. You can't rename them for some reason, you can copy but not paste them, and to delete them you have to unmount them? WTF? Oh, and they don't appear in the "Network servers" view, but are local to your computer?

25 April 2006

Erich Schubert: More thoughts on XML differencing

Last year, I gave a talk on XML differencing at the Extreme Markup Languages 2005 conference in Montr al. Since then I didn't have much time to work on that project. The prototype app is opensource, and available at ssddiff.alioth.debian.org. The slides are there, too, and so is a link to the article. XML differencing is actually a two phase process; I've been mostly working on the first phase. Traditional approaches intertwine the two phases. In the first phase, you build a mapping between the two documents. I called this a "nodeset correspondence" in the slides. Basically you decide which node from the first document corresponds to which node in the second document. When you have found this mapping (the "marked" output writer of ssddiff will output this information in form of two XML documents marked with numbers in a certain attribute), the actual differencing is done. But much of the work remains. When doing a diff, the output (format) is just as important as the actual result. While the "marked" output explained above is very precise, it doesn't give the user an overview of what has changed in the document. That's why I added two more output writers, the "xupdate" writer and the "merged" writer. The "xupdate" writer does obviously produce an XUpdate script. It goes a long way to optimizing the output (read: minimizing the number of operations), and employs a longest-common-subsequence algorithm for that (LCS is what regular diff uses on lines!). Fortunately we already have a 1:1 mapping, so this boils down to a longest-increasing-subsequence which can be computed very efficiently. Then the writer employs some XUpdate tricks to do real moves (by storing parts of the tree in variables to be inserted later), and avoids collapsing of text nodes (it will eventually insert dummy nodes for that). But all this gives just a glimpse of the complexity I've encountered in what I considered to be a "remote" part of my project. It isn't even described in the paper, because I just hacked this code together to work somewhat (attribute handling is incomplete IIRC). The "merged" writer turned out to be much more powerful than I had imagined and actually rather easy. After "merging" two version of an HTML document, I could add some CSS rules and have a visual presentation of the changes in my browser. Very cool. I'd love to add this html merge functionality to the prototype, but I didn't have enough time yet (you'll find some refactoring of the merged writer in SVN though to get there someday). But let me get back to the difficulties in the "XUpdate" writer. Not all of these difficulties are actually of technical nature. It is (like with the semantics of differencing) a matter of the intended data model and use. When you are doing a diff to be applied by a computer (e.g. via XUpdate), you may have the requirement, that the resulting document is identical to the original document. In that case, the diff is likely to have to restore whitespace. If you are interested in analyzing the differences, you will want to skip any irrelevant information. Let's assume we have an address book:
<abook><entry name="tom" /><entry name="jerry" /></abook>
Ordering of the entry nodes is likely to be irrelevant. You address book applications will sort the entries on demand. So a "semantic diff" shouldn't include any changes to the ordering of "entry" nodes, should it? The XUpdate writer doesn't have any functionality in place to skip such changes from being written to the output file. This will likely be not possible without some DTD magic and extra user information. However, to have the benefits of the "-u" context option of good old "diffutils" - fuzzy matches, and somewhat reliable merging of changes without having all revisions available - such semantics are needed, too. But this will even further increase complexity of the output writer, which for example would need to detect somehow that the "name" attribute in my address book is a unique key, and therefore xpath expressions like /abook/entry[@name='tom'] are preferrable to expressions such as /abook/entry[1], which will easily break when merging. The specification of an "XUpdate-replacement with context information" is probably a whole thesis in itself, I guess. P.S. I'm occasionally asked about a Java version of ssddiff. Sorry that I have to disappoint you there. First of all, I'm very short of time. Then I'm not too comfortable in Java, and I estimated that the Java version would need at least twice as much memory, because of certain optimizations I can't easily access in Java that I can just hide in a template in C++. And memory is the key limiting factor at least in exact mode.

Erich Schubert: Another one bites the dust

Another friend of mine is taking down all his pages, after being sued (or more precisely: threatened with a cease-and-desists order) for having had (back in 2004) a small map excerpt for a meeting of a NPO. Less and less people dare to put up webpages, for various reasons. The threat of lawsuits is a popular reason, the other is that someone (read a would-be boss) might google for them and find something he doesn't like. It sucks that lawyers and MBAs are ruining the web that we're so used to. "Information society" will never happen. It will have become a "lawyers society" before that. And less and less information will be free. Especially accurate information (no, I'm not only referring to the white house "there are good leaks and bad leaks").

24 April 2006

Erich Schubert: RSS needs threading.

Please correct me if any of RSS/Atom/etc. do already have threading. On a mailinglist I'm on (large number of subscribers, and often threads become quite long but only interesting for like 1% of subscribers, but with days with now new mails inbetween) there is a discussion every now and then by people who'd prefer a forum. A forum however is a totally non-working solution. First of all, web UIs (even Ajax, Web 2.0) suck. None offers threading as comfortable and smooth as a real email reader such as Evolution or Thunderbird (Outlook seems to have quite bad threading, or disabled by default, thats why many novice users think forums do better threading...). Secondly, a forum requires you to frequently visit it, whereas email will patiently sit in your email folder waiting to be read, just like your regular email. That is much more workeable with an increasing number of lists/forums. You can easily be subscribed to 20 mailing lists. Can you imagine visiting 20 forums every day? Even with smart browser (e.g. Galeon that can open a bookmark folder into tabs, did I mention IE sucks?) this is quite a pain. Now imagine that some of these forums are inactive for weeks. Visit the forum just to see that there are no new posts? Now RSS comes into mind. But for a Forum? Should it list every post? No, it needs to have thread support, so I can easily kill whole threads. Or I'll just stick with email and tell everyone who wants a forum to fishing. Or write a forum with reasonable email support. Oh, and RSS doesn't solve the writing problem either. No, RSS is not the answer. Email is. Update: A couple of people have send me emails about NNTP/Usenet/News. While there are excellent clients for it available, and the distributed nature is also a nice feature, it also has drawbacks. For example, you basically need to setup a separate service (especially if it's a private newsfeed, and you can't use gmane), which is much more difficult that running a mailing list or a RSS feed. You can run a RSS feed with basically any provider. You can get a private mailing list with many. Then you usually need to setup a new profile for each NNTP server, because it's designed totally around the server model, not single groups. Furthermore, while you can usually access RSS feeds with your regular web browser (in form of their HTML counterparts, or some built-in filter), and mailing list with your email program, users need separate software for using News at all. (Granted, many email clients can do news) Oh, and then people seem to be afraid of NNTP, unfortunately.

22 April 2006

Erich Schubert: Debian quality assurance

Some time ago I blogged about what I think sets Debian apart from other distributions. Here's another posting of that sort: Debian goes a long way to ensure quality of packages. I don't know what other distributions do to keep packaging quality high, but Debian does lots of stuff. (Well, Ubuntu probably uses the same tools ;-)) For example, meet lintian and linda. These two tools run a set of sanity checks on any package (usually the maintainer runs lintian when building the package, but they are independently checked, too). The sanity checks include Debian policy checks, checks for missing manpages, some linking tests all the way to testing for common spelling mistakes. Getting a package "lintian-clean" usually requires some extra efforts by the maintainer - cdbs, debhelper and other build tools can't just do everything automatically. So it is good to have lintian run some final checks.

21 April 2006

Erich Schubert: More on Rockbox on my iAudio X5

So after a using rockbox on my iAudio X5 I must say that I am impressed, and I'll likely stick with the Opensource Firmware, instead of the Vendors'. Battery life with Rockbox is slightly over 6 hours. On a one year old X5, so not on the L version with extra battery life. I obtained this value using the battery bench plugin, and playing shuffle over my whole collection. I've heard that for "vendor benchmarks" they usually choose 128 kbit mp3; my collection is mostly higher bitrate, and Ogg Vorbis is also more CPU intensive AFAIK. Crossfading also takes extra CPU cycles, for a fair benchmark I would turn that off, but I wanted to know this value for my everyday use. This very likely is less than with the original firmware, but enough for me. In fact, I even forgot turning off my player in the afternoon, and the battery still held until I got home. And like one extra hour. Sound quality is excellent, but I'm no audiophile. It's just that I really like the way it sounds. Although I couldn't hear any difference with the EQ turned on or off (is it already implemented?). But I don't care. ;-) I managed however to crash the firmware once or twice these days in the menus. Can't really say when, only that it was when going to the system settings from some file properties or so. But it's still beta, so maybe this is already fixed. ;-) Guess the crash did cost me a few extra minutes of battery life. There is some oddness in the navigation due to the wide range of platforms supported. For example the battery benchmark app claims you need to press "play" to start, but that is in fact clicking the stick, not pressing the real play button on the side of the display. Having the player display the next track in queue also was nice: when I didn't want to listen to a certain track I could sometimes skip the next one, too. Display poweroff is also nicer with rockbox - the Cowon firmware used to low-light the display first, then turn it off completely. That seems pointless to me, and annoyed me a couple of times, actually.

20 April 2006

Erich Schubert: Ubuntu release names: where is crispy calamari?

At first sight, their naming scheme seems to follow a pattern:
Breezy Badger, Dapper Drake, Edgy Eft
I've been asked a couple of times, what the "C" release was named. But there was no "Chaotic Canine" inbetween, nor a "Crispy Calamari". The two "missing" release names were "Warty Warthog" and "Hoary Hedgehog". I wonder if they'll stick with some obvious scheme like the alphabete from now on... the names are odd enough as is, I think it would be nice to have them follow such a pattern.

Erich Schubert: Summer of Debtags Code?

I've added two DebTags projects so far to the Debian Summer of Code page. Maybe we'll add some more, I'm waiting for feedback. The projects so far are:
DebTags database rewrite
the current central debtags database (the first "packagebrowser") has come of age, and is in desperate need of a rewrite and the addition of new features. It's still hosed on a woody system that should have been shut down years ago.
DebTags AI tagger
this will likely be a very popular project topic. I've already had two people expressing interest in doing this. The goal is to apply AI mechanisms (e.g. bayesian filters) to collected package information (description, readme, DOAP data, freshmeat info, sf/alioth/savannah/... info, documentation files maybe?) to guess which tags are appropriate
Maybe the second project will be split into two parts; one doing the main AI tagger work, the second working on a UI for editors to very the AI tags. Bringing that back to the central database, which will also need a review functionality. The AI tagger project is very interesting, I wished I had had time for that myself. Benjamin already worked on it a bit last year. But there is so much you could do with that codebase... Grab the top tags from DMoz or Del.icio.us and use them to train your AI. Then start classifying webpages with that. I guess with some crawling work, you can extend the ~5 Mio links on DMoz to a reasonable directory with 20 Mio Entries. Now imagine a user interface like Debtags enhanced search by Enrico. I really need to complete my studies and found a web2.0-company to sell to some search engine company for tons of money. ;-)

Erich Schubert: Well tested hardware?

We had trouble with a serial-ATA raid controller in a windows server. Write performance was exceptionally poor, so we contacted the manufacturer. We now received the following second followup:
Sorry for late reply.
We have test the AEC-6897 R5 performance.
The test result is simular your description.
Sorry for your inconvenience.
Well, thank you for acknowledging that write performance in a 7+1 SATA RAID5 is just 2.5 MB/s, after we had been stating that switching to RAID 0+1 is not acceptable for us. Now, do you have a timeframe when a working bios for your controller will be available? However, when you produce a RAID 5 controller for 8 drives, don't you think the 7+1 setup is, well, an obvious choice, that should have been tested for write speed before? :-(

18 April 2006

Erich Schubert: Opensource Software on my MP3 player

My iAudio X5 player now runs Rockbox. Installation was fantastic. Just copying some files via mass-storage. I found navigation in rockbox hard to get used to (took me ages to find the full settings menu, the way I've found is like this: while playing, press the joystick a second, then press the record button.), but the info screen is very nice: There are different themes for the playback UI, which include information on the next song to be played. Very nice. I'm looking forward to UIs that make use of the color screen. Rockbox offers tons of features not available in the original firmware. Rockbox is said to have gapless playback, I prefer its crossfading. Replaygain is also available. But even if some of that is not yet working: use the source, Luke! I can't comment on the battery life yet, haven't used it on battery yet. This will obviously be a key factor; but the player has a battery life of up to 15 hours, so I used to recharge it only every other week. ;-)

Erich Schubert: Bad plug + bad adapter + el cheapo adapter = works

I bought my MP3 player in the US, so it obviously came with an US charger. Figures I didn't think of buying an adapter there, and somehow I couldn't find a cheap adapter here yet. The charger doesn't say it can do 230 V, but according to the manufacturer it does. And someone has opened one, the chips can. We have some standard adapters here, but they don't fit. You can plug in some US devices, but not this one: the charger's plug (crappy US electrocute-yourself "standard"...) is just two metal stripes coming out of it. The adapter's socket however is inset about 1 cm (which is reasonable for safety purposes, and common, if not required in Europe), and the charger obviously is too wide to fit into the adapter... The workaround I've found is funny: I still have an adapter I bought to plug European devices into US sockets. This cheap adapter ($1 or so) can also take US plugs. If I put it inbetween I can make up for the inset. So it's US-Device goes into a tiny most-to-US adapter, which goes into most-to-European adapter. Wikimedia Commons on power plugs and sockets, including the sane german/french models (aka CEE 7/7 "Schuko" plug, CEE 7/17 Europlug)

16 April 2006

Erich Schubert: More on Wikipedia

Marc Haber replied to my "we need a verb for wikipedia" posting on IRC. He's right, we actually need two.
to wikipede
to look something up in wikipedia, an encyclopedia or a wiki
to wikipedize
to prepare something for publishing or to publish something in wikipedia, another wiki and/or an encyclopedia
How about these?

Erich Schubert: More on brands

In this weekends newspaper was an article on brands in fashion. That the big brands are going down, and instead smaller brands are coming up. This was explained with people wanting to be "hip" and faster than the trend. "Cutting edge". This is very interesting, since Google basically defied this trend. Google started as this "insider tip" for search engines, back when everybody was using Altavista, Yahoo, Hotbot and such. Back then, Google was "hip" because of it's simplistic interface and quality, and meta searchengines such as MetaGer. Many of these search engines from back then have gone away. And Google has become a really big brand. Using Google is not "hip", everbody does use it. So what is it keeping people this loyal to the Google brand, and not going for new "hip" stuff like ExaLead. Another counterexample are iPods. I didn't buy one, because everybody does (and it doesn't play my .ogg files, and doesn't do gapless playback) - but millions of people did. So iPod is another "old-style brand" that just popped up a few years ago. Will the same thing happen on the net that has been happening in fashion? The next big thing, will it be an influx of "lifestyle search engines"? Maybe built around top blogs like BoingBoing? Should companies try to buy their way into the top blog sites? Or are they actually more likely to kill them that way? Or is the net actually ahead, and big brands are coming back? But given that one of the key features of so-called "Web 2.0" is the social interaction thing, isn't the net just changing right now to add more "community"? Will it happen to operating systems and software, too? Apple OSX is doing well in becoming a "lifestyle OS". Windows can't. But how about the Linux UIs? KDE has tons of features, some people say it's overloaded. GNOME is going the other way, keeping things simple and easy - too simple and easy for others. What if we'd "lifestyle" user interfaces, and do the next step past "theming" - offering desktop OS styles like "power user", "hip and quick", "just let me get the work done quickly" and "less is more". I guess we don't have to workforce for that. Yet.

15 April 2006

Erich Schubert: Good brands, bad brands

One of the strengths of the Google brand is that you can turn it into a verb easily. You can just use "to google" instead of saying "search with yahoo" or "search with msn" sucks. Also the new brand by Microsoft, live.com, won't have this benefits. Just like "Windows" its a way to generic name. "To live" doesn't have this ring. Debian users like to "apt-get firefox" instead of "installing" software, because that is so easy with this tool. We definitely need a verb for Wikipedia... "to wikipedize"? Oh, and I wonder when Google will release the "G-Spot"... maybe they'll use that brand for their to-come WiFi in San Francisco?

Erich Schubert: aI'kea headquarters located!

Bush has finally located the aI'kea headquarters. They're in lmhult, Sweden. The military operation will begin any day now. ... unless, of course, someone with a cluebat comes along and puts an end into this "war on terror" madness.

Erich Schubert: Weird font bug

font bug screenshot This weird font bug (notice the grey dots next to the upper prompt) has been around for some months now. I couldn't reproduce it in xterm, I've been seeing it in gnome-terminal for a long time now. I've only seen it with single bold > and < chars in the DejaVu and Vera fonts so far. Maybe these characters are too wide, and the antialiasing wraps back into the character cell? Focusing sometimes makes the bug disappear, sometimes not. Even (as in the screenshot) sometimes only for some of the prompts on the screen.

13 April 2006

Erich Schubert: Debian mascot

Recently, on IRC, someone asked what the mascot of Debian would be, if it had a mascot. It can't be a penguin, because we also have kFreeBSD and hurd. My guess would be a Hydra. It has way to many heads, is a huge beast, and bites. Oh, and it was defeated by firing flaming arrows into it's lair. Sounds much like Debian doesn't it?

Next.

Previous.