July, 2007


27
Jul 07

Remember the symbol for class and id in CSS

I always mix up class and id in CSS. “Is class a dot or a hash?” “Is id a period or a pound?” So early on, I came up with a quick brain trick to help me remember which is which.

For id, the symbol is a # (hash or pound depending on your dialect). For this, I think of an id number, as in “My id is #43368″.

For class I think of the word period, and how in school we used to have a break period in the middle of the day for lunch. I imagine all these little dots sitting at their desks, and the bell going off.. end of class.


19
Jul 07

Bosozoku riding the highways of Japan

My and my friends were going to the beach in Chiba a few weeks ago. Riding along the highway, there was this huge noise as we passed a bunch of bosozoku (Japanese biker gang members) on their tricked out bikes. The bikes have old Japanese flags, big chopper style seats with backs and the silencer removed, so they make a huge clatter as they go.

I took out my camera and shot a few pics of them, and they were all waving back. Then I took a video of one of them doing tricks. Wheelies along the highway, dangerous but fun to look at.


4
Jul 07

What’s the centre of Dublin, London, Tokyo, according to google?

Centre of London according to google mapsI’ve been learning how to code things with google maps today, and came across the google maps api blog. A new feature lets you get mapping results with a preference to a certain country. They encourage you to play with the new service by typing in a country code and city name, which produces a map with a push-pin at the centre of that place. The pin is centred on some strange places though..

Typing in jp (Japan) and Tokyo gives the centre in Ginza, in the NTT building (National telephone company). Typing ie (Ireland) and Dublin puts the pin at what looks like an ordinary residential house in Sussex Road, near Leeson Street. London gives a traffic island just near Parliament square, close to the Westminster tube station.

To try it, just zoom in with the + sign and click the map button.
http://googlemapsapi.blogspot.com/2007/06/v282-set-countryviewport-restrictions.html

Centre of Dublin
Centre of New York

Centre of Tokyo