Search Results: "Erich Schubert"

27 October 2006

Erich Schubert: Turbogears performance

I've chosen Turbogears for a recent web project. Up to now, I was pretty happy with this choice, as it allowed me to made changes to the application rather easily, I happen to like KID templating, and it all was rather painless. However, I'm stuck at two place right now. One is a rather expensive database query I have not yet added - I know that it's going to be expensive, and I'd need some way of caching the results easily. I havn't found a "turbogearish" way of caching these interim results yet. Since that brought me onto the performance thing - when writing an app you don't really know yet how it will be implemented, you best postpone performance considerations a bit, so you don't optimize too early - I did some measurements. And was pretty disappointed by the results. The testing virtual machine (sorry, I don't have hardware specs for the actual machine) is rather slow. But still, static apache can serve some 450 requests per second. Turbogears will serve static files at ~22 r/s and the main page of the webapp at just 4.5 r/s (measured with siege, when it's not crashing). I tried switching from sqlite to mysql in Turbogears, but unfortunately that just makes the application crash altogether at some point (no SQL queries succeed anymore: 'Page handler: "Commands out of sync; you can't run this command now"') Notice that this was by no means a fair benchmark of Turbogears (I'm not a turbogears expert, and the little documentation I've found so far didn't help me at all in optimizing it's performance). I was just evaluating where I'm at, and now I'm about to decide where to go next. So can anyone point me to some docs on how to get turbogears up to an acceptable speed (where acceptable would probably be >20 r/s on this hardware)? Otherwise I guess I'll start a rewrite now, maybe using Java JSF and Facelets. They seem to be a good choice if you want XML-based templating. Don't even suggest PHP to me, it's crap. And I won't be trying Ruby on Rails next, either. I don't need rapid prototyping anymore, but can go for the high-performance implementation now, even if it will be harder to read, write and modify. I have now a better grasp for what I need and how the architecture of the app should be like.

Erich Schubert: "Web 2.0" video services don't offer thumbnails

For a project, I've been working a bit with "web 2.0 video services". That is, YouTube, Gogle Video, MySpace videos and similar. So far, the only one I can actually use for my cause is YouTube; Google Video should be possible, whereas MySpace and e.g. MyVideo.de apparently lack the functionality I need. But the functionality I need is pretty simple: thumbnails. For YouTube, I can use their API to query metadata on videos such as viewing counts, title, description, tags - and a thumbnail URL (all I'm lacking is some information on whether the thumbnail URL is permanent, i.e. if I can cache it, or bound to change). For Google Video, there apparently is some way to do the same - digg is reported to have Thumbnails for YouTube and Google Video. Dear Lazyweb, if you have some information on how to get thumbnails (and other metadata such as title, description, tags) for other video services, please send me an email to Erich@debian.org. Thanks! [Update: revver.com has Thumbnails and some API. It works with the beta flash plugin and epiphany.]

Erich Schubert: Harddrive encryption

