Porteus Linux – Fast and versatile USB Linux


I was a searching for a Linux for installing into USB and also backing up files from windows. There is also several benefits of having a Linux USB. Backup your files from Windows and GNU/Linux Operating System. That includes saving files across many file systems like Fat32, Ext3 and Ext4. You could also sync it with…

Things to do after Magento 1.9.4.4 install


Replace Magento logo with your Brand Name If you followed my other post for installation in a shared hosting environment, then you would want to do the following things. Replace the Magento Logo with your store Brand. For this upload the logo to the following directory magentodir/skin/frontend/rwd/default/images/yourbrand.png then in your admin panel select configuration and…

Magento 1.9.4.4 step by step installation on a Shared Hosting


 Download the zip archive from Magento website. Do not use the downloader version because its more complicated. create a subfolder under public_html. Set folder permission 755 to the public_html/subfolder Unzip the contents of Magento archive into it. Set correct file permission 644 to the subfolder/index.php replace the contents of .htaccess file with this code. please…

Sending email screen shots from Enlightenment Linux


I read somewhere that its possible to take unattended screen shots (scrot) and mail it (heirloom-mailx) every one hour (/etc/cron.hourly). It was not easy particularly the mailing part because configuring any mail program to send mail from terminal to the outside world seemed a herculean task. The steps .. $ sudo apt-get install scrot $…

YII webapp customising from ground up


A)) config/main.php 1. name your webapp ‘name’=’my webapp’ 2.  enable gii ‘gii’=>array( ‘class’=>’system.gii.GiiModule’, ‘password’=>’password’, // If removed, Gii defaults to localhost only. Edit carefully to taste. ‘ipFilters’=>array(‘127.0.0.1′,’::1′), ), ), 3. create your database scheme 4.  beautify url ‘urlManager’=>array( ‘urlFormat’=>’path’, ‘rules’=>array( ‘<controller:\w+>/<id:\d+>’=>'<controller>/view’, ‘<controller:\w+>/<action:\w+>/<id:\d+>’=>'<controller>/<action>’, ‘<controller:\w+>/<action:\w+>’=>'<controller>/<action>’, ), ), 5. enable mysql or point to sqldatabase ‘db’=>array( ‘connectionString’ =>…

Handling related models in YII forms


Many AWBs can be carried in one Trip. One AWB can be carried across Many Trips. We will use MySQL for the database. Below is the schema. tbl_tripAWB is the junction table. CREATE TABLE tbl_trip( id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, truckId TINYINT UNSIGNED NOT NULL, departureDate DATETIME NOT NULL, tripOrigin MEDIUMINT UNSIGNED…

Nokia N900


My Nokia N900 suddenly started losing battery charge fast. I have updated the latest beta repositories and installed as much as new (useful) applications I can. The situation became so bad, that I cannot use my phone for even few calls. I was charging my phone more rather than using it. So, I decided to…

Customizing Gedit as Web Developer’s IDE


These tips I followed from Micah Carrick’s blog 1. get the tag for gedit wget http://www.micahcarrick.com/files/gedit_webdev_tags-0.1.tar.gz tar -xzf gedit_webdev_tags-0.1.tar.gz sudo mkdir /usr/share/gedit-2/plugins/taglist sudo cp *.tags /usr/share/gedit-2/plugins/taglist/ rm -rf *.gz *.tags 2. get current version of PHP_Beautifier and other useful stuffs sudo apt-get install csstidy linkchecker sudo pear install PHP_Beautifier-0.1.14 3. use external tools plugin for…

First Step before Creating a Webapp with YII


Install LAMP Server Install PHPunit % sudo pear channel-discover pear.phpunit.de% sudo pear install phpunit/PHPUnit Install Selenium Download Selenium Remote Control (Selenium RC) zip file from http://seleniumhq.org/download/.Run Server from shell % java -jar selenium-server.jar Running the Functional Tests Before we can run this functional test, we need to make a couple of configuration changes to our…

Configuring GII


Before we can start using Gii, we have to configure it for use within our application.At this point you probably know enough to guess we would do that in our mainapplication configuration file, protected/config/main.php. This is correct. Toconfigure Gii for use, open this file and add the following highlighted code to thereturned array: return array(‘basePath’=>dirname(__FILE__).DIRECTORY_SEPARATOR.’..’,‘name’=>’My…

Voice and Video Calls with Empathy using GTalk


Install the following packages sudo apt-get install telepathy-sofiasip telepathy-butterfly telepathy-idle libtelepathy-farsight0 python-tpfarsight gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-ffmpeg