Sunday, May 10, 2009

freaking out chinese people in doha

At the moment i'm sitting in Doha international minding my p's and q's. But i really want to do is freak out a chinese person. When i say freak them, i mean butt in to their conversation, and add something witty. Yes folks, thats how i get my kicks.

Of course first and foremost this is a technology blog. So lets chop up game. The in flight entertainment was pretty awesome, i watched grand torino, and the valkyrie, played a little tetris. But the most awesome thing, (if it had worked) live TV! Nothing fancy just news channels. I guess it's too much to ask for skysports @ 40k in 2009.

Also while at heathrow, i checked out the HP mininote 1k. I've wanted a netbook for a while but i've been hoping pingguo (apple) would service my mobile needs. Oh, just to say again, while my ipod touch is awesome for movies and web browsing(especially compared to this e61), when it comes to blogging, its pants.

i love travelling, don't get me wrong, but would love it even more if i could be playing FM right now ... Dalrymple wins the cup ...

Friday, May 08, 2009

It's over!

Quick post to mention that i've finished my degree! more importantly i that i can get back to doing what i love, writing code (and playing FM).

Heres some extremely basic python for transforming a simple list of CRLF separated values into a sql statement.



def main():
fh = open('list.txt')

sql = open('sqlDump.txt','w')

i = 0
for line in fh:
statement = "INSERT INTO table (name) VALUES ('%s');\r" % line.rstrip()

sql.write( statement )

fh.close()
sql.close()

if __name__ == '__main__':
main()


Nothing special.

Off to china on sunday!!
再见