Blue Horn New Zealand Web Design & Development (PHP 5, MySQL, Symfony Framework, Apache, Linux)

29Jan/101

Speed up Symfony by installing APC on Ubuntu

APC (Alternative PHP Cache) is an open source code PHP code cache and optimizer (or code accelerator). It is a necessary companion to any Symfony project.

26Sep/090

Popular websites powered by PHP

Just a handy list for me and anyone else out there. Most popular high traffic websites only.

Wikipedia, Facebook, Friendster, Yahoo, Delicious, Youtube, Digg, WordPress, Tagged, W3Counter, MyYearBook

Tagged as: , No Comments
18Sep/090

Susan Mofo: An Author, a Poet and a Health Practitioner

Susan Mofo is an author, a poet, and a health practitioner. And at the moment she is working to finish her first music CD! Susanmofo.com is a simple but effective website for Susan's official online presence, to promote her book, CD, and physiotherapy.

susanmofo.com

31Aug/0912

Symfony 1.2 sfForm formatter to add stars on required fields

The following is a form formatter class I developed to automatically add stars * on required fields. Feel free to use it and let me know if it can be improved.

You might ask, why not just use setLabels?

Firstly, if you already set required fields to true/false in setValidators, why do you have to add the stars manually again in setLabels? It just doesn't make sense!

Secondly, using setLabels to add stars is interfering with language translation.

Thirdly, this is I believe a proper (or proper-ish?) way to do this kind of things with sfForm.

3Feb/09Off

Smile Care Centre, dentistry with a gentle touch

Smile Care Centre is a website that Nathan has developed recently for a dentist. The website features an online appointment form where Smile Care Centre's patients can make an appointment anywhere anytime 24/7.

Click for larger image

Click for larger image

3Feb/09Off

Brevettinews

Brevettinews.it (site is now not available) was a website that we have developed sometime ago for an Italian lawyer. We successfully developed the website in PHP, MySQL, and Apache. Brevettinews features news, articles, mailing list, gallery, and etc.

Click for larger image

2Feb/090

Multiple Symfony versions in the same environment

I've been using this trick from symfonynerds to run multiple Symfony versions in the same environments. I can now work on projects built on Symfony 1.0, 1.1, and 1.2 simultaneously in the same environment (Ubuntu 8.10).

So now, when I want to create a Symfony 1.0 project, I would just execute "$ symfony10 init-project myproject". And then in the project I would use "$ ./symfony cc" instead of "$ symfony cc".

It worths mentioning that I think this trick is good for development environment but "svn:externals" trick or Symfony freeze are better for production/deployment as each project will have their own copy of Symfony Framework.

4Dec/080

Why I like Symfony Framework

I have been doing Java programming for quite a few years. Java is where I got my OOP lessons from and it just makes sense to me, from the multi-threading model, interfaces, abstract classes, encapsulation, to the bean.

I became known as Java man, because 1) I was born in Java island, 2) I program Java, 3) I can speak Javanese, and 4) even though unrelated, I also do Javascript.