| Why do we have 5 working days? |
[Feb. 19th, 2008|05:52 pm] |
The Pankaj-Kaushal model describes, in five discrete stages, the process by which people deal with the grief and tragedy of a work week:
1. Denial (Otherwise known as Monday): The initial stage: "It can't be happening." Wasn't it friday just now? No. It can't be true.
2. Anger (Tuesday): "Why me? It's not fair." Why do I have to be here and attend all these meetings?
3. Bargaining (Wednesday): "Just let this finish before friday! Please god." I'll fix all the bugs in the next release
4. Depression (Otherwise known as Thursday): "I'm so sad, why bother with anything?" Can't even goto a pub and drink. Have to attend conf call in the morning.
5. Acceptance: (Friday) "It's going to be OK." Last day, and then the weekend :)
With apologies to Kübler-Ross. |
|
|
| Scaling php |
[Jun. 12th, 2007|09:50 am] |
Well! I'm new to this php thing you know. I've tried to avoid it ever since I asked Rasmus, "How do you debug your php code?" and he replied "echo."
Last few days were fun though, trying to get a php+smarty thingy to scale. Gopal has already written about inclued. Tracing apache syscalls helps find out what exactly is causing the delay.
I found that php was doing a lot of syscalls in lstat, which means disk access. Further investigation yield to smarty writing to disk. $smarty->cache_handler_func = 'smarty_cache_apc'; increased the performance by a magnitude of 13 folds.
Tools I found useful :
* APD * Gopal's inculed * Tracing apache syscalls * $smarty->cache_handler_func = 'smarty_cache_apc';
I'd like to know what are the tools you use to find performance bottlenecks? And other tricks. |
|
|
| Oh my god! |
[Jun. 11th, 2007|03:05 pm] |
This one is for redobsession. We just went live with OMG!!.Oh my god ponies. :). OMG is about Paris and Lindsay, and well! some other things. check it out. |
|
|