Duncan’s blog

June 21, 2009

2009 goal review – summer

Filed under: Uncategorized — duncan @ 12:00 am

I decided this year to publish some personal goals and then review them quarterly. I didn’t manage to do my summer review when I’d originally intended, due to the complication involved in moving from Scotland to London. So here it is now, better late than never.

Experts Exchange : get one more Master ranking, and improve both Coldfusion Markup Language and ColdFusion Application Server to Guru level.
Half-done; I managed to get those two CF zones up to Guru, but don’t have another Master ranking yet. Haven’t been active on Experts Exchange since I decided I was moving to London and realised I’d be too busy over the coming weeks. Might get back into it now though.

Join the gym.
When I moved down here I thought I’d do this, and had a one day trial at a local gym. However I’ve decided not to bother for now. I have been doing a bit of running though, and my goal is to try and average two runs a week.

Start using some kind of source control.
When I set myself this goal, I’d originally thought I’d have to do this for my personal projects, due to little chance of seeing it being implemented at work. However at my new company I use Subversion every day.

Complete 40 of the Project Euler problems.
I completed my original goal to do 25 of these, and revised it to complete 40. At the time I’d done 33, and I haven’t made any progress since then.

Blog at least once a week on average. I’d also like to do more Coldfusion-related blog posts.
When I moved to London I was offline for about six weeks, so I’ve fallen behind on this, but hope to get back on schedule.

Get involved in something open source.
No progress.

Install and start using Railo.
No progress.

Start using MySQL.
No progress.

June 8, 2009

Police considering Chinese-style spying measures for 2012 Olympics

Big Brother is watching youWorrying article in the Sunday Times: “Spy bugs may be deployed for 2012 Olympics“.

The police have looked at how the Chinese conducted their surveillance for the last Olympics, and are considering re-using some of their ideas. Such as:

  • bugging taxis to listen in to any incriminating conversations
  • using microchips on tickets and passes to track the movements of athletes, journalists and spectators
  • facial recognition CCTV

What I find most frightening is the final line:
“Alan Campbell, the Home Office minister, has revealed that the Home Office is investigating technology that would allow police to halt a vehicle remotely

Does anyone seriously consider that might be a good idea? Especially in the hands of the Metropolitan Police, or any other police force in this country.

Thanks to OurWorld OurSay for tweeting this originally.


Photo from surfstyle‘s Flickr stream. Creative Commons license.

June 2, 2009

Kirkcaldy swimming pool opening hours

Filed under: Uncategorized — duncan @ 10:57 am
Tags: , , , ,

Update: I just discovered that Kirkcaldy Swimming Pool actually publish another leaflet with contradictory times to their Opening Times leaflet: Activity Programme 2009 (PDF). I’ve emailed them for clarification. Until I get it, assume the information below is possibly incorrect.

I was trying to work out the times I could go for a swim at Kirkcaldy Swimming Pool. They publish the opening times (PDF) but it’s not immediately clear when is normal swimming and when does that clash with lessons / aquaerobics / family fun / lane swimming.

So I’ve attempted to re-publish them in a different format, so you can hopefully see what’s on at any time. This information will probably get out of date within a few months, especially when they start building the new pool.

Key:

Normal swimming
Adult lane swimming
Swimming lessons
Aquaerobics
Family fun session (last Sunday of the month)
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
8.00
8.15
8.30
8.45
9.00
9.15
9.30
9.45
10.00
10.15
10.30
10.45
11.00
11.15
11.30
11.45
12.00
12.15
12.30
12.45
13.00
13.15
13.30
13.45
14.00
14.15
14.30
14.45
15.00
15.15
15.30
15.45
16.00
16.15
16.30
16.45
17.00
17.15
17.30
17.45
18.00
18.15
18.30
18.45
19.00
19.15
19.30
19.45

March 22, 2009

We’re intimidating benefit ‘thieves’, with graffiti

We're closing in on benefit thieves

I saw the above recently on Broughton Street in Edinburgh. This is known as “clean graffiti” or “reverse graffiti”, and involves using a power washer to clean off grime and dirt, leaving behind clean patches that reveal some graffiti. In this case, a stencil would have been used. The main proponent of this form of graffiti in the UK is Paul Curtis, aka Moose, and his commercial clients include Big Brother, Xbox, the Metropolitan Police and Greenpeace.

