Search Results: "otto"

28 February 2006

Aigars Mahinovs: Migrating from Blogger to your own Mnemosyne blog

As I decided to migrate my blog from blogger.com to my own blogging software on my own domain, I did not want to leave my old posts behind. As I had more then 150 of them, I had to do some automation to do that within my lifetime. The first step is to get the data from Blogger.com database to somewhere where you can access it in full. You will need FTP or SFTP access to a computer with a real IP address. The idea is to go to blogger.com and specifiy that you want to switch storage of your blog pages from their blogspot.com service to your of FTP or SFTP server. You will have to provide server address, URL, folder, username and password. URL does not matter at this point, but other parameters define where your data will be dumped to. Save the changes and republish the blog. After a few dozens of minutes all your data will be at your server in a set of complete html files. Now we need something that will parse those html files and write out something that your blogging software can understand. As I use Mnemosyne, my format is a set of mail message files. To allow me to use HTML formatted messages in my blog (and not only reST) I added this to my config.py:
class EntryMixin:
   def _init_content(self):
       """Read in the message's body, strip any signature, and format using
       reStructedText unless X-Format=='html'."""
       s = self.msg.get_payload(decode=True)
       if not s: return ''
       try: s = s[:s.rindex('-- \n')]
       except ValueError: pass
       body=False
       try:
               if self.msg['X-Format'] == "html":
                       body = s.replace(" ", " ")
                       body = re.sub(r'&(?!\w 1,10 ;)',r'&',body)
                       body = xml.dom.minidom.parseString("<div>"+body+"</div>").toxml()
       except KeyError:
               pass
       except xml.parsers.expat.ExpatError, e:
               print "W: Parse failed for "+self.msg['Subject']+" at "+self.msg['Date']+" from "+str(int(time.mktime(time.strptime(self.msg["Date"],"%a %b %d %H:%M:%S %Y"))))
               print xml.parsers.expat.ErrorString(e.code), e.lineno, e.offset
       if not body:
               parts = docutils.core.publish_parts(s, writer_name='html')
               body = parts['body']
       self.cache('content', body)
       return body
This will try to parse messages as pure xHTML if custom header "X-Format" is set to "html" in the blog entry. There is one problem with this approach - xHTML must be valid, otherwise XML parser in Kid templating engine will fail and there will be no end of trouble. That is why even in HTML mode we reparse the body to XML and back to string again. If we get a parsing error at that point, we fall back to reST parser. Now we need something that will analyse our Blogger.com generated HTML files and get our content from there. Here is the script that I used:
#!/usr/bin/python
import os, os.path, time, sys, glob, re, xml.dom.minidom
id = 1
host = "old"
mdate = re.compile( r'\">(\d+) (\D+) (\d+)<' )
mbody = re.compile( r'</div>(.+)<div style=' )
mfooter = re.compile( r'<a href=\"http://example.com/(.+)\" title=\"permanent link\">(\d+):(\d+)</a></em>' )
files = glob.glob("old/*/*/*.html")
for file in files:
       year = 0
       month = 0
       day = 0
       hour = 0
       minute = 0
       subject = ""
       oldurl = ""
       body = ""
       date = ""
       title = ""
       footer = ""
       f = open( file, "r" )
       status = 0
       for l in f:
               if status == 0:
                       if l.find('class="date-header"')>0:
                               date = l
                               status = 1
               elif status == 1:
                       if l.find('class="post-title"')>0:
                               status = 2
                       if l.find('class="post-body"')>0:
                               status = 4
               elif status == 2:
                       if len(l.strip()) > 0:
                               title = l
                               status = 3
               elif status == 3:
                       if l.find('class="post-body"')>0:
                               status = 4
               elif status == 4:
                       if len(l.strip()) > 5:
                               body += l
                       if l.find('padding-bottom: 0.25em;')>0:
                               status = 5
               elif status == 5:
                       if l.find('posted by ')>0:
                               footer = l
                               break
       f.close()
       rdate = mdate.search( date )
       rbody = mbody.search( body )
       rfooter = mfooter.search( footer )
       year = rdate.groups()[2].strip()
       month = rdate.groups()[1].strip()
       day = rdate.groups()[0].strip()
       subject = title.strip()
       body = rbody.groups()[0]
       body = "<p>"+body+" </p>"
       body = re.sub(r'<img([^>]*?[^/])>',r'<img\1/>',body)
       if subject == "":
               subject = re.sub(r'<br.*?>','\n', body)
               subject = re.sub(r'</p.*?>','\n', subject)
               subject = re.sub(r'<.*?>','', subject)
               subject = subject.strip()
               line = subject.find('\n')
               if line > 45:
                       subject = subject[:40]+"..."
               else:
                       subject = subject[:line]
       oldurl = "http://oldblog.blogspot.com/"+rfooter.groups()[0].strip()
       hour = rfooter.groups()[1].strip()
       minute = rfooter.groups()[2].strip()
       mtime = time.mktime(time.strptime(day+" "+month+" "+year+"  "+hour+":"+minute, "%d %B %Y %H:%M"))
       outname = str(int(mtime))
       while os.path.exists( outname+"."+str(id)+"."+host ):
               id += 1
       outname = outname+"."+str(id)+"."+host
       out = open( "entries/new/"+outname, "w" )
       out.write("Date: "+time.ctime(mtime))
       out.write("\nSubject: "+subject)
       out.write("\nX-URL: "+oldurl)
       out.write("\nX-Tags: untagged")
       out.write("\nX-Format: html")
       out.write("\n\n")
       out.write(body)
       out.close()