For my new laptop, I decided to use harddrive encryption. The new Debian installer (to be released with etch) can handle this setup, and it works pretty well. The passphrase prompt isn't pretty, but who cares. But where I'm currently stuck is getting it to work with uswsusp. I used to be a Suspend 2 user, but I'm tired of compiling my own kernels; it takes a lot of diskspace and my new laptop has a much smaller harddisk (I bought a used laptop, so I didn't have a choice; the old laptop is PATA, the new is SATA, so I can't just move the HD over either). So I wanted to try new "userspace software suspend". s2ram works just fine on the laptop (with --force, but from some Google results I figured it's already reported to work, so it will probably be in the next versions whitelist), where it's becoming difficult is the suspend to disk with an encrypted swap device. From what I can tell, s2disk expects the resume device to be a swap device; so I'd need to pass it /dev/mapper/cswap. However this is encrypted using a random key, so it can't be decrypted after resume. Also it appears to be configured after the resume script at boot, which says it can't stat my resume device. Dear Lazyweb, anyone who could write some Howto for uswsusp and HD encryption? Do I need to encrypt swap with a static key (which would reside on an encrypted partition, after all)? And what about the boot sequence? [Update: one of the cryptomount maintainers told me he's working on fixing #394136 and #382280 this weekend, and that this will help me as well. (Basically it will allow the cryptomount initramfs things to setup more than one encrypted device, from what I figured).]

25 October 2006

Erich Schubert: Things

The last few weeks have been rather busy, but here's a short overview: When I've somewhat recovered from the cold I'll start working on my diploma thesis. P.S. if you have some turbogears experience and don't charge overly high charges for small contract works - please contact me at erich@debian.org

19 October 2006

Erich Schubert: Fun where's fun due

It's good to see people making fun of a controversial issue - and at the same time helping the Debian project to make the etch release become as solid as people have been expecting it from Debian. Go, Dunc-Bank! (On a related note, please help filing bugs against the debian-installer. We used to blame delays in the sarge release on debian-installer not being ready, so help NOW by finding reasons to repeat this success!)

17 October 2006

Russell Coker: Debian SE Linux

Yesterday Erich Schubert blogged about reducing Debian SE Linux work due to lack of hardware. To solve such problems I've put a Debian/unstable machine on the net and given Erich the root password. Also now I am starting work on Debian SE Linux again too. There should be some significant developments in Debian SE Linux in the near future.

Also if anyone else has a problem of a lack of hardware getting in the way of free software development the first thing to do is to mention it on the IRC channel for the project in question. While Erich has demonstrated that blogging works, IRC is faster.

Erich Schubert: What is a domain worth?

I have a request for buying my "vitavonni.de" domain I'm using for my personal homepage and most of my email. I'm not emotionally tied to that domain, and a transition solution for email is likely possible. I don't rely on my good Google rankings for the domain, so I might actually sell it. But what would the domain be worth? It's currently highly ranked with Google (e.g. Rank #2 on "Laserdiode", i.e. semiconductor laser) and others. MSN says 5500 links to the domain. Moving my homepage to a new domain, getting everybody updated with respect to the new email address is a lot of work; so how do I find an appropriate price?

15 October 2006

Erich Schubert: Journalisten...

Auf den ersten fl chtigen Blick k nnte die Front genauso gut die R ckseite sein. Denn anders als die meisten Notebooks besitzt es vorne wie hinten eine sehr steil und pl tzlich abfallende Kante. Dank den Statusleuchten und Anschl ssen gestaltet sich das Finden der Vorderseite gl cklicherweise denkbar einfach.
Hier gefunden. Wenn man nicht weiss, was man schreiben soll, sollte man es vielleicht einfach lassen...

Erich Schubert: Wireless drivers

My laptop, IBM ThinkPad A31p has a Prism 2.5 chip. It's a good chipset: while only having 11 mbit, I have excellent reception (so I often have 11 mbit when others with their 54 mbit chipsets only have 2 mbit; and often have network where others won't have link anymore). And mind you, unless when transferring large files 11 mbit is more than enough. This chipset also has good driver support. There is not just one opensource driver, there are two. The first is the "orinoco" driver, the second is the "hostap" driver, which also supports host mode (i.e. running it in access point mode). However, they differ a bit in supported features, which can be quite annoying. Hostap has much more features, and much better wireless scanning IMHO. But it's not included with the default kernel, making installation slightly more complex (i.e. having to run "m-a a-i hostap-source" for each new kernel once). Also sometimes the two drivers would both load, which would confuse them; the hostap driver would also (sometimes?) lock up my system on unload. Also hostap would show some mysterious "wifi0" device I still have no idea what it's good for. Thats why I had recently disabled the hostap driver, and switched to orinoco. However, the friend I'm staying with right now uses a WPA encrypted wireless network, and apparently the orinoco driver doesn't support WPA. So I'm back to using the hostap driver right now.

Erich Schubert: Stupid GRs over

Running a vote usually is a bad signal. It often means someone is trying to push an issue which is doesn't have wide enough support. Ideally, we would have consensus. Anyway, the results for the votes are in, and most are pretty clear results. For example the recall vote with 48:277 - the proponents would have barely made the quorum (48 is the minimum quorum). At the Google Summer of Code, there was a talk on "Poisonous people" (blogged about by others before) - and while many big voices in this discussion clearly are top contributors, they show a couple of signs for "poisonous people" (which often are just drop-bys). So if you're now leaving the project because of the vote - so be it. The discussion is over. We'll just go on doing our Debian work as before, because we're still Debian, and Debian is still us. That hasn't changed. So if you thing we've changed radically (which I doubt we have), you're as free to leave as you've always been. If you think we're still the same, please remain with us, and help making Debian what it has always been: a volunteer effort. [Update: there was one vote 2-, which is the same as 12, but maybe he meant it to be 21 instead? Then the 'recall' people would even have missed the quorum!] [Update #2: I'd like to share this quote with you (from LWN comments):
Debian is indeed a more balanced 'organisation' than it appears to be from its mailing lists. That doesn't actually surprise me, but it's nice to have it affirmed.
Yes, many of us don't just care this much about politics, but about our users and Debian itself. Being free is a highly valued ideal; getting a release "as free as possible while still being useful" is the real goal we're after. On an somewhat related note, icedove just replaced thunderbird.]

