Wednesday, 27 July 2011


Well, HFM gave the weather forecast for today as starting rainy and clearing up with a sunny afternoon. But actually it was mainly cloudy (overcast all day) with just a few peeks of sunshine in the afternoon, and no rain.

Weather Clock Face
Weather Clock Face by sean_carney on flickr

Tuesday, 26 July 2011

Breaking my website

Had a load of problems upgrading one of my sites to the latest version of wordpress. The problem wasn't with wordpress itself, but rather some modifications I'd made to the theme I was using's functions.php and also my javascript file.

One of the problems is that wordpress 3.2 requires v1.6 of jquery, but the jquery tools I was using includes jquery as part of a single file, and uses v1.4. I found the solution here:

Basically, only load jquery tools outside of the admin area, otherwise use the bundled jquery 1.6 inside the admin area.

After fixing this I was getting an error about "$ is not a function". After some googling I found that $ wasn't a global jquery variable in wordpress js and was reserved for the prototype js framework.

Now $ was only referred to in functions, and all my functions were called through
So I'm not sure why it didn't work. I'm guess that it's something to do with pano being a global variable.

Anyway, to fix it I moved
right up to the start of the javascript file (and left
at the bottom of the file), so all the functions and variables were enclosed within the scope of the jQuery function (and no longer global).

I also had other problems with mistakes in urls etc. I made and it took me quite a bit of trying different things and googling to work out what the problems were. Anyway, fingers crossed, it seems to be working now.

Saturday, 23 July 2011


For some of today I was looking at backtesting something by exporting M15 data from Alpari to CSV and then using forumlas in a spreadsheet, since I don't have an EA to test my idea. I also thought that you could use javascript or php to loop through the data and do a backtest that way.

I wondered which would be fastest (PHP or javascript), and it seems that javascript is generally faster than php (though the last few tests there are much better using php).

Brian, Mauser, and Bo came back from holiday as well, so I looked at Mauser's Wales photos on his TV, and also his prints of photos from his other trips that had arrived.

I went to bed for a bit part-way through the day as I had a bad headache, so that was annoying.

I started uploading some of the last day's photos from Korea to my website, and also started cutting out some pogs in Photoshop for tomorrow's pog website update. And of course, went to see K.K. Slider play a song.

Sunday, 17 July 2011


Today I went to Church and updated my pog website. Clare, Brian, Mauser, and Bo went on holiday to Wales early in the morning.

In the late afternoon and evening I worked on a concept image for the idea of a detective / mystery style film called Dr Robotnik And The Case Of The Missing Tea Bag:

Image credits:

Also I found a guy on youtube who does great remakes / remixes of pop songs. A few of them seem to be death metal remakes, a genre of music I'm not a big fan of, but still better than the original versions and good fun. This was the favourite video of the ones I watched, a polka version of a Busta Rhymes and Chris Brown song:

Saturday, 16 July 2011

Normal stuff

Today I wrote some more Korea photo descriptions and cut out some tazos in Photoshop while listening to Moldovan pop music. I made a farmhouse fruit cake and watched an episode of Star Trek TNG as well.