Here I parse the HTML files using a simple state automata and then assemble all the data that we need to have, like timestamp in filename and Date field. In this script it is assumed that in the current directory there is "old/" directory with subdirectories like "2005", "2006", ... which have subdirectories for months in which there are xHTML files for individual posts. The output is written to "entries/new/$timestamp.$id.$host" files. After running this script and then running mnemosyne you will see a bunch of messages about failed parsing of some messages. That shows you where your xHTML is not valid. The usual problems are html entities ( like &euro; ) that the parser does not recognise and lack of closure on img or br tags:
This will fail because of &euro;
<img src="smile.png"> will fail, it must be <img src"smile.png"/>
My import script fixes img and br tags, but for other problems there is not much choice but going trough the entries and fixing them up manually. Also later on, if you will want to paste some custom HTML into your post, you will have to mark the whole post as HTML mode post and also check if you pasted HTML is valid XML manually. There are some other fun things in this blog, but I will go into that in later posts.

21 February 2006

Martin F. Krafft: Fat free

Daniel pointed us to maltloaf, which brings up painful memories from my US College times -- you know, ghost milk and 100% fat free butter and stuff like that.
  • Soreen quote 2 g/100 g fat under typical values, so 2%. Someone tell them their PR that they can write 100-2 => 98% fat free for better effect! (yes, I know fat isn't a linear scale). Or do they mean 2 g being about 3% of the suggested daily intake, which means you have 97% "left to spend"?
  • Second, "Soreen Original fruity malt loaf is suprisingly nutritious and low in fat." Aha. Do 97% fat freeness somehow cancel out the 688 kcal per bar? Or are they not trying to appeal to people watching their weight?
To whom are they trying to appeal? If it's really sports persons, then the sheer amount of carbohydrates would call for an average such person (75 kg, 178 cm):
  • to drink about 9 litres of water for each bar (two of which should be isotonic, one with extra electrolytes),
  • to eat just a little less than two bananas for the potassium, and
  • to consume one boiled egg with about one tea spoon of table salt for proteins and sodium
for a moderately balanced diet. Given average fitness and BMI, this person would have to keep the pulse between 140 and 150 for two hours straight (for each bar), and not eat more than 1.8 of those maltloafs. These values are according to a rather reasonable book on sports nutrition I bought in preparation of our Kilimanjaro hike, btw. I really wonder how many sports persons have a balanced diet. Those who don't will not be able to digest the carbohydrates and excrete more than half of them while adding body weight in the long run -- but hey, at 97% fat freeness, that can't be fat, it must be muscular tissue, right? :) These bars do have an impressive amount of carbohydrates, I must say. I am never sure about importing food products from the UK, but maybe I'll have to pick up a few. PS: oh, and does their math square? According to the nutritional facts, 100 g of loaf has 310 kcal while 1/8 of a loaf as 86 kcal, so a bar is 222 g (wow). But 222 g of bar are supposed to have 8*0.6 g = 4.8 g of fat if you approach it bottom-up, and 222*2.0 g/100 = 4.4 g of fat if you come at it from that angle. Daniel, do these things really weigh 222 g per bar?

Enrico Zini: Debtags preformance burst

Recently I've been busy with Debtags code. Actually not really Debtags code but Tagcoll code. Tagcoll is a collection of generic templates implementing all that is needed to work with tagged stuff. Debtags is just an instantiation of Tagcoll to work with Debian packages, but Tagcoll could be used for pretty much anything, wonders of C++. So, I've been busy with Tagcoll code. More specifically, I've been working on a new high-performance disk index. I've also implemented some basic benchmarks. Follows a table with the benchmarking results:
Operation TDBReadonlyDiskIndex BasicStringDiskIndex TDBIndexer
instantiating 30ms 0ms 310ms
hasTag 200ms 0ms 0ms
getTags[item] 180ms 90ms 40ms
getTags[items] 10ms 0ms 0ms
getItems[tag] 330ms 80ms 30ms
getItems[tags] 1140ms 20ms 170ms
getTaggedItems 50ms 10ms 20ms
getAllTags 270ms 0ms 0ms
getCardinality 190ms 0ms 40ms
getCompanionTags 1410ms 60ms 280ms
output 18910ms 7740ms 50ms
outputHavingTags 1330ms 90ms 200ms
TDBReadonlyDiskIndex is the disk index that is currently used in Debtags, BasicStringDiskIndex is the new disk index and TDBIndexer is an in-memory only index implemented with two binary trees. I'd say, definitely not too bad :)

20 February 2006

Benjamin Mako Hill: Maybe Not

I saw an advertisement for PubCon today. It merely listed their name and their slogan/motto/catchphrase: "We start where other conferences finish." I thought about that for a second until I figured it out. Where do other conferences finish? Obviously, they finish at the pub! Hell, any decent conference will they finish in the pub not just once but every night. What a great idea! Why not just avoid the whole conference bit altogether and just go to the pub in big groups of like-minded people! It turns out, it's just some gathering for anyone "involved in the production, marketing, or management of a internet web site." Very disappointing. I will not go. You shouldn't either. If I remember and have time when PubCon is Boston (unlikely, remind me if you like the idea) -- April 18-20, 2006 -- I will try to organize my own PubCon, which will actually start where other conferences (including PubCon it turns out) finish.

18 February 2006

Martin F. Krafft: Back to Fluxbox

