I've noticed recently that I'm always thinking about something. Is this just me? Do other people ever find themselves "just going blank"?
This lead me on to wondering about my brain wearing out. My father suffered from Alzheimers and I wonder if he used to be like me, never seeming to switch off, and his brain wore out.
Something to look forward to anyway, NOT.
Wednesday, 30 January 2008
Friday, 11 January 2008
Browser caching hell
Started to look at Freeswitch which I may be using over the next few months.
Initially decided to try and build it using cygwin (nasty habit that I must get rid off!), but after installing various packages, gave up after some wierd error about 64 bit integers.
So, switched to Visual Studio to build, which I thought would be dead easy. In a way, it was, once I learned a few very basic things about VS, like looking in the 'output' window to see the build progress, then I hit a problem......
Part of the build uses a vbs script to download and uncompress some dependent packages. I have stripped out the relevant code here, which is sort of interesting in itself, as I think it's really meant as an Ajaxy sort of tool:
I must have spent about a whole day investigating this. It was all the more strange because it seemed to work OK on my 'personal' laptop. As I seem to be rambling on, to cut a long story a bit shorter, it turned out to be a caching problem. IE had somehow created a corrupted cached version of the downloaded file and I was always getting the cached copy, instead of a fresh download.
Anyway, luckily it was in a 'downtime' period at work, so no harm done. Back to real work next week.
Initially decided to try and build it using cygwin (nasty habit that I must get rid off!), but after installing various packages, gave up after some wierd error about 64 bit integers.
So, switched to Visual Studio to build, which I thought would be dead easy. In a way, it was, once I learned a few very basic things about VS, like looking in the 'output' window to see the build progress, then I hit a problem......
Part of the build uses a vbs script to download and uncompress some dependent packages. I have stripped out the relevant code here, which is sort of interesting in itself, as I think it's really meant as an Ajaxy sort of tool:
Set xml = CreateObject("Microsoft.XMLHTTP")
Set oStream = CreateObject("Adodb.Stream")
xml.Open "GET",
"http://svn.freeswitch.org/downloads/libs/pthreads-w32-2-7-0-release.tar.gz",
False
xml.Send
Const adTypeBinary = 1
Const adSaveCreateOverWrite = 2
Const adSaveCreateNotExist = 1
oStream.type = adTypeBinary
oStream.open
oStream.write xml.responseBody
oStream.savetofile "pthreads-w32-2-7-0-release.tar.gz", adSaveCreateOverWrite
oStream.close
The code then used 7za.exe to unpack the gz and then unpack the tar file. This seemed to be where the problem started, as the .gz file seemed to be corrupt and I ended up with a file called [Content], instead of a directory structure.I must have spent about a whole day investigating this. It was all the more strange because it seemed to work OK on my 'personal' laptop. As I seem to be rambling on, to cut a long story a bit shorter, it turned out to be a caching problem. IE had somehow created a corrupted cached version of the downloaded file and I was always getting the cached copy, instead of a fresh download.
Anyway, luckily it was in a 'downtime' period at work, so no harm done. Back to real work next week.
Ruby on Rails completed
As a follow up to my last post, I finished my experiments with Ruby on Rails. Simple stuff really, a couple of very simple tables with a many-to-many relationship managed using some nifty Ajax drag'n'drop.
Most of the time was spent fathoming out the Ajax stuff to get it to do exactly what I wanted. I had a sort of 'light on' moment when I realised that changing objects around in my [session] could directly update the DB, without doing an explicit 'save'. Pretty cool all round.
Webby stuff still doesn't 'fry my ham', to use a Downeyism and of course I had absolutely no style but that's what all those web designers are for right?
Most of the time was spent fathoming out the Ajax stuff to get it to do exactly what I wanted. I had a sort of 'light on' moment when I realised that changing objects around in my [session] could directly update the DB, without doing an explicit 'save'. Pretty cool all round.
Webby stuff still doesn't 'fry my ham', to use a Downeyism and of course I had absolutely no style but that's what all those web designers are for right?
Friday, 28 December 2007
Ruby on Rails on cygwin
Just spending a few days of Christmas 'downtime' getting to know Ruby on Rails. Tried out InstantRails with no problems but decided that I'd like to use cygwin, partly so that I understand how the various bits of rails fit together without the InstantRails magic, and partly because the Unix like environment seems a bit more 'native' to Ruby on Rails.
Cue, loads of problems.......
1. need to ensure that gem is up to date - "gem update --system" seems to help here, but then you need to uninstall/install rails and rake.
2. problem with /dev/urandom can be at least bypassed by making self.supports_urandom? return false in secret_key_generator.rb.
3. Following Agile Development with Ruby on Rails, but using Rails 2.0.2 means that 'scaffolding' has been deprecated. This can be fixed with "ruby script/plugin install scaffolding"
After all that, decided to revert to Rails 1.2.6, as this should make following the book easier.
Cue, loads of problems.......
1. need to ensure that gem is up to date - "gem update --system" seems to help here, but then you need to uninstall/install rails and rake.
2. problem with /dev/urandom can be at least bypassed by making self.supports_urandom? return false in secret_key_generator.rb.
3. Following Agile Development with Ruby on Rails, but using Rails 2.0.2 means that 'scaffolding' has been deprecated. This can be fixed with "ruby script/plugin install scaffolding"
After all that, decided to revert to Rails 1.2.6, as this should make following the book easier.
Wednesday, 5 December 2007
Do Postman regularly nick your letters?
I've had several cases recently of my post going missing, always parcels, sending and receiving. Are they thieving gits, or are the sorting offices just so shambolic that stuff just lies around in the corner until someone tidies up. I suspect a bit of both. Certainly, it seems to be a recent phenomenon.
Sunday, 2 December 2007
John Pudney
Over the last couple of years I've been collecting (via Ebay) a series of childrens books that I read when I was a kid. They are called the "Fred and I adventures" by John Pudney. All very old fashioned now, but still have a sense of escapism, even for an old git like me. The books are called
"Monday Adventure" thru "Sunday Adventure" and "Spring Adventure" thru "Winter Adventure". I have now got 9 out of the 11 and last week "Autumn Adventure came up on eBay, so I setup a snipe for £25 using auctionstealer thinking that was rather extravagent! The bidding quickly settled at £13.50 early the week, so I thought I'd be in with a chance.
Unfortunately, my snipe didn't even get a look in, and the last minute scrum saw the book go for £72!
Gutted!
"Monday Adventure" thru "Sunday Adventure" and "Spring Adventure" thru "Winter Adventure". I have now got 9 out of the 11 and last week "Autumn Adventure came up on eBay, so I setup a snipe for £25 using auctionstealer thinking that was rather extravagent! The bidding quickly settled at £13.50 early the week, so I thought I'd be in with a chance.
Unfortunately, my snipe didn't even get a look in, and the last minute scrum saw the book go for £72!
Gutted!
Wednesday, 5 September 2007
Blood
So, I went to "give blood" today. Probably about my 30th time, but it suddenly dawned on me the incredible amount of staff and equipment involved at any one time for a relatively small amount of people going through the system. When I asked how much each bag of blood actually cost, it was not really too much of a surprise to hear "£130". In a serious operation, that soon mounts up!
Subscribe to:
Posts (Atom)