The example above is also one of his designs, and is part of a campaign against benefit cheats by the Department of Work and Pensions (DWP).

It’s quite controversial for two reasons:

  1. It’s using a form of graffiti, which is always going to attract criticism from certain sectors, despite in this case actually cleaning away dirt rather than using paint
  2. It’s directly targeting groups of people, in the places they live, work and shop.

There was an article in the Scotsman last October complaining that this campaign was wrongly targeting residential property in Inverleith. Apparently the DWP had pre-agreed all sites with the council, and none should have been outside residential property.

After I saw this one on Broughton Street, quite clearly in front of the entrance to some flats, I put in a Freedom of Information request through the WhatDoTheyKnow.com site, to find out what other sites in Edinburgh had been hit by this campaign.

The Scotsman article quotes a DWP spokeswoman stating that 30 sites were agreed, but the response from Edinburgh City Council confirms it was really 36.

  1. Waverley Steps – Waverley Station
  2. Waverley Steps – Princes Mall
  3. North Bridge / Waterloo Place – Waverley Gate Building -
  4. Broughton Street – Baroque Bar
  5. Broughton Street – Real Food Store
  6. Broughton Street – Ladbrokes
  7. Broughton Street – Chip Shop
  8. Broughton Lane – Mathers Bar
  9. Eyre Place – Pavement near Esso Station
  10. Inverleith Row – Bookmakers
  11. Inverleith Row – Goldenacre Mini Market
  12. Inverleith Row – Victoria Wine
  13. Ferry Road / Pilton Drive – Morrisons Supermarket
  14. Dalry Road – Lidl Car Park
  15. Haymarket Station – Outside Starbucks
  16. Clifton Terrace – Outside Social Security Office
  17. Richmond Terrace – Dalry Road – next to many charity shops
  18. Caledonian Road / Dalry Road – Apple Pharmacy
  19. West Tollcross – Ignite Club
  20. West Tollcross – Wall outside of Ignite
  21. Dundee Terrace – outside newsagent and post office
  22. Dundee Street – Fountain Park Cinema Complex
  23. Gorgie Road – Opposite Station Tavern under rail bridge
  24. Gorgie Road – William Hill
  25. Stewart Terrace / Gorgie Road – Blockbuster Video
  26. Tynecastle – Heart of Midlothian Football Stadium
  27. Montague Street – The Malthurst Pub
  28. Clerk Street / Rankeillor Street – Chapman Chemist
  29. Rankeillor Street – Thresher Wine
  30. George IV Bridge – Pizza Shop
  31. Merchant Street – Under the Stairs Bar
  32. Cowgate – Three Sisters
  33. Tron Square
  34. Blair Street – City Café
  35. South Bridge – Flight Centre
  36. Stairs from South Bridge to train station – past the Scotsman Newspaper building

The photo above must be the Broughton Street – Real Food Store site; Real Foods is next door to number 35. How many of the other locations also target private residential properties? The council has since removed the DWP adverts at the Goldenacre Mini Market on Inverleith Row and the Malthurst Pub on Montague Street, but how many still remain visible, wrongly intimidating law-abiding residents?

March 20, 2009

2009 goal review – spring equinox

Filed under: Uncategorized — duncan @ 12:00 am
Tags: ,

At the start of the year I published my goals for 2009. Rather than just treat it like a new year’s resolution and ignore it until the following year, I decided to review those goals quarterly.

Complete 25 of the Project Euler problems.
I decided to start using Python to tackle some of these, and managed to get a few more done, taking my total to 33. Haven’t done anything on this for a while. The next Project Euler milestone is when you complete 50. I’m not sure I’ll manage that, but maybe I’ll revise this goal to try and complete 40.

Get a Master ranking in Experts Exchange for at least one other zone.
I’ve now got Master ranking in Coldfusion Markup Language, ColdFusion Application Server and ColdFusion Studio. I’m almost at the ‘Guru’ level for the Coldfusion Markup Language.
New goal: get one more Master ranking, and improve both Coldfusion Markup Language and ColdFusion Application Server to Guru level.

Join the gym.
No progress.