I am following Wouter's example and returning to Fluxbox. I certainly thought ion3 was an interesting approach and it seemed like it would be exactly what I needed when I saw Erinn show it off to me in Helsinki. However, over time I developed too many gripes:
  • I am a great fan of Enrico's software, buffy in particular. I would like to have buffy stick to ever workspace, ideally along the right edge. This seemed not trivially possible in ion3, where I would have had to create a single static workspace with two panes, then put all my other workspaces into the pane next to the one reserved for buffy. Certainly possible, but a major pain to configure and protect against resizing and accidental closing.
  • Applications like Firefox, dia, and especially The Gimp (to name but a few) were just a major pain to use, especially since I never got the hang of the floating workspace model. My favourite example (which is in line with Wouter's experience): try to crop an image in The Gimp; by the time you set the first click, you'll have the crop dialog in your face, which you have to first move out of the way before you can restart. * Certain transients would be locked to a size that made it impossible to fill in all fields, first requiring you to attach the window to a proper frame.
  • The inability to display dock and status bar on the same head.
There were probably a couple of other minor issues that don't pop to mind right now. All that said, there are certain things I now miss in Fluxbox, which had been my window manager of choice before Helsinki, that I know what ion3 can do:
  • The ability to use your keyboard to switch to a bordering window; I had it set up so that Mod5-<arrow key> (Mod5 I tied to Caps_Lock) would transfer focus to the window on the left/right/top/bottom. My xinerama-switcher module (part of ion3-scripts now) would allow that to work across multiple heads and workspaces.
  • Tagging and attaching a window to another pane, or using the attach command directly to summon a window from somewhere else to the current pane.
  • While grun is a worthy replacement for ion3's F3, I have not found something to replace F4, a prompt with autocompletion for SSH targets; I've really grown used to that.
  • The concise and extensible status reporting done by the various modules in the statusbar, like ACPI status (incl. temperature and CPU frequency), current IP address, WLAN status, and the three CPU load values. Dockapps just take way too much screen estate, and I don't need no graphic frills when I want information.
... and possibly more. Maybe it's time to look around again for a lightweight, keyboard-friendly window manager (and only that) that's not WindowMaker?

15 February 2006

Joey Hess: the slowly dying laptop

Yeah, my Fujitsu laptop has been dying for a year or so, it's had surgery for power, batteries, hard drive, sound, etc, it's lost every bit that could break off and still have a usable laptop (all the suede on the bottom, the lid fasteners, the pcmcia blcker, the case around the base of the lid.. the still working pcmcia eject button is my one remaining sacrificial breaky bit). It's got the marks to prove cats love it, along with all the results of throwing it in my book bag and taking off with no concern for carrying a laptop around. The screen has 4 or 5 dead pixels and recently one faint patial dead scan line. The lid is getting worryingly wobbly. The CD drive was once crushed in an airplane and then banged back into shape so it still fits in the machine and even ejects OK. I've rubbed the letters right off some of the keys on the keyboard. The speakers turned black and exuded some glue or something long ago during a hot summer, one of them is barely audible. The headphone jack broke. Oh and the laptop is also abused regularly by programs like firefox and openoffice that really didn't expect to run on a 900 mhz crusoe. All that, I can live with. The laptop bears its marks with pride, and amazingly, people still occasionally ooh and awe at it. Although more likely from a bit of a distance these days. The newest wrinkle is that I'm beginning to exceed the design specs for the keyboard. Apparently they just didn't design for it to be used so much. First some keys stopped working half the time on some days, yeilding the famous irc sessions where joeyh tlks without ny A's. Then the Function key's membrane stopped pushing it back up, so it always appears pressed, though still works. Now the Alt key is going the same route and the right side ofthespacebardoesn't work, leadingtoircsessions whereItalklike this. And it just feels like I can't touch type on it half the time anymore. A new keyboard is $100 or more. I think it's time to retire this to a d-i test machine and start looking for a new latop.
I looked at the IBM X-41 again, really like it, but still can't get past the low res display and fan. Especially with some reports that the fan runs constantly in linux. I looked at all the stuff on dynamism, but wasn't impressed enough to consider it. At the moment the Fujitsu P7120 is looking mighty appealing. Hey, it's even got the suede bottom again. And no fan.. Only problem is it has a touchpad.

25 January 2006

Matthew Palmer: LCA 2006 -- The Early Years

So, I've arrived at LCA (linux.conf.au) 2006, in Dunedin, New Zealand. You're going to be getting a lot of these blog posts over the next few days, from me and other people, but it's only a week-long conference, so weather the storm. Plane trip over was... well, it was a plane trip. I can be thankful that I didn't lose my luggage (as one bloke has already had done to him). Beyond that, all aircraft interiors are identical, so no need to discuss that. At the stopover in Christchurch, we all headed for the bar (as geeks tend to do). I handed over a brightly coloured note in the local currency in exchange for my beer, and I get my change. What is part of my change? An Australian 10c piece. <sigh> Mad props to the conference organisers so far -- one of the organisers was at the gate (the only gate) at Dunedin airport to pick up speakers, but he gladly took us ruffian attendees into town, saving us all a few bucks in shuttle bus fairs. It was a nice guided tour in, as well, showing us all of the useful sights (like the pubs, 24 hour minimart, and eateries). He also dropped us off at the registration desk, so I got my conference schwag already (see my separate review of the schwag). Dinner involved walking into the octagon (a loop street with, unsurprisingly, 8 sides) and finding a place that serves you raw steak and a hot rock. It's like a portable BBQ construction kit. Amazingly tasty. We're going back tomorrow night for more of the same, as it's so tasty and fun -- you are legitimately allowed, even encouraged to play with your food. I also got a "barmate" (don't mispronounce that in front of your significant other) -- a yard-high glass cylinder with a tap at the bottom, filled with your choice of beer. Much merriment ensued amongst the assembled geeks, as we all plied ourselves with Speight's Gold Ale. I think it's about 8-10 pints worth of beer all up. Value. No Internet access yet, as they're still working out the kinks with the special conference network. I hope it's all up and running by tomorrow morning -- my mail queue is starting to seriously bulge with all of this outgoing mail.

22 January 2006

Matthew Palmer: LCA 2006 -- The Early Years

