Archive for the ‘Uncategorized’ Category

You are not allowed to access this page. when open gii

Thursday, September 2nd, 2010

If you met this error when trying gii (yii framework), it’s probably the filters.

By Default, IP filters only allow 127.0.0.1. You need to add your IP address

        'modules'=>array(
                'gii'=>array(
                        'class'=>'system.gii.GiiModule',
                        'password'=>'password',
                        'ipFilters'=>array('127.0.0.1','::1'),
                ),
        ),

Installing Ubuntu Hardy 8.04 Server on Xen

Friday, June 19th, 2009

I found out a good tutorial here about installing Ubuntu Hardy 8.04 Server on Xen

Just follow the step-by-step and you are good to go !

http://community.citrix.com/blogs/citrite/anilma/2008/07/02/Installing+Ubuntu+on+XenServer

Debian - jni.h

Thursday, June 4th, 2009

If you are installing rjb on debian, you probably will need jni.h

sudo apt-get install sun-java5-source
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-xxxxxxxxxx

sudo gem install rjb

There is no public key available for the following key ID

Monday, May 25th, 2009

$ gpg –keyserver wwwkeys.eu.pgp.net –recv-keys 4D270D06F42584E6

# You should see the following output while executing the above command.
gpg: Total number processed: 1
gpg: imported: 1

$ gpg –armor –export 4D270D06F42584E6 | apt-key add -
OK

$ apt-get update
[Note: Now update will work without the key error message]

Path to Drupal Theme and Module

Friday, November 7th, 2008

Drupal Path to current theme

<?php
print '<img src="'. path_to_theme() .'/images/picture.jpg" />';
?>

Drupal Path to a theme

<?php
 drupal_get_path('module', $module_name);
?>

Drupal Path to a module

<?php
 drupal_get_path('theme', $theme_name);
?>