Comment, Linkage

Green by design

I thought just about every possible space left on the green bandwagon had been grabbed, but not so; Sitepoint has 10 tips on how to be a greener web designer.

Okay, so I know it’s a niche site for web professionals, but seriously, WTF is that all about?

Are there guides out there for other professions, I wonder?

From How to be a greener lumberjack;

  • Back away from the chainsaw.
  • Stop cutting down fucking trees.

From How to be a greener narcotics runner;

  • Consider the use of biofuels for the high powered speed boat you use to outrun customs patrols.
  • Slower is greener – try using less fuel by sneaking past patrols at more sedate speeds.

From How to be a greener president of the United States;

  • Stop invading other countries and launching several million tons of ordnance.
  • Stop giving tax breaks to your buddies on the boards of the oil consortiums.

But I digress.

In the web designer equivalent there are no-brainer gems, such as using an LCD monitor to reduce your carbon footprint. Unfortunately that’d only be greener and truly beneficial to the environment if the production of those LCD’s did not emit nitrogen trifluoride. (Flat Screen TV’s Worse for the Environment)

Hey, I’m all for being more environmentally friendly. If I was Gordon Gecko, Green is Good would be my motto. I have a small, economical car when what I’d really like is a sports car. I take the train to work. I recycle. I consume organic produce. Admittedly I’m counting beer as organic produce here, but the sentiment is there.

However, I think the whole green message is lost in the noise when it’s taken to extremes. Not only that, when I’m being told to green-up on a site I’d only usually go to for articles related to web development, well, it somewhat ironically counts as pollution.

Continue Reading
Code Comments, Linkage

Linkage: Internationalisation with PHP, Apache & MySQL

This article posted by Florian Eibeck on setting up php, Apache, and MySQL for dealing with international character sets is a good overview of the groundwork required to support a UTF-8 compliant web app.

As Florian rightly points out, there are non-UTF-8 safe functions lurking in php to upset the apple cart if you’re not aware of them. Although strlen() may not return the right result with double-byte characters, it doesn’t do your content any harm – there are plenty of others that do mangle double-byte content.

From my own experience, once the environment (Apache, MySQL) was set up correctly it’s those unsafe php functions that cause the most grief, both in tracking down the culprits and finding a work around. It is rewarding when it finally comes together, though – there’s something quite cool about seeing all manner of Scandinavian languages sitting on screen alongside Japanese and English in a web app created by your own hand. 🙂

Continue Reading