In order to add a program (e.g opera) to the search launcher at the top left corner of Ubuntu add a file like opera.desktop to: ~/.local/share/applications/opera.desktop Add the following contents to the above file: [Desktop Entry] Type = Application Name = My Opera Comment = Open opera from opera.desktop Exec = /usr/bin/opera Icon = /usr/share/opera/styles/images/Opera_256x256.png

If a resource has moved to another server, you may wish to have URLs continue to work for a time on the old server while people update their bookmarks. Simply add (similar) to the following to your virtual host: <VirtualHost> ServerName ServerAlias DocumentRoot /var/www/site RewriteEngine on RewriteRule ^/blog/(.+)$1 [R,L] </VirtualHost>

When you create PHPUnit tests for your models in Yii using netbeans you may encounter this problem PHP Fatal error: Class ‘CActiveRecord’ not found.. The easiest solution is to include the following at the top of the model class, for example if the class is User then your code should look like $yii=’/opt/lampp/htdocs/yii/framework/yii.php’; require_once($yii); class

In my previous post I demonstrated how to install Yii Rights extension easily and quickly. We commented out the code for checking superuser given below. Now to address this issue simply edit file /modules/rights/components/RAuthorizer.php and comment out the lines near line no 304 and 305. //if( $superusers===array() ) // throw new CHttpException(403, Rights::t(‘core’, ‘There must