So, I've arrived at LCA (linux.conf.au) 2006, in Dunedin, New Zealand. You're going to be getting a lot of these blog posts over the next few days, from me and other people, but it's only a week-long conference, so weather the storm. Plane trip over was... well, it was a plane trip. I can be thankful that I didn't lose my luggage (as one bloke has already had done to him). Beyond that, all aircraft interiors are identical, so no need to discuss that. At the stopover in Christchurch, we all headed for the bar (as geeks tend to do). I handed over a brightly coloured note in the local currency in exchange for my beer, and I get my change. What is part of my change? An Australian 10c piece. <sigh> Mad props to the conference organisers so far -- one of the organisers was at the gate (the only gate) at Dunedin airport to pick up speakers, but he gladly took us ruffian attendees into town, saving us all a few bucks in shuttle bus fairs. It was a nice guided tour in, as well, showing us all of the useful sights (like the pubs, 24 hour minimart, and eateries). He also dropped us off at the registration desk, so I got my conference schwag already (see my separate review of the schwag). Dinner involved walking into the octagon (a loop street with, unsurprisingly, 8 sides) and finding a place that serves you raw steak and a hot rock. It's like a portable BBQ construction kit. Amazingly tasty. We're going back tomorrow night for more of the same, as it's so tasty and fun -- you are legitimately allowed, even encouraged to play with your food. I also got a "barmate" (don't mispronounce that in front of your significant other) -- a yard-high glass cylinder with a tap at the bottom, filled with your choice of beer. Much merriment ensued amongst the assembled geeks, as we all plied ourselves with Speight's Gold Ale. I think it's about 8-10 pints worth of beer all up. Value. No Internet access yet, as they're still working out the kinks with the special conference network. I hope it's all up and running by tomorrow morning -- my mail queue is starting to seriously bulge with all of this outgoing mail.

20 January 2006

Dan Weber: DWeb's guide to cleaning shoes

Today I was running out the door chasing the dog. The dog saw a person walking on the street and ran up to see her. I managed to get a hold on the dog and bring her home, but on the way back, theres this mini slope. Of course I'm bringing dog back inside and didn't think of this and get my sneakers covered in mud as there is a big ditch at the bottom. :(

So here's my instructions on washing shoes:

- First toss them in the washing machine on a low water level setting. Add in a bit of laundry detergent to help get the stink and mud out.
- Next take them out and stuff them with newspaper. Don't let the chunks of newspaper be too thick or it will not absorb as well. Leave newspaper in both shoes for 30-45 minutes.
- Now its time to let them air dry. The best approach is to put a fan in front of them. The more power the faster they dry. Right where I live right now, its the middle of a heat wave. So I realized the big air conditioning fan and motor outside is going around 24/7 and with huge amounts of hot air. If you take the latter approach, the shoes are usually dry with 1.5-2 hours, especially since it runs at least 10000 rpm. Otherwise the in house approach may take 4-6 hours. Also note that the air blown out from under your refrigerator is also good.

So in under 3 hours you can have your shoes squeaky clean with a nice smell, and be dry.

19 January 2006

David Pashley: I had an epiphany in the shower

About a year ago I had a problem with udev crashing during startup on my powerpc box. Somehow I managed to muddle on with this problem, probably by not rebooting the box. :) Last summer I had to reoot it again so I did a bit more research and discovered that udev was trying to looking up the nvram group, not finding it in /etc/group and then trying ldap, which, of course, failed because we have no networking yet. Adding the group fixed the bug and filed a bug against udev saying that udev should add any groups it used. Carrying out further debugging revealed that the crash was during nss_wins. The general order of events were:
  1. udev looks up a user or group.
  2. Group doesn't exist in compat.
  3. Lookup in ldap.
  4. Ldap attempts to resolve the name of the ldap server or client. (server is 127.0.0.1 so confused about this point.)
  5. Network and/or dns server isn't up so dns fails fails.
  6. Attempts to look up host in wins.
  7. udevstart crashes.
I didn't have time to debug this any further and proceeded to forget the problem, but last night my fileserver started having the same problem. Removing ldap from passwd, group and shadow resolved the udev problem, but then I didn't have any users. Late last night I booted without ldap and then changed nsswitch.conf to add ldap, and went to bed. This morning I had an epiphany in the shower. Not only did I remember what the bug was, but also a sensible workaround. The problem wasn't with the passwd et al lines, but the hosts line. I did have
hosts: files dns mdns wins
The solution is to return if dns isn't available and changed the line to:
hosts: files dns [UNAVAIL=return] mdns wins
Now all I need to do is to debug nss_wins and get to the bottom of the crash. It might be worth filing a bug against nss_ldap for trying to do a lookup against an ip address.

10 January 2006

Adam Rosi-Kessel: Humans Fail Turing Test

I use a relatively unsophisticated but highly effective filter for blog comment spam. The system consists of several hundred keywords (mostly spam-related domain names which would never appear in a genuine comment), and a Turing test. The Turing test is a box at the bottom of the comment form, that says: “Do not put anything in this box if you are a human.” The Turing test catches between 10-25 spam comments per day; the keyword filter about the same. Every week or two, however, a human comes along, and fails the Turing test and fills in the “don’t fill in this box” box. I’m not quite sure what to do about that. Maybe the human thinks they are not actually human? More likely they just don’t read the text next to the box, although it is fairly prominent. Unfortunately, this seems to be a general phenomenon on the web. Many people have a tendency not to read text on webpages. For example, I’ve gotten a lot of questions along the lines of “How do I access my address book in SquirrelMail?” The answer, of course, is to click on “Addresses.” Similary questions arise with respect to my photo album software salonify — “how do I view a slide show of images?” (A: Click on “Slide Show.”) My hope is that the next generation is better able to process web content, but I’m not sure that hope is well founded. Getting back to the blog comment spam issue, it’s interesting to observe what sorts of topics appear most frequently in comment spams. Over the past several months, pornographic links referencing transsexuals seem to outnumber other topics. I wonder: do the spammers have a scientific method to their marketing?

