Spark Hunt - Development, Photography and Interesting Stuff Blog

Spark Hunt is my personal blog about web development, web sites, photography and anything else I find interesting at the time. Why Spark Hunt? Well maybe something you find on this site will help you find that little spark of inspiration.

13Feb/10Off

The Known Universe

Check out this amazing animated fly-through of the known universe, starting from Tibet and travelling 13.7 billion light years to our cosmic horizon, then back again. The video is from the American Museum Of Natural History using their four-dimensional mapping data to create an astronomically accurate map of the universe as we know it so far.

I have always thought that with so many galaxies and stars out there that there surely must be life out there somewhere. However, after watching this video it occurred to me that although it might indeed be out there, if it's 100,000,000 light years away the chances of bumping into it are pretty damn slim.

(via Dark Roasted Blend and kottke.org)

7Jan/10Off

Evohosting Competition Winner

My web hosting provider, Evohosting, ran a competition just before Christmas that involved searching through the pages of their site looking for five Christmas presents. For a laugh I tracked them down and submitted the URLs where the presents could be found. To my amazement I received an email on the 21st December saying that I was one of the winners! A few days ago I received my prize; a Christmas cracker! I remembered seeing something about a cracker of sweets being one of the prizes, so was looking forward to some chocolates but there was more than that inside :)

Evohosting Christmas Competition Prize

Evohosting Christmas Competition Prize

So I had two Lindt Lindor chocolates, a shiny hat and traditional cracker joke, but there were also two unexpected prizes inside. First an "Evohosting Crimson Ticket" and a £10 Amazon gift code! #WIN. The crimson ticket was also worth £10, which has been credited to my hosting account. I think I might order Mercenaries 2 for the XBox 360 with the Amazon gift code :)

Oh, the cracker joke was: "What do you get if you cross an apple with a Christmas tree? A pineapple!"

27Nov/09Off

ASP.NET DefaultButton Property and FireFox

Whilst developing a website at work this week I encountered two issues with the use of default buttons in ASP.NET. Both issues were encountered when using FireFox, but potentially this may apply to all non-IE browsers. Note that this relates to ASP.NET 2.0, so things may be different or even hopefully fixed in later versions of the framework.

Issue 1: Using a LinkButton as the default button of a Panel control does not work in FireFox

The build of the website I have been developing uses styled hyper-links in place of submit buttons, so naturally I implemented these using LinkButton controls allowing for simple postbacks and server-side event handling. Wanting to avoid random submits when a user hits the return key in a form, I wrapped each form in a Panel control and set the DefaultButton properties to the relevant submit LinkButton controls. This works fine when viewing the site in Internet Explorer but does not work in FireFox.

Issue 2: Defining a default button for a Panel control breaks the return key in multi-line TextBox controls in FireFox

Several of the forms on the site require multi-line TextBox controls for such things as description fields. Once again this works fine in Internet Explorer, but has soon as the TextBox is within a Panel with a default button set it breaks in FireFox. Instead of breaking to a new line, the default button is clicked.