More Visitors, More Stats

I can’t quite believe the growth in vis­it­ors to this site. Since I pos­ted about my vis­itor count passing the quarter of a mil­lion mark on June 1st, I have had another 50,000 vis­it­ors tak­ing the total count to well over 300,000! That’s 25,000 vis­it­ors a month. For little old me, I find that quite impress­ive. I’ve also had over half a mil­lion page views in that time. The page views counter passed three and a half mil­lion a while ago.

I know that being one of the feeds to the WordPress dash­board helps, but the vast major­ity of my vis­it­ors still come from search engines. Eleven of my top fif­teen refer­rers are search engines. Of those, Google accounts for a whop­ping 76% of search engine hits. In fact, as I write this, the last 15 minutes has seen 15 unique vis­it­ors 12 of whom are vis­it­ing old pages via search engines.

With all this vis­itor activ­ity, it cer­tainly seems that my page cach­ing is hold­ing out ok. I still get some weird slow-downs on the server, but I think some of that is down to the stat­ist­ics pack­age I use, Power Pphlog­ger is start­ing to creak at the seams. I doesn’t appear that ver­sion 3 is going to appear any time soon, so I’m start­ing to look elsewhere.

When Did You Last Backup Your WordPress?

Don’t for­get we are only half way through WordPress Backup Week.

WordPress is cel­eb­rat­ing blog secur­ity and pro­tec­tion with WordPress Backup Week July 23 – 30.

WordPress, one of the most pop­u­lar blog­ging and web­site man­age­ment tools, is spon­sor­ing WordPress Backup Week July 23 – 30. Step-by-step backup instruc­tions will be avail­able in the online manual, the WordPress Codex, and online in the WordPress Sup­port Forum to help you through the process.

There is lots of help on the WordPress Backup page, cov­er­ing com­mon host­ing con­trol pan­els like cPanel, Ensim, Plesk, and many more. It also cov­ers using phpMy­Ad­min and other, sim­pler, meth­ods. Lots of links to resources too. It’s worth a read, even if you have a backup routine, to make sure you are cov­er­ing everything. You might pick up a use­ful tip to do it more efficiently.

Read on for the full press release. Con­tinue read­ing

10 Tips For Safe Cycling

I got a ping­back from Adrian Trenholm who has writ­ten a great piece, 10 tips for safe cyc­ling, partly inspired by my recent acci­dent. He lists

  1. Wear a helmet.
  2. Know the rules of the road and stick to them
  3. Con­cen­trate.

and more, each with a good explan­a­tion why. I’d like to add a couple more points:

Look after your bike. In the past I have found that a com­bin­a­tion of worn brake blocks, stretched cables, and wet rims meant that I sud­denly found noth­ing was going to slow me down!

Don’t run red lights. This is really part of Adrian’s num­ber two item, but I sus­pect the single most annoy­ing thing cyc­lists do to city motor­ists is ignore red lights. Or rather, not ignore them, but go through them any­way. I know it annoys me when I’m driv­ing, and I never do it when I’m cyc­ling. Just remem­ber that those drivers you’ve just left at the lights will be passing you in a minute. Only now they’re annoyed with you. When you need to swerve to avoid that pothole, they’ll be much less inclined to give you the room you need.

Adrian also has a great dis­cus­sion, “Never, ever get into a fight with a ‘bike-hater.’” in the same post. I couldn’t agree more. I some­times shock myself when I react badly to a car ‘buzz­ing’ me, or to a beeped horn because someone thinks I shouldn’t be on the road. It’s easy to want to be aggress­ive when you are ‘bul­lied’ by a car, but as Adrian says…

Let’s be clear about this: you might be in the right, but your ant­ag­on­ist has over a ton of metal at his dis­posal. When a cyc­list mixes it up with a motor­ist, the cyc­list will always lose. Just let the motor­ist go.

Don’t let us put you off though. Cyc­ling to and from work is a great way to get fit. My trip home takes pretty much the same time as pub­lic trans­port, so I’m not tak­ing more time out of my day. Because it serves a pur­pose (get­ting me home) it’s much easier to stick with it than, say, going to the gym. When I had a gym mem­ber­ship it was easy to say to myself “I’ll leave it tonight and go tomor­row… or next week”.

Give it a try. Get that bike out of the shed and try rid­ing to work a couple of days a week.

Another Bike Crash

In other news, I had another acci­dent on my bike yes­ter­day. On my way home from work, a truck pulled out on me whilst on a round­about (here is a great intro­duc­tion to round­abouts for Amer­ic­ans). This ought not to hap­pen as I had right of way, but I can only assume that either the truck driver didn’t see me, or that he assumed that I was going slowly. As a res­ult, he pulled out on me; slowly because it was a big truck; and I had to swerve round him. Unfor­tu­nately he was too slow for me to get com­pletely round the back of him. With a 4 or 6 inch high kerb approach­ing, I had to turn the bike and slide it and thus me along the floor to stop.

I hit the floor hard and slid to a stop. As I got up a chap pulled my bike off the road and star­ted ask­ing if I was OK. A couple of other people kindly stopped to check too. The truck driver was, of course, long gone. My arm was badly grazed and my ribs hurt. After a couple of deep breaths, I figured they weren’t broken. Luck­ily too, my bike wasn’t dam­aged, though my shorts now have a hole, and the screen on my mobile phone is cracked and it only shows about a third of the display.