9 January 2006

Paul van Tilburg: Exploring By Bike

To complement my survival gear I bought a bike last Saturday. I have already noticed it gives me more freedom than just using public transport here and I just can not live without cycling. In the heart of Edinburgh, in the catacombs of the Waverly station one can find the Bike Station. This is a place kept by volunteers that takes in and recycles bikes, patches them up and resells them again. On certain days you can also take your bike there and use their tools and assistance to fix it. I find this and the way they are promoting cycling in the area a great initiative (and believe me, it is really necessary)! So I bought the cheapest second-hand bike they had: a 15-gear mountain bike without any features. This is of course because I will only be here for two months and it works just fine. My new 15-gear mountain bike There is a route from the city centre almost straight to the campus alongside the Union Canal (10km long route). It brings you through different kinds of nature but also different looking parts of Edinburgh.
The Slateford Aqueduct
Half-way on the trip back I cycled over the Slateford Aqueduct which is really narrow. It’s almost impossible for two people with bikes to pass one and another when going in opposite directions. Besides that, the aqueduct is quite long, high and gives a nice view over Slateford. On Sunday I took the scenic route from the campus to Balerno and then to the city centre. There I tried to reach Arthur’s Seat in Hollyrood Park, but I took a wrong turn and had no energy to go all the way down and up again. So I turned around and cycled back using the Union Canal route. All and all it was a nice trip, about 40km long and I still can feel my bottom and muscles after 6 weeks of no cycling at all. Pictures of this trip are available on my Edinburgh album (photo 101 until 121). Technical On a more technical note, we have been moving from CVS to Subversion at work. This is nice because it allows us to do a good repository restructuring. Also did it give me the opportunity to try out SVK, which I’ve found to work well. It allows me to stay in the familiar CVS/Subversion world while not having to dive into whole new systems or command interfaces for which, at the moment, I do not have the time nor feel the need. I hope I can help Florian Ragwitz with svk-buildpackage, because I now still need a Subversion check-out next to my SVK local branch just to build packages. By means of this combination I’ve just been able to build and upload 5 new Ruby libraries (under Debian/Ruby Extras’ team maintenance): libbreakpoint-ruby, libcairo-ruby, libcmd-ruby (oops, it seems I’ve forgotten to file the ITP?), libdaemonize-ruby and libsvg-ruby.

8 January 2006

Moray Allan

Some of the books I read in 2005:

Bruce Feiler, Walking the Bible: A Journey by Land Through the Five Books of Moses
Georges Perec, Species of Spaces and other pieces
Bob McCulloch, My Fare City: A Taxi Driver's Guide to Edinburgh
Origen, On First Principles (translated by G. W. Butterworth)
Sin-leqi-unninni, Gilgamesh: a new English version by Stephen Mitchell
Vladimir Nabokov, Pale Fire
Richard Fletcher, The Conversion of Europe: from paganism to Christianity 371–1386 AD
M. A. Screech, Laughter at the Foot of the Cross
Oliver Sacks, The Man Who Mistook His Wife for a Hat
Otto Friedrich, The Kingdom of Auschwitz
Nicholas Barton, The Lost Rivers of London: a study of their effects upon London and Londoners, and the effects of London and Londoners upon them
Anton Chekhov, The Steppe and Other Stories (translated by Ronald Hingley)
George Orwell, Down and Out in Paris and London
Otto F. A. Meinardus, Coptic Saints and Pilgrimages
Aleksandr Solzhenitsyn, One Day in the Life of Ivan Denisovich
R.W.B. Lewis, Dante: a life
Miles Glendinning and Aonghus MacKechnie, Scottish Architecture
Arturo P rez-Reverte, The Flanders Panel
John Chadwick, The Decipherment of Linear B (second edition)
Bart D. Ehrman, Lost Christianities: the battles for Scripture and the faiths we never knew
Plato, Timaeus and Critias (translated by Desmond Lee)
Albert Camus, The Outsider
Tim Wallace-Murphy and Marilyn Hopkins, Rosslyn: guardian of the secrets of the Holy Grail
Ginevra Lovatelli, Secret Rome
Dauvit Brown and Thomas Owen Clancy (editors), Spes Scotorum: Hope of Scots: Saint Columba, Iona and Scotland
Plato, Phaedrus and Letters VII and VIII (translated by Walter Hamilton)
William Chester Jordan, Europe in the High Middle Ages (The Penguin History of Europe)
J. M. Coetzee, Disgrace
Giovanni Boccaccio, Famous Women (translated by Virginia Brown)
Kazuo Ishiguro, An Artist of the Floating World
Georges Perec, A Void (translated by Gilbert Adair)
Saul Bellow, The Victim
Franz Kafka, The Trial
George Orwell, Nineteen Eighty-Four
J. K. Rowling, Harry Potter and the Half-Blood Prince
Francesco Colonna, Hypnerotomachia Poliphili: The Strife of Love in a Dream (translated by Joscelyn Godwin)
Italo Calvino, Our Ancestors (The Cloven Viscount; Baron in the Trees; The Non-Existent Knight) (translated by Archibald Colquhoun)
Eusebius, The History of the Church (translated by G. A. Williamson)
Flynt Leverett, Inheriting Syria: Bashar's trial by fire
Paul Auster, The New York Trilogy (City of Glass; Ghosts; The Locked Room)

Andrew Pollock: [life/americania] On bootstrapping oneself in the US

