Archive for the ‘php’ Category

RoR’s failure?

I think this is the first ever blog post that “sort of” says that Ruby on Rails isn’t working. Well, you won’t come across this kind of post often so I just link it here for future reference:
7 reasons I switched back to PHP.

Point 2, I guess is the biggest hurdle for my company to adopt RoR, we have a lot of Coldfusion applications to support and I can’t imagine having to support both Coldfusion and RoR projects. And it is fair to say that all developers in the company are quite junior in Coldfusion. So why add another burden of learning RoR when your Coldfusion still suck (so to say)..

Point 6, while I can understand writing repetitive CRUD in SQL is just plain boring and unnecessary sometimes, but to let a framework does all the SQL for you.. well I am not prepared for that sort of thing yet. Besides good developers NEED to know how to write good and efficient SQL anyway. And yes I love write complex SQL queries, I like optimizing them, I like to ponder the trade offs between IN and EXISTS etc2. However there is a place for ORM (Object Relational Mapper) for simple CRUD and I guess this is where RoR is quite good. I am quite interested in investigating these ORM frameworks for Coldfusion.

Point 7, I have heard this been said couple of times, I guess one can only benefit from learning different programming languages or frameworks. Once I am comfortable with my Coldfusion (and Java) skill, I’d probably give RoR a go and improve my programming skills.

Posted by felixt on September 24th, 2007

Filed under php, ruby on rails | Comments Off

why php is weird…

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
yep, go figure that one out..

Posted by felixt on June 8th, 2006

Filed under php | Comments Off

phpThumb

Annoying!!! Spent few hours figuring out why the phpThumb works fine on our local server and my home, but when the site gets uploaded to the live website (www.epicstone.com.au under project) the thumb didn’t work properly.
Had to spent last 30 mins rushing to revert the thumbs back to using S3’s thumb, which I need to modify as well, as it somehow includes some database requiring include files (not sure why). Fortunatelly it worked, at least customer doesn’t have to see the broken thumb.
Came home and played around a bit, finally found out that I have to explicitly set aeo=0 whilst on the other servers I don’t have to. It’s quite weird, maybe it has to do with the config file, but the config is the same across three servers. Sure the php version is different but still.. anyway, so it solved, boss would be pleased this Monday.
Update:nNope I was wrong, i think it has to do with the specifying the sw and sh size, one pixel wrong in calculation set the cropping crazy. Will do a test on monday, can’t work for free now :P
Update again Monday, 13/03, I solved it, apparently setting both sh and sw didnt work for the live server. Need to set one only, if the source image’s width is more than its height than set the sw to the height and vice versa, but when setting sw, sh shouldn’t be set and when sw is set, don’t set sh. It worked! so happy.

Posted by felixt on March 11th, 2006

Filed under php | Comments Off

XML, XSLT, XPath, but how???

Is there a framework out there using PHP that somehow mimic the way of Java using XML for the data and then XSLT for the layout.. err was it Java?
There’s got to be a way to improve our framework, make it more robust but at the same time easier and clearer for people to use it! Hm might develop into an open source project.. but then again, what for, we’ll lose our competitive advantage.
Thinking thinking thinking..

Posted by felixt on March 9th, 2006

Filed under php | Comments Off

Site makeover: Drupal and new layout

I decided to give drupal a go for redesigning felixt.org. I am not sure how easy/hard it is to get it up and ru
ing. And lastly not sure whether or not I will lose interest in this redesigning process in few weeks or so.
Another note, I’m a bit dissapointed to find out that my current hosting package doesn’t include JSP/servlet support. Hostingshop told me that I can move to another configuration with the same cost to have the kind of support, however the server is Tomcat (not surpraisingly) and not Apache. I was hoping of having an Apache webserver modded with Tomcat for handling JSP and servlet.

Posted by felixt on May 28th, 2005

Filed under stuffs, php | Comments Off

Smarty PHP

Templating is one of the ways to ease the organisation of a website. Smarty is a template engine built in PHP, I am interested in trying it out sometimes..
I wonder when would this blog be discovered by people.. Not yet ready for real audience (people who know me in real life.. hehe).

Posted by felixt on October 7th, 2004

Filed under php | Comments Off

Mysql support in PHP

After wasting half an hour trying to figure out why my PHP files don’t work for co
ecting to MySQL in my computer (while they work in webserver), I finally found out that my PHP doesn’t have the MySQL support enabled. Which I found a bit weird, I thought it was turned on by default (I am using Mandrake 10).
Learnt a new command called “urpmi” -> is this for updating via rpm?

Posted by felixt on September 7th, 2004

Filed under php | Comments Off