Thursday, January 10, 2013

How to remove unwanted CSS from HTML Page using Google Chrome?

Find the article here which explains with steps.

Friday, July 20, 2012

Useful Linux Commands..

  • SVN related commands
    • To checkout the code
      • svn co SVN_URL
    • To checkout the code for a revision
      • svn co -r REVISION_NUMBER SVN_URL
    • To update the code to latest revision
      • svn update
    • To update the code for a particular revision
      • svn update -r REVISION_NUMBER
  • SendMail related commands
    • To check is SendMail is running successfully
      • ps -aux | grep sendmail
    • To install sendmail in Ubuntu
      • apt-get install sendmail
    • To start sendmail service
      • service sendmail start
  • Memcached related commands
    • To start memcached
      • memcached -m MEMORY_SIZE -p PORT_NUMBER -u nobody -l 0.0.0.0
    • To check is memcached is running successfully
      • ps -eaf | grep memcached
    • To login into memcached host
      • telnet  MEMCACHED_HOST  PORT_NUMBER
    • To flush memcached data

      • echo 'flush_all' | nc  MEMCACHED_HOST PORT_NUMBER

Labels Used:


SVN_URL
Any URL of valid SVN


REVISION_NUMBER
Any valid revision number. Ex: 121


MEMORY_SIZE
Any valid memory number in MegaBytes(MB). Ex: 2000


PORT_NUMBER
Any valid port number. Ex: 11211


MEMCACHED_HOST
Any valid memcached host. Ex: 127.0.0.1 OR localhost


Monday, March 05, 2012

Useful links for integrating Twitter with PHP.

Useful links for XML Parsing using jQuery/PHP.

How to redirect to another host using .htaccess?

RewriteCond %{HTTP_HOST} ^(.*)fromhost\.com [NC]
RewriteCond %{REQUEST_URI} ^/$ [NC]
RewriteRule ^(.*)$ http://tohost.com/page [R=301,L]