Search Results: "sten"

22 May 2006

Uwe Hermann: Podsploiting

The RedTeam, a penetration testing group, has released two security advisories which explain security holes in two podcast clients (podcatchers). Both exploits are possible because the input of the programs is not properly (or at all) sanitized. Basically, they call system($wget_cmd) where $wget_cmd is shell (/bin/sh) code which shall download a file via wget. As the $wget_cmd string contains contents from an untrusted source (HTML/XML on some random server), this results in an "arbitrary code execution" vulnerability, the worst-case scenario you could imagine. If someone is naive enough to even run such a podcatcher as root, this means a remote root exploit! Anyways, the RedTeam is definately correct in saying that more and more people start listening to podcasts, and more and more podcatchers are written. But few of them are written with security in mind, which leaves many listeners at risk... I wonder how popular closed-source podcatchers such as iTunes are affected here. Are there any published audits/audit-results (black-box auditing, obviously, as you don't have the source code) for iTunes? As for Free Software implementations... consider this a call for reviews and audits! If you know/use one of the many podcatchers (or an RSS feed aggregator, which are affected by similar issues), and have some knowledge on secure programming, get the source and review the application. Make the software you use, and the world at large, a little safer. I'll definately have a look at the programs I'm using soonish...

21 May 2006

Christian Perrier: Debconf - day 7

This Saturday was my talk's (shared with Javier Fernandez) day so, obviously, everything was mostly centered on it for me of course. The point is for sure arriving in condition at the talk's moment (16:00, ie the very last formal talk of the Debconf). I first went to Mark's Ubuntu Q&A; session. Pretty live session and interesting confirmaiton by Mark that, even though Rosetta/Launchpad still remains non free software, we could in the future collaborate with WordForge to allow building networks of i18n resources. I quickly ran to the Google Summer of Code BOF to be able to give news about our i18n infrastructure project. I have been delighted to see that the project got ranked very high and we're really likely to have it accepted (I hope this can be leaked this way...:-))). Running again to the Lightning Talks BOF by Joey, I just arrived to be able to show that I can indeed pronounce Jeroune vanne ouolfelaaaaaar very well. Then I attended Erinn and Anthony talk about debugging, which was pretty informative for me, one of the very few who raised their hand when Erinn asked for people who have never used "strace". Thanks, Erinn and Anthony. The fun photo was a good occasion to relax down and forget about my worrying of "where the hell is my cotalker".... We then jumped in the pool and formed this nice swirl (yes, it was nice, Aigars!). The french dudes later began a very entertaining ballet at the diving platforms, all jumping together, lalala. Ido have nice pictures (by the way, everything is uplaoded now). The next hours were spent doing what's usually recommended when giving a talk: last minutes changes with Javier, up to the VERY last minute, where I of course added my beloved SpongeBob Square Pants picture in the slides. About the talk, well, from my point of view it went well. I would have preferred seeing more package maintainers in the audience but, hey, this was the last Debconf formal talk so many were probably tired..:-). Anyway, the world map are still a good fun and, yes, Frans, next time I'll try to be a little less slow (but, hey, everybody has seen me blogging abou tpeople who speak way to fast....). This time, my slowlyness and habit to speak as clearly as possible were in high contrast with Javier's high speed debit..:-) Good positive feedback anyway and good vibrations for me. Thanks to the audience. Coming back at the hacklab we used Javier Sola's last minutes in Mexico up to the end. A very constructive meeting along with Otavio Salvador, Nicolas Fran ois, Aigars Mahinovs, Javier himself and Rapha l Hertzog (who's involved in the GSoC stuff). We finally concluded about the task we can assign to the GSoC student if the project is accepted. This was a good meeting and a good way to reach an agreement between people who do not always agree. The remaining of the evening and night has been spent coping up with my mail backlog and doing a few hacking, l10n commits and various small stuff which accumulated during the previous days. As it happened since 3 days, I was happy enough to have Elizabeth online before going to bed and then we shared some love over the ocean. I even had the plan to send my "je t'aime" during the talk (she was listening, or trying to)....but it would have sounded silly. But anyway, I love her, fellows. The next day will be the last day....yet another "hug" day, I think...not the happiest but....see you at Debconf7!

Ian Murdock: Open-source Java and compatibility in the Java world

Sun is worried about compatibility in a world where Java is open source. I can’t say I blame them, and I say this as someone who spends a majority of his time thinking about compatibility in the Linux world, where we’ve managed to hold it together but still have a lot of work to do to match the relative consistency of the Microsoft alternatives (Windows and .NET, among others). After all, a platform is useless if there’s not a single, standard way for developers to target it. Question is: Does open source inherently lead to compatibility problems? Hardly. How many incompatible versions of, say, Apache are there? Or the Ps of the LAMP stack (Perl, PHP, Python)? Or MySQL? GNOME? KDE? BIND? CUPS? The only reason “Linux” and compatibility often come up in the same breath is because the term is used to describe so many different things. Yes, “Linux” has compatibility issues if you’re comparing Red Hat, SUSE, and Debian, but the actual “Linux” used by each of these “Linuxes” (that is, the Linux kernel) have few if any compatibility issues. It’s more the bits around the edges, like slightly different versions of core components with slightly different ABIs or APIs, not to mention the independently developed subsystems for configuration etc., that lead to the compatibility issues. If anything, the fact that the various Linux distributions share so many of the same open source components makes them far more compatible than the various implementations of UNIX ever were. James Gosling, the father of Java, highlights JavaScript as an example of the situation they’re trying to avoid in a recent podcast with Dan Farber. Today, he explains, there are dozens of AJAX toolkits, and the main reason for this is the need to paper over incompatibilities between the various JavaScript implementations. He’s absolutely right. If anything, though, the JavaScript situation is a good example of what might have been if we knew as much about the power of open source in setting standards in the 1990s as we know today. There are numerous JavaScript implementations today because there wasn’t a de facto standard implementation developers could just use when they needed one way back when (like there was with Apache etc. and wasn’t with some of the problematic “Linux” technologies like configuration management). What if there had been an open source JavaScript all along that became a de facto standard like Apache did? Would the AJAX world look any different today? Ironically, then, Java looks a whole lot more fragmented on its current trajectory as the various open source efforts (Apache Harmony, GCJ, GNU Classpath, etc.)—which exist only because the de facto standard implementation isn’t open source—mature and are more tightly integrated into the Linux distributions. So, what lessons does Linux have to offer Sun as it contemplates the future of Java and, more to the point, how to open source it? First of all, far from being a surefire path to turning Java into a veritable tower of babel, open source could actually help promote compatibility in the Java world. For one thing, if Sun’s Java implementation was open source, history shows there would be no need for another implementation. Case in point: Remember the other Harmony project? Secondly, what’s in a name? Absolutely everything. It’s entirely possible to open source Java without diluting the Java brand and the compatibility guarantees that brand promises. Most famously, this strategy has worked very well for Red Hat—Red Hat’s platform is open source, so you can fork it, but you can’t call the result “Red Hat”, which preserves the compatibility guarantee a successful platform requires. It’s not too late, but we’re rapidly approaching a time when it will be. For one thing, the open source implementations are getting better, and once the genie is out of the bottle, it’s damned near impossible to get it back in (see, again, JavaScript). As I said the other day, “open source Java” isn’t so much about licensing as it is about ubiquity, though licensing can get in the way of ubiquity. We’re almost there. Let’s take the final step we need to take to make Linux/Java as well integrated as Windows/.NET.

19 May 2006

Aigars Mahinovs: Debconf6 day 4: The Daytrip + some hard liquor

May 17th. Just before the daytrip an idea to go for a breakfast came, so at around 8:30 a small group went off to the local market in search for some food. We were seated by a counter and the food was prepared on a large coal heated metal sheet just in front of us. Learning from the last experience of such kind I ordered two tortilias, but I barely ate one of them - it just did not feel right. (Later I was kind of glad that I didn't because my stomach felt a bit funny until the next morning. I guess the body can feel what is good for it.) After we came back to hotel, the buses arrived - large, metallic buses of the GMC (General Motors Company, I assume) that looked like they came straight from 1960s - 1970s. I expected that they will fell like frying pans in the hot midday sun, but in the end the buses turned out to be very nice and comfortable. A half an hour before the leaving time people started to group up. Some took the time to chat, some took the time to take random group photos. The drive to the place was two hours long. The guide told us a bit about the region where we are and its history. I do not remember much of it except that this state has always been the rich farming valley that provided food to many other regions. We also found out the name of the volcano whose picture I took earlier - it was the active Popocatepetl. I have heard that name before. That is the first name that I know here. On arrival to the Xochicalco archaeological site we left our buses and wen into the on-site museum. The museum was built in a barren place without electricity and any water installations, so it was decided to make the museum to be very ecological - sunlight is used wherever possible, electricity is gathered by solar panels, rain water is gathered, collected and purified using natural treatment methods. ALso the building materials are very strange - the buildings look very green. The museum was of the classical site with texts and scenes and bunches of artifacts and a "no flash" requirement. That kind of impacts the pictures. Additionally the glass behind which the artifacts were was way too reflective. After we were done with the museum we went on a 5 minute walk under the midday sun to the site itself. It was really, really hot. People got sunburns later But the view was great. On the site there were some kind of containers that were masked as stones. They might be local trash containers or something else. The whole excursion on the site took around two hours and was spent slowly walking from one shade to another while listening to the explanations of our guide. There were 6 groups in total, our group (the Pink 3) had around 20 people. The ancient city was a well protected multilayer city where people of certain social status were basically locked inside on of the levels and people of the higher level governed them. At all levels there were pyramids and temples and places for parties. Our guide said that having a party almost every week is traditional for people of this region, it is a tradition derived from calendars of the ancient times. There were several ball courts on the territory. Very fascinating game (judging from the available data). The winner was seen as becoming closer to godliness. We have no idea what happened to the loser. But there was a sauna where players went before the game. The excavations at Acropolis section (the rich people section) is still going on. But the main religious place - the temple of the feathered serpent was restored magnificently. It is relatively small (compared to my previously visited pyramids), but very well preserved and restored. Most of the carvings were fully visible. In the end the site was nowhere near as impressive as Teotichuan. Not even close. The final temple was a nice piece, but the rest ... After that we went for a lunch at an all-you-can-eat Mexican buffet. They were obviously notified of our arrival because seating and feeding 300+ people otherwise would be very hard. We sat in our seats and then went for the food at table by table basis. Th food was nice and simple. I had a lot and really considered skipping dinner when we came back. There was also some local fauna at the place: a extremely friendly and lovely chameleon, a meat eating parrot, a hamster, a dog and a pair of pigeons. Apparently all of them were up for adoption. A lot of cuteness ensued. After lunch we drove for an hour to the capital of the Morero state and went to the local market for souvenirs. The shopping was fast and productive even despite the soft rain. In the evening after the daytrip and after the dinner there was a hard liquor party. Hard liquor from multiple countries was presented. I could not evaluate it properly, but I could evaluate the properly prepared Japanese green tea. It was really magnificent. This party was slower then the wine and cheese party - you can't rush with hard liquors. In parallel a pancake party was also taking place in the hotel's kitchen. I looked very nice but I was very full by then.

Aigars Mahinovs: Debconf6 day 3: BOOT!

May 16th. In the morning I was kind of lazy and watched the talks via the webcast which worked very nice. I was even able to give some comments via IRC feedback. Very nice experience. One good idea popped up in the IRC there - it would also be useful to have an audio only webcast to conserve bandwidth. The "early" morning discussion about etch release and kernel to use in it was quite interesting to watch while I did not necessary got all the things that were said there. Then in the tower there was a great BOF session about speeding up the boot. It was a very nice session because there was a lot of discussion, lot of questions and comments from the audience. A GPL license talk followed the boot BOF and again I watched it via the webcast from the hacklab. Convenient. But then my network went down somehow I found it faster to walk to the tower then to get it back up. Several good questions were asked about the problems with current GPLv3 draft. Some ideas formed about how to fix the Affero clause using "public performance" phrasing. An insightful insight into the brain of debian-legal. Mao is deep ingrained into the brains of Debian Developers
marga: it has been observed that debian members respect each other.
Myon: are you explaining the rules?
marga: Myon, actually, I wasn't, but I wouldn't mind explaining them
dondelelcaro: Myon, is that against the rules?
Myon: I would have to take a penalty card if I said 'yes'
dondelelcaro: talking.
Enrico did the social guidelines dance outlining the recommendations for peaceful coexistence without resorting to telletubbie or inquisition practices. It sounded very reasonable as recommendations, but those must never be promoted to any kind of policy. Enrico also mentioned that. Penny Peach, we miss you. After dinner a bunch of small mexican-looking females bunched first around the Japanese guys and then around the group where I was in. They were all smiling and very exited. They spoke very fast Spanish while rubbing their clothes and making horizontal back-and-forth motions with their hands. Nobody of us spoke Spanish. And they kept speaking and rubbing. My mind raced to present one unlikely reasoning after another, but nothing really fitted the situation. After a few minutes of total confusion we found a Spanish speaker who found out that they wanted ... an iron. An iron to iron their clothes. Doh! I was so confused that I only got 1 blurry photo from the ... incident. Random note: the fan control system here is quite ... buttony. Then we had a BOF about packaging of web applications and other applications that need database access. Maintainers and users of such things will be happy to hear that the situation is being resolved and there will most probably be a policy for etch+1 for that. Large ISPs and hosting providers will be happy to hear that their need are also heard (or will be heard if you join the process) and most probably it will be possible to activate/deactivate a web application for a certain user at a certain path of a certain virtual host with a single command that can also be scripted. In any case if you are interested in this development, please participate now, so that your need can be heard too. After the BOFs the, now official and scheduled, wine and cheese party started. It was briefly interrupted by rain, but the tables were moved under the roof in seconds and the party continued. There were around 40 different cheeses. Most of them were French and almost all of them were very tasty (some were .. an acquired taste :)). I can't say anything about the wine (I do not like the taste of alcohol), but other tasters were expressing very positive remarks. The party went on for a long time with more and more cheeses and vines brought up with time. There was some more hair coloring going on. Then there was the demonstration of use of duck tape on an almost professional HD 1080i video camera. And then there was the public demonstration of present Debian swirl tattoos. Impressive. When I was just going to go to the bed, I was lured into another game of Mao. I must say that playing Mao right after the wine and cheese part is ... interesting. Some girls got ... lucky ... seven. And there was still quite a lot of hacking going on around two in the night when I went to sleep. Tomorrow is the daytrip.

Erich Schubert: Worldcup songs (aka: the four letter f-word: F*FA)

FIFA sucks. It's so much about commerce... Don't buy their stuff. Buy your soccer balls at e.g. Transfair. These were bought at fair prices and not made by exploiting people in third world regions. Check out the 'Wilde Fu ballkerle' design. Very sweet. Much better than this annoying worldcup logo just about everywhere. But back to my original topic. These annoying 'official' worldcup songs. Dear FIFA, how about letting people decide which songs they like? I hate your choice... It makes me think of Titanic! And actually I hope that this happens to FIFA, that they go down like titanic because of some corruption scandal or so. If you want to compare them, check out Voices from the Fifa World Cup at Amazon (with realplayer samples). My current favourite is 1. FC Sommer, played by the Bananafishbones (last.fm), an indie band. They're cool. They do a festival and support new indie bands. If you want to listen to an excerpt, point your browser to the 1. FC Sommer page, there is a realplayer stream available again, klick that audio button. That song has some great wordplays in there, too bad that you can't translate them in all details into english. The refrain is "Der Sommer geh rt dem, der den Weltmeister schafft" which translates to "The summer belongs to who wins the worldcup"; the world play is "Weltmeister schafft" (becomes the world champion) and "Weltmeisterschaft" (Worldcup). And there is also a nice song by Sportfreunde Stiller, who did a whole CD full of soccer songs. So just ignore FIFA and don't buy their branded stuff.

Uwe Hermann: OS Install Experiences - Part 1: Debian stable + unstable [Update]

Debian Open Use Logo
Note: This article is part of my OS Install Experiences series.
OK, so let's start with something simple: Debian. Simple in the sense that there probably won't be too many surprises for me as a Debian developer (or for most readers of Planet Debian). For other people this might be interesting, though, and some facts are probably interesting to one or the other experienced Debian user/developer, too... Hardware A few words on the hardware I'll be installing all these OSes on. It's a cheapo (200 Euros) x86 PC (Intel Celeron, 2 GHz), 80 GB IDE hard drive, 256 MB RAM, ATI Radeon 9200 SE graphics adapter, Realtek PCI ethernet controller, CDROM, USB, and all the other standard stuff. Nothing fancy, really. Install
  1. First, I downloaded a Debian sarge 3.1r2 CD image, burned it on a CD, and booted from that.
  2. An installer menu showed up, where you can press F3 for boot options. I chose "expert26", which will ask me more questions and give me a 2.6 Linux kernel instead of 2.4.
  3. The installer (newt-based, i.e. not graphical) will now start to boot a base Linux system.
  4. Now, you can choose your language (used in the installer), country, region, and keyboard layout.
  5. You'll be asked which additional kernel modules you want to load (default: all), and whether you want PCMCIA support. Also, you can choose which extra installer components should be loaded (LVM, PPP, serial, IrDA, ...).
  6. Your hardware can be automatically detected (my Realtek card was successfully detected, the "8139too" kernel module was then loaded).
  7. The network was successfully auto-configured via DHCP within seconds.
  8. Now you can choose a hostname and domain name for the box. I used "hydra" as hostname (guess why), and "local.domain" as domain name.
Partitioning Now the funny part starts: partitioning the disk. As I will be installing >= 10 OSes, this needs a bit of consideration. I have chosen to create a 10 GB (primary) partition for a Redmond OS I'll be installing later (for games, testing, proprietary software I'm forced to use, and similar things). This will be the first partition and I marked it bootable, as Windows might choke otherwise. For the rest, I reserved 5 GB for each OS — that should do. So the next two (primary) partitions are 5 GB each. I'll leave these empty for now, as I might encounter obscure OSes which must be installed on primary partitions. Let's hope it won't be more than two ;-) As you can only have four primary partitions, I then had to create a logical partition, which will "contain" any further partitions. The next three (secondary) partitions are 1 GB each, intended to be used as swap. One of those I marked as swap in order to use it for Debian. Other Linux installations will be able to reuse this one. The other two are reserved in case I encounter OSes which have another form of swap and cannot use Linux swap partitions... The rest is easy: create twelve 5 GB partitions => lots of space for more OSes. Here's the resulting fdisk output:
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
      Device Boot      Start         End      Blocks   Id  System
   /dev/hda1   *           1        1216     9767488+  83  Linux
   /dev/hda2            1217        1824     4883760   83  Linux
   /dev/hda3            1825        2432     4883760   83  Linux
   /dev/hda4            2433        9964    60500790    5  Extended
   /dev/hda5            2433        2554      979933+  82  Linux swap / Solaris
   /dev/hda6            2555        2676      979933+  83  Linux
   /dev/hda7            2677        2798      979933+  83  Linux
   /dev/hda8            2799        3406     4883728+  83  Linux
   /dev/hda9            3407        4014     4883728+  83  Linux
   /dev/hda10           4015        4622     4883728+  83  Linux
   /dev/hda11           4623        5230     4883728+  83  Linux
   /dev/hda12           5231        5838     4883728+  83  Linux
   /dev/hda13           5839        6446     4883728+  83  Linux
   /dev/hda14           6447        7054     4883728+  83  Linux
   /dev/hda15           7055        7662     4883728+  83  Linux
   /dev/hda16           7663        8270     4883728+  83  Linux
   /dev/hda17           8271        8878     4883728+  83  Linux
   /dev/hda18           8879        9486     4883728+  83  Linux
   /dev/hda19           9487        9964     3839503+  83  Linux
