Jun 16 2009

This sort of thing really angers me and displays the fact that the web developers of the Parcelforce website will happily display total ineptitude at developing websites. To block off an entire operating system for no reason whatsoever, is simply astounding, and I can’t believe companies still employ such idiots.

Why should I not be allowed to send a parcel, just because I use Linux? There is no reason for it – especially as they support Mozilla Firefox! There is no difference between Windows Firefox and Linux Firefox, and no reason to stop me using Linux to send a parcel. Thankfully plug-ins like the User Agent Switcher exist, to circumvent such inept and naive programming.

Parcelforce

Update: User Agent Switcher didn’t work. I used Firebug to enable the submit button though, which let me through happily…

Jun 14 2009

One thing I ensure I do on all sites is to develop for two audiences at once. The first audience is of course the end user of the site. This user has CSS enabled, and can view all the prettyness of the site in all its original intended glory. But I also develop the site for text-based browsers, search engines and those with CSS disabled. The advantage of this is that the page is semantically correct. You have <h1> tags around the site title, <h2> around the page title and so on. Menus are in <ul> unordered lists, and so on. Semantically correct pages are instantly more SEO-effective. Working at Netbasic has shown me how important that is :) ! In addition, for the small population that use text-based browsers, it enables them to view the site without mess.

If you have a nice logo to display, and you don’t want to display a big bulky <h1> tag on your page, there’s a really easy way of doing that:

<div class="site-title">
<h1>Your Site Name</h1>
</div>

This markup is great for search engines. Search engines will see the <h1> tag and notice that “Your Site Name” is the page’s main title. Little things like this help search engines determine what your site actually contains, as opposed to the hugely ineffective method of repeating a load of words several thousand times in tiny text…

The way to make that neat semantic code look nice and pretty is with CSS, in order to hide that “Your Site Name” text but display your nice company logo instead…

div.site-title
{
background-image: url('/images/your-company-logo.png');
}
div.site-title h1
{
display: none;
}

As you can probably tell, what this CSS does is ask the browser to display your company’s logo as the background image to this div, and hide the <h1> text.

There’s another issue though – how do we make that lovely logo clickable to go to the home page? That’s easy too, and semantically.

<div class="site-title">
<h1>Your Site Name</h1>
<a href="/home/page/url"><span>Click here to go to the home page</span></a>
</div>

We modify the CSS as well to hide the text itself (in the <span>) but make the anchor (the <a>) tag into a block, which turns it into a link that covers the entire logo.

div.site-title
{
background-image: url('/images/your-company-logo.png');
}
div.site-title h1
{
display: none;
}
div.site-title a
{
display: block;
width: 300px;
height: 60px;
}
div.site-title a span
{
display: none;
}

We’ve used a similar trick here to hide the text that should only appear when CSS is turned off. As mentioned, we explicitly set the dimensions of the anchor tag to fill the dimensions of the logo image.

That’s all there is to it, and search engines will love that as opposed to just using something like this for your logo:

<a href="/home/page/path"><img src="/images/company-logo.png" title="Company logo" /></a>

The search engine or text-based user looking at your site will be able to see clearly what the page title is, and it will load really quickly as unless you’re applying the CSS styles, there will be no images to load, which makes it an all-round winner really!

I’m not saying this is the best way of doing it, but I’ve found it to be quite clever and I use it. If someone’s got some better ideas out there, why not add a comment with your idea :)

