All posts by Alistair Lattimore

About Alistair Lattimore

My name is Alistair Lattimore, I'm in my very early 30's and live on the sunny Gold Coast in Australia. I married my high school sweet heart & we've been together for longer than I can remember. Claire and I started our family in September 2008 when Hugo was born and added a gorgeous little girl named Evie in May 2010. You can find me online in the typical hangouts, Google+, Twitter & facebook. .

Search Engine Optimisation (SEO): Dashes Versus Underscores

Recently I broke down a fairly content heavy section of a site into smaller more succinct pages. As a by product, each page now had focused content instead of a single large page with comparatively jumbled content. Of course, this allows you to target the information on each individual page for search engine optimisation thus search engine ranking/placement.

When breaking it into smaller pages, I thought I would use a common naming convention for all of the ASP filenames, for instance faq_<some>_<meaningful>_<name>.asp. I chose an underscore (_) because I’m a fan of C-style programming languages. The underscore character is pretty common (used for private variable declarations in objects, compiler stuff, …) and I also prefer the ‘look’ of them in filenames as they seem to be ‘out of the way’.

Splitting it all went well up until the pages just weren’t being picked up by Google; however I could confirm that the site and parent page were being indexed regularly. I let it slide for a while, in case the links weren’t followed, for whatever reason, on the previous visits. On Wednesday just gone, I decided something had to have been going wrong for it to not be showing up in the various indexes properly.

After investigating all the other pages on the site, the one thing that became apparent was that none of them had underscores in the filenames. Of the pages that had filenames which might have warranted one, they were either words concatenated with no separating character or a dash was used to separate each word. This led me to check how the pages that used dashes (-) were going in the search engines. It appeared that they had no problems at all and that Google was actually utilising the filename as part of the ‘this page is relevant’ algorithm.

Cruising through some useful searches has confirmed that Google considers a dash to be a separating character in a filename. For instance, if you had a filename of faq-some-meaningful-name.asp, Google would see that as “faq some meaningful name” and utilise that when indexing the site. Conversely, an underscore is considered a plain character, which means unless the person was searching for “faq_some_meaningful_name” – that page might not show up as a by product of the filename.

The moral of the story: for the moment a dash in a filename trumps an underscore; so if you are using underscores in filenames, you might be missing out on valuable search engine ranking.

XmlHttpRequest Object

With all the press that the XmlHttpRequest object has received lately, I thought I would check out what all the fuss was for myself.

I did a little research online, as you do and scoped out what it could and couldn’t do. From here, I started trying to do anything with it that made sense. Initially, this failed as I was trying to hit an RSS feed on this site from my home machine. This might seem like a logical thing to do, however the object is restricted to opening URL’s from the same domain. In my failed example, that would have been http://localhost/. You could get around that by mirroring a remote feed onto your particular domain using your favourite server side language.

Once I established that I could instance the objects and access a URL, it was time to start interacting with the content. The first attempt involved trying to access the information returned from the open method of the XML object. However, if you’re actually accessing XML data and not randomly formed SGML, you need to hit the responseXML property to return you an object you can interact with through the DOM. After assigning responseXML to a variable, you can now interact with it through the standard DOM methods, such as getElementById() and getElementsByTagName().

With that in mind, I set about creating something semi useful – an archive page for WordPress enhanced using XmlHttpRequest that would degrade gracefully should the XmlHttpRequest object not be available. To accomplish this, I utilised the existing feeds that WordPress provides, which are accessed through http://domain.com/<something>/feed/.

As soon as I get a little spare time, I’ll wrap it into a plugin and release it here.

Farewell HostCentral, Hello McGooHQ

My domain and hosting came up for renewal just the other day, so I took the opportunity to have a look around for a new host. I have had nothing but excellent service from HostCentral for the last three years, however with the wedding pending, saving money was more of a concern.

I ended up going with McGooHQ, who are hosted in Canberra and powered by Internode/Agile bandwidth; who just happen to be my ISP as well.

If the site is temporarily unavailable in the near future, you know why. In case you’d like to know if your name servers are returning you the new or old IP address of the server, my current one is 203.209.x.y while the new one is 150.101.x.y.

Happy DNS propogation!

[Edit]: If you are seeing this addition, you are viewing the new site!

Submarines And Suits

Whilst getting ready for work on Thursday morning, there was an atricle on the morning news show Sunrise about dress suits being back in fashion for work clothes. At the time, I passed it off as just another morning news article and attributed the content of the article to changing fashions this year.

They had a fellow on there saying that “casual Friday’s” are on the down turn and that the “casual” nature of the clothing reflects in staff performance. He also went on to say that, paraphrasing here, “you don’t want people coming to work in thongs and a singlet”. Now, you would assume that he is referring to the typical plugger thongs and a jacki how singlet from yester-year. The reality is though, that on the Gold Coast, the majority of females do in fact wear strapped shoes of some sort, a denim skirt and a singlet of some form. Does he infer that they shoudln’t be allowed to come to work in that attire, when that is what they are happy to be seen wearing in public, knowing full well females are always critical of what they wear?

Back to the submarines.

Tonight, I thought I would check back to some of my ‘not as frequently visited sites’. One such site was Paul Graham’s, of which I make a point of reading his excellent essays. Pauls latest essay entitled The Submarine is, in short about the role that Public Relations companies play in main stream news.

Once you read through the essay, which is dated this month, you’ll notice that he also talks about the phrase “The Suit is Back”. Given that, we are in the same month and Sunrise even had an “expert” in toe, you have to wonder whether or not this is in fact the work of the wonderful PR machines. The one thing that I don’t recall hearing in the article, was the name of any particular company that they were pitching for; in Pauls case that was The Men’s Wearhouse.

I thought Paul made some great comments about picking up PR in the news, this one in particular:

Remember the exercises in critical reading you did in school, where you had to look at a piece of writing and step back and ask whether the author was telling the whole truth? If you really want to be a critical reader, it turns out you have to step back one step further, and ask not just whether the author is telling the truth, but why he’s writing about this subject at all.

The mind begins to wonder.