How long can you hold your breath?

I used to be able to swim well. At a stretch I could do 50*25m lengths of a pool in about an hour. I’d be wrecked after it for days on end, but I did it. And at the time I managed to hold my breath and swim the whole length of the pool underwater. Those pesky kids at the top of the pool were always a frustrating obstacle when the air is running out ..

That all pales in comparison to the achievements of British freediver Sara Campbell who can hold her breath underwater for 4min 30sec. She recently set a world record in the disciple of, “constant weight” freediving when she dived to 90m (295ft) on one breath.

There is a risk of blackout and burst eardrums and the lungs compress to the size of a clenched fist, but deep down at 90 metres – where no other woman swimming with just a monofin for propulsion has gone before – the Red Sea looks golden to Sara Campbell.

Phew.

Donncha's Friday Links

There is no vulnerability in WP Super Cache. Chris blogged about it after we spent a late night of debugging it until 1.30am. But if:

  • You are using Windows (props Computer Guru)
  • You are using a Red Hat or Cent OS system, or just having problems with compressed content (props Dennis)
  • You want to use the reject uri function
  • You want to try out the new automatic .htaccess rule generator
  • You want WordPress searches to work again

then you should head to the download page and try the development version of the plugin. Official release tomorrow probably.

I tell ya, I have learned more about Apache, content types, mod_rewrite, IIS and Red Hat vs Debian differences with this project than I ever could have considered healthy.

  • Joseph linked to How to Debug PHP with Vim and XDebug on Linux. I started reading but then I realised I had to compile Vim again! I’ll stick with my error_log(). Inertia is a bitch isn’t it?
  • Haha. Hugh responds to requests for a Facebook cartoon. (via Damien)
  • Google is abusing nofollow? Credit where credit is due. That’s just mean.
  • Akismet announces Defensio. So, who’ll hack both their plugins to compare results? Should be easy. Should be interesting! Chris is comparing the two on different blogs. Excellent.
  • The WordPress MU Codex is going to get another boost when we start populating it with useful nuggets of information from the forum. More documentation, more help, less frustration.
  • OK, so how many Irish and UK natives sneer, sniff and give out about the Polish people living here and in the UK? This is what happened to Joe who broke his ankle in Poland. Wouldn’t you just love if your hospital was that good?

    He arrived in the hospital at 10:15am, He was wheeled into the doctor at 10:30am and then taken for an X-Ray. By 11am it was confirmed that his ankle was broken and it was reset. By 11:15am his ankle had been placed in a cast and by 11:30am he was back in his hotel eating his lunch. 1 hour 15 minutes, done and dusted.

  • Stephen Fry bemoans the advent of modern cameras and mobile phones. Gone are the days of the simple autograph.
  • IPhone Day in the UK today! Fanboys started queueing For the iPhone release in the UK, yesterday. Unfortunately for them they have to deal with British weather. Whycantheywaitafewdays…
  • Googlehacks is a neat front end to Google allowing you to find music, books, videos and other things online. via and Digg so you all probably saw this too 🙂

Donncha's Thursday Links

Reports of an exploit in WP Super Cache are being investigated but details are vague at this stage. There are only 3 reports of this out of hundreds who installed the plugin. Email me at donncha at ocaoimh.ie if you find files from outside your blog in wp-content/cache/supercache/
Tell me the following if you can:

  1. Plugins installed on your blog.
  2. WordPress version.
  3. The output of ps auxw and lsof if it’s installed.
  4. If you notice any strange processes running, check that they are not shell or php scripts.
  5. Anything strange in your log files? Look for the string “=http” for funky stuff. There will always be strange entries, so don’t be too alarmed if you see them, see my perl bot post. They’re fishing for an exploit on your server.