Jun 14 2009

  • Bluegh… Freyja, why have you woken at 3:30am? Oh well maybe I should do a Wordpress install… #
  • Wordpress installed, baby fed, now back to sleep. #
  • Oh dear, I ate all the cereals… The gigantic cake mixing bowls full of cereal don't help the situation… #
  • Grr, wish @Hanzor would stop bloody winding me up!!!!!!!!!! #
  • Sorting out tonnes of videos and watching Freyja starting to grab her pink jingly rabbit thing listening to her shiny sun… #
  • I think Freyja is overtired, might put her down… #
  • Making an awesome video #
  • pfft #
  • Grey matter a bit ropey this morning… #
  • Am I the only one who doesn't give a rat's ass about the new iPhone? My HTC Magic already does what the new 3GS does… #
  • Off to bed anyway. No closer to solving @Hanzor 's VPN problems… #
  • There is no feeling so amazing as watching your 8 week old daughter laughing really well. It's an indescribable emotion. #
  • There is no feeling so amazing as watching your 8 week old daughter laughing really well. It's an indescribable emoticon.(for @siicockerill) #
  • Holy crap the new iPhone is ridiculously expensive… £73.41 a month for 18 months just to get the 3G S 16GB for free… http://bit.ly/CisSA #
  • #openwebsoton IMPORTANT: Next OpenWeb this Thurs (11th) is now at the Holiday Inn, Soton – check website for details – http://bit.ly/mTIJ #
  • Stupid tiredness, argh argh. Finally got a bit of coding done tonight though… zzzz #
  • I know I'm tired when I start with <strong> and end with </b>… argh. #
  • Not liking seeing little munchkin all hurty from her injections :( #
  • At last! Time to go home. #
  • RT @dangriffey: Blimey! OpenWeb TONIGHT, 6pm at Holiday Inn, Southampton. Be there! @boagworld speaking! #openwebsoton #
  • Woo finally, I can actually make #openwebsoton, third time lucky, eh? #
  • Blimey, Freyja is already 2 months old! Where does time go?! o_O #
  • I think @ChiefWigs1982 should probably try the door handle… #
  • YAY! Wearing shorts in the rain is fun! :D #
  • Off to #openwebsoton now! Wooo… #
  • I'm never making it to #openwebsoton in time. #
  • Woo made it before it all kicked off. Finally met @jaspertandy in the flesh. Snazzy room! #
  • Enjoyed #openwebsoton, great presentations. Looking forward to next one in Aug/Sept! #
  • Hmm Twidroid getting a bit choppy on the scrolling… my phone or the app I wonder? #
  • Argh. Why do people insist on leaving cardimmon pods in food? THEY TASTE LIKE POT POURRI. #
  • What is a Mayhem – Ordo Ad Chao poster doing on The Inbetweeners?! Since when was E4 that kvlt grim norsk arysk black metal lulz #
  • Looking forward to writing health check scripts today. Gonna be funky! #
  • Royal Mail depot in Fareham's parking is a tricking JOKE. They urgently need more areas to park. #
  • Well this day is just BRILLIANT. #
  • RT @mallmus The Twitpocalypse is upon us, this is the beginning of the end! http://www.twitpocalypse.com/ #
  • Syncing our NAS drive to my RAID array. Watched Night of the Living Dead, probably going to have nightmares now. #
  • Winner – http://facebook.com/asgrim #
  • Haha, search for "facebook" on Twitter – 500-800 results every refresh! #
  • Approx. 1000 new results for a search for "Facebook" every 20 seconds – I hope O'Reilly Radar is watching this :) @timoreilly #oreilly #
  • 200 results every refresh now, getting boring, going back to sleep. See you in a couple of hours. #
  • I'm off to town with @Hanzor and Freyja, waiting for YouTube video to stop being gay. #
  • Sitting in Caffe Nero Gunwharf eating cake with Leila @Hanzor and Kieran :) #
  • RT @benjiegillam RT @Southackton: SoutHACKton meeting – today, 5pm, Crown Inn, 9 Highcrown Street, Soton (SO17 1QE). Looking forward to … #
  • Waiting to see Dream Theatre and missing his baby girl :( #
  • Sound so far at Soton Guildhall is shockingly bad… hope it improves for DT. #
  • Dream Theater were good, the sound did improve slightly and my nice earphones helped quieten them nicely. Too many new songs played tho. #
  • Installing XP on a VirtualBox. Windows 7 was a bit "meh"… #

Jun 10 2009

Now that the fuss over Bing’s launch is already over (that didn’t last long, did it?), what is the future for it? According to this article’s source, Bing had a 11.1% share of the US Search market. Microsoft apparently haven’t hit above 10% since 2007, so that could be seen as quite a positive thing. But Google seems pretty confident this is just a blip on the radar and they are unconcerned, and that could potentially be true.

I’m no expert by any means, but it will be interesting to see how this pans out.

Whats more, if Microsoft really love the Bing name, will they start replacing all the Windows Live products after replacing Live Search? Will we start using Bing Messenger, Bing Hotmail and so on? Will they do a last minute re-brand of Windows 7 to be Windows Bing? That would be quite funny…

Jun 9 2009

Fabien Potencier wrote a nice article that I’m going to try out – usernameless and passwordless logon with SSH on Linux systems. This tutorial is especially useful for those with 1and1.co.uk hosting where the username is something like u12345678, which I never bother remembering…

First create the logon key. SSH to the server you wish to set up the connection to using your normal username and password.

chmod 700 ~/.ssh
cd ~/.ssh
chmod 600 authorized_keys
ssh-keygen -t dsa
cat id_dsa.pub >> ~/.ssh/authorized_keys

Then download the id_dsa file to your laptop, using SFTP or similar, move it to something like ~/.ssh/keys/myserver.key and chmod 600 myserver.key. On your laptop, edit ~/.ssh/config and add something like this:

Host myserver
    HostName 1.2.3.4
    User u12345678
    IdentityFile /home/user/.ssh/keys/myserver.key

That should be all there is to it!