Cam****
May 7th, 2010
What a great day for the United Kingdom of Great Britain and Ireland. I think every man woman and child of this nation will wake this morning with new hope. Hope that the mistakes and missed opportunities of recent years will finally be undone. Hope that, from now on, we will all be armed with a new freedom, a new ease of living our lives without constraint by the petty failings of tired and out-of-date thinking.
I am of course talking about my new website, of which version 1 is now released
ukcampingmap.co.uk
It’s seems like an obvious idea, and I for one can’t believe no-one else has done it yet (particularly as I’ve been ruminating over it for the past two years): All the UK’s campsites plotted on a google map. So much easier than trawling through directories of campsites available elsewhere on the internet, that have only rudimentary or difficult to use tools for finding a campsite in the location you want one.
It has a search (for postcodes, towns, villages, tourist attractions) and also has easy navigation for viewing a single region, county or tourist area (eg Snowdonia).
There’s plenty more work to do on it, but for the first time, after a few weeks of intense work*, I have something fairly stable which is, while still very basic, still a lot easier to use than other campsite directories.
Enjoy.
Oh, and God help us now the Tories are in!
*well, maybe an hour a day
We know where you live
April 28th, 2010I read recently that mozilla have been making efforts to fix a bug whereby a website can find out which sites you’ve visited previously, which has implications for user privacy. On the same day I began to notice that there was something very sinister about… the google ads!
It’s a fairly innocuous ad, it would seem, but it occurred to me that the site I was looking at – the site I’m working on at the moment – had no content related to Javascript or web development at all. As I was at work i had, however been visiting umpteen javascript sites all morning. Surely Google wasn’t serving me ads based on my browsing history?
To test the theory I decided to visit a site all about puppies, and on my return, lo and behold, what did I see:
!!!
A bit of investigation led me to confirmation that Google do give publishers an option for their ads to
… display ads based on interest categories that might appeal to your users. For example, if a user browses many sports-related websites displaying AdSense ads or watches sports-related videos on YouTube, Google may associate a sports interest category with their cookie and show the user more sports-related ads.
I didn’t write about this immediately largely because I wasn’t sure how bothered by it I was. It’s very easy to rail against advertising on the internet as being too intrusive, but then again advertising does pay for the, largely free, internet. It’s always a trade-off.
Arguing by analogy would seem to shed light on the issue. Imagine, if you will, a magazine that showed you adverts about dog leads just after you walked your dog, showed you adverts for sky sports subscriptions just after you went to watch the football etc. Or billboards that magically change as you walk by to display ads you’re uniquely susceptible to. A bit of a dystopian image… but then again, technology often throws up moral dilemmas caused by the new possibilities it opens up and arguing that “in the old world it wouldn’t be OK” often makes down-sides seem bigger than they are. It would be sinister to be surrounded by morphing billboards… but that’s not what google ads are.
… but after a couple of weeks of being aware of what google are doing, and seeing the same adverts over and over again, no matter waht the content of the site I’m on, I can’t help but feel a few sinister overtones. In addition I can’t help feeling that Google are giving sites in their advertising network an unfair advantage. If a site about puppies is able to show people ads based on their past behaviour rather than the site’s content then they profit from google sharing (albeit indirectly) information about me that the puppy website, cute though it may be, has no right to use.
Yes, I know the boundaries are blurred. It’s not wholly dissimilar to when a magazine enlists market researchers to find out about its readers, and then uses this information to attract advertisers. And I know Google don’t pass on any data to the puppy website, and that no-one’s forcing anyone to click on ads. And that there’s an argument that more relevant advertising could even be a good thing for the consumer as well as the trader. But it still has a distinct whiff of unfair play about it. Insider trading. “Don’t tell anyone I told you this, but something tells me your next visitor might click on an advert for shoes. Nudge, nudge. Wink, wink. Click, click. Kerching”.
Google have taken a lot of flak lately about their lack of respect for users’ privacy when rolling out Google Buzz. They’ve also been in the news over their fisticuffs with china and their publication of data of which governments have asked them for data/removal of data (I can’t decide if the fact they don’t publish the Chinese data due to the government there considering it to be a state secret undermines or reinforces its effectiveness). But it’s amazing what they can get away with that goes unnoticed.
To end on a positive note, visit this site to exempt yourself from Google’s ad-info-sharing cookies.
Now, go and watch The Birds.
*edit – it turns out this “behavioural advertising”, as it is known, is common practice across many ad suppliers and, somewhat cheekily, it’s an opt-out rather than an opt-in. To opt out of them all visit this site.
Bunnies
April 22nd, 2010
The legislation in Belgium does not specifically mention veils, the BBC’s Dominic Hughes in Brussels says.
Instead, it says the ban applies to clothing that hides someone’s identity in public places such as parks, buildings and on the street.
If I were a veil-wearing Belgian muslim I think I would spend today buying a head-to-toe bunny, gorilla or bear costume in readiness for the ban as I very much doubt the law will be enforced for these.
A bad smell
March 31st, 2010
Delroy 'Someone get the Febreeze' Smellie versus a threat to the nation
I’ve recently started, against my better judgement, watching Deadwood, which everyone says is a must-watch tour-de-force. It’s better than Lost, I’ll give them that, and is in fact pretty enjoyable. Set in the untamed gold prospecting frontierlands of America, it’s a grittier, darker, more unpredictable picture of the wild west. I’ve just watched episode 4, in which a guy who shoots *censored* dead in front of a bar full of witnesses is found not guilty. It’s unexpected plot turns like this, drawing the world as a corrupt, depressing place where certain people are beyond the reach of justice, that make the series so compelling.
I’d like to say that events like today’s acquittal of policeman Delroy ‘What’s that stink?’ Smellie, who famously hit a rather small woman protester several times on camera make life a more compelling experience, but alas they just give it a sinister air. If you watch the video I’m sure you’ll agree that his defence of ’self-defence’ is fiction enough for a whole series of Deadwood. Though not as cleverly written; apparently only judges can suspend their disbelief long enough to find the main conceit credible.
The district judge, Daphne Wickham, said there was no evidence that his use of the baton was not approved, correct or measured, adding that Smellie had a “mere seven seconds” to act, and other witnesses had feared for his safety.
Personally I think that “7 seconds to act” when faced with being shouted at is a poor excuse for violence. Especially when you’re a policeman. And if you watch the video I have no idea where this “7 seconds to act” comes from. Just because he lost his cool in 7 seconds and lashed out does not mean he had only 7 seconds to act, it just means he needs to find better ways of dealing with confrontation than violence. I’m reminded of Begbie in trainspotting.
Now that an election’s up for grabs I wish one of the two main parties was less in thrall to the police. I really do. Maybe I’ll write to my MP.
Or maybe I’ll just snigger at the fact that Delroy ‘wake up and smell the faeces’ Smellie is so stupid he beats up girls in front of about 20 photographers. And then cower in fear.
Stooping to the law of averages
March 23rd, 2010I’ve got a bad back at the moment. It’s been far worse in the past, so I’m not really grumbling, but I have however recently started my first office job in a long time, and yet again I’m faced with the perennial problem of having a chair and desk that force me to stoop. It’s not actually too bad at this place (the screen will allow me to raise it up to close to eye level, and the non-swivel chair I have is a lot more comfortable than most of the swivellers I’ve sat in), but it has reminded me of a point I’ve been meaning to make for a while.
Years ago, when attending health and safety training, we were told that you should be careful to make sure your seat is at such a height that your legs touch the floor comfortably. Why exactly this is good for your back I don’t know, but I presume somebody knew what they were talking about. For employees with legs too short to reach the floor (does Tom Cruise work in anyone’s office?) the advice is to put a box or, if you’re gullible, and expensive footrest on the floor.
However, at the opposite end of the spectrum you have those people who, like me, have legs so long that raising the chair up to a suitable position for the legs means the torso gets lifted up way above the table, almost as if a hot air balloon were involved. This means that I have to lean forward a lot to type, even more so if the screen height can’t be adjusted much.
The worrying thing though is that, because I am only a slightly taller than average man, these people consist of a sizeable portion of the population – a bit less than half of all men and some women too - all of whom have no option other than to stoop and wreck any chance they had of making it to retirement without suffering a slipped disk.
And finally to my point; this situation is caused by the fact that desks are made at a height to suit the average person, which is fair enough for the general office. But what frustrates me is that in IT (and probably other male dominated professions too) you don’t get higher desks, even though the average height of men is greater than that of the population in general. All these bluechip IT companies spend hundreds, if not thousands, per employee on getting them the latest, trendiest, most ergonomic chairs, keyboards, mice etc…, but it’s all for nothing if the desk is still too low.
When I run my own multi-million dollar software company (based on the success of a random muffin recipe generating website) I will proudly place at the top of my ‘work for us’ page
OUR TABLES ARE A FULL 3 INCHES TALLER
Beat that, Google!
Heavens, we’re in a lot of debt
March 8th, 2010Or are we?
I read this article today, arguing that the constant headlines of “largest ever deficit” in the UK are alarmist and that it’s pretty abysmal that both main political parties aim to cut public spending in order to cut the national debt, when there are strong arguments to not do so. There’s a recession on, you know!
Which got me thinking about whether the national debt really is all that big. Of course it’s a big round figure (I’d type it out but am scared my ‘0′ key will break through overuse) but equally our earnings, and therefore the government’s tax revenues, are much greater than most periods in history too. What really matters is the ratio of debt to how much money is in the country, surely. So I found this graph:
Another graph on the same page demonstrates that current national debt is at around 60% of GDP, which I don’t think is too bad given that the ongoing global economic crisis is considered to be at around the same order of magnitude as the 1930s great depression, and back then national debt hovered between 150 – 200%. I know we live in a very different, more competitive world, but I doubt it’s anywhere near as catastrophic as the papers and the politicians would have us believe.
And another thing, I grew up in a northern town with mines, steelworks and baths that don’t take half an hour to pronounce, so naturally I hated Thatcher. But then the rhetoric of the past 10 years – that she may have been harsh, but by God she prepared us for the harsh, competitive world to come – has, if not softened, at least confused that view a little. But I recently came to the realisation that she was one of the chief instigators of this new harsh world. Claiming she’s alright because she prepared us for it is like saying the guy who pushed you in front of the train is alright really because he gave you a mattress to hide behind.
It’s not what you say, it’s which font you say it in
March 3rd, 2010
I’m redesigning this site at the moment and one thing I wanted to pay closer attention to this time around was choice of fonts. Notwithstanding the fact that web browsers were, until recently, pretty shoddy at allowing you to use the fonts you wanted to, the main reason I hadn’t paid much attention to fonts in the past was that it’s so darn hard picking one, for a number of reasons:
- There’s so damn many of them
- There’s no relation between names and appearance (as opposed to, say, #f60283 being guessable as a garish pink, closer to red than to mauve)
- They’re difficult to preview and compare
So in the interests of productivity, quality and, dare I say it, working smarter, not harder, I’ve devoted some time to sorting out how I choose fonts, reduced to the following four steps:
- Organise your fonts in themed folders
- Find a good stand alone font previewer i.e. don’t rely on photoshop and windows’ poor tools
- Narrow down to a short list
- Use javascript to make quick comparisons easy
Read on if your curiosity is piqued.
1. Organising the fonts
Windows’s default font collection (and, I imagine, Apple’s too) and the collection of 2000 fonts I also use are organised alphabetically which is rubbish. Unless you have web design OCD you’re unlikely to want to narrow down your choice of font by it’s first-letter. But, on the other hand, it is difficult to categorise fonts; I’m yet to see a website do it effectively, and I’m not entirely happy with my choice. But in the end I plumped for the following: serif, sans-serif, script, stylised, symbol, stencil.
Stencil could easily fall within stylised, and stylised could easily be split into subfolders (Art Deco, Gothic, Celtic …), and I realised part way through that I should have a subfolder within symbol for fonts depicting alphabets other than Roman, but I think a minimal folder system would be serif, sans-serif and other. In the serif and sans-serif folders I included only sensible fonts you could print a book not aimed at children in, which I think is a useful distinction to make; often the hardest task when picking fonts is to find the one which is subtly different to other ordinary fonts, but somehow suits the design better than almost indistinguishable alternatives. Cutting out all the fancy fonts makes this task a lot easier.
So once you have all these folders put a copy of each font you have in one of them, and you’re ready for the next step. You don’t need to bother with installing them yet.
2. Previewing your fonts
My criteria for a good font-previewer are:
- Choice of text to use for the preview
- Choice of text-size and colour
- Ability to organise fonts how you want them organised
- Speed and ease of switching between one font and another
- Ease of installing a font
Windows’ control panel fails to meet conditions 1 and 2, and Photoshop’s built-in font selector fails to meet 3 and 4, and they both force you to install a font before using it. The best free solution I’ve come across for Windows which meets all 5 conditions is Fast Font Preview.
3. Short-listing
Once you’ve got Fast Font Preview installed you can start picking your shortlist. Simply browse to your organised font folders, click on settings to type in your sample text, adjust the font-size to what you want, and double click on any contenders. Once the font is opened you can install with one click. While the font is open you’ll also want to jot down its official font name.
4. Use javascript to make comparisons
This is where I stop being pedantic and hopefully can be of some use. Insert the following script into the head of your web-page-in-need-of-a-font, substitute your list of font names and the id/tag name of the elements to be affected and, hey presto, a handy font-switcher should appear, making choosing exactly the right font much easier. If your web page already uses javascript then add the body of the function to your existing onload event. (NOTE: It tends to work better in Google Chrome than other browsers as Google Chrome seems to be a bit more forgiving when it comes to font names).
window.onload = function() {
var body = document.getElementsByTagName('body')[0];
var id = '';
var tagName = '';
var fonts = 'Comma,separated,list,of font,names';
fonts = fonts.split(',');
var elements = (id) ? [document.getElementById(id)] :
(tagName) ? document.getElementsByTagName(tagName):
[body];
var switcher = document.createElement('DIV');
switcher.setAttribute('style','position:absolute;top:0;right:0;background:white;z-index:200;padding:10px;');
for(var i=0, il = fonts.length;i<il;i++){
createButton(i);
}
body.appendChild(switcher);
var buttons = switcher.childNodes
loadFont(0);
function createButton(pos) {
var button = document.createElement('a');
button.innerHTML = fonts[pos];
button.setAttribute('style','display:block;padding:2px;');
button.setAttribute('href','#');
button.onclick = function() {loadFont(pos);};
switcher.appendChild(button);
}
function loadFont(pos) {
for (var i=0,il=elements.length;i<il;i++)
{
elements[i].style.fontFamily = fonts[pos];
}
for (var j=0,jl=buttons.length;j<jl;j++) {
buttons[j].style.backgroundColor='';
}
buttons[pos].style.backgroundColor='yellow';
return false;
};
};






