got me a beauty

I saw a giant ad banner in the mall today at lunchtime. It was your typical perfume ad – a banner four storeys tall, showing a laviscious woman in the arms of a hunky guy, with a picture of a perfume bottle and some sort of pretentious tagline. Then I read the name of the perfume – Lamb.
I thought to myself – what?? Then I saw that the woman was holding a lamb chop and the tagline was something like “the sensual scent of lamb” and I thought “the perfume industry’s really lost the plot this time”.
It didn’t occur to me that it was actually an ad for lamb – the meat – and they were taking the royal piss out of the perfume industry. I laughed until I peed a little bit when I found out.
http://campaignbrief.blogspot.com/2006/05/can-lamb-drive-women-wild.html
Well done aussie advertisers!

ruby on rails

Well, I took the plunge and had a look at Ruby on Rails tonight. I must admit, I missed the whole PHP thing; I started on HTML back in the day when it was the only thing going, and moved straight to Java/JSP from there. I dabbled with Java technologies such as Struts (which was OK) and then Hibernate and Spring, but they never really grabbed me – they were good ideas but they weren’t really integrated. So RoR kinda caught my eye – it looks like the web application framework that finally integrates everything that web application framework developers want, abstracts the crap that we hate doing and allows us to focus on the application.
Well, after playing with it a bit, I’m impressed. I’m not that enamoured with Ruby’s weak typing and the syntax is a little too like VB for me, but the end result is what counts and that is definitely, well, wow.
It’s got it all. OR mapping, MVC, the easiest CRUD implementation I’ve ever seen, integrated unit testing, Ajax. An Eclipse plugin for development (though it’s still somewhat immature). If it turns out to have UML roundtripping, I’ll probably need a good lie down.
So, I’m impressed. I’m going to put it to the test; Cath’s got a business idea and I’m going to knock up the site for it in Rails. I’ll let you know how I do.
Take a look – as one prominent tutorial writer said: “Rails is not your run-of-the-mill, proof-of-concept web framework. It is the next level in web programming, and the developers who use it will make web applications faster than those who don’t; single developers can be as productive as whole teams… I believe that there hasn’t been an improvement in productivity like this in recent programming history.” Normally I scoff at this kind of hype, but this time I’m not sure…
Here is a good article on DeveloperWorks analysing what RoR is good for in comparison to Java.

subverting google

