Sunday, 21 August 2011

A touch of ordinary

A shop, a walk, exercise (either that or I have to stop eating), two good films later - Il Postino and Garage - and a sudden realisation that I can use Blogger to create a basic “online business card”, as various services such as flavors.me and about.me are sometimes described, or a home page. Curiosity (vanity?) persuaded me to buy a custom domain when setting up my blog; so I could create another and assign the “www” subdomain, and since it’s Blogger it would also (unlike Google Sites) be able to handle naked domains.

Specify the favicon, hide the navbar with a bit of CSS and hack/edit away at the Template HTML to hide almost everything else and I had a blank canvas to work with. The trickiest part was remembering my login credentials for changing the DNS settings - mine were buried away in Google Apps - then undo an existing mapping for “www”, change the CNAME and add some A records. The result is admittedly light on functionality and I only needed to cough up a measly $20 for a whole set of features, but where’s the fun in that?

Wednesday, 17 August 2011

Concern for the unfortunate

Nonsense - even in politics - can also make you laugh. Take today’s example:
Of course what Tories really think is that there *is* a correlation between poverty and the riots. They think the poor are subhuman scum.
In isolation, your typically silly comment, but when followed up with...
The riots are in large part caused by inequality and poverty. Not because poor are inferior people.
...it becomes unintentionally amusing. But just in case you were unsure, there was this beauty - the unquestioned cornerstone of so many arguments - a few moments later:
...origins of Conservatism lie in hating poor.
What a tweet. That a party would be identified as openly antagonistic to a large section of the electorate - whose votes it requires - shall remain one of the great mysteries, and all the more remarkable for being the view of someone with a first-rate (well, far better than mine) education. To believe that good and (for want of a better word) evil, can be so neatly aligned with left and right-wing ideology is astonishingly simple and self-serving. There is, I’m sure, a larger debate around the correlation (or lack of) between education, politics and morality; for now I shall confine myself to wondering how someone so intelligent can say something so foolish, and elude the inconvenient truth of Hubert Humphrey:
Compassion is not weakness, and concern for the unfortunate is not socialism.

Tuesday, 16 August 2011

Fix you

So I went on holiday and everyone - a “lost generation” no-less - stared rioting... for four days. Well thank you, but this post isn’t really about me. By the time I returned the “rampage” had stopped and I had to suffer - am still suffering - the various current affair “specials” on why and who’s to blame. Panorama, for example, used some lovely background music.

Some idiot blamed the previous government; more idiots blamed the existing government. Some thought it black culture innit - whatever that is - others, something to do with the poor, or being poor. If I were one of the less fortunate (and who knows, there’s plenty of time) I’d be getting slightly pissed off at the constant suggestions of my inevitable anti-social behaviour. There was a legitimate seed for protest - a Police shooting a few days earlier - but it was quickly consumed by our more thuggish members.

Besides, our moral grounding is hardly a rock in the knowledge there’s more to lose when you step out of line. And therein lies the problem; it’s not so much the violence, more our naive - and potentially dangerous - belief that no matter what, there is a solution to making us all behave better, all the time; and the lengths some will go to achieve this desired result. It’s as if we’ve learnt nothing from the past or even future portrayals of attempts to “fix” the population.

Saturday, 13 August 2011

Half way between a giant anteater and a baboon

Lauren and Phil Ruse on Paignton beach
Away for a week, where two really good days sandwiched one really bad day... and the rest were average. I spent a lot of time reading; finishing The Shipping News and the larger part of Kerouac’s On The Road - more on that later.

Little Miss R spent an age on the beach building sand castles - or more accurately demolishing mine - and digging a large hole in the sand which inexplicably she was determined to fill with water; this was - I later found out - her favourite part of the holiday. Later that day she had her first swim in the sea - which was my favourite part of the holiday.

The following day she was sick, so sick; I have never seen so much produced by someone so little, and for so long. Was it the small taste of seawater, the ridiculously large meal or too much time in the sun? It’s to her credit she was uninterested in blame, and it was probably my fault.

If a first swim in the sea was the moment, the best day was a visit to Paignton Zoo. How pedestrian I am, yet it’s never easy finding the balance in our band of three. It’s a big zoo and fills much of the day - perhaps five hours; I am thus satisfied with a long walk whilst Little Miss R - amongst other creatures - is content with a cool Kangaroo. It’ll do.

Friday, 5 August 2011

'Fun' with CSS

For further fun I have been aiming at horizontal (only) scrolling, for the purposes of displaying code samples. Taking a previous post; it overflows correctly in Chrome and Firefox but fails to do so in Internet Explorer 8, and I presume earlier versions. Worse - or to make it more convoluted - I can specify exact width, extract the CSS and the HTML and have it working in IE8, but the same code still fails within the context of Blogger. I’ll trace the cause eventually (and use the <pre> tag rather than a <div>) yet it’s possibly a little obsessive; in all my posts I’ve only displayed code twice, and only once has it required scrolling.

Thursday, 4 August 2011

‘Fun’ with JavaScript

With some on-going tinkering yesterday evening - styling the search widget on my blog - I wasted hours on a difference between how Chrome and Internet Explorer (and later, I discovered Opera) executed some JavaScript compared to Firefox. ‘Hours’ because I managed to side-track myself with the onblur event, and the problem was something far simpler. I put it down to rustiness - an accidental mixing of syntaxes - though the truth may be less kind; never mix alcohol and coding, kids.
<html>
<body>
<input name="search" type="text" size="10" /><br />
<input name="search" type="text" size="20" /><br />
<input name="search" type="text" size="30" /><br />

<script type="text/javascript">
var x = document.getElementsByName("search");
var i = 0;
for (i=0;i<x.length;i++)
  {
  document.write(x(i).size+' ');
  };
</script>

</body>
</html>
As usual it was a case of reducing the code to something more manageable. On executing the example above, Chrome (my default browser) and Internet Explorer will write out the sizes of the three text boxes, whereas Firefox will not. The reason is all to do with brackets; we use square brackets to access an entry in a nodelist, and parenthesis (rounded brackets) for the optional arguments to a function or method call. Chrome and others are effectively treating item as the default method on a NodeList object - hence the example JavaScript works, whereas FireFox isn’t - and the example JavaScript fails.

Sunday, 31 July 2011

Developer reading The Shipping News

A Sunday the same as any other. Walk to shops. Reward myself with large latte and a very berry muffin. Exercise the guilt. Then watching Inception, at least think I did. Poor joke that. And reading The Shipping News. Good book; how to impart flavour? Present tense. Choppy sentences. Missing pronouns. Sparse. Don’t get that, not at first. Clever though, has a reason. Unlike this. This is poor. Embarrassing. Worse than a joke. Worse than that joke. Sound like HULK. HULK HUNGRY. MUFFIN NOT ENOUGH. HULK WANT MORE.