Search Results: "Erich Schubert"

7 March 2006

Erich Schubert: LaySVN rewrite

Today I've rewritten most of my "laySVN" layered subversion tool. Tests had shown that most of the time was spent calling the "status" command of the underlying subversion client. This is probably due to locking, and the workaround is pretty simple: avoid calling it on single files, instead run it on the whole repository at once. This of course requires major changes to the code, so I've started a rewrite. I've already applied for a alioth project for it, I'll make the source available via svn.debian.org soon. "Layered subversion" means that you basically checkout multiple subversion repositories on top of each other. A file found or ignored in an "upper" layer will not be checked out in lower layers; ignoring a file in a layer will effectively "hide" it if it were in lower layers. This is an interesting alternative to branching. In branches, you have to "carry forward" changes from one branch to other branches. The base case - merging changes from a "lower" layer into an "upper" layer is usually quite easy. The other direction can get quite messy however. Assuming that multiple files were modified in the checkout, how are you going to commit these changes to the correct branches? Basically you'll have to commit the files to the correct branches, then do the merging magic. Along comes laySVN, where this common usage pattern is much easier. Changes will automatically be committed to the highest "layer" the file is in. A checkout will update the file to the version of the "highest" layer. The only case which is a bit more complex is when you want to make changes to a file on a different layer. Then you actually have to "add" the file to the appropriate layer. Not really difficult either, is it? A different name for "layered subversion" would probably be "difference branches", which are very similar.

Erich Schubert: LaySVN speed gains

The LaySVN project on alioth was approved, and the LaySVN subversion repository is created and populated. The rewrite came along nicely the last hour, the "status" command is now working on a repository-wide level again. The expected speed gains worked out just fine: on my real-world test repository (3.6 MB of data in it, this is /etc of a server I run) it now takes just below 1.5 seconds as opposed to 21.5 seconds before. I didn't run a profiler yet, obviously.

5 March 2006

Erich Schubert: LaySVN rewrite

Today I've rewritten most of my "laySVN" layered subversion tool. Tests had shown that most of the time was spent calling the "status" command of the underlying subversion client. This is probably due to locking, and the workaround is pretty simple: avoid calling it on single files, instead run it on the whole repository at once. This of course requires major changes to the code, so I've started a rewrite. I've already applied for a alioth project for it, I'll make the source available via svn.debian.org soon. "Layered subversion" means that you basically checkout multiple subversion repositories on top of each other. A file found or ignored in an "upper" layer will not be checked out in lower layers; ignoring a file in a layer will effectively "hide" it if it were in lower layers. This is an interesting alternative to branching. In branches, you have to "carry forward" changes from one branch to other branches. The base case - merging changes from a "lower" layer into an "upper" layer is usually quite easy. The other direction can get quite messy however. Assuming that multiple files were modified in the checkout, how are you going to commit these changes to the correct branches? Basically you'll have to commit the files to the correct branches, then do the merging magic. Along comes laySVN, where this common usage pattern is much easier. Changes will automatically be committed to the highest "layer" the file is in. A checkout will update the file to the version of the "highest" layer. The only case which is a bit more complex is when you want to make changes to a file on a different layer. Then you actually have to "add" the file to the appropriate layer. Not really difficult either, is it? A different name for "layered subversion" would probably be "difference branches", which are very similar.

Erich Schubert: Google blogsearch and old/bad data.

Google Blogsearch suffers a lot from having old or bad data (including spam) in it. I have the impression that they are waiting for new pings by blogs who have pinged them before - but when deleted, these blogs won't ping them any more. With pretty much any search term, I've found spam entries in there. :-(

2 March 2006

Erich Schubert: SSDDiff autotoolized

I just managed around to learn the very basics of autotools, and as a first execrise, used them on my "SSDDiff" xmldiff application. So you can now build it with the usual "./configure && make" command (if you have C++ STL and libxml2, that is, but these have been really standard for years now) So there is a new tarball on the Alioth project page which should be a lot easier to install. Get it while it's hot. ;-) A few words about ssddiff: SSDDiff is an "diff" application for XML files, which can output into a "merged" format, "xupdate" diffs or "marked" versions of the source files. The algorithm used is very good at dealing with structural changes, but it uses rather much memory and is not the fastest. So it's a good choice when you have a difficult case (one could say it tries to do a "semantic diff"). If you have CVS files or database tables dumped to XML, use other tools.

1 March 2006

Erich Schubert: Hello, Planet SELinux!

Planet SELinux Hello, Planet SELinux. The SELinux part of my blog is now syndicated there, too. I really appreciate SELinuxNews and the new planet. This means that some of my recently raised concerns are already being tackled: fight AppArmor by community support, too, not only technical superiority. ;-)