13 October 2006

Erich Schubert: Google Summer of Code mentor summit

In four hours I'll be on the airplane to San Francisco via Paris. * erich puts a flower into his hair and starts singing Saturday there is the "Google Summer of Code mentor summit", where Google invited mentors from the participating organizations to Mountain View to discuss about the Summer of Code program, how it can be improved and what else Google can do for opensource. We're all very thankful to Google for offering this great program. It's meant as an opportunity to get more students interested into opensource development, and there are many success stories. Of course the program isn't perfect, and thats what the summit is for, improving it. And I'd really appreciate your feedback, your perception of the GSoC, of the students and the mentors. I've asked for feedback before, but I've received next to nothing so far. But there is quite a lot to discuss tomorrow. For example, many projects would fit to multiple organizations. I had proposed a SELinux integration project, but most of it would be reuseable by other distributions as well. There was a project which actually meant to integrate one mentoring organizations' project with an other mentoring organization. These could benefit from some "shared mentoring"; at the same time these project could server the prupose of increasing cooperation between organizations. I myself, for example, know rather little about Fedora, or the state of SELinux in Fedora. Still this is a point (well, if I still had the time to work much on SELinux that is) where I should definitely try to cooperate more with Fedora. Another proposal that came up and will be discussed is the "Summer of Content". It's not all about code. There is also documentation, graphics, sound, ... Why shouldn't a GSoC student be working on artwork or sound for a summer? The opensource/copyleft community definitely could use some support here, and we have rather few links to artists so far. So please send me your feedback. I won't be responding to mails for the next like 15+ hours since I'm travelling (maybe even 24h, if I'm busy with real life meetings), but I'm really interested in your ideas!

12 October 2006

Erich Schubert: Future of AJAX

While everybody is still crazy about AJAX - how will its future look like? Using it is currently a major PITA, and you'll most likely have the user download a 200k Javascript file just to make it useable for you as a programming language. JavaScript lacks so much that current programming languages offer out of the box. This includes especially some comprehensive standard library (Java, C# and Python are all great here), a compact syntax for common data structures (e.g. set operations in Python or stream operations in C++ with <<) and of course: interfaces! Security restrictions of the browsers - intentional security restrictions to avoid cross site scripting attacks - make interfacing between different javascript applications rather cumbersome, if at all possible. And the only way to have "private" functions in JavaScript is also more of a hack (abusing closures) than a native feature of the language. What I'd like to see in the next generation of JavaScript - and browsers should start implementing that rather soon, so we'll be able to use it in some 5 years - are proper interfaces especially for cross-site applications, information hiding, an extensive standard libary, a short syntax for XML processing and common data structures and pretty much all that every javascript toolkit reimplements again and again. Oh, and the result shouldn't be Java yet, but still an embedded scripting language. ;-)

Erich Schubert: Google for "Youtube sex"

If you search on Google for 'youtube sex', my blog comes out as #3+#4, just behind youtube itself. Sooo funny, because I never actually wrote about Sex on YouTube. Actually I don't like YouTube (which to me still sounds like a bad translation of a german insult). But there is this blog posting of mine, which lists the top tags according to technorati, when war tags had actually surpassed youtube and sex as tags. Yes, it mentions "youtube, sex". Once. But no, these are not essential, no referrer uses them, no other blog posting. Why does it show up as second site after YouTube.com itself? Oh, I'm also #3 for "youtube bush" right now, with the raw RSS feed of my blog. What is it with Google and my blog? There must be some odd effect with Googles ranking that makes my site shoot up like crazy. And it has been like that for at least one and a half year now. Back then I blogged about IBM failing to repair my laptop. This was the first time I noticed a really absurd Google ranking of my blog, when this became a top #10 result for "IBM repair". Guess I really should go into the SEO or webdesign business. If I weren't just more interested in research and software development... [Update: dropped to #14 for 'youtube sex']

10 October 2006

Erich Schubert: Cluster computing with AJAX (aka: ajax-seti)?

