Search Results: "erich"

24 December 2007

Erich Schubert: Spamassassin precompiled rules

Spamassassin supposedly can precompile rules to allow faster operation. It compiles an optimized matching automaton that will process all the regular expressions in parallel.Anyway, in order to use it, you need to manuall install some dependencies. They probably can't be introduced as real dependencies to not enforce them upon people who don't want to use this feature. So far, I've identified
aptitude install re2c gcc libc6-dev make
I'm aware that many people will have the libc6-dev and gcc stuff already installed, and the re2c dependency is well-documented. But I actually had removed the C compiler from my mail server.

Erich Schubert: Training my AI

Some time ago I've been working on an AI to classify web pages. I've spidered (and classified!) about half a million web pages I'm using for training.This totals to about 40.000 categories and 100.000 useful tokens. I need 8 bytes of storage - two float values - for each combination, which is a matrix of about 27 Gigabytes. I'm using mmap to map my data files into memory for convenient access. On a 64 bit system, I can keep them mmapped all the time.This results in the following funny top output:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
12443 erich     26  10 27.7g 309m  21m R  8.5 32.8  86:01.98 train
So according to top, the process is using 27 GB of virtual memory. That is the data files, actually. The 300 MB resident memory is the training data it's processing. At this point, all my data has been converted to 32-bit integers, so this is already condensed down a bit.It's also obvious that ext3 supports sparse files - running "du" on my database directory currently gives 1.5 GB (it just has started filling the matrix), adding the "apparent size" switch gives 29G.I hope that when the training run has finally completed (ETA is a couple of days), the AI will actually be able to classify webpages somewhat reliably. :-) You can think of it like a huge bayesian spam filter. Except that I've added some boosting that should improve results, some computational improvements for speed and scaled it up to 40.000 categories instead of just "spam".Other uses I'm planning for the AI is automatic email filtering into multiple folders (best to be employed on Google GMail, where an email can have multiple labels, not just one folder), automatic document classification for document and knowledge management systems, etc. pp.[Update: I havn't yet decided if or when I'll release the code as GPL. Right now, the code could require some cleanups. And I'm considering to start a business around this datamining and classification stuff, so I might want to keep it closed for some time at least. The business will most likely be around integrating the code though, so a public release might well be possible.]

23 December 2007

Erich Schubert: Proper way of embedding spamtraps?

I'm considering to embed some spamtraps (i.e. email adresses that will feed all their incoming email to the spam filter) into some web pages.However, I want to prevent people from accidentially using these links or even just seeing them. So using "display: none" seems appropriate. But Google is known to punish websites 'hiding' content from users but not from robots.Some sites say, Google will just ignore the parts that are within "display: hidden", others say it will punish the site altogether.Maybe the adsense control comments will help
<!-- google_ad_section_start(weight=ignore) -->
but it wouldn't really make sense. It's meant for adsense only.Or the page could become a bit more hackish and use javascript to kill the unwanted content. Any experiences with the proper way of hiding spamtrap email links like this:
<a href="mailto:aaaaaaa-never-email-this-address@domain.tld"
>Unwanted Emails only<:/a>

21 December 2007

Erich Schubert: Thoughts on Google Calendar embedding

I've recently considered using a Google calendar for a project, and tried to embed it in a web site.However, there are a few issues I'm having with it: Also the "multiple calendars" feature is a bit hackish. I'd like to be able to differentiate events by flags such as "city", "outskirts", "training", "dance event", "music event". Obviously, entries might have more than one, so I'd need 6 calendars for this already. Usually, you can combine five...Guess I'd need to do this all in Ajax by myself. It would be cool if Google Calendar hat an API for embedding like it has for maps. The Calendar API I've seen so far is basically polling the raw data via JSON or XML. Which is already great, but I do like some of the calendar layouting the do, and I'd like to avoid having to replicate that myself.

17 December 2007

Erich Schubert: Linux adoption progress

Linux has already been the main OS here at the computer sciences for some time. The computer pool was just switched to Ubuntu, after having been on SuSE and OpenSuSE for the last 6 years or more. With the latest hardware upgrades, our computer lab is nicer than ever: dual-core AMD64 systems with 2.6 GHz, a couple of them with two LCD screens connected (which is great for developing, having the editor on one screen and documentation on the other). I wonder if the machines spend more than 1% of their time at full CPU speed - I havn't seen any running at more than the minimum 1 GHz.But one thing I've noticed, which has changed: even those people I can see in the lab having their own laptop with them have Linux running.A few years ago, most people bringing their laptops were doing so to have Windows around. Now with the nice dual-screen setups here, bringing along a laptop to have Linux is less attractive than ever. Still more people bringing their laptops run Linux anyway.I figure this means that they've noticed that the DEs a Linux system offers is very useful (granted, and more to what they have at the university when they don't have their laptop around. However the main part - Java and Eclipse - actually wouldn't differ). They still dual-boot (I overheard something about 'on Windows, this and that and foo) - and even accept the effort of dual-booting to get the Linux benefits.In a few years, will there still be Windows developers you can hire, when everybody studying computer science is being taught Linux? (Granted, not all universities have made the full switch to Linux for their computer sciences)P.S. I'm not involved with the computer admin group; for detailed inquiries you should talk to them directly. Especially for e.g. software distribution questions and such. Oh, and I heard that the servers were running Debian for some time already, while the clients were OpenSuSE. So maybe they still are Debian.

