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 ...)
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...
iPhone is cool in a lot of ways (except in the freedom side, but not too different than the current iPods). I wish to buy one until the xmas and replace my now obsolete looking LG model. I think if Apple is trying to promote this product as 'more an iPod than a phone' - as Steve Jobs said in an inteview. They give it the wrong name, it should be called: iPod Phone. Yes, same deal as they did with the iPod video thing until they 'merged' the feature on the iPod brand. Remember that it would save them from the current trouble with Cisco/Linksys too.
The multitouch screen on that thing looks promising. I'm sure that there are a lot of cooler screens in development out there right now, but if Apple (or the real manufacturer behind the screen) can manage to make larger ones, i can see some time in the next year the motto: "Do you remember where did the computer go?" "Where did the keyboard and mouse go now?". Ok, maybe a bit too optimistic (they could keep the keyboard and throw away the mouse), but i think the iMacs could be a interesting target for the multitouch thing. Considering they've iSight already in place, with a larger multitouch screen in a good position and shiny cool gestures software, there we've minority report ready desktops, some time after laptops. Can you hear chairs?
For etch, we will have apt security in place, so we can be sure that the stuff comes from the correct archive. But it is not possible to disable that checks only for one source, just for anything.
Buildds uses at least one mirror: incoming.debian.org aka ftp-master.debian.org. There are two queues, the accepted autobuild queue and the main archive. The accepted autobuild queue is not signed at all, it does not provide a Release file. The archive needs some time to generate the Packages files each dinstall run and have broken sigs during this time.
This means: buildds can't use APT security at all. And no, there is no other mechanism to ensure data integrity.
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.
Clive, the
Trolltech Greenphone certainly looks interesting, and has the key ingrediant that the
iPhone and
Neo1973 are both missing. Yes, you got it, it's actually got buttons!
I don't know about the rest of the world, but I like the fact that pushing a button gives physical feedback, also, you can move your thumb around on a keypad and know what button is under your hand, and that you're not overlapping 2 different buttons at the same time - can you do that with a touchscreen? I'm thinking not. So, you have a shiny phone, it lets you do all sorts of crap that you don't really want to do, but when you're using it, that's *all* you're doing, seems a waste to me.
The new laptop I just bought had the bad habit of using the pc speaker at a loud level. It was deranging the coleagues at work when autocompletion yelded more than one result or none (it also scared me a few times during the last nights when I was configuring and testing the laptop).
So I unloaded the module (pcspkr) by hand and wanted to make the system not load it anymore.
So I thought that blacklisting it would do the trick. Probably some people know already that adding al line like:
blacklist pcspkrin /etc/modprobe.d/blacklist
doesn't work. The rest of you find out now. I found out at the next reboot, when I heard again the beep.
Ok, I googled a bit and found some info about
restricting ipv6 modules being loaded so I though I could do the same for pcspkr. So I tried:
to change the line from /etc/modprobe.d/pnp-hotplug:
alias pnp:dPNP0800 pcspkrinto
alias pnp:dPNP0800 offThat
didn't work either.
So, at this point I googled more and found
some outdated information about update-modules.
That brought me to
modprobe.conf(5) which pointed to the "right" solution.Write the following in some file in /etc/modprobe.d/ (I added it in blacklist, since it seemed the right place)
install pcspkr trueWhich seems to do what I want.
Still something tells me that either:
1) there is a cleaner solution I am not thinking about
or
2) I could have told udev not to load the module... And I feel this solution should have to do something with these lines and "ACTION":
eddy@bounty /etc/udev $ grep -r pcspkr *
persistent-input.rules:DRIVERS=="pcspkr", ENV ID_CLASS ="spkr"
rules.d/z20_persistent-input.rules:DRIVERS=="pcspkr", ENV ID_CLASS ="spkr"
A clean solution would be appreciated.