Erich Schubert: Microsoft GTA

So Microsoft has released a new AJAX toy, currently on preview.local.live.com. It's not particularly new, though. In one pane it's like Google Maps, overlaid with a car image, in the other pane it's like Amazons local search. I wonder if they actually licensed Amazons imagery for it. I'm impressed: it works with firefox. But it's rather slow (seems like they are not doing view image preloading, like with the map). The final version will probably be called Microsoft GTA: Reality, and if they manage to add gore after you've driven over pedestrians (who is this guy, anyway? Did he give the permission to be included in this toy? is there no privacy in the US?) when going down one-way-streets the wrong way, it can probably even become a big seller. More likely they'll give it away for free, not making any money with it.

28 February 2006

Erich Schubert: On AppArmor vs. SELinux

Some might have read recent news such as Novell SELinux killer rattles Red Hat, or Dan Walsh's critique of Novells AppArmor release, concerned with "unix like fragmentation in the security sector". While I also do think that SELinux is both more mature in the core system and more powerful than AppArmor (with a big plus being that SELinux is in the vanilla kernel) - I do think that AppArmor can quickly become a true SELinux killer, by just being better documented and easier to use. SELinux has serious deficiencies in documentation and development community. Almost all the available SELinux documentation is based around the policy as published by the NSA, which is "superseded by the reference policy project". This is the policy currently in Debian and used in the Gentoo SELinux docs - which hasn't received any updates in months now. The newer "reference policy" is updated every few days, by exporting Tresys' internal SVN into a public CVS on sourceforge. Dan Walsh claimed "multiple distributions shipping with SELinux including Fedora Core (2,3,4 and soon 5), Red Hat Enterprise Linux 4, Gentoo, Debian, Ubuntu, Suse and Slackware. " Which is not entirely true. SuSE has AppArmor now, Fedora and RHEL are pretty much the same, and apparently neither Gentoo, Debian, Ubuntu or Slackware are up to date with SELinux. Or actually involved in the current development. So that basically makes 1 distribution using current SELinux and 1 distribution using AppArmor... Looks like a tie to me. Also with the development it's pretty much down. AppArmor was developed by a small company called Immunix, and is now backed by big Novell, owner of SuSE. Current SELinux is mostly developed by a small company called Tresys, and somewhat backed and used by RedHat. Both have the feeling of "closed door" commercial development, which may be the reason why it reminds some people of the old Unix wars. Both of course claim to do an open development, with for example the current SELinux Symposium. But if you look closely at the Agenda and the speakers, it's fairly obvious that this is pretty much a business meeting, with some university speakers talking about the security concepts used. Just one quote from the site:
Developer Summit
An invitation only meeting for the core developers of SELinux to discuss future plans for SELinux and upcoming technologies.
The winner of this "war" between AppArmor and SELinux will be whoever manages to incorporate community development best, and get the other distributions like Debian, Ubuntu and Slackware to support their efforts. Currently neither of them has the air of actively supporting them, which is really bad. Widespread adoption is also where grSecurity has failed before.

Erich Schubert: SELinux packaging and policy team

