Archive for June, 2010

Print margins in Firefox Ubuntu Karmic Koala

To change print margins in Firefox in Ubuntu :
1. Open a new tab and type about:config in the Url and hit enter.
2. In filter enter margin.
3. For all terms which looks similar to print_margin_bottom , print_margin_top , print_unwritable_margin_bottom , print_extra_margin and so on, double click them and enter value of 0 or 0.0

Url encoded forward slash in MVC or codeignitor app urls

When using PATH_INFO , the urls of codeignitor apps or your custom MVC looks like this

index.php/controlller/method/param1/param2
or
/controlller/method/param1/param2

Now if the parameters contain a forward slash then you would urlencode it as :

index.php/controlller/method/par%2Fam1/param2