- Apple provides method for Mac users to create custom ringtones on their iPhone. (Also: a tutorial)
- A website allowing the reality-TV generation to
exposepublicise themselves on the web comes second to the iPhone in the 2007 Google Zeitgeist. (Facebook was third.) - Google launches a wikipedia competitor.
- Despite having a year to ramp up production, Nintendo still cannot meet demand for the Wii.
Author: Nathan Dimmock
import antigravity
xkcd on Python. (It’s a pity the title is hidden unless you mouse-over the graphic.)
A Few Days in Eboracum
This week I spent a pleasant few days in the Roman City of Eboracum, (Jorvik to the Vikings and York to its present inhabitants). Modern day York is famous for its well preserved Viking heritage and religious eminence (being the seat of the second most important Bishop in the land), but I also found it to be a charming, compact and well organised city centre with a superb range of shopping all within easy walking distance of its centre. [Photos.]
Sadly we were only able to view the York Minster from the outside due to closure for a degree ceremony (pesky students having precedence over tourists—disgraceful!!!!) but the Old Town Walls provided some beautiful views. The Jorvik Viking Centre was thankfully not swamped with small children (the queue is apparently two hours during school holidays) and despite its main attraction being a ride through a re-creation of Jorvik c.875AD, it was informative and delightfully lacking in gimmicks.
With a couple of hours to kill before catching a train, the National Railway Museum seemed worth a look since it was the very exceptional price of “free” and surprisingly it turned out to be rather good: the exhibition on how rail changed society will interest social historians while those with a mechanical bent will be impressed by the gleaming machines that broke land speed records in their day.
Word of the Day: wiki-fact
wiki-fact (noun): Something as portrayed as fact by someone who’s sole source is the online encyclopædia, wikipedia. Earliest known usage: Jorge Cham during a lecture at the University of Cambridge, October 2007. The relationship between the variables p (probability that a wiki-fact is true), and b (the number of Internet users who believe the wiki-fact to be true) is an area of open research.
Aside: Jorge Cham is the creator and author of the popular web comic, “Piled Higher and Deeper“, sometimes described as “The Dilbert of Academia”. His talk in Cambridge was very funny although almost entirely based on the material in his comic which was a bit disappointing since I was hoping to hear more about the “inside story” on his characters. Two things he did let slip: the character of Cecilia is based on a former girlfriend and the inspiration for “Nameless Guy” is Jorge himself. After the talk Jorge signed books (which I’ve never seen on sale in this country so I was very pleased to be able to buy one) but sadly I had to rush off so wasn’t able to wait in the large queue to have it signed.
Cucumber sandwiches, dear?
The Rough Guide recommends afternoon tea as one of the essential London experiences and The Athenaeum Hotel is a lovely venue. After selecting our choice of tea leaves from the extensive menu, we were served posh finger sandwiches and then warm scones with gorgeous jam. After the scones it was time to select some cake from the trolley and then in case we weren’t already full, there were crumpets and tea cakes to finish. Definitely recommended.
Mad Kiwis
IIRC, Speights was the one decent local brew in NZ so while shipping an entire pub to London sounds like a mad idea, at least they sent us their best beer.
Hope it travels better than their rugby players…
Eating Out in Budapest
- Café Gerbeaud: This Grand European café is the perfect place to watch the world go by while enjoying mouth-wateringly delicious cake and excellent coffee.
- Menza: Sublime traditional Hungarian food is served in a popular restaurant with chic retro decor. The house wine is recommended too.
- Rézkakas, 1053 Budapest, Veres Paine u.3: Traditional setting with live “gypsy” band. Classy service and excellent traditional Hungarian food and wine. Lots of locals dining which is always a good sign.
- Vapiano: Traditional Hungarian food is a very balanced diet of protein and carbohydrate, so if you’re feeling like something a bit different this “pasta and pizza” place is superb. You order your food at a counter where they cook it fresh in front of you. Fantastic salads make wonderful complements to your main, or by themselves as a light meal.
- Tom George, V. Október 6 utca 8: A wide variety of “international” food is on offer, and the steak I had was melt-in-the-mouth good.
The bizarre outputs of data mining
My weekly email from amazon.co.uk said:
We recommend: The God Delusion
by Richard Dawkins
http://www.amazon.co.uk/dp/055277331X/ref=pe_ar_x5RRP: £8.99
Price: £3.94
You Save: £5.05 (56%)Recommended because you purchased or rated:
* Kensington Slim Microsaver Cable
A “Kensington Slim Microsaver Cable” is a laptop accessory….
Eating Out in London
Breakfast, Brunch and Light Lunch
- Fuzzy’s Grub, 96 Tooley St: This café’s speciality is a large flat bread roll/bap filled with succulent roast meat, roast potato, yorkshire pudding and vegetables, complemented with a delicious red-onion marmalade. Also does full English breakfast and impressive looking salads.
- The Greencoat Boy, Artillery Row: Their “Big Ben” burger is perfect hangover food.
- C’est Ici, nr Baron’s Court Tube: French-style snacks and sandwiches.
More Substantial Meals
- Kazan, 93-94 Wilton Road: Delicious Turkish food served in stylish atmospheric surroundings.
- Tas: Reasonably-priced Turkish restaurant with several branches across London.
- Café Pacifico/La Perla, Covent Garden: Mexican diner occupying two locations on either side of Covent Garden.
- Fabrizio’s, 30 Saint Cross St, Farringdon: Sublime authentic Italian where they make their own bread and pasta on the premises each day.
- Buen Ayre, Broadway Market, E8 4QJ: Awesome Argentine steakhouse; leave your vegetarian friends at home.
Retrofitting Abstraction
We interrupt our regular programming to speak geek.
Recently there’s been a lot of discussion about programming languages at work and Python is receiving a lot of attention for many reasons. I’ve been a big fan of Python for a long time, and the more Perl I see out in the wild, the less I like it: “There’s More Than One Way To Do It” doesn’t scale.
Since it has been two years since I wrote any Python in anger, I am feeling a bit rusty, but this example came to my attention today that reinforced my belief in Python’s coolness. Conventional wisdom is that a programmer should abstract away the implementation from a published API so that are no downstream dependencies to manage if the underlying implementation changes. In a language like Java, this typically means making all object attributes private and providing public accessor methods1.
In a large program this makes sense since setx(value) will perform additional operations such as validation behind the scenes. However, in a small program this involves writing huge amounts of boilerplate code that will have no benefit until the day the program reaches the size and importance where validating a value before setting the attribute becomes a useful. And even if you know in advance that accessor methods are going to be useful, they result in large amounts of unimportant code that future maintainers will need to read and understand.
The Python solution is typically elegant. In the beginning all public attributes are accessed directly: C.x = "foo" is more readable and quicker to type than C.setx("foo"). If you then decide that reading and writing to x needs to be controlled, then you write you accessor methods, define “x” as a property and Python ensures all those instances of C.x are handled using the correct accessor. Here’s an example from docs.python.org.
Class C(object):
def __init__(self): self.__x = None
def getx(self): return self._x
def setx(self, value): self._x = value
def delx(self): del self._x
x = property(getx, setx, delx, "I'm the 'x' property.")
- aka “getters” and “setters” since reading a variable is usually accomplished using
getx()and updating a variable is often calledsetx(value)[↩]
“Free” WiFi near the Thames
Macworld UK says:
River Thames gets free WiFi: “River Thames to get a free WiFi network, two million go online The river Thames is to get a free WiFi network after two companies, namely free-hotspot.com and MeshHopper partnered up to launch what they claim is Europe’s largest free metropolitian WiFi network.
Despite the liberal use of the word ‘free’ in the article, it’s really “15 mins of WiFi usage for every 15-30 second advert you watch”.
In other news, a new coffee shop offering free WiFi has opened up on Tower Bridge Rd, just south of the Bridge but before you cross underneath the railway lines. The address is something like 173 Tower Bridge Road, London SE 1 2AW but Google baulks at plotting that.
Bandipur National Park
Bandipur National Park is about three hours drive south of Bangalore and was recommended to me by some colleagues as being a good two-day break from the hustle and bustle of the city. I arrived around lunchtime and was shown to my cabin which was (as expected) fairly basic, but beautifully decorated. After lunch I had two hours to chill out before starting our safari, and although there were no activities at the resort, it was a quiet and peaceful spot to read, or just take a lazy afternoon nap—perhaps not on the “private terrace” though!
At 4:30pm we set off in a jeep for our pre-dusk safari, seeing lush unspoilt landscapes, spotted deer, huge Gaur, and the principal attraction, elephants.
The next morning was an early 6:30am start for a “trek” into the park. The itinerary had been rather sketchy about what this trek entailed, and it turned out to be quite a length hike up a medium-sized hill—not too difficult but rather more than my breakfast-less body wanted to deal with. The views from the top were almost worth the effort, but our guide then spotted a leopard sunning itself on a rock on the other side of the valley—initially no more than a yellow and black blur even through binoculars, but as we descended the hill, it became quite visible, to the point where when he eventually stood up and sauntered off, his movements were visible to the naked eye. Quite an experience and definitely worth missing breakfast for… Browse all photos.
Return to Bangalore
Clearly my previous month-long business trip to Bangalore cannot have been too psychologically scarring since I was quite happy to volunteer to return for another three week stint. Sadly there has been little excitement to blog about in this trip—having too much work on is hardly thrilling material to write about—and this time I am staying at a different apartment complex that has an on site buttery service which does delicious (and safe!) food removing my most pressing need to venture into Bangalore proper. Very dull, but then I think I did see Bangalore’s highlights on my last visit!
Today, I did take an auto-rickshaw to the office and remembered how exhilarating it is to be in one of these as it nimbly weaves its way in and out of traffic much more efficiently than a car can. Definitely more exciting than dozing in the back of an air-conditioned car trying to make polite conversation with the driver! The open-cab design even means there’s a pleasant (of sorts, there were a lot exhaust fumes on the roads I took today) breeze to keep the passenger cool. I have to say though, while rickshaws are brilliant for shooting around small back streets, or slow moving roads, the dual carriageway that takes me to work has some pretty large traffic (well, the trucks are pretty small by British standards, but comparative to an auto!) that likes to zoom when there’s a clear bit of space, and suddenly only having a bit of thin plastic between you and the other traffic doesn’t feel very safe… Using autos makes every journey an adventure, but I think I will be taking a car again tomorrow. 🙁
Western Australia
When a country gets as much sun as Australia does, it becomes very easy to take gorgeous-looking photographs such as these from our seven day tour of Western Australia. In fact, the sun was so incredibly strong that a lot of the photos were really over exposed and had to be corrected.
While I have previously acclaimed Australia’s beautiful coastal landscape, I remember thinking at the time that the inland scenery was rather hard to describe—the sun blasted continuous scrub of short trees/bushes can hardly be called “pretty”, but there is some eerily attractive about the ostentatious rocky landscape [1][2]. Looking back, I realise I almost certainly also find the views more enjoyable now that I no longer have to deal with that most intense sun beating down on me, or the highly persistent flies.
Something that I remember was very pretty was the intense blue of the sky set against the red of the earth, although at sunset it was the sky that was beautifully red (and in Perth too.)
Finally, the best bit about tour was definitely the people we met and made friends with on our bus. Rosie, not content with all the fish she saw underwater, also decided to make some new animal friends.
Pictures from Sydney
Sydney has many famous beauty spots (photos), but I think my favourite has to Balmoral Beach. Sydney is famous for its beaches, but this one has something the others don’t: an Edwardian Bathing Pavilion which has been converted to a classy café serving excellent coffee and quite possibly the best breakfast in Sydney—and for a city that does breakfast like Sydney does, that takes some doing!
I’m still sorting through the remainder of my photos; more will be posted soon.