Install, continued
  1. The Debian partitioning tool allowed me to do all of the above via a friendly menu. As it does not modify the partition table until you say "done", I could revert many changes, and play around with different layout ideas until I was satisfied.
  2. Next thing you can choose is the Kernel flavor (386, 686, smp).
  3. You may now configure and install GRUB, the bootloader. I installed it at "(hd0)", the master boot record of the hard disk.
  4. Soon the CD ejects, and you have to reboot.
  5. After a restart (which also shows whether GRUB works fine), you can now choose your timezone, and decide whether you want shadow passwords (say yes!).
  6. Now enter the root password, and decide whether you want to create an additional user account (say yes, and enter a different password here).
  7. You can now configure apt, e.g. tell it which sources you'd like to use (CDROM, FTP, HTTP, ...). You'll be asked whether you want to install software from Debian's "non-free" archive. After choosing a mirror (and proxy settings, if you like), you can (should!) also say yes to the question whether you want security updates...
  8. Finally, you may now choose "tasks" (desktop, web server, file server, ...) your machine should be able to perform; this will influence which packages will be installed. You may choose "manual package selection", of course, if you want more control. I used "desktop".
  9. That's about it. You'll see a few more application-specific questions (configuration of MTA, ssh, fonts, X11, gdm, and others), and after that you'll be left with a GNOME login window.
