That's why I went to the university today. Fascinating... After working as
system administrator for several years I must visit a university course showing
me, how a computer works. They started with the very basics (That's a CPU...
that's a mother board...) I think we spend the first four weeks to
"learn" that if you buy a mother board, you must take care that the
CPU works with it.
So far we covered hard discs and some peripheries, too. Sigh.
If that course wouldn't have compulsory attendance... Well. But at least I
can amuse myself about the lecturer. Often he muddles up technical term --
which is quite a achievement when reading the text on the slides. Maybe he's a
bit dyslexic, would explain some of his... uhm... strangenesses.
But back to topic: Today the topic of the course was Operating System
Installation
. And to my pleasure, he did not only install an operating
system made by a company in Redmond, but he wanted to install a Linux System,
too. Well... First he tried to install the new Vista he just got instead of
the older Windows Version he should knew better. Bad choice... Often new
introduces features seemed to confuse him. After he finished with that, he
installed an opensuse system. And sometimes he tried to explain a bit about
Unix philosophy. Another bad idea. Those of us, who are familiar with that
stuff could see, that didn't know what he was talking about, and those of us
who are not familiar with Unix/Linux philosophy didn't learned it from him.
For example he choose not to use grub or any other Linux Boot loader
but the one shipped with Windows, which means he needs to tell Linux not to
install the mbr, to boot later from DVD, to extract the first bytes of the
partition via dd, to copy it to a floppy, to reboot to windows and to add it
with some commands in the dosbox thingy
. When I asked him, why he
didn't used the boot loader from Linux, he told me, that in former lilo
times, in was quite easy to make the system unbootable
. And when I then
informed him, that that's the reason, grub has been invented, he said, we use
the windows boot loader, because he wants to do so.
Oh, and as part of a test, we must install those two system our self.
Including the brain dead stuff he does. Sigh.
Some times courses, which should be quite easy for you, can turn out to be
really depressing...
I'm really looking forward for part two of the system
administration
course, which will try to teach me windows administration
and networking. The Unix Course has been cancelled. Don't know why.
Ruby's thread more "functional" than OCaml's
I'm relaxing some of mine
initial bad impressions on
Ruby. This is mainly due to the fact that the
Ruby book I
ordered on
Amazon finally
arrived (after a lost shipment, the first of my whole customer
story with Amazon, happily they refunded me completely).
In the book I managed to find a rigorous (though not formal as I
would have liked) description of Ruby's semantics and even some
snippets of the grammar of the language (
Rant: how the
heck is possible that a modern language like Ruby lacks a complete
description of its grammar????). Anyhow, now I'm feeling more
comfortable with the language and I'm starting to put in the right
setting some of what I believed to be its rough edges.
Today, playing with Ruby's threads, I discovered a function in
Ruby's
Thread API that I can't help noticing is "more functional" than
corresponding features in the
Thread
API of my beloved
OCaml.
Using
Thread#value
indeed the value returned by the last statement executed in a given
thread can be retrieved (note that in Ruby every statement returns
a value: yet another functional pearl). It's like a
Thread#join
on steroids.
In OCaml the only way (that comes into my mind) to do the same
is establishing a (typed) channel among the thread creator and the
created thread, sending a return value from the thread, and having
the creator block on the matching receive. Or (please don't) ...
you can use a global variable ...
Neat Ruby threads.
To balance this, according to my first read of Ruby's threading
capability, it's my impression that not only at most one thread can
execute Ruby code at a time (limitation shared by OCaml, due to the
non-distributed nature of mark and sweep garbage collectors), but
also a thread blocked on a syscall will block all other threads to
run.
Dumb Ruby threads (but I still hope I'm wrong ...)
Andreas Schuldei
asked how to hook into gnome-power-manager.
I'm assuming you want to do some user hooks, too; the solutions using
the low level hooks in
/etc won't help you then. Using a small user
daemon that listens for DBus events is much nicer (though you won't be able
to have the suspend process wait for you to finish...) - because every user
can setup his own stuff.
It would be cool to extend the following to a more general solution. I could
imagine a combination of a dbus-monitor (logging incoming signals) and a
general event handler. You could then either type in the signal you want to
hook or choose one of the logged signals, setup some properties (e.g. the SSID
you just connected to) and setup reactions (start VPN script etc.).
I havn't hooked gnome power manager yet, but I've been doing this for
NetworkManager. Here's a python script:
#!/usr/bin/python
import dbus, dbus.glib
def device_now_active(path, ssid=None):
pass
def device_no_longer_active(path):
pass
sysbus = dbus.SystemBus()
nm_obj = sysbus.get_object('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager')
nm_if = dbus.Interface(nm_obj, 'org.freedesktop.NetworkManager')
nm_if.connect_to_signal('DeviceNowActive', device_now_active)
nm_if.connect_to_signal('DeviceNoLongerActive', device_no_longer_active)
mainloop = gobject.MainLoop()
mainloop.run()
To hook to gnome-power-manager, use dbus-monitor to find out the appropriate
signals to connect to.
I've been using this to start a VPN client when connecting to some wireless
networks, and to have gaim automatically logon when network is available:
sesbus = dbus.SessionBus()
gaim_obj = sesbus.get_object("net.sf.gaim.GaimService", "/net/sf/gaim/GaimObject")
gaim = dbus.Interface(gaim_obj, "net.sf.gaim.GaimInterface")
# then use
gaim.GaimConnectionsDisconnectAll()
# or
accounts = gaim.GaimAccountsGetAllActive()
for account in accounts:
gaim.GaimAccountConnect(account)
Dynamic languages like python can be very sweet to use.
Dear lazyweb: for an internal resource, we are currently using IP-based access
control, based on the fact that the data themself are not sensitive, but still
must not be accessible to everyone.
We are experiencing more and more of a problem with people working from home,
from dynamic IPs, and yet, I cannot come up with a good authentication scheme.
The resource contains large files and it's accessed concurrently by many
users. Thus, SSL-tunneling to protect the basic HTTP user:pass combination is
not really an option. Also, I would prefer if people couldn't share passwords.
I've looked into client certificates, which are supported by most browsers;
the trouble here is that we need to access the resource also with applications
not supporting client certificates.
So in the end, I am back to IP-based authentication and now looking for a web
login tool that can verify user credentials against a flat file, database, or
even PAM, and update the .htaccess file accordingly. This way, users could
share passwords, but a password would only ever authenticate an IP, not the
content.
Do you know of such web login tools, which are not written in PHP?
NP: No-Man / Flowermouth
Update: Ronny Adsetts suggests the use of VPN. That is an option, but
again, it sort of requires encryption (or at least tunneling) of large
quantities of data, for which we don't have the hardware.
Steve Jobs: “You don t want your phone to be an open platform.”
More Steve Jobs: “These are devices that need to work, and you can t do that if you load any software on them. That doesn t mean there s not going to be software to buy that you can load on them coming from us. It doesn t mean we have to write it all, but it means it has to be more of a controlled environment.”
It’s widely understood that Microsoft beat Apple in the PC game because Apple was a tightly integrated, closed platform, whereas Microsoft was an open ecosystem where anyone could play (albeit
at their own peril).
Clearly, the strategy has not adapted well to digital media players. Why? Because people are tired of products that don’t work. Anyone who has ever had to glue a PC back together for a family member knows what I mean.
Does “open” have to mean “poorly integrated” though? Clearly, I don’t think so, given how much I’ve invested in Linux over the years and how much I’m investing in the LSB now. And the job the distributions do in the Linux world is nothing short of amazing, if you think about it—taking thousands of moving parts written by thousands of different people and crafting them into what appears, for the most part, to be an orchestrated whole.
Personal experience bears this out too—it’s not that the entire Windows Media ecosystem produces bad products (iTunes pales in comparison to Rhapsody), it’s that the integration points are extremely fragile (e.g., I tried Rhapsody To Go with a Plays For Sure device, which was an awful experience). In other words, just like a chain, an open ecosystem is only as strong as its weakest link, because it’s the links where things break.
Sure, there are bad products. I’ve owned no less than two MP3 players in the last few years, and they were pretty terrible.
It’s the very, very simple things too. For example, I listen to a lot of podcasts. There’s (gasp!) a Podcasts menu on the iPod, whereas on every other device I’ve owned, podcasts are interspersed with the music, making them difficult to find and, adding insult to injury, mixing gobbledygook into my otherwise well organized collection. Furthermore (gasp!), the iPod keeps track of which podcasts I listen to, and in concert with iTunes, automatically deletes the ones I’m done with. Them’s lasers!
Ah, iTunes. Despite the fact that anyone in the world can write a podcatcher (it’s just RSS with enclosures, fer godsakes), the only one I’ve ever used that works worth a damn is iTunes. Everything else is just “integrated” with bailing wire—create a Windows Media playlist, drop it in this directory, etc.
The situation on Linux is a bit better, but guess what—Rhythmbox, Banshee, etc. didn’t work with either of the open media players I owned, even though the integration point for one of them was the file system. No, the players on Linux support the iPod best because that’s what everyone has, and if I’m going to pay extra for the iPod, aren’t I primarily buying the integrated experience? (On a related note, I’ve never understood why people pay top dollar for Macs and install Linux on them. But I digress..)
Once you taste the fruit of the integrated experience, it’s easy to get sucked in all the way. I eventually tired of all the wasted time and money trying to use an open media player and broke down and bought an iPod. Not too long after, I canceled my Rhapsody subscription. Why? Because I couldn’t use it with my iPod. My overall music experience is diminished (I’m a big believer in
the celestial jukebox), but I want one music platform, not two. And the iPod is the one with critical mass. Anything else is swimming upstream.
Are open platforms doomed then? I think that’s, as they say, throwing the baby out with the bath water. The key is to have open interfaces, and the key to having open interfaces that work is
cooperation between the vendors that implement them. Perhaps surprisingly, the iPod is a good example of how it can be done. The biggest reason for my iPod purchase: I can hook it directly into my car stereo instead of using
an FM transmitter. Apple isn’t getting into the car business—it’s decided to cooperate with other companies to make this work. And you don’t hear too much about people calling their technophile relatives to come glue their cars back together. (And talk about the importance of not crashing..)
The lesson here, it seems to me, is that an ecosystem is never the sum of its parts—it’s either a whole lot more or a whole lot less. Furthermore, it’s the responsibility of the vendors (and community) that make up that ecosystem to ensure the result comes up on the right side of the equation in the final analysis.
I had trouble with tomcat. It started fine, but shutdown took a very long time
(enough for eclipse to suggest killing it, for example).
Some people suggested I try the tarball from Apache, instead of using the
Debian package, but that didn't help either.
By not running tomcat from eclipse and waiting a long time for the shutdown,
I finally managed to get some actual error messages:
This was usually the last message I was seeing:
INFO: Pausing Coyote HTTP/1.1 on http-8080
After some timeout, I now got these messages:
Protocol handler pause failed
java.net.NoRouteToHostException: No route to host
No route to localhost? WTF?
I resolved it by putting all hostnames it might try (localhost.localdomain,
although I use that nowhere, as well as the FQDN I'm using) into my
/etc/hosts and forcing them to point to 127.0.0.1 - and voila,
tomcat actually shuts down instead of pausing and then failing to notice it
has successfully paused...
The buildd admin job is a rather dumb one. You get between 20 and 60 mails per day; most of them build logs. This logs, which are mostly sent unsecured through the public internet, have to be signed and the only available key is the personal key of the admin. So on one hand you have to make sure that the key is secure, on the other hand you have to find a way to sign a rather large amount of stuff.
For the debian-kernel archive, which I operate, and the pkg-voip/pkg-gnome/pkg-kde-extras archive, which is operated by Kilian, we decided to sign the uploads automaticaly. Each buildd get its own key and the used DAK includes a patch which restricts this keys to do uploads of only binaries of the correct arches.
This drasticaly reduces the time until a new package is uploaded; this means much less failed builds because a build dep is not yet built. Also it reduces the places where it is possible to do harm; you have to attack the buildd machine itself instead of the complete mail setup between buildd and admin.
So, like everybody else in the world, I was intrigued by the announcement of the
iPhone. But like most
Open Source folks, I was unhappy with the OS and the general closed format of the dang thing. What options are there for people who believe in Freedom but still want a cool phone?
I currently own a
Treo 650, which is fine, and which runs the venerable Palm OS. However, the once-thriving Palm Open Source community has pretty much dried up, leaving me without much in the way of interesting apps for my phone device.
Thanks to
Mike Linksvayer's notes on the subject, I got a link to the
OpenMoKo project -- an effort to make a standard,
Linux-based phone OS that uses
ipkg for application installation and update. The first phone supporting the platform will be the FIC Neo1973, which looks pretty awesome and fairly similar to the iPhone (see
this review from
Linux Devices for some photos).
OpenMoKo isn't the only game in town.
TrollTech has a Linux-based
Greenphone running their funky
Qtopia platform, although it apparently doesn't work with their
Qtopia Open Source version. And Nokia has this weird
Maemo platform, but it only seems to run on their Internet tablet thingies.
Mike gave a good link to
an article about Open phones on PC Magazine. But I'm going to be looking out for availability of the OpenMoKo-enabled phone. I guess I'll have to switch phone providers --
Telus, my provider, only has CDMA service, and the FIC phone uses GSM. So, I dunno. But it'd be cool to have a mobile device that was fun and interesting and that I could believe in and want to hack on.
tags:
openmoko iphone greenphone maemo
What Chris refuses to blog about
So, talking to Chris last night at the yulblog First Wednesday, I found out he wants to quit blogging. "I don't really have anything I care about enough to blog," he said. "The only thing that's piqued my interest lately was the execution of Saddam Hussein. I just don't want to blog about the iPhone."
I told him I thought it'd be a good idea to make a blog just listing the things he refuses to blog about. He wouldn't commit to the idea, so I guess now I've taken over that job. In other words: Chris won't blog about the iPhone.
tags: iphone blogging chris
Laptops don’t usually have as much ports as desktop computers. I used to connect my
MIDI keyboard to the computer via a
game port adapter. Now the game port has been to some extent replaced by
USB connectors, especially in laptop computers, so I decided to get myself a MIDI-USB adapter. After searching the web investigating which device would be the best for my Debian system, I decided for the
MidiSport Uno, which is elegant, compact, and compatible with Linux.
Yesterday I was finally able to test it, and it works perfectly. The only thing I don’t like is that
its firmware doesn’t seem to have a free license. After some initial trials with
fxload, which didn’t work due to some pipe error, I realized that it wouldn’t work under the current udev system (I’m using a 2.6.18 kernel right now), but the rule for udev I added seems to work.
Ubuntu’s package for it has also helped me a lot. After installing it, I was able to test that it worked both with a direct cat from the MIDI device and using
rosegarden.
There
seems to be also an
OSS driver supporting the MidiSport 1×1/2×2 with a GPL’d firmware, but I haven’t tried it yet. It would be nice to be able to have a GPL’d firmware in it.
Yesterday I went to activate phone service out at the farm. It got me to thinking a bit about how things change, and how they stay the same, too.
Before I go on, I'll have to say that every one of my history books is in storage, so if I get some details wrong, it's because I'm not remembering correctly.
Anyhow, phone service came to our community via an unusual route about 100 years ago. It wasn't Bell/AT&T or some other company that brought it there, as it was most places. I'm sure they figured that a small, scattered rural community would cost too much to support. So the community organized, built, and supported the phone system themselves.
Even today, roads around here can be impassible after a good rain. I'm sure that, in the early 1900s, before heavy road-maintaining machinery, things were worse -- and, of course, transportation was a lot slower then anyway. There were real problems: getting the word out about funerals, being able to summon a doctor when necessary, or letting people know that church was cancelled because of too much snow.
People in the community saw a phone system as a real need. So did the churches, which have left a legacy that is still reflected in phone company territories today.
Once phone service arrived, it was used for all the things that people expected, of course. But it also proved to be an important part of the social fabric of the community. Since party lines were the norm, it was possible to announce things to every listening subscriber pretty quickly. Older people remember announcements of fresh fruit arriving at the grocery store, funerals, or other news of the day.
To place a call, you would pick up your phone and turn your crank. That caused a bell to ring at the telephone office, which everyone called "Central." The operator would connect to your line and ask whom you wanted to talk to. The operator would then send the distinctive ring for your party down their party line, and patch -- manually -- your call through to them. And, if he was busy, the operator wouldn't listen in on your conversation -- but others on the party line very well might.
Central's hours were published. If you were making a call in the middle of the night, you were going to wake up someone at Central to do it -- plus everyone on the entire party line. So calls after hours were rare.
Fortunately, while some of the old Central operators were still around, some people in the community wrote down some of their stories.
There were some people in the community that were notorious for eavesdropping on other people's conversations. Two brothers one time figured that they knew somebody was listening to their conversations, so they devised a code. One called the other, and said, "I'll be going to McPherson in the morning for band practice." That meant something along the lines of going to town to buy groceries.
A few days later, their prime suspect came up to him and said, "What on earth are you going to band practice for? I didn't know you knew how to play an instrument!" Apparently she realized she was had when he burst out laughing uncontrollably.
The Central operators learned to know the habits of telephone users. Sometimes they would connect calls without even bothering to ask who people wanted to talk to -- and seemed to always get it right.
The phone system supported itself for about 50 years. But as the rest of the world moved on provide direct dialing, this proved a controversial subject in the community. People liked having their operators. The people that worked at Central were everybody's friend. They were people that were there, 24 hours a day, to assist with any emergency. They would gather volunteer firefighters to help fight a fire, or be able to spread community news quickly. This wouldn't be available with the newer phone systems. How would the community be informed of events quickly now? Who would just happen to know whose house the doctor was at when he was urgently needed?
The change was resisted for some years, but eventually the finances of the telephone cooperative turned out to be in deep trouble. Operators grew to be much more expensive than automation, and in the late 1960s, the telephone cooperative was no more -- sold to a phone company from a small town more than twice our size, and a for-profit company at that! Central no longer existed. I remember reading about this event -- it seems people were sad about that for quite some time. They felt that they had really lost an important part of the community when Central went away. Some machine locked in a cabinet doesn't care for people the way Central did. Even today, the older people in the community sound a little sad when they remember telephone modernization, and get the wistful look of somebody that has just remembered something that they miss.
The phone company that bought the system wasn't an AT&T, though. It was a small, independent phone company. To this day, that phone company serves only the two communities. And it was this company that I called yesterday to establish service out at our house.
They had already upgraded our lines -- over a mile of new copper, benefiting only us, at no charge to us -- last fall. The box was already on the outside of the house. Just need to get it activated.
So I called the phone company. They said I needed to drop by their office and sign some papers. Uh-oh, I think -- this is a bad sign. Sounds like a bunch of phone company bureaucracy.
But not so much. I went to the office and signed up. They asked the usual questions: name, address. Plus a few that bigger companies wouldn't ask: who used to have service at that address? Of course, most people would know that answer in our community. I couldn't have told you in Wichita, Dallas, or Indianapolis.
Then they asked when I'd like service to be activated. "As soon as possible," I say, figuring that this would be a couple of weeks like it is with AT&T or Sprint. "Well, we probably can't get out there for a couple of hours. Would it be OK if it's on at about 3?" Yes, that would be fine!
Now, how about DSL? "Well, we're a little backed up on that right now." Uh-oh. Sprint took several weeks when they *weren't* more backed up than usual. "So it'll probably be Monday or Tuesday before we can get out there. Should I just have the installer call you and arrange a time when it gets closer?" Yes, that would be fine, too!
Now, how about finding a phone number.
Out comes a large paper book. Yep, paper. They paged through it, and told me that my grandpa's old number would be available if I wanted it. I said yes -- after all, we've got his old address, so might as well keep the same phone number. OK, no problem. She whips out some white-out, whites out grandpa's name, and writes ours in. Done.
Now, do we want any optional services? Caller ID, call waiting, voicemail? How much is caller ID, I ask. $5 a month. We'll try it for now. "OK". A box was checked on the form and that was that. No high-pressure sales pitch on taking "the works" for some poorly-disclosed price, providing a ton of services I'll never use and don't want. No confusing "discounts" for having The Works and DSL at the same time.
Then I ask about an unlisted number, or at least an unlisted address. We figure that anybody that we really want to be able to reach us will figure out how without using a phone book, and these things get in so many databases these days. Sprint charged almost $10/mo for a fully unlisted number, but only a few dollars a month to just keep our address off the directories.
Our new company charged 50 cents a month for a fully unlisted number. Done.
Now it's time to pay for the first month's fees and the setup. Oops, I've forgotten my checkbook in the car. No problem, the secretary says, I'll watch your baby while you go get it! Jacob was with me, but had fallen asleep, so I brought him inside in his car seat. I went to get the checkbook -- just out the door and close by. I was back in a few seconds later, and the secretary was already on the other side of her desk talking and playing with Jacob. "My baby's 12 now," she said, and for a second, looked like a person that was remembering Central.
Or, Cleanliness is next to godliness
The last time when I blogged about Spam fighting
Mail
Filtering With CRM114 Part 1, I left y'all with visions of
non-converging learning, various ingenious ways of working around a
unclean corpus, and perhaps a sinking feeling that this whole thing
was more fragile than it ought to be.
During this eriod of flailing around, trying to get
mailtrainer to learn the full corpus correctly, I upgraded
to an unpackaged version of crm114. Thanks to the excellent
packaging effort by the maintianers, this was dead easy: get the
debian sources using
apt-get source crm114, download tghe
new tarball from crm114 upstream, cp the debian dir over, and just
edit the changelog file to reflect the new version. I am currently
running my own, statically linked 20061103-Blame
Dalkey.src-1.
Cleaning the corpus made a major difference to the quality of
discrimination. As mentioned earlier, I examined every mail that
was initially incorrectly classified during learning. Now, there
are two ways this can happen: That the piece of mail was correctly
placed in the corpus, but had a feature that was different from
those learned before; or that it was wrongly classified by me. When
I started the chances were almost equally likely; I have now
hopefully eliminated most of the misclassifications. When
mailtrainer goes into cycles, retraining on a couple of
emails round after round, you almost certainly are trying to train
in conflicting ways. Cyclic retraining is almost always a human's
error in classification.
Some of the errors discovered were not just misclassifications:
some where things that were inappropriate mail, but not Spam; for
instance there was the whole conversation where someone one
subscribed debian-devel to another mailing list, there was the
challenge, the subscription notice, the un-subscription, challenge,
and notice -- all of which were inappropriate, and interrupted the
flow, and contributed to the noise -- but were not really Spam. I
had, in a fit of pique, labelled them as Spam; but they were really
like any other mailing list subscription conversations, which I
certainly want to see for my subscriptions. crm114 did register the
conversations as Spam and non-Spam, as requested, but that
increased the similarity between Spam and non-Spam features -- and
probably decreased the accuracy. I've since decided to train only
on Spam, not on inappropriate mails; and let Gnus keep
inappropriate mails from my eyes.
I've also waffled over time about whether or not to treat
newsletters from Dr. Dobbs Journal or USENIX as
Spam or not -- now my rule of thumb is that since I signed up for
them at some point, they are not Spam -- though I don't feel guilty
about letting
mailagent squirrel them
away mostly out of sight.
A few tips about using mailtrainer:
- Make sure you have a clean corpus
- Try and make it so that your have roughly equal numbers of Ham
and Spam
- Don't let mailtrainer quit after a set number of rounds. I use
a ridiculous repeat count of about 100 -- never expecting to reach
anywhere close to that. Instead, I set the streak to a number =
number of Spam + number of Ham + 10. This means that mailtrainer
does not quit until it has processed every email in the corpus
correctly without needing to retrain. Letting mailtrainer quit
after it repeated the corpus twice, but before it got a streak of
correct classifications left me with a filter with
horrible accuracy.
- Make sure you have a clean corpus (yes, really)
- While the ratio of similarities between .css files to
the differences between .css files is a fun metric, and I
use it as an informal, rough benchmark while training, it is not
really correlated to accuracy, so don't get hung up on it, like I
was. Usually, the value I get when training from scratch on my
corpus is somewhere around 7.5; but over time the ratio degrades
(falling to about 5), while the filter accuracy keeps
increasing.
- Train only on errors. The good news is that both
mailtrainer and mailreaver already do so, so this
is easy rule to follow. The reason is that you should only be doing
minimal training, in case you have to modify/change the underlying
rule in the future. So your filter should be trained to correctly
classify the mails you get, but don't shoot for overwhelming
scores.
- Use mailreaver. It has the nice behaviour of asking for
retraining when it is unsure of some mail, and it caches mail for
some time which really helps in training and rebuilding
.css files. The reason mailreaver learns faster than
mailtrainer is just this feature, I think.
- Stash mails you train on in your corpus, and don't hesitate to
re-run mailtrainer over your corpus again after you have been
training the unsure emails. When you train single emails, the
changed filter may no longer correctly classify some email in the
corpus you train with. Running mailtrainer over the corpus adjusts
the filter to correctly classify every mail again. I generally
retrain about once a week, though I no longer retrain from scratch,
unless I change the classification algorithm.
So, the
Apple iPhone has been launched, it was brought to my attention as actually being announced by the MD at work, who appears to have become a complete apple freak (poor bastard... or is that rich bastard to be able to afford apple's mediocre offerings and be happy about it?). Anyways - from reading the
story from
BBC News and the
official website, here's my conclusions.
First off, when marketing a phone, how about you actually mention it's phone capabilities as the number one priority? I'd like to know about the sound capabilities, the battery life, the overall user feel for it as a phone... maybe I'm odd, but a phone has a purpose, it should make and receive calls, and it should do that job *well*, with good quality voice, a decent (filtering) microphone (it's a mobile, you'll be walking whilst speaking on it, reducing the background noise is a selling point), but apple appear to have mostly avoided talking about this. Instead, the first thing that you're told about from the news story is the unique user interface - great, so we have a touchscreen "whoop, de, do!". Worse still, from the official site, the first thing that springs out is that it's a "Wide Screen iPod" - it's a phone, if I wanted an iPod I'd buy a damned iPod - as it stands, for my music needs I have an
iAudio M3 which suits my portable music experience really rather well. I choose that on the basis that it provided ogg support out of the box, didn't require any magical software (I run linux on my machines, it presenting itself as nothing more than a USB hard disk was fantastic, and means that I can use it for other things when needs arise). For a phone I want something that actually behaves like a phone, looking at the iPhone it's primary purpose appears to actually be a media player - that's not good.
With the iPhone only having a touch screen interface, and from everything that I've read there's no stylus and the "finger is the ultimate pointing device", I'm just expecting that within the first 2 weeks you're going to have a scratched or smudged screen from usage alone, add in the fact that it's a mobile phone, and therefore generally treated with contempt (neccessity rather than luxery), and that most people carry mobiles in their pockets without any form of protection (easy and fast access) and you've got a recipe for disaster! The touch screen is going to be hit (wether you like it or not) whilst the phone is in your pocket, it will wear - there's no question in my mind about it. Touchscreens aren't designed to be smacked around 24/7, they're touchscreens - they respond to touch! So, assuming that you're shiny new iPhone is sitting in your pocket a lot of the time that's a lot of usage of the touchscreen - they're not designed for constant pressure (think about what happens to pockets in trousers when you sit down...), so I don't think that, overall, the sensitivity of the screen is going to last very long. It's only got a fairly narrow screen too, so what about those of us with not entirely slender fingers? When composing SMS messages on it with the on screen qwerty keyboard, do you really think that you're going to get the right keys every time? Small, on screen, buttons and pubs do not mix - and I'd hasten a bet there's a fair number of SMS messages sent from, or on the way back from, the pub, with a predictive text system at least you can almost work out what the heck the person was trying to say - this is a whole new ball game.
The iPhone also makes the phone functionality only available after you've hit the part of the screen that says "Phone", now, I don't know about other people, but if I'm being given a number, I tend to just start hitting the right buttons on the phone, I can store the number later (via the call register or whatever) and hit call, now there's an extra step to getting in touch with people.
From the official site we have the words """ iPhone also introduces an entirely new user interface based on a large multi-touch display and pioneering new software, letting you control everything with just your fingers. """" - now, err, just when did a phone require you to use anything other than your fingers? Please tell me, I'm dying to know - I've never yet needed to use my feet to operate my phone, have you? This is marketing gone insane - and what worries me is that people actually believe this bullshit.
Apple may have "revolutionised" the computer industry with "Mac OS X" (this is actually not something that I believe, and OS X actually makes me more frustrated than being sat infront of a windows desktop - and believe me, that's difficult), but this is a phone, how about they try making it about the phone first, and the next generation tart audio player second?
I'm willing to be convinced that I'm wrong, but I definately won't be going out of my way to aquire an iPhone just because the marketing spiel looks good.
The biggest party in Bavaria and part of the current german government, CSU,
has announced that they want to make the "production and distribution of
killer-games" illegal in germany. They claim it's because of a recent
highschool shooting (no fatalities except the shooter; there was one other
highschool shooting in germany a few years ago with 16 fatalities. Yes, that
is 17 fatalities in over 40 years, the 42 years old amok runner back then
didn't play killer games, I guess, although he used a flame thrower...).
This would make the production and distribution in Germany unlawful, since
we include games such as overkill, tremulous and openarena. Other
distributions such as SuSE probably include some games that classify as
"killer games" as well. Also note that "distribution" is a rather wide term.
Does it apply to web sites? ISPs? If there is an online killer game, is the
ISP "distributing" it?
Polticians (especially those from CSU/CDU/SPD) are such a bunch of idiots.
Please do NOT ever again vote for CSU. Software patents, killer games,
"Problemfrauen & Schadbären", surveillance cameras and other
surveillance, military inside germany (note that in desaster cases such as the
flooding some years ago we could already deploy soldats without extra laws),
shooting down of civilian airplanes, transrapid, reducing math and natural
sciences in highschools, "google earth threatens worldcup security", police
installing trojans on home PCs (because criminals don't install virus
scanners?), kicking "irritating" students out of school, study fees, ...
Often they make George W. Bush look like a genius, don't they?
They don't do any important stuff, but just say whatever a majority people
might want to hear. They waste our money (Transrapid). They destroy our
biggest resource (changes in school system and university system, which will
reduce average knowledge in germany a lot). They do lots of stupid things,
which heavily invade privacy or public safety (military, surveillance) with
no benefits in safety and many of which even where only stopped
because they violated our constitution.
Do not vote for them!
[Updates:
Daniel, sorry for posting a non-english post to planet. I again put it into the wrong category; I intended to do a longer post (this one) in english later on. For clarification: CSU is the sister party of CDU, these parties have an arrangement not to compete by region and are closely affiliated. On the nation-wide level they have a joint list, which often is called CDUCSU. So they're not just an "affiliate", but a strong part of the ruling party.
Holger Levsen pointed
out we are likely going to violate some laws much earlier by distributing
("hacker-") tools such as nmap, ettercap or whireshark.]
My
Notetak
application is slowly maturing. Some day in the relatively
near future I expect it to get so mature that I need to start
refactoring the code so that it isn't utter crap.
So far I've developed Notetak by doing random quick hacks, as they
have occurred to me, without caring much about maintainability,
unit tests, or such. This is fine for the crude prototype phase
Notetak is currently going through, but it's getting to the
point where making changes meets with internal resistance,
since I first need to figure out a way to avoid breaking
unrelated things.
Now that I have some idea of how the application should
behave, refactoring it to be nicely coded is easier. Heck,
it's still only 374 lines of Python, plus a .glade file,
so rewriting it from scratch should only be an evening's
work.
Anyway, I'm pretty happy with it now. It fits fairly well
into my simple GTD workflow, it's pretty quick to work with,
and generally doesn't get in my way. I miss undo/redo, and
the UI is ugly, and there's no pretty icon, but the core
functionality is there, and is satisfactory.
(374 lines of Python to build a useful GNOME application is
pretty good, I think. The combination of GTK+, PyGTK, Python,
Glade-2, and libglade, is a very powerful combination indeed.)
Lilypond is a great piece of software, but its documentation is sucky
as hell.
I've been
trying to tweak the output of a particular piece
of music which turned out to have just one system on the final page using
the default settings, so that this final staff would end up on the first
page, too.
The documentation on how to do this, however, is less than
helpful. If there is a mistake that could've been made by the people who
wrote the manual, be sure they made it:
- In the "lilypond-internals" manual, there is mention of the fact
that a particular variable needs to be a "moment", but no mention of how
to do it; in fact, the default setting that is listed there for that
variable is listed as #<Mom 1 4>, but trying to use that
will give you a syntax error. It took me 15 minutes of trying, and
finally more or less accidentally stumbling upon an actual example
somewhere which sets a moment variable, to figure out how to do it; the
right syntax is #(ly:make-moment 1 4)
- In the section on horizontal spacing, there is no single mention of
the fact that settings on horizontal spacing apply to the score as a
whole, and cannot be changed on a per-measure basis, or halfway the
score in other ways. A pretty important detail, in my opinion.
- Yet, even if settings on horizontal spacing can only be made on a
per-score basis, you still have to modify them by using
\override commands somewhere in between your notes. Logic? Not
really.
- In the section on horizontal spacing in the 2.10 version of the
manual, there is also no reference to the new
\newSpacingSection command, which allows one to split the score
up in multiple sections in which the horizontal spacing can be changed
anyway. Way to go.
- Even after reading and understanding most stuff in both manuals
about horizontal spacing, my attempts still resulted in no
visible changes on the page, and I have no clue why. There is no
message, no way to be sure whether I did the wrong thing, or whether I
did do stuff correctly but that it failed because of unrelated
reasons.
Really, I would be
very happy if the lilypond authors were
to just find someone who actually knows how to write decent
documentation.
Long-ago
San Francisco Cacophony Society leader and early
Burning Man organizer
John Law is
calling for the release of the Burning Man trademark into the public domain. An interesting story and some interesting questions about process. Burning Man is an event and a culture dear to my heart; I wonder how this is going to work out.
Thanks to
Scott Beale for
his story on the subject; he knows the principals much better than I do.
tags:
burning man john law trademark public domain
Dear Lazyweb
So, I was trying to read some documentation on my little Toshiba Port g and also lie down on the couch and also drink a beer, and these three activities weren't mutually compatible and I spilled some beer on my keyboard (and lap). Doh.
I dried it off as best I could, and turned it upside-down like a teepee to dry overnight so the booze and moisture and sugar would go out of the computer instead of further in. Which seems to have paid off: the computer's running fine now.
Except that the 'R' and 'G' keys don't work. They're not particularly sticky, they just don't register any key events when pressed. So, my question: what's my next step? Is there some trick I can do? Or am I just going to have to get good at lipograms?
Drop me a line at evan@prodromou.name if you have any ideas.
tags: lazyweb r g toshiba laptop beer keyboard
Father-Daughter Night
Maj started French classes at the fantastico Montreal YMCA Language School. (I'm taking classes in German at the Montreal Goethe Institute starting next week; we came up with the idea of taking language classes independently.) Since Mama was out of the house from 5PM to 9PM, I got to do most of the evening prep for the night.
Which was fun. I made Amita June and myself some ravioli and ros sauce, and we put a bowl in the fridge for Maj, too. Then we watched about 20 minutes of Babe, which had lots of cows and ducks and chickens and stuff she likes watching, but I was too worried that someone was going to get killed and eaten to enjoy watching it with her.
So we did a bath -- she figured out how to make her rubber duck squirt water into the air, and that was worth about 20 minutes of giggles right there. Then we read some books, and by that point she was really ready for bed, and fell right asleep.
We've been doing really good this week with going to sleep. I mentioned before that she's weaning from night nursing, so I'm doing most of the putting-to-bed and keeping-asleep work around here. It's been fun and rewarding; sleeping babies are great.
tags: amitajune ymca babe maj french language lessons
Snow!
It snowed today in Montreal! Just a little bit, but still. Hooray for us.
tags: montreal winter snow
Googie
I also stumbled across the word Googie architecture this evening. Interesting term and comfort food for the California native's soul.
tags: googie architecture california
yulblog
Tomorrow night (20 Niv se or 10 January for those of you who still use that oppressive Gregorian calendar) we've got the misnomered First Wednesday Get-Together for yulblog. The date was moved back from the very first Wednesday of the month to the second Wednesday to give some space around New Year's Day. I think the novelty has got people interesting in attending; I've talked to more than one person who's going to go. So, I'm going too. At the Quincaillerie at 980 Rachel, 8PM.
tags: yulblog first wednesday quincaillerie
Effin' MyBlogLog
So, I signed up for that MyBlogLog a while ago (see Journal/29 Frimaire CCXV), just to see how it worked. But I disconnected it from my own site since I thought the click-tracking was a little invasive.
But I must have some cookies still left around, because I keep looking at sites like Read/WriteWeb, which has a nice article about OpenID, and I'm reading along and then there's a picture of me right on the page. Inserted from the MyBlogLog script, but it scares the crap out of me when it happens. Effin' MyBlogLog!
tags: mybloglog readwriteweb
One fascinating experience in parenthood is witnessing language acquisition. My daughter is just over twenty-one months old, and recently hit an asymptote in language development. One of my favorite phenomena probably has a name, although I don’t know what it is. When she wants to be carried, she says, “carry you?” If she wants me to sit next to her while she falls asleep, she says, “sit next to you?” Likewise, “pick you up?” And so on. On the one hand, she’s really getting it. On the other, there still seems to be a missing parsing module.
Although I minored in linguistics, we almost never studied anything having to do with “real” language. The department was virtually 100% Chomskyan, and we spent much of our time trying to figure out what the heck the
Minimalist Program was.
As it turns out, the Minimalist Program did nothing to prepare me for the experience of watching my daughter acquire language.
A couple of BTS utilities
I had the idea of creating a script that would tell me which bug numbers have
unanswered mails.
The idea is simple: get me all the bug numbers for which the last message
posted has not been sent neither by me nor by any of the comaintainers.
Firstly, I needed a script that gives the e-mail address of the sender of the
last message received for a given bug:
$ mkdir cache
$ ./getlast 370102
enrico@debian.org
Then I needed a srcipt that gives the bug numbers currently in open state for a
given source package:
$ ./getopen debtags
246678
277626
290457
[...]
Finally I needed to correlate the information from a
maintainer
database with the
results of the previous scripts:
$ ./show-unanswered enrico@enricozini.org enrico@debian.org
Buffy comaintained by xxxxxxx@debian.org, xxxxxxxxx@xxxxxxxx.xx
bug #269386 answered by me
bug #293898 answered by me
bug #294436 answered by comaintainer xxxxxxx@debian.org
bug #300444 answered by me
bug #372513 answered by comaintainer xxxxxxx@debian.org
bug #383610 answered by comaintainer xxxxxxx@debian.org
bug #384108 unanswered message from xxxxxxxx@debian.org
bug #384116 unanswered message from xxxxxxxx@debian.org
[...]
This could make
some
people
happy.
You can get it with
bzr branch http://people.debian.org/~enrico/bts-utils