I took an interesting phone call today. A friend of mine – let’s call him Ritchie (after all, that’s his name) – wanted to know why my blog kept appearing in the top ten Google search results for his own name when he’d been killing himself trying to boost his own search position using all sorts of internet guru-type strategies. Let’s deal with the fact that he’s Googling himself later – there are more immediate questions.
Particularly irksome seemed to be the fact that out of 436 entries on my blog, only one – I counted them twice – mentioned Ritchie by name. One entry on a not particularly well-respected rant-mag and I rocket into the top ten? As Professor Julius Sumner Mills would say: “Why is it so?”.
My initial thought was “Well, it’s because I have excellent grammar and my opinions are highly sought-after by the internet community at large.” This was shortly followed by the realisation that this was complete bollocks. Apart from the grammar bit.
The real answer was much simpler: I use the right technology, I’ve been blogging for a long time and I link a lot. Let’s look at those one by one.
Technology. Have a look at the URL in the top of your browser reading my blog. What does it say? If you said “http://blog.radsy.com” you’d be right. If you said “http://www.askaninja.com” you’d be wrong, but it’s still a funny site to visit. Now, click down there at the bottom of this post where it says “[link]“. Notice the difference in the URL? Most importantly, notice the last bit: 00000436.htm. That is the key to Google position. Allow me to enlighten you.
My blog runs on Greymatter. The two most important qualities that Greymatter possesses (in terms of Google position) are that it is old, CGI-based technology, and that it is not a big blog provider.
Because it’s based on CGI, every separate blog post is generated into a distinct HTML page, which links to the home page and is itself (for a while) linked from the home page. That means that this little blog now has almost five hundred totally separate HTML pages. Google likes this. It sees five hundred distinct HTML pages that begin with “http://blog.radsy.com” and it thinks in its little Googlatron brain: “this person really has a lot to say, and lots of other pages find it interesting enough to link to.” Bingo. Page One.
Now compare this with a site using a newer technology (e.g. PHP) which stores new entries in a database. It has one home page (let’s say http://someguy.phpblog.com) which is the home page. This is dynamically updated from a backend database with the latest five entries. The link to a specific entry’s page will look something like this: “http://someguy.phpblog.com?postID=22″ which dynamically retrieves the content for post #22 from the database. The whole blog site consists of two pages. “Cool” I hear you say. Well, cool for the pointy-headed power geeks, not cool if you want good Google position. Google looks at this and sees “Two pages? Who cares?”. You see, I’m pretty sure that Google doesn’t treat request parameters (the bit after the ?) as separate pages. So it starts to ignore you. You slip down the ratings. Nobody ever finds your site on Google. Baby Jesus cries.
Got it? Lots of pages = good Google rating. Now, of course the big names (Blogger etc) know this, and they structure their pages the same way – each post gets its own HTML page. But the theory is that Google knows they know this, and doesn’t necessarily want lots of stupid blogs like this one cluttering up that all-important Page One of results, so it does something to their ratings. I don’t know what, but searching for my mate Clever Bob by name doesn’t bring up his Blogger blog at all. QED. OK, that’s not much of a sample, but this is pretty well known and doesn’t really need a totally biased research project from me to prove.
The other two points help out, but the single-page-to-a-post thing is the kicker. To refresh your memory: blog for a long time and link a lot. My blog’s been around for years, so Google knows I’m not some fly-by-nighter and probably have something interesting to say. I also link a lot – both to my own content and offsite. Every link to one of my blog pages is like a little ray of sunshine for Google’s crawlers and the more I create myself the more there are. Linking offsite seems to reinforce to Google that I’m not here just for my own edification, but that I’m a good linking Netizen helping to spread the word about the great stuff the Net (and thus Google) has to offer.
That’s it. Of course, if your content is interesting enough to be featured on a meta-blog such as Digg or Slashdot, you’ll get a lot of traffic and some other people with blogs might link to you, helping out your rating. But the real kicker is to regress that technology to give you LOTS of pages and to stay off the big blog sites. Run your own. Get an old PIII server from eBay, install Debian on it, hang it off your ADSL and run Greymatter. Google will love you. Whether the blogsphereizens (I made that up) do as well, I leave up to the quality of your content and penmanship.
One final tip: get an RSS feed. if someone likes what you have to say and subscribes, they’ll know as soon as you update your site again in the future and will come back and (hopefully) link you. Or you can just sit back and hope that they’ll remember to visit you now and then. Yeah. As Mr T would say: “I pity the fool”.
By the way, Ritchie’s site is here and his blog is here. Can you figure out why his Google results aren’t as good as they could be?

again, proven a visionary

Yet again, an idea I had years ago has been picked up and run with by the industry giants. Proof? Here. You really did hear it here first.

mic stand and pop shield

While I was editing my latest machinima movie, I decided I needed a microphone stand and pop filter for some dialogue I was recording. So, I bent me up a coathanger and made a pop filter out of a magnifying glass frame (you could also use an egg ring, or a needlework frame?) an old sock (the missus didn’t have any spare pantyhose) and some gaffer tape. It works beautifully.
A pop filter (or pop shield) filters out the hard percussive sounds that can ruin an audio recording (like the letter “p”).
This entry was featured on Make:Blog today! Sweet.

micstand01 (51k image)

micstand02 (46k image)

micstand03 (53k image)

linkies

Awesome single-source API library. About time!
While you’re at it, Ask A Ninja about all those things that bother you.
Finally: I’ve been published in Heckler, the Sydney Morning Herald rant column. Super happy fun awesome. Of course, the editor butchered my original grammar and punctuation, so don’t blame me if it reads badly. Stupid editors.

double rant

Right – what the hell is a Microsoft TV/Video Network Connection, why did it install without my consent when I installed my new webcam, why can’t I disable it and why did it prevent my wireless connection from getting a DHCP address? Huh? You’ve got a lot to answer for, Logitech.
Secondly, why in the name of sweet Moses is every picture of food on a food container a “serving suggestion”? Why can’t they just write “this is just a nice picture of some food”, or not write anything? Does anyone actually look at the picture and think “Hey! You know, if I served that with some green beans and potatoes, it WOULD look pretty nice, just like the photo!”. Are they afraid of litigation from people who live on frozen veal cordon bleu and get sick from vitamin deficiencies brought on my never eating vegetables? “But your honour, the defendant never suggested that I should serve vegetables with my dinner, it’s their fault I’m dying from pommes noisette poisoning”.
Bollocks.

test

test

stupid visual studio

You’d think of all companies, Microsoft would know well enough to avoid crippling Windows when you uninstall a Microsoft piece of software. I made the mistake today of uninstalling Microsoft Visual Studio – of course, it took a whole bunch of important Windows files with it so many important Windows programs (defrag, service manager etc) that rely on MMC didn’t work any more. Tops!
I found the answer is to manually re-register MSXML3.dll with regsvr32, but that’s not the point. Why the hell did Visual Studio de-register such an important component when uninstalling in the first place? Peanuts.

pool lights and civil disobedience

I fitted the new underwater pool light today. I had a bit of an inwards chuckle when the pool guy told me “be careful, they’re fiddly to fit” thinking that he must have been referring to the electrical side of it, but I found out today he wasn’t kidding one bit.
You see the problem is that you’re fitting a light which floats (as the air around the bulb is sealed in) to a mounting half a meter underwater. Its natural tendency, until screwed in, is to float to the surface. Additionally, as mine is inconveniently located underneath a decorative rock on the pool coping, I had to be IN the pool to fit it. Of course, the pool is over my head at the point where the light is, and the pool wall slopes away at a 45 deg angle, so there was no way I could get any sort of purchase on the wall or bottom. So, as I needed one hand to hold the light on the bracket (with the floating tendency and the coils of electrical cable both fighting to liberate the light from the bracket) and the other for the screwdriver, and couldn’t use my feet, as soon as I applied any sort of pressure to the screwdriver I floated away from the pool wall, undoing all my careful cable coiling and bracket placement.
Add to this carefully keeping track of the multiple dropped screws sitting on the bottom, and I was in a world of frustration. I was finally only able to get it to stick by floating face down in the water and scissor kicking my legs in time with my screwdriver turns to keep me in contact with the wall. The neighbours must have had a laugh.
Anyways, it’s in, it works and it gives the pool a lovely blue glow. Even better, we saved hundreds of bucks on an electrician (and possibly some sort of deep-sea diving expert) and I spent quite some time in the pool afterwards without being electrocuted! Bonus.
In other news, we have elected to exercise our right to civil disobedience by adopting daylight savings time in defiance of Queensland’s bafflingly archaic boycott. More swimming time for me.