Ajax has shown how viable it is to run client-side computations, while just downloading the raw data from a server. But Ajax is not restricted to doing fancy user interfaces. It should easily be possible to use an iframe based ad to use the CPU power of page visitors to do some large-scale computations. Can you imagine how much processing power Google could churn up by having its GMail users do some distributed computing? Or on YouTube. While the user is watching the video, a javascript does some calculations in the background. By keeping data in a cookie, your calculations might even be able to survive page reloads. And if you're running a large ad network such as Googles', you might even be able to dect user inactivity. Update a cookie whenever the user comes onto an adsense page; if he didn't go on such a page for 30 minutes assume the user is idling and start computation. If he leaves open his web browser over night you'll get a lot of CPU cycles. (Yes, I know that Google is supposedly not in desparate need for free CPU cycles...)

9 October 2006

Erich Schubert: How bugs shouldn't be handled

On #debian.de, someone looked for an application to record the screen. So I tried finding the appropriate applications. On first try I found istanbul, but I remembered there was another one. I looked at the description of istanbul and tried searching some more. I remembered it was a city name, too, so I googled and finally found byzanz, too. Thus I filed a wishlist bug (#391860) on byzanz and istanbul to unify their descriptions, and maybe both use the terms "desktop session record" and "screencast". The bug on "byzanz" was immedeately closed, with no discussion taking place. Pretty much a "I like my description, closing the bug". This is not ok. It's just a wishlist bug. There is no harm in keeping it open anyway. And the package description is something you can always improve. Maybe tag it wontfix (however the next maintainer might want to fix it, after all). But just closing it twice (I reopened it once, stating that it is not fixed and thus shouldn't just be closed; I don't play bug ping-pong) without any discussion is not okay IMHO. To me this is just arrogant: "I don't want any wishlist bugs on my packages, and I don't care for your opinion." We've now been talking a bit on IRC; and it'll eventually be fixed on the next upload. But still I'm pretty annoyed by this reply I got back to the bug report... I think what helped is that the official description says "Record your desktop session to a GIF file", which contains exactly the word combination I was missing... "session record", because I'm not recording audio. Maybe the description should also contain the word "application", because after all that is what I'm very likely to want "record" an "application" (and not my full desktop). [Update: he didn't close the bug a second time. This was to a delayed email processing on bugs.debian.org, which processed the -done message after my reopen command. Sorry about this inaccurancy.]

8 October 2006

Erich Schubert: On Google Reader

First of all, I havn't really used Google reader yet. I think I tried it a long long time ago once, and they apparently did a UI redesign. However, it doesn't work for me anymoe, all I get is "Loading..." (and a Javascript error). I'm using liferea, and I'm quite happy with it. Some of the things I do like: Because of these I can't imagine using an online reader. P.S. If you fold your blog entries or don't do full-text RSS, I likely won't read your entries, either. It doesn't work with offline reading habits.

7 October 2006

Erich Schubert: Summer of code feedback, please!

Next week there is a summit at Google in Mountain View on the summer of code.
The purpose of the summit is to bring together mentors from successful organizations to discuss several topics: how to improve GSoC, how Google can do more for open source, and what you as mentors and representatives of your development communities can do to help one another.
AJ and I will be there to represent the Debian project; and therefore I'd like to know what your impressions about the "summer of code" were. And of course how GSoC could be improved etc. - you've read the "official mission statement". I'm not only asking mentors; I'm asking everybody interested with opensource. There are some things where having been a mentor is useful - e.g. for streamlining the screening process - but there are lots of things where you don't really need much prior knowledge. One thing, which is very interesting, is trying to do more cooperation among organizations during (or due to) the summer of code. So please send me your comments to erich@debian.org.

Erich Schubert: Ajax clouds