Security I collected some (partly) security-relevant information after that. Ok, so that's it for Debian stable. Unstable is 99% the same, except that you do a "vi /etc/apt/sources.list; apt-get update; apt-get dist-upgrade". I'll do that later maybe, compare the findings, and report notable differences here, but it shouldn't be too many (I guess). Not today, though, I need some sleep now. Comments, suggestions, flames? Update 2006-05-19: Updated "why is Debian-exim capitalized?" info as per comments, thanks!

18 May 2006

Ted Walther: Why didn't King Solomon kill the two prostitutes?

On the long bus ride back from the Mexican pyramids, I got to think about a long standing problem. If Israel's laws forbade prostitution, why didn't Israel's greatest judge enforce those laws? We've all heard the story of King Solomon and the two harlot's, where he finds the real mother by threatening to chop the baby in two. Since the laws of Israel carried a death penalty for adultery, why didn't Solomon enforce it? People today equate prostitution with adultery, but the Bible does not. Not always. As the wisest man who ever lived, a walking embodiment of true justice, Solomons judgement deserves a deeper look. Here is the text of the whole incident:
1 Kings 3:16-28 Then came there two women, that were harlots, unto the king, and stood before him. And the one woman said, O my lord, I and this woman dwell in one house; and I was delivered of a child with her in the house. And it came to pass the third day after that I was delivered, that this woman was delivered also: and we were together; there was no stranger with us in the house, save we two in the house. And this woman's child died in the night; because she overlaid it. And she arose at midnight, and took my son from beside me, while thine handmaid slept, and laid it in her bosom, and laid her dead child in my bosom. And when I rose in the morning to give my child suck, behold, it was dead: but when I had considered it in the morning, behold, it was not my son, which I did bear. And the other woman said, Nay; but the living is my son, and the dead is thy son. And this said, No; but the dead is thy son, and the living is my son. Thus they spake before the king. Then said the king, The one saith, This is my son that liveth, and thy son is the dead: and the other saith, Nay; but thy son is the dead, and my son is the living. And the king said, Bring me a sword. And they brought a sword before the king. And the king said, Divide the living child in two, and give half to the one, and half to the other. Then spake the woman whose the living child was unto the king, for her bowels yearned upon her son, and she said, O my lord, give her the living child, and in no wise slay it. But the other said, Let it be neither mine nor thine, but divide it. Then the king answered and said, Give her the living child, and in no wise slay it: she is the mother thereof. And all Israel heard of the judgment which the king had judged; and they feared the king: for they saw that the wisdom of God was in him, to do judgment.
Whoredom, harlotry, prostitution; they defile the land. When Judah thought his daughter-in-law Tamar had become a harlot, he ordered her to be burnt. The problem was not with the sex for pay, but with violation of Judah's property rights. Tamar had been bought and paid for, and belonged to his family for the purpose of increasing their manpower. Biblically, sex for pay is fine. A ketubah (marriage contract) guarantees a woman a certain financial allowance in return for performing her sexual duties. The problem is that prostitution lowers the birthrate of the population, thus reducing its manpower, thus reducing its brainpower, thus reducing its ability to protect and defend itself. The connection between prostitution and lower birth rates isn't obvious to the layman, so just take it for granted right now.
Leviticus 18:20,28 Moreover thou shalt not lie carnally with thy neighbour's wife, to defile thyself with her. That the land spue not you out also, when ye defile it, as it spued out the nations that were before you. Leviticus 19:29 Do not prostitute thy daughter, to cause her to be a whore; lest the land fall to whoredom, and the land become full of wickedness.
Prostitution can fall into two categories; the woman is still the property of her father, or she belongs to a husband. Widows, divorced, and single women fall into the category of belonging to their fathers; they have a right to return to the family home and be supported there. How would a father prostitute his daughter? If he treats her harshly, refuses to marry her off to a suitable husband, does not feed or clothe her, train her or discipline her, she may well turn to whoredom to support herself. Look closely at the story of the two harlots. They say they have no man. They fall into the category of single women. Sex with a single woman is not adultery. Adultery carries the death penalty, but as single women, their prostitution was to be regulated by different laws. If a girl took up the prostitution trade, and then got married under false pretenses, pretending to be a virgin, the penalty was death. However no death penalty is indicated for the circumstance where the woman and her family were up front about her past. A man taking a wife needs to be able to accurately assess the risks of disease and future infidelity.
Deuteronomy 22:13-21 If any man take a wife, and go in unto her, and hate her, And give occasions of speech against her, and bring up an evil name upon her, and say, I took this woman, and when I came to her, I found her not a maid: Then shall the father of the damsel, and her mother, take and bring forth the tokens of the damsel's virginity unto the elders of the city in the gate: And the damsel's father shall say unto the elders, I gave my daughter unto this man to wife, and he hateth her; And, lo, he hath given occasions of speech against her, saying, I found not thy daughter a maid; and yet these are the tokens of my daughter's virginity. And they shall spread the cloth before the elders of the city. And the elders of that city shall take that man and chastise him; And they shall amerce him in an hundred shekels of silver, and give them unto the father of the damsel, because he hath brought up an evil name upon a virgin of Israel: and she shall be his wife; he may not put her away all his days. But if this thing be true, and the tokens of virginity be not found for the damsel: Then they shall bring out the damsel to the door of her father's house, and the men of her city shall stone her with stones that she die: because she hath wrought folly in Israel, to play the whore in her father's house: so shalt thou put evil away from among you.
Suppose a single woman was to work as a whore. What is the penalty? For the girl, no penalty at all. If she is a virgin turning her first trick, the man has to pay a hefty fine of fifty shekels to her father, who has the choice of giving her in marriage or not.
Exodus 22:16,17 And if a man entice a maid that is not betrothed, and lie with her, he shall surely endow her to be his wife. If her father utterly refuse to give her unto him, he shall pay money according to the dowry of virgins. Deuteronomy 22:28,29 If a man find a damsel that is a virgin, which is not betrothed, and lay hold on her, and lie with her, and they be found; Then the man that lay with her shall give unto the damsel's father fifty shekels of silver, and she shall be his wife; because he hath humbled her, he may not put her away all his days.
When she is no longer a virgin, her father either allows her to be a prostitute, violating the law at Leviticus 19:29, or he doesn't allow her. If her father allows her, then he becomes liable for her behavior and she is not punished, as described in Hosea 4:13,14 quoted below. If her father doesn't allow her, she is again subject to the death penalty, as set forth in the next set of verses:
Deuteronomy 21:18-21 If a man have a stubborn and rebellious son, which will not obey the voice of his father, or the voice of his mother, and that, when they have chastened him, will not hearken unto them: Then shall his father and his mother lay hold on him, and bring him out unto the elders of his city, and unto the gate of his place; And they shall say unto the elders of his city, This our son is stubborn and rebellious, he will not obey our voice; he is a glutton, and a drunkard. And all the men of his city shall stone him with stones, that he die: so shalt thou put evil away from among you; and all Israel shall hear, and fear.
In the case of Solomon's two harlots, there is no evidence at all that their father disciplined or otherwise acted to prevent them from their trade. Perhaps their father was dead, but in that case his responsibility to his daughters would have fallen on his next of kin. It really is a matter of family responsibility, not of persecuting individuals. There is one remaining corner case; what of the married woman who becomes a prostitute? What if the two harlots had been married after all? It is a principle of the Torah that it must be applied equally. You cannot hit one party with the full penalty then let another get off free for the same crime. It is better to err on the side of mercy, so if you do not convict one, you should not convict another. This is violated daily by un-Godly governments who selectively enforce their laws to "make examples" of people. Such selective enforcement is neither fair or just. In Solomon's case, assuming the women were married, the other parties to the crime of adultery were missing. Without them, there was no way to proceed. This is why Jesus was able to say "Let he who is without sin cast the first stone." The two witnesses rule also comes into it; before a person can be put to death two witnesses to the crime are required. Solomon's two harlots had no witnesses against them. When people engage in false worship, and use the services of whores, God will not punish the women who turn to adultery and infidelity. He will punish those who are responsible; the men, who failed to take their patriarchal prerogative in setting a good example of just, fair, respectful, and temperate behavior.
Hosea 4:13,14 They sacrifice upon the tops of the mountains, and burn incense upon the hills, under oaks and poplars and elms, because the shadow thereof is good: therefore your daughters shall commit whoredom, and your spouses shall commit adultery. I will not punish your daughters when they commit whoredom, nor your spouses when they commit adultery: for themselves are separated with whores, and they sacrifice with harlots: therefore the people that doth not understand shall fall.
If you have any Torah questions, feel free to write in to ted AT reactor-core DOT org.

