Get a sneak preview of WP Super Cache before 1.0!

WP Super Cache 1.0 will be out soon(ish) but I need testers to bang on the development version available on the download page.

This version should be significantly faster if you have a lot of mobile visitors, plus it adds support for https secure pages. The speed came about by saving those files as static files in the supercache directories rather than the old “legacy caching” of WP Cache. You’ll see files like index-mobile.html(.gz) and index-https.html(.gz) in those directories. Be aware that if you use a flat permalink structure the plugin opens the root supercache directory for reading to find the index* files. This may or may not be an issue with directories containing a very large number of directories (10,000+ for example).

HTTPS support is built into the mod_rewrite rules so those files are served by the web server directly, but PHP serves the mobile clients. Only now you’ll be able to cache many times more mobile pages than before. There’s negligible speed difference between PHP and mod_rewrite modes anyway in normal operation.

There’s also a handy little “donotcachepage” GET parameter now. Add that, giving it the value of a secret key from the Advanced settings page and the current page will not be cached in any way.

There is lots of new code in the plugin. It’s running fine here, and a few other people have had no problems but I need more feedback. If you have a development server please give this a go, and if it works ok I believe it’s good enough to go live, under supervision. Don’t go install it on a Friday afternoon…

With the upgrade to WordPress 3.2 I moved this site and my photoblog to a Multisite install so I’ve been looking at making Supercache work better in that environment too.

I also installed Varnish as a front end cache and woah, I’m impressed. Setup was fairly easy though it’s still not 100% right. When I make posts the following page is a blank page except for the blog title, and when I (as a logged in user) leave a comment I get a 500 error and wp-comments-post.php doesn’t redirect. I’m still trying to debug those issues. I mentioned this on Google Plus a few days ago but expect a follow up post on Varnish with docs in the near future.

Now all I need is traffic. I should blog more!

My Favourite Android Apps

I’ve used a Samsung Galaxy S since August last year and in that time I’ve downloaded and played with lots of apps and games. Here are a few of my favourites.

  1. Tweetdeck
  2. Dolphin Browser HD
  3. Kindle and FBReader
  4. Amazon Appstore and Android Market
  5. Reddit is Fun
  6. GO Contacts/Dialer/Launcher EX/SMS Pro
  7. CardioTrainer
  8. WordPress
  9. aCar
  10. Juice Defender
And some games
  1. Galaxy Domination (not on the market any more, now here!)
  2. Cut the Rope
  3. Guns ‘n’ Glory

Besides those, there are so many apps on my phone now that it’s ridiculous. I recently started using the Google+ app, and the Amazon Appstore gives away a free paid app every day so that’s my first port of call shortly after 8am every morning. There’s also getjar.com who have a free ad-supported version of Cut the Rope, as well as many other apps and games.

I used to play a lot more games, I’d dive into Galaxy Domination any chance I’d get but now I’d rather read a book in the Kindle app or FBReader, or check out the latest Reddit posts on “Reddit is Fun”.

If you have a phone with a fairly big screen (the Galaxy S has a 4 inch screen) then reading on them is a rare pleasure. No more fiddling with bookmarks or holding the spine of a thick volume open. Go on, head over to Amazon now and pick up a cheap ebook. You might just like it!

You might wonder how much has this all cost me? I’ve bought quite a few books on the Kindle store (I still think it’s wonderful that I can visit Amazon from my phone and buy a book), but I’ve only bought 2 apps. Those would be aCar (purchased through the author’s website) and just last night I bought Juice Defender Plus. As I mentioned in a previous post on battery saving tips that app shuts off the various radios in your phone when not in use, switching them on momentarily for syncing on a regular basis. The free version turns off the 3G connection when the screen is locked, but not wifi. The paid for version  does that and it’s well worth it. Battery life sky rockets after using this app!

Watching as Greece falls apart

Athens has become a battlefield of late. The country has to save 28 billion Euro by 2015 or risk default. I’d ask how the hell that happened but then all you have to do is look at the mess Ireland is in. Sure, they’re very different situations but the end result is the same. Recession and austerity.

