Wednesday, September 24, 2003

Ha - thanks to the XDA developers forum below I've got the *chance* to upgrade to PocketPC 2003 if I want... I'm not sure though......... The last upgrade basically works - one or two minor problems - but it basically works so I'm quite happy. I might not risk changing it again. It unlocked the XDA fine - which adds about thirty quid to it's value :-)

I've just defined my first working and useful object class in python - an output object that has a built in print method... it sends it's output to the screen *and/or* a file depending on what the user has chosen.......... I'm currently redefining everything I've done so far in terms of objects... various advantages - but my wife doesn't understand a word of it - she's started to call the computer my mistress !!
posted by Mike Foord on Wednesday, September 24, 2003

Friday, September 19, 2003

The XDA ROM Kitchen
The Developers Forum

Just taken a big risk... flashed my XDA ROM with a version by a crew called the 'XDA-developers'. Promises to unlock the phone... take out all the O2 spyware and fill the space with lots of useful programs.

So far so good ! It all looks and feels fine.... the real test of course comes when I set it up with my computer, try and put all the software back on and sync my calender etc. I'd only just got email working with it - so I'll be annoyed if I've messed it all up...s till - gotta live life on the edge :-)
posted by Mike Foord on Friday, September 19, 2003

Wednesday, September 17, 2003

I had a look at objects yesterday and started to get a feel for *how* python does it... still not so sure on *why* it's better than procedural - but as I become clearer on how it works it will all drop into place I'm sure. At last I've arrived at the programming method of choice of the nineties.........

In actual fact 'chapter 9' on classes (python documentation) is a very good introduction to how - with some nice simple examples. As far as I can tell an 'object' (or at least an instance of a class) forms a local 'namespace' with it's own functions (the methods of the object) and it's own local variables.

You define a class - which has a special method called __init__ which is run whenever a new object from that class is created.

You create a new instance of that class by assignment - e.g. if I define a class of objects called Fuzzyman then x= Fuzzyman(arguments) creates a new object called x that is an instance of Fuzzyman.

You then call the methods of Fuzzyman on x like so - x.method(arguments)

and for the functions defined inside the class Fuzzyman - they are always passed x itself as the first argument - which by convention in Python is called self.....

Or something like that.......... so you define a class and create particular instances of that class (objects). Each instance is an encapsulated namespace - like a little local program with data and functions and you can get it to work on itself and pass out data........ cool - except I'm still not really sure on the consequences of all that - and don't even begin to talk to me about inheritance !!

Anyway - I think I'm starting to get there....
posted by Mike Foord on Wednesday, September 17, 2003

Tuesday, September 16, 2003

Yahoo! Groups : atlantis_talk Files

Hurrah - using a script called py2exe I've built my first 'executable' script. One that can be run by someone who doesn't have python installed. Means Atlantis players the universe over can use my awesome tools !!
posted by Mike Foord on Tuesday, September 16, 2003

Monday, September 15, 2003

Apple customer resells iTunes song | CNET
As another bizarre, and possibly irrelevant twist, in the 'digital copyrights' saga a geek manages to transfer ownership of a legally purchased digital music track. He had to overcome technical rather than legal difficulties and actually made a great loss..... but that's geeks for you.....
posted by Mike Foord on Monday, September 15, 2003

File-swapping lawsuits: Are you next? | CNET - CNET explains the 'mo' of the RIAA when suing file traders...... conclusion - realistically it's unlikely to happen to you :-)

posted by Mike Foord on Monday, September 15, 2003

Wednesday, September 03, 2003

The Atlantibots project is going very well and I'm really enjoying programming again. I haven't had time to do the atlantibot website unfortuantely - so if you want to look at the project you'll have to go to the message group (which has the files for download :-)

The flag_checker script is actually now quite a powerful tool for Atlantis players.

I was writing part of it on my new PC last night (AMD 3000 1 gig ram... yeeeehaaa) when the thing slowed to a craaaaaawl...... I'd just installed a DivX codec which came witht hat wretched gator advertising thing...... I'm not connected to the 'net' at home (good job too or my wife would *never* see me :-) so I thought it would be ok. Anyway - python was running *intolerably* slowly so I interrupted the program and had a look at the running tasks....... The python code had been running for only a few seconds... but because of a bug (it kept adding to a list - I'd forgotten to give it an exit from the loop)... and in those few seconds trhe bugger had filled over 500 meg of memory and counting... no wonder everything slowed to a crawl...

Ho hum...
posted by Mike Foord on Wednesday, September 03, 2003