Adam Rosi-Kessel: Goodbye Globe

It is with some sadness and reluctance that I canceled our daily subscription to the Boston Globe today. I like the idea of a print newspaper, but in reality, it doesn’t work for me anymore. Perhaps the biggest problem is newspapers deliver news at the least useful interval. Radio and the web give you up-to-the-minute updates, while weekly and monthly magazines give you in depth, critical treatment of the news in perspective. (Of course, the web also gives you everything, although it is not always as portable as a magazine or radio.) Newspapers end up somewhere in between: they are generally hastily (and thus poorly) written; don’t usually have space for in depth and contextual treatment (although certainly better than most TV news); but by the time you get them they are already dated if you’ve been checking Google News and listening to NPR. Newspapers also have vast amounts of irrelevant content that just creates more work for me in taking out the recycling. I never look at the sports, real estate, “lifestyle,” or automotive sections; the hundreds of pages of advertising material in the Sunday edition likewise go right into the recycle bin. At the end of the week, I look at the pile of unread dead trees, and realize what an inefficient process it is. Finally, it’s just not a good value. $400 a year could pay for a lot more high quality online or offline content. I understand the newspaper business has been having a tough time, and I’m not helping things by unsubscribing. (The desperation is palpable in the “Free Boston Herald” hawkers stationed outside my office every evening.) I hope the good investigative reporters still find a way to ply their trade. Maybe they will all end up at high quality weekly and monthly publications, e.g., Seymour Hersh at the New Yorker. In any event, I’m looking forward to less work and less guilt carrying the recycling to the curb. I suppose I’m just doing my part to kill old media.