How did things get so bad in Greece? This post might go some way to explaining things.

You see, as precipitous as the rise in national debt has been over the last couple of years, it is still amateur stuff compared to the way we piled on the debt between 1981, the year of Αλλαγή, the Change, ushered in by a massive 48% majority, (Time coverage here) and 1993, when the Maastricht rules finally started to bite and we were forced to pull the handbreak on our burgeoning government budget.

Didn’t the Irish Government do something like that in the 70′s? Borrow and borrow and borrow again? Cue Charlie Haughey’s famous quote in 1980. Even though he was living the high life the rest of the country suffered through a bad recession in the 80′s, as it is now..

I don’t know what’s going to happen in Greece. The impression I’ve got from the media here is of a country of self employed people who mostly don’t pay taxes and where jobs go to family members (rather than on merit), of a massive civil service that people aspire to join rather than go into private business (due in no small part to the fact that family members get the best jobs). How depressing but as an outsider looking in I don’t know what’s fact and what’s fiction!

For more, follow some English speaking Greek people on Twitter:

Photos of the protests: 1, 2, 3, 4.

These days will pass, but I have a feeling the EU and the world at large will be a very different world.

Take That Croke Park, 2011

Here are a few photos from last Sunday’s Take That concert in Croke Park, Dublin. It was an amazing concert that started way too slowly. The Alice in Wonderland theme was great but the show really picked up once Robbie Williams came on stage. The guy is a master show man. If Freddie Mercury were alive he’d give him a run for his money!

Pet Shop Boys played support and I would gladly pay money to go see them again!

I would venture to say the crowd was 95% women. I bet they were happy to see the guy who half-stripped above the stage. Yes, yes, photo of him below! Over 76,000 people went to see them on Sunday night and it was amazing. We had no problem leaving after the concert and thankfully stayed in a nearby hotel which was just a walk away.

The fans enjoyed the show but so did Robbie Williams if this post is to be believed! (oh dear, the cynic in me!)

Quoting the full post below, just because I know that blog will disappear when some PR guy decides to revamp that site..

HOLY SHIT!

I CAN HONESTLY SAY EVERY SHOW WE’VE DONE SO FAR
HAS BEEN REALLY SPECIAL…..

FROM THE LOVE WE RECEIVED FROM THE GENTLE FOLK
IN THE NORTH EAST…. WHERE WE LEARNT TO BE A BAND AGAIN

….TO THE GRIT AND PERSEVERANCE
OF THE MANCHESTER CROWD THAT GOT PEE’D ON MOST NIGHTS…..

I’D KINDA FOUND MY PERFORMING FEET IN MANNY’
MOST NIGHTS WATCHING YOU ALL BOUNCE UP AND DOWN
IN LET ME ENTERTAIN YOU WAS A RELIGIOUS EXPERIENCE

AND THEN THERE WAS THE WELSH CROWD THAT OUT SUNG THEM ALL…..
WE WON’T FIND OURSELVES IN A BETTER VENUE ON THIS TOUR…..
SO HUGE BUT SO INTIMATE AND I/WE FELT THE LOVE

BUT OH MY LORD….IRELAND !!!!!!!!!!!!!!!!!
WHAT DID YOU DO TO ME ON SUNDAY NIGHT…..?

I GAVE EVERYTHING I HAD ON SATURDAY AND AS EXPECTED
YOUR PERFORMANCE WAS BETTER THAN MINE…..(ONLY JUST ; )

SO MUCH SO THAT IT WAS WITH A BIT OF TREPIDATION
THAT I MADE MY WAY BACK TO CROKE PARK THE NEXT DAY
FEELING A LITTLE JADED AND DRAINED FROM THE NIGHT BEFORE….
(SUCH HIGH HIGHS THERE HAS TO BE A COME DOWN….)

BUT I WASN’T EXPECTING WHAT CAME NEXT…..

I PROPER LOST MY SHIT……

