Measuring Eee
10.03.2008 19:15
Last time I've read on Eee User forums some measurements that suggested that lowering CPU frequency (via the cpufreq kernel module) to conserve battery power isn't useful because the current Eee draws from the battery is the same regardless of the frequency (sorry, can't find that post now). I find that odd, but I would happily get rid of the ondemand CPU frequency governor that's making things sluggish if it really doesn't help a bit.
After some searching around the internet I found some alternative theories why lowering your CPU clock when on battery isn't good. They say that modern CPUs have the ratio of power consumption between idle and full power so high that it is better to always have the CPU at the highest clock so that it spends as little time out of idle as possible.
So today I wanted to solve this out once and for all with some measurements of my own. Unfortunately it wasn't as simple as I thought it will be. It turns out that my particular laptop will not run with an ampermeter in series with the power supply. Without the battery it starts, but is very unstable and most times resets before Debian stops booting. With the battery it doesn't even do that. Weird. I'm guessing the added inducance and resistance is causing some undervoltage protection to trigger.
Well, I'm not going to give up that easily, but this will have to wait until I can set up a more serious experiment.
Deadlines
05.03.2008 21:00
They say that Douglas Adams liked the sound they make when they fly by. But what if you really, really want to meet them? Well, so far I've seen three different ways of doing that:
The "let's finish early to leave some time for last minute problems" strategy,
the "perfect planning and hope for no mistakes" strategy and
the "the deadline is coming so we have to work really, really hard now" strategy.
Suffice to say I'm a fan of the first one, but I admit I sometimes fall back to the second way.
If you know your deadline in advance, why would you choose any other way? Isn't the point of knowing when you have to finish something exactly that you can plan your work? So excuse me if I don't buy the third option.
Of course, I'm not the only one that draws graphs like this.
Moo
26.02.2008 19:44
Last year when I was in London I've seen people giving around cute little cards. After some questions I've learned about Moo, a web service that can be used to order a number of printed paper things, from those mini cards to stickers.
So a couple of weeks ago I gave it a try. I've also heard nice things about their web site and since I'm still a bit cautious about using all these new-style interactive web interfaces for anything serious I wanted to see how a good one looks and feels like.
Well, the final impression was really good. Everything looked and worked correctly in Debian's Iceweasel. I've uploaded some images and was able to crop and adjust them in browser. At first I had some problems because I had images that were already cropped and Moo kept putting the edge of the images off the card. However their FAQ quickly cleared things out and I got a JPEG template which I used to prepare the margins of my images correctly in GIMP. If I wouldn't want to mess around with that I would be finished with the order in a couple of minutes. Nice. No needless extra features, only what you really need.
This is also the first time I got the impression that I'm really using an international service. They have a flat rate for shipping anywhere in the world - something I haven't seen anywhere else before. Another nice thing is that they properly support international characters! They printed my name correctly, which can't be said for some companies in Slovenia where many still struggle with that on their web forms (I must remember to post once all the different ways I find my name wrongly printed in my (ordinary) mail).
Anyway, I also liked the way how they add an impression of a personal touch to the whole thing. You see comments like "Excited? We are." here and there. It's interesting how I never got the feeling that they're overdoing that and I usually have quite a negative reaction to companies trying to fake emotions that way.
They also say that they care about the environment and that they only use paper from sustainable forests and so on. Nice, although I find their choice of a plastic box for shipping my cards a bit conflicting with that mission. It's made out of recyclable polypropylene so I guess it's not that bad.
So, if I'll need a bunch of colorful cards, I'm definitely going back to Moo.
Invasion
25.02.2008 18:19
We saw these lenticular clouds over St. Margarethen in Austria last week. These circular things looked much better in real life than on this photo. Image a scene from Independance day.
Pick your start-up name
05.02.2008 20:25
On Monday we had some discussion at Zemanta about naming strategies of popular internet services and startups. That got me thinking and I've hacked up a start-up name generator. I'm obviously not the first one with that idea.
Anyway, it's a simple Perl script using a probabilistic model of Web 2.0 namespace (which I made up on the spot). Given that it took me 15 minutes to write it it's surprisingly effective and produces approximately one useful name out of 140. Useful meaning that someone with a lot of imagination might use it to name something.
Even more surprising is that out of those more or less randomly generated names more than 30% are already registered as .com domains. So in a rough estimate if there are approximately 1010 alphabetic names with between 4 and 7 characters that means 3 billion registered domain names. Amazing.
If you're going to launch a web service, you better do it soon.
Old media
01.02.2008 19:51
I just saw this old Sony microcassette (you know, magnetic media you used to store audio on). I was just amazed how fair advertised capacities used to be:
Today large type would probably say something like "180+ min*", and somewhere at the bottom there would some legal text about how capacity depends on the quality of recording and equipment used.
Slashdot tube silliness
09.01.2008 22:50
A quote from a highly moderated comment on Slashdot:
Thermionic valves have vastly superior tolerance to electromagnetic radiation, acceleration, shocks, and other hostile conditions.
After you drop a transistor and a tube on the floor, guess which one will be perfectly fine and which one will be a useless pile of glass shards?
On the other hand, the linked video is really nice and shows step-by-step construction of vacuum tubes by a French amateur radio operator.
Leopard weirdness
07.01.2008 13:21
Remember my rant about Mac OS X Leopard? I said how it reminded me of Windows Vista because it's constantly asking you to confirm this or that.
Here's a confirmation dialog I've just had to click through that beats all others I've previously encountered:
And yes, this was an ordinary HTML file, not an application of any sort.
Asus Eee
30.12.2007 0:34
A few days ago I bought myself an Asus Eee PC. It's a black 4 GB model with an integrated camera - the only model you can buy currently in Slovenia. I bought it mostly because I heard a lot about on various blogs and I was curious to try out Linux on such a little portable device. I also had a few occasions when I missed a little hackable Linux machine for some short term tasks. Since OLPC's Give one, get one program is only for people in U.S. and Nokia's tablets aren't much good for working in console Eee was the only way to go.
I only had the original software on it for one day, so I can't say much about it. What I saw of it was quite nice, especially the super-fast boot (Enrico Zini has a more detailed description).
I said I wanted a hackable machine and Eee is just that. All hardware works on Linux without problems. I had Debian installed on it in a few minutes and after a few hours of work every last bit of Eee worked, including Wifi in monitor mode, integrated camera, on-demand CPU frequency scaling and suspend-to-RAM. There are a few excellent sources of information available, like eeeuser.com, Debian for Eee and Eee PC support for Ubuntu.
Debian installation took a little more than half of the built-in storage. I didn't bother a lot with X11 software since I mostly intend use this computer from the console (Firefox and Thunderbird are the only two X11 applications I think I will need). Just out of curiosity I installed a basic GNOME desktop just to see how it works. I'll probably replace that with Blackbox or something like that soon since GNOME seems a bit of an overkill.
So, the general impression from these few days is very good. Keyboard really is very small, but I got used to it pretty fast. On a few occasions I actually held the computer at the sides with palms over the keyboard and typed with my thumbs. Handy for a few keystrokes when you don't have a surface to put the computer down.
Display is surprisingly bright and clear. It's also big enough to comfortably browse the web and text-mode console is approximately the size of a terminal window on my desktop computer. The trackpad is small but does it's job well enough for me. Wireless reception is just amazing. From my window I see something like 15 networks from around the neighborhood where my Powerbook only sees my own access point. 512 MB of RAM seems little small by today's standard but it turns out that even with GNOME desktop running it's more than enough. So far I never used more than some 300 MB. The lack of RAM for disk caching is mostly irrelevant because of the speed of the built-in solid-state drive.
The hardware does show its cheapness in a couple of spots. One is the battery monitoring (through ACPI) which is very rudimentary. It seems that there is no actual hardware in place to integrate battery current and provide accurate maximum/remaining mAh readings. Instead you only get a charge estimate in percent (which is probably merely deduced from battery voltage). The other is the microphone which gives a really bad recordings. I tried to record my voice a couple of times and I could barely understand what I was speaking (there could be something wrong with my ALSA settings though).
So in conclusion it's a great little machine for 299€ and the QUERTY keyboard makes it way more usable than a palmtop or an internet tablet of a similar price (have I mentioned that it's also the ultimate way to play Nethack on the go?). I just hope that more computers in the future will be designed with Linux in mind like Eee.
The big stuff
20.12.2007 1:31
I just got home from Zemanta coming home party when I noticed these things in the workshop:
They're huge, they're old and they have valves (and they probably need repair as electronic things usually do when they appear like that on the bench).
More as I investigate tomorrow (I'm too tired to do anything else right now).
The art of TeX
16.12.2007 22:54
Last week I visited the Musée National d'Art Moderne in Paris. Imagine my surprise when I stumbled upon a physics paper displayed on the wall along other pieces of modern art. It has the characteristic look of a document typeset with TeX:
It's nice to know that even the curators of such a gallery acknowledge the beauty of a properly typeset document.
Le Web 3.0
15.12.2007 17:42
This post is a few days late due to combined effects of broken internet connection at our hotel in Paris and an Unicode bug in JSON.pm version 1.00 (don't ask...). Anyway, here are a few words about Le Web 3.0, fourth edition which took place in Paris between 11 and 12 December.
In one sentence it was the most professionally organized conference I've ever been to. All talks and panels I've seen were flawlessly executed with the help of some really great moderators. Video support was also impressive - there was a dedicated team of cameramen that continuously followed speakers on the stage from several angles and a producer mixed their live video streams with slides on three big projector screens. Together with lighting and music backgrounds the result was like no conference I've ever seen. Really, on some of the more spectacular talks I had a feeling I was watching a studio recording of a TV show (which isn't that weird considering that the conference was held in three large TV studios).
Wireless support worked perfectly, which is also impressive (for me at least - Andraž had some problems demonstrating Zemanta's demo on his laptop). Actually this is one of the few conferences where I was able to randomly open my laptop and check the mail.
I've listened to so many interesting talks that it's hard to point out any specific one. There were a lot of well-known speakers (like Doc Searls, June Cohen from TED, professor Karlheinz Brandenburg from Fraunhofer Society). There were only a few strictly technical talks. A lot were business oriented, with investors giving advices for new startups or explaining their views on new technologies. There was a lot of panels, with guests discussing their opinions on this or that part of the internet culture.
June Cohen from TED
All in all I have a feeling I learned a lot of things here. Not so much in the technical sense, but how internet businesses work, how they manage to attract people with their services, what is interesting to the public and what not, etc. Social networks, various internet and mobile services and all those things which I obviously barely knew before I started working for Zemanta.
Andraž doing a presentation for Zemanta
It was also inspiring - everyone I talked to at the end had a couple of ideas about what internet service they could make. There were moments when I couldn't stop myself thinking about the video Here comes the bubble and how well it describes some things.
Eurostar
12.12.2007 11:19
Yesterday I left Zemanta's London headquarters with the rest of the team and went to Paris to attend Le Web 3 conference.
We traveled by Eurostar and I was surprised just how trivial the travel seemed. The Channel Tunnel is one of the largest engineering achievements of the last century, however when traveling by train from London to Paris you barely notice it. Even when flying on a commercial jet you usually hear the captain tell some trivial information, like how high or how fast you are traveling or what is the temperature outside. This at least gives you a remote sense of just how much work and knowledge must have gone into making that multi-ton piece of aluminum fly.
The experience of the Tunnel has none of that. The train disappears for some 20 minutes into the ground and then you are on the other side. If you are used to trains traveling at 80 km/h even time spent underground doesn't seem different than any other ride. None of the brochures you can get on the train mentions any technical data and all announcements over PA were about safety and baggage handling.
Oh and since I'm comparing this train with an airplane: in contrast with other trains where you can hop on in the last minute, Eurostar requires you to check-in at least an hour early (including the new-age airport-style over-paranoid personal and baggage checks) and then wait at a gate until the train is ready for boarding.
More statistics
22.11.2007 23:27
Ivan Cankar
20.11.2007 1:41
English Wikipedia says this about Slovenian writer Ivan Cankar:
The son of a village tailor, he studied electrical engineering in Vienna, and lived there for some time as a freelance writer.
Is it possible that in four years of Slovenian literature courses in high school nobody cared to mention that? I'm sure I would remember that one interesting fact from lectures that were otherwise filled with (to me at least) uninteresting interpretations of his works.
Slovenian and German Wikipedias seem to disagree though. They say that he studied architecture for a while before switching to literature.
Making Wikipedia a better place
11.11.2007 22:48
... one speedy delete at a time.
I noticed some weird aliases today that seemed to be polluting Zemanta's semantic database. After making sure these terms actually exist on Wikipedia, Jure and I got on #wikipedia IRC channel and started bugging people. A few minutes later the world became a better place and the following redirects linking to Apple's iPhone were speedy deleted:
- Jesus Phone
- Jesus-Phone
- Uphone
- Ophone
- Eye phone
Now the only questionable alias for iPhone remains the God Machine, which actually has a citation behind it.
Grass cutter
04.11.2007 15:59
Remember Advanced Lawnmower Simulator? It was a simple and boring game for the Sinclair Spectrum where you had to push your lawnmower over a field. It was also an elaborate hoax performed by the editors of the Your Spectrum magazine.
This is what it used to look like in the 80s.
Now it seems that some people did have some fun with it after all. There appears to be a remake built into a £30 50-games-in-one hand-held console called Gamespower 50. They also enhanced the graphics a bit:
However it still appears to be as simple and boring as the original. There's a review you can see at YouTube (Dr. Ashen talks about the Grass Cutter around 4:00 into the video).
Leopard
03.11.2007 14:25
Two days ago, Apple users at Zemanta got a shiny box with the new version of Mac OS X inside. Since I was still running OS X 10.3 on my PowerBook I made a backup and upgraded without hesitation.
On the first glance Leopard looked much too shiny for my taste. The second look revealed just how much of a resource hog it is. My 60 GB disk is now 30% occupied just with the operating system itself (upgrade took approximately 11 GB of additional disk space). 768 MB of RAM seems to be just enough to keep the system ticking.
The default system also looks much to shiny for my taste. One of the first things I did is to turn the dock back to it's previous, non-3D non-shiny look (so much for not having to use command line on a Mac). Fortunately I was somehow spared the transparent menu bar (it seems that is much harder to disable). Perhaps it's the old hardware I'm using. On the other hand I still get blurred background behind menus. It's really a minimal visual change, but I'm sure they did that only to show that a Mac can do that just as easily as Vista.
Since I never used 10.4 this is also the first time I've seen Spotlight and Dashboard. The first one is great - starting applications for example. Not so much for finding documents in my experience because I always get a ton of search results from various C and Python source files I have on the disk (the same problem I had with Beagle on Linux). For the dashboard on the other hand I can't see any good use. I currently only have iStat Pro there. I still use sticky notes and calculator as standalone applications.
For some new features I have the feeling that they are there just so that Apple's marketing department could say that they added more than 300 new features. Quick look is one such example - isn't it easier to double click a file and open it than Control-clicking it and selecting Quick look (which takes about as long to load up as Preview anyway)? Or that flip-through-the-album mode that finder has now. Just more shiny things with no useful value.
Spaces is nice. I missed virtual desktops on Macs. It still has bugs though. If I have for example terminal windows on two desktops and switch to Terminal from some other application with Ctrl-Tab the system will take me to some random desktop with a terminal on it. Ctrl-` will also just cycle between windows on the current desktop, not all desktops.
Regarding application compatibility: Leopard's X11 is terribly broken. I installed Tiger's X11 but problems remain. Gimp isn't working for example and OpenOffice sometimes gives me "Command timed out" error and sometimes crashes after I type in a couple of words. Also Vi for OS X works worse on Leopard (for example Ctrl-6 shortcut stopped working). MacVim works perfectly (and has a nicer icon). Other things appear to be working, although Jure says that upgrade broke his MacPorts and MySql installations.
A big surprise was that the ssh client they ship with Leopard now pops-up a graphical window asking for a password / passphrase (probably through ssh-agent). I'm not sure I like this - command line utilities should stay in the command line.
A couple of new features also strongly reminded me of Vista. For example the new Mac OS X is constantly asking me to allow or cancel some actions. I don't know how Apple can make fun of the Microsoft in their commercials about this when they aren't any better. For example, in the first day of using Leopard I had to allow application to run for the first time, application downloaded from the Internet to run, application to access the Internet and application to accept connections from the Internet ...
Both Jure and I also noticed a strange side-effect of the upgrade: we both seem to be making more typing mistakes than before. I'm guessing that Leopard has some new system of filtering keystrokes and that it no longer registers very short key presses or something. Also I have the feeling that the keyboard repeat rate is lower that before. I have no benchmarks to prove it though.
Lengths of article titles
30.10.2007 14:34
How long is the average title of an article on the web? Jure needed this information yesterday when he was designing some part of Zemanta's web interface.
The nice thing when you have half of the web1 cleaned-up and stored in your database is that you can get answers to questions like this with a simple SQL query. A gnuplot one-liner later, we came up with this:
It's interesting how the histogram has a sharp spike at around 30 characters in an otherwise smooth bell-like curve.
1 Ok, maybe half of the web that's not porn.
Dorkbot London
26.10.2007 20:00
Yesterday Boštjan and I went to see Dorkbot London. The place (called "01" in Soho) reminded us of Kiberpipa and the event was surprisingly like a couple of POT talks in a row. There were somewhere around 50 or 60 people in the audience, more than there were chairs available.
The event consisted of three talks: first was James Larsson who presented a scary modification of the original Pong video game: he replaced two joystick controllers with a pair of pressure sensitive leather boots on a table. The players controlled their pads by squeezing the boots and a motorized whip hit the unfortunate looser.
The part of his contraption I found the most interesting was how he controlled the whip. The AY 3 8500 chip on which the Pong game runs doesn't have any digital outputs that would indicate which player lost. So in order for his machine to know which player to punish he made a circuit that figured out the last position of the ball from the analogue video signal produced by the chip. This seemed very impressive to me at first (especially since only a couple of simple logic chips seemed to be enough - see picture above). However if you read the description of the chip you see that the chip produces separate video signals for each object - ball, pads, background, etc. This makes this feat much more credible.
The second talk was by Matthew Garrett about the OLPC project. Nothing new here, I only got the impression that maybe they set the goals of the project a bit too optimistically. It's been 2 years since the announcement of the project and according to the presentation they still have a lot of problems with software.
The final talk was by Tim Hunkin, creator of some very interesting arcade machines. Judging by video presentations of his machines he has shown us his creations are incredibly low tech (he said they are controlled by nothing more complicated than some industrial PLCs) and incredibly funny / interesting. For example Mobility Masterclass game uses a camera moving on a robotic arm through a model of a street to produce the video that the player sees on her screen. There's also Rent-a-dog where he recorded the video on a scale replica of the nearby street he constructed out of photographs, glued to cardboard.
His machines are great examples how games can immersive even if the technical background is simple and display isn't pixel-perfect. I would love to go see his arcade (most machines are on display in a pier pavillion over the sea), but as far as I know it's not very easy to get there with public transportation.
Article about nVidia
13.10.2007 19:43
There's an interesting article with some pictures about facilities at nVidia headquarters at FiringSquad.
It's surprising what extensive equipment they have even though they do not manufacture chips themselves. Granted they are one of the leading specialized integrated circuit design companies but I didn't know that companies that outsource their chip fabrication do chip testing at the level that is claimed by this article - chemical composition analysis, checking transistor level failures, etc.
They also say they are doing some things that I didn't even know are possible. Like changing on chip connections with gallium ion beam to diagnose a chip failure. Considering that a completely manufactured chip is probably impossible to get undamaged from its package I guess they are only doing this for diagnosing and fixing problems with prototypes they get on a bare die from the fab. However even this is impressive. Does this mean that transistor level simulation tools aren't accurate enough to model some failures on their chips?
I also wonder where they get their failed chips from to analyze. I doubt they do this kind of in-depth checking on every failed card they get in their mail. My guess would be only from trusted sources like other graphic card manufactures that use their chips.
PCB coasters
11.10.2007 20:00
I bought a couple of coasters like this yesterday at Science Museum. They claim that they are made from recycled printed circuit boards.
From a close look they appear to be made out of a double-sided 6-layer PCB. I doubt that it is recycled though. You can see the gold colored metallization on SMD pads that would be covered if the pads ever had any solder on them. It is more likely that the material came from some stock of obsolete boards that were never assembled.
Science museum
10.10.2007 22:04
I took a break today from natural language processing and visited London's Science Museum.
I visited Science Museum several years ago and one thing I remember the most from that visit is the big running steam engine you see right beyond the entrance. Well, there are still some steam engines in the first hall (right after you go through mandatory backpack search), but I got the feeling that they're there simply because they're too large to move away. The focus of the museum seems now to be more recent technology.
Right after the first hall you go through the space flight exhibition.
That's a full size replica of the Apollo LEM and the authentic Apollo 10 command module (that was the last lunar orbit mission before the first landing). What amazed me was the size of this thing. From the pictures I never got the impression just how much larger the landing module is compared to a human. The complete Saturn V stack must really have looked incredible.
On to the computing and electronics section. I didn't know that Ferranti was a known name in electronics well before integrated circuits. Judging from Google results you get today I had the feeling that they were mostly known by their innovative ASIC technology that made Sinclair Spectrum's ULA possible.
This is a mechanical analogue computer that was used to research and predict economic changes. It uses water as an analogue for monetary value.
One of the first experiments with artificial intelligence. According to the looks and age of this device it probably uses some analogue electronic circuit to model human reactions.
The replica of Babbage's Difference engine is one of the highlights of Science museum's collection. They are building another replica for display in an American museum.
There were also some art installations on display. This particular one caught everybody's eye because of the big "DO NOT TOUCH" sign. Of course, who can resist touching a shiny unusual object, especially if there are no obvious obstacles? In the end it turns out that it will only give you a slight electric shock and emit a loud "Bzzzt" sound.
Ok, according to some screams maybe it's not so slight.
Weird priorities
09.10.2007 12:49
The English have some weird priorities regarding household safety.
On one side they seem absolutely paranoid about everything dealing with electricity. I've seen this last year in Lancaster as well as now in London. Every wall plug has a dedicated switch. Larger electrical appliances, like our electric oven for example, have an additional big switch on the wall with a red warning light. Everything, from extension cords to simple continental-to-UK plug adapters has its own fuse. At Lancaster University everything that had even a remote connection with electricity, from computers, toasters to extension cords and cables, had to be periodically checked, sealed and signed by an authorized electrician.
On the other side gas stove in our house in London doesn't have safety valves that turn off automatically if the flame goes off to prevent gas building up in the room. I also don't see anywhere a clearly marked gas shut-off valve (the kind you usually see in Slovenia where houses are connected to city gas lines). Quite unbelievable. You definitely don't want to get electrocuted, but a gas explosion can take down the house.
I have this feeling that electricity is still regarded as something new, unknown and dangerous while domestic gas has been used for centuries and is a well known, tamed beast.
FOWA 2007
04.10.2007 22:20
I visited the Future of web applications conference today. Zemanta has a little booth there right behind the registration desk. It's funny to think that it's in as exposed place as Adobe booth next door, which is one of the main sponsors of the conference.
After listening to talks about such and such planned social networking sites I have mixed feelings. I myself would just not be comfortable with giving away that much personal information (or even ability to track my location at any moment!) to some business.
It's interesting that people get really angry when some government wants to introduce some technology that would in theory enable tracking of people, but on the other hand they happily volunteer to be tracked by some commercial web site.
One notable project that caught my eye was wakoopa.com. It's a site that tracks what software you use and what software people you know use and then recommends you what software may be useful to you. Again you're sending scary personal information somewhere on the net but seeing how many useful little applications I found in these 3 days working with other guys from Zemanta I see why it could be useful.
Secret Zemanta headquarters
02.10.2007 17:37
For the next three months I'll be working for Zemanta on some advanced natural language processing algorithms. Not exactly my profession, but it's always interesting to try something new.
These are Zemanta's famous secret London headquarters where I'm staying. It's a typical English house with two floors and four little bedrooms like this:
Internet access is unfortunately quite problematic here. Currently we have a Vodafone UMTS modem connection that is shared with all our computers through wireless LAN. Certainly not an ideal solution, but it works (sometimes). On the other hand it's nice to know just how much better Slovenian ISPs are compared to this one. This is the first time I see an ISP transparently replacing JPEG images with lower quality ones, inserting Javascript into HTML pages and even blocking some domains completely.
Graduated
29.09.2007 13:55
Yesterday I successfully defended my diploma thesis about designing and building a replica of Galaksija microcomputer. I'm now officially an electrical engineer.
Now I can actually break those "no user serviceable parts inside" and "only to be opened by qualified personnel" stickers on electronic devices without the feeling that I'm doing something against the rules. Where's any fun in that?