17 May 2006

Matt Brown: Playing With ZoomIn

I signed up for a ZoomIn API Key (not that it seems to be needed atm…) the other week and finally got a chance to have a play this past weekend. My test case was to build a map of all the CRCnet sites and the links between them to use as a plugin in the CRCnet Configuration System. Either as a dynamic status display (colouring links to show traffic loads and status etc) or as a network planning tool to get a feel for the relationship between existing sites and potential new locations. Obviously the lack of topographical information makes the second case far less useful than it could be, but I think even in 2D it would still be a useful tool. Getting the points onto the map was relatively straightforward, but adding any sort of hover event to them was another matter. The GEvent class currently only supports the click event and markers are not added with any other identifying attributes (such as an ID or Name) which could be used to hook an event into them. After a quick squiz at the Terms and Conditions, I grabbed a copy of the API javascript and after unobfuscating it (basically just adding back in line breaks and running in through indent(1)) started to have a squiz at what was happening. The API code is very nice and clean and it wasn’t at all hard to work out what was going on. Mozilla’s Venkman javascript debugger absolutely rocks for this sort of work. It allows you to step through all the scripts on the page line by line and quickly get a feel for the flow of the code. Adding support for the hover (onmouseover) event doesn’t look like it would be too hard, but the T&C didn’t explicitly mention whether I was allowed to actually modify the API code, so I choose to simply create a CRCnetMarker class (see below) that creates GMarker object and then pokes id attributes onto the internal objects of that class before returning it. Then once you’ve called addOverlay you can use the basic DOM functions to hook in an onmouseover event handler on the ID of the marker.
var CRCnetMarker = function (sitename, point, icon)
 
    var marker = new GMarker(point, icon);
    marker.icon.id = "crcnet_container_" + sitename;
    marker.icon.firstChild.id = "crcnet_icon_" + sitename;
    marker.addEventListener = function (eventname, handler)  
         b = document.getElementById(marker.icon.firstChild.id);
         b.addEventListener(eventname, handler, false);
     
     return marker;
 
var marker = new CRCnetMarker(new GPoint(2704685.21,6367057.51), "mph");
map.addOverlay(marker);
marker.addEventListener('mouseover', hoverHandler);
That worked like a charm and I now have nice little info boxes popping up next to each node when you hover over them. I also discovered in the process of implementing this that Prototype and ZoomIn do not play nicely together. It appears to be Prototype’s fault as it messes with the Array type by adding new methods (like each for enumeration) which break the builtin for (i in array) syntax when the array contains non-numeric keys (like each). This has been reported in the prototype bug tracker as breaking Yahoo Maps but the comments don’t seem to offer much hope for Prototype’s behaviour changing anytime soon which is a pity. The next roadblock was a lack of support for drawing lines! This put the kibosh on the whole animated network status idea. Trolling through the source again reveals a GPolyLine class that appears to be semi-implemented, so hopefully support for drawing lines is coming very soon. The only other thing I found slightly annoying was having to supply all the co-ordinates in NZGD49 format. Most of our GPS information for CRCnet is stored in WGS84 format (as that’s what our older GPS unit puts out). NZGD49 has been deprecated in favour of NZGD2000 (which is near enough to identical to WGS84 for normal use) so I’m not really sure why ZoomIn is still using NZGD49. Maybe that’s all TerraLink can supply? Some quick googling turned up the proj library (apt-get install proj in Debian) which provides the cs2cs utility which can convert from WGS84 (aka NZGD2000) to NZGD49 to feed to ZoomIn. The magic peice of information is the transformation parameters which LINZ helpfully provide. Punching those (I chose the 7 parameter version) into cs2cs via a command line like

echo "$lat $long" /usr/bin/cs2cs +proj=latlong +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 +nodefs +to +proj=nzmg +datum=nzgd49 +ellps=intl +towgs84=59.47,-5.04,187.44,-0.47,0.10,-1.024,-4.5993 awk ' print $1" "$2 '

performs the magic conversion. The conclusion?
Overall I think ZoomIn rocks and it’s really cool to see a small NZ company filling in where Google and friends have failed miserably. The biggest weakness at the moment is definitely the API, which doesn’t really allow you to do much more than add points at this stage. Given that ZoomIn is still relatively young the leanness off the API is understandable. Given the API a few more months to mature and fill out and I think we’ll be able to create some really cool applications on top of the ZoomIn platform. Screenshot:

16 May 2006

Axel Beckert: Fixing server bugs on client side

