Posts

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-...

Playlist maker for android using SL4A(android-scripting)

Image
NOTE: I have already created an APP that don't need android scripting installed here . This is a simple tool for your android phone to make playlist by folder using android scripting. You need SL4A with python for android for this to work. You can download it at http://code.google.com/p/android-scripting/ or with and Then just copy paste this code and run it. By default playlist is created at /music/playlist so make sure you have that folder in your sdcard. It also finds all mp3 files in your sdcard and will name the playlist by path. Here it is import android import os import string droid = android.Android() directory = None # put list of folder to gen m3u or leave empty for all folder m3upath = "/sdcard/music/playlist" musicpaths = None def createPlaylist(dir): files = os.listdir(dir) files.sort() songs="" for file in files: if file.find(".mp3") != -1: songs += file + "\n" if songs ...

Grand Fantasia Bot

If you are looking for a bot in grand fantasia, then you found the right place. I made a bot for grand fantasia. It's open source at google code. You can checkout the guides at http://gf.bot.altlimit.org This bot supports almost everything you will need, except auto giving of rep quest, but you can do the repetitive task using another tool found on that forum called AutoMouseClicker. Here are some summary of the bot features: Waypoint system Auto buy/sell stuff Gambits system (setup conditions for skills and almost anything here) Email notifications Sprite Trainer And more