In July, 2009 we wrote…
Wednesday, 8 July 2009
Django Related And Inherited Name Attribute Clash
Bare with me it's a long story...
When deleting an object I was getting this error from Django:
'RelatedManager' object has no attribute '_collect_sub_objects'
The reason was an attribute name clash on a base class. Finding the reason took some time so here's the low down in case any one else runs in to this.
In one app I had a model Company:
class Company(models.Model):
name = models.CharField(max_length=1024)
and in another app I had a model AdClient:
class AdClient(models.Model):
company = models.ForeignKey(Company, related_name='client')
Then some time later I wrote a new app inheriting from Company as:
class Client(Company): name =…
Tags:
djangoWednesday, 8 July 2009
IE6 Go Home

IE6 is the bane of web developers everywhere. Greatly illustrated as the drunk-loser-relative in the above image from John Martz. Flickr has a larger version. There is hope on the horizon: MS is installing IE8 by default via Windoze Update. So the worst should be behind us in browser land at least. Email clients are another story.
Tuesday, 7 July 2009
How To Be Happy In Business

From Bud Caddell, "How to be Happy in Business" is a Venn Diagram showing how to get there from here. Learn to say no...
Monday, 6 July 2009
Pavements For Pedestrians: Shanxi Fuxing

Why not park your large piece of industrial earth moving equipment right in front of the pedestrian crossing and for extra points block off the ramp so that anyone on wheels is inconvenienced. This scoop was parked here for several days. The driver was sleeping in the cab.
Friday, 3 July 2009
iPhone HP Calculators

HP has released software emulators for their classic calcs on the iPhone. Go retro!
In other news: the iPhone is still not available in China (largest mobile market in the World).
Tags:
iphoneThursday, 2 July 2009
US Movie In China Money Making Shock
In a country in which every movie can be watched essentially for free it may seem making money from movies is impossible. It's not. As this report about Transformers opening weekend from the LA Times proves.
It was the No. 1 movie in all 58 countries where it opened, with particularly impressive ticket sales in Russia, Australia, South Korea and China, where it opened to $21.9 million, the biggest-ever debut for an English-language movie.
Wednesday, 1 July 2009
Pavements For Pedestrians: Fuxing Jiashan

Nope. No way through there.
I do a lot of walking around Shanghai. I want to walk on the pavement but frequently it's impossible because bikes/boxes/scaffolding/cars/tables/chairs...
About
I'm the chief geek of yaean design based in Shanghai.
Tags
- 3D
- ajax
- art
- audio
- bbc
- books
- browsers
- business
- cars
- china
- chinglish
- christmas
- cms
- crowdsourcing
- design
- django
- education
- food
- football
- games
- generators
- gentoo
- guitars
- health
- history
- hongkong
- html5
- humans
- humour
- inspiration
- internet
- iphone
- javascript
- kids
- lego
- life
- linux
- mac
- magazines
- maps
- maths
- media
- mobile
- movies
- music
- mysql
- nasa
- nature
- news
- p4p
- parenthood
- photography
- physics
- poetry
- postgresql
- privacy
- programming
- python
- radio
- research
- restaurants
- robots
- security
- shanghai
- solar
- space
- standards
- stories
- superpowers
- tagclouds
- taste
- tech
- travel
- type
- ui
- uk
- ux
- video
- visualisation
- web
- windows
- word
- writing
- yajogo