On to the links ..

  • You can now make your Google Reader tags public and add those sites to your blog as a blogroll. Nice! I still want a “timely dozen” like Photomatt used to have. Must look at Simple Pie ..
  • I’m shocked. Alkos is writing on his blog. I thought the world ended when he used colour but this? What will happen next? Oh, great photography, as usual!
  • Robert’s girlfriend has only a few days to go and his nerves are starting to go. Good luck with the birth! He has also posted Super Cache benchmarks. Good results!
  • Any world leaders reading? If you want to justify an outrageous pay rise, talk to Ireland’s Prime Minister/Taoiseach. His pay rise takes him to the top of the list of top 30 OECD countries. Well done Bertie! Now where’s the health service gone?

    Ireland €310,000
    The US €276,000
    Britain €267,500
    Germany €261,500
    Switzerland €256,000

How well did Super Cache handle the digg?

I must admit making the front page of Digg.com wasn’t the nail biting experience I expected.

$ grep "GET /2007/11/05/wordpress-super-cache-01/" access.log.1|grep digg -c
4686

digg.com

My Super Cache announcement only drew 4686 visitors which is an ultra-light Digg. The Digg page for the post received 808 diggs as of a few minutes ago which is great. Thank you for voting! Judging by the sheer number of comments on that post, there’s a lot of interest out there in the plugin.
What about traffic graphs? The spike at the end of the first graph is my nightly Backuppc service kicking in. The second is from Google Analytics. My server could certainly handle a lot more traffic!

digg.com traffic
analytics-digg

A quick look at my uptime shows the server hardly broke a sweat dealing with the extra traffic except where some idiot spammer bots tried to download my archives a few times. Unfortunately the first time that happened the archives weren’t cached and the load climbed.

For maximum performance, download Xcache and install it. The Xcache WordPress plugin uses Xcache to cache data structures and makes WordPress much faster, even if you don’t use any other caching tool.

Donncha's Wednesday Links

Post digg.

  • Ireland’s Prime Minister or Taoiseach Bertie Ahern, recently received a nice pay rise of €38,000. He is now one of the highest paid heads of state in Europe. He even earns more than George Bush! Here are 50 ways his party, Fianna Fail, laugh at Irish voters. (via). Twenty Major elaborates on a possible discussion between Bertie and a member of Government. It’d be funny if it wasn’t based on fact. (via)
  • Damien is lusting after the Eee PC. Toni already bought one and he has the same complaints I had reservatioons about,

    * The screen and keyboard are tiny
    * I was hoping for a longer battery life (seems like it gets about 3 hours)

  • I Broke Blogspot.
  • How to scale WordPress MU is a work in progress. I’ve only skimmed it so far but I’ll dig into it later.
  • Make Linux look like a Mac is a Gnome theme with instructions and screenshots. Looks pretty.
  • Haha! Niall discovered that the Golden Spiders voting form only does Javascript validation. Vote as many times as you like! (sort of)
  • When I get older. What scares you most about the prospect of being old? Failing eyesight, hearing, physical disability? Memory loss or dementia?
  • The digging yesterday of my Super Cache post wasn’t as heavy as I thought it would be. More on that later.

Donncha's Tuesday Links

  • HolisticNetworking is now on WordPress MU 1.3 describes some of the issues one admin found when upgrading to the latest WordPress MU. Thomas – you should package that signup key system in a plugin and put it on the WordPress plugin site or WPMU Dev!
  • More discussion on the WordPress.com theme marketplace and some interesting comments from theme designers too.
  • Gamma Goblin is looking forward to the ballet at the Opera House methinks. The linked mp3 is hilarious!
  • The next generation Jpeg compression could be Microsoft’s HD Photo and will be called Jpeg XR. “XR stands for “extended range,” a reference to the format’s ability to show a wider and finer range of tonal gradations and a richer color palette.” (Via Thomas Hawk)

Digg users! Want to help test the Super Cache? You might see this server go down in flames, or it might survive and keep serving files. Who knows? Digg it to find out! 🙂

WordPress Super Cache 0.1

It’s time to lift the veil of secrecy on my latest project. With help from friends who diligently tested and reported bugs on this I can now present version 0.1 of WP Super Cache!

