kahwee's pings
Sort By:
Really like what Fabien expressed here: Is Symfony2 an MVC framework? If you look around, every single framework seems to implement the MVC pattern. I really don’t care whether Symfony2 is MVC or not. Probably because the MVC word is so overloaded and because nobody implements exactly the same MVC pattern anyway. The separation of ...
Symfony2 is hard. But not simply because it is doing things so differently, rather, it depends on so many packages. While there are certainly a lot of resources online, many can be considered outdated. This recalls a discussion I had with U-Zyn of gladlyCode on the trends on PHP frameworks. We concluded that Symfony has ...
I recently had to start a Symfony project using an existing database. Here is a rough guide on how it is done. Firstly you have to update your app/config/parameter .ini to your existing database: [parameters] database_driver=" ;pdo_mysql" database_host="1 27.0.0.1" database_port="& #34; …
Composer is probably a bad name for a package manager in the sense where it is hard to research online by searching on the keyword ‘composer̵ 7; without receiving Beethoven as part of results. The composer I am referring to is this. Composer is a package manager tracking local dependencies of your projects and libraries. Composer ...
I just got Fitbit. Got it fulfilled through Amazon from US. Fitbit is manufactured in Singapore but I cannot get it here. Will update more on how it works. It’s pretty cool so far.
More of a personal note: Classification Women (% fat) Men (% fat) Essential Fat 10-12% 2-4% Athletes 14-20% 6-13% Fitness 21-24% 14-17% Acceptable 25-31% 18-25% Obese 32% plus 25% plus I am at 20% fat.
Get sent bills? If you are discipline enough to pay your bills online every month, consider getting electronic bills instead. And why? You save on paper and do your part on conservation, making Earth a better place You no longer to open envelopes which takes up time and your bills often comes with additional advertisements ...
The past 5 years I have been greeted with the thought of having to get a bigger wardrobe every time I look at my wardrobe. I have been stressing over and over that I needed a need wardrobe to many. It just occurred to me one day, a fine 16 May 2012, that I should ...
I doubt I will have time to put up what happened in Taiwan as much as I would like to. There’s just too much commitment here. I do miss writing personal experiences, though. I might be getting more boring as I grow older. The Taiwan trip has been great, filled with experiences I can never ...
There’re times when I need to quickly search through occurrences of certain phrases in my PHP source files. Here is when I have to search for ‘giraffes̵ 7;. This is an example finding the word ‘giraffes̵ 7; in all PHP source files from the current directory recursively. find . -name "*.php" -exec grep -i -H -n "giraffes" ...
I just returned from Bangkok not long ago. It was a good trip. And now I’m going to Taipei. It’s okay to be envious, even I am envious of myself. I know however that it’s probably the only time I can go for two holidays in one month. My excuse is I didn’t take much ...
During casual introductions, it perhaps isn’t particularly good to tell others what you do. I find that introducing myself as a web developer to friends of friends just kind of kills it all. Not because web developers are such nasty people — quite the opposite, most are nice — but that there’s a deep stereotype ...
This year’s BAFTAs host Stephen Fry embarrasses actor Brad Pitt by making him air kiss the TV audience during the show. Stephen Fry makes Brad Pitt air kiss the TV audience at the BAFTAs
On the increasing usual of improper English, Joan Acocella of The New Yorker notes: English is a melding of the languages of the many different peoples who have lived in Britain; it has also changed through commerce and conquest. English has always been a ragbag, and that encouraged further permissiveness. In the past half century ...
Well here it is, my typical .gitignore file for every project. This doesn’t change much. Specially it is written for Yii Framework and CakePHP: #Linux *~ *.sw[a-p] .directory #Revisioning systems /.svn/* */.svn/* /CVS/* */CVS/* .cvsignore */.cvsignore #Mac OS X .DS_Store Icon? ._* .Spotlight-V100 .Trashes #Windows Thumbs.db Desktop.ini #PHP php_errors.log #IDEs, …
Does your /etc/hosts file look like this? 127.0.0.1 gladlycode.local gladlycast.local 127.0.0.1 babyessentials.local kw.sg.local 127.0.0.1 localhost Every request I made to gladlyCode.local takes 5 seconds to resolve to my local Apache server. Something was wrong! If it does and you’re on Mac OS X Lion, you should change your VirtualHost names to something else. It …
Russell Howard’s Good News Series 6 Episode 4 stand up from the brilliant Daniel Simonsen, enjoy! Daniel Simonsen on Good News
The reality with most projects is I typically work with origin master only. Only 10% of my projects is doing actual branching. (Yea, there probably should be an improvement on that figure.) Here’s how to merge origin master by default. git config branch.master.remote origin git config branch.master.merge refs/heads/master You never have to see the following ...



…