So, after thank­ing the people who had stopped, I got back on my bike and cycled the rest of the way home — I had about another 9 miles to go. By the time I got home, my ribs were hurt­ing a lot and I knew I would be off my bike again for at least a few days. That’s a real shame too as I’d just got back into doing a full 70 miles a week.

After some more hassle I won’t go into right now, Jan gave me a lift up to our local A&E depart­ment. It was busy and I ended up wait­ing for two and a half hours to see a doc­tor. He listened to my chest and decided noth­ing was broken or even cracked and that I didn’t need an x-ray. I waited another half hour to get a dress­ing on my arm and then made my way home.

I’ve had to have the day off work today, it’s quite pain­ful to move around. When I sit or stand still, it feels fine. But as soon as I move the pain kicks in. I’ll prob­ably be off work tomor­row too.

Site updates

Page Cach­ing

I’ve made some minor changes to the blog over the last few days. Firstly, I’ve been using Ricardo Galli’s WP-Cache 2.0 plu­gin. This is an effi­cient WordPress page cach­ing sys­tem. It should make the site much faster and respons­ive. WP-Cache star­ted life as the “Stat­icize Reloaded” by matt and billzeller. I like the fact that it auto­mat­ic­ally inval­id­ates the appro­pri­ate cache files when you pub­lish a post or page or comment.

It also allows you to have por­tions of you page remain dynamic. This is fant­astic. I needed my page counter to remain dynamic in order to be accurate.

Ran­dom Gal­lery Image

Someone kindly poin­ted out that click­ing on the ran­dom Gal­lery image in the side bar was open­ing up the gal­lery in the tiny little iframe still in the side­bar. Not very use­ful that. I remembered that I could include the ran­dom image dir­ectly in the side­bar, but that the code wasn’t XHTML com­pat­ible. With the cach­ing plu­gin it would also mean that the image would stop being random.

For my second tweak I ended up hav­ing to do a couple of things. One was to hack the Gal­lery code to pro­duce valid XHTML. Unfor­tu­nately the dynamic part of the cach­ing code which allows you to include a php file assumes that it needs to pre­pend ABSPATH to the include. That’s not the case for the ran­dom gal­lery image. So the last task was to tweak the dynamic part of the cach­ing plu­gin so that I could include my gal­lery ran­dom image code from an http url.

Update 21/07/2005: I’ve sub­mit­ted a trac ticket with a patch against the latest revi­sion to imple­ment this.

Speed up

I hope these changes help the site to run faster. It had been slow­ing down again. This was due to too many extern­ally gen­er­ated con­tent in the side­bars. This is all cached now so things should be much quicker.

Google Moon

On July 20, 1969, man first landed on the Moon… Those clever folks over at Google have just launched Google Moon in hon­our of that day. Google have added lunar images to their Google Maps inter­face and added in some sig­ni­fic­ant locations.

In honor of the first manned Moon land­ing, which took place on July 20, 1969, we’ve added some NASA imagery to the Google Maps inter­face to help you pay your own visit to our celes­tial neigh­bor. Happy lunar surfing.

Oh, and don’t for­get to zoom in all the way to get the really close detail!

Harry Potter and the Half-Blood Prince

Jamie with her copy of  Harry Potter and the Half-Blood Prince (Harry Potter 6) [Children's Edition] Jamie and I went to our local Bor­ders tonight to wait for the release of Harry Pot­ter and the Half-Blood Prince at mid­night. We got to the store around 9:45 pm. There were quite a few people already in the place, but not as many as the last time we did this.

All the staff were very much in to the spirit of the event with lots of cos­tumes and hats. They put on a little enter­tain­ment includ­ing a Harry Pot­ter quiz. At eleven we had a read­ing of the last chapter of the fifth book, Harry Pot­ter and the Order of the Phoenix so we could remem­ber our place in the saga. Has it hap­pens, Jan, Jamie, and I have all re-read the fifth book in the last couple of weeks.

Around 11:30 the queue had star­ted form­ing and I decided to stake my place so as to not be too far down. Jamie joined me about 15 minutes later. I must say, stand­ing in a queue for 30 minutes without mov­ing is rather dull! We did get talk­ing to a nice chap and his daugh­ter who were just in front of us.

The Bor­ders staff had been announ­cing reg­u­larly the time left before the ‘arrival’ of the book. At five minutes to go they star­ted announ­cing every minute, then 30 seconds to go, 15 seconds, then a count down from 10. There was a round of applause and two head high palettes, encased in black plastic wrap, were brought from the back of the store to the front of the queue. Without any more cere­mony, the wrap was removed, the boxes inside opened, and the staff star­ted hand­ing out books at a frantic pace.

We got our two cop­ies quite quickly and we were out of the store and on our way back home by a quarter past mid­night. Now Jamie and Jan are both in bed fever­ishly read­ing the book; I have to wait for the first one to fin­ish — again. If Jan fin­ishes as quickly as she did two years ago, I should be able to start it by the end of Sunday!

Update 16/07/2005 17:00 Jamie fin­ished the book a short time ago!

Fur­ther Update 16/07/2005 11:00 Jan fin­ished her copy around 10:30. I start read­ing it tomorrow.