It is an extensive modification of the famous WP-Cache 2 plugin by Ricardo Galli Granada. This plugin creates static html files that are served directly by the webserver as well as the usual WP-Cache data files. It also goes one step further fixing a couple of bugs, adding some hooks and new features and making WP-Cache more flexible.
From the plugin page, here are some of the major changes and updates:

  • A plugin and hooks system. A common complaint with WP Cache was that hacking was required to make it work nicely with other plugins. Now you can take advantage of the simple plugin system built in to change how or when pages are cached. Use do_cacheaction() and add_cacheaction() like you would with WordPress hooks. Plugins can add their own options to the admin page too.
  • Works well with WordPress MU in VHOST or non-VHOST configuration. Each blog’s cache files are identified to improve performance.
  • Normal WP-Cache files are now split in two. Meta files go in their own directory making it much faster to scan and update the cache.
  • Includes this WP-Cache and protected posts fix.
  • Automatically disable gzip compression in WordPress instead of dying.
  • As Akismet and other spam fighting tools have improved, the cache will only be invalidated if a comment is definitely not spam.

If your server is struggling to cope with the traffic your site gets this plugin could be just right for you. If your site regularly gets hit by spikes of traffic like a digging or slashdotting it’s definitely the right choice, and even for everyday use, you may very well notice your webserver is a little bit more responsive.

I contacted Ricardo last week and sent him on an earlier copy of the plugin but I haven’t heard from him yet however. I’d love to know what he thinks of my modifications!

Update! this post has been dugg, please digg it and we can really test the cache out!

Nov 6th: WP Super Cache 0.2 is out! I think all the bugs mentioned below are now fixed. I applied Tummbler’s patch (from Elliott and Reiner) that enables gzip compression of the WP-Cache data files and fixes feed content types.
Please note: PHP’s internal zlib compression must be disabled for this to work. Look in your php.ini for the zlib.output_compression and zlib.output_compression_level directives and comment them out by placing a “;” at the start of each line.

Check the plugin page above for the download link.

Donncha's Monday Links

  • Waterworks – great feel to this image.
  • Modsecurity and WordPress paper – I haven’t used ModSecurity myself but it seems like something good to know about.
  • Let’s Dance – I love the long exposure flowing crowd!
  • WiFi in an SD card? No more wires or plugging your camera’s flash card into a reader! Now, I want a CF version, and one that’s certified outside the US!
  • Another new WordPress MU user blogs.

    And now, having this multi-user version, we can literally host hundreds of blogs using the same WordPress instance. Imagine a company with several brands or locations that wants to have their sites all look and behave similarly but also wants each to manage their own content.

  • A GIMP plugin rss feed has been created by Garrett. I’m subscribed!
  • If you thought morning traffic was bad, be glad you don’t need to take a detour like this. (via) detour
  • Heroes in Cork – Heroes comes to Cork apparently and the Irish accents are awful!

Where have all the Wispas gone?

wispa-display It’s crisis time here in Blarney. The local SuperValu has run out of Wispa Bars!

To console myself I looked at this photo of the Wispa Bar display from a few weeks back. Oh that lovely crumbly chocolate.. I still want one.

If that title above doesn’t get you thinking of a certain Bonnie Tyler song, clicking here will. That’s song will be going through my head for the rest of the day. I need a cup of tea. Sorry.

Donncha's Saturday Links

Catching up on some links.

  • Cubic Telecom win it@Cork emerging company award. Congrats Pat!
  • Keith says Airtricity have a simple approach to electricity meter reading. Email and text. Sure you could lie, but they have a good notion of how much electricity you use and I’m sure a meter reader would be out after another month of only 10 units used.
  • 494 comments – I need to paginate the comments on that post.
  • GIMP plugins I discovered through the GIMP Registry RSS feed: photo effects contains a bunch of pretty effects. Cross processing and cross processing 2.4 make your image all green and contrasty. Sort of like these cross processed pictures.
  • Figmentation has some great photos. Another Irish photoblog.
  • My funny video blog now has a pagerank of 2! Not all sites went down I guess. Here’s a great clip of Jeremy Clarkson in his Peel P50 driving around the offices of the BBC in London!