Archive for April, 2009

Embedding PHP In CSS

April 18, 2009 by Buddika Laknath | Tags ,

Interesting twist to CSS and PHP.

Perhaps one of the most frustrating aspects of using PHP with websites, is getting variables into CSS. Having variables stored in an ini file, config file or even a database can make the updating of the look and feel of a site simple, however, CSS files, by default, do not parse PHP.

Embedding PHP In CSS

Ruby Best Practices

April 15, 2009 by Lakshan Perera | Tags

I’m excited to announce that I will be contributing to Ruby Best Practices blog, which is a collaborative effort organized by Gregory Brown with some awesome Ruby developers in the community.

If you are a Ruby hacker, who loves writing smart and robust code be sure to subscribe to Ruby Best Practices.

10 Cool Things We’ll Be Able To Do Once IE6 Is Dead

April 15, 2009 by Lakshan Perera | Tags

James Edwards on Sitepoint blog looks at 10 cool things which would be possible to do after final nail to IE 6 coffin.

List includes Use child selectors, Use attribute selectors, Trust z-index again, Make full use of 24-bit PNGs and my personal favorite Enjoy ourselves again!

Read the full article

A unique visitor or a device ?

April 12, 2009 by Buddika Laknath | Tags

Controversy surrounding unique visitors, a core metric of Web analytics, has raised its head again. In a recent blog post, Web analytics consultant and author Eric Peterson called on the Web analytics industry to stop using the term “unique visitors” because it doesn’t accurately reflect what’s actually being measured.

When Is a Visitor not a Visitor?

Design patterns for PHP

April 10, 2009 by Buddika Laknath | Tags

PHP V5′s object-oriented features give you the ability to implement design patterns to improve your code’s design. When you improve your code’s design in this way, it becomes more readable, more maintainable, and more robust to absorb changes.

Five more PHP design patterns