Search Results: "eric"

29 July 2006

Erich Schubert: Gentle introduction to SELinux (updated)

I've updated my gentle introduction to SELinux slides. I'm still improving them in numerous places, as well as writing more. Thanks for all the feedback I've received so far! (first announcement)

Erich Schubert: New ping of death for Windows?

According to this article on heise.de, there is new exploit code to crash Windows boxes remotely, like the famous "ping of death" in 199something. When you allow windows file sharing, you're vulnerable... Exploit code, as linked by heise. (Untested myself.) It's not yet clear whether a worm could use this vulnerability to spead; it certainly will not be as dangerous as the SQL server vulnerability, but it currently allows malicious users in your local network to crash your computer. Anyone at a lan party? ;-) On an unrelated note, watch this video (google) of a demo of Microsofts Voice Wreckognition technology in Vista. Very funny.

Erich Schubert: Web 2.0 is out. Here comes Web Twenny

Webtwenny.com is funny. Real Web 2.0 Captchas include non-Ascii characters. Maybe even non-Unicode. I also like the term "Web 2000". Because that is how new the "technologies" really are...

28 July 2006

Erich Schubert: On Amazon book scanning

Today was the first time I clicked on these buttons in Amazon that allow you to look at a few pages of a book. That is some Ajax application (which of course warned me first with some fancy schmancy Ajax popup, fading the window etc. that they only support Firefox, IE etc., ignoring the fact that Epiphanys rendering engine is, well, the same as Firefoxs'. I actually clicked the Ok button twice before it finally closed...) Anyway, what I want to share with you is a screenshot of some malfunction: Amazon look-inside disfunction So apparently they scanned the page word-by-word; often clipping the lower part (notice the missing parts of the p, g, y letters in most words). Some words have gone missing altogether (before "life"). However, the page appears to be a Jpeg image; you can see some compression artifacts around the words that are not my fault (you might need to zoom the image). So it seems like they disassemble the pages when scanning, then reassemble them to present them to the user. Sometimes messing up the background color, like in this example... interesting. Is there much data storage to be saved by merging word images and storing them only once? Are they reassembled on-demand?

Erich Schubert: On games

Lars, of course billard balls don't shoot back, if you hit them with a lame stick. Use some real weapons, and they'll probably shoot back. Try some rocket launcher. To me, the best shooter is the original QuakeWorld TeamFortress. Screw non-Linux-supporting modern stuff like counterstrike. It's boring. I think I never played any shooter beyond Quake3, actually. That one didn't care about being "realistic" (which sucks) but was about fun and arcade. Oh, make sure you don't install sgt-puzzles. Best make any local packages of yours (say... your self-compiled kernel with suspend2) conflict with it. It's just a couple of tiny games, with very simple rules. But they totally take over your mind.

Alex de Landgraaf: Debtag AI improvements, Thesis finally moving forward

To hell with all this warm weather. Begin this week my thesis supervisor got back from the States, so I've been getting a much-needed kick under the backside. My thesis is improving with leaps and bounds, and although I've got a lot of work left I've also got a renewed sense of direction. I should find a few minutes somewhere to document, package and upload my python GA-toolkit code, it's becoming pretty neat and allows easy linking of GA's together. Optimizing algorithms sounds boring, and it is, but 'parameter calibration using meta-evolutionary algorithms' has a nice ring to it. In other news, Erich too has given me a much-needed kick regarding the Debtags AI SoC project. I've modified the old ai-tagger to also include the directories each debian package contains: The results are interesting to say the least. Take for example kde-i18n-zhtw in the tagdb changes webinterface. It clearly should get the culture::chinese tag, as it's the KDE Chinese i18n package for crying out loud. Yet, the old tagger gives it a mere 0.0003. Not good. The new tagger? 0.99004. Remarkable what a little bit of extra meta-data can do...

27 July 2006

Erich Schubert: Gentle introduction to SELinux

I've been working on some introductory slides on SELinux. They're still far from finished. All I've written so far is some basic terminology, identities, roles, types. I also tried to show how this increases security, though that part is probably still hard to understand unless you know about common attack vectors. I havn't yet written about the actual policy, policy modules, all the fancy UI stuff available, reachability analysis etc. I probably will not do so: The goal of the slides is not to give an exact overview over how SELinux works, how to write good policy etc. I also don't claim to have all facts right - instead I want to provide an easy to understand overview over how SELinux works and why it is a good thing. I guess I won't even be flaming AppArmor. ;-) Thats why I picked the name "gentle introduction to SELinux". Remember, it's just a work in progress, "the best is yet to come". I really need your feedback (and encouragement -- there is still so much to be written). Get the slides as PDF here. Feedback is best via email -- erich AT debian DOT org. I intentionally do not have comments in my blog.