So I've been in the US for just over six weeks now, and I thought I'd reflect on the trials and tribulations of bootstrapping oneself in a foreign country. The Social Security Number is the primary key from hell I already had a fair idea of the importance of obtaining a Social Security Number (SSN). So much so, that after dumping our luggage at our temporary accommodation, the Social Security Administration office was the first place Michael and I went to, so we could lodge applications. We subsequently learned from another Australian who was about two weeks ahead of us, that you're apparently supposed to wait ten working days before lodging the application, to allow your immigration records to percolate through the bureaucracy that is the US Government. Our applications were duly accepted without any mention of waiting a bit, but we were sent away with a letter and a tracking number, saying that the SSA had to verify our existence with Immigration (this is despite the fact that we're standing in front of them with a passport with an I-94 stapled in it) and that it would take up to four weeks. So it's been six weeks, and still no sign of an SSN. Enquiries with the office are met with the same response - waiting on information back from Immigration. Apparently it can take up to three months. It's a real shame you can't start the application process when your visa is granted or something, as in order to apply, you need to quote your "alien registration number" (I still chuckle at how the US Government refers to me as an "alien" in all their paperwork), which is the number on your I-94, which you only get when you enter the country. So, whilst the SSN application remains pending, I cannot be paid, I cannot have my health insurance paperwork lodged by my employer, and whilst I'll be covered for health insurance retrospectively, I'm not technically covered right now, if I were to require medical treatment. Going back to how the SSN is the primary key of All Things... Next step is to open a bank account. We chose Citibank, because I've been told it's slightly easier to import money back into Australia with them. Fortunately we were able to open an account sans SSN, but it's called an "NRA account" (NRA standing for Non-resident Alien). We were told that we were only eligible for an ATM card until I had an SSN, yet they mailed me out a debit card about a week after we opened the account, and happily ordered one for Sarah, and a cheque book when we asked after opening the account. About the only thing it seems we can't do at the moment is transfer money back to Australia. No big deal, it's all coming the other way until I can get paid... Driver's licence requires an SSN ideally, so that's out of the question for the time being... Electricity, telephone and cable were all able to be provisioned with an SSN, although I think for credit-rating purposes, again, it is the primary key. We had to pay a deposit for the electricity, which is fair enough. The lady I spoke to on the phone when I got it connected said that they just treated us aliens like teenagers straight out of home with no credit history. I don't have a problem with that. It's just a shame that you can't import your credit history. Getting a cell phone account appears to be nigh on impossible with an SSN though. It was a battle just to get a prepaid SIM card for Sarah's phone, and this makes a great story of how much hoop-jumping is required. We walked up to a Cingular stand in a shopping mall to see what we could and couldn't do. I explained our situation (lack of SSN, lack of credit history, etc etc) to the sales droid, and he assured us it wasn't a problem to get a prepaid SIM card. He proceeded to take about 30 minutes to organise the SIM card. I watched as he entered a dummy SSN into the computer, and used his own driver's licence number. He was clearly battling the computer system to be able to do it. When we got home, and Sarah called up to try and put some credit on the phone with our Australian Visa card, she was told they only accepted credit cards with a US billing address. (So much for Visa being accepted worldwide). So we headed off again to Safeway to purchase a prepaid Mastercard. Funnily enough, when Sarah called up to activate that, she was initially asked for an SSN, so we almost had a dependency loop that we couldn't break, just to get a US cell phone. Fortunately they could cope with no SSN, so she successfully ended up with a prepaid Mastercard, with a US billing address, so she could put credit on her prepaid SIM. From what I can work out, a lot of the places that do request the SSN seem to using the last four digits as an authenticator, much like everyone just uses name and date of birth back in Australia, so I'm guessing for these organisations, I could probably just quote any old number that fit the pattern and they'd be happy. Just so long as they don't go trying to run a credit check against it... Foreign credit cards As I said earlier, a credit card with a non-US billing address is fine for most face-to-face purchases, but an amazing array of mostly telephone transactions will not accept them. Most notable was trying to add credit to a calling card for making international telephone calls. Couldn't be done. So it meant I had to forego any discounts or bonuses for topping up, and buy a whole new calling card. Car insurance and registration I'm not sure how this is going to go yet. Our Prius is supposed to be available around the 18th of January. I'm hoping I'll have my SSN by then, otherwise we'll have to import a heap of money to pay for it. I'm sure you can get insurance and own a car without an SSN, because you hear of people who do driving holidays across the US, buying a car on one coast, driving it cross-country, and then selling it. It might be more expensive, and I again, you can't import your driving/insurance history, so you have to start off at the bottom of the ladder again... In summary, I think you need to have relatively deep pockets to bootstrap yourself over here. You need to be able to function without getting paid for up to two or three months, and you need to understand that credit-wise and insurance-wise, you're going to be back at square-one again, irrespective of how good you might have been in your home country. The sooner you come to terms with these, and appreciate that you are moving to a foreign country, the sooner you can get on with enjoying the experience.

Andrew Pollock: [tech] Google Reader saves my sanity

I've been relying on just Planet for reading blogs. I mainly read just Planet Debian and Linux Linux Australia, with a shortlist of other friends' blogs that used to be read via my own Planet instance, which is currently in a shipping container somewhere. This of course sucks in two ways: if you don't keep up, articles fall off the bottom and are gone forever, and you have to mentally keep track of what you've already read. So the next choice is a feed-reader like Liferea, but this then sucks in different ways: it's tied to the computer you run it on, and posts that have been previously read often seem to come back as new. I get this every time I refresh Planet Linux Australia. Drives me mad. So what I really want is a way of being able to centrally store what I've read, regardless of where I am, and what computer I'm using. Enter Google Reader. It has a nice clean interface, it's Ajaxed up the wazoo, and Just Workstm. My only (minor) beefs are that it doesn't seem to allow you to mark posts as read or unread, and that it always wants to have the current article second from the top in the list. Other than that, the UI is very clean and simple (and even uses vi keys). Added bonus is that if any other user is already subscribed to the feed, you get all the historical articles for free, which in the case of the Planets, goes back a lot further than the feed currently provides. Ideally I'd like something like this, that I can run on my own server, because I like keeping everything in the family. In the meantime, this is a suitable alternative. Getting all the back-articles is a bonus well worth it. Full disclosure: I work for Google, but that's what's making me look for a more efficient method to read blogs.