THE OVERWHELMING GOOD WILL…LOVE…SMILES
HAPPINESS,APPROVAL AND ACCEPTANCE
BEAMING STRAIGHT TO THE STAGE
TRANSFORMED ME FROM PREENING PEACOCK
PRIMA DONNA SHOWMAN
TO A BALL OF MUSH WITHIN SECONDS…..

IT WAS SO POWERFUL THAT I DIDN’T
KNOW IF I WAS GOING TO BE ABLE TO COLLECT
MYSELF ….
PROPER FLOORED ..THERE’S A TEAR IN MY EYE THINKING
ABOUT IT NOW….

YES, THE GIGS HAVE RANGED FROM BRILLIANT TO RELIGIOUS
EVERY NIGHT ………BUT SUNDAY NIGHT CROKE PARK
WAS LIFE DEFINING …….IT WILL STAY WITH ME FOR AS LONG AS I LIVE….

IRELAND I BOW TO YOU….

UNTIL WE MEET AGAIN XXXXXXXXXXXXX

The best of these photos will eventually land on my photoblog as more polished images but I wanted to give everyone a flavour of the night’s festivities and atmosphere. Yes, I did sneak my Canon DSLR and a 70-300mm telephoto lens in and I’m glad I did because I was at the other end of the stadium. BUT, Take That recognised that they can’t stop people taking photos and even recreated their first album cover on-stage. They gave everyone a count down to get their cameras out. I unfortunately only got a blurry shot as they weren’t standing in a spotlight.

Continue reading

Police Brutality in Barcelona

If you’ve been watching the news you probably missed the bit about the protests in Spain recently. I certainly haven’t heard anything about them on Irish radio stations and among those I follow on Twitter only Allan Cavanagh seems to be talking about it. Spanish TV stations aren’t talking about it either apparently:

Meanwhile, Barcelona TV has a cooking show; TV1 is covering an actress with depression; TV3 (Catalan) discussing bass guitars. #acampadabcn

He linked to a very distressing video showing Police brutality against unarmed protesters in Barcelona. Unfortunately (or thankfully depending on how sensitive you are to violence) I can’t embed it here.

I remember years ago a Spanish friend warning me that the Police there weren’t to be messed with, and she was only referring to traffic police.

THIS IS BARCELONA. THIS IS IN SPAIN WHERE YOU WENT ON HOLIDAY. WHAT THE HELL?

Howto: Build a contact form with a Polldaddy survey

I just added a contact form to the about page here using a Polldaddy survey. While it’s not as straight forward as installing a plugin to do the job, I think it’s worth doing because it touches on all aspects of Polldaddy survey creation. After you’ve created this contact form on your own blog you’ll know how to create a Polldaddy survey, a custom style sheet and how to change the language in the form too. It’s very flexible.

Here’s how I did it.

  1. Login to Polldaddy and on the dashboard create a new survey for your contact form.
  2. Give your form a descriptive name and select the custom stylesheet. You’ll have to create a new one. I use the WordPress 2010 theme so I based my stylesheet on the Plain White theme. Changes are minor, mainly to accommodate width and font size. Grab the css file here and copy it into your style.
  3. Now on to the questions. I created a simple Name, Email and Comment form.
  4. You need to tell the survey where to send responses. After saving, go to Reports->Data and scroll down to the Email Notifications where you can fill in your details. You can also subscribe to an rss feed or send responses to a HTTP URL.

  5. To embed the form in your website use the embed popup and choose “Website Inline”. The iframe code should be copied into the new page that will hold your contact form.

  6. You’ll have a form that looks like this.

  7. You’re not finished yet though. Submit the form and you’ll see the message, “Survey Completed”. That’s not exactly appropriate for a contact form is it? Go to the languages page and create a new Survey Pack. You can change just about every bit of text displayed in the form here. After you’ve saved the language pack go back to the edit survey page and select the correct language pack:
  8. The one final job to do is to adjust the iframe size. I made each field of the form mandatory but that raises errors when you submit an empty form. Those errors make the form longer than the default and the iframe is too small to hold it. I bumped the height to 900 pixels and no more ugly scrollbars! There’s more empty whitespace below the form but my contact form is at the end of the page so I don’t mind.