Blog at least once a week on average. I’d also like to do more Coldfusion-related blog posts.
I’ve made 36 posts this year, five of which are about ColdFusion.

Get involved in something open source.
I submitted a few minor issues to a handful of projects on RIAForge.org, and submitted a suggestion for the VarScoper tool to its author.

Start using some kind of source control.
No progress.

Install and start using Railo.
No progress.

Start using MySQL.
No progress.

March 5, 2009

Another milestone in the War Against Photographers

Filed under: Uncategorized — duncan @ 12:00 am

Story on Boing Boing about Stephen Clark in Manchester, arrested and locked up for two days for allegedly photographing a drain cover. The drain had been sealed prior to the Labour Party Conference as a security measure. Initially he was arrested for causing criminal damage, despite no damage being done. He was then re-arrested for being concerned in terrorist activities.

He was later released without charge, after the police failed to find any drain cover photos on his mobile phone, camera, computer, etc, but the police still hold his DNA on their database. He was arrested in the autumn, but this has cropped up in the news now as he’s wanting off the DNA register (and quite rightly so), in line with the recent European Court ruling that this was a basic breach of human rights.

I wonder if he’d have been released without charge if the cops had found photographs of drain covers. The implication is that it’s somehow a terrorist offence to photograph these securely sealed drain covers. Which is patently nonsense, as we can clearly see them in this video, which probably contains some of the Police’s own footage.

more about "Manchester man arrested for alleged s…", posted with vodpod

I’m sure the fact Mr Clark appears to have an Irish accent had nothing to do with his arrest, right?

February 5, 2009

SQL nested joins

Filed under: Uncategorized — duncan @ 12:00 am
Tags: , , ,

I’ve been working on a query recently that has been doing my nut in. It involved five tables, possibly six depending how I wanted to do it. I had several tables that were going to be inner joined to each other. Then there were two tables which would be inner joined together, but outer joined to the other tables. I only wanted to return any rows from the first of those two tables if there were also matching rows in the second of the two tables.

To try and explain it, here’s a rough ER diagram I put together in Gliffy.com:

6-way join

So, I’m inner joining Category to SubCategory and SubCategory_School and School. That’s the easy part.

I’m only interested in rows from KeyIndicator where there are corresponding entries in School_KeyIndicator joining them to the School table. And that’s where I was having the difficulty.

I wasn’t getting anywhere with this, and couldn’t find anything on the web other than very simple examples joining two tables together. I had a look to see if Pinal Dave’s excellent SQL Authority blog had any useful information. He didn’t but he did link to an article by Coldfusion über-blogger Ben Nadel, Grouping JOIN Clauses In SQL, which was exactly what I was looking for.

SELECT	C.ID AS CategoryID, C.Name AS CategoryName,
	SC.ID AS SubCategoryID, SC.Name AS SubCategoryName,
	KI.ID, KI.Name,
	S.ID AS SchoolKIID, S.Data,
	SC_S.ID AS ScoreID , SC_S.Score
FROM	Category C
		INNER JOIN SubCategory SC
			ON C.ID = SC.CategoryID
		LEFT OUTER JOIN
		(
			KeyIndicator KI
				INNER JOIN School_KeyIndicator S
					ON KI.ID = S.KeyIndicatorID
					AND S.School = #URL.ID#
		)
			ON SC.ID = KI.SubCategoryID
		LEFT OUTER JOIN SubCategory_School SC_S
			ON SC.ID = SC_S.SubCategoryID
			AND SC_S.School = #URL.ID#
ORDER BY C.ID, SC.ID, KI.OrderBy, KI.ID

In the end I eliminated the School table from my query, as I didn’t actually need it. However what really made this work was the nested join, i.e. the part inside the brackets. Basically I do my INNER JOIN between KeyIndicator and School_KeyIndicator. Because that’s in the bracket, that gets evaluated first. Then the result of that is LEFT OUTER JOINed to the SubCategory table.

January 29, 2009

Glenrothes wins award for most dismal town in Scotland

Glenrothes won the Carbuncles award! In the other categories, Donald Trump’s controversial golf course won worst planning decision, and the conversion of the Plaza Ballroom in Glasgow into flats won worst new building.