Andrew Pollock: [life/americania] Three weeks

I've been so busy, I haven't had time to blog. Rather than putting it off any longer, I'll just dump what I can remember. Last Wednesday, Sarah arrived after her holiday in Singapore, and from all accounts, had a great time. Photos as well. Sticking with the whirlwind theme, the next day, we had a "building warming" party at work for the new building we'd moved into the week before Michael and I started. The next night we had the work Christmas party, which blew the socks off any work Christmas party I'd ever been to before, and then on Saturday night we went to a party in San Francisco that we'd been invited to. On a life in general front, I'm still waiting for a Social Security number. The lack of one makes life a bit difficult for a lot of things. It also turns out that Sarah's work permit will take about 90 days to approve, so she's going to be a lady of leisure for the next few months. I've finally been issued with a work mobile phone (or "cell phone" as they call them), and so can stop roaming and paying through the nose for the privilege. We've found somewhere to live. We take possession of a 2 bedroom townhouse (split-level) in a complex in Mountain View that is 3 miles from work on the 18th. The rent is $1725 a month, which is a bit better than we were expecting. The complex we're renting in does have shared laundries, which we'd not too keen on before getting over here, but they're quite modern and secure, and there's a laundry block close to our townhouse, so hopefully it won't be too bad. The whole place had been renovated about 5 years ago, so it's all in good condition. We could have rented a 3 bedroom apartment (single level) in the same complex for about $125 a month more, but we're trying to actually make some money while we're over here... Driving on the other side of the road becomes fairly "normal" after about a week of doing it regularly. Sarah's adapted fine. Lane placement is the hardest thing, because your body's used to being in a certain spot on the road, and it's all different sitting on the other side of the car. We've managed to open a rudimentary bank account, even with my lack of Social Security number. Unfortunately I can't get paid until I have an SSN. Upside of that is that if it doesn't happen until next year, I presumably won't have to worry about income tax for this US financial year. Downside is kind of obvious... By far one of the stranger things of everyday life here is the lighting situation in the average residence. Lamps are all the rage, to the point that light switches don't exist in some rooms (notably bedrooms). Take where we're currently living for example. There's a light switch at the bottom of the stairs, there's one at the top. There's a bank of four in the living room, two of which control lights in the kitchen, and one the hallway. The last one controls a lamp in the corner of the living room, which is connected to a power socket (or power point as we'd call it). The bedroom with the attached bathroom (en suite) has two bedside lamps, and that is the sole source of light. The bathroom attached has light switches, and the walk-in robe has a light switch. It's so weird. So walking into a darkened bedroom involves walking all the way in, and fumbling around with a lamp. It's often easier to turn on the light in the wardrobe so you can see what you're doing first. I can't think of any reason for it, except tradition. It's not like they're avoiding wiring the walls or the ceiling, because it's done partially already. The bedroom has a ceiling fan, but where in Australia, there'd be a knob on the wall near the light switch to control it, it has a little chain you yank on. To add to the strangeness, there are two switches on the wall, one of which seems to allow you to turn off the ceiling fan if it's already been switched on by pulling the chain. The townhouse we're renting has a similar lamp dependency, so we're going to be making a trip to Ikea for some lamps it would seem. That's about everything I can recollect right now... Oh, I should point out that I'm really loving it over here.

7 January 2006

Wouter Verhelst: FreeBSD? Nope.

On my laptop's hard disk, I have this small secondary partition that I use to fool around with. It's had installations of all sorts of things, including Debian woody (back when that was still stable), MacOS X (which came with the thing), ubuntu, and (currently) Gentoo. The motto being that you can't love your own system (in my case, Debian Unstable) unless you know what other systems look like. Since I'd gotten tired of Gentoo by now, I wanted to try something else. As $SUBJECT probably tells you, that something else was FreeBSD for PowerPC this time. Only after booting I found out that my keyboard doesn't work. As it apparently is documented. Well, that's it, then. No FreeBSD for me. Let's see what NetBSD looks like.

5 January 2006

Gunnar Wolf: Re: Tabs

Matt: Please don't forget you are talking about the language with the "there should be only one way to do it" motto, where you have to "program the way Guido indented it". I also feel much more at home where I can play with the way my program works and looks like. I like whitespace to be irrelevant - Yes, Python is a nice beast alltogether, but you cannot expect much space for personal preferences once you understand how it was designed. And yes, as a Perl guy I often hate the style some of the modules I maintain are written in, but then again... It's the most comfortable style for the main upstream author, the person who will do most work with the beast!
...But anyway... Emacs knows best. I just press tab and it works magically, either becoming a set of spaces or becoming a proper tab. And as long as other people understand what I wrote (which can become messy if some lines have supposedly eight-spaces-tabs and some are made up just of eight spaces), and specially the compiler doesn't barf at me, I'm OK with it.
Using a decent editor helps you a lot when writing Python, YAML or such things..

2 January 2006

David Welton: Computer Books, Hecl, Skype