On my new job at ETH Zurich I stumbled over a lot of HTTP requests in the web server log file, obviously trying to fetch the automatic proxy configuration file (usually called proxy.pac) but requesting it with the last character missing and therefore requesting the nonexistent file proxy.pa:
195.176.XX.AB - - [16/May/2006:11:12:56 +0200] "GET /proxy.pa HTTP/1.1" 404 5261 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
195.176.YY.CD - - [16/May/2006:11:16:32 +0200] "GET /proxy.pa HTTP/1.0" 404 5235 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
195.176.ZZ.EF - - [16/May/2006:11:18:38 +0200] "GET /proxy.pa HTTP/1.0" 404 5235 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
195.176.YY.CD - - [16/May/2006:11:24:16 +0200] "GET /proxy.pa HTTP/1.0" 404 5235 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
195.176.ZZ.GHI - - [16/May/2006:11:31:44 +0200] "GET /proxy.pa HTTP/1.0" 404 5235 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
195.176.XX.J - - [16/May/2006:11:33:35 +0200] "GET /proxy.pa HTTP/1.1" 404 5261 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
195.176.ZZ.LMN - - [16/May/2006:11:35:18 +0200] "GET /proxy.pa HTTP/1.1" 404 5261 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
WTF happend here? When I found a bunch of those request from a single host last night, I expected a local cut and waste typo on a single box. But during the day I got the same sort of defective requests from over 30 hosts in our network. So we looked at our dhcpd.conf, but all appearances of “proxy.pac” had its “c” at the right place. WTF is happening here? After googling for a moment I found this mail on the squid users mailing list, stating the following:
WPAD worked reasonably well for WindowsNT and Windows2000; however, there was a problem with the file name in Windows2000 and the initial release of WindowsXP. The Microsoft DHCP Service returned the wrong byte count for the string returned for option 252. The DHCP Client compensated for this by decrementing the string length. This resulted in the file name being truncated when the ISC DHCP daemon was used. The solution was to define a symlink proxy.pa –> proxy.pac.
So in other words: Microsoft worked around a off-by-one bug in their own DHCP server by patching their DHCP client to parse faulty configurations — and obviously only faulty configurations by expecting some length statement to be always off-by-one. *hrrrrng* Our solution was BTW to insert an appropriate Alias directive into our Apache web server hosting the file.

15 May 2006

Christian Perrier: Debconf - day 1

So, day 1 started when I felt asleep in the plane, at some randome place over the ocean near Galicia. We actually had a good sleep as the other place people weren't noisy even though the plane was packed. Woke up at 03:00 (MEX time). After a few listening music, I found myself using the free time to read the huge Report of Findings about Gender in F/LOSS recently mentioned in the Debian-Women mailing list. This is a very deeply interesting document which is a quite complete picture about the "Women in F/LOSS" topic. The people interested in the Debian Women project should definitely have a look at it. We finally landed easily at 06:30 local time. No problem going thru the customs, even though 3 of us were carrying more cheese than needed to be considered a terrorist group trying to invade Mexico. Cab drive to Oaxteprc went fine. The scenery is quite impressive and the pass at 3100m on the highway is....a bit strange for all of us. When arriving the Oaxtepec center we soon met with Enrico who helped us to discover the place, which is good as is is BIG... Found my room, with Damog and Ana sleeping in it (sleeping drunk as I was told later...:-))). So, I gently left my luggage there and we moved to have some breakfast at the market. I ate some really good tasting stuff which names I've no idea of, but thanks to Magic Enrico and his incredible abilities to catch any language in the world, we managed to do it. Back to the Tower for the Introductory talk...it was hard to be there in time with all these people crossing my path and who I need to say "hi" and babble with again. Later in the afternoon, after lunch, I felt more and more tired, so I missed Enrico's talk (Enrico, apologies!) and just isolated self, listening to good old Hot Tuna stuff and working on my business mail (yeah, I know, it's Sunday). More energy retrieved helped to finish the afternoon by hanging around here and there, trying to set up two ad-hoc sessions aimed at gathering all people interested in i18n to have some brainstoriming about what we want for i18n infratructure and all similar topics. Finally, at the end of the day, I attended Meike's training session for speakers. Really interesting moment to share with Aigars Mahinovs, Neil Mc Govern (hope I got it right), Bruno (Barrera), Martin Krafft. OK, we all suck on some aspects of our presentation skills but we less suck now (I'm afraid I will still suck by talk unpreparation as you will all notice for the "State of the art of i18n" I share with Javier on Saturday). And, finally, yes, finally...bed at midnight. Not so bad to recover from jet lag. Now I'm ready for a full Debconf Day, full of energy. Be prepared to a lot of bubulle's babbling, dudes.

Aigars Mahinovs: Debconf6 day 1: Intro

The day was started by a welcome speech from the organizers saying thanks to all (most) the helpers and sponsors. The tower room was almost full, I wonder how will it look like when the real talks start. The next talk is only planed after an hour and a half as no BOF claimed this time slot. Well - a bit more time for hacking, socializing and sunbathing. :) After an hour of working on a good tan I went to "Debian vs. Open Solaris" discussion. After a bit of time the discussion about CDDL broke out. Debian basically objects to choice of venue clause and there are also GPL-incompatibility problems that might go away with GPLv3. The core of the discussion was more of the explanation of why those clauses were placed there in the first place. The sense that I got for the discussion is that Sun would modify CDDL in a way that will most probably make it DFSG-free and compatible with at least GPLv3. Also it was told that in fact usually choice of venue only applies to court suites between multi-regional corporations with overlapping regions. The legal discussions went over my head more then once especially when GPLv2, GPLv3 and CDDL license interaction on one system and distribution of such where discussed. On the OpenSolaris front there is a move from indoor source control system to Subversion. So far there are only around 100 non-Sun commits to OpenSolaris, but a big jump is expected after the transition to SVN is complete. Joey Hess had a wiki talk in paralel, which I did not see. Off to lunch! At the lunch I got to sit at the one table with Paul Allen from Intel and Ted Walther. It was discovered that Ted is actually just coming out of fasting so he does not eat anything, but only drinks juices. Well, that's one way to avoid foreign food problems. On the way back from lunch I got a lead on my first mark. I will now start a separate article about the Assassins game that I will publish when the game is over. The second talk was from Enrico about waisting time. He waisted a lot of our time with that :). I loved vigor - a paper clip assistant for vi :D. xlaby - a labyrinth for your mouse pointer. Read the man page! On the later part of the day I was busy mourning my death, preparing and trying to print papers fr the travel reimbursement stuff, so I missed all BOFs between Enrico and dinner, but had a bit of time for some local tetrinet fun. While I was doing that Ted was at the marketplace and got me a few bags of fried grasshoppers - a great souvenirs, thanks! :) Some evening hacking in the hacklab after the dinner and I already wanted to go to bed when I saw in the IRC an announcement about Speaker training BOF. The event was very interesting - Meike Reichle showed and made us do us several nice things that will definitely improve our public speaking. After that I just could not go buy a group of people playing Mao and I immediately joined the game. Luckily they were not playing long so I got the rules in seconds. The game nearly imploded after one of the players was very inconsistent with his rules (he had to rethink them all the time), but then another winner just reset the game and it went on with a lot of fun from that point. The game had three newbies, so it was a lot of fun, but also a bit of waiting for people to catch up and pay attention. Well, off to bed now - tomorrow will be busy.

14 May 2006

Erich Schubert: DNSoupdate download location

