Archive for July, 2004

using LIKE in MS ACCESS queries

Thursday, July 29th, 2004

I was getting bizarre results the other day when using LIKE in an ACCESS query - it turns out then when creating a query in SQL view inside Access you need to use * as a wildcard, but from within ASP you use %.

for example:-

SELECT foo FROM Bar WHERE foo LIKE ‘*Bar*’ <– within Access

SELECT foo FROM Bar WHERE foo LIKE ‘%Bar%’ <– from within ASP

returns the same dataset.

Hypothecate is archived

Tuesday, July 27th, 2004

until further notice. time to concentrate on more important things for a bit.

lightweight

Monday, July 26th, 2004

another year older and i’m reminded that I can’t get away with the alcohol consumption levels that I used to in my student days. Friday night pre-birthday I drank a fair amount of wine, followed by a pint or two of real ale, followed by more wine. then some more wine. I won’t go into what happenned next , but it’s safe to say that i’m not going to be allowed to forget it easily and will be the subject of a fair amount of piss taking for some time to come. i’m also on day three of the monster hangover from hell….

learning something new

Thursday, July 22nd, 2004

today I really feel like i’ve learn’t something new. for example at the simple end of things how to cut and paste and tab between applications and windows within applications on a mac (there’s an apple key godammit!), and at the slightly more complicated end of things, how to download and install python libraries/modules on unix, and most excitingly (for my inner geek) how create python test scripts for web apps using mechanize.

Mechanize is a technology that allows you to open web pages within a virtual browser (i.e this all happens in code, you don’t actually see anything), and do things like submit forms, follow links, check the content of tags etc. The idea is to create a set of scripts to perform tasks on a website such as creating an article within a content management system, using the HTML user interface, without needing to actually have a real browser open or someone’s time taken up creating articles called "sdfsdfsfdf" (as test articles are invariably always called).

This means that once the scripts are set up, we can run them intermittently as we work on a project to check whether anything has been broken since the last test.

Ashton Court Festival

Monday, July 19th, 2004

It was one of those situations where we needed a kick up the ass, one o’ clock on saturday afternoon and my wife and I are losing motivation to walk up to Ashton court because of the grey skies. "But there’s blue sky over there!", one of our friends said. So we reluctantly started walking, and within minutes it was sunny. By the time we reached the festival there wasn’t a cloud in site and so we claimed our pitch near the main stage and enjoyed the festival picnic style, a group of friends getting sunburnt to the distorted sounds of local bands and the taste of beer, entertaining small people, or rather them entertaining us.

hot off the press

Saturday, July 17th, 2004

van life in el morreon 1997

been meaning to scan some of these pictures of my Spanish adventure for 7 years now…. here’s where I set up camp in el morreon, near Orgiva, Andalucia for a month or three.

van life in el morreon 1997

recently on too old to skate…

Saturday, July 17th, 2004

shoe wear

rain stops ollie practice so off to churchill

Where to skate in the wet?

skating to work on a longboard rocks

queuing for <em>what</em>?

Friday, July 16th, 2004

so i’m in Sainsburys Central along with 1000 other people buying sandwiches, salads or "be good to yourself" carbohydrate and preservative laden stodge. I usually pay at the cigarette counter as I only have one item and I usually pay cash. Today there is a long queue at the cigarette counter and hardly anyone at the normal tills. why? is there something wrong with the normal tills, should I join the queue for the cigarette counter?

I eventually take the plunge and go for the normal tills - all goes without a hitch and within minutes i’m walking back up the road thinking why didn’t those people just go for the normal tills rather than stand in that long queue? Then it dawned on me - maybe they were buying cigarettes!

As a life-long self-righteous non-smoker it honestly didn’t occur to me that you might use the cigarette counter for anything other than avoiding the checkouts :-)

decaf reaction - should I be worried

Thursday, July 15th, 2004

Early this morning im my pre-caffeine fog (cf: chicken and egg) I accidentally picked up a decaf coffee pod. Upon realising (phew just in time…), threw it down as if I had been electrocuted - should I worry about that? probably :-)

trying iTunes

Wednesday, July 14th, 2004

I downloaded iTunes yesterday, mainly so I could plunder my bosses music collection. Seems to work pretty well…. how long until I find myself ripping stuff to AAC/M4A rather than MP3 and commit to the de facto hard drive music player that i’m trying to ignore?