Henri Yandell comments on Addison Wesley being prominent in his book list. I noticed the same thing myself recently (my list is on this page, towards the bottom: http://www.dedasys.com/freesoftware). Perhaps the surpise is that O'Reilly is less prominent than one might think given their high visibility in the portion of the tech world that I deal with. O'Reilly, however, tends more towards documenting current technology well rather than having many books that are timeless classics. I hope they keep focusing on putting out good books that do at least that rather than trying to create their own trends like "Web 2.0" (bleagh!). In any case, we'll have to wait a while to see if any of their books stand the test of time - a lot of the Addison Wesley and Prentice Hall books are from ten, fifteen, years ago or more (The C Programming Language, Knuth's books, Design Patterns, etc...). Hecl I'm currently working on making it very easy to write and create Hecl applications for J2ME. I'm pleased with how things are going from the community point of view as well - a couple of people have show interest in using Hecl commercially, and I've been asked to write an article about it for a European Linux/software magazine, which is something I'd started doing anyway... Skype My parents got around to installing Skype and buying a microphone. Free voice calls from Italy to Oregon! The quality is really good, although there are some echo issues that probably come from my use of a cheap microphone. It sort of bugs me to buy into the network effects of a proprietary system, but on the other hand, anything that keeps my money out of the hands of Telecom Italia makes me happy.

Andrew Pollock: [life/americania] On bootstrapping oneself in the US

So I've been in the US for just over six weeks now, and I thought I'd reflect on the trials and tribulations of bootstrapping oneself in a foreign country. The Social Security Number is the primary key from hell I already had a fair idea of the importance of obtaining a Social Security Number (SSN). So much so, that after dumping our luggage at our temporary accommodation, the Social Security Administration office was the first place Michael and I went to, so we could lodge applications. We subsequently learned from another Australian who was about two weeks ahead of us, that you're apparently supposed to wait ten working days before lodging the application, to allow your immigration records to percolate through the bureaucracy that is the US Government. Our applications were duly accepted without any mention of waiting a bit, but we were sent away with a letter and a tracking number, saying that the SSA had to verify our existence with Immigration (this is despite the fact that we're standing in front of them with a passport with an I-94 stapled in it) and that it would take up to four weeks. So it's been six weeks, and still no sign of an SSN. Enquiries with the office are met with the same response - waiting on information back from Immigration. Apparently it can take up to three months. It's a real shame you can't start the application process when your visa is granted or something, as in order to apply, you need to quote your "alien registration number" (I still chuckle at how the US Government refers to me as an "alien" in all their paperwork), which is the number on your I-94, which you only get when you enter the country. So, whilst the SSN application remains pending, I cannot be paid, I cannot have my health insurance paperwork lodged by my employer, and whilst I'll be covered for health insurance retrospectively, I'm not technically covered right now, if I were to require medical treatment. Going back to how the SSN is the primary key of All Things... Next step is to open a bank account. We chose Citibank, because I've been told it's slightly easier to import money back into Australia with them. Fortunately we were able to open an account sans SSN, but it's called an "NRA account" (NRA standing for Non-resident Alien). We were told that we were only eligible for an ATM card until I had an SSN, yet they mailed me out a debit card about a week after we opened the account, and happily ordered one for Sarah, and a cheque book when we asked after opening the account. About the only thing it seems we can't do at the moment is transfer money back to Australia. No big deal, it's all coming the other way until I can get paid... Driver's licence requires an SSN ideally, so that's out of the question for the time being... Electricity, telephone and cable were all able to be provisioned with an SSN, although I think for credit-rating purposes, again, it is the primary key. We had to pay a deposit for the electricity, which is fair enough. The lady I spoke to on the phone when I got it connected said that they just treated us aliens like teenagers straight out of home with no credit history. I don't have a problem with that. It's just a shame that you can't import your credit history. Getting a cell phone account appears to be nigh on impossible with an SSN though. It was a battle just to get a prepaid SIM card for Sarah's phone, and this makes a great story of how much hoop-jumping is required. We walked up to a Cingular stand in a shopping mall to see what we could and couldn't do. I explained our situation (lack of SSN, lack of credit history, etc etc) to the sales droid, and he assured us it wasn't a problem to get a prepaid SIM card. He proceeded to take about 30 minutes to organise the SIM card. I watched as he entered a dummy SSN into the computer, and used his own driver's licence number. He was clearly battling the computer system to be able to do it. When we got home, and Sarah called up to try and put some credit on the phone with our Australian Visa card, she was told they only accepted credit cards with a US billing address. (So much for Visa being accepted worldwide). So we headed off again to Safeway to purchase a prepaid Mastercard. Funnily enough, when Sarah called up to activate that, she was initially asked for an SSN, so we almost had a dependency loop that we couldn't break, just to get a US cell phone. Fortunately they could cope with no SSN, so she successfully ended up with a prepaid Mastercard, with a US billing address, so she could put credit on her prepaid SIM. From what I can work out, a lot of the places that do request the SSN seem to using the last four digits as an authenticator, much like everyone just uses name and date of birth back in Australia, so I'm guessing for these organisations, I could probably just quote any old number that fit the pattern and they'd be happy. Just so long as they don't go trying to run a credit check against it... Foreign credit cards As I said earlier, a credit card with a non-US billing address is fine for most face-to-face purchases, but an amazing array of mostly telephone transactions will not accept them. Most notable was trying to add credit to a calling card for making international telephone calls. Couldn't be done. So it meant I had to forego any discounts or bonuses for topping up, and buy a whole new calling card. Car insurance and registration I'm not sure how this is going to go yet. Our Prius is supposed to be available around the 18th of January. I'm hoping I'll have my SSN by then, otherwise we'll have to import a heap of money to pay for it. I'm sure you can get insurance and own a car without an SSN, because you hear of people who do driving holidays across the US, buying a car on one coast, driving it cross-country, and then selling it. It might be more expensive, and I again, you can't import your driving/insurance history, so you have to start off at the bottom of the ladder again... In summary, I think you need to have relatively deep pockets to bootstrap yourself over here. You need to be able to function without getting paid for up to two or three months, and you need to understand that credit-wise and insurance-wise, you're going to be back at square-one again, irrespective of how good you might have been in your home country. The sooner you come to terms with these, and appreciate that you are moving to a foreign country, the sooner you can get on with enjoying the experience.

Next.

Previous.