26 July 2006

Erich Schubert: Double your X5 battery lifetime

... at least when running rockbox. ;-) [Update: 15 hours, my > 1 year old regular X5, starting at a measured level of 91%, but which increased to 94% first ;-) So the battery lifetime gain is pretty much the factor 2.5] [Update: the X5 is sold as having 14 hours of runtime; which usually is a too high value, and measured with 128 kbit mp3 - I'm using lots of oggs, and mp3 up to 320 kbit; so I think the rockbox firmware actually uses less power than the official one!] So far, the biggest drawback of using the opensource Rockbox firmware on the iAudio X5 was battery life. I got only about 6 hours out of my X5. However, current CVS versions include a patch to solve this - apparently it powers down the USB OnTheGo chip and maybe the radio chip, too. Saving huge amounts of power. The unit also doesn't get warm anymore. My battery benchmark is still running (somewhere around 12 hours now I think); and in the forums, users have reported battery lifetime of 30 hours for the X5L version. So if you are already using rockbox you might want to upgrade; if you have been kept back by the bad battery performance - it's time to switch to rockbox now, and get all the goodies you've been missing for so long! That is: gapless playback, crossfading, album art, next song information, bookmarks, quicker startup, playback resumes where you powered off etc. I think I read about some audioscrobbler/last.fm plugin, too. Apparetly most iPod models are also supported, and rockbox has Ogg Vorbis support... one of the reasons I bought the X5 was vorbis, back then.

Evan Prodromou: 8 Thermidor CCXIV

Yesterday was such an insanely long day -- we woke up in a tent, had breakfast over a Treo, then released a lot of software and went to sleep in the middle of the night. It seemed like 4 days, not 1. And this morning I had to take our new mini-SUV into the shop for its first maintenance checkup. For the last 6 years, I've driven a beautiful old wp:Citro n DS station wagon, but around the time Amita June was born I decided I wanted her to learn to drive on it. Maj and I decided that that meant it had to be taken care of a little better, so I put it in storage and we bought at 2005 Hyundai Tucson. (The Hyundai people here in Quebec pronounce it like "Tux-awn", to our endless amusement.) It's weird having a new car -- like, newer than 1972. Parts are not only plentiful but inexpensive. There is a selection of multiple mechanics in my major metropolitan area that can service the vehicle. And people don't point and wave when you're driving, or stop you on the street to tell you stories about how their grandfather used to drive one on their family farm. We'll be driving the car to wt:Boston next week for Wikimania 2006, so I'm glad it went to the shop. It should be in good shape for the drive -- I hope the rest of us are. tags:

Slides Speaking of Wikimania -- I'm nowhere near ready for my presentation. Jeez, how'd it get to be almost-August already? Thankfully, no one else I've talked to is really ready to talk, either... so at least I'm not the last one to get my homework done. tags:

Software The OpenID software I did for MediaWiki went out yesterday, and I got a lot of good feedback on it. OpenID requires that some state data is stored between participating servers, and the code I wrote uses the memcached client built into MediaWiki to store it. Not optimal but it works. Well, better today than yesterday, that is. There were some pretty gruesome bugs in the implementation that were only showing up for some exceptional circumstances. So I adapted the JanRain unit tests for the other storage classes to my Memcached class, and that helped a whole hell of a lot for debugging. Yay, unit testing! Some people are still having problems with the software, though. The main thing I've found is that the key-value pair output required by OpenID for its inter-server communications is sensitive to extra whitespace thrown in. Why would there be extra whitespace? I've found that a lot of PHP libraries have bits of whitespace at the end, after the closing ?>, and that will show up in the output. Whether it matters depends on how sensitive the output format is to whitespace. In the case of OpenID, the answer is: pretty sensitive. But I'm looking forward to having some more people try the OpenID MediaWiki extension out. tags:

Wikipedia's 25th of July Spot-on satire from The Onion: Wikipedia Celebrates 750 Years Of American Independence. I quote:
  • "On July 25, 1256, delegates gathered at Comerica Park to sign the Declaration Of Independence, which rejected the rule of the British over its 15 coastal North American colonies," reads an excerpt from the entry. "Little did such founding fathers as George Washington, George Jefferson, and ***ERIC IS A FAG*** know that their small, querulous republic would later become the most powerful and prosperous nation in history, the Unified States Of America."
Does the fact that I find an Onion article funny say more about my declining humor standards, or about their recent improvements? I don't know. tags:

Four ideas I was very interested to see Tim O'Reilly's Four Big Ideas About Open Source. I think that there are some fascinating developments over the last few years that have fallen under the rubric of wp:Web 2.0, and I think they affect those of us who put our hearts and minds into Open Source software. I think this was part of his keynote at OSCON 2006, which, y'know, I'm not techically at or anything. It briefly crossed my mind, but I've got too much to do for Thermidor and Fructidor to flit off to yet another conference -- this one only tangentially involved with what I do for a living. Still, it's interesting that Open Source software and Web services are crossing paths. FLOSS has been critical for making Web services possible, but taking that up to the meta-level and seeking the same freedoms from Web apps that you expect from "regular" software... that's a Moebius strip of rights right up in there. tags:

My life as a toolbar So, sometime in the last year I started installing Firefox toolbars. The main one that's useful to me is Chris Pederick's excellent Web Developer Extension, jam-packed with little tools that make my job as a developer that much easier. But I also install, well, pernicious toolbars. Judgemental toolbars. Toolbars that make me forget what really matters and turn the Web into a horserace or a highschool popularity contest. They're horrible, and they're addicting, and I can't stop using them. The Google Toolbar has some diddly little useless gadgets that I don't give a shit about, like searching my Gmail account for the given search terms (whoopee). What I loooove, though, is the wp:PageRank indicator. PageRank, of course, is the patented algorithm developed by Google founder Larry Page to estimate the importance of a page on the Web. It's incredibly accurate and valuable and though no longer the only criteria Google uses for ranking pages, it's still critical as a measure of the intrinsic value of a page. So, there's this little wp:progress bar on the Google Toolbar that shows the PageRank of any page you're looking at. It's an apparently logarithmic scale from 1-10, with the number showing up in a popup tooltip. Creative Commons? 9/10. Ted's story about the great worldwide race? 2/10. Technorati home page? 8/10. Male Secretary? 6/10. Wikitravel's France discussion? 3/10. And so on and so on. Even worse is the A9 Toolbar, which (again) has a whole bunch of bogus boring features, but also shows the Alexa ranking of any site you're looking at. Alexa ranking isn't some egghead hooty-tooty algorithm about the importance of a page -- it's a ranking on the Big Board of who's the most visited site in the world and who doesn't matter in the slightest. So, I can see that Flickr is ranked #41 today, le Sans Fil is #347,296, and wikiHow is #2248. Alexa is a lot more coarse-grained than Google's toolbar -- it measures the traffic to a given second-level-domain, not a particular URL. So any LiveJournal or Blogger site gets LJ's entire Alexa ranking -- not very useful. Still, I've taken to thinking almost entirely in terms of PageRank and Alexa rank. It's unreasonable. Every site I go to, my eye drifts up to my toolbars to confirm my idea about it. Do I really like Achewood? Sure, but it's only got an Alexa rank around 20,000... Doc Searls's blog has a PageRank of 8, which is really impressive; but... my page for 22 Prairial (Journal/22 Prairial CCXIV) apparently has the same PageRank. Holy moly! Why could that be? (I think it has something to do with the wp:Law of 22 Prairial, but I could be wrong.) Really, putting these numbers on everything is ruining the Web for me. It's turning me into a total jerk, too. I kinda want to go back to the time when I just found stuff on the Web and didn't think, "How do I measure up?" Thankfully the Yahoo Toolbar doesn't include anything remotely like rankings... just as well. Of course, that's the reason I uninstalled it, too. I can find my way to Yahoo! Canada Greetings just fine on my own if I need to. tags:

Erich Schubert: Fun with spam

Sometimes, spam can be entertaining:
latest .linux kernel involves
HALVES HIV/AIDS
location
Literally. From my "spammy" folder, with mails that score between 2 and 4 in my Spamassassin. Thats where most of my spam goes to. Another spam that would most likely have been blocked by greylisting - but it was forwarded via another mail box not being protected by greylisting. :-( Btw, I think greylisting could help reducing the load on master.debian.org, since it's really cheap on the CPU and disk. On my server it cut down email numbers to be handled by a huge amount. I don't have numbers on how well it works for larger mail servers though. I guess a pure sender-IP greylisting won't be too helpful, but a senderIP+destination greylisting (maybe just first 8 chars of destination, that should handle any +extensions etc.) should still work well.

Jaldhar Vyas: You're Out of Touch; I'm Out of Time

John Goerzen professes not to understand the apparent inconsistencies in the Presidents positions on life issues. While I can't speak for him, I am as near to a "typical Republican" as you are likely to get around these parts and although I'm busy with other things I feel compelled to explain how they are in fact consistent.

The foundation is a belief in the innate dignity and right to life of Man simply by virtue of being a member of the human species. Therefore the default position in any case should be to protect against the unnecessary taking of life whenever there is a choice in the matter. Therefore abortion is wrong precisely it is as its defenders say a "choice." Stem cell research is also wrong on these grounds but as a clump of cells is not clearly a human being you can agree to disagree on that. Those who do think it is wrong should not be forced to participate in murder which is why the government is against Federal funding of embryonic stem cell research not against the practice altogether. (Also remember there are other sources of stem cells.)

The innate dignity of a person can be made forfeit by an act of will on the part of that person. Thus a murderer has no right to life, by his personal actions he has surrendered it. If fetuses started leaping out of vaginas and attacking people, they would forfeit their right to life too but they don't.

What John conspicuously fails to mention concerning the 30,000 Iraq civilian deaths is how they died and who killed them. In the vast majority of the cases it is at the hands of those who putatively were on their own side. So how is Bush or America morally culpable? In the few cases where Americans have deliberately caused civilian deaths, they have been punished for it. But where is the outrage when terrorists do not wear uniforms and deliberately hide amongst civilians and in religious sites? (May I note that such behavior is against the Geneva convention and UN resolutions though I'm aware such things only apply to Israel.) It is the Baath party and Al-Qaeda have right to life issues concerning the war in Iraq not the US.

You can disagree with any of these positions--even from a conservative or Republican point of view but my point is they are consistent. And I daresay being easier to understand, they resonate more strongly with the electorate than the muddled messages of the Democrats.

Hall and Oates in '08!

25 July 2006

Erich Schubert: Will Linux profit from the AMD ATI merger?

As asked on the debian-curiosa list, what effect will the AMD ATI merger have for the Linux community? Will AMD realize that Intel has a lead in the Linux field because of them making e.g. specifications for their graphics products available? Will AMD counter this by having ATI release some specifications to the community? (Or at least allowing the distribution of the already-written r500 2D graphics driver held back by a NDA? Apparently they havn't yet made up their mind after 4 months now...) As for me, I'm currently planning to buy my next Laptop with Intel graphics (and thus Intel CPU, I guess) because of the better driver support. (My current laptops ATI Mobility card is not supported by ATI...)

Joey Hess: moreutils musings

I have an important decision to make about moreutils, my collection of new unix tools. The question is whether to stand firm behind the idea of only adding tools to moreutils that are truely unique and not available in similar form in other packages, or whether to collect good tools to fill in missing gaps in the standard unix toolset, even if they are similar to already existing, but possibly hard to find tools. So far I've had an easy time deciding to reject some tools like add, todist and tostats, which are somewhat special purpose and which turn out to already be mostly implemented in the numutils package. And I'm also fairly comfortable with Lars's and my decision to not include mime, which is similar to File::MimeInfo's mimetype program, if only because implementing that requires a lot of code or a long dependency chain. The decision is harder for things like shuffle/unsort, which both fill in the gap of a file randomisation tool. There already are packages in Debian (bogosort and randomise-lines) that provide this functionality. Another example is srename, which is similar to the rename program hidden in perl, which is insanely useful and rather underused. It's also tricky since I could well be missing existing tools that overlap with moreutils. For example I just learned of the renameutils package, which contains a qmv. That is close to the same thing as vidir, although limited to filename removals (no deletions), and rather more complex, with an interactive command line mode. I've decided that it's worth keeping vidir despite this, if only for the delation support and the possible broader scope later, but it does point to a more general issue. I've already concluded earlier that:
Maybe the problem isn't that no-one is writing them, or that the unix toolspace is covered except for specialised tools, but that the most basic tools fall through the cracks and are never noticed by people who could benefit from them.
One way that tools fall between the cracks, after all, is by being spread amoung lots of little obscure packages like File::MimeInfo, bogosort, randomise-lines, odd corners of perl, mmv, renameutils, etc. You might know about some of these packages, but you probably didn't know about all of them -- I know I didn't. I suspect that the authors of some of them didn't know about others and duplicated work. A single package that collected good generic, consistent, and simple implementations of tools, even if some of them were not unique to it, could benefit from getting more attention than lots of small packages like those, and both help users find out about these tools as well as focus development energy on them to make them better. So which is more important, focusing on collecting and writing unique tools or promoting slightly less unique tools?

24 July 2006

Erich Schubert: 3D desktop prototype

This 3D Desktop prototype sure looks cool, the animations are very fluent, and the interaction possibilities are numerous. But: Would you actually use it? To me, this would only make sense if you'd abolish folders. It seems to be much slower than traditional sorting into folders. And when I have the files in folders I can work much better with them. It's not as if I'm moving icons around on my desktop all day! Actually, I've disabled icons on my desktop, because I'm keeping windows full-screen all the time anyway. Just about everyone I've seen so far had a huge mess on his desktop, so that was an easy choice - why engage in something so pointless? Usually I keep files in a well defined context; so I never would have to "push" them around, shuffle them, whatever. They're just where they belong. And in folders I can apply my shell magic to them, and mass process them. In the shell, I can access my "pdf" files much easier than with any UI. With all that fancy bells and whistles (XGL etc.) - where is the productivity gain? To me, it's just a waste of CPU power, decreasing battery performance and slowing me in getting the actual work done.

Ross Burton: American In Britain

Britain is often said to be part of "the United Kingdom", along with several other countries, including England. Ireland is also nearby, and is considered part of Scotland, which, in turn, is adjacent to, and included in, a small country called Wales. To first-time visitors this can be confusing, especially when one learns that - paradoxically - France is considered by the British to be its very own nation!
A snipped from the first article in a series in The Guardian. It continues later:
The traveller must, of course, always be cautious of the overly broad generalisation. But I am an American, and a paucity of data does not stop me from making sweeping, vague, conceptual statements and, if necessary, following these statements up with troops.
NP: Neighbour Radio, Last.fm

David Pashley: Strict feed parsers are useless

Erich, I'm not entirely sure what you did to break Planet, but using a strict feed parser will just result in you missing a significant number of entries. People sadly don't produce valid feeds and will blame your software rather than their feeds. It doesn't help that a number of validators aren't entirely strict and that RSS doesn't have a very comprehensive spec. RSS is a lot worse than Atom, in part thanks to the Atom validator and very well thought out spec. It's for this reason that I ended up writing Eddie rather than using ROME as it was a DOM parser and just failed to get any information out of a non-wellformed feed. Eddie on the other hand is a SAX-based parser. In a recent comparison, an Eddie based aggregator managed to correctly parse several more entries than a ROME based aggregator one particular day. You also have major aggregators being liberal. Sam Ruby discussed this recently with Bloglines becoming the defacto validator; if bloglines parses it, then it's valid. We had the same problem with HTML with people making sure their pages worked in a browser rather than met the spec. I suspect the problem you had with Planet is that you failed to close a tag, causing the rest of the page to be in bold or be a link etc. This is fairly easily solvable and in fact has been with FeedParser, which is the feed parsing library Planet uses. It has support for using HTMLTidy and similar libraries for fixing unbalanced elements. Eddie uses TagSoup to do a similar thing. As a result I've not noticed any particular entry leaking markup and breaking the page. Parhaps Planet Debian just needs to install one of the markup cleaning libraries. I agree that people should use XML tools where possible. Unfortunately, most blogging tools use text based templating systems, which makes producing non-wellformed XML too easy. To deal with this I pass all my output through an XSLT filter, which means that everything is either well formed or doesn't output at all. Unfortunately I don't think everyone would be capable or willing to use XSLT.

Erich Schubert: Sorry for breaking planet...

... thats what you get for not using proper XML. I've been planning for a long time to switch to a blogging tool which has proper XML handling. That will at least make sure it's not my fault when planet breaks again. ;-) - a few times I've broken planet before, however, it was actually a bug in the planet software. If I'd do a planet rewrite, I wouldn't bother to make a tolerant feed parser, but I'd just skip any blog posts that aren't valid. Then people will hopefully switch to software that actually uses XML writers and not print()... (Yes, this post was also written to make planet realize I've fixed my feed ;-)

23 July 2006

Andrew Pollock: [geek] I love technology

Although Windows' Bluetooth support is a bit weird. I'm sitting in a hotel room in Canberra, with my old Sony Ericsson HBH-35 Bluetooth headset paired with my laptop, talking to Sarah on her mobile phone, using X-Lite on my laptop, talking to my Asterisk server at home. The call quality is quite acceptable without any QoS. I should do some maths to work out if the obscene rate the Telstra wireless hot-spot is charging me is less than what it would cost me to use my Australian mobile phone or the hotel phone for the same call. The next step is to do all of this, but with the iPaq, and on Google Wifi anywhere in Mountain View. Then I'll just have a ridiculously expensive mobile phone.

Mark Brown: Widescreen is all in the mind

The reason I can get more on a 16:9 screen is that I tend to size windows with their heights proportional to screen height with and widths proportional to the vertical size of the window (I very rarely run anything full screen). This means that for me extra width gives more windows simultaneously - while I can get more on a bigger 4:3 screen it usually ends up with a lot of the extra real estate going on larger versions of the same things as I would have had before. Obviously, that’s just what I find comfortable and won’t apply to everyone - it depends on the user. IIRC the tablet PCs I’ve seen have been widescreen and supported 9:16 mode but I never paid that much attention to them due to a lack of free software support.

Erich Schubert: No, 16:9 screens are not larger.

Dear Mark, why do you think you can get a bit more on with a 16:9 screen? Doesn't that depend on the actual number of pixels and the panel size, instead of the ratio? Mathematically speaking, a 16:9 screen is not larger than a 4:3 screen. And I'm not aware of any manufacturing reasons that allow you to make larger 16:9 screens (or larger 15" 16:9 screens ;-)) than you can do with 4:3. That doesn't mean there aren't - e.g. backlight might be easier with wide screens. As for "organizing your apps on your screen more efficiently", I don't see any reason why this should be easier with 16:9. Sure, you can now probably put your favourite IM window besides your word processor at the same time; but is that actually better? I prefer keeping stuff on different virtual screens anyway; and actually on my 4:3 screen I could already do that pretty well (it has 135 dpi; I can just read a typical A4 paper at this resolution, and I could have my IM window next to that of course. Having a wide screen just makes web pages look bad. ;-) Oh, and my glasses are pretty close to 4:3 ;-) but with round corners.

Next.

Previous.