So those interested in my remote DNS update CGI (via nsupdate), you can download it from my playground for now. Note that as usualy it comes without any warranty; there might be still security issues in there (but you don't want to allow arbitrary users to access it anyway...) and so on, you know the drill. The big plus of that app is that it doesn't modify zone files, but just loads the current zone via the DNS protocol (zone transfer), and modifications are sent back to your DNS server via DNS, too (nsupdate, just like dhcpd does). That way it works very well remotely, is quite secure and reliable (no parsing of zone files involved, no reloading of your name server). While it's MIT-style licensed, I still appreciate improvements such as syntax checks for entered data (nsupdate does a bit, but not much).

10 May 2006

David Welton: Consistency vs Convenience

We have a decision to make in the Hecl project that highlights how much computer programming is really an art, rather than a science. Namely, how to name a series of string handling commands. Tcl has a series of string commands like
string first string1 string2 ?startIndex?
string equal ?-nocase? ?-length int? string1 string2
string index string charIndex
which are mostly consistent. At times, they're also just a bit more unwieldy than I might like. For instance;
set somechar [string index "the nth char is" 4]
is just not as quick to write as
somechar = "the nth char is"[4]
For something that you need to use frequently like 'string equals', a shorter, quicker version is really a must - infact, Tcl's expressions recognize the 'eq' operator. Hecl has 'eq' and 'ne' as commands, which makes things a bit less consistent, sure, but a lot more convenient. The decision we need to make, though, is where to draw the line? String equality is so common that it doesn't take much thought to opt for convenience. How about string index? string length? The artistry involved is to make something that's appealing to people, but also practical. Elegant, but not so much that it remains unsullied by use in real work.

9 May 2006

Martin F. Krafft: Choosing a new cellphone

For the past two years, I have been a moderately satisfied user of the Nokia 6230 cellphone, which does all a cellphone should do ("it even has a camera!"). However, it suffers from some shortcomings, namely:
  • While it's surely possible to connect a laptop to the Internet via bluetooth to the phone, then GSM, UMTS, or GPRS to the provider, it's not possible to do it the other way, phone via bluetooth to laptop, then Ethernet. This is annoying for two reasons: one, I have to pay expensive GPRS charges even if I am downloading something to the phone in the office, and two, I cannot use my SyncML server, because the perimeter firewall blocks access to its port from the outside. See these threads: A B C.
  • When connected to the headset, the phone cannot establish other bluetooth connections. So while it's possible for me to dial numbers from the laptop or my Palm (quite convenient), I cannot do that for calls using the headset. I'd really like to be able to stow my cellphone in the bag, and do communications with the Palm (which can also read and send SMS via the phone) and the headset only. Right now, I might have to search for the number on the Palm, dial it by hand, then stash the phone away to complete the call via headset.
  • I store all my contacts on the phone memory, not on the SIM card, for two reasons: the SIM card memory can only store one number per name, and I really don't want separate records for "John Home", "John Office", and "John Cell", and two, I often switch SIM cards when travelling to other countries. But switching the SIM card will always configure the phone to use phone and SIM memory for the addressbook, so I always have to change that back.
  • Even though the phone comes with timezone support, I have to press at least 10 keys to change the timezone.
  • The phone has five caller groups, to which you can assign separate ringing tones. I often wanted to be able to set ring tones per person instead.
Now, my provider is offering me a new phone if I choose to renew the contract (which I will). Thus, I am faced with a new choice, and so ventured out to the stores to get myself informed. I have somewhat of a preference for Nokia phones simply because I already have a set of chargers for them. My requirements for a phone are:
  • It has to be small, light, and sturdy.
  • It has to have bluetooth, ideally without the aforementioned shortcomings.
  • It has to have a long battery life, standby time of at least a week.
  • It should interface (via bluetooth) with the Palm Tungsten T5 as well as Linux (Gammu, or something else).
  • It has to have quick and intuitive navigation (this pretty much rules out Sony Ericsson, where it can be a second between keypress and display update, or so I've seen).
  • It has to have voice-activated dialing, but instead of pressing a key, speaking the name, then having the phone dial, I would like to press a key, speak the name, confirm the call within a set amount of time, and only then have the phone call. Alternatively, I'd accept if I had to keep a button pressed while speaking the name. Also, the phone should acknowledge failure to determine a name rather than choosing the closest one; it happened too many times that the key would be accidentally pressed while the phone was in my pocket, followed by the phone's "smart" decision to call some random person in my address book after listening to the background noise or the rustling of my pocket.
My most-wanted feature has always been a button you can press, which would make the phone ring 10 seconds later -- a great way to get out of an annoying conversation. Unfortunately, no manufacturer even bothered to reply to my feature request sent maybe 4 years ago, so it's unlikely I'll find a phone with this capability anytime soon. Another nice feature to have would be an in-phone answering machine, like the Sony CMD-Z5 used to have. Of course, the provider lobby is not going to let that happen, as they'd lose revenue not being able to charge people normal connection charges for calls to their own mailbox. What I don't need (but would not care about anyway) are:
  • Camera, video camera
  • MP3 player, other multimedia support
  • MMS support
  • Games, Java, other applications
Given all of the above, it seems that I only have one phone to choose: The Nokia 6230i, where the i stands for "improved", I guess. But before you get your hops up high (as I did mine), check out the list of improvements and join me in a big sigh. While every manufacturer, including Nokia, has released several new phones over the last two years, they have all been down their multimedia lines. In fact, it seems that the only improvements Nokia and the other manufacturers performed on their business lines was to make the phones larger, add keyboards, and turn them more into PDAs. How sad. Then again, a lot of new models are announced. I may well have to put off the decision until the 6233 is out, the 6021 available here, or I've had a chance to check out the 6822. Also, the E60 and E70 look like worth a look, especially because they integrate Voice-over-IP. And I feel I should have another look at Motorola, Samsung, and Siemens phones. However, so far I have not heard too many good things about any of these, and haven't seen models that are small and light. I really don't need to slide or fold the phone to use it. PS: if you are a phone manufacturer and read this, maybe you could again consider normal user needs when designing your next line of phones, rather than trying to forcefully push more multimedia upon our entertainment society, which nobody really needs but everyone ends up using.

Martin F. Krafft: Choosing a new cellphone

For the past two years, I have been a moderately satisfied user of the Nokia 6230 cellphone, which does all a cellphone should do ("it even has a camera!"). However, it suffers from some shortcomings, namely:
  • While it's surely possible to connect a laptop to the Internet via bluetooth to the phone, then GSM, UMTS, or GPRS to the provider, it's not possible to do it the other way, phone via bluetooth to laptop, then Ethernet. This is annoying for two reasons: one, I have to pay expensive GPRS charges even if I am downloading something to the phone in the office, and two, I cannot use my SyncML server, because the perimeter firewall blocks access to its port from the outside. See these threads: A B C.
  • When connected to the headset, the phone cannot establish other bluetooth connections. So while it's possible for me to dial numbers from the laptop or my Palm (quite convenient), I cannot do that for calls using the headset. I'd really like to be able to stow my cellphone in the bag, and do communications with the Palm (which can also read and send SMS via the phone) and the headset only. Right now, I might have to search for the number on the Palm, dial it by hand, then stash the phone away to complete the call via headset.
  • I store all my contacts on the phone memory, not on the SIM card, for two reasons: the SIM card memory can only store one number per name, and I really don't want separate records for "John Home", "John Office", and "John Cell", and two, I often switch SIM cards when travelling to other countries. But switching the SIM card will always configure the phone to use phone and SIM memory for the addressbook, so I always have to change that back.
  • Even though the phone comes with timezone support, I have to press at least 10 keys to change the timezone.
  • The phone has five caller groups, to which you can assign separate ringing tones. I often wanted to be able to set ring tones per person instead.
Now, my provider is offering me a new phone if I choose to renew the contract (which I will). Thus, I am faced with a new choice, and so ventured out to the stores to get myself informed. I have somewhat of a preference for Nokia phones simply because I already have a set of chargers for them. My requirements for a phone are:
  • It has to be small, light, and sturdy.
  • It has to have bluetooth, ideally without the aforementioned shortcomings.
  • It has to have a long battery life, standby time of at least a week.
  • It should interface (via bluetooth) with the Palm Tungsten T5 as well as Linux (Gammu, or something else).
  • It has to have quick and intuitive navigation (this pretty much rules out Sony Ericsson, where it can be a second between keypress and display update, or so I've seen).
  • It has to have voice-activated dialing, but instead of pressing a key, speaking the name, then having the phone dial, I would like to press a key, speak the name, confirm the call within a set amount of time, and only then have the phone call. Alternatively, I'd accept if I had to keep a button pressed while speaking the name. Also, the phone should acknowledge failure to determine a name rather than choosing the closest one; it happened too many times that the key would be accidentally pressed while the phone was in my pocket, followed by the phone's "smart" decision to call some random person in my address book after listening to the background noise or the rustling of my pocket.
My most-wanted feature has always been a button you can press, which would make the phone ring 10 seconds later -- a great way to get out of an annoying conversation. Unfortunately, no manufacturer even bothered to reply to my feature request sent maybe 4 years ago, so it's unlikely I'll find a phone with this capability anytime soon. Another nice feature to have would be an in-phone answering machine, like the Sony CMD-Z5 used to have. Of course, the provider lobby is not going to let that happen, as they'd lose revenue not being able to charge people normal connection charges for calls to their own mailbox. What I don't need (but would not care about anyway) are:
  • Camera, video camera
  • MP3 player, other multimedia support
  • MMS support
  • Games, Java, other applications
Given all of the above, it seems that I only have one phone to choose: The Nokia 6230i, where the i stands for "improved", I guess. But before you get your hops up high (as I did mine), check out the list of improvements and join me in a big sigh. While every manufacturer, including Nokia, has released several new phones over the last two years, they have all been down their multimedia lines. In fact, it seems that the only improvements Nokia and the other manufacturers performed on their business lines was to make the phones larger, add keyboards, and turn them more into PDAs. How sad. Then again, a lot of new models are announced. I may well have to put off the decision until the 6233 is out, the 6021 available here, or I've had a chance to check out the 6822. Also, the E60 and E70 look like worth a look, especially because they integrate Voice-over-IP. And I feel I should have another look at Motorola, Samsung, and Siemens phones. However, so far I have not heard too many good things about any of these, and haven't seen models that are small and light. I really don't need to slide or fold the phone to use it. PS: if you are a phone manufacturer and read this, maybe you could again consider normal user needs when designing your next line of phones, rather than trying to forcefully push more multimedia upon our entertainment society, which nobody really needs but everyone ends up using.

8 May 2006

Alexander Schmehl: [OSDL-DAM-II] Just came back from lunch

Now listening a bit about Waldo Bastians talk about Portland. Interesting stuff, didn't knew something like that was planed. Other topics discussed here: Printing, Wireless, Sound and Multimedia and Desktop Standards. Other topic mentioned: Non distributable firmwares. I thought till now, that's mainly a problem Debian is interested in. Most common solution: Distribute that and wait for lawyers to come :( Well, at least we could find some additional power bars.

Andrew Pollock: [tech] Achieving Xen

I've been wanting to have a play with Xen for quite some time, but have a pathological dislike of compiling kernels, so hadn't gotten around to it. So needless to say, I'm very very (very very) pleased to see Xen 3.0 packages in Debian now, and so spent some time today having a fiddle. Frankly, I'm very pleased with how easy it's been to get everything going. Mad props to Steve Kemp for xen-tools, it makes the ease of creating a new DomU approach that of falling off a log. A big thanks also to the Debian kernel team for packaging this stuff up at last as well. So, here's what I did: I installed linux-image-2.6.16-1-xen-686 and xen-hypervisor-3.0-i386, along with the aforementioned xen-tools and xen-utils-3.0. The linux-image-2.6.16-1-xen-686 kernel package doesn't create an initrd by default, so I created one by hand with mkinitramfs-kpkg. I put this in my GRUB config:
title           Xen
root            (hd0,0)
kernel          /boot/xen-3.0-i386.gz
module          /boot/vmlinuz-2.6.16-1-xen-686 root=/dev/hda1 ro console=tty0
module          /boot/initrd.img-2.6.16-1-xen-686
boot
There's a couple of kernel images available that mention Xen, the aforementioned linux-image-2.6.16-1-xen-686 and also linux-image-2.6.16-1-xen-vserver-686. Unfortunately the package descriptions are the same as the stock 2.6.16 kernel package, and I initially formed the opinion that one was the Dom0 kernel and the other was the DomU kernel. It turns out that the linux-image-2.6.16-1-xen-686 will operate as either, and the vserver one will work as a DomU (I haven't tried it as a Dom0). I'm currently using file-backed storage, but I want to switch to directly using LVM once I get the hang of things. I created the filesystem for the DomU with:
xen-create-image \
--hostname testvm \
--size 2Gb --swap 128Mb --memory 96Mb \
--fs ext3 --dir /srv \
--dhcp \
--cache yes --dist etch \
--mirror http://mirror.linux.org.au/debian \
--kernel /boot/vmlinuz-2.6.16-1-xen-vserver-686 \
--initrd /boot/initrd.img-2.6.16-1-xen-vserver-686
The one problem with this script is it puts SCSI (i.e. /etc/sda) devices in /etc/fstab, but refers to them as /dev/hda devices everywhere else. So to avoid a kernel panic on booting the DomU, I had to mount the image that was created and edit the /etc/fstab file to fix this up. I also needed to add vif = [ '' ] to get an eth0 interface to exist in the DomU instance. There's some other stuff you put here to use a consistent MAC address, rather than a per-instance-boot one. I also found I needed to edit /etc/xen/xend-config.sxp to use network-bridge instead of network-dummy and vif-bridge. I found I needed to reboot as just restarting xend afterwards royally messed with the networking setup. That was about it. Creating an instance of the VM then worked. Making sure the loop kernel module is loaded helps avoid some obscure errors.

4 May 2006

Andrew Pollock: [life/americania] Still no licence

So about a month ago, I discovered that my driver's licence was stuck in bureaucratic hell. Well the temporary piece of paper licence was due to expire on May 10, and so I called up the DMV again yesterday, and was told it was still pending. So I made an appointment to renew it. Today, coincidentally, I received a brand new 120 day temporary piece of paper licence in the mail, with a note attached:
Your application for a California driver license cannot be completed. California law (Vehicle Code Section 12801.5) prohibits the issuance of a driver license until your legal presence, as authorized under federal law, has been verified. This information has not been received from the Immigration and Naturalization Service (INS). ... Your application will remain valid for 12 months from the date you applied for your driver license. Your license will be issued and mailed to you as soon as the information is received from INS. We regret any inconvenience this may cause you.
The process inconsistencies are incredible. I know of two other E-3 visa holders that have received their proper licences without significant delay. I seem to be cursed.

Next.

Previous.