You could also use the Javascript embed method, but that loads the survey form in a css popup window. I prefer the iframe method.

As you can see, Polldaddy surveys are incredibly flexible and offer a lot of customization options. I work on Polldaddy code every day so of course I’ll say this but I’d have no hesitation in recommending the service to anyone needing polls, surveys, quizzes or ratings. Create a free account and give it a spin!

Hello Ubuntu 11.04

Today is the big day. A new release of Ubuntu Linux is out. Version 11.04 or “Natty Narwhal” is the first to ship with the Unity desktop and I’m very impressed! If you haven’t seen it yet, check out the Ubuntu website or this handy guide.

I like:

  • The auto hiding sidebar of icons. When a window is maximised it hides. Long click on an icon to move it around, and right click for a context dialog to remove it.
  • Control Center is 2 clicks away in the top right where there appears to be a light switch. That menu also has a lock screen item and various session controls.
  • Apps with multiple windows show a corresponding number of dots next to their icon on the sidebar. Click on the icon and you see all the windows of that application.
  • Application menus are in the top toolbar ala Mac OS. Some, like Chrome, aren’t however.
  • Long press Windows key and the sidebar icons are highlighted with numbers 0-9 to quick choose them.
  • Click the Ubuntu logo in the top left and you get a nice applications dispay.
  • Speedy alt-tab previews of each Window.
  • Left and right maximising of windows like in Windows 7. I think you need to drag it a bit further than in Windows 7 however, no bad thing. Full screen maximise on dragging a window to the top of the screen.
  • Painless upgrade from 10.10.

And what I didn’t like:

  • The window display for multi window apps requires you select a window. It’d be great if I could click the app icon again to return to the same window. ESC does the job though.
  • GIMP tear away menus are still broken, but this is likely an issue with GIMP. It was present in the last release of Ubuntu too and I just found a work around this evening.
    The menus you are looking for are no longer part of the drop-down menus, but rather part of a right-click menu visible when clicking on the canvas.

    I found using the space bar after clicking the menu option worked on torn off menus. This may be a bug.

  • The lack of formal application menus is off putting initially but it’s actually easy enough to find things with the new launcher.
  • I doubt I’ll ever like the thin scrollbar. There is a way to change that, must find out how.
  • Why does Ubuntu keep installing Evolution every time I upgrade? I’m fairly sure I uninstall that each and every time ..

In previous versions of Ubuntu I always felt the eye candy was there just to make things look pretty. With Unity they’re actually putting that graphical horsepower to good use. If you haven’t tried Ubuntu yet, give it a spin! You can even try it without installing anything simply by booting from the install disk (or usb drive) and opting for that. Check out the download page for further details.

Moriarty Tribunal in Text

The Moriarty Tribunal cost the Irish tax payer more than 100 million Euro and all we got was a 2,400 page protected PDF.

If you view the report’s PDF files you won’t be able to quote from it by selecting and copying text. You’ll have to manually type out anything you want to extract because the files are protected.

Value for money eh? Anyway, I ran the pdf files through the tool “pdftotext” and came up with m1.txt and m2.txt.
Use the original PDF files to read the report but for your convenience these text files will be much easier to quote from.

Please don’t link directly to them, mirror them on your own site if you write about them!

Here’s a Wordle tag cloud of the findings created by Jamie Lawrence.

Amazon Appstore opens in North America

The Amazon Appstore for Android opened today and apparently Apple are already suing them for confusing consumers with a name similar to their App Store.

I wouldn’t really know because after downloading the Appstore app (beautifully simple procedure: click a link in an email/text to a .apk file) and logging into Amazon it refused to let me download the exclusive Angry Birds Rio game.

The Amazon Appstore for Android is not yet available in your region

Good thing I’m sick of Angry Birds, but it’d be nice if it worked over here too!