I'm trying to put together a SELinux packaging team for Debian and Ubuntu. Current SELinux is still a major pita to get running... so we need to join our efforts in adopting policy to our needs and such. Upstream development is of an rather "uncooperative" model: both the selinux libraries and the reference policy are updated by a single person each, by exporting an internal VCS to a public CVS on sourceforge. If you want to add patches, you always have to send them through a mailing list, and hope for them to appear in the archive sometime soon. Or not. While this works okay for the libraries and utilities - which are fairly stable by now - I have doubts that this is appropriate for the policy. Given the amount of fixes/additions we'll need at least for the reference policy, I think more people should have write access to a shared repository. For this I've setup a subversion repository on svn.debian.org, with currently two branches: unmodified upstream and a debian branch. Note that we might also switch to an arch repository, when some big contributors prefer so. If users of other distributions (Gentoo?) want to join, they are welcome to do so. They can have their own branch, of course, albeit I don't think it's really necessary (maybe I should have named the "debian" branch "alioth-trunk" or so...) Basically anything is okay with me, that helps the reference policy and SELinux in picking up speed. If you'd like to get write access, send me an email with your alioth user id. Given the "unmodified upstream" branch, it should be fairly easy to extract patches from our repository to be included upstream, too.

27 February 2006

Erich Schubert: Spam fun

Todays PhD comic is very funny. Another spam fun I like a lot is Make p*nis fast - combining the usual enlargement stuff with pyramid schemes. On a completely unrelated note, a german bird flu joke:
Treffen sich ein B r, ein L we und ein Huhn.
Sagt der B r: "Wenn ich br lle, zittert der ganze Wald." Meint der L we: "Das ist garnichts, wenn ich br lle, zittert die ganze Savanne!"
Daraufhin das Huhn: "Wenn ich huste, zittert die ganze Welt."
Translation:
A bear, a lion and a chicken meet.
The bear says: "When I bellow, the whole forest is afraid.". The lion tops: "When I roar, the whole savannah goes into cover."
The chicken: "When I cough, the whole world panics."

26 February 2006

Erich Schubert: Cool Flashmob

I never thought much of these flashmobs. But admittedly have never seen one in reality, so maybe they are a lot of fun. ;-) Still I'm fine that this hype has pretty much died. I havn't heard of them for years. I've just come across these pictures of a flashmob in japan in 2003 - where people dressed up as Agent Smith from Matrix. This one seems pretty cool, albeit many of the pictures are "group shots", and there are way to many people taking photographs on the photographs. The (staged) fights however add a nice note to it. And on overall it's much more of a "collective show", instead of just people doing random stupid things such as rushing all into one shop and going up and down the stairs. The idea is way cool. People wearing a dark tuxedo, then suddenly pulling out dark sunglasses and an earplug and run off to hunt someone at a special place... that must be so funny to see when you've seen the movie. I wish I were there to give some first-hand impressions.

Erich Schubert: SELinux policy a day

I've been writing SELinux policy these days. Again. This time for the Reference Policy. I didn't get any feedback back yet for my policy, which is quite disappointing. Still the number of violations on my systems has gone down a lot, so I might actually be able to run strict some time soon. Which would be a major step. Unfortunately, I still have a couple of things to sort out with the utilities. And every now and then there is a new violation - monthly cronjobs for example are not that easy to observe without playing around. ;-) The Debian/Ubuntu packaging group is growing, and that means it's bigger than the "pretty much nonexistant" it was just a short time ago. Recent policy files I've written (which of course still contain bugs): dpkg, apt, tor, amavis, clamav.

25 February 2006

Erich Schubert: Galeon goodness.

I've built new galeon packages from CVS (get them here), that have working typeahead find again, working password prompts (so you can login to websites again) and - working flashblock. This is love! How to install flashblock with galeon: Enjoy a world with (next to) no unwanted flash!

Erich Schubert: OpenVPN usage graph

I was about to write a similar script, but then used Google first. Rodolphe Quiedeville already wrote a OpenVPN plugin for munin. It uses an odd hard-coded statusfile name, but that is easy to adopt to your needs. Since I already use munin to plot several system parameters, adding the VPN usage in there is a really nice extension.

24 February 2006

Erich Schubert: Copyright infringing brilliance