I guess the term "ajax clouds" is now more appropriate. Debtags clouds have evolved. They're no longer a static page with a single cloud that will forward you to the more complex browsing tool by Enrico, but now the cloud will adapt to your previous choices, and allow the selection of multiple tags. The biggest issue probably is tag naming now (e.g. what is the difference between "role", "use" and "scope" (unfold them to get an idea) or between "interface" and "uitoolkit" (interface is mostly commandline vs. fullscreen vs. windowed vs. 3d; uitoolkit is gtk vs. qt vs. whatever) - unless you're familiar with these terms, you'll probably find it still hard to navigate the tag cloud. Still I hope this inspires you to think of new UIs doable with tag information (which is a small step towards the semantic web; actually these facets here are quite similar to RDF triples...) These is so much things I'd like to try out with this data... If you have suggestions, please share them via email. For those interested in the technical stuff: tag clouds are loaded via ajax, served from a database with ~120 MB of precalculated, precompressed json files. Precalculation is rather expensive; on my 4+ years old laptop it took about 105 minutes (76 minutes of CPU time). Storing them in the filesystem instead of a BerkeleyDB hashtable took more than 4 hours. The outmost (i.e. largest amount of data) set takes 1.1 seconds to compute; there are 344871 precomputed tag selections, so it precalculated 75 selections per second on average. Yes, complexity is not linear; benefits from caching large results are huge. I'd really love to run a similar interface for e.g. last.fm, but I guess this would not work as well; their tags aren't grouped in facets. But I have some ideas to make up for that. P.S. This is also my first real Ajax app (except for using json instead of XML). And I still hate Javascript. [Update: I've worked around an issue with opera (which is stricter on javascript object syntax than mozilla). I havn't tried Internet Exploder yet. But this is a navigation experiment, not an application to be deployed...]

4 October 2006

Erich Schubert: Fun with explanations

From Top Ten Geek Business Myths:
One of the ironies of the programming world is that using Lisp is vastly more productive than using pretty much any other programming language, but successful businesses based on Lisp are quite rare. The reason for this, I think, is that Lisp allows you to be so productive that a single person can get things done without having to work together with anyone else, and so Lisp programmers never develop the social skills needed to work effectively as a member of a team. A C programmer, by contrast, can't do anything useful except as a member of a team. So although programming in C hobbles you in some ways, it forces you to form groups whose net effectiveness is greater than the sum of their parts, and who collectively can stomp on all the individual Lisp programmers out there, even though one-on-one a Lisper can run rings around a C programmer.
This is probably the first time I've seen somone use Lisp vs. C to explain business mechanics. Fun!

3 October 2006

Erich Schubert: On Joeys hate mission

Martin 'Joey' Schulze is still aggressively writing against Dunc tank. I don't agree with his posting at all. I don't think dunc-tank is doing any serious damage to the project; so far all the damage comes from a few people (especially you, Joey), that play some "politics" game here I don't really get or like. And just count the number of people who have expressed discomfort with your postings. I remember having seen the word "blackmail" attributed to some of your mails. [Update: and it also sucks that people have to point out that they didn't reduce their Debian involvement because of Dunc tank, but just because they don't use the software anymore, have too little time or are annoyed by your behaviour; otherwise you'd probably cite them as dunc-tank enemies.] I'm also convinced that your assessment - that only the release in december counts - is false. You know, the people working on Debian were NOT replaced by the announcement of the dunc tank experiment. We still want to make Debian the "Universal OS", and are still dedicated to the projects goals. But some of us still remember the bad press debian has been receiving because of the delays with sarge release, and the users we have lost back then because of pushing back the release again and again. You know, many people still act like "yeah, debian releases in december, sure, when hell freezes over". One of Debians strengths was security support. But security support doesn't work as well, when half of the software you're running are unsupported backports. If Debian wants to remain a good base choice (i.e. universal OS), it needs to provide a reliable combination of secure but not too-out-of-date software to become useless again. Therefore I consider frequent-enough, somewhat-on-time releases important for the universal OS idea; this will also cut down on our work (at least for those doing backports, too, since we need to do less of them). It's not a primary goal, but a consequence of the well-established goals. Now why I accept the experiment of 'hiring' the release managers for one month full-time: I've always had the impression that donating to Debian is somewhat pointless, because I don't see any concrete results, or where the money is going. To me it always felt like it ends up in an unused saving account with the SPI treasurer, until someone finds a way to spend it. Here the money is used in a transparent way, on well-respected people and with a very concrete result. And remember, it's an experiment. It's a one time thing so far. Oh, and to actually counter all your blah-blah: I've actually recently increased my Debian efforts again. Because of the dunc-tank thing, and despite your end-of-the-world-claims. Namely because it gave me back the feeling that someone actually cares about making Debian useful to everbody (and not just us freaks running unstable and experimental). That there is some interest in getting the new release out of the door on time, of supporting our users out there such as the city of munich (which is also running backports AFAIK). To me Debian is still mostly about the users, not about the ego of developers. Be a nice guy and do a good job, and you'll get lots of thank yous, a couple of friends, a couple of patches, some free beer or tshirts in return. Does this corrupt as well, getting a free coke? Yes, I got a free Jolt coke four years ago at Systems. Does this make you demotivated, that you didn't get one, too?

Next.

Previous.