February 19, 2013

dfvsdfvsdvsdfvsd


February 18, 2008

Safari is stupid: Part 1

Part 1 because I’m sure I’ll find more of these.

I’ve been debugging some JavaScript this morning trying to get it to work in Safari. Here are some examples of why that took TWO HOURS:

  • You can’t get element.style.border, but you can set it.
  • For a transparent element element.style.backgroundColor = 'transparent', but getComputedStyle(element,null).getPropertyValue('background-color') = 'rgba(0,0,0,0)'; i.e. black, but wholly transparent.

In a not-Safari’s-fault tangent, if you want individual channels from an RGB value split(", ") is BAD CODE.


August 23, 2007

GoogleMaps Operation Aborted in Internet Explorer 6

If you get an Operation Aborted error when trying to get GoogleMaps to work in IE6, try moving the SCRIPT tags into the BODY section. The error is occuring due to IE6’s dodgy handling of the BASE tag. You could also just remove the BASE tag if you don’t need it for anything else.


Add XML namespace outside of HTML tag

This post is purely for Google’s benefit.

I was trying to find a way of enabling VML in IE without changing the HTML tag and after a lot of searching could not find anything. Turns out it is relatively simple in JavaScript with the following code (totally stolen):

var tmp = navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.indexOf('Opera') < 1 ? 1 : 0;
if(tmp) var isIE = document.namespaces ? 1 : 0;

if(isIE) {
     if(document.namespaces['v'] == null) { 
          var stl = document.createStyleSheet(); 
          stl.addRule("v\\:*", "behavior: url(#default#VML);"); 
          document.namespaces.add("v", "urn:schemas-microsoft-com:vml"); 
     }
}

Hopefully this will help someone else will save themselves some time.


February 20, 2007

Who said politics was boring?

Writing about web page http://www.boingboing.net/2007/02/16/nyt_slayer_fans_rock.html

This is a screenshot of the New York Times web site on Friday:

Wow, the House of Representatives looks like a good place to spend an evening.

Ahem…

SSSLLLLAAAAYYYYEEEERRRRRR!!!!!


February 15, 2007

Happy February 15th!

Rum + Coke = Goodly

Ohhhh good.


February 01, 2007

One month on…

Follow-up to Resolutions from Jeff's Irregular Movements

Well it’s now been a month, and a good a time as any for an update on how this glorified ‘todo list’ is going…

  • Finally get all things transferred to the new house. I’ve been living there 6 months now and its getting a bit ridiculous. Tesco and West Bromwich need doing this week. Done.
  • Sort out where to live after July. Done done done. I will now be resident at The Fort till at least July 2008. Hopefully the shower will be fixed before then. The shower is now half-way fixed.
  • Get a new phone. Done. And nice it is as well.
  • Start working out again. Well I’ve done one week, and after 4 days of muscle aches I think a more regular routine may be necessary.
  • Stop having Hula-Hoops for breakfast. I haven’t had had any since before Christmas. Success!
  • Above includes registering at the docs. This is more difficult than it should be because I’ve never done it before, so I need to go to my old docs to get some sort of card-thing.
  • When above is done, get all the things that either are, or I think are wrong with me checked out. Dan said that when he registered they did a check anyway. That could be a long day.
  • Go the dentists. Haven’t been to one of them in about 10 years. In my defense the last time I went I had 4 teeth pulled so I’m not exactly rushing this one.
  • Sort out employment. This one may be sorted already.
  • Sort out pension. I am now an Old Man and therefore need to think about when I will die, and the time between finishing work and then. In all seriousness the state pension is a joke, and as a temp I need to get this sorted on my own.
  • Learn to drive. I’m almost 23 so this one really should get taken care of. Even if I don’t want to drive anywhere in particular, I should at least be able to.
  • Try to drink less. In fact the complete opposite, but then that was the idea.

Mooninites take on the US

Writing about web page http://news.bbc.co.uk/1/hi/world/americas/6319211.stm

The award for most paranoid city in the world today goes to Boston, who thought that images of cartoon characters were trying to blow up their city.

Now obviously this looks exactly like an explosive device:

Finally the Mooninites have moved on from robbing convenience stores, to full blown terrorism.

I must thank BBC News online for this wonderful video of the panic caused, and this screenshot, which is quite frankly amazing:

Mooninite

A quote for the District Attorney:

“I cannot stress strongly enough the seriousness of this offence. Commerce was disrupted, transportation routes were paralised, residents were stranded, and relatives across the nation were concerned for the safety of their loved ones.”

Why so serious?...

Ignignokt: I hope they can see this, cause I’m doing it as hard as I can.

Damn them!


January 04, 2007

Resolutions

Pretty TastyTraditionally I’m not one for the reflective entries. Frankly I’m not one for the entries at all. I’m more of a Blogs Cow, grazing around others entries until the inevitable day when I am shot and eaten. At least I will be pretty tasty.

However, I feel compelled to jot a few things down, if nothing more than a todo list to remind me of all the things I said last year that I would ‘sort out next year’. Now it is next year. I’m as surprised as you.

In no particular order (as represented by the Unordered List)

  • Finally get all things transferred to the new house. I’ve been living there 6 months now and its getting a bit ridiculous. Tesco and West Bromwich need doing this week. Done.
  • Above includes registering at the docs. This is more difficult than it should be because I’ve never done it before, so I need to go to my old docs to get some sort of card-thing.
  • When above is done, get all the things that either are, or I think are wrong with me checked out. Dan said that when he registered they did a check anyway. That could be a long day.
  • Sort out where to live after July. Done done done. I will now be resident at The Fort till at least July 2008. Hopefully the shower will be fixed before then.
  • Go the dentists. Haven’t been to one of them in about 10 years. In my defence the last time I went I had 4 teeth pulled so I’m not exactly rushing this one.
  • Sort out employment. This one may be sorted already.
  • Sort out pension. I am now an Old Man and therefore need to think about when I will die, and the time between finishing work and then. In all seriousness the state pension is a joke, and as a temp I need to get this sorted on my own.
  • Learn to drive. I’m almost 23 so this one really should get taken care of. Even if I don’t want to drive anywhere in particular, I should at least be able to.
  • Try to drink less. Bugger that, I’ve changed my mind.
  • Get a new phone.

This list will probably be added to as I remember more things I spokes.


November 27, 2006

Three days later…

Follow-up to Well it arrived… from Jeff's Irregular Movements

Title:
Rating:
5 out of 5 stars

... and now my hand really hurts.

Oh yeah, this one’s AWESOME as well.

Lamb of God ffs. This will keep me occupied for some time… or at least until Wii Zelda turns up.