Posts

Showing posts from June, 2011

Subdomain module mapping with Zend Framework

Here is a very simple config to map a subdomain to a module with Zend Framework: Samples: Going abc.example.com/hello will route to example.com/abc/hello/index resources.router.routes.module.type = "Zend_Controller_Router_Route_Hostname" resources.router.routes.module.route = ":module.example.com" resources.router.routes.module.defaults.module = "www" resources.router.routes.module.chains.index.type = "Zend_Controller_Router_Route" resources.router.routes.module.chains.index.route = ":controller/:action/*" resources.router.routes.module.chains.index.defaults.controller = "index" resources.router.routes.module.chains.index.defaults.action = "index" Just add this to your application.ini

Macbook Pro 2011 Review

Image
Update: After owning it for about 2.5 years I found out that this is actually a flawed mac model which apple has not admitted yet. There are thousands of discussion posts happening on these models with failing gpu / discrete graphics that causes it to blue screen or not pass grey screen just after the logo. A temporary fix that I do is use gfxCardStatus and set it to only use integrated graphics and it's still usable for now, but a lot of people can't pass the gray or blue screen which makes their macs brick. Until apple won't do recall or admit and replace their failed product this is probably my first and last mac. Beware also that this happened to one my friends earlier model and with another with later model. Here are links on the discussions about this: https://discussions.apple.com/message/24067593 http://www.mbp2011.com/ http://www.geek.com/apple/macbook-pro-2011-owners-experiencing-hard-freeze-problem-1330689/ http://appleinsider.com/articles/13/10/14/apples-