16 December 2007

Erich Schubert: Keeping the website up in rankings

My personal web site - which actually is not particularly interesting, IMHO - used to get in a lot of traffic via Google. It was highly ranked on several quite interesting search terms. For example, it's still number 1 on the search term "Halbleiterlaser" (semiconductor laser), which is the topic of my secondary school thesis. So I still win against Wikipedia on this one. For "flowers" I sometimes and up at #1 in Google image search (causing lots of people to hot-link certain images from my site... might be with some geo targeting though?) But I've lost other battles to Wikipedia by now, such as the search term "Liebeskummer" ("lovesickness"; I have some old old poetry online that people dig a lot; this still makes up the biggest share of my visitors)My rankings have dropped quite a lot the last year, down about 50% within a year. I don't know if this is because I'm blogging a lot less, because I'm not updating it often enough or because Google doesn't like the redesign as much as it did like the old one. (The redesign was 2 years ago, followed by a drop in visitor numbers but a recovery to like 70% within a month)Algorithmic changes of Googles ranking are just another possible reason; I always felt as if my placement was highly overrated anyway.I added at a Google sitemap some months ago and other things that people expect to help with their site being well included, but it didn't stop the numbers from going further down. For obvious reasons I didn't buy any links or anything; I'm not making my living with that page or anything, it's just a pet project thingy. (So obviously, don't make me any SEO offers for my page!)Still it's a pity: I used to have a couple of really major placements on Google - so much that I've had some inquires if I'd like to sell my personal homepage (nah, I don't want to have to get a new email address!), offers by reputable and huge dating sites to put up ads on my page and surprisingly high offers for including my web page in link farms - but I'd have issues with that (I'd like to keep control of what my page contains; including content that might get Google to ban my page is scary), and it would have required me to run my page on PHP (ugh).I wish there was an easy way to just keep the rankings I mysteriously had acquired the last years. :-) For some time it looked like I had some magic SEO capabilities, and friends suggested I should consider actually going into the SEO business. My page is still overrated by Google, but it seems like it has lost much of it's magic.P.S. A fun story followup: I've just noticed that someone in a french cooking forum hotlinks to a photo of mine, claiming that he had cooked the food I did. Isn't that hilarious? Should I substitute that image with a g*atsee?

7 December 2007

Erich Schubert: Updating Dell BIOS on Linux

... was a lot easier than expected. Just not very well documented.First of all, you need the appropriate utilities. Debian users can aptitude install libsmbios-bin Next identify your system. It will look something like this
$ sudo modprobe dcdbas
$ sudo getSystemId
Libsmbios:    0.13.10
System ID:    0x01D8
Service Tag:  ...REMOVED...
Express Service Code: ...although my warrany is over...
Product Name: MXC061
BIOS Version: A10
Vendor:       Dell Inc.
Is Dell:      1
The information you need is the "System ID".Now you need to get the so-called HDR file for your bios. This can either be extracted from their EXE file using wine (with -dump-hdr or so), or you can find it on the linux.dell.com server. This page contains a huge list, and there are tons of dirs like system_bios_ven_0x1028_dev_0x01d8_version_a10. 0x1028 apparently is "Dell". The second hex number is your System ID. The last number (A10 here) is the BIOS revision. Pick the appropriate directory. There should be a bios.hdr file in there.You can verify if the file is appropriate for your system:
$ sudo dellBiosUpdate -f bios.hdr -t
And do the update by calling
$ sudo modprobe dell_rbu
$ sudo dellBiosUpdate -f bios.hdr -u
When rebooting the next time, your screen might be garbled for a few seconds. At least it was for me. I was scared I might have trashed my system, but then it rebooted and had the new BIOS. So just give it some time (Fortunately I've done enough BIOS updates to know to just wait. I've even done a 'blind' video BIOS update on a Nvidia TNT. The first update had trashed the card, but I was able to redo the flash process without seeing anything on the screen, and guess what, the card worked again!)In case you're wondering how this works: as I understand it, the dell_rbu driver will reserve memory for the BIOS update. Being a kernel module, it can just lock the memory in place until the next reboot. It will store that address in CMOS for the Bios and set the update flag. On reboot, the current Bios will check if that the stored image is still intact (I bet they do some checksumming here!) and then load that into the BIOS flash. That way, you don't need to boot into a low-level system such as Dos or Dos-Mode anymore to do an update.

Erich Schubert: Spammers and DNS WTF.

My domains DNS is still hosted with the company I registered it at. I'm planning to move it to a different company early next year. So when a friend asked me for secondary nameserver exchange, I already set up the new DNS.So my current setup is like this:Primary and secondary nameserver are at my old provider, serving their copy of the DNS zone (which obviously lists their nameservers as NS)The A and MX records point to my server, which will sometime also be the new master NS. This host has an own copy of the zone file, which agrees on the 'regular' entries, but lists my server as well as the friends two servers as NS. This is the only link from the domain to the friends servers. Let me emphasize this: neither my server nor my friends servers are currently listed in the .tld database. Their NS entries still point to the old providers server. I'm planning to change that in January.Now my friend told me, that he had about 10 email delivery attempts to my domain in his logs, obviously coming from some spammers.WTF? In order to link my domain to his server, you'd need to What is the reason to jump through all those hoops? Do many admins configure a secondary NS to be an unlisted, unprotected relay for incoming email?Is it common for secondary NS to receive random emails from spammers?

Erich Schubert: Intel wireless (ipw3945) still broken

It's now far over a year that the ipw3945 driver doesn't work reliably for me on stock Debian kernels. From other blogs I figured it only occurs in SMP situation, and even then not on all systems.On my laptop, I can reproduce it rather reliably: connect to the WPA2 encrypted network at my parents and transfer a file to one of the other computers on the network. An IO rate of a couple hundred kb/s will make the wireless card disconnect frequently. Often I end up having to flip the kill switch twice to get it working again.I have however found a workaround: use a kernel with preemption enabled.So it seems that there is something in that driver which will in certain situations trigger a big lock. Actually you can even hear that - sound will also be interrupted shortly when the wireless dies. Without preemption enabled, this will make the wireless card run into a timeout and reset itself.I don't know yet if this completely fixes it. But other comments in the bug report at bughost suggest that it's at least much more stable. bug 1085 seems another instance of this bug and is open since june 2006. As good as their OSS record is, it seems that Intel has given up on fixing this bug.There are other drivers causing similar problems. For example the dcdbas driver for the Dell Bios used to check for the wireless kill switch, display brightness and such functionality. When I load that driver, hal or NetworkManager will interrupt my sound every few seconds when polling the kill switch. Maybe they would just need to get hold of a system affected so they can diagnose it properly themselves. There have been at least 20 people reporting this bug by now, most of them on Dell systems.

6 December 2007

Erich Schubert: Fight against surveillance

The german government (that is the CDU CSU and SPD partys) passed a law that would require communication providers to keep connection data for half a year. This data retention includes phone calls, emails and internet connection data such as IP addresses.This law was passed as a "preventive" step against terrorism, mostly. Which is such an hilariously bad argumentation, actually.This is a serious step towards total surveillance, and is considered to be unconstitutional by many. Amongst others, it seriously undermines Confidentiality protection for e.g. priests, lawyers, doctors and journalists. Apart from opening the doors for total surveillance, of course and not having any desireable effect when it comes to preventing crimes, especially terrorism. Over 20.000 people already have already signed a complaint of unconstitutionality to be handed in at the Federal Constitutional Court in germany. This would then be the biggest complaint of unconstitutionality in the (short) history of the Federal republic of Germany. (1300 people complained 1983 against the census, which led to privacy protection becoming considered a key role of the german constitution)Right now, the law is waiting to be signed by the German state president (and we hope that he might refuse to sign it). Once it has take effect, the complaint can be handed in.Web page with further information.If you are a German resident, please join the 20.000+ others who have already signed a mandate for the complaint of unconstitutionality. Deadline is December 24th.It's our freedom we're fighting for!

29 November 2007

Colin Watson: aptitude safe-upgrade

Erich: I do sometimes wonder why we don't relax the definition of "safe" upgrades to include installing new packages but still not removing old ones. I know that many of my uses of dist-upgrade are just for when something grows a new dependency that I didn't previously have installed. (Of course this wouldn't always help as it wouldn't account for a new dependency that conflicted with an old dependency, but never mind. It would certainly do wonders for the metapackage case.)

27 November 2007

Erich Schubert: Dist-upgrade hints

Well, I havn't seen this recently. Maybe because aptitude has rename 'upgrade' do 'safe-upgrade', to make it obvious, that 'dist-upgrade' might do unwanted things.Back when I was the maintainer of the galeon webbrowser package, I got bug reports and reports on IRC each time the mozilla packages was updated.The galeon package used to have a conflict with mozilla of any newer major version than the one it was built with. This was a good thing - mozilla APIs were chaning, and when Mozilla was upgraded from let's say version 1.5 to 1.6, it would break galeon. Galeon would at least need to be recompiled or might even need source changes. So there was plenty of reason to add this conflic.People were using 'dist-upgrade' all the time, and what dist-upgrade did then was to upgrade the mozilla package by removing galeon. And they couldn't even install galeon back again, because the new mozilla had replaced the old mozilla in unstable. And each time, I basically had to tell people "well, you shouldn't have used 'dist-upgrade', it's for upgrading between major version of Debian, not for daily use.In fact, running dist-upgrade right now would uninstall 'iceweasel-dom-inspector' for me. I guess this is exactly due to the same reasons.I'm wondering whether we should maybe do a 'uninstall-ok' list (or 'dist-upgrade-hints') and ship it with the distribution. I'd then modify the 'dist-upgrade' command to Note that I'm not suggesting to automatically remove any package. It also is not supposed to be a list with all packages that ever were removed. But just packages where it's known that they might need to be removed. Nor is this list meant to do away with aptitudes automatic uninstalling of packages that were only installed to satisfy dependencies. (If you are still using 'apt-get', you should really consider to use 'aptitude' instead. It will automatically uninstall all those 'libfoo13' packages for you if you use it consequently. Whenever you install a package with 'apt-get', aptitude won't know if it was manually selected or automatically, and assume manual.)So let's say there was experimental-browser in some revision, built with mozilla version 1.7, and conflicting to mozilla 1.8. The browser is discontinued, and ends up in the 'uninstall-hints' file. If the user does a dist-upgrade, it will be removed as usual.However, if 'galeon' has such a conflict and is still alive, it won't be listed in unstables 'uninstall-hints' file, and thus not considered for automatic uninstallation. So people who unnecessarily run dist-upgrade will still suffer less (unless they chose to remove it anyway!)However, if the user has built his own 'custom-webbrowser' package, it will cause a bigger warning when running dist-upgrade, because aptitude doesn't have that package in the hints file. So the users of local packages actually have a benefit here, too.P.S. Sorry; I don't have time to follow planet debian these days. Still if you have feedback it's recommended to use planet or the mailing lists!

Ingo Juergensmann: The data retention law in Germany

The german parliament has passed a law for retention of all communication data for a period of at least 6 months lately - despite all protests from various groups, organizations and experts.
Only the opposition (the Greens and the FDP/Liberals) voted against the law (and some single persons of the other parties). Some, who voted for the law, said later that they consider the law being against the constitution (Grundgesetz) and that the Federal Constitutional Court (Bundesverfassungsgericht) will bring the law (or parts of it) to fall.

When you wonder what this is all about, you may want to read the article "Personal Data Is Now on the Record in Germany" by Rose-Anne Clermont.

There will be a complaint of unconstitutionality (Verfassungsklage) against that law. It's going to be the biggest complaint so far with about 20.000 petitioners. The protests are still going on.

Anyway, data rentention is happing all the time whenever you communicate, but it's a new change that every communication data has to be recorded for at least 6 months. Prior to the new law, data retention was only allowed for billing purposes. Now it's the default and not only Police and Courts are allowed to access the collected data, but organizations like RIAA or MPAA are aiming at getting access as well.
Basically there is no communication privacy anymore.

Given the other "security laws" lately, like the new biometric passport, the Passenger Name Records (PNR), it's really threatening our privacy and democracy. And yet it's still unproven that this will cause less terror.

12 November 2007

Erich Schubert: Memory died

Yesterday, my laptop locked up hard. So hard, it wouldn't turn on afterwards, but flash an error code. Unfortunately, Dell hides the relevant information very well - it took me some time to find in the forums that the error code means bad memory.After removing the memory module from slot B, I could turn my computer back on again. So either the module is dead or the mainboard part related to it.I bought my laptop second-hand in the US last year, and warranty probably is just over. Still I wanted to make sure that this isn't covered by warranty anymore, so I tried contacting Dell support.What a pain. No reply yet to my mail inquiry; and the "support chat" doesn't work right. Their support agent always asks for my phone number (WTF?) and then after some minutes says he's going to disconnect because I don't reply.I wonder if they ever tested their support chat with Gecko-based browsers.0 out of 5 stars for Dell support so far. Important information is inaccessible and the support doesn't reply in either email nor chat. It's not even giving bad replies.

28 October 2007

Erich Schubert: Flashblock in Epiphany: whitelisting?

Flashblock, one of my favourite (read: must-have) Firefox extensions can also be used with Epiphany (see their 'other browsers' install).However, whitelisting doesn't seem to work for me. Any pointers?I've set 'flashblock.whitelist' accordingly in about:config, but it doesn't work... :-(

15 October 2007

Erich Schubert: Small tools: network-test

I wasn't aware of the "network-test" command in Debian, but it's actually quite neat:
INFO: This system has exactly one default route
INFO: Host localhost answers to ICMP pings
INFO: Loopback interface is working properly
[...]
INFO: The wifi0 interface has tx and rx packets.
INFO: The router 192.168.2.1 is reachable
INFO: This system is configured to use nameserver 192.168.2.1
INFO: Host 192.168.2.1 answers to ICMP pings
INFO: Dns server 192.168.2.1 resolved correctly www.debian.org
INFO: The nameserver configured for this system works properly
INFO: System can reach Internet host www.debian.org
INFO: System can access web server at Internet host www.debian.org
It does a quick network debugging output. I'd s/Dns/DNS/ though.

19 September 2007

Erich Schubert: DRI not working?

DRI (3D acceleration) stopped working for me. The reason is simple (as revealed by looking at the Xserver log file): it was missing the DRI library for my graphics card.So if 3D acceleration isn't working for you anymore, try this:
aptitude install libgl1-mesa-dri
This package includes the library required for DRI on my Intel 915 graphics board. Not sure how it got lost, though. Maybe I purged it when trying to remove "unneded" packages from my system (in order to free up some space)... I tend to try to uninstall everything I don't think I need.P.S. Looks like you can now but ATI/AMD graphics again, given that they're releasing specifications for their chips - reliable opensource drivers on the horizon!I've fought both the Nvidia and old ATI driver hell - not having to do that was one of the main reasons why I wanted Intel graphics. Now ATI/AMD is back on my radar.

12 September 2007

Erich Schubert: Gnuplot grep

For my diploma thesis (on clustering of high dimensional data, especially correlation clustering, i.e. clustering data by properties such as data correlation) I needed an easy way to filter out data from CSV files as used by gnuplot (actually, they are whitespace-separated).I hacked together a small tool that would allow me to easily 'grep' out certain parts of the datasets. If you know of a similar tool, please send me an email to erich AT debian DOT org.Currently, the tool allows you to do commands such as:
gpgrep "1~5$" "1200"  out/3d-2lin-noise.variances
to select ('grep') all sets where the first column ends with a 5 (regular expression match) and where the first column is less than 199.The tool is still in early development. Syntax may change, and I guess I'll add some more filters. But you get the idea. Focus is on a very compact syntax.A future filter I'm considering would e.g. select 20 random rows (with a fixed seed value, so it's reproduceable!) for sampling and a modulo-match to select e.g. every 7th row.Maybe I'll also add some output processing later, such as averaging values, calculating variances and mean deviations, stripping away columns (but you can do that in Gnuplot already). I don't want to overdo it though - it's just meant as a mini filter you can add to script output visualization. It's not meant to replace a full statistics toolkit.So if you know of a simple tool that can do that already, please tell me.P.S. a few people have pointed out awk. Yes, it can do most of this. One thing I also need, and I'm not sure on how to do that the easiest way in awk is to preserve 'blocking'. That is empty lines. Because the data set
1 1
2 2
1 2 2 1 are two lines with two points each in gnuplot, not one with four points. I guess you could just do a "/^$/ print ", though... hmm... looks like I finally have to learn awk. So far I've always been refusing to learn awk, I was happy with sed, perl and python...

10 September 2007

Erich Schubert: Debtags going mainstream

Debtags, a tag-based approach to classifying Debian software packages, has taken another big step forwards.Debtags was included in the relaunch of packages.debian.org, Debians package search and information web server. This means it's now visible to pretty much any Debian user.The experimental packages.debian.net also uses Debtags to recommend 'similar' packages.There are some AI/Datamining projects around Debtags that I'm interested in, but I don't know when I'll find time to work on them.

3 September 2007

Erich Schubert: Scalix: only usable by Outlook?

I spend a few hours today trying to get Scalix to work right...I managed to be able to loginto the admin console at the end, yay!Still: it seems that it's pretty much unusable except by Outlook (maybe, I havn't tried that).The reason is simple: they don't let me log into the web mail. With none of my browsers. Because they havn't understood what 'Gecko' is.For tech people (apparently the Scalix people don't fall into this category), Gecko is the 'rendering engine' inside Firefox, Mozilla and a few others.With 'others' including the trademark-unencumbered Iceweasel fork of Firefox, or the Gnome webbrowsers "Epiphany" and "Galeon". Which are not "supported" by Scalix (do you happen to actually know what you are supporting? Did you develop for the Gecko rendering engine or for the Firefox UI?).Other people in the "I'm a web 2.0 company, but I don't know my stuff" hall-of-shame include the huge german email provider GMX. Their new webmail 'preview' is also only enabled if you claim to be using Firefox or Internet Exploder. They neither have understood why all Mozilla browsers include the Gecko id...

Next.

Previous.