Fife Council issued a press release criticising the awards. Council leader Peter Grant said “Already I’m being contacted by some of these volunteers who feel they’ve been kicked in the teeth as part of a cheap publicity stunt to boost sales of a magazine that neither they nor possibly anybody in Glenrothes has ever heard of”. That sort of sounds to me like a backwards way of saying nobody in Glenrothes is interested in architecture, which I guess is part of the problem that won it the award in the first place.

BBC video footage
BBC News article
BBC blogs
The Telegraph
Architecture Scotland press release


Disclaimer: I work for Fife Council, but my views do not in any way represent the council.

January 26, 2009

Glenrothes up for award

Filed under: Uncategorized — duncan @ 7:33 pm
Tags: , , ,

Glenrothes in Fife has been shortlisted for the annual Carbuncle Awards, “the prize that identifies Scotland’s most dismal town.”

The judges’ statement says:

Glenrothes is a classic Scottish New Town. However, the judges felt that unlike New Towns such as East Kilbride and even Cumbernauld, it has failed to move with the times. It is dominated by the vast Kingdom Centre which also serves as the town centre. From the outside it is an ugly and depressing complex which inspires little civic pride. Inside it feels like an 80s timewarp. Said Gordon Young, “The real failing with this town centre is the lack of civic space. The whole thing is internalised. It is really just a big mall. But with a little investment it could be so much more. “However, the shops are busy. But the judges felt this was more down to a lack of competition in the region which explains a sense that the Kingdom complex perhaps does not need to try too hard in terms of attracting local trade. “One almost gets the feeling that perhaps Historic Scotland should give this place a listing, as an example of how poor shopping centres used to be.”

That’s pretty accurate. Basically Glenrothes is a series of suburbs, most of which have a small shopping precinct. The only town centre is really the Kingdom Centre shopping mall, which is a large indoor shopping centre, mostly surrounded by car parks.

On the other hand, Glenrothes has a lot of public sculptures, a reasonable amount of green space, and seems well catered for by cycle paths and footpaths, although the transport system is dominated by roundabouts.

The other nominees for the Plook on the Plinth Award are Motherwell and New Cumnock.

There is also the Pock Mark Award for worst planning decision and the Zit Building Award for the most disappointing building.

Vote online here or see more Glenrothes photos here.

January 16, 2009

Noise

Filed under: Uncategorized — duncan @ 12:19 am

I recently read a great article in the Guardian about increasing noise levels at gigs, with particular reference to recent My Bloody Valentine gigs.

Shortly afterwords, on Facebook and elsewhere, I saw various people are drawing attention to a petition to try and stop the government making ‘noise control devices’ mandatory for anywhere with an entertainment license.

The Guardian article doesn’t mention either the petition or any forthcoming change in the law. The petition page and the other information I’ve seen so far is woefully short on any facts about what exactly is proposed.

I started going to gigs when I was 15. The first gig I saw (Milltown Brothers at the inappropriately-named Caesar’s Palace in Aberdeen) left me with tinnitus for three days. A few other gigs not long after that gave me tinnitus for perhaps a day afterwards. Between the ages of 16 – 19 I averaged a gig a week, and often had tinnitus for a few hours afterwards. The loudest gig I remember was Madder Rose at the Arches in Glasgow. I was standing directly in front of one of the speakers (although some distance away from it) and could feel it. Another memorable one was My Bloody Valentine at the Barrowlands, where they did their twenty minute crescendo of noise. Some people were walking out, but I thought it was one of the greatest moments I’d seen, heard and felt at a gig. That was I think 1992; 17 years later they’re still doing the same thing…

So, I’m sort of undecided on this issue. I recognise tinnitus as a very real risk for regular gig and club goers. I wouldn’t be surprised if I experience some level of deafness in later years as a result of going to noisy gigs as a teenager. I’m no longer a big fan of very loud music; I’d rather sit in a pub where I might have a chance of hearing a conversation without having to have the person next to me shout directly into my ear to be heard over the music. I quite like it in European cities like Barcelona where the pubs don’t set the sound all the way up to 11 once it gets to 9pm (at least not the ones I was in).

However I also appreciate having the personal freedom to go out and destroy my eardrums, if I want to. I think noise limiters are a good idea in theory, but I’d like to know more about how they work and what the limits would be.

Next Page »

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.