Happenings

Gzip CSS

Using a very simple technique, it is possible to compress your CSS files with PHP.

Following the instructions on that site, and you can cut your CSS files by a large percentage. Good for bandwidth, good for visitors.

However, I would suggest one modification to the code given: do some user-agent sniffing for Netscape 4. Now, normally I’m not a fan of UA specific techniques, but if you don’t make an exception in this case, the GZip process will crash Netscape 4.

The problem is that it is difficult to target that particular browser. After some careful observation of various similar UA string, I think it is sufficient to not run the compression routine if you find the string Mozilla/4 but not the string compatible.

In addition, I’ve set up an htacess rule to parse .css files, rather than rename them to .php.

Rocks, Fish And Ninja Gold

This weeks random links:

  • Throw Rocks At Boys – A charming little flash game where you throw rocks… at boys.
  • IE HTTP Headers – Like Live Headers, but for a crap browser.
  • Plucene – A perl port of Lucene, the java indexing project.
  • Regex For URLs – A mammoth regex that will parse almost any kind of url. Complex stuff.
  • Anime Cartoon – An odd little gif animation.
  • Link Bar – Another workaround for Internet Explorer’s lackings, a link bar. Comes as standard on other browsers.
  • Sharp Edges – Funny image.
  • Yahoo Vs Google – Visualisation of search engine overlap and differences.
  • Bright Fish – Who knew that MP3s are allowed to be tagged with “a bright coloured fish”? It’s in the spec.
  • LinkFader – A link fader script that seems to be markup friendly. Nice.
  • Things My Maths Teacher Did – Some absolutely bizarre behaviour from a teacher.
  • Ninja Golf – A great idea, whether it is a spoof or not.
  • Pikasso – Imagine the rocking you could do on this bad boy.
  • The Viagra Prank – Taking a viagra and then going to church. Bad idea, but funny.

That’s it for today.

Magpies Everywhere

Although I’m loathe to include any personal entries on this site, I feel compelled to write about something odd I saw today. I was (and to an extent still am) having a terrible day, and on the way home I spotted something odd: 24 magpies.

One for sorrow, two for joy… and all the rest. Now, as I recall, the things you get for seeing more of them get better and better as you go. Six is for gold, seven for a secret never told. Twenty-four must be one hell of a great thing; and I know what I want.

    1. More soon.

The Dreams

A (comparatively) short review of The Dreamers: unengaging, self-involved, border-line pretentious, near-arthouse garbage.

This ground has been treaded before, down less smug avenues; in ways that aren’t overtly dull. Avoid.

ThreePay

Finally there is a prepay 3G mobile plan in the UK. Three have unveiled their top-up based system, no longer requiring huge contracts for the new features.

As expected, there is a catch. Or two.

It’s expensive compared to other mobile companies. If you have no motivation to constantly use the video features, it might not work out well. It’s 15p per text message to other networks, and with added complications (the first £1.50 of your credit is priced differently), the pricing structure is bloated.

The other main set-back is that all credit has to be used within 30 days of activating it or it gets removed. That’s right, you’re effectively having your money swiped out from under you if you’re a little lax one month. This is the same trick the first prepay mobile plans tried to use to leverage wallets. It failed. You would think Three had learned the lessons of the past.

Seems like a good idea on the surface, but hold off another few months and maybe they’ll get the pricing under control and remove the restraints.