<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6506998626989446594</id><updated>2012-01-14T12:10:19.318Z</updated><category term='PHP'/><category term='Graphics'/><category term='Technology'/><category term='Dissertation'/><category term='CSS'/><category term='Travel'/><category term='HTML'/><category term='Thoughts'/><category term='XML'/><category term='Recipes'/><category term='JavaScript'/><category term='L/Unix'/><category term='Quiz/Survey'/><title type='text'>This, that and the other</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default?start-index=101&amp;max-results=100'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>275</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1245380294924880229</id><published>2012-01-14T12:10:00.000Z</published><updated>2012-01-14T12:10:19.324Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'>More Curry</title><content type='html'>&lt;p&gt;Cracking evening last night with a lovely couple of pints after work with cracking people and then out for a curry at the &lt;a href="http://hungryhouse.co.uk/bengal-diner"&gt;Bengal Diner&lt;/a&gt;, again with cracking old friends and perhaps a little too much wine. The food was brilliant and they don't have a licence so you get to take your own plonk, this effectively means that the wine is brilliant and the bill is small. Eventually got to bed a little after midnight. Up at silly o'clock for pee, paracetamol and lots of water then back to bed where my sleep got disturbed every single time I farted by 'er indoors complaining in some volume about the gaseous eruption transferring its way from my shapely arse onto her belly (Hey, you sleep in a small bed when you're as big as we are and you have to spoon, besides, it was that cold last night that if we hadn't we'd have frozen).&lt;/p&gt;&lt;p&gt;Thing is I woke about 09:45 hrs and thought I'd try something:&lt;/p&gt;&lt;p&gt;"It's cold out there, I'd like you to get up and put the fire on and tell me when it's warm enough for me to get out of bed. Perhaps while you're up you could put the kettle on and get breakfast started?"&lt;/p&gt;&lt;p&gt;Strange thing is that she did... and I've still got my testicles where they should be as well... and now she's tidying the boat - I wonder what she's setting me up for?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1245380294924880229?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1245380294924880229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2012/01/more-curry.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1245380294924880229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1245380294924880229'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2012/01/more-curry.html' title='More Curry'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4773155976082544820</id><published>2012-01-11T19:27:00.002Z</published><updated>2012-01-11T19:27:57.093Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Recipes'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>King Prawn Curry, Egg-Fried Rice And A Portion Of Chips, Please.</title><content type='html'>So the first time I ever had a Chinese takeaway, I'm pretty sure it was in Birkenhead, I had the above. Pretty much every time I've had one since I've had the same. Generally speaking if I have an Indian takeaway I'll have King Prawn Korma, Egg-Fried Rice and a Garlic Narn. I'll start with putting the Narn bread on the plate and then put the rice and curry on the Narn. That way the Narn soaks up everything and I'm left with a clean plate after eating the Narn after the curry. The Chinese just gets mixed all up in a big bowl and eaten as quick as.&lt;br /&gt;
&lt;br /&gt;
What's this got to do with anything, I hear you ask in between shaking your head in wonderment, not a great deal except to illustrate that I, like a true Yorkshireman, know what I like and like what I know.&lt;br /&gt;
&lt;br /&gt;
This is except when other people are involved: The Chinese was on a recommendation from the lass I was then courting as I didn't know what to order (I'm sure that there were Chinese takeaways in Huddersfield but there weren't any in the villages where I grew up - and even if there were there'd be no chance of having one, not when there was food to be cooked at home!). I'm not sure where the Indian came from but I'm nigh on positive it was either down to a lass or something I'd read or heard on the wireless.&lt;br /&gt;
&lt;br /&gt;
You'll perhaps be shocked to hear that I have no firm favourites in restaurants or takeaways of other nationalities, except that I do have a penchant for anchovies on my pizzas.&lt;br /&gt;
&lt;br /&gt;
I guess the reason I'm thinking about this just now is that within the 30 seconds prior to putting finger to screen I caught sight of a jar of silver-skin pickled onions that 'er indoors bought for #3 son and a packet of Marmite chocolate.&lt;br /&gt;
&lt;br /&gt;
The onions were bought because #3 really likes pickled onions but really, really likes silver-skin pickled onions - preferably the cheaper the better. I'm pretty sure that that's down to him having eczema, I'm not sure what it is about kids in my family with eczema and pickled onions but there seems to be a distinct correlation between the diagnosis of one and the almost pathological desire for the other... The thing is that the jar is a fancy one, with onions pickled in balsamic vinegar bought in a sale, the thing also is the #3 is not in the least bit keen. Not cheap enough I guess?&lt;br /&gt;
&lt;br /&gt;
I love Marmite and I love chocolate and when 'er indoors said that she'd heard of chocolate with Marmite I was more than keen to try some. Now I wish I hadn't as, while the idea is pretty good, the reality is not so much, not to my mind anyway!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4773155976082544820?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4773155976082544820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2012/01/king-prawn-curry-egg-fried-rice-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4773155976082544820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4773155976082544820'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2012/01/king-prawn-curry-egg-fried-rice-and.html' title='King Prawn Curry, Egg-Fried Rice And A Portion Of Chips, Please.'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-107944274336193498</id><published>2011-12-07T18:34:00.000Z</published><updated>2011-12-07T18:34:44.161Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'>Rummaging and Pilfering</title><content type='html'>&lt;p&gt;I've written about Travelodge &lt;a href="http://drmsite.blogspot.com/2011/05/travelodge-city-road-london-not.html"&gt;before&lt;/a&gt;, in the previous context I was doing some training for work in London and didn't want to cost them too much money so chose Travelodge. This time I was also conscious of money - not because we're cheap but because I'm almost a stereotypical Yorkshireman - again I'm doing some training for work so Travelodge it was. After all, not all Travelodges can be as utterly crap as the one in London I stayed in last time can they?&lt;/p&gt;&lt;p&gt;You know where this is going don't you?&lt;/p&gt;&lt;p&gt;I'm in the process of giving up smoking but in the meantime I'm reducing my consumption by the use of e-fags from &lt;a href="http://www.totallywicked-eliquid.co.uk/"&gt;Totally Wicked&lt;/a&gt; and as a result the paraphernalia involved gets quite bulky, what with charging equipment for USB, mains and 12V, spare-parts and various e-liquids. So I keep it all in a lovely hessian bag, which I guess is a re-purposed hand-bag curtesy of 'er-indoors.&lt;/p&gt;&lt;p&gt;Thing is that each and every evening I've come back to rest my head after it being crammed full of &lt;a href="http://certification.salesforce.com/Developers"&gt;SalesForce Developer Stuff&lt;/a&gt; and the bags been interfered with.&lt;/p&gt;&lt;p&gt;The first time I guessed it might have been knocked over but this evening a zip was left open and the nice needle I use to fill up the e-liquid container was missing... I can only guess why they want a blunt hyperdermic needle!&lt;/p&gt;&lt;p&gt;Needless to say I'll definitely not be going for the cheapest option next time, a little bit of privacy isn't too much to ask for is it? Thankfully I'm with &lt;a href="http://www.buzzmachine.com/"&gt;Jeff Jarvis&lt;/a&gt; in regards to privacy these days and so live my life in the full expectation that it's lived fully in public... bloody boring too!&lt;/p&gt;&lt;p&gt;Humph!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-107944274336193498?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/107944274336193498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/12/rummaging-and-pilfering.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/107944274336193498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/107944274336193498'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/12/rummaging-and-pilfering.html' title='Rummaging and Pilfering'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6617175422620321634</id><published>2011-11-23T08:11:00.002Z</published><updated>2011-11-23T08:11:26.471Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Quiz/Survey'/><title type='text'>No wikipedia allowed!</title><content type='html'>&lt;p&gt;Got this wrong and it cost us the wipe out round last night in the pub quiz at &lt;a href="http://gkpubs.co.uk/pubs-in-cambridge/green-dragon-pub/"&gt;The Green Dragon&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;If you know without checking &lt;a href="http://en.wikipedia.org"&gt;wikipedia&lt;/a&gt; then I'll be blown!&lt;/p&gt;&lt;p&gt;Who counts the journalist Sheena McDonald and Princess Margarita of Romania amongst his ex-girlfriends?&lt;/p&gt;&lt;p&gt;Hint: It's not &lt;a href="http://en.wikipedia.org/wiki/Russell_Brand"&gt;Russell Brand&lt;/a&gt; (which is who I thought it was, sorry chaps!).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6617175422620321634?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6617175422620321634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/11/no-wikipedia-allowed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6617175422620321634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6617175422620321634'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/11/no-wikipedia-allowed.html' title='No wikipedia allowed!'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7375039030554902299</id><published>2011-11-10T13:25:00.000Z</published><updated>2011-11-10T13:25:20.830Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Walter Zorn's ToolTip</title><content type='html'>&lt;p&gt;Well blow me!&lt;/p&gt;&lt;p&gt;Walter Zorn's tooltip is and was the bees knees in terms of tool tips and I used it extensively when I was doing my dissertation to provide context sensitive help to users. I tried to use it again recently but couldn't find his &lt;a href="http://www.walterzorn.de/en/tooltip/tooltip_e.htm"&gt;site&lt;/a&gt; despite it coming near the top of searches for tooltips. Then this morning I was looking for a similar thing to use at work but hopefully based on jQuery and I cam across this site (&lt;a href="http://www.figmentthinking.com/2009/12/08/walter-zorns-tooltip-with-a-jquery-twist/"&gt;Walter Zorn’s ToolTip with a JQuery Twist&lt;/a&gt;).&lt;/p&gt;&lt;p&gt;I found a reference to him being dead on and then found this on his site:&lt;/p&gt;&lt;quote&gt;Walter Zorn, the author of this homepage, died in 2009.&lt;br /&gt;
We, his familiy and friends decided to make this page available as a static page again for the friends of his homepages.&lt;br /&gt;
Please, be aware, that we didn’t create this homepage or any of its content, and therefore we are not able to give technical support.&lt;br /&gt;
Walter made the source codes publicly available under the LGPL license, so we expect that any usage of his programs will be in accordance to this license. Walter Zorns copyright notice must be untouched at all times, and must not be removed.&lt;/quote&gt;&lt;p&gt;What a bugger! I had a brief emial conversation with him about his tooltip and he struck me as a really nice bloke, R.I.P. Mr Zorn!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7375039030554902299?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7375039030554902299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/11/walter-zorns-tooltip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7375039030554902299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7375039030554902299'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/11/walter-zorns-tooltip.html' title='Walter Zorn&apos;s ToolTip'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1800072226589746727</id><published>2011-11-01T09:08:00.000Z</published><updated>2011-11-01T09:08:42.371Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>ACTA</title><content type='html'>&lt;iframe src="http://mediakit.laquadrature.net/embed/716?size=medium" 
style="width: 650px; height: 500px; border: 0; overflow: hidden" scrolling="no" frameborder="0"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1800072226589746727?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1800072226589746727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/11/acta.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1800072226589746727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1800072226589746727'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/11/acta.html' title='ACTA'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-137324225962636076</id><published>2011-10-24T14:24:00.000+01:00</published><updated>2011-10-24T14:24:54.715+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Just don't ask...</title><content type='html'>&lt;tt&gt;&lt;br /&gt;
0 @M1@ INDI&lt;br /&gt;
1 NAME Josef /Fritzl/&lt;br /&gt;
1 SEX M&lt;br /&gt;
1 FAMS @U1@&lt;br /&gt;
&lt;br /&gt;
0 @F1@ INDI&lt;br /&gt;
1 NAME Rosemarie /Fritzl/&lt;br /&gt;
1 SEX F&lt;br /&gt;
1 FAMS @U1@&lt;br /&gt;
&lt;br /&gt;
0 @F2@ INDI&lt;br /&gt;
1 NAME Elizabeth /Fritzl/&lt;br /&gt;
1 SEX F&lt;br /&gt;
1 FAMC @U1@&lt;br /&gt;
1 FAMS @U2@&lt;br /&gt;
&lt;br /&gt;
0 @F4@ INDI&lt;br /&gt;
1 NAME Paula /Fritzl/&lt;br /&gt;
1 SEX F&lt;br /&gt;
1 FAMC @U1@&lt;br /&gt;
&lt;br /&gt;
0 @F5@ INDI&lt;br /&gt;
1 NAME Doris /Fritzl/&lt;br /&gt;
1 SEX F&lt;br /&gt;
1 FAMC @U1@&lt;br /&gt;
&lt;br /&gt;
0 @M2@ INDI&lt;br /&gt;
1 NAME Gabriele /Fritzl/&lt;br /&gt;
1 SEX M&lt;br /&gt;
1 FAMC @U1@&lt;br /&gt;
&lt;br /&gt;
0 @M3@ INDI&lt;br /&gt;
1 NAME Joseph /Fritzl/&lt;br /&gt;
1 SEX M&lt;br /&gt;
1 FAMC @U1@&lt;br /&gt;
&lt;br /&gt;
0 @M4@ INDI&lt;br /&gt;
1 NAME Harald /Fritzl/&lt;br /&gt;
1 SEX M&lt;br /&gt;
1 FAMC @U1@&lt;br /&gt;
&lt;br /&gt;
0 @M5@ INDI&lt;br /&gt;
1 NAME Sepp /Fritzl/&lt;br /&gt;
1 SEX M&lt;br /&gt;
1 FAMC @U1@&lt;br /&gt;
&lt;br /&gt;
0 @F3@ INDI&lt;br /&gt;
1 NAME Kerstin /Fritzl/&lt;br /&gt;
1 SEX F&lt;br /&gt;
1 FAMC @U2@&lt;br /&gt;
&lt;br /&gt;
0 @M6@ INDI&lt;br /&gt;
1 NAME Stephan /Fritzl/&lt;br /&gt;
1 SEX M&lt;br /&gt;
1 FAMC @U2@&lt;br /&gt;
&lt;br /&gt;
0 @M7@ INDI&lt;br /&gt;
1 NAME Felix /Fritzl/&lt;br /&gt;
1 SEX M&lt;br /&gt;
1 FAMC @U2@&lt;br /&gt;
&lt;br /&gt;
0 @F6@ INDI&lt;br /&gt;
1 NAME Lisa /Fritzl/&lt;br /&gt;
1 SEX F&lt;br /&gt;
1 FAMC @U2@&lt;br /&gt;
&lt;br /&gt;
0 @F7@ INDI&lt;br /&gt;
1 NAME Monica /Fritzl/&lt;br /&gt;
1 SEX F&lt;br /&gt;
1 FAMC @U2@&lt;br /&gt;
&lt;br /&gt;
0 @M8@ INDI&lt;br /&gt;
1 NAME Alexander /Fritzl/&lt;br /&gt;
1 SEX M&lt;br /&gt;
1 FAMC @U2@&lt;br /&gt;
&lt;br /&gt;
0 @M9@ INDI&lt;br /&gt;
1 NAME Kind /Fritzl/&lt;br /&gt;
1 SEX M&lt;br /&gt;
1 FAMC @U2@&lt;br /&gt;
&lt;br /&gt;
0 @U1@ FAM&lt;br /&gt;
1 HUSB @M1@&lt;br /&gt;
1 WIFE @F1@&lt;br /&gt;
1 MARR&lt;br /&gt;
1 CHIL @F2@&lt;br /&gt;
1 CHIL @F4@&lt;br /&gt;
1 CHIL @F5@&lt;br /&gt;
1 CHIL @M2@&lt;br /&gt;
1 CHIL @M3@&lt;br /&gt;
1 CHIL @M4@&lt;br /&gt;
1 CHIL @M5@&lt;br /&gt;
&lt;br /&gt;
0 @U2@ FAM&lt;br /&gt;
1 HUSB @M1@&lt;br /&gt;
1 WIFE @F2@&lt;br /&gt;
1 MARR&lt;br /&gt;
1 CHIL @F3@&lt;br /&gt;
1 CHIL @M6@&lt;br /&gt;
1 CHIL @M7@&lt;br /&gt;
1 CHIL @F6@&lt;br /&gt;
1 CHIL @F7@&lt;br /&gt;
1 CHIL @M8@&lt;br /&gt;
1 CHIL @M9@&lt;br /&gt;
&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-137324225962636076?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/137324225962636076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/10/just-dont-ask.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/137324225962636076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/137324225962636076'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/10/just-dont-ask.html' title='Just don&apos;t ask...'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-931299200802225858</id><published>2011-10-20T09:21:00.001+01:00</published><updated>2011-10-24T09:59:00.979+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Accessing RDS using HeidiSQL</title><content type='html'>&lt;p&gt;Whilst looking at family-tree type things yesterday at work (it was for a work-based project, honest!) I remembered that my boss was looking at a way to administer our database on &lt;abbr title="Amazon's Relational Database service"&gt;RDS&lt;/abbr&gt;. After reading shed loads of documentation, which said that it couldn't be done or that you needed to jump through loads of hoops I managed it.&lt;/p&gt;&lt;p&gt;Basically what I had to do it connect to it via one of the instances we already have running on &lt;abbr title="Amazon Web Services"&gt;AWS&lt;/abbr&gt;.&lt;/p&gt;&lt;p&gt;When we log into RDS we use this command on one of the instances running in order to get access to the mysql commandline:&lt;/p&gt;&lt;tt&gt;mysql -u [username] -p[password] --database=[database name] --host=[location of RDS instance]&lt;/tt&gt;&lt;p&gt;So for instance when we use &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/"&gt;puTTY&lt;/a&gt; to log into our Development instance we issue the above command to get into the RDS instance - there doesn't seem to be a direct way of accessing it.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.heidisql.com/"&gt;HeidiSQL&lt;/a&gt; can understand that work-flow so in the Session manager of HeidiSQL create a new Session and call it "RDS" for example.&lt;/p&gt;&lt;p&gt;On the Settings tab select &lt;abbr title="Secure Shell"&gt;SSH&lt;/abbr&gt; tunnel as the Network Type, enter the host variable from the command detailed above into the Hostname / &lt;abbr title="Internet protocol"&gt;IP&lt;/abbr&gt; field (i.e. [location of RDS instance]). In our case User is [username] and Password is [password]. We'll keep Port as 3306, keep the Compressed client/server protocol tickbox ticked and enter [database name] in the Databases field.&lt;/p&gt;&lt;p&gt;Next click the SSH tunnel tab. Locate plink.exe on your hard drive or download it (handy link on the tab itself). The SSH host + port is the instance you just copied the command from. So for us it's [some subdomain].[some domain].com, port 22. Username is [not necessarily the same username as above] (the username you use to access the AWS instance). Leave the Password field blank and locate your ppk file (which you converted from your initial pem file using PuTTYgen.exe a &lt;a href="http://drmsite.blogspot.com/2011/01/setting-up-ubuntu-in-cloud-with.html"&gt;while ago&lt;/a&gt;). Leave the Local port as 3307.&lt;/p&gt;&lt;p&gt;Click Save and then Open and Bob's your Uncle and Fanny's your Aunt!&lt;/p&gt;&lt;p&gt;Happy browsing of the DB!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-931299200802225858?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/931299200802225858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/10/accessing-rds-using-heidisql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/931299200802225858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/931299200802225858'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/10/accessing-rds-using-heidisql.html' title='Accessing RDS using HeidiSQL'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7582918733938941829</id><published>2011-10-15T17:42:00.001+01:00</published><updated>2011-10-18T12:00:34.885+01:00</updated><title type='text'>Of demented cats and rapid mice</title><content type='html'>So her indoors is nigh on always late home from work, which drives me up the wall TBH, she's canny though and keeps track of all the time she's late and takes a day off here and there when the time owing accrues to allow it.&lt;br /&gt;
&lt;br /&gt;
She took yesterday off and did a grand job of servicing the engine on the boat.&lt;br /&gt;
Now the cat thinks we're just too stupid to be able to breath let alone hunt so every-so-often he decides to take pity on us and deliver us a mouse (if we're lucky) or a rat (if we're unlucky). Yesterday he decided her indoors needed some exercise while she was knee deep in the engine and covered in oil and goodness knows what (I'm not the most mechanically minded person, as you can tell), so he manages to find an old mouse outside, drops it by her, and saunters off so he can sit in the warm by the fire.&lt;br /&gt;
&lt;br /&gt;
Her indoors looks aghast at the mouse and the cat. The cat takes no notice as he's fallen asleep already but the mouse decides that humans aren't his favourite mammal so buggers off under the fridge.&lt;br /&gt;
&lt;br /&gt;
I get home and feed the cat and after her indoors gets back from visiting a friend we discuss the impending dementia of the daft bloody cat, deciding that we'll leave him be until he starts pissing all over the place.&lt;br /&gt;
&lt;br /&gt;
The evening progresses and off to bed we go but the cat decides that he'll pee where he normally pees, i.e. the engine room, and ends up falling between the boards looking for his litter tray. Once we extricate the daft bugger from between the planks I throw him out and try to settle to sleep.&lt;br /&gt;
&lt;br /&gt;
Sure enough I soon hear the pitter-patter of feet but I figure it can't be the cat as I've not heard the cat flap go. That's it, it must be a bloody great big rat! Lights go on and I look all over, find the cat asleep on his cushion by the fire (bugger knows how he got back in, he stomps about like a baby elephant most of the time).&lt;br /&gt;
&lt;br /&gt;
I'm getting ready to go back to bed when her indoors says she's seen the rat/mouse in the bedroom and it's heading in my direction!&lt;br /&gt;
&lt;br /&gt;
Righty-O, says I, no mouse'll get the better of me!&lt;br /&gt;
&lt;br /&gt;
I stoop down and catch the poor little bugger in my hands, he looks into my eyes, ponders what I'm about to do, pisses himself (unbeknownst to me) and bites down with all the force his little jaws can muster on the bit of flesh between my fore-finger and thumb!&lt;br /&gt;
&lt;br /&gt;
I let out a girly shriek and feel the warm liquid dripping down my arm and beg her indoors to open the front door so I can fling the rabid wild animal outside and try to get some relief before I bleed out (that there mice must have pissed it's own body volume as I'm not joking about the amount of liquid dripping all over).&lt;br /&gt;
&lt;br /&gt;
Mouse thrown I inspect the damage, no blood except where it's welling out of two holes in my palm but I'll be buggered if I get Weil's disease so her indoors goes all nurse and swabs my wounds with antiseptic.&lt;br /&gt;
&lt;br /&gt;
In the meantime all this fuss has upset the cat so he decides that the cushion is no longer good enough and nicks my place in the bed. His ire at being gently moved knows no bounds and he spends the remainder of the night dancing a polka on my head.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7582918733938941829?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7582918733938941829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/10/of-demented-cats-and-rapid-mice.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7582918733938941829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7582918733938941829'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/10/of-demented-cats-and-rapid-mice.html' title='Of demented cats and rapid mice'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6278686128440347083</id><published>2011-10-03T17:04:00.000+01:00</published><updated>2011-10-03T17:04:32.653+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'></title><content type='html'>Had the need to send a set of hex colour codes to a method which used them to create a chart using Google charts. The initial list was too short so that some of the colours ended up being repeated and the data became difficult to read. I pottered around the code base and "borrowed" some functionality from the boss. The following code is what I used to test it. By all means copy and paste it into a blank file and give it a try. Works a treat!&lt;br /&gt;
&lt;pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; &amp;lt;!DOCTYPE HTML&amp;gt;  
 &amp;lt;html&amp;gt;  
  &amp;lt;head&amp;gt;  
   &amp;lt;title&amp;gt;Palette Playing&amp;lt;/title&amp;gt;  
   &amp;lt;script type="text/javascript"&amp;gt;  
    var palette = "000000,0000FF,00FFFF,00FF00,FFFFFF,FF0000,FFFF00,FF00FF";  
    document.write(palette.split(',').splice(0, 4).join(','));  
   &amp;lt;/script&amp;gt;  
  &amp;lt;/head&amp;gt;  
  &amp;lt;body&amp;gt;  
  &amp;lt;/body&amp;gt;  
 &amp;lt;/html&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;This will produce "000000,0000FF,00FFFF,00FF00".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6278686128440347083?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6278686128440347083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/10/had-need-to-send-set-of-hex-colour.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6278686128440347083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6278686128440347083'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/10/had-need-to-send-set-of-hex-colour.html' title=''/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3070242527503806657</id><published>2011-08-01T10:25:00.000+01:00</published><updated>2011-08-01T10:25:10.026+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Tooth sucking isn't helping</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-5mg18MsRHkY/TjZwSnFwONI/AAAAAAAAHm4/Df95yJY0KQI/s1600/500px-Keep_Calm_and_Carry_On_Poster.svg.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="400" width="281" src="http://3.bp.blogspot.com/-5mg18MsRHkY/TjZwSnFwONI/AAAAAAAAHm4/Df95yJY0KQI/s400/500px-Keep_Calm_and_Carry_On_Poster.svg.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;(Cross posted at the &lt;a href="http://www.arcusglobal.com/blog/tooth-sucking-isnt-helping"&gt;Arcus Global Blog&lt;/a&gt;)&lt;/p&gt;&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/The_IT_Crowd"&gt;The &lt;abbr title="Information Technology"&gt;IT&lt;/abbr&gt; Crowd&lt;/a&gt; premiered when I had no TV nor any interest in one, I still have no TV but I do get DVD box-sets every now and again to watch at home. After getting the The It Crowd I was really quite excited but the audience at home simply weren't as in to it so it's still there sitting on a shelf waiting&amp;hellip;&lt;/p&gt;&lt;p&gt;The few episodes I watched though brought to the fore of my mind the idea that management hate IT &amp;mdash; this was certainly the case in my previous job where I heard that the IT department objected to having to support &lt;a href="http://en.wikipedia.org/wiki/Osx"&gt;OSX&lt;/a&gt; as the infrastructure they were supporting was generally &lt;a href="http://en.wikipedia.org/wiki/Microsoft"&gt;Microsoft&lt;/a&gt;-based. But the manager in question had seen some colleagues at a conference using a shiny new MacBook and had simple had to keep up &amp;mdash; but without appreciating that they'd have limited access to the infrastructure that they were used to without the IT department having to invest a significant amount of time and effort.&lt;/p&gt;&lt;p&gt;To an extent the infrastructure encouraged by &lt;a href="http://www.arcusglobal.com"&gt;Arcus&lt;/a&gt; is agnostic so such issues would be lessened but the principle remains.&lt;/p&gt;&lt;p&gt;To an extent that isn't really what I'm trying to discuss. Most reasonable managers would listen to the concerns of their IT department and act accordingly, assuming that the IT department made their concerns plain to management rather than adopt a bunker mentality and simple &lt;a href="http://en.wikipedia.org/wiki/Keep_Calm_and_Carry_On"&gt;Keep Calm and Carry On&lt;/a&gt;. The &lt;a href="http://www.bcs.org/"&gt;BCS&lt;/a&gt; seem to have an approach where they encourage IT staff to become much more involved in the strategic side of business rather than simply being an amorphous mass where requests are met with utterances which are either arcane in nature or follow along the lines of the teeth-sucking my wife meets when she goes to the garage (why the mechanics don't do the same to me is a mystery, I only learnt to drive a couple of years ago where she's probably been driving for longer than they've been alive).&lt;/p&gt;&lt;p&gt;A recent IT World &lt;a href="http://www.itworld.com/cloud-computing/174967/business-users-abandoning-it-quicker-self-serve-cloud-apps"&gt;article&lt;/a&gt; highlights this discord with the headline &lt;span style="font-weight:bold"&gt;&amp;ldquo;Why businesses move to the cloud: They hate IT&amp;rdquo;&lt;/span&gt;. Strong stuff ehh?.&lt;/p&gt;&lt;p&gt;A colleague, Louis, discussed this with me last week, and the article in IT World refreshed it in my mind. IT departments need to be ever-so-much more strategically and politically minded, something which isn't overly easy for people who're used to talking to computers rather than people. To an extent I'm lucky: I moved from talking to people to talking to computers &amp;mdash; but then again I find computers to be just as outrageously frustrating and mind-blowingly lovely as people.&lt;/p&gt;&lt;p&gt;The figures are frightening though, over two thirds of business managers say they keep funds to one side so that they can provision IT without the input of IT departments. The article goes on to say that if IT departments aren't careful then they run the risk of being left maintaining hardware and legacy systems rather than playing with cool new Cloud stuff. Being left in the dust rather than flying in the clouds (Sorry, it's a Monday morning and the purple prose it just oozing out here).&lt;/p&gt;&lt;p&gt;It's an interesting shift though isn't it? I guess at one point the business decided that having all this IT stuff provisioned internally was just cheaper than relying on some outside agency which they had no control over, now it may well be that that isn't totally the case anymore - the control might not be there but the cost saving certainly seems to be (I'm about to start work on a tool that'll illustrate these savings in a very real way). There was also an interesting paragraph which I can only assume was directed at IT departments:&lt;/p&gt;&lt;p style="font-style:italic"&gt;&amp;ldquo;If they wait so long researching cloud that their whole end-user constituency drains away from them to external IT providers, however, they lose the chance to maintain security and reliability at levels they prefer and justify their salaries for next year.&amp;rdquo;&lt;/p&gt;&lt;p&gt;I think we're living in interesting times, I guess your approach to change dictates whether this is a blessing or a &lt;a href="http://en.wikipedia.org/wiki/May_you_live_in_interesting_times"&gt;curse&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3070242527503806657?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3070242527503806657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/08/tooth-sucking-isnt-helping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3070242527503806657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3070242527503806657'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/08/tooth-sucking-isnt-helping.html' title='Tooth sucking isn&apos;t helping'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-5mg18MsRHkY/TjZwSnFwONI/AAAAAAAAHm4/Df95yJY0KQI/s72-c/500px-Keep_Calm_and_Carry_On_Poster.svg.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-938030329786775313</id><published>2011-07-29T15:37:00.000+01:00</published><updated>2011-07-29T15:37:05.830+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PDO mysql_num_rows equivalent</title><content type='html'>&lt;p&gt;So I'm re-doing a web app using &lt;abbr title="PHP Data Object"&gt;PDO&lt;/abbr&gt; rather than the built-in MySQL stuff as there seems to be a &lt;a href="http://www.phpclasses.org/blog/post/153-The-Plot-to-Kill-PHP-MySQL-Extension.html"&gt;possibility that the MySQL extension will be gone before too long&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Thing is I do a lot, and I mean a hell of a lot, of checking to see how many rows are returned after a &lt;a href="http://www.w3schools.com/sql/sql_select.asp"&gt;SELECT&lt;/a&gt;... and PDO doesn't support &lt;a href="http://php.net/manual/en/function.mysql-num-rows.php"&gt;mysql_num_rows&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;So after looking around I discovered that if I alter my &lt;abbr title="Structured Query Language"&gt;SQL&lt;/abbr&gt; I can check on one line thus:&lt;/p&gt;&lt;code&gt;$dbconn-&gt;query("SELECT COUNT(*) FROM `something` WHERE `condition` = 'something'")-&gt;fetchColumn()&lt;/code&gt;&lt;br /&gt;