I have posted the link to this flash before, but it still rocks... And I especially love this comment on it:
Seven hundred monkeys and seven hundred stolen copies of Flash have turned out a work of copyright-infringin' brilliance.
So, enable proprietary flash, turn up your speakers, prepare to rock and browse here. Click all the arrows. Heck, I can't even say which one I like best! I wonder who made that, and whether there will be a version two featuring even more copyright infringements. The Wikipedia entry on this song mentions a meme... - and it looks like Here is one of the originals. And there are tons more you would not have thought of. ...and explanations.

Erich Schubert: XULRunner broke my flashblock :-(

Debian recently switched from heavyweight mozilla to XULRunner as rendering engine for Epiphany and Galeon. This is nice, because it removes the dependency on Mozilla, which you can uninstall now (well, maybe sometime soon - eclipse still depends on mozilla). On the other hand, flashblock no longer works for me in Galeon, which drove me crazy the first time I hit Flash ads again. I hate that shit... I really need to find a way to disable them again. Maybe I'll just uninstall Flash entirely... Oh, and typeahead find is broken in both Epiphany and Galeon, but I don't really know whether to file a bug agains them or aginst xulrunner... ;-) Oh, and I sometimes can't login to GMail any more with Galeon, sometimes I can... seems like we have some things to do... :-(

23 February 2006

Erich Schubert: KDE never worked for me

KDE apps barely worked for me. For example konqueror crashes on every odd run (I guess it's more like: I need to start it twice). Skype, which also uses QT crashes in the current versions directly after showing it's main window, too (statically linked, so it can't be QT itself...) Sometimes it also crashes and it opens up the non-configured kMail to write an email with the backtrace. I think Gnomes bug-buddy does a better job on that, too, not popping up two overlapping windows... I was looking for a nice tool to organize my Ogg music collection, and amaroK was recommended to me. While amaroK started fine, it would stop updating it's screen when indexing my collection. And what I then hate most, is that I can't even type "killall amarok", because KDE applications seem to prefer chaning their name after start... Argh! I have to admit, that amaroks screen looks pretty. The player that impressed me most (both feature-wise and visually) was quodlibet, though, which suprised me with a nice fading current-track display including cover image. It used way to much memory for my liking though, so I'm back to using mpd with a tiny gnome app to display what is playing and access the playlists. So what I'd really need is probably a quodlibet-like frontend to mpd. ;-)

Erich Schubert: Google got slashdotted...

Google today launched it's Page Creator, offering you some hundred MB of storage for your webpage, and the service promptly was overloaded some time - Slashdot effect? It's back now, I just successfully logged in. ;-)

21 February 2006

Erich Schubert: Microsoft IE7 reviews

There have been a couple of Microsoft Internet Explorer 7 reviews. They all have one thing in common - they are pretty much dismissive. A couple of insightful postings: Some memorable quotes:
Is it just me, or does this look like a GUI widget test demo? 3 different styles of buttons, in various colors, in seemingly random arrangement. Tabs squished in between other semi-related buttons. - Leslie Michael Orchard
my god, they've made XP's Fisher Price look good
Apparently, IE7 still has only limited support for the current web standards such as RSS (yes, it can display the headlines, but it's totally useless as RSS aggregator), XHTML (you know, this six year old HTML standard which plays nicely with XML) or the SVG vector graphics format you can use with Firefox or an Adobe Plugin to IE6 (which was recently required to see the graphs at Google Webstats, and will likely be used in new versions of Google Maps to further improve speed and display quality - on browsers that support it only, of course). The UI seems to be a test run for the next office generation - they've remove the menu... Oh, and it seems rather unlikely that IE will see such a big community with tons of extensions (you name it, someone already did it) like Firefox and Thunderbird do. Still it likely is an improvement of the current IE versions, which fail to adhere to pretty much any standard. But it won't be the big selling point for users to switch to Vista.

Erich Schubert: A better world

I believe in a better world, he said.
I don't gamble, she replied.
I wouldn't bet on it either, he replied, but it can't get any worse, can it?
We have to chose between bad and bedeviled, she replied.

I'd better go to bed. Tomorrow will be better, the author thought, and off he went into his bedding.

Beep, the alarm clock said.

Next.

Previous.