How often in life does one find a traffic light lying at the side of the road? And how many of those times does it concern a buslight? Well, it happened to me: I found the buslight shown here at the Archimedeslaan.
It is the type of traffic light that only applies to busses, trams and their public transport friends. I believe this is specific to The Netherlands, so
here's a diagram of the possible layouts (top row). It runs on 40V power, but as I had a maximum of 19V available (not counting the 230V from the wall) it looks a bit faint. The bulbs look like the same ones used in car lights, and everything you can do with the unit (open, replace lights, reconfigure light positions) can be done without tools. Nice design.
I called the contractor that maintains the city's traffic lights, Dynamicon, and the guy on the phone said he'd pass my information on but didn't believe they needed it anymore. Now only to find a good use for 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.
..or he's not telling us something. If the multi-year exclusive agreement is true, then the goals are probably unachievable. In the keynote yesterday, Jobs put out there that almost a billion phones are sold each year to consumers. Granted, most of these are regular phones without the whiz-bang and special features of the iPhone -- and are usually free to the consumer, subsidized by the contract agreements. Still, he set what most would consider a modest goal, of getting 1% of the cell phone sales - 10 million phones, by the end of 2008.
However, lets do some napkin math. A very small percentage of phones out there today are smart phones.
C Net says that 37.4 million smart phones out there. This is probably a pretty conservative estimate by now -- the Gartner study was released in October. Let's give the smart phone people the benefit of the doubt and say that usage triples by the end of 2008. That makes about 100 million smart phones out there. 10 million is ten percent of that market.
Let's look at the math another way. Cingular has
58 million subscribers. Assuming that they gain 20% per year, they will have 68 million at the end of 2008. If Apple is aiming at 10 million phones, that is one out of every seven Cingular customers. Next time you walk down the street, notice count 7 people that you can notice have a phone. If Apple makes its goal, one of those 7 people will own a iPhone, and will have shelled out at least half a grand on it.
These are amazingly high goals for a company that is new in the market. Granted, the iPhone is pretty revolutionary, but I don't think Steve is that crazy. I'm betting that he has something up his sleeve that will help him meet or beat this 10 million goal.
About a year and a half ago (has it been that long already?), I
blogged about
wanting to write some gobjects. People did give me pointers to some
documentation then, but for various reasons I never looked into it in
detail afterwards.
Since yesterday, though, that's changed. For the last two days, I've
been writing on something which I'll eventually release to the world as
libgjs:
wouter@country:~/code/c/libgjs/src$ ./gjstest
There are 1 joysticks on this system
Joystick 0 is a Logitech Inc. WingMan Gamepad Extreme,
with 10 buttons and 4 axes.
wouter@country:~/code/c/libgjs/src$
Wonderful, isn't it? Obviously the above doesn't require the 306 LOC
that I've written now (which isn't much, but that's mostly because I had
to read a lot of documentation in between); but when finished, the API
of that library will be approximately something like this:
if(gjs_joystick_get_max>=0)
GjsJoystick *joystick = gjs_joystick_new(0);
if(joystick->buttons >= 1)
g_signal_connect(joystick, "button-pressed",
start_firing, NULL);
g_signal_connect(joystick, "button-released",
stop_firing, NULL);
g_signal_connect(joystick, "axis-moved",
move_crosshair, NULL);
gjs_joystick_set_interval(1);
where
start_firing,
stop_firing and
move_crosshair are, obviously, callback functions (they get the
button or axis number as a parameter). The
set_interval
function sets the time between two polls of the kernel device file; this
will use the
glib mainloop, but it'll also be possible to use a
different event loop with
gjs_joystick_poll and/or
gjs_joystick_poll_all.
As of now, it's almost finished; only the signals seem to be
something I'm having issues with still. But that's only a matter of not
having used
gdb enough—I'm sure I'll get there.
What gave me the sudden idea to write this library? Something silly,
really: for a project I'm currently negotiating, it might be nice if I
knew how GObject works; and what better way to find that out than by
writing something fun for it? Exactly.
Update: Bugs squashed, and the library (along with a
small test/demo application)
is available. Please try it
out and let me know what you think.
Justification.
Currently there is a huge mess of files and folders that start with a “.” in any users home folder. There is no structure or policy on how applications should choose file and folder names for data that needs to be stored in users home directory. Additionally there is no established consistency between Gnome, KDE and most other applications. Gnome application have part of their configuration information in gconf folder and other part in a gnome subfolder. KDE applications have a complex structure under .kde/. And most other applications either have one file directly in users home folder or have their own dot-folder there.
Problems.
There are two major problems with current ad-hoc approach:
-
Namespace pollution of users home space. In any desktop system “ls -al” in the home folder would be a very lengthy affair. Moreeven this namespace is folded - KDE and Gnome apps live in their own subfolders.
-
Lack of structure in folders makes it much harder to properly understand their purpose. For example, if a user has misconfigured an application and would like to reset it to default settings, it currently could be hard to figure out how to do that. Especially without losing his data in that application.
Proposal.
I propose to implement a policy on where an application can store data and configuration information in users home folder. Such specification would be proposed as an extension for FHS, first implemented in Debian and then promoted for inclusion upstream and in other distributions.
Structure.
I propose a following structure for a users home folder:
-
data/appname/ - each application, that stores user data in application-specific format, will have to store this data into this folder. Only configuration information that is essential to load this data would be permitted into this folder (in hidden dot files). For example, Evolution could store emails and email access information here.
-
.conf/appname/ - each application that stores any configuration information whould have to store all of it in this folder. GConf will have to also store applications configuration info here. If this folder would be deleted, application must revert to default configuration, but still be able to fully access user data in data/appname/ or other, generic folders (below). For example, if .conf/evolution/ is erased, then on next start-up Evoution should still be able to access all email that is stored in data/evolution/ without any configuration wizards.
-
.tmp/appname/ - each application that would need to create temporary files that survive reboot, would put them here. These folders can be safely deleted at any time with no data or configuration loss. For example, Firefox cache information and Nautilus thumbnail cache would have to be here.
-
Desktop/ - the desktop folder, just like it is now
-
Media folders - (Documents/, Photos/, Videos/, Music/, …) a suggestion of basic document structure for user to use or ignore. Applications dealing with particular media types would default to use files from such folders, but should also cope with working with any other folders on users choice. For example, a screensaver with slideshow function would by default use photos from Photos/, but will have to have a configuration option for user to change that setting.
-
Additionally I would propose having a .mounts/ folder where applications could mount user specific media and other mounts, such as FUSE. For example, FUSE could be used for automatic archive introspection.
Benefits
The main benefit for such system for me is twofold:
-
SBackup can be configured to exclude .tmp/ and .mounts/ by default thus saving significant space in backups.
-
A tool can be made to restore settings and/or data for specific applications in an uniform fashion.
So, any suggestions on the idea and on where this should be best discussed?
Greg Kroah-Hartman's new book
Linux Kernel in a Nutshell is now available in stores, as well as for download on his website.
To quote
O'Reilly:
Written by a leading developer and maintainer of the Linux kernel, Linux Kernel in a Nutshell is a comprehensive overview of kernel configuration and building, a critical task for Linux users and administrators.
No distribution can provide a Linux kernel that meets all users' needs. Computers big and small have special requirements that require reconfiguring and rebuilding the kernel. Whether you are trying to get sound, wireless support, and power management working on a laptop or incorporating enterprise features such as logical volume management on a large server, you can benefit from the insights in this book.
Linux Kernel in a Nutshell covers the entire range of kernel tasks, starting with downloading the source and making sure that the kernel is in sync with the versions of the tools you need. In addition to configuration and installation steps, the book offers reference material and discussions of related topics such as control of kernel options at runtime.
A key benefit of the book is a chapter on determining exactly what drivers are needed for your hardware. Also included are recipes that list what you need to do to accomplish a wide range of popular tasks.
It's yet another great book licensed under
a Creative Commons license. It's good to see that more and more books are now being freely licensed...