Skip to main content

Posts

Showing posts from 2010

IE browser Renderer

All those who need a quick view of how each IE browser will render a particular site, you can use the following site and get a screen shot of a particular url. http://ipinfo.info/netrenderer/index.php Through this site you can get only the screen shot of a different IE browser views.

Installing Apache, PHP, MySQL and phpMyAdmin on Ubuntu

Installing Apache 1. Open Terminal (Application -> Accessories -> Terminal) and execute the following command: sudo apt-get install apache2 2. When the setup is complete you can check if the Apache is working properly by pointing your browser to http://localhost. If you see the text “It works!”, it means Apache is working just fine. 3. Towards the end of the installation if you see a message like this inside Terminal, “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName“, you can fix this by executing the following command. It will open Gedit (text editor). gksu gedit /etc/apache2/conf.d/fqdn 4. When Gedit opens, type “ServerName localhost” inside the file and click Save. Then close the file. Installing php5 1. Inside Terminal, execute the following command: sudo apt-get install php5 libapache2-mod-php5 2. When setup is complete, you have to restart Apache so that php5 will work on Apache. Execute t

Drupal : How to write the theme's region variables to the page.

If you're assigning your region to page.tpl.php, you don't need to worry about creating a variable for your region and assigning content to it; PHPTemplate handles this automatically. All you need to do is write the variables to the page, by editing your theme's page.tpl.php file. For each new region you've defined, include in page.tpl.php a print call. For the 'floater' region defined above, this would look like: . Of course, you'll probably want to use HTML, CSS, and possibly PHP (e.g., if tests) to get your new regions looking how you want them.

Drupal : How to define custom regions

If you want to have your own set of regions for a theme, you do this by defining a _regions() hook. In this case, your custom regions will override those defined by default in PHPTemplate. If the theme doesn't have a template.php file in its directory, create one; otherwise use the existing template.php file. In either case, add a mytheme_regions() function to define your regions. Each region needs to have a name (a string with no spaces) and a description (the text that will show up in, for example, the block configuration pages). The following would define all the standard PHPTemplate regions except the left sidebar and, in addition, two new regions for a theme called "mytheme". t('right sidebar'), 'content' => t('content'), 'header' => t('header'), 'footer' => t('footer'), 'floater' => t('floater'), 'inline1' => t('inline 1') ); } ?> Note: Regarding
Office and Productivity Windows apps    Linux apps    Description   Windows Update, Add/Remove programs apt-get , Aptitude , portage , rpm , urpmi , yast , yum , Synaptic Every Linux distribution has an infrastructure to manage installed software which is quite different from Windows. For instance, all updates are handled by a single program. See package management . Google Desktop Beagle , Recoll , Google Desktop Desktop Search Alcohol 120%, Discjuggler, Easy CD Creator, Nero Burning ROM K3b , XCDRoast , more CD burning 7-Zip, Winzip, Winrar Karchiver , File Roller , ark , hjsplit ; command line tools Archivers Notepad, Wordpad, TheGun, EditPlus, SciTE KWrite , Kate , BlueFish , Gedit , Joe Text Editors WinMerge, SyncToy Meld , Unison , Synkron , rSync File synchronization Daemon Tools mount , GMount-ISO ISO mounting Norton Ghost Partition Image , g4u , Mondo , dd Disk imaging Norton Partition Magic QTparted ,

Installing Addon files to Firefox

Sometimes users face difficulties to install add on to firefox browser, specially for the Ubuntu10 users. If you need to install add on, first download the add on file to your local machine. eg: http://www.redflymarketing.com/files/google-global.xpi Then open firefox browser and navigate to the add on window Tools->addons->Get Add-on Then drag and drop the .xpi file (in this example : google-global.xpi) to the add on area. then click on install and restart the firefox browser to effect the changes. Try it out

Real time Sinhala Unicode converter

Following Sinhala unicode translater is a very useful tool for all the Sinhala web users who needs a quick sinhala unicode typing. The main advantage of this tool is that user can type the sinhala characters using English (commonly known as Singlish) Use the following link to access the online unicode converter. http://www.ucsc.cmb.ac.lk/ltrl/services/feconverter/t1.html

how to extract iso files ?

Anyone who need to use the content  of an .iso image file in ubuntu, without burning it to a cd can use the following command to create a virtual cd by mounting the .iso file. $ sudo mount -o loop -t iso9660 /path/to/iso/file.iso /media/cdrom After using the virtual CD you can simply unmount the virtual drive using the following command $ sudo umount -f /media/cdrom0

Creating Screencasts on Ubuntu

Add repositories System --> Administration --> Software Sources Tick "Community maintained Open Source software (universe) Tick "Software restricted by copyright or legal issues (multiverse)" Close Reload Install QEMU, avidemux, ffmpeg2theora, audacity on the host $ sudo apt-get install qemu avidemux ffmpeg2theora audacity   Alternatively (preferably) qemu could be compiled from source. It's not nearly as hard as it sounds. There's a great guide to compiling QEMU on the Hampshire LUG wiki. Doing this means you can enable the (closed source) KQEMU module which dramatically improves performance of QEMU. Install xvidcap Home page: http://xvidcap.sf.net/ Download the .deb Visit download page: http://sourceforge.net/project/showfiles.php?group_id=81535&package_id=83441 Download xvidcap_1.1.4_i386.deb from mirror. $ wget -c http://kent.dl.sourceforge.net/sourceforge/xvidcap/xvidcap_1.1.4_i386.deb Install the .deb $ sudo dpkg -i xvi

Convert MPEG to AVI using mencoder in Ubuntu

1. Install mencoder using : $ sudo apt-get install mencoder 2. Move to the folder which contains the .mpeg /.mpg file 3. run the following command :         mencoder INPUTFILE.mpeg -ofps 25 -ovc xvid -oac mp3lame -lameopts abr:br=192 -srate 48000 -xvidencopts fixed_quant=4 -o OUTPUT.avi ** in the example I'm converting INPUTFILE.mpeg to OUTPUT.avi