&lt;p&gt;Which'll give me the number of matching records. I can then check that against a condition and carry on... or not as the case may be.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-938030329786775313?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/938030329786775313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/07/pdo-mysqlnumrows-equivalent.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/938030329786775313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/938030329786775313'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/07/pdo-mysqlnumrows-equivalent.html' title='PDO mysql_num_rows equivalent'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-2261825389006999724</id><published>2011-07-25T13:04:00.000+01:00</published><updated>2011-07-25T13:04:12.047+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Throwback</title><content type='html'>&lt;a title='By Vugluskr at en.wikipedia [Public domain or Public domain], from Wikimedia Commons' href='http://commons.wikimedia.org/wiki/File:Neanderthal_child.jpg'&gt;&lt;img width='240' alt='Neanderthal child' src='http://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Neanderthal_child.jpg/240px-Neanderthal_child.jpg'/&gt;&lt;/a&gt;&lt;p&gt;My Aunt Joan has always said I was something of a throwback, she said I was like a Viking or some other sort of big, gruff warrior type of geezer - though she always said I was a gentle giant type-thing as well. Looks like all us non-africans are to some extent according to &lt;a href="http://www.disinfo.com/2011/07/all-non-african-people-are-part-neanderthal/"&gt;this&lt;/a&gt; article I found on &lt;a href="http://www.disinfo.com"&gt;disinformation&lt;/a&gt; which discusses &lt;a href="http://io9.com/5822357/confirmed-all-non+african-people-are-part-neanderthal"&gt;this&lt;/a&gt; article on &lt;a href="http://io9.com"&gt;io9&lt;/a&gt; by &lt;a href="http://io9.com/people/AlasdairWilkins/"&gt;Alasdair Wilkins&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Except that I'm a throwback to a later period in history, which can only be good I guess... unless it means that everyone else has evolved further... ahh well, at least I'm not dragging my knucles along the ground!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-2261825389006999724?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/2261825389006999724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/07/throwback.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2261825389006999724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2261825389006999724'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/07/throwback.html' title='Throwback'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6512083430847719554</id><published>2011-07-25T08:21:00.000+01:00</published><updated>2011-07-25T08:21:41.424+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Rule 34</title><content type='html'>&lt;p&gt;So I got my present job on the back of an interview. It was an interview that was more like a conversation and I found myself interrupting Lars and him interrupting me as we discussed various technologies or approaches to programming. I got off my bike at &lt;a href="http://www.jbs.cam.ac.uk/"&gt;The Judge School&lt;/a&gt; after listening to &lt;a href="http://www.myspace.com/whourkr"&gt;WHOURKR&lt;/a&gt; (which I'd discovered via &lt;a href="http://transmissionzero.podomatic.com/"&gt;Transmission Zero&lt;/a&gt;) and I was hyped and sweating buckets thanks to cycling to the beat and being really quite excited. We got to talking and it was like I was entering a whole new world, a world where people didn't actively listen to me when I was rattling on about this IT stuff which got me so excited.&lt;/p&gt;&lt;p&gt;Reading Charles Stross is ever-so-much like this. I find myself having to put down my iPad (running &lt;a target="_blank"  href="http://www.amazon.com/Kindle-Wireless-Reader-Wifi-Graphite/dp/B002Y27P3M?ie=UTF8&amp;tag=thisthatandth-21&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;Kindle&lt;/a&gt;) and just laughing aloud at the way he's inserted some techno-speak into my head, and inserted it without having to go through the loops of having to explain it to me as I already &lt;a href="http://en.wikipedia.org/wiki/Grok"&gt;grok&lt;/a&gt; it.&lt;/p&gt;&lt;p&gt;My Ma loves his books too, particularly the &lt;a href="http://en.wikipedia.org/wiki/Charles_Stross#The_.22Bob_Howard_.E2.80.94_Laundry.22_series"&gt;Laundry&lt;/a&gt; series, and I guess he must do the same there as she's an avid reader of thriller and crime novels so I guess she gets the references to spy novels on an instinctive level as well - I too have read my fair share of John Le Carre and I get it too!&lt;/p&gt;&lt;p&gt;&lt;a target="_blank"  href="http://www.amazon.com/Rule-34-Charles-Stross/dp/0441020348?ie=UTF8&amp;tag=thisthatandth-21&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;Rule 34&lt;/a&gt; though, the follow up to &lt;a target="_blank"  href="http://www.amazon.com/Halting-State-Ace-Science-Fiction/dp/0441016073?ie=UTF8&amp;tag=thisthatandth-21&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;Halting State&lt;/a&gt;, is superb! I guess I shouldn't really be reviewing it as I've not quite finished, but there was at least two moments last night where the iPad went down and I just had to sit back and appreciate how he'd got into my head.&lt;/p&gt;&lt;p&gt;Well done Sir!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6512083430847719554?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6512083430847719554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/07/rule-34.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6512083430847719554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6512083430847719554'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/07/rule-34.html' title='Rule 34'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-89609697515494141</id><published>2011-07-20T13:56:00.000+01:00</published><updated>2011-07-20T13:56:21.083+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP float to money and back again</title><content type='html'>&lt;p&gt;So I've a need of converting a float from a MySQL query into a currency value so it'll print nicely. THis works a treat:&lt;/p&gt;&lt;code&gt;$dosh = number_format($float, 2);&lt;/code&gt;&lt;p&gt;But bringing it back into the table means I searched and found this way:&lt;/p&gt;&lt;code&gt;$float = (float) str_replace(',', '', $dosh);&lt;/code&gt;&lt;p&gt;Seemed to work a treat TBH ;-)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-89609697515494141?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/89609697515494141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/07/php-float-to-money-and-back-again.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/89609697515494141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/89609697515494141'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/07/php-float-to-money-and-back-again.html' title='PHP float to money and back again'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3886228462533515249</id><published>2011-07-17T12:25:00.001+01:00</published><updated>2011-07-20T13:57:23.561+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Progress Bar written in PHP using GD and TTF fonts</title><content type='html'>&lt;p&gt;So I had a need of a progress bar to show the user their progress through a series of pages filling in data. I'm sure I'd seen something similar before but I wanted to do it myself - what's more I wanted to use the type-face that I'd used for the rest of the site.&lt;/p&gt;&lt;p&gt;The following script can be called whatever you want but does require a few parameters in it's calling. The parameters are &lt;code&gt;width&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt; and &lt;code&gt;percentage&lt;/code&gt;. The width and height are the dimension of the required image in &lt;abbr title="Pixel"&gt;px&lt;/abbr&gt;.&lt;/p&gt;&lt;p&gt;It does require that a typeface be discoverable - it might be best to have the typeface in the same directory as the script, at least that works for me. It's a little down and dirty and doesn't do any checking - which is should really, especially for the existance of the correct GD library and the correct parameters etc...&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#a65700; background:#ffffe8; '&gt;&amp;lt;?php&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$percentage&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$_GET&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;[&lt;/span&gt;&lt;span style='color:#0000e6; background:#ffffe8; '&gt;'percentage'&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;]&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$width&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$_GET&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;[&lt;/span&gt;&lt;span style='color:#0000e6; background:#ffffe8; '&gt;'width'&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;]&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$height&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$_GET&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;[&lt;/span&gt;&lt;span style='color:#0000e6; background:#ffffe8; '&gt;'height'&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;]&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagecreate&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$width&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$height&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imageantialias&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$my_img&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#800000; background:#ffffe8; font-weight:bold; '&gt;true&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$black&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagecolorallocate&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$white&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagecolorallocate&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;255&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;255&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;255&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$grey&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagecolorallocate&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;204&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;204&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;204&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$lGrey&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagecolorallocate&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;221&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;221&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;221&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagefilledrectangle&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$width&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$height&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$black&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagefilledrectangle&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;1&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;1&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$width&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;-&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$height&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;-&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$white&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagefilledrectangle&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;1&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;1&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$percentage&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;/&lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;100&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;*&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$width&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;-&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$height&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;-&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$grey&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$percentage&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;.&lt;/span&gt;&lt;span style='color:#0000e6; background:#ffffe8; '&gt;" %"&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$font&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#0000e6; background:#ffffe8; '&gt;'Gothicb.TTF'&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$font_size&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;12&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text_box&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagettfbbox&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$font_size&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$font&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text_width&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text_box&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;[&lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;]&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;-&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text_box&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;[&lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;]&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text_height&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text_box&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;[&lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;7&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;]&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;-&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text_box&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;[&lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;1&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;]&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$x&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$width&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;/&lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;-&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text_width&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;/&lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$y&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;=&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$height&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;/&lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;-&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text_height&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;/&lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagettftext&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;12&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$x&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;+&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;1&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$y&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;+&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;1&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$lGrey&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$font&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagettftext&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;12&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#008c00; background:#ffffe8; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$x&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$y&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$black&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$font&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;,&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt; &lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$text&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;header&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; background:#ffffe8; '&gt;"Content-type: image/png"&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagepng&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagecolordeallocate&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$black&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagecolordeallocate&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$white&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagecolordeallocate&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$grey&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagecolordeallocate&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$lGrey&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#000000; background:#ffffe8; '&gt;&amp;#xa0;&amp;#xa0;&lt;/span&gt;&lt;span style='color:#400000; background:#ffffe8; '&gt;imagedestroy&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;(&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;$progress&lt;/span&gt;&lt;span style='color:#808030; background:#ffffe8; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; background:#ffffe8; '&gt;;&lt;/span&gt;&lt;span style='color:#000000; background:#ffffe8; '&gt;&lt;/span&gt;
&lt;span style='color:#a65700; background:#ffffe8; '&gt;?&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3886228462533515249?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3886228462533515249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/07/progress-bar-written-in-php-using-gd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3886228462533515249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3886228462533515249'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/07/progress-bar-written-in-php-using-gd.html' title='Progress Bar written in &lt;abbr title=&quot;PHP: Hypertext Preprocessor&quot;&gt;PHP&lt;/abbr&gt; using &lt;abbr title=&quot;Graphics Draw&quot;&gt;GD&lt;/abbr&gt; and &lt;abbr title=&quot;TrueType Font&quot;&gt;TTF&lt;/abbr&gt; fonts'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-5410578633742151408</id><published>2011-07-14T14:53:00.000+01:00</published><updated>2011-07-14T14:53:55.666+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Bacon Ipsum</title><content type='html'>&lt;a href="http://baconipsum.com/"&gt;Just too cool!&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-5410578633742151408?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/5410578633742151408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/07/bacon-ipsum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5410578633742151408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5410578633742151408'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/07/bacon-ipsum.html' title='Bacon Ipsum'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7681721901676183199</id><published>2011-07-10T09:28:00.000+01:00</published><updated>2011-07-10T09:28:01.570+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>R.I.P News of the Screws</title><content type='html'>&lt;p&gt;So this week the news has been full of the News of the Screws phone hacking thing. I'm not overly sure that such misuse of the term "hacking" is appropriate &amp;mdash; from my somewhat limited understanding it was merely a question of investigators using the default passcode to listen to a mobile phone users voice mail&amp;#8230;?&lt;/p&gt;&lt;p&gt;Whether that deserves the application of the term "hacking" rather than simply being "sneaky" I'm not too sure, neither am I sure that the victims of the alleged hacking aren't overly sensible &amp;mdash; surely if everyone was given the same &lt;abbr title="Personal identification number"&gt;pin&lt;/abbr&gt; when issued a debit/credit card they would take the first opportunity to change that there pin wouldn't they? Not 100% analagous but I think it's similar enough to bear consideration.&lt;/p&gt;&lt;p&gt;Anyway&amp;#8230; so News International decided to sweeten things by closing down the News of the Screws early (what's the betting that the Sun on Sunday was going to be launched soon anyway &amp;mdash; and what's the betting that it'll have a similar roll to the News of the World as well?), not least because they're trying to take over BSkyB and want to avoid any hint of scandal as well as show proper contrition.&lt;/p&gt;&lt;p&gt;That does leave us with something of a quandary about privacy though&amp;#8230; not too long ago the news was full of super-injunctions &amp;mdash; the method by which the rich and/or famous were able to keep their actions out of the press &amp;mdash; and the furore that that evoked when made public. Now we've got allegations of investigators using underhand/sneaky methods of obtaining information which anyone else could obtain if they had a total dis-regard for the privacy of others and a morality bypass.&lt;/p&gt;&lt;p&gt;We've also got the promise that the coalition will launch an enquiry &amp;mdash; does anyone else see the link here?&lt;/p&gt;&lt;p&gt;Admittedly I'm something of a conspiracy-theory aficionado but wouldn't it be interesting if we threw the baby out with the bath-water when the enquiry returns suggestions that privacy be upped a notch, thus doing away with the requirement for super-injunctions?&lt;/p&gt;&lt;p&gt;What if, by our own carelessness, we ushered in stricter privacy laws in order to protect those of us who're too trusting or not technically savvy enough to change their pin?&lt;/p&gt;&lt;p&gt;I don't know about the legality of the phone "hacking", though I suspect it isn't particularly legal, but I do know that the next time our Dear Leader has a meeting with &amp;mdash; just as a for-instance &amp;mdash; Rupert Murdoch or &amp;mdash; another for-instance &amp;mdash; Rebekah Brooks then I'd like to be told! I dare say though, that in the future such reporting might be considered illegal and we'd all be the poorer for it being so.&lt;/p&gt;&lt;p&gt;I'm not defending the News of the Screws (though I did sort of enjoy reading it on a night-shift) but I am wary about what this might lead to &amp;mdash; if anything I really, really don't want legislation to be created as a result, rather I'd like less legislation. I'd like people to be a little more aware of their responsibilities in regards to their own security. I'd really, really like News International to lose all investment and market share &amp;mdash; I for one am thinking of boycotting anything which advertises in those outlets, I'd suggest that others do as well, I just need a register of who advertises with them now&amp;#8230;? (Just hope it's not Tesco or I'll starve!)&lt;/p&gt;&lt;p&gt;Buying anything from News International is something I'll also avoid now! Thankfully I don't buy a paper but what else do they do?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7681721901676183199?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7681721901676183199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/07/rip-news-of-screws.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7681721901676183199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7681721901676183199'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/07/rip-news-of-screws.html' title='R.I.P News of the Screws'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6187710938080049908</id><published>2011-06-26T16:29:00.000+01:00</published><updated>2011-06-26T16:29:15.171+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'>Chased by a herd of cows</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-JaiTtHsWVtc/TgdP_2Zu0TI/AAAAAAAAHjM/YpyGy-uowdw/s1600/%255B000025%255D.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/-JaiTtHsWVtc/TgdP_2Zu0TI/AAAAAAAAHjM/YpyGy-uowdw/s320/%255B000025%255D.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;I've mentioned before the penchant 'er-indoors has for things that make odd, often random, noises &lt;a href="http://drmsite.blogspot.com/2010/03/attacked-b-terminator.html"&gt;here&lt;/a&gt;. Thankfully there is no longer a killer machine in the bathroom! Ohh no, I'm safe from being annihilated by Summer Glau (imagine me rubbing my thighs and leering wickedly right about now)... now I've got to contend with being chased by cows!&lt;/p&gt;&lt;p&gt;For some reason, only know to 'er, she decided that it'd be useful to have the SatNav moo when the car is going over the speed limit!&lt;/p&gt;&lt;p&gt;I've given up trying to understand quite why she does these things... perhaps it's because she's just had a speeding ticket (that makes 2 now)? As I say, I don't want to know why she did it, I just want to know how to turn it off as, whenever I'm in the car, it sounds like I'm being chased by a herd of cows - a herd of cows actually in the car!&lt;/p&gt;&lt;p&gt;Yesterday though I solved the problem, yesterday I realised that it only moos when you go over the limit, it doesn't keep on mooing while you're over the limit, just when you go over a given threshold. Happy days are here with consistant speeding!&lt;/p&gt;&lt;p&gt;Either that or I could keep within the speed limit?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6187710938080049908?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6187710938080049908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/06/chased-by-herd-of-cows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6187710938080049908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6187710938080049908'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/06/chased-by-herd-of-cows.html' title='Chased by a herd of cows'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-JaiTtHsWVtc/TgdP_2Zu0TI/AAAAAAAAHjM/YpyGy-uowdw/s72-c/%255B000025%255D.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-2853153364425240707</id><published>2011-06-04T08:24:00.002+01:00</published><updated>2011-06-04T08:24:58.363+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'></title><content type='html'>So on Wednesday I went to empty my loo. Once or twice a week a put a full cassette of waste on the back of my bike, sling my pannier on my shoulder, and ride 20 minutes or so up the river bank and empty our effluent into the sluice at Jesus Green. &lt;br /&gt;
&lt;br /&gt;
I've been doing this for more years than I care to remember and now we've 3 cassettes I can afford to be a little blasé about my routine. Wednesday though I had only a little amount of stuff to put in the pannier so thought that it'd be a good day to empty the cassette. &lt;br /&gt;
&lt;br /&gt;
Anyway I got there and found the door to the sluice open. This is annoying but fair enough as the lock has been broken for a while and after phoning the Cambridge City Council and complaining about it once to be confronted with it being replaced with a lock which no one had a key to I've come to the conclusion that, at the end of the day, it's better to have a door which won't lock than a door which won't open. &lt;br /&gt;
&lt;br /&gt;
I do though, every time I go past and notice it swinging open, use a dog end to wedge it shut. Not the best solution I know, but security through deception is better than no security at all.&lt;br /&gt;
&lt;br /&gt;
I emptied my loo but nothing went down the sluice (that might not be the correct phrase - coming from the world of nursing as I do though - it looks a lot like a sluice in a hospital), but it wouldn't go down! Not only would it not go down but it started bubbling and splashing all over the shop! I've not got the most robust nature when it comes to bodily fluids at the best of times but I challenge anyone to be relaxed at a pot of shite bubbling and splashing! &lt;br /&gt;
&lt;br /&gt;
I've got a thing whereby I choke if anything constructs my chest or neck, even to a minuscule degree so I'm doubled up and dry heaving from the pannier being around my shoulder and then these's some sort of gelatinous bubbling monster growling at me from the pan smelling like we've been eating dead things for the past half week! Not nice!&lt;br /&gt;
&lt;br /&gt;
So I leave the sluice without rinsing out the cassette - which I like to do so that we're at least pretending to be hygienic - and phone the Cambridge City Council again to suggest that someone unblock the sluice. They assure me that someone will do so and take my phone number. Come the end of the day and no phone call so I check anyway. Guess what? Still a bubbling brown mess in the pan (what had I been eating?) and a handwritten note from another boater saying that s/he too had phoned the council at 14:00hrs and been assured that the problem would be resolved in a couple of hours. It was 3 hours later when I came past.&lt;br /&gt;
&lt;br /&gt;
I pay my mooring fee and I welcomed the Cam Conservancy when they visited boats with the Environment Agency and talked about the importance of not emptying effluent into the Cam. I've been faithfully emptying mine into the sluice, as I've already said, for more years than I care to remember. Cambridge attracts an awful lot of visitors on boats and the boating community is a vibrant part of life in Cambridge. you'd think that making it possible for locals and visitors both to not put our shit in the river would be an important thing for the Council to understand. &lt;br /&gt;
&lt;br /&gt;
Guess not.&lt;br /&gt;
&lt;br /&gt;
Saturday morning and I've been up there again with a full cassette and nothing happening! I've come back with it full because, frankly, I can't be doing with heaving again. Strawberry Fair is on today and I want to save my heaving for the beer tent later on! &lt;br /&gt;
&lt;br /&gt;
Perhaps I'll phone again on Monday and suggest that when they unblock the loo they might want to look at fixing the lock so that random piss-heads wandering on Jesus Green can't decide to shove random crap down the sluice and block it again... At least I assume that that is what happened!&lt;br /&gt;
&lt;br /&gt;
To an extent I'm all for the big society but after clearing  shite professionally for donkey's years I draw the line at unblocking drains filled with shite and goodness knows what other shite (see what I did there?). Running the risk of getting a needle-stick injury at my age is no fun at all.&lt;br /&gt;
&lt;br /&gt;
We've a cassette and a half empty so I'm hoping that it'll be fixed by the end of next week or I'm not sure what I'll do. Perhaps I should start flinging it in the river or throwing it at the coaches using loudhailers outside the boat at 06:00hrs? Perhaps it should join the cow crap all over Stourbridge Common... I could even dry it out on the roof and burn it when it gets cold on an evening?&lt;br /&gt;
&lt;br /&gt;
Anyway, rant over. I'll keep you updated.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-2853153364425240707?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/2853153364425240707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/06/so-on-wednesday-i-went-to-empty-my-loo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2853153364425240707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2853153364425240707'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/06/so-on-wednesday-i-went-to-empty-my-loo.html' title=''/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1488162851872058028</id><published>2011-05-27T09:04:00.000+01:00</published><updated>2011-05-27T09:04:17.181+01:00</updated><title type='text'>100%</title><content type='html'>&lt;p&gt;100% on &lt;a href="http://www.nintendo.co.uk/NOE/en_GB/games/nintendo_3ds/legoreg_pirates_of_the_caribbean_the_video_game_32649.html"&gt;LEGO® Pirates of the Caribbean The Video Game&lt;/a&gt;. Now what to do?&lt;/p&gt;&lt;p&gt;Can't play &lt;a href="http://itunes.apple.com/us/app/plants-vs-zombies-hd/id363282253?mt=8"&gt;Plants vs. Zombies&lt;/a&gt; anymore as 'er-in-doors has taken my iPad away to play it!&lt;/p&gt;&lt;p&gt;Guess that means I'll have to code now, that and investigate the &lt;a href="http://www.infoworld.com/d/application-development/javascript-conquers-the-server-969"&gt;coolness&lt;/a&gt; that is &lt;a href="http://nodejs.org/"&gt;Node.js&lt;/a&gt;! Think that I'll try and get it to parse &lt;abbr title="eXtensible Markup Language"&gt;XML&lt;/abbr&gt; based web services and throw out &lt;abbr title="JavaScript Object Notation"&gt;JSON&lt;/abbr&gt;...? That'd be cool, especially if I could do some caching on the server... ho hum!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1488162851872058028?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1488162851872058028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/05/100.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1488162851872058028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1488162851872058028'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/05/100.html' title='100%'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-5739715070487112678</id><published>2011-05-05T21:41:00.003+01:00</published><updated>2011-05-05T21:41:53.710+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'>Travelodge - City Road, London. Not Priceless</title><content type='html'>&lt;p&gt;A room that smells of piss, a bath only big enough for my feet, a room key that wouldn't work, 'orrible young people and ladies of negotiable affection being in the - I use the term loosely - hotel, not having my phone charger, taps that give me a shower when I want to turn them off, boarded up slums outside my window, utter shite on the telly, and internet connection form the darkest days of dialup, one of the nastiest pubs and a Tesco's Express outside... all these things, and so many more, make this quite possibly, not in the least priceless.&lt;/p&gt;&lt;p&gt;At least I'm not paying for it... ;-)&lt;/p&gt;&lt;p&gt;That and the Tesco's Express selling pre-mixed JD and coke, minus the calls from work as something died yesterday, means that I'm not an overly happy camper!&lt;/p&gt;&lt;p&gt;Still, the &lt;a href="http://aws.amazon.com"&gt;AWS&lt;/a&gt; Deep Dive training means that I'm not terminally suicidal!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-5739715070487112678?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/5739715070487112678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/05/travelodge-city-road-london-not.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5739715070487112678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5739715070487112678'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/05/travelodge-city-road-london-not.html' title='Travelodge - City Road, London. Not Priceless'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3408792533714293574</id><published>2011-05-03T14:33:00.004+01:00</published><updated>2011-05-03T14:39:14.602+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>CSS shorthand</title><content type='html'>&lt;p&gt;There's all sorts of &lt;abbr title="Cascading Style Sheet"&gt;CSS&lt;/abbr&gt; shorthand available online and I get confused easily. This is what is meant by the differing formats of CSS shorthand:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;.someClass { padding: [top], [right], [bottom], [left] }&lt;/li&gt;
&lt;li&gt;.someClass { padding: [top], [right &amp;amp; left], [bottom] }&lt;/li&gt;
&lt;li&gt;.someClass { padding: [top &amp;amp; bottom], [right &amp;amp; left] }&lt;/li&gt;
&lt;li&gt;.someClass { padding: [top, right, bottom &amp;amp; left] }&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;So we can have 1, 2, 3 or 4 entries after the property, this is represented in the list above by square brackets, these can be whatever your chosen values are (e.g. px, em, % etc.)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3408792533714293574?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3408792533714293574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/05/css-shorthand.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3408792533714293574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3408792533714293574'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/05/css-shorthand.html' title='CSS shorthand'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4745407275616412880</id><published>2011-04-14T13:46:00.000+01:00</published><updated>2011-04-14T13:46:53.214+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Graphics'/><title type='text'>Cracking images</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;img border="0" height="400" width="253" src="http://drmsite.com/pictures/gif/disneySins.gif" /&gt;&lt;/div&gt;&lt;p&gt;Cracking &lt;a href="http://chill07.deviantart.com/art/The-Seven-Disney-Sins-192003861"&gt;sinful&lt;/a&gt; images from &lt;a href="http://chill07.deviantart.com/"&gt;chill07&lt;/a&gt; via &lt;a href="http://www.whokilledbambi.co.uk/2011/03/the-seven-disney-sins/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+WhoKilledBambicouk+%28who+killed+bambi%3F%29&amp;utm_content=Google+Reader"&gt;who killed bambi?&lt;/a&gt;.&lt;/p&gt;&lt;/p&gt;Also found another, &lt;a href="http://pat7.deviantart.com/art/The-Seven-Virtues-192127336"&gt;virtuous&lt;/a&gt;, set by &lt;a href="http://pat7.deviantart.com/"&gt;pat7&lt;/a&gt;:&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;img border="0" height="400" width="256" src="http://drmsite.com/pictures/gif/disneyVirtues.gif" /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4745407275616412880?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4745407275616412880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/04/cracking-images.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4745407275616412880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4745407275616412880'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/04/cracking-images.html' title='Cracking images'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-8989173480563751906</id><published>2011-04-04T09:07:00.000+01:00</published><updated>2011-04-04T09:07:01.162+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Castles in the air</title><content type='html'>&lt;p&gt;In a previous life I was a psychiatric nurse. whilst I was doing my training I came across a cool quote to do with neurotics, psychotics and psychiatrists. I'll repeat it below. It's attributed to Jerome Lawrence, a famous American author and playwright.&lt;/p&gt;&lt;blockquote&gt;"A neurotic is a man who builds a castle in the air. A psychotic is the man who lives in it. A psychiatrist is the man who collects the rent."&lt;/blockquote&gt;&lt;p&gt;Now in a previous life my Dad was a structural engineer. One of the things he used to say about his job was that when architects came up with a cool looking design for a building the structural engineer would take those pretty pictures and make sure the finished, pretty, building wouldn't fall down.&lt;/p&gt;&lt;p&gt;What, you may be wondering, is what my old man's and my previous jobs has to do with what I'm doing now in terms of being a developer...&lt;/p&gt;&lt;p&gt;Well, I'm tasked with making things work, I'm not always privy to the decisions that go into why they should work, but I have to make them work!&lt;/p&gt;&lt;p&gt;This is lovely!&lt;/p&gt;&lt;p&gt;I get told to do something, sometimes I get told what techniques to use to do that thing - more often than not I get to decide what techniques I get to use.&lt;/p&gt;&lt;p&gt;So I go off and to that thing. If it's a web-app I get to decide on what mix of server- and client-side technolgies to use... being something of a fan of ajax I usually plump for JavaScript.&lt;/p&gt;&lt;p&gt;I use JavaScript just so long as it doesn't slow me down too much. I'll write a script that takes every element of a page which needs content and get it dynamically, until I'm making something silly like 150 ajax calls, and then I'll realise that the server would be better off making those calls before the page ever reaches the client. PHP on the server is an order of magnitude quicker than JavaScript on the client!&lt;/p&gt;&lt;p&gt;Thus I get to my theory of gradual optimisation. Do something so that it works - it might not be pretty but it'll work - and then squeeze every last bit of it until it's a lean, mean, web-app. That'll often mean making changes to the page structure so that the bits that were filled in dynamically are removed if there's nothing to process but hey-ho!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-8989173480563751906?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/8989173480563751906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/04/castles-in-air.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8989173480563751906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8989173480563751906'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/04/castles-in-air.html' title='Castles in the air'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4406168120458452461</id><published>2011-03-04T10:44:00.000Z</published><updated>2011-03-04T10:44:29.739Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Random Minute Generator</title><content type='html'>&lt;p&gt;Had a need to turk some numbers for putting into a DATETIME field in MySQL so came up with this little script for generating a set of minutes:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#004a43; '&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" &lt;/span&gt;
&lt;span style='color:#004a43; '&gt;&amp;#xa0;&amp;#xa0;&amp;#xa0;"&lt;/span&gt;&lt;span style='color:#5555dd; '&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&lt;/span&gt;&lt;span style='color:#004a43; '&gt;"&gt;&lt;/span&gt;
&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;html&lt;/span&gt;&lt;span style='color:#274796; '&gt; xmlns&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"http://www.w3.org/1999/xhtml"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;lang&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"en"&lt;/span&gt;&lt;span style='color:#274796; '&gt; xml:&lt;/span&gt;&lt;span style='color:#074726; '&gt;lang&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"en"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
  &lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;head&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
    &lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;title&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;Random Minute Generator&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;title&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
    &lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;script type="text/javascript"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
      &lt;span style='color:#800000; font-weight:bold; '&gt;window&lt;/span&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;onload &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; addNumbers&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
        &lt;span style='color:#800000; font-weight:bold; '&gt;for&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; x &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#008c00; '&gt;0&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt; x &lt;span style='color:#808030; '&gt;&amp;lt;&lt;/span&gt; &lt;span style='color:#008c00; '&gt;217&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt; x&lt;span style='color:#808030; '&gt;++&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
          &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt; &lt;span style='color:#808030; '&gt;(&lt;/span&gt;document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;createTextNode&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
            &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; myNumber &lt;span style='color:#808030; '&gt;=&lt;/span&gt; Math&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;floor&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;Math&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;random&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;*&lt;/span&gt;&lt;span style='color:#008c00; '&gt;60&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#808030; '&gt;+&lt;/span&gt; &lt;span style='color:#008c00; '&gt;1&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
            &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;myNumber &lt;span style='color:#808030; '&gt;&amp;lt;&lt;/span&gt; &lt;span style='color:#008c00; '&gt;10&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
              myNumber &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;"0"&lt;/span&gt;&lt;span style='color:#808030; '&gt;+&lt;/span&gt;myNumber&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
            &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
            &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; myText&lt;span style='color:#808030; '&gt;=&lt;/span&gt;document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;createTextNode&lt;span style='color:#808030; '&gt;(&lt;/span&gt;myNumber&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
          &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
          document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;getElementById&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"myDiv"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;appendChild&lt;span style='color:#808030; '&gt;(&lt;/span&gt;myText&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
          &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; newLine&lt;span style='color:#808030; '&gt;=&lt;/span&gt;document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;createElement&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;'br'&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
          document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;getElementById&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"myDiv"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;appendChild&lt;span style='color:#808030; '&gt;(&lt;/span&gt;newLine&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
        &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
      &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
    &lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;script&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
  &lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;head&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
  &lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;body&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
    &lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;div&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;id&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"myDiv"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
    &lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;div&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
  &lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;body&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;html&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;Do enjoy if you use it and perhaps leave a comment...?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4406168120458452461?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4406168120458452461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/03/random-minute-generator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4406168120458452461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4406168120458452461'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/03/random-minute-generator.html' title='Random Minute Generator'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-5635900357167779479</id><published>2011-03-03T10:52:00.001Z</published><updated>2011-03-03T10:58:40.679Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Graphics'/><title type='text'>mod_expires on Ubuntu Server</title><content type='html'>&lt;p&gt;I love &lt;a href="http://getfirebug.com/"&gt;Firebug&lt;/a&gt;, it's really the only reason I use &lt;a href="http://www.mozilla.com/en-US/firefox/"&gt;Firefox&lt;/a&gt; rather than &lt;a href="http://www.google.com/chrome/"&gt;Chrome&lt;/a&gt; as my main browser.&lt;/p&gt;&lt;p&gt;I particularly like &lt;a href="http://code.google.com/p/page-speed/"&gt;Google's Page Speed&lt;/a&gt; add-on for Firebug - except that I always ended up scratching my head about the "Leverage browser caching" messages I heard. This hasn't been a major problem as I've usually been working on a shared server - so couldn't do anything about it. After setting up an &lt;a href="http://www.ubuntu.com/server"&gt;Ubuntu Server&lt;/a&gt; in &lt;a href="http://aws.amazon.com/ec2/"&gt;EC2&lt;/a&gt; however I realised that I could do something about it. After having a quick search around I found &lt;a href="http://www.absolutelytech.com/2010/08/02/howto-add-expire-headers-to-cache-static-files-using-htaccess/"&gt;this post on Absolutely Tech&lt;/a&gt; which led me to &lt;a href="http://www.absolutelytech.com/2010/08/02/howto-enable-or-disable-modules-in-apache/"&gt;this post on Absolutely Tech&lt;/a&gt; which enabled me to install mod_expires.&lt;/p&gt;&lt;p&gt;Basically the process I used was to check to see if mod_expires was installed using &lt;code&gt;phpinfo()&lt;/code&gt;, after realising that it wasn't I did &lt;code&gt;sudo a2enmod expires&lt;/code&gt; followed by &lt;code&gt;sudo /etc/init.d/apache2 restart&lt;/code&gt;. Now I can cache all the images on my site by adding this to .htaccess in my root directory:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;# Turn on the Expires engine
ExpiresActive On
 
# Expires a week after client accesses the file
ExpiresByType image/jpeg M604800
ExpiresByType image/gif M604800
ExpiresByType image/png M604800
ExpiresByType image/x-icon M604800
&lt;/pre&gt;&lt;p&gt;&lt;abbr title="Midland exclamation at an unexpectedly good outcome of a bad situation."&gt;Job's a good'un&lt;/abbr&gt;!&lt;/p&gt;&lt;p&gt;My next job is to check out &lt;a href="http://linuxpoison.blogspot.com/2010/11/configure-apache-http-server-with-mod.html"&gt;Google's mod_pagespeed&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-5635900357167779479?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/5635900357167779479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/03/modexpires-on-ubuntu-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5635900357167779479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5635900357167779479'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/03/modexpires-on-ubuntu-server.html' title='mod_expires on Ubuntu Server'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6026525006741090264</id><published>2011-02-17T14:01:00.000Z</published><updated>2011-02-17T14:01:15.083Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>New Tomb Raider?</title><content type='html'>&lt;p&gt;&lt;a href="http://www.google.co.uk/images?q=%22Olivia+Wilde%22"&gt;http://www.google.co.uk/images?q="Olivia+Wilde"&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6026525006741090264?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6026525006741090264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/02/new-tomb-raider.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6026525006741090264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6026525006741090264'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/02/new-tomb-raider.html' title='New Tomb Raider?'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1424474247223078164</id><published>2011-01-31T13:00:00.000Z</published><updated>2011-01-31T13:00:00.057Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Stormtrooper RIP</title><content type='html'>&lt;p&gt;Wow, just so cool!&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.flickr.com/photos/47018679@N02/5393129823/" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="197" src="http://farm6.static.flickr.com/5171/5393129823_41a201bc00.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1424474247223078164?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1424474247223078164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/stormtrooper-rip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1424474247223078164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1424474247223078164'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/stormtrooper-rip.html' title='Stormtrooper RIP'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm6.static.flickr.com/5171/5393129823_41a201bc00_t.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-5050463607434164884</id><published>2011-01-27T12:13:00.002Z</published><updated>2011-01-27T12:13:50.659Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>HTML Entities Decoder</title><content type='html'>&lt;p&gt;So I was looking for some some lyrics... can't actually remember why now &lt;abbr title="To Be Honest"&gt;TBH&lt;/abbr&gt;. When I found them the site I was on refused to let me copy them so I thought I'd be clever and check the source... only to discover that the individual characters in the lyrics had been converted into their respective &lt;a href="http://www.w3schools.com/tags/ref_ascii.asp"&gt;HTML Entities&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Arse!&lt;/p&gt;&lt;p&gt;I copied the lyrics anyway and googled for a way to convert HTML Entities back into characters and found a &lt;a href="http://tools.devshed.com/webmaster-tools/html-entities/"&gt;site&lt;/a&gt; that did what I wanted but with an overhead of having to do a &lt;abbr title="A CAPTCHA or Captcha is a type of challenge-response test used in computing to ensure that the response is not generated by a computer."&gt;Captcha&lt;/abbr&gt;... no fun!&lt;/p&gt;&lt;p&gt;So I wrote my own, the result is the &lt;a href="http://drmsite.com/pages/hTMLEntitiesDecode.html"&gt;HTML Entities Decoder&lt;/a&gt;. It uses jQuery and a nifty &lt;abbr title="JavaScript Object Notation"&gt;JSON&lt;/abbr&gt; object to do the calculation so I don't really feel the need to control access - enjoy!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-5050463607434164884?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/5050463607434164884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/html-entities-decoder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5050463607434164884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5050463607434164884'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/html-entities-decoder.html' title='HTML Entities Decoder'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1981233425564768204</id><published>2011-01-21T09:37:00.000Z</published><updated>2011-01-21T09:37:03.917Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Activated charcoal knickers... please!</title><content type='html'>&lt;p&gt;'er indoors, who very rarely is, has the most gad awful wind!&lt;/p&gt;&lt;p&gt;I'm not saying this just to be rude; I feel like I've got to justify myself as I've often been accused of smelling like a skunk - she takes the biscuit. Not only does she smell like a skunk she smells like a skunk crawled up there a month or two back and died due to the existing smell, adding it's own distinctive aroma to the original stench.&lt;/p&gt;&lt;p&gt;I'm saying this because, thanks to my insomnia, I was up at 03:30hrs working, I finished what I was doing at about 06:30hrs and decided to get a little more sleep.&lt;/p&gt;&lt;p&gt;I might have said this before but the feel of getting into a nice warm bed and spooning next to a lovely warm body is just about the best thing in the world to me.&lt;/p&gt;&lt;p&gt;I was loving it this morning as it'd got a little cold while I was up and the throw was atop the bed as well as the monstrous quilt but then...&lt;/p&gt;&lt;p&gt;A quick eruption of gas were not only heard, but felt on my upper legs. I'm not sure why - perhaps it's some sort of masochistic streak or something - but I wafted the quilt in order to sample the bouquet. How I wish I hadn't!&lt;/p&gt;&lt;p&gt;I remember as a kid getting into my parents bed when I was little on a Saturday morning and being somewhat comforted by the smell of my parents. This wasn't that smell!&lt;/p&gt;&lt;p&gt;This smell was almost indescribable in it's vileness, in fact it was indescribable! Imagine the worst smell you've ever smelt and double it and you'll be getting close!&lt;/p&gt;&lt;p&gt;As I'm gagging she starts to chortle and says, "You shouldn't have put your cold legs on mine"! She took no notice of my reasoning about reasonable force and continued to giggle!&lt;/p&gt;&lt;p&gt;Quickly clamping the quilt down I decided that that was that and I wasn't disturbing the quilt again as there was no way I was going to submit myself to that again! I was going to submit to voluntary cataplexy or some sort of self-induced sleep paralysis rather than risk a waft of that evil smell again. I was trying to calculate how long before the stench had either evaporated or been absorbed by the bedding (or eaten it's way into my pores) when a further two eruptions occurred! I wasn't aware that I could grab material that hard but there was no way I was going to relinquish my hold on the quilt, there was no way that more of the miasma was going to escape when...&lt;/p&gt;&lt;p&gt;"I'm getting up now, are you stopping there?", and it - and her - escaped!&lt;/p&gt;&lt;p&gt;Helped me get back to sleep for an hour though, I'm only grateful that I woke again at all!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1981233425564768204?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1981233425564768204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/activated-charcoal-knickers-please.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1981233425564768204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1981233425564768204'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/activated-charcoal-knickers-please.html' title='Activated charcoal knickers... please!'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-2293667757212006062</id><published>2011-01-14T10:12:00.000Z</published><updated>2011-01-14T10:12:31.823Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>What've you got installed?</title><content type='html'>&lt;p&gt;A colleague running OS X asked me to run this command on my Win 7 machine today in order to test an audit idea he had: &lt;code&gt;WMIC product &gt; wmic.txt&lt;/code&gt;, after a fair old wait I had a nice text file with a list of all the software installed on my machine... how cool!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-2293667757212006062?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/2293667757212006062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/whatve-you-got-installed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2293667757212006062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2293667757212006062'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/whatve-you-got-installed.html' title='What&apos;ve you got installed?'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3997373156260094278</id><published>2011-01-13T14:51:00.000Z</published><updated>2011-01-13T14:51:28.428Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>I'm hurt!</title><content type='html'>&lt;a href="http://dilbert.com/strips/comic/2011-01-07/" title="Dilbert.com"&gt;&lt;img src="http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/100000/00000/9000/700/109703/109703.strip.gif" border="0" alt="Dilbert.com" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3997373156260094278?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3997373156260094278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/im-hurt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3997373156260094278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3997373156260094278'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/im-hurt.html' title='I&apos;m hurt!'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-164253405011989187</id><published>2011-01-13T11:44:00.001Z</published><updated>2011-02-07T09:52:45.153Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='L/Unix'/><title type='text'>Simple backup of a directory on Ubuntu Server</title><content type='html'>&lt;p&gt;So I &lt;a href="http://drmsite.blogspot.com/2011/01/setting-up-ubuntu-in-cloud-with.html"&gt;set up an Ubuntu Server instance&lt;/a&gt; but need to backup my development folder on a regular basis. I've got &lt;abbr title="Secure Shell"&gt;SSH&lt;/abbr&gt; access so can access it via PuTTY and FileZilla. In PuTTY I use &lt;code&gt;tar -cvf [YYYYMMDD].tar [directory]/&lt;/code&gt;, when it's done I use &lt;code&gt;gzip [YYYYMMDD].tar&lt;/code&gt; and then use FileZilla to copy across the resulting [YYYYMMDD].tar.gz file.&lt;/p&gt;&lt;p&gt;Now I just need to remember to do this at the beginning and end of each day!&lt;/p&gt;&lt;p&gt;Or:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#696969; '&gt;#!/bin/bash&lt;/span&gt;
&lt;span style='color:#696969; '&gt;# declare DATE variable&lt;/span&gt;
theDATE&lt;span style='color:#808030; '&gt;=&lt;/span&gt;$&lt;span style='color:#800080; '&gt;(&lt;/span&gt;date +%Y%m%d&lt;span style='color:#800080; '&gt;)&lt;/span&gt;
tar -cvf $theDATE&lt;span style='color:#800000; font-weight:bold; '&gt;.&lt;/span&gt;tar www&lt;span style='color:#40015a; '&gt;/&lt;/span&gt;
gzip $theDATE&lt;span style='color:#800000; font-weight:bold; '&gt;.&lt;/span&gt;tar
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-164253405011989187?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/164253405011989187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/simple-backup-of-directory-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/164253405011989187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/164253405011989187'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/simple-backup-of-directory-on-ubuntu.html' title='Simple backup of a directory on Ubuntu Server'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-9147914016067121013</id><published>2011-01-06T13:17:00.002Z</published><updated>2011-01-06T16:34:32.152Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><title type='text'>XSS and the BOM (“ï»¿”)</title><content type='html'>&lt;p&gt;So I was working on a script to get the Latitude and Longitude from postcodes using Bing. I set up a simple page with a box where a postcode could be entered, Upon a button being pressed the postcode is checked using the fantastic &lt;a href="http://www.braemoor.co.uk/software/postcodes.shtml"&gt;UK Postcode Validation JavaScript&lt;/a&gt; by John Gardner. I then used &lt;a href="http://jquery.com/"&gt;jQuery&lt;/a&gt; to query Bing but ran into problems thanks to &lt;abbr title="Asynchronous Javascript And XML"&gt;ajax&lt;/abbr&gt; restrictions on cross site scripting, I got over that using a PHP proxy on the same domain that basically echoed the XML that I wanted originally. Thus:&lt;/p&gt;&lt;pre style="background: #ffffff; color: #000000"&gt;&lt;span style="background: #ffffe8; color: #a65700"&gt;&amp;lt;?php&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #400000"&gt;header&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;content-type: text/xml&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #400000"&gt;header&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;charset: utf-8&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$bingURI&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;  &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;http://dev.virtualearth.net/REST/v1/Locations/UK/&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$apiKey&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;   &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;?o=xml&amp;amp;key=yourKeyHere&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$file&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;     &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #400000"&gt;file_get_contents&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$bingURI&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #400000"&gt;rawurlencode&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$_GET&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;[&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'postcode'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;]&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$apiKey&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;echo&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$file&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #a65700"&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;All well and good except that there was a rather odd set of glyphs (ï»¿) at the beginning of the echoed XML… after a fair bit of searching I discovered that it was the &lt;abbr title="Byte Order Mark"&gt;&lt;a href="http://en.wikipedia.org/wiki/Byte-order_mark"&gt;BOM&lt;/a&gt;&lt;/abbr&gt;, whatever it was I didn't want it! After a little more searching I found &lt;a href="http://blog.philipp-michels.de/?p=32"&gt;this&lt;/a&gt; PHP function from Philipp Michels:&lt;/p&gt;&lt;pre style="background: #ffffff; color: #000000"&gt;&lt;span style="background: #ffffe8; color: #a65700"&gt;&amp;lt;?php&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;function&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; rmBOM&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$string&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;{&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;if&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #400000"&gt;substr&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$string&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #008c00"&gt;0&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #008c00"&gt;3&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #400000"&gt;pack&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;CCC&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #008000"&gt;0xef&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #008000"&gt;0xbb&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #008000"&gt;0xbf&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;{&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$string&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #400000"&gt;substr&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$string&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #008c00"&gt;3&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;}&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;return&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$string&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800080"&gt;}&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #a65700"&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Which worked a treat and allowed the XML to be parsed properly!&lt;/p&gt;&lt;p&gt;The result is here: &lt;a href="http://drmsite.com/postcode.html"&gt;http://drmsite.com/postcode.html&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-9147914016067121013?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/9147914016067121013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/xss-and-bom-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/9147914016067121013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/9147914016067121013'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/xss-and-bom-i.html' title='XSS and the BOM (“ï»¿”)'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3995678837455390466</id><published>2011-01-05T13:36:00.000Z</published><updated>2011-01-05T13:36:05.240Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Setting up Ubuntu in the cloud with ElasticFox, PuTTY and FileZilla</title><content type='html'>&lt;p&gt;My mornings work! &lt;abbr title="Your Mileage May Vary"&gt;YMMV&lt;/abbr&gt;, worked for me at time of posting!&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Install &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/"&gt;PuTTY&lt;/a&gt; and PuTTYgen from &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"&gt;http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Install &lt;a href="http://filezilla-project.org/"&gt;FileZilla&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Fire up &lt;a href="http://www.mozilla-europe.org/en/firefox/"&gt;Firefox&lt;/a&gt; and install &lt;a href="http://aws.amazon.com/developertools/609?_encoding=UTF8&amp;jiveRedirect=1"&gt;ElasticFox&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Re-start Firefox and feed ElasticFox your credentials.&lt;/li&gt;&lt;li&gt;Generate Key Pair on the &lt;b&gt;KeyPairs&lt;/b&gt; tab. Download the file and fire-up PuTTYgen.&lt;/li&gt;&lt;li&gt;In PuTTYgen hit &lt;b&gt;Conversions&lt;/b&gt; &amp;#187; &lt;b&gt;Import key&lt;/b&gt;. Select the downloaded .pem file then hit &lt;b&gt;Save private key&lt;/b&gt;, hit &lt;b&gt;Yes&lt;/b&gt; and save the .pkk file where you'll remember where it is.&lt;/li&gt;&lt;li&gt;In ElasticFox hit &lt;b&gt;Create Security Group&lt;/b&gt; (green plus on the left-hand side) on the &lt;b&gt;Security Groups&lt;/b&gt; tab. Give it a name and a description and select "I will authorise protocols for this group as needed", hit &lt;b&gt;Create Group&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;With your new group selected on the left-hand side hit &lt;b&gt;Grant Permissions&lt;/b&gt; (green tick on right-hand side). Select &lt;b&gt;SSH&lt;/b&gt; from the drop-down, select Network and enter 0.0.0.0/0 then hit &lt;b&gt;Add&lt;/b&gt;. Repeat but select &lt;b&gt;HTTP&lt;/b&gt; from the drop-down, again add 0.0.0.0/0 as the Network address.&lt;/li&gt;&lt;li&gt;Still in ElasticFox hit the &lt;b&gt;Images&lt;/b&gt; tab and enter "20101225" in the top-left text-box. Select the "ami-339ca947" image then hit &lt;b&gt;Launch Instance(s)&lt;/b&gt; (green start-up on top pane).&lt;/li&gt;&lt;li&gt;Select your Key Pair in the &lt;b&gt;KeyPair&lt;/b&gt; option and move over your Security Group to the right using the arrows below - but other ones apart from yours on the left.&lt;/li&gt;&lt;li&gt;Hit &lt;b&gt;Launch&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Instances&lt;/b&gt; tab right-click your instance and select &lt;b&gt;Copy Public DNS Name to clipboard.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Fire up PuTTY, crtl-v into &lt;b&gt;Host Name&lt;/b&gt;, on &lt;b&gt;Category&lt;/b&gt; pane select &lt;b&gt;SHH&lt;/b&gt; &amp;#187; &lt;b&gt;Auth&lt;/b&gt; then browse for you .pkk file. Finally go back to &lt;b&gt;Session&lt;/b&gt; on the &lt;b&gt;Category&lt;/b&gt; pane, enter a name into &lt;b&gt;Saved Sessions&lt;/b&gt; and hit &lt;b&gt;Save&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Open&lt;/b&gt; on PuTTY and if all went well then there should be &lt;abbr title="Command Line Interface"&gt;CLI&lt;/abbr&gt;. Login as "ubuntu".&lt;/li&gt;&lt;li&gt;Type &lt;code&gt;sudo tasksel --section server&lt;/code&gt; like it tells you to. To select something move with the arrow keys and select using the spacebar. Select &lt;b&gt;LAMP server&lt;/b&gt; and let it roll.&lt;/li&gt;&lt;li&gt;ctrl-v into the address bar of a new FireFox tab... It works!&lt;/li&gt;&lt;li&gt;Fire up FileZilla and hit &lt;b&gt;Edit&lt;/b&gt; &amp;#187; &lt;b&gt;Settings...&lt;/b&gt;. On the &lt;b&gt;Select page:&lt;/b&gt; pane hit &lt;b&gt;SFTP&lt;/b&gt;, then &lt;b&gt;Add keyfile...&lt;/b&gt; button. Browse to and select your .pkk file again, hit &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Next go &lt;b&gt;File&lt;/b&gt; &amp;#187; &lt;b&gt;Site Manager...&lt;/b&gt;, hit &lt;b&gt;New Site&lt;/b&gt;, give it a name and then ctrl-v address into &lt;b&gt;Host:&lt;/b&gt; textarea on the right. &lt;b&gt;Server Type:&lt;/b&gt; is SFTP, &lt;b&gt;Logon Type&lt;/b&gt; is Interactive and &lt;b&gt;User&lt;/b&gt; is ubuntu. Hit &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Select your site from the drop-down beside the little Site Manager icon on the top left under the menu strip. Navigate to &lt;code&gt;/var/www&lt;/code&gt; and you should see the &lt;code&gt;index.html&lt;/code&gt; file.&lt;/li&gt;&lt;li&gt;'nuff said, have a coffee and a fag!&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3995678837455390466?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3995678837455390466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/setting-up-ubuntu-in-cloud-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3995678837455390466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3995678837455390466'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/setting-up-ubuntu-in-cloud-with.html' title='Setting up Ubuntu in the cloud with ElasticFox, PuTTY and FileZilla'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-2635110986479591152</id><published>2011-01-05T09:15:00.001Z</published><updated>2011-01-05T09:15:25.206Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>M255 Results</title><content type='html'>&lt;p&gt;These came mid-December but I forgot to document them:&lt;/p&gt;  &lt;table border="1" cellspacing="0" cellpadding="2" width="100%"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="133"&gt;Course&lt;/td&gt;        &lt;td valign="top" width="133"&gt;M255 Object-oriented programming with Java&lt;/td&gt;        &lt;td valign="top" width="133"&gt;End Date: October 2010 &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="133"&gt;Scores&lt;/td&gt;        &lt;td valign="top" width="133" colspan="2"&gt;OES: 63 OCAS: 92 (Substitution applied)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="133"&gt;Result&lt;/td&gt;        &lt;td valign="top" width="133" colspan="2"&gt;Grade 3 Pass&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Not too bad but the exam was a let down &lt;img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-sadsmile" alt="Sad smile" src="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TSQ2q0el6GI/AAAAAAAAHQg/tPmhB5GxRKY/wlEmoticon-sadsmile%5B2%5D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-2635110986479591152?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/2635110986479591152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/m255-results.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2635110986479591152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2635110986479591152'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/m255-results.html' title='M255 Results'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_Vs4RMAeHa6Q/TSQ2q0el6GI/AAAAAAAAHQg/tPmhB5GxRKY/s72-c/wlEmoticon-sadsmile%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-5116143203288245969</id><published>2011-01-02T17:51:00.000Z</published><updated>2011-01-02T17:51:21.714Z</updated><title type='text'>Such a bad…</title><content type='html'>&lt;p&gt;&amp;#8230husband (Check the snigger at the end!)!&lt;/p&gt;&lt;a href="http://picasaweb.google.com/lh/photo/qD_TLPtsTUAdd7ioZ3FK9pUK0ar0HuRPFrnZ_48cHCE?feat=embedwebsite"&gt;&lt;img src="http://lh3.ggpht.com/_Vs4RMAeHa6Q/TSBx89eP7iI/AAAAAAAAHNw/C3Vz8pcOzxA/s800/2010-12-29%2014.22.22.3gp.jpg" height="288" width="352" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-5116143203288245969?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/5116143203288245969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2011/01/such-bad.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5116143203288245969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5116143203288245969'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2011/01/such-bad.html' title='Such a bad…'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_Vs4RMAeHa6Q/TSBx89eP7iI/AAAAAAAAHNw/C3Vz8pcOzxA/s72-c/2010-12-29%2014.22.22.3gp.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-76403444365257065</id><published>2010-12-07T15:14:00.000Z</published><updated>2010-12-07T15:14:12.457Z</updated><title type='text'>Alpha transparency</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Vs4RMAeHa6Q/TP5Oyj8UzXI/AAAAAAAAHEk/XG5j5EdsieY/s1600/swirl.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/_Vs4RMAeHa6Q/TP5Oyj8UzXI/AAAAAAAAHEk/XG5j5EdsieY/s320/swirl.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;So I'm looking at 8 increments between 0 (Hex 00) and 255 (Hex FF)... except that there's really 9 because of numbering starting at 0... adding 32 (256/8 = 32) each time worked a treat... especially when I knocked the 1 off of each result:&lt;/p&gt;&lt;table border="1" cellspacing="1" border="1"&gt;&lt;tr&gt;&lt;td&gt;0&lt;/td&gt;&lt;td&gt;00&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;31&lt;/td&gt;&lt;td&gt;1F&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;63&lt;/td&gt;&lt;td&gt;3F&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;95&lt;/td&gt;&lt;td&gt;5F&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;127&lt;/td&gt;&lt;td&gt;7F&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;159&lt;/td&gt;&lt;td&gt;9F&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;191&lt;/td&gt;&lt;td&gt;BF&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;223&lt;/td&gt;&lt;td&gt;DF&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;255&lt;/td&gt;&lt;td&gt;FF&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;Which allowed me to create this PNG image via SVG:&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-76403444365257065?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/76403444365257065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/12/alpha-transparency.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/76403444365257065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/76403444365257065'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/12/alpha-transparency.html' title='Alpha transparency'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Vs4RMAeHa6Q/TP5Oyj8UzXI/AAAAAAAAHEk/XG5j5EdsieY/s72-c/swirl.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6603788766440916433</id><published>2010-12-05T16:34:00.002Z</published><updated>2010-12-05T16:45:02.756Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Wampserver &amp; Symfony</title><content type='html'>&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.wampserver.com/en/download.php"&gt;http://www.wampserver.com/en/download.php&lt;/a&gt; for WampServer 2.0i. download and install&lt;/li&gt;
&lt;li&gt;WAMPSERVER (System Tray) &amp;#187 Apache &amp;#187 Apache Modules &amp;#187 rewrite_module&lt;/li&gt;
&lt;li&gt;WAMPSERVER &amp;#187 PHP &amp;#187 PHP Extension &amp;#187 php_xsl&lt;/li&gt;
&lt;li&gt;remove ";" from line &lt;code&gt;;extension=php_xsl.dll&lt;/code&gt; in &lt;code&gt;C:\wamp\bin\php\php5.3.0\php.ini&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;C:\wamp\bin\php\php5.3.0\&lt;/code&gt; and &lt;code&gt;C:\wamp\bin\mysql\mysql5.1.36\bin\&lt;/code&gt; to PATH in ENIVROMENT VARIABLES&lt;/li&gt;
&lt;li&gt;Cmd to &lt;code&gt;C:\wamp\bin\php\php5.3.0\&lt;/code&gt; and &lt;code&gt;"php -d phar.require_hash=0 ./PEAR/go-pear.phar&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Execute C:\wamp\bin\php\php5.3.0\PEAR_ENV.reg&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pear channel-discover pear.symfony-project.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pear install symfony/symfony&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Thanks to &lt;a href="http://anandshahil11.wordpress.com/symfony-php-framwework-installation-on-windows-wamp/"&gt;Anand Sharma&lt;/a&gt; and &lt;a href="http://www.wampserver.com/phorum/read.php?2,52496"&gt;michoz&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6603788766440916433?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6603788766440916433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/12/wampserver-symfony.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6603788766440916433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6603788766440916433'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/12/wampserver-symfony.html' title='Wampserver &amp;amp; Symfony'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-629761626628260291</id><published>2010-12-02T11:47:00.002Z</published><updated>2010-12-02T13:56:17.505Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Bloody Cold...</title><content type='html'>&lt;img border="0" src="http://4.bp.blogspot.com/_Vs4RMAeHa6Q/TPeG8c2FR9I/AAAAAAAAHEQ/nWJxO0hLvwA/s1600/surplus067x.jpg" /&gt;&lt;p&gt;Me and 'er-indoors spent most of the evening arguing about who'd be wearing my hap last night... just a shame that it looks like I'm wearing a cat on my head!&lt;/p&gt;&lt;p&gt;One for #3 son (check the originals &lt;a href="http://www.hollywood-is-dead.com/"&gt;here&lt;/a&gt;):&lt;/p&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/_Vs4RMAeHa6Q/TPekuwPR31I/AAAAAAAAHEU/kKUOvavJtNU/s320/IndyBones3.jpg" width="212" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-629761626628260291?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/629761626628260291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/12/bloody-cold.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/629761626628260291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/629761626628260291'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/12/bloody-cold.html' title='Bloody Cold...'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Vs4RMAeHa6Q/TPeG8c2FR9I/AAAAAAAAHEQ/nWJxO0hLvwA/s72-c/surplus067x.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-842195808447095704</id><published>2010-11-30T14:51:00.000Z</published><updated>2010-11-30T14:51:16.115Z</updated><title type='text'>Ponies Of The Apocalypse</title><content type='html'>&lt;object width="450" height="400"&gt;&lt;param name="movie" value="http://backend.deviantart.com/embed/view.swf" /&gt;&lt;param name="flashvars" value="id=187372120&amp;width=1337" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed src="http://backend.deviantart.com/embed/view.swf" type="application/x-shockwave-flash" width="450" flashvars="id=187372120&amp;width=1337" height="400" allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;a href="http://www.deviantart.com/deviation/187372120/"&gt;Ponies Of The Apocalypse&lt;/a&gt; by ~&lt;a class="u" href="http://carny87.deviantart.com/"&gt;carny87&lt;/a&gt; on &lt;a href="http://www.deviantart.com"&gt;deviant&lt;/a&gt;&lt;a href="http://www.deviantart.com"&gt;ART&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-842195808447095704?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/842195808447095704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/ponies-of-apocalypse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/842195808447095704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/842195808447095704'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/ponies-of-apocalypse.html' title='Ponies Of The Apocalypse'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7669107124614751524</id><published>2010-11-25T09:14:00.002Z</published><updated>2010-11-25T11:27:10.566Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Move Window &amp; SendTo Menu</title><content type='html'>&lt;p&gt;I'm not sure why but I'm forever finding Windows just at the edge of the screen so I can't see what's on them... a quick &lt;a href="http://www.google.co.uk/search?q=move+a+window+using+keyboard&amp;amp;ie=utf-8&amp;amp;oe=utf-8&amp;amp;aq=t&amp;amp;rls=org.mozilla:en-GB:official&amp;amp;client=firefox-a"&gt;Google&lt;/a&gt; always find a &lt;a href="http://www.windowsitpro.com/article/john-savills-windows-faqs/how-can-i-move-a-dialog-window-using-just-the-keyboard-.aspx"&gt;solution&lt;/a&gt; but in the interests of not making Google my brain I've decided to write down here the solution:,/p&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Hold down the ALT key.&lt;/li&gt;
&lt;li&gt;Press SPACEBAR.&lt;/li&gt;
&lt;li&gt;Press M (Move).&lt;/li&gt;
&lt;li&gt;A 4-headed arrow will appear. When it does, use your arrow keys to move the outline of the window.&lt;/li&gt;
&lt;li&gt;When you are happy with its position, press ENTER.&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Another thing I keep having to Google is the location of the SendTo Menu, so here it is:&lt;/p&gt;&lt;tt&gt;%APPDATA%\Microsoft\Windows\SendTo&lt;/tt&gt;&lt;p&gt;Nuff said about this!&lt;/p&gt;&lt;p&gt;The other thing I need to remind myself is the SendTo.&lt;/p&gt;&lt;p&gt;It's relatively easy to get a Visual Studio Installer to create a shortcut within the SendTo menu directory (see above), if a little convoluted but to get that shortcut to show is less easy... in fact it's a bit of a killer! Which is where &lt;a href="http://support.microsoft.com/kb/255905"&gt;Orca&lt;/a&gt; comes in handy (&lt;a target="_blank"  href="http://www.amazon.com/Orca-Killer-Whale-Richard-Harris/dp/B0002I832M?ie=UTF8&amp;tag=thisthatan058-20&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;Orca - The Killer Whale&lt;/a&gt;... &lt;a href="http://en.wiktionary.org/wiki/geddit"&gt;geddit&lt;/a&gt;?).&lt;/p&gt;&lt;p&gt;Open the &lt;a href="http://en.wikipedia.org/wiki/.msi"&gt;msi&lt;/a&gt;, select the Property table and add another row with a Property of DISABLEADVTSHORTCUTS and a Value of 1. Save and exit and the next time the installer runs then the shortcut will appear in the right-click context menu.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7669107124614751524?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7669107124614751524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/move-window.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7669107124614751524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7669107124614751524'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/move-window.html' title='Move Window &amp; SendTo Menu'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-8177818929526002567</id><published>2010-11-23T08:34:00.000Z</published><updated>2010-11-23T08:34:59.395Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>20/10/2010</title><content type='html'>&lt;p&gt;My weekend watching:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.imdb.com/title/tt1564585/"&gt;Skyline&lt;/a&gt;: brilliant special effects but a story with more holes than my Dad's vest and characters you can't care about. If you've watched &lt;a target="_blank"  href="http://www.amazon.com/Independence-Day-Single-Disc-Widescreen/dp/B00005V9IK?ie=UTF8&amp;tag=thisthatan058-20&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;Independence Day&lt;/a&gt;, &lt;a target="_blank"  href="http://www.amazon.com/Complete-Matrix-Trilogy-Reloaded-Revolutions/dp/B000E1MTZE?ie=UTF8&amp;tag=thisthatan058-20&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;The Matrix&lt;/a&gt; and &lt;a target="_blank"  href="http://www.amazon.com/Cloverfield-Mike-Vogel/dp/B0014Z4OQG?ie=UTF8&amp;tag=thisthatan058-20&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;Cloverfield&lt;/a&gt; you've seen it already!&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.imdb.com/title/tt0926084/"&gt;Harry Potter and the Deathly Hallows: Part 1&lt;/a&gt;: Miserable as sin but not as much fun! Felt like an obvious lead-up to the last film. A filler like &lt;a target="_blank"  href="http://www.amazon.com/Star-Wars-Episode-Versions-Widescreen/dp/B000FQJAJG?ie=UTF8&amp;tag=thisthatan058-20&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;The Empire Strikes Back&lt;/a&gt; was a filler - can't be blamed for that though - &lt;a href="http://www.imdb.com/title/tt1201607/"&gt;Part 2&lt;/a&gt; wouldn't be as cool as it's promising to be without it. Life is a narrative and sometimes the middle act needs to be a bit boring and mundane.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank"  href="http://www.amazon.com/Predators-Adrien-Brody/dp/B002ZG98LO?ie=UTF8&amp;tag=thisthatan058-20&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;Predators&lt;/a&gt; and &lt;a href="http://www.imdb.com/title/tt0471041/"&gt;The Tournament&lt;/a&gt; on &lt;abbr title="Digital Versatile Disc"&gt;DVD&lt;/abbr&gt;, both marvellous in their own way. Predators was a astoundingly well-made homage to all the previous films and managed to make me forget all the other, less-well-made sequels to the original &lt;a target="_blank"  href="http://www.amazon.com/Predator-Widescreen-Collectors-Arnold-Schwarzenegger/dp/B000244EMO?ie=UTF8&amp;tag=thisthatan058-20&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;film&lt;/a&gt;. Whereas The Tournament was a non-stop, action-filled exercise in gorgeous sillyness! Excellent and worth a watch!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-8177818929526002567?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/8177818929526002567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/20102010.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8177818929526002567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8177818929526002567'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/20102010.html' title='20/10/2010'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-258555126721823113</id><published>2010-11-18T12:07:00.003Z</published><updated>2010-12-09T12:06:00.056Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Recipes'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Devilishly good!</title><content type='html'>&lt;p&gt;Got &lt;a href="http://www.amazon.com/Diablo-Stovetop-Toasted-Sandwich-Snack/dp/B000H7DEYA?ie=UTF8&amp;tag=thisthatandth-21&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;this&lt;/a&gt; for an early Xmas present and used it yesterday with #3 son. We only had cheese and &lt;a href="http://www.quorn.co.uk/products/Smoky_Ham_Style_Slices.aspx"&gt;veggie ham&lt;/a&gt; with some &lt;a href="http://www.veggiestuff.com/acatalog/vegetarian_worcester_sauce_life.html"&gt;veggie worcester sauce&lt;/a&gt; (what’s going on with the spelling there, I thought it was Worcestershire – &lt;a href="http://en.wikipedia.org/wiki/Worcestershire_sauce"&gt;it is&lt;/a&gt;!) or cheese and prosciutto with some baked beans and coleslaw - but it was lovely. One of the things I miss about living on dry-land is the lack of mains electricity, no Microwaves, toasters or sandwich toasters (or TVs for that matter) but this makes it all okay as I can still have toasted sandwiches! Yay!&lt;/p&gt;&lt;p&gt;It comes with a leaflet full of recipe ideas but I can’t bring myself to do the sweet recipes… toasted sandwiches should be savoury and not sweet! As should, thinking about it, &lt;a href="http://en.wikipedia.org/wiki/French_toast"&gt;French toast&lt;/a&gt; – though Wikipedia doesn’t agree. I find there is little better in life that French toast covered in &lt;a href="http://en.wikipedia.org/wiki/Ketchup"&gt;Ketchup&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/Steak_sauce"&gt;Brown Sauce&lt;/a&gt;. I’ve a theory about the age of children and their taste in French toast condiments: when they’re young they invariably choose Ketchup but you can chart their maturity by the propensity to opt for &lt;a href="http://en.wikipedia.org/wiki/HP_Sauce"&gt;HP&lt;/a&gt;. I’d be interested in your opinion of this theory as I’ve a limited dataset with which to work.&lt;/p&gt;&lt;p&gt;Also finished &lt;a href="http://www.amazon.com/Doctor-Who-Evacuation-Earth-Nintendo-DS/dp/B0040JGNJE?ie=UTF8&amp;tag=thisthatandth-21&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;Doctor Who: Evacuation Earth&lt;/a&gt; yesterday. A lot like the &lt;a href="http://en.wikipedia.org/wiki/Professor_Layton"&gt;Professor Layton&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Nintendo_DS"&gt;DS&lt;/a&gt; games but with somewhat easier puzzles, which is why it only took me a couple of days to complete it. Didn’t like the &lt;a href="http://en.wikipedia.org/wiki/Fifteen_puzzle"&gt;Sliding Puzzles&lt;/a&gt; though managed them, more than likely due to brute force attacks rather than any strategy.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-258555126721823113?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/258555126721823113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/devilishly-good.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/258555126721823113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/258555126721823113'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/devilishly-good.html' title='Devilishly good!'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7581635475458423720</id><published>2010-11-17T10:04:00.002Z</published><updated>2010-11-17T10:09:57.037Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Not Kitkat</title><content type='html'>&lt;p&gt;Pub quiz score = 30/60... valdy poor!&lt;/p&gt;&lt;p&gt;Knew I'd seen this advert just not where... knew it was advertising something long, sticky (as in stick like) and brown and thought it was &lt;a href="http://en.wikipedia.org/wiki/Kit_Kat"&gt;Kitkat&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/Pepperoni"&gt;Pepperoni&lt;/a&gt;... forgot about the &lt;a href="http://en.wikipedia.org/wiki/Cadbury_Fingers"&gt;chocolate fingers&lt;/a&gt;!&lt;/p&gt;&lt;p&gt;Arse!&lt;/p&gt;&lt;object width="640" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/2Jfe4re4mr4?fs=1&amp;amp;hl=en_GB"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/2Jfe4re4mr4?fs=1&amp;amp;hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7581635475458423720?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7581635475458423720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/not-kitkat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7581635475458423720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7581635475458423720'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/not-kitkat.html' title='Not Kitkat'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4409961958052094198</id><published>2010-11-14T11:08:00.001Z</published><updated>2010-11-14T11:08:35.214Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Web Designers vs. Web Developers (Infographic)</title><content type='html'>&lt;br /&gt; &lt;a href="http://www.wix.com/" mce_href="http://www.wix.com/" title="Website Builder"&gt;&lt;img src="http://www.landingpages.co.il/wix/web-designers-vs-developers.png" mce_src="http://www.landingpages.co.il/wix/web-designers-vs-developers.png" border="0" alt="free website builder"  title="free website" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Web Designers vs Web Developers is brought to you by Wix.com &lt;br/&gt;Use creative design to make a &lt;a href="http://www.wix.com" mce_href="http://www.wix.com"&gt;Free Website&lt;/a&gt;&lt;br /&gt; You are most welcome to share this infographic with your audience.&lt;/p&gt; &lt;p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4409961958052094198?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4409961958052094198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/web-designers-vs-web-developers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4409961958052094198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4409961958052094198'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/web-designers-vs-web-developers.html' title='Web Designers vs. Web Developers (Infographic)'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-150237365604054930</id><published>2010-11-11T12:20:00.001Z</published><updated>2010-11-11T12:20:31.466Z</updated><title type='text'>Clouds are cool!</title><content type='html'>&lt;object width="450" height="188"&gt;&lt;param name="movie" value="http://backend.deviantart.com/embed/view.swf" /&gt;&lt;param name="flashvars" value="id=185778483&amp;width=1337" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed src="http://backend.deviantart.com/embed/view.swf" type="application/x-shockwave-flash" width="450" flashvars="id=185778483&amp;width=1337" height="188" allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;a href="http://www.deviantart.com/deviation/185778483/"&gt;Clouds are cool&lt;/a&gt; by *&lt;a class="u" href="http://annoyingmouse.deviantart.com/"&gt;annoyingmouse&lt;/a&gt; on &lt;a href="http://www.deviantart.com"&gt;deviant&lt;/a&gt;&lt;a href="http://www.deviantart.com"&gt;ART&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-150237365604054930?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/150237365604054930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/clouds-are-cool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/150237365604054930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/150237365604054930'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/clouds-are-cool.html' title='Clouds are cool!'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4484197363506172193</id><published>2010-11-10T10:42:00.001Z</published><updated>2010-11-10T10:42:58.429Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Windows 7 hosts file</title><content type='html'>&lt;p&gt;So &lt;a href="http://en.wikipedia.org/wiki/Windows_7"&gt;Windows 7&lt;/a&gt; uses the &lt;a href="http://en.wikipedia.org/wiki/Hosts_%28file%29"&gt;hosts&lt;/a&gt; file like nigh on every other &lt;abbr title="Operating System"&gt;OS&lt;/abbr&gt; and, thanks to lots and lots of messing around with servers, my hosts file was messed up. All I wanted to do was set up localhost to point to &lt;a href="http://en.wikipedia.org/wiki/Localhost"&gt;127.0.0.1&lt;/a&gt;!&lt;/p&gt;  &lt;p&gt;I use &lt;a href="http://www.boxersoftware.com/pgbwin.htm"&gt;Boxer&lt;/a&gt; but every time I edited the file and tried to save it it wouldn't let me, telling me that Access was denied!&lt;/p&gt;  &lt;p&gt;I guessed that this was down to not running Boxer as an administrator so instead of using the nice shortcut I usually use to launch Boxer I found it in the Start menu and right-clicked it as chose &amp;quot;Run as administrator&amp;quot;, this let me save properly and now localhost points to the IP address 127.0.0.1! Yay!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4484197363506172193?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4484197363506172193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/windows-7-hosts-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4484197363506172193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4484197363506172193'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/windows-7-hosts-file.html' title='Windows 7 hosts file'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-149288623578345520</id><published>2010-11-08T14:14:00.000Z</published><updated>2010-11-08T14:15:28.041Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Brain not working</title><content type='html'>&lt;p&gt;I'm not sure why it is but my brain has crashed today. It could be the weather (which is dull and wet), or the odd Camelot liqueur that my Ma brought me back from Ibitha. Whatever it is, my brain's just not working! Woke at 7:30 after going to bed at 21:30 last night and I'm still tired! That after getting up at 10:00 yesterday morning!&lt;/p&gt;&lt;p&gt;Shame really as WordPress is defeating me - or should that be that my previous hacking of wordpress is defeating me when I'm trying to rationalise a theme I'm working on - ohh woe is me!&lt;/p&gt;&lt;p&gt;Did hear something interesting over the weekend though... someone said, "put a backslash on that". How cool!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-149288623578345520?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/149288623578345520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/brain-not-working.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/149288623578345520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/149288623578345520'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/brain-not-working.html' title='Brain not working'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-8792628034749975647</id><published>2010-11-06T11:11:00.001Z</published><updated>2010-11-06T11:11:15.356Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Luke’s Parrot</title><content type='html'>&lt;p&gt;&lt;a href="http://professorlaytonds.com/"&gt;Professor Layton and the Unwound Future&lt;/a&gt; has some cool Parrot mini-games. After getting stuck I did some research and found these images (Thank you &lt;a href="http://uk.gamespot.com/users/Isenet/"&gt;Isenet&lt;/a&gt; via this &lt;a href="http://uk.gamespot.com/ds/puzzle/laytonkyoujitosaigonojikanryokou/show_msgs.php?topic_id=m-1-56362494&amp;amp;pid=944215&amp;amp;page=1"&gt;post&lt;/a&gt;):&lt;/p&gt;                  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3hyUUeOI/AAAAAAAAHCQ/ljW_VjJbhzg/s1600-h/v8206w%5B2%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="v8206w" border="0" alt="v8206w" src="http://lh6.ggpht.com/_Vs4RMAeHa6Q/TNU3jPcw3mI/AAAAAAAAHCU/JdC1EDMNBKA/v8206w_thumb.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh3.ggpht.com/_Vs4RMAeHa6Q/TNU3jvz_wzI/AAAAAAAAHCY/7tL5P0wH52c/s1600-h/v7w1ly%5B2%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="v7w1ly" border="0" alt="v7w1ly" src="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3krBVUPI/AAAAAAAAHCc/-0D1_UHBPyM/v7w1ly_thumb.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3lcAClpI/AAAAAAAAHCg/pO5fFFqpI2o/s1600-h/14d0rhu%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="14d0rhu" border="0" alt="14d0rhu" src="http://lh3.ggpht.com/_Vs4RMAeHa6Q/TNU3mElNR9I/AAAAAAAAHCk/9B5k_kS3Mgg/14d0rhu_thumb%5B1%5D.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh3.ggpht.com/_Vs4RMAeHa6Q/TNU3m4MKNhI/AAAAAAAAHCo/HE1PR-Qk5AI/s1600-h/1659ac%5B2%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="1659ac" border="0" alt="1659ac" src="http://lh3.ggpht.com/_Vs4RMAeHa6Q/TNU3nzb6GqI/AAAAAAAAHCs/9wi3FeyLp_8/1659ac_thumb.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3orkhbgI/AAAAAAAAHCw/CGAtq7zkYXo/s1600-h/2iazlg9%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="2iazlg9" border="0" alt="2iazlg9" src="http://lh6.ggpht.com/_Vs4RMAeHa6Q/TNU3pQZ3HVI/AAAAAAAAHC0/u4DvHX_-qVc/2iazlg9_thumb%5B1%5D.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh6.ggpht.com/_Vs4RMAeHa6Q/TNU3qBDcn0I/AAAAAAAAHC4/cyl5Zq7bkiU/s1600-h/2mxppa1%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="2mxppa1" border="0" alt="2mxppa1" src="http://lh6.ggpht.com/_Vs4RMAeHa6Q/TNU3rPXc4xI/AAAAAAAAHC8/w2IIlGWD3HI/2mxppa1_thumb%5B1%5D.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/_Vs4RMAeHa6Q/TNU3sNkiLFI/AAAAAAAAHDA/EF8X9Z0jfBk/s1600-h/2nlgsgx%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="2nlgsgx" border="0" alt="2nlgsgx" src="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3s6u0dLI/AAAAAAAAHDE/LO22WW_mS8M/2nlgsgx_thumb%5B1%5D.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/_Vs4RMAeHa6Q/TNU3txMzL4I/AAAAAAAAHDI/BGUmie4TF7U/s1600-h/2ze08ls%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="2ze08ls" border="0" alt="2ze08ls" src="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3ulKFYZI/AAAAAAAAHDM/Dkfrg5WJ-gA/2ze08ls_thumb%5B1%5D.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3vVTCF3I/AAAAAAAAHDQ/oGWRR0xrimA/s1600-h/30ivw2x%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="30ivw2x" border="0" alt="30ivw2x" src="http://lh3.ggpht.com/_Vs4RMAeHa6Q/TNU3wW00mbI/AAAAAAAAHDU/xgbSjCOXGsA/30ivw2x_thumb%5B1%5D.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3w1zQ7bI/AAAAAAAAHDY/hEcajeJO4G0/s1600-h/rco6xw%5B2%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="rco6xw" border="0" alt="rco6xw" src="http://lh3.ggpht.com/_Vs4RMAeHa6Q/TNU3xjj75iI/AAAAAAAAHDc/WsDUHMvP0_M/rco6xw_thumb.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3yb6SbcI/AAAAAAAAHDg/KPMjc6dzBWM/s1600-h/2sao1mr%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="2sao1mr" border="0" alt="2sao1mr" src="http://lh4.ggpht.com/_Vs4RMAeHa6Q/TNU3y34HFII/AAAAAAAAHDk/T777W11jDp0/2sao1mr_thumb%5B1%5D.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/_Vs4RMAeHa6Q/TNU3zrpBHKI/AAAAAAAAHDo/j9_Q96MDUdM/s1600-h/2mnehzt%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="2mnehzt" border="0" alt="2mnehzt" src="http://lh4.ggpht.com/_Vs4RMAeHa6Q/TNU30aPhEmI/AAAAAAAAHDs/aPoWDgmr_LQ/2mnehzt_thumb%5B1%5D.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-8792628034749975647?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/8792628034749975647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/lukes-parrot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8792628034749975647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8792628034749975647'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/lukes-parrot.html' title='Luke’s Parrot'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_Vs4RMAeHa6Q/TNU3jPcw3mI/AAAAAAAAHCU/JdC1EDMNBKA/s72-c/v8206w_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4587386896377275934</id><published>2010-11-02T14:56:00.001Z</published><updated>2010-11-02T14:56:34.834Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Disposable Panda</title><content type='html'>&lt;pre style="background: #ffffff; color: #000000"&gt;&lt;span style="color: #696969"&gt;// The instance field Name pertains to an instance of a particular Panda,&lt;/span&gt;
&lt;span style="color: #696969"&gt;// whereas Population pertains to the set of all Pandas:&lt;/span&gt;

&lt;span style="color: #800000; font-weight: bold"&gt;public&lt;/span&gt; &lt;span style="color: #800000; font-weight: bold"&gt;class&lt;/span&gt; Panda &lt;span style="color: #808030"&gt;:&lt;/span&gt; IDisposable&lt;span style="color: #800080"&gt;{&lt;/span&gt;
  &lt;span style="color: #800000; font-weight: bold"&gt;public&lt;/span&gt; &lt;span style="color: #800000; font-weight: bold"&gt;string&lt;/span&gt; Name&lt;span style="color: #800080"&gt;;&lt;/span&gt;                     &lt;span style="color: #696969"&gt;// Instance field&lt;/span&gt;
  &lt;span style="color: #800000; font-weight: bold"&gt;public&lt;/span&gt; &lt;span style="color: #800000; font-weight: bold"&gt;static&lt;/span&gt; &lt;span style="color: #800000; font-weight: bold"&gt;int&lt;/span&gt; Population&lt;span style="color: #800080"&gt;;&lt;/span&gt;           &lt;span style="color: #696969"&gt;// Static field&lt;/span&gt;
  &lt;span style="color: #800000; font-weight: bold"&gt;public&lt;/span&gt; Panda &lt;span style="color: #808030"&gt;(&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold"&gt;string&lt;/span&gt; n&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;{&lt;/span&gt;                &lt;span style="color: #696969"&gt;// Constructor&lt;/span&gt;
    Name &lt;span style="color: #808030"&gt;=&lt;/span&gt; n&lt;span style="color: #800080"&gt;;&lt;/span&gt;                             &lt;span style="color: #696969"&gt;// Assign the instance field&lt;/span&gt;
    Population &lt;span style="color: #808030"&gt;=&lt;/span&gt; Population &lt;span style="color: #808030"&gt;+&lt;/span&gt; &lt;span style="color: #008c00"&gt;1&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;          &lt;span style="color: #696969"&gt;// Increment the static Population field&lt;/span&gt;
  &lt;span style="color: #800080"&gt;}&lt;/span&gt;
  &lt;span style="color: #800000; font-weight: bold"&gt;void&lt;/span&gt; IDisposable&lt;span style="color: #808030"&gt;.&lt;/span&gt;Dispose&lt;span style="color: #808030"&gt;(&lt;/span&gt;&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;{&lt;/span&gt;
    Population &lt;span style="color: #808030"&gt;=&lt;/span&gt; Population &lt;span style="color: #808030"&gt;-&lt;/span&gt; &lt;span style="color: #008c00"&gt;1&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;          &lt;span style="color: #696969"&gt;// Decrement the static Population field&lt;/span&gt;
  &lt;span style="color: #800080"&gt;}&lt;/span&gt;
&lt;span style="color: #800080"&gt;}&lt;/span&gt;

&lt;span style="color: #800000; font-weight: bold"&gt;static&lt;/span&gt; &lt;span style="color: #800000; font-weight: bold"&gt;void&lt;/span&gt; Main&lt;span style="color: #808030"&gt;(&lt;/span&gt;&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;{&lt;/span&gt;
  Panda p1 &lt;span style="color: #808030"&gt;=&lt;/span&gt; &lt;span style="color: #800000; font-weight: bold"&gt;new&lt;/span&gt; Panda &lt;span style="color: #808030"&gt;(&lt;/span&gt;&lt;span style="color: #800000"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000e6"&gt;Pan Dee&lt;/span&gt;&lt;span style="color: #800000"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;
  Console&lt;span style="color: #808030"&gt;.&lt;/span&gt;WriteLine &lt;span style="color: #808030"&gt;(&lt;/span&gt;p1&lt;span style="color: #808030"&gt;.&lt;/span&gt;Name&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;            &lt;span style="color: #696969"&gt;// Pan Dee&lt;/span&gt;
  Console&lt;span style="color: #808030"&gt;.&lt;/span&gt;WriteLine &lt;span style="color: #808030"&gt;(&lt;/span&gt;Panda&lt;span style="color: #808030"&gt;.&lt;/span&gt;Population&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;   &lt;span style="color: #696969"&gt;// 1&lt;/span&gt;
  &lt;span style="color: #800000; font-weight: bold"&gt;using&lt;/span&gt;&lt;span style="color: #808030"&gt;(&lt;/span&gt;Panda p2 &lt;span style="color: #808030"&gt;=&lt;/span&gt; &lt;span style="color: #800000; font-weight: bold"&gt;new&lt;/span&gt; Panda &lt;span style="color: #808030"&gt;(&lt;/span&gt;&lt;span style="color: #800000"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000e6"&gt;Pan Dah&lt;/span&gt;&lt;span style="color: #800000"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;{&lt;/span&gt;
    Console&lt;span style="color: #808030"&gt;.&lt;/span&gt;WriteLine &lt;span style="color: #808030"&gt;(&lt;/span&gt;p2&lt;span style="color: #808030"&gt;.&lt;/span&gt;Name&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;          &lt;span style="color: #696969"&gt;// Pan Dah&lt;/span&gt;
    Console&lt;span style="color: #808030"&gt;.&lt;/span&gt;WriteLine &lt;span style="color: #808030"&gt;(&lt;/span&gt;Panda&lt;span style="color: #808030"&gt;.&lt;/span&gt;Population&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt; &lt;span style="color: #696969"&gt;// 2&lt;/span&gt;
  &lt;span style="color: #800080"&gt;}&lt;/span&gt;
  Console&lt;span style="color: #808030"&gt;.&lt;/span&gt;WriteLine &lt;span style="color: #808030"&gt;(&lt;/span&gt;Panda&lt;span style="color: #808030"&gt;.&lt;/span&gt;Population&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;   &lt;span style="color: #696969"&gt;// 1&lt;/span&gt;
  Panda p3 &lt;span style="color: #808030"&gt;=&lt;/span&gt; &lt;span style="color: #800000; font-weight: bold"&gt;new&lt;/span&gt; Panda &lt;span style="color: #808030"&gt;(&lt;/span&gt;&lt;span style="color: #800000"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000e6"&gt;Zi Chi&lt;/span&gt;&lt;span style="color: #800000"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;
  Console&lt;span style="color: #808030"&gt;.&lt;/span&gt;WriteLine &lt;span style="color: #808030"&gt;(&lt;/span&gt;p3&lt;span style="color: #808030"&gt;.&lt;/span&gt;Name&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;            &lt;span style="color: #696969"&gt;// Zi Chi&lt;/span&gt;
  Console&lt;span style="color: #808030"&gt;.&lt;/span&gt;WriteLine &lt;span style="color: #808030"&gt;(&lt;/span&gt;Panda&lt;span style="color: #808030"&gt;.&lt;/span&gt;Population&lt;span style="color: #808030"&gt;)&lt;/span&gt;&lt;span style="color: #800080"&gt;;&lt;/span&gt;   &lt;span style="color: #696969"&gt;// 2&lt;/span&gt;
&lt;span style="color: #800080"&gt;}&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;I'm working through the examples in &lt;a href="http://oreilly.com/catalog/9780596800963"&gt;C# 4.0 in a Nutshell, Fourth Edition&lt;/a&gt; and I got to thinking about how to erase an instance of a class... &lt;a href="http://msdn.microsoft.com/en-us/library/yh598w02%28v=VS.100%29.aspx"&gt;using&lt;/a&gt; seemed to be the way to go so I implemented the &lt;a href="http://msdn.microsoft.com/en-us/library/system.idisposable.aspx"&gt;IDisposable Interface&lt;/a&gt; and now I've got disposable Pandas!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4587386896377275934?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4587386896377275934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/disposable-panda.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4587386896377275934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4587386896377275934'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/disposable-panda.html' title='Disposable Panda'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-8594474800313941919</id><published>2010-11-02T10:45:00.001Z</published><updated>2010-11-02T10:45:38.335Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Appraisal</title><content type='html'>&lt;p&gt;Now after years of working in the &lt;abbr title="National Health Service"&gt;NHS&lt;/abbr&gt; the idea of an appraisal fills me with dread. I worked nights, you see, and no one could be arsed to appraise the night staff. Every so often some nice, well-meaning, newly-appointed and probably almost terminally-naive &lt;abbr title="Deputy Charge Nurse"&gt;DCN&lt;/abbr&gt; would suggest checking how I was getting on.&lt;/p&gt;&lt;p&gt;What with my great hatred of getting there earlier than I needed to (except, of course, to give me enough time to make a coffee and have a fag before hand-over) - and their soon-waning desire to stop later than they absolutely needed to in order to listen to my rants - I very rarely left work in the morning with a new set of aims and objectives.&lt;/p&gt;&lt;p&gt;Cool ehh?&lt;/p&gt;&lt;p&gt;That is/was the case anyway… except when something had gone pear-shaped… then I was bombarded by enquiries about how I felt about the job (hated it), how I felt I was getting on (hadn't killed anyone, so not so bad) and, every-so-often, what I wanted out of the future (&lt;abbr title="National Aeronautics and Space Administration"&gt;NASA&lt;/abbr&gt; has unfortunately stopped taking applications from balding, fat Yorkshire men who drink like fish and smoke like chimneys so I'll be waiting until the aliens come before I can visit space shall I? (I did say about the ranting above)).&lt;/p&gt;&lt;p&gt;All very usual really… but now I'm in a job I enjoy and the idea of an appraisal fills me with dread for a different reason… what if they ask me how I feel about the job (love it), how I fell I’m getting on (flashes of pure genius and then long periods of slog (everyone who's worked with me will know how much I swear at the computer and then, every-so-often, how I wake up from introspection and declare myself the GREATEST!)) and what I want from the future (more of the same but with shorter periods of slog and more flashes of genius - ohh, and the raise in retirement age isn't a problem as I'd happily do this forever)? &lt;/p&gt;&lt;p&gt;What if they say they need to speak to me because, horror of horrors, something I’ve done has gone pear-shaped (surely not, I now check everything I do in IE6 as a matter of course)?&lt;/p&gt;&lt;p&gt;But it was all actually very civilised, they did just want to know what I’d enjoyed, what I’d not enjoyed. What they could do to make things better and all that sort of stuff… I left feeling as though something had been accomplished rather than as if someone had had an awful thought in the middle of the night and realised that the night staff hadn’t been appraised for the last five years… and what would the &lt;a href="http://www.cqc.org.uk/"&gt;Care Quality Commission&lt;/a&gt; think of that?&lt;/p&gt;&lt;p&gt;I’m not sure how long my dread of appraisals will last though, I think it’s going to take a fair few in order to get over my phobia of them and for me to appreciate that they don’t just happen because someone's got a bee in their bonnet or because something’s gone wrong.&lt;/p&gt;&lt;p&gt;We’ll see.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-8594474800313941919?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/8594474800313941919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/11/appraisal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8594474800313941919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8594474800313941919'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/11/appraisal.html' title='Appraisal'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3082031838345021341</id><published>2010-10-29T09:41:00.002+01:00</published><updated>2010-10-29T09:54:23.881+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Very, very cool... but is it art?</title><content type='html'>&lt;p&gt;Came across this via &lt;a href="http://www.whokilledbambi.co.uk/"&gt;Who killed Bambi&lt;/a&gt; and I think it's lovely but it did get me thinking.&lt;/p&gt;&lt;p&gt;I've heard criticism of &lt;a href="http://www.banksy.co.uk/"&gt;Banksy&lt;/a&gt;'s work which states that it isn't art but is simply playing. I'm not sure that I'm qualified to judge that (&lt;a href="http://www.briansewell.com/artist/b-artist/banksy/banksy-biography.html"&gt;Banksy is careful not to call himself an artist anyway&lt;/a&gt;) but I know what I like&amp;#0133; and I really like Lipstick Enigma. That might be the juxtaposition of something so soft, curvacious and feminine as lipstick with something like a &lt;a href="http://en.wikipedia.org/wiki/Computer_font#Bitmap_fonts"&gt;bitmap font&lt;/a&gt;.&lt;/p&gt;&lt;iframe src="http://player.vimeo.com/video/15224130" width="400" height="225" frameborder="0"&gt;&lt;/iframe&gt;&lt;p&gt;&lt;a href="http://vimeo.com/15224130"&gt;Lipstick Enigma&lt;/a&gt; from &lt;a href="http://vimeo.com/user4101310"&gt;Janet Zweig&lt;/a&gt; on &lt;a href="http://vimeo.com"&gt;Vimeo&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Anyway, I think that this is cool and should I be loaded I'd certainly buy it&amp;#0133; in the meantime I'll keep on trying to figure out how it's done so I can recreate it myself.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3082031838345021341?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3082031838345021341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/very-very-cool-but-is-it-art.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3082031838345021341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3082031838345021341'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/very-very-cool-but-is-it-art.html' title='Very, very cool... but is it art?'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4714552057562129002</id><published>2010-10-25T13:24:00.001+01:00</published><updated>2010-10-25T13:24:44.419+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Co-ordinates</title><content type='html'>&lt;p&gt;I've been learning C# for a week or four and a lot of the examples I've looked at deal with Point values… these are to do with Co-ordinate systems. I like co-ordinate systems generally - I'd not like &lt;a href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics"&gt;SVG&lt;/a&gt; as much as I do if I didn't - but I'm not totally &lt;em&gt;au fait&lt;/em&gt; with the lingo in this respect so when I came across this:&lt;/p&gt; &lt;a href="http://ondotnet.com/pub/a/dotnet/2002/05/20/drawing.html"&gt;   &lt;blockquote&gt;The easiest way to construct a Point is to pass two integers as the abscissa and the ordinate parts of the coordinate...&lt;/blockquote&gt; &lt;/a&gt;  &lt;p&gt;I nigh on shat!&lt;/p&gt;  &lt;p&gt;After a bit of judicious &lt;a href="http://www.google.co.uk/search?q=define%3Aabscissa+&amp;amp;ie=utf-8&amp;amp;oe=utf-8&amp;amp;aq=t&amp;amp;rls=org.mozilla:en-GB:official&amp;amp;client=firefox-a"&gt;define:ing&lt;/a&gt; though, I discovered that the abscissa is the “the value of a coordinate on the horizontal axis”… cool ehh? The ordinate is simply the &lt;a href="http://en.wikipedia.org/wiki/Ordinate"&gt;other number&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strike&gt;Having said this I do get a little confused with these systems as I’m pretty sure that SVG and the &lt;a href="http://diveintohtml5.org/canvas.html#divingin"&gt;Canvas&lt;/a&gt; use different co-ordinate systems&lt;/strike&gt; (Nope, that’s wrong, they both count down from the top, as does &lt;a href="http://processing.org/"&gt;Processing&lt;/a&gt; (the next thing I need to play with))… wonder what I could have been thinking of…?&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4714552057562129002?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4714552057562129002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/co-ordinates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4714552057562129002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4714552057562129002'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/co-ordinates.html' title='Co-ordinates'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1242962284018998324</id><published>2010-10-21T11:37:00.003+01:00</published><updated>2010-10-21T11:41:42.986+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Beer Isle</title><content type='html'>&lt;p&gt;Despite #3 son having the opinion that anyone who drinks, even if it's a solo port and lemon at Christmas, is an alcoholic he's got the eyes of a &lt;abbr title="Shit House Rat"&gt;SHR&lt;/abbr&gt; when it comes to the beer isle in Tesco's. Once he's gone and got his &lt;a href="http://www.kpnuts.com/range.php?p=jumbo_flavoured"&gt;pre-tea nuts&lt;/a&gt;, and I've got the fixings for that nights tea, we wander down the beer isle and he checks to see if they've got &lt;a href="http://www.blogobeer.com/2008/09/23/tasting-notes-poachers-choice/"&gt;Poacher's&lt;/a&gt; in yet... when we see that they haven't his eyes start roaming the shelves. Yesterday he found &lt;a href="http://theormskirkbaron.blogspot.com/2010/10/tesco-finest-american-double-ipa-3-for.html"&gt;Tesco Finest American Double IPA&lt;/a&gt;. A very fine beer if enough to make you go crossed-eyed (9.2%), truly a &lt;a href="http://beeradvocate.com/beer/style/140/"&gt;beer on steroids&lt;/a&gt;!&lt;/p&gt;&lt;p&gt;I found &lt;a href="http://www.ratebeer.com/beer/greene-king-very-special-india-pale-ale/126139/3352/"&gt;Greene King Very Special India Pale Ale&lt;/a&gt; all by myself, that's tasty as well!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1242962284018998324?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1242962284018998324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/beer-isle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1242962284018998324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1242962284018998324'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/beer-isle.html' title='Beer Isle'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6401299124896385434</id><published>2010-10-19T11:53:00.002+01:00</published><updated>2010-10-19T12:02:05.346+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>The problems with tea-tree and gravity</title><content type='html'>&lt;p&gt;I love the feeling of &lt;a href="http://en.wikipedia.org/wiki/Tea_tree_oil"&gt;tea-tree&lt;/a&gt; shampoo on my head... a bit like having a million pins pushed into my scalp slowly, exciting and just on the nice side of painful (now that does make me worry). So I got all excited when I found some nice tea-tree shower-gell. I thought that that, along with a buf puf, might make for a lovely, invigorating shower!&lt;/p&gt;&lt;p&gt;Unfortunately, the astringent property of the buf puf combined with the aforementioned &lt;em&gt;"million pins"&lt;/em&gt; qualities of the tea-tree led to some little discomfort. A &lt;a href="http://en.wikipedia.org/wiki/Scrotum"&gt;scrotal sac&lt;/a&gt; has, even at my advanced age, a lot less surface area than a scalp (especially at my advanced age - interesting thought there: if the number of wrinkles increases on your scalp, does that mean that the surface area of your scalp increases... and does that rate of increase match the rate of increase of the &lt;a href="http://onlineslangdictionary.com/definition+of/scrote"&gt;old scrote&lt;/a&gt; caused by gravity?), but quite probably the same or even many, many more nerve endings.&lt;/p&gt;&lt;p&gt;Needless to say I stopped using it!&lt;/p&gt;&lt;p&gt;Except that on Monday I thought I'd try to wake myself out of a nigh on terminal case of &lt;a href="http://en.wikipedia.org/wiki/Man_flu"&gt;man-flue&lt;/a&gt; with a hair wash using the tea-tree shower-gell, and some nice, gentle stuff on the rest of me... I didn't count on gravity - and the action of the water rinsing off of me - to transport the god-forsaken tea-tree oil down the rest of my body though! It woke me up all right, but it was a bit of a rude awakening!&lt;/p&gt;&lt;p&gt;It's in the bin now!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6401299124896385434?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6401299124896385434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/problems-with-tea-tree-and-gravity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6401299124896385434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6401299124896385434'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/problems-with-tea-tree-and-gravity.html' title='The problems with tea-tree and gravity'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-5410883136998240719</id><published>2010-10-14T12:36:00.001+01:00</published><updated>2010-10-14T12:38:40.846+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Frobnicator</title><content type='html'>&lt;p&gt;&lt;a href="http://www.catb.org/jargon/html/F/frobnicate.html"&gt;Who'd a thunk it&lt;/a&gt;! From the divine &lt;a href="http://oreilly.com/catalog/9780596159849"&gt;Programming C# 4.0&lt;/a&gt; (p25).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-5410883136998240719?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/5410883136998240719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/frobnicator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5410883136998240719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5410883136998240719'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/frobnicator.html' title='Frobnicator'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4778659563354891681</id><published>2010-10-14T11:13:00.000+01:00</published><updated>2010-10-14T11:14:33.514+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'>Earwigs in my handlebars</title><content type='html'>&lt;p&gt;Most mornings I get a tickle on my left hand while I'm cycling along &lt;a href="http://maps.google.co.uk/maps/place?oe=utf-8&amp;rls=org.mozilla:en-GB:official&amp;client=firefox-a&amp;um=1&amp;ie=UTF-8&amp;q=Midsummer+Common+cambridge&amp;fb=1&amp;gl=uk&amp;hq=Midsummer+Common+cambridge&amp;hnear=Midsummer+Common+cambridge&amp;cid=6970470663213371877"&gt;Midsummer Common&lt;/a&gt;, it's not a creepy tickle but certainly noticeable. I look down and there's an &lt;a href="http://en.wikipedia.org/wiki/Earwig"&gt;Earwig&lt;/a&gt; scuttling along the back of my hand, so I flick it off. Monday morning there were three: two on my left hand and one on my right hand. Last week I saw one half in and half out of the little hole at the end of the handlebar so I'm guessing they live there or something...?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4778659563354891681?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4778659563354891681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/earwigs-in-my-handlebars.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4778659563354891681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4778659563354891681'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/earwigs-in-my-handlebars.html' title='Earwigs in my handlebars'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4536368035831416792</id><published>2010-10-13T10:03:00.001+01:00</published><updated>2010-10-13T10:03:19.583+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Talent book profile</title><content type='html'>&lt;table border="1" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="5" style="writing-mode: tb-rl; filter: flipv fliph;"&gt;&lt;strong&gt;POTENTIAL&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Seeks new Challenges&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Enigma&lt;/td&gt;&lt;td&gt;Growth Employee&lt;/td&gt;&lt;td&gt;Next Generation Leader&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;em&gt;Potential growth / role expansion&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Dilemma&lt;/td&gt;&lt;td&gt;Core Employee&lt;/td&gt;&lt;td&gt;High Impact Performer&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;em&gt;No / Limited Growth&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Under Performer&lt;/td&gt;&lt;td&gt;Effective&lt;/td&gt;&lt;td&gt;Trusted Professional&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Does not / partially meets expectations&lt;/em&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Meets expectations&lt;/em&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Exceeds expectations&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="4"&gt;&lt;strong&gt;PERFORMANCE&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4536368035831416792?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4536368035831416792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/talent-book-profile.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4536368035831416792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4536368035831416792'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/talent-book-profile.html' title='Talent book profile'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7134014691540672059</id><published>2010-10-13T05:48:00.000+01:00</published><updated>2010-10-13T10:48:23.911+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>The jQuery plugin that ate the world!</title><content type='html'>&lt;p&gt;So I was looking at placing a Wordpress pages content flow into columns as I was using the &lt;abbr title="Yahoo! User Interface Library"&gt;&lt;a href="http://developer.yahoo.com/yui/2/"&gt;YUI 2&lt;/a&gt;&lt;/abbr&gt; to format the page… I thought about using jQuery and worked up an example using some of &lt;a href="http://www.karlswedberg.com/"&gt;Karl Swedberg&lt;/a&gt;'s work as a basis along with inspiration from &lt;a href="http://welcome.totheinter.net/columnizer-jquery-plugin/"&gt;Adam Wulf&lt;/a&gt;. But… the script worked by looking at each element… each &lt;abbr title="paragraph"&gt;&lt;code&gt;p&lt;/code&gt;&lt;/abbr&gt;, each &lt;abbr title="horizontal rule"&gt;&lt;code&gt;hr&lt;/code&gt;&lt;/abbr&gt; and each and every &lt;abbr title="level 2 heading"&gt;&lt;code&gt;h2&lt;/code&gt;&lt;/abbr&gt;. After it counted 'em all it divided 'em by 3 placed that number in each column… which is cool except that a &lt;code&gt;hr&lt;/code&gt; is a lot shorter than a paragraph (generally) and the layout broke.&lt;/p&gt;  &lt;p&gt;I then started pondering getting the computed style (and don't get me started on how this is a bugger when IE is involved) of an imaginary page with the same width of the columns and then splitting that in 3 and somehow getting that chunk of elements (and perhaps splitting the odd &lt;code&gt;p&lt;/code&gt; in the process) and putting them in the place where they're supposed to go… but that get problematic when you start to ignore &lt;code&gt;hr&lt;/code&gt;s, you might end up getting the &lt;code&gt;hr&lt;/code&gt;, which I was using as an underline to the &lt;code&gt;h2&lt;/code&gt;, at the start of one column when it should be at the bottom of the other… or even better, beneath the heading at the top of the next column because the script was smart enough to know where headings - as well as horizontal rules - should properly go. Needless to say, it was getting far too complicated!&lt;/p&gt;  &lt;p&gt;I had visions - nay, nightmares - about this plugin. I dreamt it got more and more complex, that I managed to write some weird, otherworldly, algorithm to predict where the breaks should occur, that it began to read the minds of the authors to such an extent that it'd correct the content on the fly, that it became… to all intents and purposes, the jQuery plugin that ate the world!&lt;/p&gt;  &lt;p&gt;So I looked at something else before the weird little plan that I had in my head started to develop it's own form of consciousness and looked at the &lt;a href="http://codex.wordpress.org/Main_Page"&gt;Wordpress Codex&lt;/a&gt; again.&lt;/p&gt;  &lt;p&gt;I found some stuff on &lt;a href="http://codex.wordpress.org/Shortcode_API"&gt;shortcodes&lt;/a&gt; (which are a simple set of functions for creating macro codes for use in post content). and so I wrote these:&lt;/p&gt;  &lt;pre style="background: #ffffff; color: #000000"&gt;&lt;span style="background: #ffffe8; color: #a65700"&gt;&amp;lt;?php&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;function&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; basic_leftcolumn&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$atts&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; null&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;{&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;return&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'&amp;lt;div class=&amp;quot;yui-u first&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'&amp;lt;/div&amp;gt;'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800080"&gt;}&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;add_shortcode&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;leftcolumn&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;basic_leftcolumn&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;function&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; basic_middlecolumn&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$atts&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; null&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;{&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;return&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'&amp;lt;div class=&amp;quot;yui-u&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'&amp;lt;/div&amp;gt;'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800080"&gt;}&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;add_shortcode&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;middlecolumn&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;basic_middlecolumn&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;function&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; basic_rightcolumn&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$atts&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; null&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;{&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;return&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'&amp;lt;div class=&amp;quot;yui-u&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'&amp;lt;/div&amp;gt;'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800080"&gt;}&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;add_shortcode&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;rightcolumn&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;&amp;quot;basic_rightcolumn&amp;quot;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #a65700"&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;Which, when placed in the &lt;a href="http://codex.wordpress.org/Theme_Development#Functions_File"&gt;functions.php&lt;/a&gt; file in my theme worked a treat except that extra &lt;abbr title="single line break"&gt;&lt;code&gt;br&lt;/code&gt;&lt;/abbr&gt;s were introduced... after some research I found this code from &lt;a href="http://richbui.com/web/wordpress-how-to-break-content-into-two-columns/"&gt;Adding Column Layout Shortcodes to Your Wordpress Theme&lt;/a&gt;:&lt;/p&gt;

&lt;pre style="background: #ffffff; color: #000000"&gt;&lt;span style="background: #ffffe8; color: #a65700"&gt;&amp;lt;?php&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;function&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; webtreats_formatter&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;{&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$new_content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;''&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #696969"&gt;/* Matches the contents and the open and closing tags */&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$pattern_full&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'{(\[raw\].*?\[/raw\])}is'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #696969"&gt;/* Matches just the contents */&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$pattern_contents&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'{\[raw\](.*?)\[/raw\]}is'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #696969"&gt;/* Divide content into pieces */&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$pieces&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #400000"&gt;preg_split&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$pattern_full&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;-&lt;/span&gt;&lt;span style="background: #ffffe8; color: #008c00"&gt;1&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #7d0045"&gt;PREG_SPLIT_DELIM_CAPTURE&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #696969"&gt;/* Loop over pieces */&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;foreach&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$pieces&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;as&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$piece&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;{&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #696969"&gt;/* Look for presence of the shortcode */&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;if&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #400000"&gt;preg_match&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$pattern_contents&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$piece&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$matches&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;{&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #696969"&gt;/* Append to content (no formatting) */&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$new_content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$matches&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;[&lt;/span&gt;&lt;span style="background: #ffffe8; color: #008c00"&gt;1&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;]&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;}&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;else&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;{&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #696969"&gt;/* Format and append to content */&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$new_content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;.&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;=&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; wptexturize&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;wpautop&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$piece&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;}&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;}&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #800000; font-weight: bold"&gt;return&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;$new_content&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #800080"&gt;}&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #696969"&gt;// Remove the 2 main auto-formatters&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;remove_filter&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'the_content'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'wpautop'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;remove_filter&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'the_content'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'wptexturize'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;&amp;#160;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #696969"&gt;// Before displaying for viewing, apply this function&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;add_filter&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'the_content'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'webtreats_formatter'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #008c00"&gt;99&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #000000"&gt;add_filter&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;(&lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'widget_text'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #0000e6"&gt;'webtreats_formatter'&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;,&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt; &lt;/span&gt;&lt;span style="background: #ffffe8; color: #008c00"&gt;99&lt;/span&gt;&lt;span style="background: #ffffe8; color: #808030"&gt;)&lt;/span&gt;&lt;span style="background: #ffffe8; color: #800080"&gt;;&lt;/span&gt;&lt;span style="background: #ffffe8; color: #000000"&gt;&lt;/span&gt;
&lt;span style="background: #ffffe8; color: #a65700"&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;Which also got added to functions.php and everything worked a treat!&lt;/p&gt;

&lt;p&gt;Everyone is now happy and they can use a simple mechanism to split the content between the columns and the plugin is safely locked in the back of my head… never to menace the world again!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7134014691540672059?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7134014691540672059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/jquery-plugin-that-ate-world.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7134014691540672059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7134014691540672059'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/jquery-plugin-that-ate-world.html' title='The jQuery plugin that ate the world!'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-5962482759813374014</id><published>2010-10-11T12:06:00.000+01:00</published><updated>2010-10-11T12:07:17.660+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Suppression of IE Tooltips on an imagemap area</title><content type='html'>&lt;p&gt;So I was messing around with image-maps so that I could get a visualisation to work properly on Internet Explorer... Except the tooltips which the browser threw up interfered with my own tooltips!&lt;/p&gt;&lt;p&gt;There seems to be masses of debate about whether or not it's a good idea to show the &lt;code&gt;alt&lt;/code&gt; text for an image as a tooltip and the way around it generally is to have an empty &lt;code&gt;title&lt;/code&gt; attribute suppress the &lt;code&gt;alt&lt;/code&gt; text tooltip in Internet Explorer... except that that doesn't work in the context of image-maps...&lt;/p&gt;&lt;p&gt;Now I was looking into this as I was using javascript to generate a tooltip so I had to add event listeners (don't get me started on how that's a pain in the arse for Internet Explorer).&lt;/p&gt;&lt;p&gt;So within my code for the event handlers I simply used javascript to create a &lt;code&gt;name&lt;/code&gt; attribute for the area and then populate that attribute with the &lt;code&gt;alt&lt;/code&gt; text before clearing the &lt;code&gt;alt&lt;/code&gt; text for the onmouseover event. For the onmouseout event I nigh on reversed it by adding the &lt;code&gt;name&lt;/code&gt; text to the &lt;code&gt;alt&lt;/code&gt; attribute before removing the &lt;code&gt;name&lt;/code&gt; attribute.&lt;/p&gt;&lt;p&gt;Simple ehh?&lt;/p&gt;&lt;p&gt;This is the code, truncated to show what I mean:&lt;/p&gt;&lt;p&gt;onmouseover&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; doSomething&lt;span style='color:#808030; '&gt;(&lt;/span&gt;event&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// ...loads of code here...&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;!document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;addEventListener&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
    event&lt;span style='color:#808030; '&gt;.&lt;/span&gt;srcElement&lt;span style='color:#808030; '&gt;.&lt;/span&gt;setAttribute&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"name"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; event&lt;span style='color:#808030; '&gt;.&lt;/span&gt;srcElement&lt;span style='color:#808030; '&gt;.&lt;/span&gt;alt&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
    event&lt;span style='color:#808030; '&gt;.&lt;/span&gt;srcElement&lt;span style='color:#808030; '&gt;.&lt;/span&gt;setAttribute&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"alt"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;""&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;onmouseout&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; doSomethingElse&lt;span style='color:#808030; '&gt;(&lt;/span&gt;event&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// ...only a little bit of code here...&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;!document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;addEventListener&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
    event&lt;span style='color:#808030; '&gt;.&lt;/span&gt;srcElement&lt;span style='color:#808030; '&gt;.&lt;/span&gt;setAttribute&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"alt"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; event&lt;span style='color:#808030; '&gt;.&lt;/span&gt;srcElement&lt;span style='color:#808030; '&gt;.&lt;/span&gt;name&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
    event&lt;span style='color:#808030; '&gt;.&lt;/span&gt;srcElement&lt;span style='color:#808030; '&gt;.&lt;/span&gt;removeAttribute&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"name"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-5962482759813374014?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/5962482759813374014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/suppression-of-ie-tooltips-on-imagemap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5962482759813374014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5962482759813374014'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/suppression-of-ie-tooltips-on-imagemap.html' title='Suppression of IE Tooltips on an imagemap area'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3127496586377614752</id><published>2010-10-08T07:54:00.002+01:00</published><updated>2010-10-08T07:58:07.205+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Tories are wrong!</title><content type='html'>&lt;p&gt;After news of Jeremy Hunt's pronouncement &lt;a href="http://www.dailymail.co.uk/news/article-1318439/Jeremy-Hunt-Dont-expect-pay-benefits-unlimited-babies.html"&gt;that the workshy should stop having children if they cannot afford them&lt;/a&gt; one is minded of the words of &lt;a href="http://en.wikipedia.org/wiki/Jonathan_Swift"&gt;Jonathan Swift&lt;/a&gt; when he said:&lt;/p&gt;&lt;blockquote&gt;I have been assured by a very knowing American of my acquaintance in London, that a young healthy child well nursed is at a year old a most delicious, nourishing, and wholesome food, whether stewed, roasted, baked, or boiled&amp;hellip;&lt;/blockquote&gt;&lt;p&gt;Food for thought indeed ;-)&lt;/p&gt;&lt;p&gt;How long will it be before he's slapped down by his superiors and the children of the poor are sent to schools where they are taught valuable skills &lt;i&gt;a la&lt;/i&gt; &lt;a href="http://en.wikipedia.org/wiki/Children_of_Earth"&gt;Children of Earth&lt;/a&gt; and are never to be seen again? Except, perhaps, as a tasty pie&amp;hellip;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3127496586377614752?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3127496586377614752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/tories-are-wrong.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3127496586377614752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3127496586377614752'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/tories-are-wrong.html' title='Tories are wrong!'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7839982274684683649</id><published>2010-10-07T13:34:00.003+01:00</published><updated>2010-10-07T15:02:42.075+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>IE8 and SVG</title><content type='html'>&lt;p&gt;So I've been working on and off on a visualisation for a few weeks now... I was really quite happy with the result too. Except that the client was demoing on &lt;abbr title="Internet Explorer 8"&gt;IE8&lt;/abbr&gt;, which is a huge improvement on IE7 and IE6 etc but still sucks!&lt;/p&gt;&lt;p&gt;Everything was working fine in Opera, Firefox and Chrome but what with the client using, as I've said, IE8 I needed to think of something else.&lt;/p&gt;&lt;p&gt;So I looked at &lt;a href="http://raphaeljs.com/"&gt;Raphael&lt;/a&gt; and other libraries but then I got to thinking how IE8 was an improvement because it could handle &lt;a href="http://en.wikipedia.org/wiki/Alpha_compositing"&gt;alpha-transparency&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Now the visualisation involved transparent layers upon a map. This got me thinking: The map could be a suitably sized &lt;abbr title="In HTML, the span and div elements are used where parts of a document cannot be semantically described by other HTML elements"&gt;div&lt;/abbr&gt; with a &lt;abbr title="Graphics file format created by the Joint Photographic Experts Group"&gt;jpeg&lt;/abbr&gt; &lt;a href="http://www.w3schools.com/css/pr_background-image.asp"&gt;background-image&lt;/a&gt; and then layering the different images atop that div by setting their position as being &lt;a href="http://css-tricks.com/absolute-positioning-inside-relative-positioning/"&gt;absolute in regards to the absolutely positioned&lt;/a&gt; map div.&lt;/p&gt;&lt;p&gt;The original visualisation used the &lt;abbr title="Scalable Vector Graphics"&gt;SVG&lt;/abbr&gt; in order to trigger some pop-ups that gave further information, but that wasn't now possible so instead I looked at something really rather old school and thought about &lt;a href="http://www.w3schools.com/TAGS/tag_map.asp"&gt;image-maps&lt;/a&gt;. &lt;p&gt;Image-maps used to be &lt;a href="http://www.builderau.com.au/program/css/soa/How-do-I-use-CSS-to-create-an-image-map-on-my-website-/0,339028392,339294885,00.htm"&gt;really quite popular&lt;/a&gt; but have recently &lt;a href="http://www.maximumpc.com/article/features/the_7_most_misused_html_tags_and_how_fix_them"&gt;lost ground to more modern approaches&lt;/a&gt;, I'm not totally sorry to see them go but I did find them a little useful at times... if a bit of a bugger to sort out by hand!&lt;/p&gt;&lt;p&gt;This is where &lt;a href="http://www.boutell.com/mapedit/"&gt;Mapedit&lt;/a&gt; comes in useful though! What with the ability to zoom and having pixel-perfect control of the points of the image-map (and the judicious use of my &lt;a href="http://www.wacom.com/bamboo/bamboo_pen_touch.php"&gt;Wacom tablet&lt;/a&gt;), it makes making an image-map a joy, and only &amp;#36;15!&lt;/p&gt;&lt;p&gt;So now I'm not quite so naffed-off with having to support IE8, that is unless future versions of browsers stop supporting image-maps!&lt;/p&gt;&lt;p&gt;Speaking of maps, &lt;a href="http://prettymaps.stamen.com/"&gt;prettymaps&lt;/a&gt; are cool, especially &lt;a href="http://prettymaps.stamen.com/201008/#10.00/51.4800/-0.6880"&gt;this&lt;/a&gt; one:&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Vs4RMAeHa6Q/TK3Sb9bI-8I/AAAAAAAAG_4/O1mpqtU7Tig/s1600/rbwm.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 139px;" src="http://3.bp.blogspot.com/_Vs4RMAeHa6Q/TK3Sb9bI-8I/AAAAAAAAG_4/O1mpqtU7Tig/s400/rbwm.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5525303695640165314" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7839982274684683649?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7839982274684683649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/ie8-and-svg.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7839982274684683649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7839982274684683649'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/ie8-and-svg.html' title='IE8 and SVG'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Vs4RMAeHa6Q/TK3Sb9bI-8I/AAAAAAAAG_4/O1mpqtU7Tig/s72-c/rbwm.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3051811549677814279</id><published>2010-10-06T14:44:00.005+01:00</published><updated>2010-10-13T10:05:08.432+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Bradford Factor</title><content type='html'>&lt;p&gt;I've been doing a fair bit of work on the &lt;a href="http://en.wikipedia.org/wiki/Bradford_Factor"&gt;Bradford Factor&lt;/a&gt; for work... it's really quite nasty. I've had to generate some figures but couldn't clock what valid numbers there were so I created this &lt;a href="https://spreadsheets.google.com/ccc?key=0AiRgQIhodQXfdEZoTklSVVNoeWhscnV3MnJvUGp1ZXc&amp;hl=en_GB"&gt;spreadsheet&lt;/a&gt; to look up valid figures (no prime numbers allowed... except you can up until a certain number). If it help then please use it. It's got the number of periods of time off along the left and the total number of days off along the top.&lt;/p&gt;&lt;p&gt;Also had to do some stuff on the &lt;a href="http://en.wikipedia.org/wiki/Myers-Briggs_Type_Indicator"&gt;Myers-Briggs Type Indicator&lt;/a&gt; and I wanted to know what they were, the table below has a title attribute to each cell which'll show a tool tip for each type:&lt;/p&gt;

&lt;table border="1" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td title="Introversion, Sensing, Thinking, Judgment"&gt;ISTJ&lt;/td&gt;&lt;td title="Introversion, Sensing, Feeling, Judgment"&gt;ISFJ&lt;/td&gt;&lt;td title="Introversion, Intuition, Feeling, Judging"&gt;INFJ&lt;/td&gt;&lt;td title="Introversion, Intuition, Thinking, Judgment"&gt;INTJ&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td title="Introversion, Sensing, Thinking, Perception"&gt;ISTP&lt;/td&gt;&lt;td title="Introversion, Sensing, Feeling, Perception"&gt;ISFP&lt;/td&gt;&lt;td title="Introversion, Intuition, Feeling, Perception"&gt;INFP&lt;/td&gt;&lt;td title="Introversion, Intuition, Thinking, Perception"&gt;INTP&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td title="Extraversion, Sensing, Thinking, Perception"&gt;ESTP&lt;/td&gt;&lt;td title="Extraversion, Sensing, Feeling, Perception"&gt;ESFP&lt;/td&gt;&lt;td title="Extraversion, Intuition, Feeling, Perception"&gt;ENFP&lt;/td&gt;&lt;td title="Extraversion, Intuition, Thinking, Perception"&gt;ENTP&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td title="Extraversion, Sensing, Thinking, Judgment"&gt;ESTJ&lt;/td&gt;&lt;td title="Extraversion, Sensing, Feeling, Judgment"&gt;ESFJ&lt;/td&gt;&lt;td title="Extraversion, Intuition, Feeling, Judgment"&gt;ENFJ&lt;/td&gt;&lt;td title="Extraversion, Intuition, Thinking, Judgment"&gt;ENTJ&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3051811549677814279?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3051811549677814279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/10/bradford-factor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3051811549677814279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3051811549677814279'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/10/bradford-factor.html' title='Bradford Factor'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-8013290443796552552</id><published>2010-09-17T10:36:00.000+01:00</published><updated>2010-09-17T10:37:05.726+01:00</updated><title type='text'>JavaScript 'if' shorthand</title><content type='html'>&lt;p&gt;I'm not generally a fan of shorthand but the code I'm working on at the minute has loads and loads of if... else statements and they're making the code look bloody ugly so I thought I'd look at the shorthand for if... else. Turns out that it involves a ternary operator.&lt;/p&gt;&lt;p&gt;Anyway the code I'm working on looks like this:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;$&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;'#reverse'&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;attr&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;'checked'&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  newColour &lt;span style='color:#808030; '&gt;=&lt;/span&gt; red&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;else&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  newColour &lt;span style='color:#808030; '&gt;=&lt;/span&gt; red&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;Which becomes:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;newColour &lt;span style='color:#808030; '&gt;=&lt;/span&gt; $&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;'#reverse'&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;attr&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;'checked'&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#800080; '&gt;?&lt;/span&gt; red &lt;span style='color:#800080; '&gt;:&lt;/span&gt; green&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;One line instead of five is a big improvement. And it works like this: &lt;strong&gt;condition ? result1 : result2;&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-8013290443796552552?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/8013290443796552552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/09/javascript-if-shorthand.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8013290443796552552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8013290443796552552'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/09/javascript-if-shorthand.html' title='JavaScript &apos;if&apos; shorthand'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1172553150935645061</id><published>2010-09-16T13:02:00.003+01:00</published><updated>2010-09-16T13:09:50.012+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Shocking Ice Cream Commercials</title><content type='html'>&lt;p&gt;Thanks to a post on &lt;a href="http://www.dvorak.org/blog/2010/09/15/uk-bans-pregnant-nun-ice-cream-advert/"&gt;Dvorak Uncensored&lt;/a&gt;:&lt;/p&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 287px; height: 400px;" src="http://drmsite.com/pictures/gif/shocking-ice-cream-commercials.gif" border="0"  /&gt;
&lt;p&gt;I'm not sure about what message they're trying to give and I'm sorry about the ordering, I'm not sure what that's trying to say either...&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1172553150935645061?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1172553150935645061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/09/shocking-ice-cream-commercials.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1172553150935645061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1172553150935645061'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/09/shocking-ice-cream-commercials.html' title='Shocking Ice Cream Commercials'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3173088698576162640</id><published>2010-09-16T12:01:00.000+01:00</published><updated>2010-09-16T12:01:00.252+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>M255 TMA 04 is in the bag!</title><content type='html'>&lt;p&gt;Finally finished the latest and last &lt;abbr title="Tutor Marked Assignment"&gt;TMA&lt;/abbr&gt; about half an hour ago thanks to insomnia and caffeine so today I get to play with maps of the &lt;abbr title="Royal Borough of Windsor and Maidenhead"&gt;RBWM&lt;/abbr&gt;. Yay!&lt;/p&gt;&lt;p&gt;As an aside there seemed to be an issue with the Bach/Chill interface (how often does one get to say that? (Twice now)).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3173088698576162640?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3173088698576162640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/09/m255-tma-04-is-in-bag.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3173088698576162640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3173088698576162640'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/09/m255-tma-04-is-in-bag.html' title='M255 TMA 04 is in the bag!'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-396962986834880206</id><published>2010-09-09T15:16:00.000+01:00</published><updated>2010-09-09T15:17:31.906+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>JavaScript getBackgroundImage(myDiv)</title><content type='html'>&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; getBackgroundImage&lt;span style='color:#808030; '&gt;(&lt;/span&gt;myDiv&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// string to be returned&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; returnString &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;""&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// Grab the offending element by id&lt;/span&gt;
  obj &lt;span style='color:#808030; '&gt;=&lt;/span&gt; document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;getElementById&lt;span style='color:#808030; '&gt;(&lt;/span&gt;myDiv&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// IE Opera&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;obj&lt;span style='color:#808030; '&gt;.&lt;/span&gt;currentStyle&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#800080; '&gt;{&lt;/span&gt;
    returnString &lt;span style='color:#808030; '&gt;=&lt;/span&gt; obj&lt;span style='color:#808030; '&gt;.&lt;/span&gt;currentStyle&lt;span style='color:#808030; '&gt;.&lt;/span&gt;backgroundImage&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;else&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt; &lt;span style='color:#696969; '&gt;// Firefox &lt;/span&gt;
    returnString &lt;span style='color:#808030; '&gt;=&lt;/span&gt; getComputedStyle&lt;span style='color:#808030; '&gt;(&lt;/span&gt;obj&lt;span style='color:#808030; '&gt;,&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;''&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;getPropertyValue&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;'background-image'&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// this gives is something like: "url(someDomain.com/someImageDirectory/someImage.someFormat)"&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// so we get everything after the last "/" which leaves us with "someImage.someFormat)""&lt;/span&gt;
  returnString &lt;span style='color:#808030; '&gt;=&lt;/span&gt; returnString&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;substring&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;returnString&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;lastIndexOf&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;'/'&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#808030; '&gt;+&lt;/span&gt; &lt;span style='color:#008c00; '&gt;1&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// so we get rid of the last 2 characters leaving us with:&lt;/span&gt;
  returnString &lt;span style='color:#808030; '&gt;=&lt;/span&gt; returnString&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;substring&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#008c00; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; returnString&lt;span style='color:#808030; '&gt;.&lt;/span&gt;length&lt;span style='color:#808030; '&gt;-&lt;/span&gt;&lt;span style='color:#008c00; '&gt;2&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// "someImage.someFormat"&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; returnString&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;With thanks to &lt;a href="http://www.webmasterworld.com/firefox_browser/3344017.htm"&gt;this&lt;/a&gt; post on &lt;a href="http://www.webmasterworld.com"&gt;WebmasterWorld&lt;/a&gt;. So much for being a &lt;a href="http://www.webmasterworld.com/profilev4.cgi?action=view&amp;member=birdbrain"&gt;birdbrain&lt;/a&gt;!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-396962986834880206?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/396962986834880206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/09/javascript-getbackgroundimagemydiv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/396962986834880206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/396962986834880206'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/09/javascript-getbackgroundimagemydiv.html' title='JavaScript getBackgroundImage(myDiv)'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4232875861827852476</id><published>2010-09-06T14:21:00.002+01:00</published><updated>2010-09-06T14:22:43.544+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>JavaScript isEven(value)</title><content type='html'>&lt;p&gt;Nice easy function to tell if a number is even:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; isEven&lt;span style='color:#808030; '&gt;(&lt;/span&gt;value&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; value &lt;span style='color:#808030; '&gt;%&lt;/span&gt; &lt;span style='color:#008c00; '&gt;2&lt;/span&gt; &lt;span style='color:#808030; '&gt;==&lt;/span&gt; &lt;span style='color:#008c00; '&gt;0&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4232875861827852476?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4232875861827852476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/09/javascript-isevenvalue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4232875861827852476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4232875861827852476'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/09/javascript-isevenvalue.html' title='JavaScript isEven(value)'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4556444429651899450</id><published>2010-09-02T10:59:00.000+01:00</published><updated>2010-09-02T11:00:01.757+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Seperate and Different</title><content type='html'>&lt;p&gt;I though I needed to split the functionality of some similar pages depending upon the name of the page... I should explain better! I have some pages that all do pretty much the same thing on a given set of data... but not all of the pages react in the same way to events. So I got to thinking about how I could branch the code depending upon which page was calling the JavaScript, so then I got to thinking about how to find the name of the page and came across &lt;a href="http://www.rgagnon.com/jsdetails/js-0085.html"&gt;this&lt;/a&gt; code:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; sPath &lt;span style='color:#808030; '&gt;=&lt;/span&gt; window&lt;span style='color:#808030; '&gt;.&lt;/span&gt;location&lt;span style='color:#808030; '&gt;.&lt;/span&gt;pathname&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; sPage &lt;span style='color:#808030; '&gt;=&lt;/span&gt; sPath&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;substring&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;sPath&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;lastIndexOf&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;'/'&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#808030; '&gt;+&lt;/span&gt; &lt;span style='color:#008c00; '&gt;1&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;But then that got far too complex and the JavaScript kept getting bigger and bigger and uglier and uglier so instead I had a different version of the same basic file for each page... but that got far to complicated in terms of remembering what I'd updated and where as I was developing... so I got the thinking about PHPs &lt;a href="http://php.net/manual/en/function.include.php"&gt;include()&lt;/a&gt; but JavaScript doesn't have one, it does however have fantastic &lt;abbr title="Document Object Model"&gt;DOM&lt;/abbr&gt; support so, thanks to a little research, I found &lt;a href="http://javascript.about.com/library/bladdjs.htm"&gt;this&lt;/a&gt; code from the really rather excellent &lt;a href="http://javascript.about.com/bio/Stephen-Chapman-12274.htm"&gt;Stephen Chapman&lt;/a&gt;. Now I've still got the separate JavaScript files for each page - but these pages are far smaller and concentrate on the differences rather than having to keep abreast of the similarities - but all the common functionality is kept in a separate file so that I don't need to hunt down each function in each file and update with the latest version. Cool ehh?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4556444429651899450?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4556444429651899450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/09/seperate-and-different.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4556444429651899450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4556444429651899450'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/09/seperate-and-different.html' title='Seperate and Different'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4092566763264662652</id><published>2010-09-01T08:58:00.002+01:00</published><updated>2010-09-01T09:05:51.620+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>createLink(text, uri, img, alt)</title><content type='html'>&lt;p&gt;So I've been working on a &lt;abbr title="Breadcrumbs or breadcrumb trail is a navigation aid used in user interfaces. It gives users a way to keep track of their locations within programs or documents. The term comes from the trail of breadcrumbs left by Hansel and Gretel in the popular fairytale."&gt;breadcrumb navigation&lt;/abbr&gt; where I'm using JavaScript to generate a number of &lt;abbr title="Cascading Style Sheet"&gt;CSS&lt;/abbr&gt; styled &lt;abbr title="HyperText Markup Language"&gt;HTML&lt;/abbr&gt; list elements. Each of these elements are made up of a text element and an image so that in terms of the &lt;abbr title="Document Object Model"&gt;DOM&lt;/abbr&gt; they look like this:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;li&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
  &lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;a&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;href&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"someUrl.html"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
    someText &lt;span style='color:#a65700; '&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;img&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;src&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"someImageLocation.png"&lt;/span&gt;&lt;span style='color:#274796; '&gt; &lt;/span&gt;&lt;span style='color:#074726; '&gt;alt&lt;/span&gt;&lt;span style='color:#808030; '&gt;=&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"someAlternativeText"&lt;/span&gt;&lt;span style='color:#a65700; '&gt;/&gt;&lt;/span&gt;
  &lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;a&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
&lt;span style='color:#a65700; '&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;li&lt;/span&gt;&lt;span style='color:#a65700; '&gt;&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;There were 3 of these links and the function was getting longer and longer, so I got to thinking about having to repeat so much redundant code so I pulled the 3 list items out of the function and created another function:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; createLink&lt;span style='color:#808030; '&gt;(&lt;/span&gt;text&lt;span style='color:#808030; '&gt;,&lt;/span&gt; uri&lt;span style='color:#808030; '&gt;,&lt;/span&gt; img&lt;span style='color:#808030; '&gt;,&lt;/span&gt; alt&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; li &lt;span style='color:#808030; '&gt;=&lt;/span&gt; document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;createElement&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"li"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; a &lt;span style='color:#808030; '&gt;=&lt;/span&gt; document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;createElement&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"a"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  a&lt;span style='color:#808030; '&gt;.&lt;/span&gt;setAttribute&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"href"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; uri&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; liText &lt;span style='color:#808030; '&gt;=&lt;/span&gt; document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;createTextNode&lt;span style='color:#808030; '&gt;(&lt;/span&gt;text&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; liImg &lt;span style='color:#808030; '&gt;=&lt;/span&gt; document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;createElement&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"img"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  liImg&lt;span style='color:#808030; '&gt;.&lt;/span&gt;setAttribute&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"src"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; img&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  liImg&lt;span style='color:#808030; '&gt;.&lt;/span&gt;setAttribute&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"alt"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; alt&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  a&lt;span style='color:#808030; '&gt;.&lt;/span&gt;appendChild&lt;span style='color:#808030; '&gt;(&lt;/span&gt;liImg&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  a&lt;span style='color:#808030; '&gt;.&lt;/span&gt;appendChild&lt;span style='color:#808030; '&gt;(&lt;/span&gt;document&lt;span style='color:#808030; '&gt;.&lt;/span&gt;createTextNode&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;" "&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  a&lt;span style='color:#808030; '&gt;.&lt;/span&gt;appendChild&lt;span style='color:#808030; '&gt;(&lt;/span&gt;liText&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  li&lt;span style='color:#808030; '&gt;.&lt;/span&gt;appendChild&lt;span style='color:#808030; '&gt;(&lt;/span&gt;a&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; li&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;Then I called that 3 times thus:&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;breadCrumb&lt;span style='color:#808030; '&gt;.&lt;/span&gt;appendChild&lt;span style='color:#808030; '&gt;(&lt;/span&gt;createLink&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;"someText"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;"someUrl.html"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;"someImageLocation.png"&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;"someAlternativeText"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;And Bob's your Uncle and Fanny's your...&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4092566763264662652?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4092566763264662652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/09/createlinktext-uri-img-alt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4092566763264662652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4092566763264662652'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/09/createlinktext-uri-img-alt.html' title='createLink(text, uri, img, alt)'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1086478358241654757</id><published>2010-08-31T15:07:00.002+01:00</published><updated>2010-09-01T09:02:27.051+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Quiz/Survey'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>beating the game</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Vs4RMAeHa6Q/TH0M3Urr5-I/AAAAAAAAG8k/r1suW16T3Ag/s1600/post.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 176px;" src="http://4.bp.blogspot.com/_Vs4RMAeHa6Q/TH0M3Urr5-I/AAAAAAAAG8k/r1suW16T3Ag/s400/post.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5511575663555635170" /&gt;&lt;/a&gt;&lt;p&gt;According to &lt;a href="http://googlereader.blogspot.com/2010/08/fullscreen-and-more.html"&gt;this&lt;/a&gt; post on the &lt;a href="http://googlereader.blogspot.com/"&gt;googlereader blog&lt;/a&gt; I'm beaten the game by reading more than 300,000 posts. YAY!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1086478358241654757?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1086478358241654757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/08/beating-game.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1086478358241654757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1086478358241654757'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/08/beating-game.html' title='beating the game'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Vs4RMAeHa6Q/TH0M3Urr5-I/AAAAAAAAG8k/r1suW16T3Ag/s72-c/post.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3418627516524941682</id><published>2010-08-31T13:35:00.001+01:00</published><updated>2010-09-01T09:02:46.268+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Older Men Scam</title><content type='html'>&lt;p&gt;(Thanks to &lt;a href="http://groups.google.com/group/uk.rec.waterways/browse_thread/thread/c954cc4db90a3620#"&gt;this&lt;/a&gt; post on &lt;a href="http://groups.google.co.uk/group/uk.rec.waterways"&gt;uk.rec.waterways&lt;/a&gt; - I'm pretty sure that this has made it's way across the pond but I found it funny ;-))&lt;/p&gt;
&lt;p&gt;Women often receive warnings about protecting themselves at the mall and in dark parking lots, etc. This is the first warning I have seen for men.&lt;/p&gt;
&lt;p&gt;A 'heads up' for men who may be regular customers at Sainsburys, Tesco, Costco, or even Asda. A man can become a victim of a clever scam while out shopping. Simply going out to get supplies has turned out to be quite traumatic.&lt;/p&gt;
&lt;p&gt;Here's how the scam works:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Two nice-looking, college-aged girls will come over to your car or truck as you are packing your purchases into your vehicle. Both start wiping your windshield with a rag and squeegee, with their breasts almost falling out of their skimpy T-shirts.&lt;/li&gt;
&lt;li&gt;When you thank them and offer them a tip, they say 'No' but instead ask for a ride to McDonald's.&lt;/li&gt;
&lt;li&gt;You agree and they climb into the vehicle. On the way, they start undressing. Then one starts crawling all over you, while the other steals your wallet.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I had my wallet stolen May 4th, 9th, 10th, twice on the 15th, 17th, 20th, 24th, &amp; 29th. Also June 1st &amp; 4th, twice on the 8th, 16th, 23rd, 26th &amp; 27th, and very likely again this upcoming weekend.&lt;/p&gt;
&lt;p&gt;So tell your friends to be careful. What a horrible way to take advantage of us older men. Warn your friends to be vigilant. Asda has wallets on sale for £2.99 each. I found even cheaper ones for £0.99 at the pound shop. Also, you never get to eat at McDonald's. I've already lost 11 pounds just running back and forth from Sainsburys, to Tesco, to Asda, Etc.&lt;/p&gt;
&lt;p&gt;Please send this on to all the older men that you know and warn them to be on the lookout for this scam. (The best times are just before lunch and around 4:30 in the afternoon.)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3418627516524941682?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3418627516524941682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/08/older-men-scam.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3418627516524941682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3418627516524941682'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/08/older-men-scam.html' title='Older Men Scam'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1583205367034652346</id><published>2010-08-31T11:09:00.001+01:00</published><updated>2010-09-01T09:03:06.942+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>JavaScript trim functions</title><content type='html'>&lt;p&gt;These are from: &lt;a href="http://www.somacon.com/p355.php"&gt;Shailesh N. Humbad&lt;/a&gt;, and they are really rather cool, check out his site.&lt;/p&gt;
&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; trim&lt;span style='color:#808030; '&gt;(&lt;/span&gt;stringToTrim&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; stringToTrim&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;replace&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; '&gt;/&lt;/span&gt;&lt;span style='color:#808030; '&gt;^&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;\s&lt;/span&gt;&lt;span style='color:#808030; '&gt;+&lt;/span&gt;&lt;span style='color:#800080; '&gt;|&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;\s&lt;/span&gt;&lt;span style='color:#808030; '&gt;+&lt;/span&gt;&lt;span style='color:#808030; '&gt;$&lt;/span&gt;&lt;span style='color:#800000; '&gt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;g&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;""&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; ltrim&lt;span style='color:#808030; '&gt;(&lt;/span&gt;stringToTrim&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; stringToTrim&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;replace&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; '&gt;/&lt;/span&gt;&lt;span style='color:#808030; '&gt;^&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;\s&lt;/span&gt;&lt;span style='color:#808030; '&gt;+&lt;/span&gt;&lt;span style='color:#800000; '&gt;/&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;""&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; rtrim&lt;span style='color:#808030; '&gt;(&lt;/span&gt;stringToTrim&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; stringToTrim&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;replace&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; '&gt;/&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;\s&lt;/span&gt;&lt;span style='color:#808030; '&gt;+&lt;/span&gt;&lt;span style='color:#808030; '&gt;$&lt;/span&gt;&lt;span style='color:#800000; '&gt;/&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;""&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1583205367034652346?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1583205367034652346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/08/javascript-trim-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1583205367034652346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1583205367034652346'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/08/javascript-trim-functions.html' title='JavaScript trim functions'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-5578387237494779984</id><published>2010-08-31T10:26:00.008+01:00</published><updated>2010-09-01T09:03:32.175+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>arrayValueExistsAdapted(anArray, aValue) JavaScript</title><content type='html'>&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#696969; '&gt;/**&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* Tests to see if aValue exists in anArray. Doesn't check to see if the whole of aValue exists but instead looks at the &lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;*   string which comes before a colon punctuation mark (":") within each string element within the array.&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* @param anArray - an string array which is parsed, the element which is tested is anything before a colon in each &lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;*   element of the array.&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* @param aValue - a value which is compared to the part of the element of anArray which comes before the colon &lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;*   punctuation mark.&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* returns true if aValue is found within anArray, else return false. &lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;*/&lt;/span&gt;
&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; arrayValueExistsAdapted&lt;span style='color:#808030; '&gt;(&lt;/span&gt;anArray&lt;span style='color:#808030; '&gt;,&lt;/span&gt; aValue&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; found &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#0f4d75; '&gt;false&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;for&lt;/span&gt; &lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; i &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#008c00; '&gt;0&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt; i &lt;span style='color:#808030; '&gt;&amp;lt;&lt;/span&gt; anArray&lt;span style='color:#808030; '&gt;.&lt;/span&gt;length&lt;span style='color:#800080; '&gt;;&lt;/span&gt; i&lt;span style='color:#808030; '&gt;++&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
    &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; crumb1 &lt;span style='color:#808030; '&gt;=&lt;/span&gt; anArray&lt;span style='color:#808030; '&gt;[&lt;/span&gt;i&lt;span style='color:#808030; '&gt;]&lt;/span&gt;&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;split&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;":"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
    &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt; &lt;span style='color:#808030; '&gt;(&lt;/span&gt;crumb1&lt;span style='color:#808030; '&gt;[&lt;/span&gt;&lt;span style='color:#008c00; '&gt;0&lt;/span&gt;&lt;span style='color:#808030; '&gt;]&lt;/span&gt; &lt;span style='color:#808030; '&gt;==&lt;/span&gt; aValue&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
      found &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#0f4d75; '&gt;true&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
    &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; found&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;p&gt;Adapted from arrayValueExists(anArray, aValue):&lt;/p&gt;&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#696969; '&gt;/**&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* Test to see if aValue is present within the elements of anArray, returns true if it does, &lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;*   else returns false.&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* @param anArray&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* @param aValue&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;*/&lt;/span&gt;
&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; arrayValueExists&lt;span style='color:#808030; '&gt;(&lt;/span&gt;anArray&lt;span style='color:#808030; '&gt;,&lt;/span&gt; aValue&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; found &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#0f4d75; '&gt;false&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;for&lt;/span&gt; &lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; i &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#008c00; '&gt;0&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt; i &lt;span style='color:#808030; '&gt;&amp;lt;&lt;/span&gt; anArray&lt;span style='color:#808030; '&gt;.&lt;/span&gt;length&lt;span style='color:#800080; '&gt;;&lt;/span&gt; i&lt;span style='color:#808030; '&gt;++&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
    &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt; &lt;span style='color:#808030; '&gt;(&lt;/span&gt;anArray&lt;span style='color:#808030; '&gt;[&lt;/span&gt;i&lt;span style='color:#808030; '&gt;]&lt;/span&gt; &lt;span style='color:#808030; '&gt;==&lt;/span&gt; aValue&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
      found &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#0f4d75; '&gt;true&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
    &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; found&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-5578387237494779984?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/5578387237494779984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/08/arrayvalueexistsadapted-javascript.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5578387237494779984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5578387237494779984'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/08/arrayvalueexistsadapted-javascript.html' title='arrayValueExistsAdapted(anArray, aValue) JavaScript'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6361813647473885737</id><published>2010-08-31T10:26:00.007+01:00</published><updated>2010-09-01T09:03:19.447+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>valueToInt(value, up) JavaScript</title><content type='html'>&lt;pre style='color:#000000;background:#ffffff;'&gt;&lt;span style='color:#696969; '&gt;/**&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* Function which accepts two parameters.&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* @param value - value passed into the function either a float, int or string (containing a number).&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* @param up - boolean value which defines whether returned integer should be rounded rounded up or rounded down&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* &lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* If "up" isn't present then the number is rounded, if "up" is true then the number is rounded up &lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;* else it's rounded down.&lt;/span&gt;
&lt;span style='color:#696969; '&gt;&amp;#xa0;*/&lt;/span&gt;
&lt;span style='color:#800000; font-weight:bold; '&gt;function&lt;/span&gt; valueToInt&lt;span style='color:#808030; '&gt;(&lt;/span&gt;value&lt;span style='color:#808030; '&gt;,&lt;/span&gt; up&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;var&lt;/span&gt; returnValue&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// From: http://joeyjavas.com/2007/06/25/javascript-how-to-remove-all-commas-from-a-number/&lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// If we have a number that's in the format 123,456.00 this removes the commas and gives us 123456.00 &lt;/span&gt;
  &lt;span style='color:#696969; '&gt;// which can subsequently be parsed as a float.&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;typeof&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;value&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#808030; '&gt;==&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;"string"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
    value &lt;span style='color:#808030; '&gt;=&lt;/span&gt; value&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;replace&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; '&gt;/&lt;/span&gt;&lt;span style='color:#0f69ff; '&gt;\,&lt;/span&gt;&lt;span style='color:#800000; '&gt;/&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;g&lt;/span&gt;&lt;span style='color:#808030; '&gt;,&lt;/span&gt;&lt;span style='color:#0000e6; '&gt;''&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
    &lt;span style='color:#800000; font-weight:bold; '&gt;try&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
      returnValue &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#800000; font-weight:bold; '&gt;parseFloat&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;value&lt;span style='color:#808030; '&gt;)&lt;/span&gt;
    &lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;catch&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;e&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
      returnValue &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#008c00; '&gt;0&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
    &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;typeof&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;value&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#808030; '&gt;==&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;"number"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
    returnValue &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#800000; font-weight:bold; '&gt;parseFloat&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;returnValue&lt;span style='color:#808030; '&gt;)&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;!up&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
    returnValue &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#800000; font-weight:bold; '&gt;parseInt&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;Math&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;round&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;returnValue&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;else&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
    &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;typeof&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;up&lt;span style='color:#808030; '&gt;)&lt;/span&gt; &lt;span style='color:#808030; '&gt;==&lt;/span&gt; &lt;span style='color:#0000e6; '&gt;"boolean"&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
      &lt;span style='color:#800000; font-weight:bold; '&gt;if&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;up&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
        returnValue &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#800000; font-weight:bold; '&gt;parseInt&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;Math&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;ceil&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;value&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
      &lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;else&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
        returnValue &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#800000; font-weight:bold; '&gt;parseInt&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;Math&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;floor&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;value&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
      &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
    &lt;span style='color:#800080; '&gt;}&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;else&lt;/span&gt;&lt;span style='color:#800080; '&gt;{&lt;/span&gt;
      returnValue &lt;span style='color:#808030; '&gt;=&lt;/span&gt; &lt;span style='color:#800000; font-weight:bold; '&gt;parseInt&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;Math&lt;span style='color:#808030; '&gt;.&lt;/span&gt;&lt;span style='color:#800000; font-weight:bold; '&gt;round&lt;/span&gt;&lt;span style='color:#808030; '&gt;(&lt;/span&gt;returnValue&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#808030; '&gt;)&lt;/span&gt;&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
    &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#800080; '&gt;}&lt;/span&gt;
  &lt;span style='color:#800000; font-weight:bold; '&gt;return&lt;/span&gt; returnValue&lt;span style='color:#800080; '&gt;;&lt;/span&gt;
&lt;span style='color:#800080; '&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;And to add them back:&lt;/p&gt;&lt;pre&gt;
&lt;FONT COLOR=RED&gt;&lt;B&gt;function&lt;/B&gt;&lt;/FONT&gt; commaFormat&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;amount&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;{&lt;/B&gt;&lt;/FONT&gt;
  &lt;FONT COLOR=RED&gt;&lt;B&gt;var&lt;/B&gt;&lt;/FONT&gt; number &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; &lt;FONT COLOR=PURPLE&gt;''&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt; amount&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt;

  &lt;FONT COLOR=RED&gt;&lt;B&gt;if&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;number&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;length &lt;FONT COLOR=BLUE SIZE=+1&gt;&amp;gt;&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;3&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;{&lt;/B&gt;&lt;/FONT&gt;
    &lt;FONT COLOR=RED&gt;&lt;B&gt;var&lt;/B&gt;&lt;/FONT&gt; mod &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; number&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;length &lt;FONT COLOR=BLUE SIZE=+1&gt;%&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;3&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt;

    &lt;FONT COLOR=RED&gt;&lt;B&gt;var&lt;/B&gt;&lt;/FONT&gt; output &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;mod &lt;FONT COLOR=BLUE SIZE=+1&gt;&amp;gt;&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;0&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;?&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;number&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;substring&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BROWN&gt;0&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;,&lt;/B&gt;&lt;/FONT&gt;mod&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;:&lt;/FONT&gt; &lt;FONT COLOR=PURPLE&gt;''&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt;

    &lt;FONT COLOR=RED&gt;&lt;B&gt;for&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;i&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BROWN&gt;0&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt; i &lt;FONT COLOR=BLUE SIZE=+1&gt;&amp;lt;&lt;/FONT&gt; Math&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;floor&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;number&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;length &lt;FONT COLOR=BLUE SIZE=+1&gt;/&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;3&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt; i&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;{&lt;/B&gt;&lt;/FONT&gt;

      &lt;FONT COLOR=RED&gt;&lt;B&gt;if&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;mod &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;0&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&amp;amp;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&amp;amp;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;i &lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;0&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;{&lt;/B&gt;&lt;/FONT&gt;

        output &lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; number&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;substring&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;mod&lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;3&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;*&lt;/FONT&gt; i&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;,&lt;/B&gt;&lt;/FONT&gt; mod &lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;3&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;*&lt;/FONT&gt; i &lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;3&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt;

      &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;}&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=RED&gt;&lt;B&gt;else&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;{&lt;/B&gt;&lt;/FONT&gt;
        output&lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;=&lt;/FONT&gt; &lt;FONT COLOR=PURPLE&gt;','&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt; number&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;.&lt;/B&gt;&lt;/FONT&gt;substring&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;mod &lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;3&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;*&lt;/FONT&gt; i&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;,&lt;/B&gt;&lt;/FONT&gt; mod &lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;3&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;*&lt;/FONT&gt; i &lt;FONT COLOR=BLUE SIZE=+1&gt;+&lt;/FONT&gt; &lt;FONT COLOR=BROWN&gt;3&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt;

      &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;}&lt;/B&gt;&lt;/FONT&gt;
    &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;}&lt;/B&gt;&lt;/FONT&gt;
    &lt;FONT COLOR=RED&gt;&lt;B&gt;return&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;(&lt;/B&gt;&lt;/FONT&gt;output&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;)&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt;
  &lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;}&lt;/B&gt;&lt;/FONT&gt;

  &lt;FONT COLOR=RED&gt;&lt;B&gt;else&lt;/B&gt;&lt;/FONT&gt; &lt;FONT COLOR=RED&gt;&lt;B&gt;return&lt;/B&gt;&lt;/FONT&gt; number&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;;&lt;/B&gt;&lt;/FONT&gt;
&lt;FONT COLOR=BLUE SIZE=+1&gt;&lt;B&gt;}&lt;/B&gt;&lt;/FONT&gt;&lt;/pre&gt;&lt;p&gt;As per &lt;a href="http://www.chamisplace.com/colorizer/cc.asp"&gt;CodeColorizer&lt;/a&gt; or &lt;a href="http://www.mredkj.com/javascript/nfbasic.html"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6361813647473885737?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6361813647473885737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/08/valuetoint-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6361813647473885737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6361813647473885737'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/08/valuetoint-javascript.html' title='valueToInt(value, up) JavaScript'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7676271605959142832</id><published>2010-08-24T11:53:00.005+01:00</published><updated>2010-09-01T09:03:45.778+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'>Burnt ankles</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Vs4RMAeHa6Q/THOliPib9HI/AAAAAAAAG5k/9eJQotD5ilw/s1600/2010-08-24+10.55.00.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 240px; height: 320px;" src="http://1.bp.blogspot.com/_Vs4RMAeHa6Q/THOliPib9HI/AAAAAAAAG5k/9eJQotD5ilw/s320/2010-08-24+10.55.00.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5508928776909354098" /&gt;&lt;/a&gt;
&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Vs4RMAeHa6Q/THOlhisfnyI/AAAAAAAAG5c/nJafJ6q-tZ8/s1600/2010-08-24+10.54.44.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 240px; height: 320px;" src="http://3.bp.blogspot.com/_Vs4RMAeHa6Q/THOlhisfnyI/AAAAAAAAG5c/nJafJ6q-tZ8/s320/2010-08-24+10.54.44.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5508928764871941922" /&gt;&lt;/a&gt;
&lt;p&gt;On Saturday (21/08/2010) we went &lt;a href="http://www.louloubateaux.com/uk/index.htm"&gt;kayaking&lt;/a&gt;, and it was top - what wasn't top was that we/I went without sun-cream!&lt;/p&gt;&lt;p&gt;Now, #3 had been in the &lt;a href="http://uk.babelfish.yahoo.com/translate_url?doit=done&amp;tt=url&amp;intl=1&amp;fr=bf-home&amp;trurl=http://www.desaignes.fr&amp;lp=fr_en&amp;btnTrUrl=Translate"&gt;water&lt;/a&gt; for much of the previous week so he was reasonably protected, that and him jumping in the water regularly meant that he was perhaps the least affected.&lt;/p&gt;&lt;p&gt;#2 had been wandering around outside a lot and had been at the beach as well so he was a little more burnt, especially on his legs.&lt;/p&gt;&lt;p&gt;#1 was more burnt especially on his shoulder, but what with him being 17 we didn't insist that he keep his shirt on... figuring that he was old enough to make his own decisions about his skin... like his Dad!&lt;/p&gt;&lt;p&gt;After trying to ram another boat we (me and #3), smacked right into a canyon wall and he nearly discovered what it would be like to be crushed by his Dad... whereas I discovered what it'd be like to run my bum down a funnel-shaped, blunt, plastic cheese-grater! Just as well it was funnel shaped though or the last thing going through his head as he smacked into stone wall would of been my arse!&lt;/p&gt;&lt;p&gt;And after catching a glancing blow from another canyon wall to the left of my head and capsizing a treat (lost me trousers, sunglasses and shoes - though managed to get my shoes back!) I started to smell an odd burning smell... little realising that it was the smell of my inner legs burning due to the configuration of the kayak.&lt;/p&gt;&lt;p&gt;I've got a cracking set of blisters on my ankles now... I'll have a wee dram later on in order to work up enough courage to lance them and finally be able to walk properly:&lt;/p&gt;&lt;p&gt;Update:&lt;/p&gt;&lt;p&gt;Just been told to call &lt;a href="http://www.nhsdirect.nhs.uk/"&gt;NHSDirect&lt;/a&gt; by her-indoors and they said that I need to raise my legs until the swelling in my ankles goes down (I feel bloody ridiculous... and pregnant!) and pop the blisters (YUCK! I WAS the wrong sort of nurse to be happy about that!) and dress the burns with non-lint dressings (It's not for nothing that I WAS the wrong sort of nurse! I'm going to end up looking like a &lt;abbr title="A low-budget motion picture, especially one with poor production values."&gt;B movie&lt;/abbr&gt; Mummy dressed by half a dozen kids suffering from &lt;abbr title="Attention-Deficit Hyperactivity Disorder"&gt;ADHD&lt;/abbr&gt; and wired on Caffeine enriched beverages!).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7676271605959142832?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7676271605959142832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/08/burnt-ankles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7676271605959142832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7676271605959142832'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/08/burnt-ankles.html' title='Burnt ankles'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Vs4RMAeHa6Q/THOliPib9HI/AAAAAAAAG5k/9eJQotD5ilw/s72-c/2010-08-24+10.55.00.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4909595600785924560</id><published>2010-08-08T10:08:00.003+01:00</published><updated>2010-09-01T09:03:56.720+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Lucky Boy</title><content type='html'>&lt;p&gt;I am ever such a lucky boy!&lt;/p&gt;&lt;p&gt;Got my birthday present early and it's a &lt;a href="http://www.sony.co.uk/product/rd-reader-ebook/prs-300"&gt;PRS-300&lt;/a&gt;. How cool!&lt;/p&gt;&lt;p&gt;I tried the Sony software but I've gone over to &lt;a href="http://calibre-ebook.com/"&gt;Calibre&lt;/a&gt; as I really, really don't want &lt;abbr title="Digital Rights Management"&gt;DRM&lt;/abbr&gt; content on anything that I own, I now have to find a decent store where I can buy content though...? I tried &lt;a href="http://www.diesel-ebooks.com/"&gt;Diesel&lt;/a&gt; for some stuff but they didn't have what I wanted for sale in the &lt;abbr title="United Kingdom"&gt;UK&lt;/abbr&gt;, arse!&lt;/p&gt;&lt;p&gt;Seems like even if you can find content legally the powers-that-be get all twitched about licensing issues and things go pear-shaped. I know that licensing and DRM are something of a hot-potato (I seriously considered joining the UK &lt;a href="http://www.pirateparty.org.uk/"&gt;Pirate Party&lt;/a&gt;) but I now work within the field of sculpting bits to do what I want and I wouldn't want someone to take the code that I write and make money from it without recompense, but all the same...&lt;/p&gt;&lt;p&gt;I read &lt;a href="http://www.teleread.com/"&gt;TeleRead&lt;/a&gt; regularly and I know that slowly things are getting straightened out but it can't come quick enough for me.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4909595600785924560?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4909595600785924560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/08/lucky-boy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4909595600785924560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4909595600785924560'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/08/lucky-boy.html' title='Lucky Boy'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7537306278588676930</id><published>2010-08-04T14:56:00.003+01:00</published><updated>2010-08-04T15:01:49.151+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'>Anthony &amp; Ashley's Wedding</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Vs4RMAeHa6Q/TFlxln7lJCI/AAAAAAAAG5I/-d0UnU7PtvU/s1600/31072010219.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_Vs4RMAeHa6Q/TFlxln7lJCI/AAAAAAAAG5I/-d0UnU7PtvU/s320/31072010219.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5501553310997750818" /&gt;&lt;/a&gt;&lt;p&gt;Had a cracking time on Saturday (31sy July 2010) at the wedding of Anthony and Ashley, we'd like to thank them for a cracking afternoon and evening, just wish I'd not drank enough to sink a battleship so that I could remember getting to bed.&lt;/p&gt;&lt;p&gt;Will have to look around &lt;a href="http://www.clacton-on-sea-essex.co.uk/"&gt;Clacton&lt;/a&gt; properly though... ;-)&lt;/p&gt;&lt;p&gt;Was a nice &lt;a href="http://www.urc-clacton.org.uk/"&gt;Church&lt;/a&gt; as well, especially a having a Reverend who was a Yorkshireman!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7537306278588676930?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7537306278588676930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/08/anthony-ashleys-wedding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7537306278588676930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7537306278588676930'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/08/anthony-ashleys-wedding.html' title='Anthony &amp; Ashley&apos;s Wedding'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Vs4RMAeHa6Q/TFlxln7lJCI/AAAAAAAAG5I/-d0UnU7PtvU/s72-c/31072010219.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4896325940549645022</id><published>2010-07-30T11:13:00.001+01:00</published><updated>2010-08-04T15:02:53.835+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>4 or 5 booze adverts</title><content type='html'>&lt;p&gt;We used to have &lt;a href="http://www.cineworld.co.uk/"&gt;Cineworld&lt;/a&gt; &lt;a href="http://www.cineworld.co.uk/unlimited"&gt;Unlimited cards&lt;/a&gt; but got naffed off with being covered with popcorn and having to listen to mobile phone ring tones and teenagers talking through films so we went up-market and became &lt;a href="http://www.picturehouses.co.uk/Picturehouse_Membership/"&gt;members&lt;/a&gt; of the &lt;a href="http://www.picturehouses.co.uk/"&gt;Arts Picturehouse&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;A much nicer clientele and no ring tones nor popcorn!&lt;/p&gt;&lt;p&gt;All good so far except on Sunday when we went to see &lt;a href="http://www.imdb.com/title/tt1375666/"&gt;Inception&lt;/a&gt; with #3 son (10) and we were confronted with 4 or 5 adverts selling alcohol in the 1st 23 minutes or so. Now we had a discussion the week before about whether or not someone who drank a beer with his tea could be called an alcoholic (Cheers son), and came to the conclusion that if you didn't need a drink with your breakfast you were generally okay. So he's reasonably &lt;a href="http://www.drinkaware.co.uk/"&gt;drinkaware&lt;/a&gt;, he's also reasonably savvy about advertising and knows that one of the reasons why he's so into &lt;a href="http://www.dominos.co.uk/"&gt;Dominio's Pizzas&lt;/a&gt; is that they sponsor &lt;a href="http://www.thesimpsons.com/"&gt;The Simpsons&lt;/a&gt;. And he also noticed the number of adverts!&lt;/p&gt;&lt;p&gt;Now I'm not sure that the adverts add anything to the experience, we've paid our subs and bought membership so why do we have to see adverts at all? And why so many adverts for alcohol?&lt;/p&gt;&lt;p&gt;Not impressed Arts Picturehouse, not at all, I'll be thinking twice when it comes time to renew my membership!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4896325940549645022?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4896325940549645022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/4-or-5-booze-adverts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4896325940549645022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4896325940549645022'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/4-or-5-booze-adverts.html' title='4 or 5 booze adverts'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4472399356186551538</id><published>2010-07-30T10:28:00.002+01:00</published><updated>2010-07-30T10:30:12.492+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>My name is Khan</title><content type='html'>&lt;object width="480" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/wRnSnfiUI54&amp;amp;hl=en_US&amp;amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/wRnSnfiUI54&amp;amp;hl=en_US&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;  &lt;p&gt;When her-in-doors brought a film home from work that she was given by her Kiwi boss with a title like the above I was initially excited, especially as her boss is into &lt;a href="http://en.wikipedia.org/wiki/Star_Trek:_Deep_Space_Nine"&gt;Deep Space 9&lt;/a&gt;. Then I got to reading the back and it looked like a &lt;a href="http://en.wikipedia.org/wiki/Bollywood"&gt;Bollywood&lt;/a&gt; film, which I don't have an issue with except that the dancing makes me wish that I'd learnt to dance properly rather then resort to head-banging and &lt;a href="http://www.telegraph.co.uk/science/science-news/6817134/Dad-dancing-may-be-the-result-of-evolution-scientists-claim.html"&gt;dad dancing&lt;/a&gt;!&lt;/p&gt;  &lt;p&gt;Then to read that it dealt with someone who's got &lt;a href="http://en.wikipedia.org/wiki/Asperger%27s"&gt;Asperger's syndrome&lt;/a&gt;... I have to admit that I was looking forwards to an early night with a good book rather than watching &lt;a href="http://www.researchexcellence.com/news/032609_vcm.php"&gt;another square&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;But &lt;a href="http://www.imdb.com/title/tt1188996/"&gt;MNIK&lt;/a&gt; was top and I have to admit to shedding a tear once or twice. Completely different from the tear-jerking of a block-buster movie it was, it seemed heart-felt and honest rather than cold and calculating. I'd advise anyone to watch it, and lay in a supply of tissue!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4472399356186551538?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4472399356186551538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/my-name-is-khan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4472399356186551538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4472399356186551538'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/my-name-is-khan.html' title='My name is Khan'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4691874300479377457</id><published>2010-07-30T09:53:00.002+01:00</published><updated>2010-09-01T09:04:10.369+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Fibroids...</title><content type='html'>&lt;p&gt;...&lt;a href="http://en.wikipedia.org/wiki/Uterine_fibroids"&gt;not your regular breakfast cereal!&lt;/a&gt;&lt;/p&gt;&lt;p&gt;(Nasty images in link, only look if you're used to the wound supplements in the &lt;a href="http://www.nursingtimes.net/"&gt;Nursing Times&lt;/a&gt;!)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4691874300479377457?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4691874300479377457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/fibroids.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4691874300479377457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4691874300479377457'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/fibroids.html' title='Fibroids...'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-1769947050370489694</id><published>2010-07-28T12:55:00.003+01:00</published><updated>2010-09-01T09:04:23.572+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Microsoft BPOS vs Google Apps pricing</title><content type='html'>&lt;p&gt;So I'm looking at &lt;a href="http://www.microsoft.com/online/business-productivity.mspx"&gt;Microsoft's &lt;abbr title="Business Productivity Online Standard Suite"&gt;BPOS&lt;/abbr&gt;&lt;/a&gt; and pricing: It starts at &amp;#36;10 per user per month with a minimum of 5 seats, taking account of an exchange rate of 1 U.S. dollar = 0.64230201 British pounds (at 28/072010) that's &amp;pound;6.42 a month but a minimum of 5 means that the least that can be charged is &amp;pound;32.10 a month for the Standard Suite. That's &amp;pound;385.20 a year for the minimum number of users (5).&lt;/p&gt;&lt;p&gt;Then I looked at &lt;a href="http://www.google.com/apps/intl/en/business/index.html"&gt;Google Apps&lt;/a&gt;, they charge &amp;pound;33 a year a user.&lt;/p&gt;&lt;p&gt;Already it looks like Google are cheaper at &amp;pound;33 as apposed to &amp;pound;77.04 for a years subscription.&lt;/p&gt;&lt;img src="http://chart.apis.google.com/chart?chxr=0,0,100&amp;chxt=x&amp;chbh=a&amp;chs=440x200&amp;cht=bhg&amp;chco=4D89F9,C6D9FD&amp;chd=t:33|77.04&amp;chdl=Google+Apps|Microsoft+BPOS&amp;chtt=Per+User+Per+Year" width="440" height="200" alt="Per User Per Year" /&gt;&lt;p&gt;But that there minimum user thing is a kicker. If we look at a like-for-like of 5 users then the difference is &amp;pound;165 for Google Apps and &amp;pound;385.20 for Microsoft BPOS. That's a &amp;pound;220.20 saving!&lt;/p&gt;&lt;img src="http://chart.apis.google.com/chart?chxr=0,0,500&amp;chxt=x&amp;chbh=a&amp;chs=440x200&amp;cht=bhg&amp;chco=4D89F9,C6D9FD&amp;chds=0,500,0,500&amp;chd=t:165|385.2&amp;chdl=Google+Apps|Microsoft+BPOS&amp;chtt=5+User+Per+Year" width="440" height="200" alt="5 User Per Year" /&gt;&lt;p&gt;It's not a totally fair comparison though as the offering are different. With Microsoft there does seem to be many more whistles and bells though you're limited to using it with Internet Explorer or FifeFox (&amp;gt; 3.0)... there are also stipulated system requirements which might make a difference to some organisations.&lt;/p&gt;&lt;p&gt;It also links in with other Microsoft products, which can be either good or bad depending upon how you feel about it I guess, it'll certainly make a difference when it comes to upgrading software on the User's machines though. Whereas all that seems to be required with the Google Apps is to have a browser (&lt;a href="http://news.bbc.co.uk/1/hi/8488751.stm"&gt;though using IE6 might be an issue&lt;/a&gt;).&lt;/p&gt;&lt;p&gt;With the drive to do &lt;a href="http://www.publictechnology.net/sector/central-gov/cloud-computing-takes-over-outsourcing-default-cost-cutting-option"&gt;more with less&lt;/a&gt; at the forefront of most organisations' thinking it'll be interesting to discover who does best. The expensive security blanket offered by Microsoft is a definite choice but Google Apps is getting to be more and more mature and there are more and more things that can be done with it. It seems to be a much more innovative approach, and certainly closer to the ideal of cloud based applications.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-1769947050370489694?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/1769947050370489694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/microsoft-bpos-vs-google-apps-pricing.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1769947050370489694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/1769947050370489694'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/microsoft-bpos-vs-google-apps-pricing.html' title='Microsoft BPOS vs Google Apps pricing'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6849787232098120133</id><published>2010-07-24T09:14:00.002+01:00</published><updated>2010-07-24T09:26:28.223+01:00</updated><title type='text'>Lego Steampunk</title><content type='html'>&lt;p&gt;Alas, I don't own enough Lego as I was pondering...&lt;/p&gt;&lt;p&gt;Whilst trawling through the stuff I'd starred in Google Reader I found this post from The Brothers Brick: &lt;a href="http://www.brothers-brick.com/2010/07/23/church-of-st-lazarus/"&gt;Church of St. Lazarus&lt;/a&gt;. Much later I came across this post from the same site: &lt;a href="http://www.brothers-brick.com/2010/02/19/crawler-town-brings-the-city-to-you/"&gt;Crawler Town brings the city to you!&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Then I thought about how cool it'd be to combine the two &lt;i&gt;à la&lt;/i&gt; &lt;a href="http://kuksi.com/"&gt;Kris Kuksi&lt;/a&gt;. But, like I say, I haven't enough Lego... or time for that matter!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6849787232098120133?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6849787232098120133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/lego-steampunk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6849787232098120133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6849787232098120133'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/lego-steampunk.html' title='Lego Steampunk'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-5171173158192393689</id><published>2010-07-24T08:31:00.000+01:00</published><updated>2010-07-24T08:32:10.596+01:00</updated><title type='text'>Java too hard?</title><content type='html'>&lt;p&gt;Interesting article via /. here:&lt;a href="http://developers.slashdot.org/story/10/07/23/1838243/Google-Engineer-Decries-Complexity-of-Java-C"&gt;Google Engineer Decries Complexity of Java, C++&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Not overly sure that I agree &lt;abbr title="To Be Honest"&gt;TBH&lt;/abbr&gt;... especially as he has a go at dynamic typing...&lt;/p&gt;
&lt;p&gt;But what with Google pushing &lt;a href="http://appinventor.googlelabs.com/"&gt;App Inventer&lt;/a&gt; for Android they're perhaps looking at a more drag and drop environment à la &lt;a href="http://scratch.mit.edu/"&gt;Scratch&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-5171173158192393689?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/5171173158192393689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/java-too-hard.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5171173158192393689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/5171173158192393689'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/java-too-hard.html' title='Java too hard?'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7873391584761039091</id><published>2010-07-20T11:08:00.000+01:00</published><updated>2010-07-20T11:09:04.655+01:00</updated><title type='text'>Hippo Roar</title><content type='html'>&lt;p&gt;&lt;a href="http://www.stockmusicsite.com/stockmusic/archive/Mammals/Hippos/Animals-Hippo-Roar/414414"&gt;Who said Hippos don't roar?&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7873391584761039091?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7873391584761039091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/hippo-roar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7873391584761039091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7873391584761039091'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/hippo-roar.html' title='Hippo Roar'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-527582911612575255</id><published>2010-07-16T16:23:00.002+01:00</published><updated>2010-07-16T16:24:05.543+01:00</updated><title type='text'>M255 TMA 3 Question 3</title><content type='html'>&lt;p&gt;What Fun!&lt;/p&gt;
&lt;p&gt;He's a Catholic, devious, bookish crime writer in drag. She's a humorous dilettante on the run from her ex. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a tall retired cop trapped in the 1970s. She's a paranoid private detective on the run from her ex. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a Catholic, devious, bookish crime writer in drag. She's a humorous dilettante on the run from her ex. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a tall retired cop trapped in the 1970s. She's a paranoid private detective on the run from her ex. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a Catholic, hard-nosed chef in a wheelchair. She's a chain-smoking Judge in drag. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a small-town professor with attitude. She's a humorous, dishevelled priest who is looking for aliens. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a chain-smoking, bald mathematician in a wheelchair. She's a cadaverous, bloodthirsty mercenary on the run. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a bookish vampire who is looking for aliens. She's a Catholic, bald, devious detective inspector on the run. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a high-flying retired cop with attitude. She's a French-Canadian, cat-loving, dishevelled priest in drag. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a cadaverous alien on the run. She's a cat-loving, humorous vigilante in a wheelchair. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a chain-smoking astronaut who is looking for aliens. She's a dangerous, bald priest living in the 1950s. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a cat-loving Buddhist on the run. She's a devious magician's assistant who is trying to recover her memory. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a small-town ex-cop trapped in the 1970s. She's a hard-nosed, humorous, bald alien from beyond the grave. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a cadaverous, dangerous nurse in a wheelchair. She's a cat-loving werewolf with attitude. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a French-Canadian, dangerous private detective living in the 1950s. She's a sword-wielding alien in drag. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a Catholic nurse on a search for his missing sister. She's a bald priest with secret mysterious powers. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a high-flying, tall, Catholic, dignified Judge with attitude. She's a sword-wielding professor in drag. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a bookish vigilante who is looking for aliens. She's a humorous nurse with her own daytime radio talk show. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a bald, Catholic chef on the run. She's a humorous, high-flying, tortured, paranoid ex-cop on the run. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a French-Canadian chef who has been exiled to Newcastle. She's a high-flying coroner with attitude. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a bald coroner trapped in the 1970s. She's a French-Canadian alien with attitude. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a high-flying werewolf in a wheelchair. She's a bald astronaut who moonlights as a fashion model. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a cadaverous chef with secret mysterious powers. She's a tall lord living in the 1950s. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a cat-loving magician's assistant who may be from the future. She's a devious astronaut in a wheelchair. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a cat-loving, dangerous Judge on the run. She's a Catholic, tortured professor who may be from the future. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a cat-loving, hard-nosed Buddhist who may be from the future. She's a bald criminal profiler in drag. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a hard-nosed, small-town Judge on the run. She's a bookish werewolf from beyond the grave. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a small-town chief inspector on a search for his missing sister. She's a tall lord trapped in the 1970s. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a humorous, cat-loving dilettante with attitude. She's a chain-smoking, devious mathematician on the run. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a bookish, cadaverous, bald Judge with attitude. She's a bald professor on the run from her ex. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a paranoid chef on the run. She's a genetically engineered, trigger-happy werewolf with attitude. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a dishevelled lord with attitude. She's a tortured criminal profiler with secret mysterious powers. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a small-town priest trapped in the 1970s. She's a humorous mathematician who moonlights as a fashion model. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a dangerous vigilante who is trying to recover his memory. She's a humorous ex-cop in a wheelchair. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a dignified mercenary in a wheelchair. She's a dignified, dishevelled chef from aristocratic European stock. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a tall magician's assistant in a wheelchair. She's a small-town dilettante trapped in the 1970s. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a bloodthirsty crime scene scientist on the run. She's a devious Buddhist on the run. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a high-flying vampire on the run. She's a hard-nosed private detective who has been exiled to Newcastle. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a tall Buddhist who is trying to recover his memory. She's a dangerous chef in drag. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a tortured Judge on the run. She's a tall, dangerous chief inspector who has been exiled to Newcastle. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a dishevelled vampire in drag. She's a tall, sword-wielding detective inspector in a wheelchair. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a paranoid, bald vampire who may be from the future. She's a cadaverous retired cop in a wheelchair. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a small-town, high-flying alien looking for 'the Big One'. She's a paranoid Buddhist with attitude. Together they fight crime!&lt;/p&gt;
&lt;p&gt;He's a paranoid lord from beyond the grave. She's a high-flying, devious medical examiner from beyond the grave. Together they fight crime!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-527582911612575255?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/527582911612575255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/m255-tma-3-question-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/527582911612575255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/527582911612575255'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/m255-tma-3-question-3.html' title='M255 TMA 3 Question 3'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4666395740234076216</id><published>2010-07-02T14:43:00.002+01:00</published><updated>2010-07-02T14:45:44.478+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Opera Speak works again.</title><content type='html'>&lt;p&gt;Just upgraded to &lt;a href="http://www.opera.com/"&gt;Opera 10.60,&lt;/a&gt; and it has made Speak work again, time to work on some more &lt;a href="http://drmsite.blogspot.com/2010/03/elephant-child-via-opera-speak.html"&gt;experiments&lt;/a&gt;!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4666395740234076216?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4666395740234076216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/opera-works-again.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4666395740234076216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4666395740234076216'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/opera-works-again.html' title='Opera Speak works again.'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4174122349490418706</id><published>2010-07-01T10:32:00.001+01:00</published><updated>2010-07-01T10:32:43.199+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Lost in Recursion</title><content type='html'>&lt;p&gt;I’ve &lt;a href="http://groups.google.co.uk/group/comp.lang.java.help/browse_thread/thread/7d1c0cd019d86ee9?tvc=2&amp;amp;pli=1"&gt;got into strife before about not being sure about recursion&lt;/a&gt;, but now I’m reasonably happy with it… I’d almost go so far as to say that I’ll use it when I can… So I decided to print out a 4-dimensional javascript array using recursion… as a table! It isn’t a proper array as &lt;a href="http://www.hunlock.com/blogs/Mastering_Javascript_Arrays"&gt;javascript doesn’t do associative arrays&lt;/a&gt;… but there you go, anyway, instead of using a nice simple &lt;code&gt;for(var something in somethingElse)&lt;/code&gt; I decided to do the &lt;code&gt;for(var i = 0; var &amp;lt; somethingElse.length; i++)&lt;/code&gt; then thought it’d be a good idea to send it to itself… but i never changed the &lt;code&gt;i&lt;/code&gt; and I ended up with something that Bridget Riley might be proud of ;-):&lt;/p&gt;&lt;img src="http://drmsite.com/pictures/jpeg/brokenRecursion.jpg" alt="Broken Recursion" style="width:100%;" /&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4174122349490418706?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4174122349490418706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/07/lost-in-recursion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4174122349490418706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4174122349490418706'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/07/lost-in-recursion.html' title='Lost in Recursion'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-920960602790345427</id><published>2010-06-29T11:07:00.001+01:00</published><updated>2010-06-29T11:07:27.588+01:00</updated><title type='text'>Cross Browser addEventListener</title><content type='html'>&lt;p&gt;So I got to thinking about why I hade loads of &lt;code&gt;onclick&lt;/code&gt; elements written into my code and how it really didn't help the readability and purity of the X/HTML code so I decided to look at &lt;code&gt;addEventListener&lt;/code&gt; which is something I've seen lots on &lt;a href="http://groups.google.co.uk/group/comp.lang.javascript/topics"&gt;comp.lang.javascript&lt;/a&gt; but has always worried me ever so slightly. Anyway, it's not all that hard really, you just do something like &lt;code&gt;var helloP = document.getElementById(&amp;quot;helloWorld&amp;quot;); helloP.addEventListener('click', helloWorld, false );&lt;/code&gt; and then add a function like this: &lt;code&gt;function helloWorld(e){ alert(&amp;quot;Hello World&amp;quot;);}&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;It's not all that hard except that you need to appreciate that Internet Explorer doesn't implement it that is!&lt;/p&gt;  &lt;p&gt;Instead Internet Explorer uses &lt;code&gt;attachEvent&lt;/code&gt; and it behaves in a different manner. Say we wanted to get the ID of the element that was clicked in the above example. In most browsers we'd use an alert like this: &lt;code&gt;alert(&amp;quot;Hello World, you pressed the paragraph with the id of \&amp;quot;&amp;quot;+e.target.id+&amp;quot;\&amp;quot;.&amp;quot;);&lt;/code&gt; but internet explorer will get all confused and say that it doesn't understand &lt;code&gt;target&lt;/code&gt;... it does understand &lt;code&gt;srcElement&lt;/code&gt; though. At the beginning of our script we can check whether the helloWorld function can't understand &lt;code&gt;target&lt;/code&gt; by asking &lt;code&gt;if(!e.target)&lt;/code&gt; and it it doesn't then &lt;code&gt;e.target&lt;/code&gt; will become &lt;code&gt;srcElement&lt;/code&gt; thus: &lt;code&gt;if(!e.target){e.target = e.srcElement;}&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;If course we've still got to add the listener in the first place so we could replace &lt;code&gt;addEventListener&lt;/code&gt; with a generic function which handles all the browser problems and I found one &lt;a href="http://javascript.about.com/library/bldom21.htm"&gt;here&lt;/a&gt;, but I didn't like the shorthand of the variables it was using so refactored them to this:&lt;/p&gt;  &lt;pre&gt;function addEvent(element, type, listener, useCapture) {
  if (element.addEventListener) {
    element.addEventListener(type, listener, useCapture);
    return true;
  } else if (element.attachEvent) {
    return element.attachEvent('on' + type, listener);
  } else {
    element['on' + type] = listener;
  }
}&lt;/pre&gt;

&lt;p&gt;So we've a cross browser way of adding listeners and a cross browser way of handling the result of the listener, cool ehh? If only IE would stop being such a pig!&lt;/p&gt;

&lt;p&gt;Edit: It would seem that that isn’t all that’s needed, after reading &lt;a href="http://www.quirksmode.org/js/events_properties.html"&gt;this article&lt;/a&gt; on quirksmode I may well have to do some more work if I'm after anything other than the &lt;code&gt;ID&lt;/code&gt; of the element clicked!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-920960602790345427?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/920960602790345427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/06/cross-browser-addeventlistener.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/920960602790345427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/920960602790345427'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/06/cross-browser-addeventlistener.html' title='Cross Browser addEventListener'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-3720755042759361747</id><published>2010-06-21T16:30:00.001+01:00</published><updated>2010-06-21T16:30:55.172+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>A Place for Amber</title><content type='html'>&lt;p&gt;So I'm working on Information Visualisation using colours, something along the line of green being good and red being bad, but have you ever tried to blend red and green? The result is vary rarely pretty so I got to thinking about how to do it. Initially I went through &lt;a href="http://www.gimp.org/"&gt;The Gimp&lt;/a&gt; and the gradient fill tool with red being the background colour and red being the foreground colour. I created an image that was 90px long and 10 high and filled it with the gradient. Created another layer with black lines every 10 px. Copied and pasted the squares between the lines into another image and let the Gaussian Blur tool go crazy before pasting the result back into the image and anchoring the layer, I did this for all 9 squares and then converted to indexed colours using the web pallette. It worked a treat to start with but when it gets near the middle there is a really rather nasty brown!&lt;/p&gt;  &lt;p&gt;After looking and looking I realised that there was something interesting going on in terms of the hex colour codes that was generated and they each seemed to jump in increments of 33 (that's 33 hex or 51 decimal!). So there was effectively a scale going on with 00, 33, 66, 99, cc and ff being the only red and green numbers... except for near the middle (where the browns live, with there being a blue at 33). Odd ehh? Have a look:&lt;/p&gt;  &lt;table&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="background-color: #ff0000"&gt;ff0000&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #cc0000"&gt;cc0000&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #993300"&gt;993300&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #996600"&gt;996600&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #999933"&gt;999933&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #669900"&gt;669900&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #66cc00"&gt;66cc00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #33cc00"&gt;33cc00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #33ff00"&gt;33ff00&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Got to thinking some more and ff / 9 = 1c so I could make a scale between 00 and FF using 1c increments:&lt;/p&gt;  &lt;table&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="background-color: #ff0000"&gt;ff0000&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #e31f00"&gt;e31f00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #c73b00"&gt;c73b00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #ab5700"&gt;ab5700&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #8f7333"&gt;8f7333&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #738f00"&gt;738f00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #57ab00"&gt;57ab00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #3bc700"&gt;3bc700&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #00ff00"&gt;00ff00&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;But then the penny dropped! Why not look at &lt;a href="http://www.youtube.com/watch?v=GbPovgCP5BU"&gt;traffic-lights&lt;/a&gt; and replace that there nasty brown with Amber (Or at least Orange!):&lt;/p&gt;  &lt;table&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="background-color: #ff0000"&gt;ff0000&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #ff3300"&gt;ff3300&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #ff6600"&gt;ff6600&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #ff9900"&gt;ff9900&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #999900"&gt;999900&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #99cc00"&gt;99cc00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #33cc00"&gt;33cc00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td style="background-color: #33ff00"&gt;33ff00&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-3720755042759361747?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/3720755042759361747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/06/place-for-amber.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3720755042759361747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/3720755042759361747'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/06/place-for-amber.html' title='A Place for Amber'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-381590056330899357</id><published>2010-06-17T13:59:00.001+01:00</published><updated>2010-06-17T13:59:47.231+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>IE6 and the empty div</title><content type='html'>&lt;p&gt;So I'm working on a site where the majority of the audience work within environments where &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_6"&gt;Internet Explorer 6&lt;/a&gt; (IE6) is still prevalent... now I used to work in a similar environment so I always used to use Portable Firefox, one of the joys of which is that it doesn't touch the underlying &lt;abbr title="Operating System"&gt;OS&lt;/abbr&gt;, neither does it take any notice of the various rules associated with IE6 so while others were bemoaning the loss of access to facebook I was wondering what all the fuss was about... but without them being on there there was less of a reason for me to be and I realised what a drag it was... which is all a bit of a long-winded introduction to &lt;a href="http://www.my-debugbar.com/wiki/IETester/HomePage"&gt;IETester&lt;/a&gt; which allows me to now view sites created using my bright and shinney Windows 7 machine running the latest IE, Chrome, Firefox, Safari and Opera to run IE6... seems a bit naughty that though - like asking a supermodel to wear old, grungy Y-fronts.&lt;/p&gt;  &lt;p&gt;Anyway, after playing with it for a while I discovered a problem with an underline I was using. Being the perfectionist I am I wanted the underline on some text to miss the descender of the text I was using, a little like underlining some text at school and wanting the line to miss the curly bits off the bottoms of &amp;quot;g&amp;quot;s, &amp;quot;j&amp;quot;s, &amp;quot;p&amp;quot;s and &amp;quot;q&amp;quot;s (and any other characters which your handwriting might make drop below the baseline). So I'd developed the site using lots of bright browsers and everything looked cool thanks to some judicious use of &lt;a href="http://www.kevinfreitas.net/extensions/measureit/"&gt;MeasureIt&lt;/a&gt; to make sure everything lined up correctly and then I looked at it using IETester and the underline was thick as anything (If in this instance &amp;quot;anything&amp;quot; is as thick as a line of text!) but, thanks to this post on &lt;a href="http://www.webmasterworld.com/forum83/4682.htm"&gt;The Webmaster World&lt;/a&gt; I clocked that IE6 was setting the height on an empty div as being the default height of a line of text. Explicitly telling IE6 that it wasn't so worked a treat and so a slung &amp;quot;line-height:1px;font-size:0px;&amp;quot; into the CSS and all was right in the world...&lt;/p&gt;  &lt;p&gt;Still, a shame that I need to go routing around the internet looking for solutions for a browser that's nigh on 10 years old (released on the 27th August 2001) and is described as being the &amp;quot;&lt;a href="http://www.pcworld.com/article/125772-3/the_25_worst_tech_products_of_all_time.html"&gt;least secure software on the planet&lt;/a&gt;&amp;quot;. Perhaps I need to add a rider to sites in future that I'll not be supporting it anymore thanks to it's general crappyness... perhaps if I weren't working with an audience in mind that were constrained to use it I could get away with that... poor buggers.&lt;/p&gt;  &lt;p&gt;And don't get me started about horizontal navigation &lt;abbr title="Unordered List"&gt;ul&lt;/abbr&gt;s... not even the judicious use of &lt;a href="http://code.google.com/p/ie7-js/"&gt;/IE7/&lt;/a&gt; can solve that particular problem, I had to use CSS hacks (Which, as everyone knows, make the baby Jesus cry!).&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-381590056330899357?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/381590056330899357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/06/ie6-and-empty-div.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/381590056330899357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/381590056330899357'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/06/ie6-and-empty-div.html' title='IE6 and the empty div'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-4817066779746256788</id><published>2010-06-16T11:28:00.001+01:00</published><updated>2010-06-16T11:28:28.667+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>96%</title><content type='html'>&lt;p&gt;Thought I'd done well when I got 90% for TMA1 for M255 but 96% for TMA2 is looking even better. Guess I'm getting the hang of this Java stuff after all. Still I keep saying &amp;quot;object &lt;a href="http://en.wiktionary.org/wiki/orientated"&gt;orientated&lt;/a&gt;&amp;quot; rather than &amp;quot;object &lt;a href="http://en.wiktionary.org/wiki/oriented"&gt;oriented&lt;/a&gt;&amp;quot;, which is not the done thing apparently, comes from being so English I guess ;-)&lt;/p&gt;  &lt;p&gt;Will find out today whether I get to carry on playing with &lt;a href="http://openspace.ordnancesurvey.co.uk/"&gt;OS &lt;abbr title="Application Programming Interface"&gt;API&lt;/abbr&gt;&lt;/a&gt; or I'll have to play with Google's &lt;a href="http://code.google.com/apis/calendar/"&gt;Calendar API&lt;/a&gt;, not sure which I'll prefer. I guess the Calendar will be fun and will build upon the stuff I learnt whilst playing with the &lt;a href="http://code.google.com/apis/contacts/"&gt;Contacts API&lt;/a&gt;. Though I'm wondering if it'll accept &lt;abbr title="JavaScript Object Notation"&gt;JSON&lt;/abbr&gt; rather than vanilla &lt;abbr title="eXtensible Markup Language"&gt;XML&lt;/abbr&gt;?&lt;/p&gt;  &lt;p&gt;And then, in the meantime, I'm looking at &lt;a href="http://en.wikipedia.org/wiki/Apache_Subversion"&gt;Subversion&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Git_(software)"&gt;GIT&lt;/a&gt; and deciding which'll be the most fun to work with... looks like Subversion so far but research continues... suppose I should look at it for personal stuff as well as professional stuff as keeping &lt;a href="http://en.wikipedia.org/wiki/7-Zip"&gt;7zip&lt;/a&gt; archives of old projects gets old mighty quickly. Speaking of professional stuff the &lt;a href="http://www.theregister.co.uk/2010/06/10/bcs_egm/"&gt;recent stuff&lt;/a&gt; about the &lt;abbr title="British Computer Society"&gt;BCS&lt;/abbr&gt; is interesting. I've been an associate member for ages as I wasn't working in the field but there's an entry in my Calendar to check about becoming a proper member 6 months after starting as a developer, don't know if it'll exist at that point though.&lt;/p&gt;  &lt;p&gt;I've also been looking at the &lt;a href="http://www.statistics.gov.uk/"&gt;Office for National Statistics&lt;/a&gt; efforts to disseminate it's vast store of data in the form of Neighbourhood Statistics and it's &lt;a href="http://www.neighbourhood.statistics.gov.uk/"&gt;Neighbourhood Summary&lt;/a&gt;, how cool is that site?&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-4817066779746256788?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/4817066779746256788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/06/96.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4817066779746256788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/4817066779746256788'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/06/96.html' title='96%'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7976462805587636694</id><published>2010-06-07T13:48:00.000+01:00</published><updated>2010-06-07T13:49:25.850+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'>Dunham's Wood</title><content type='html'>&lt;p&gt;Went &lt;a href="http://www.cambridgeshire.net/organisation/dunhams-wood/8025.aspx"&gt;here&lt;/a&gt; on Sunday and I've got to say it was really, really cool. A little like stepping back to the 70's &lt;abbr title="To Be Honest"&gt;TBH&lt;/abbr&gt; but all the better for that. An old art teacher once told be I was a child of the 70's in terms of my approach to work so that must explain why I loved it as much as I did. From the miniature railway all the way to the maze I thought it was downright brilliant and I'd encourage anyone with kids and a hankering for a little nostalgia to give it a visit.&lt;/p&gt;&lt;p&gt;Chap we went there with said that the bloke who set it up just decided to plant a wood in a field and then decided to build a railway.&lt;/p&gt;&lt;p&gt;Each time it's open all the proceeds go to charity and this weekend they went to &lt;a href="http://www.fenlandcitizen.co.uk/news/Update-First-pictures-inside-St.6160020.jp"&gt;St. Mary's Church Restoration Fund&lt;/a&gt; and I'm pretty sure that it must have been members of the congregation that were staffing the stalls in the little glade near the entrance.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7976462805587636694?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7976462805587636694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/06/dunhams-wood.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7976462805587636694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7976462805587636694'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/06/dunhams-wood.html' title='Dunham&apos;s Wood'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-2090991180009283493</id><published>2010-06-01T11:47:00.001+01:00</published><updated>2010-06-01T11:51:41.542+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><title type='text'>template.html to template-dashboard.html in Pentaho</title><content type='html'>&lt;p&gt;So I'm using &lt;a href="http://www.pentaho.com/"&gt;Pentaho&lt;/a&gt; &lt;abbr title="Community Dashboard Framework"&gt;CDF&lt;/abbr&gt; and I was having problems setting up my own themes. Seems like I could create content using the local folder but when I tried to change the outer content I hit upon problems. I saw that the temples are split into 2, if you see what I mean, with the outer page wrapper living within the /system/pentaho-cdf folder but I couldn't see where they were. The .xcdf file points to template.html but there isn't a template.html file within the folder... then I noticed that there was a template-dashboard.html file and I started to get a glimmer of what was going on, especially as I looked at other .xcdf files and clocked that some had style elements.&lt;/p&gt;&lt;p&gt;Basically what I discovered was that template.html actually represents template-dashboard.html and if there is a style attribute within the .xcdf file then the value of that attribute corresponds to the naming if the template file such that a style attribute with a value of abc (for example) means that a file named template-dashboard-abc.html within the /system/pentaho-cdf folder is parsed.&lt;/p&gt;&lt;p&gt;Lot's of headaches led to this conclusion but I hope that other people don't run into similar problems... the solution sort of came to me while I was asleep - the cat was trying to wake me up and I was trying to stop asleep by thinking of something that was giving me problems, perhaps not the best approach to trying to get to sleep as the cat got his breakfast early and I went into work very early to try out my hypothesis.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-2090991180009283493?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/2090991180009283493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/06/templatehtml-to-template-dashboardhtml.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2090991180009283493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2090991180009283493'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/06/templatehtml-to-template-dashboardhtml.html' title='template.html to template-dashboard.html in Pentaho'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-6847045489271695463</id><published>2010-05-27T15:06:00.001+01:00</published><updated>2010-05-27T15:07:51.802+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>Cool quote</title><content type='html'>&lt;p&gt;How very true:&lt;/p&gt;
&lt;blockquote&gt;
Give a man a program, He'll be frustrated for a day.
Teach a man to program, He'll be frustrated for a lifetime.&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-6847045489271695463?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/6847045489271695463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/05/cool-quote.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6847045489271695463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/6847045489271695463'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/05/cool-quote.html' title='Cool quote'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-8255130673650100425</id><published>2010-05-24T17:05:00.001+01:00</published><updated>2010-05-24T17:09:25.455+01:00</updated><title type='text'>4 yesterday</title><content type='html'>&lt;p&gt;Managed 4 lengths yesterday, 3 on Thursday and only 1.5 on Tuesday.&lt;/p&gt;&lt;p&gt;Not too bad really, considering I've not been swimming in ever such a long time, must be a year or 2 &lt;abbr title="To Be Honest"&gt;TBH&lt;/abbr&gt;.&lt;/p&gt;&lt;p&gt;Work wise I'm stuck! Did something really rather cool to start with, then went looking at some other &lt;abbr title="Application Programming Interface"&gt;API&lt;/abbr&gt;s and now I'm looking at a &lt;abbr title="Business Intelligence"&gt;BI&lt;/abbr&gt; suite and the learning curve is going way over my head... I'm thinking that it's not so much of a problem once I get my head into another space... I think it's just an existential fear of change going on like when another way of working was introduced when I was working as a nurse. A new paradigm that'll just be like the next one but that'll take a wee while to get my head around. So I'll hold off looking for another job until I've given it a chance. On a plus side it's using Java so that'll help, on a negative side I've started smoking again, on the plus side I'm losing weight, on a negative side I'll die sooner! ARSE!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-8255130673650100425?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/8255130673650100425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/05/4-yesterday.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8255130673650100425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/8255130673650100425'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/05/4-yesterday.html' title='4 yesterday'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-7708340865611293461</id><published>2010-05-18T12:14:00.002+01:00</published><updated>2010-09-01T09:04:44.373+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>…</title><content type='html'>&lt;p&gt;Thus speaketh #3 son:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;The very point of waiting is just simply to waste your time until you get what you wanted, until then you carry on slowly wasting your time, your life, slowly wasting away, every second until it all adds up and you realise what a knob you’ve been trying to get the thing you wanted in the first place. Why didn’t you try somewhere else instead of the most unreliable, irritating, and frankly dead boring place in the world? Why didn’t you just give up in the first place knowing that it was an utter waste of time in the first place so you can try and get something else still holding your dignity? Only you know so why didn’t you pointlessly waste your time trying to figure that out instead of being a complete idiot and wasting ages of your life waiting instead of thinking? Thinking is the more important; none of us would be here if we didn’t have it. Whereas waiting is pointless, dull and let’s face it, useless unless you have something to pass the time with, but most people are too busy waiting staring at a small piece of text that says&lt;/p&gt;&lt;/blockquote&gt;
&lt;p style="font-weight:bold;text-align:center;"&gt;Loading&amp;#8230;&lt;/p&gt;&lt;blockquote&gt;
&lt;p&gt;Although you could be thinking while waiting but probably just thinking about what you’re waiting for, nothing else. Sure, you could try thinking about something else but that probably just means that you should waste your time with that instead of some pointless piece of crap you didn’t need in the first place. And if you try waiting for both then you just wasting more and more of your time, and because the thing you were thinking about is more important you’d probably spend more and more bloody time than before.&lt;/p&gt;
&lt;p&gt;Altogether I think that waiting is basically supposed to get people like my pissed off and end up quitting it altogether just to get back at the people who think that you would waste a good half of your day waiting for crap. So to all those people I say NO.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-7708340865611293461?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/7708340865611293461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/05/thus-speaketh-3-son-very-point-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7708340865611293461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/7708340865611293461'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/05/thus-speaketh-3-son-very-point-of.html' title='&amp;#8230;'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6506998626989446594.post-2923576590633715547</id><published>2010-05-18T10:28:00.004+01:00</published><updated>2010-05-18T14:45:30.212+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thoughts'/><title type='text'>The nuts that ate the world!</title><content type='html'>&lt;p&gt;I'm not 100% sure that testes are supposed to get that small but I swear that if they'd have shrunk any more then they'd have imploded and collapsed into some sort of weird black hole... I could have been the man who had the nuts that ate the world! Still, guess it was my own fault for buying a season ticket to the &lt;a href="http://en.wikipedia.org/wiki/Jesus_Green_Swimming_Pool"&gt;Cambridge Lido&lt;/a&gt; in a fit of enthusiasm for getting healthy. What with giving up smoking (except for the electronic kind and the odd crafty fag after tea while getting him-next-door over to watch a DVD (more of which later!)), starting to eat meat and no longer working nights things are definitely on the change!&lt;/p&gt;&lt;p&gt;Still, what with having a &lt;a href="http://www.cambridge.gov.uk/ccm/content/business/licensing-and-permissions/residential-boat-mooring-licence.en"&gt;Mooring Licence&lt;/a&gt;, and thus access to a &lt;a href="http://www.cambridge.gov.uk/ccm/cornex/pages/cambridge-card.en"&gt;Leasure Card&lt;/a&gt; I thought it'd be a good idea to make use of the facilities, I just didn't reckon on the facilities being quite so cold - and the young chap on the entrance said it was warmer than usual as well! 13&amp;deg;C is not warm, I know it's not freezing, but it's not warm! It felt like I was getting attacked by a million nettles or something and my breath started getting harder and harder to bring down into my lungs and I was getting more and more tired and... being overtaken by the elderly! I only managed one and a half lengths and then had to get out for a shower and head to work.&lt;/p&gt;&lt;p&gt;We watched &lt;a href="http://www.imdb.com/title/tt0928375/"&gt;Legend of the Bog&lt;/a&gt; last night, except it wasn't called that... I loved the review by &lt;a href="http://www.imdb.com/user/ur4903646/comments"&gt;TwentyCamels&lt;/a&gt;, most especially this bit:&lt;/p&gt;&lt;blockquote&gt;"The only saving grace to this joke is the on-the-floor-in-hysterics performance put in by whatever lunk they hired to play the bog man. He comes across like a supermarket trolley attendant lost in the woods on cheap speed, his facial expressions as he attempts to convey whatever the director told him to convey are priceless in their utter retardation, look out for a good bit at the end where the girl is squaring up to him, and for a minute he looks like he's building up to a really HUGE roar of fury, neck straining and everything, and then just suddenly looks confused, or constipated, a little embarrassed too."&lt;/blockquote&gt;&lt;p&gt;Just don't get me started on supermarket trolley attendants after Saturday afternoon...&lt;/p&gt;&lt;p&gt;This is really rather funny:&lt;/p&gt;&lt;object width="640" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/FnbYcB9ctu8&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/FnbYcB9ctu8&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;p&gt;Takes me back to my first contact with the internet in a Royston flat with Colin Campbell does &lt;a href="http://www.textfiles.com"&gt;http://www.textfiles.com&lt;/a&gt;, I remember doing searches for Men in Black and Black Helicopters then ;-)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6506998626989446594-2923576590633715547?l=drmsite.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://drmsite.blogspot.com/feeds/2923576590633715547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://drmsite.blogspot.com/2010/05/nuts-that-ate-world.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2923576590633715547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6506998626989446594/posts/default/2923576590633715547'/><link rel='alternate' type='text/html' href='http://drmsite.blogspot.com/2010/05/nuts-that-ate-world.html' title='The nuts that ate the world!'/><author><name>Dominic Myers</name><uri>http://www.blogger.com/profile/15530669398436940737</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh4.ggpht.com/_Vs4RMAeHa6Q/SDOKYQ1zXsI/AAAAAAAACT4/H-Y8l0gqhWg/s400/2008050912.jpg'/></author><thr:total>0</thr:total></entry></feed>
