7 Simple Steps to create Twitter Application

First you have to download oAuth from github “An open protocol to allow secure API authorization in a simple and standard method from desktop and web applications.” 7 Simple Steps to create Twitter Application using Twitter’s OAuth…. 1. Build TwitterOAuth object Login to twitter and register a new application here https://twitter.com/oauth_clients … after registering application … Read more

Install PECL Memcache with LAMPP

PECL Memcache client of memcached distributed cache server, is a very probable candidate for high-load systems. Typically you won’t be able to use “pecl” directly and when you try to install manually with phpize you will get an error like: ” PHP Warning: Unknown(): Unable to load dynamic library ‘/opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/memcache.so’ – /opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/memcache.so: undefined symbol: OnUpdateLong … Read more

No route to host

Often, when we get error “No route to host” to connect remote server via linux command line e.g. wget, curl etc. or web services (webserviceserver). The first solution we want to try to troubleshot firewalls and proxies? But before that try hostname entry in linux box… # vi /etc/hosts add & save 192.168.0.100 webserviceserver If … Read more

Install swftools

SWFTools is the utilities for working with Adobe Flash files. These tools includes programs for reading SWF files, combining them, and creating them from other content (like images, sound files, videos or sourcecode). Install SWFTOOLS: Download latest Sourcecode from here… http://swftools.org/download.html # wget http://swftools.org/swftools-0.9.0.tar.gz # tar -zxvf swftools-0.9.0.tar.gz # cd swftools-0.9.0 # ./configure # make … Read more

Magento make easy – part1

Magento Create a dynamic, fully featured, online store with the most powerful open source e-commerce software…. Download Magento from here.. http://www.magentocommerce.com/svn # svn checkout http://svn.magentocommerce.com/source/branches/1.3 Features.. 1. Categories and Attributes 2. Taxes 3. Adding Simple Products 4. Minimum Customization of Your Store’s Appearance 5. Customer Relationships / Configuring customer options 6. Accepting Payment 7. Configure … Read more

Backup mysql database to amazon S3

Below is the simple code to create sql script of database on Amazon EC2 server using “mysqldump”… then upload this sql script to Amazon S3 bucket using command line S3 tool “s3cmd”… <?php $sqlbackup=”/usr/bin/mysqldump -v -u root -h localhost -r /var/www/html/backup/”.date(“Y-m-d-H-i-s”).”_db.sql -pdbusername  databasename 2>&1″; exec($sqlbackup, $o); echo implode(“<br /> “, $o); $file = “/var/www/html/backup/”.date(“Y-m-d-H-i-s”).”_db.sql”; $bucket = “s3bucketname”; exec(“/usr/bin/s3cmd  put –acl-public –guess-mime-type  –config=/var/www/html/.s3cfg   “.$file.”  s3://”.$bucket.”  2>&1″, $o); echo implode(“<br /> “, $o); ?> 0 */12 * * * env php -q /var/www/html/s3bkup/s3bkup.php > /dev/null 2>&1 (per 12 … Read more

Installing XAMPP in Linux

What is XAMPP ? XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. LAMPP (XAMPP for Linux) is very easy to install and to use – just download, extract and start. Download XAMPP http://sourceforge.net/projects/xampp/files/XAMPP Linux/ Installing XAMPP in Linux Download XAMPP Latest version from the following link http://sourceforge.net/projects/xampp/files/XAMPP Linux Currently latest … Read more

Install RED5 with java tomcat on linux

Red5 is an Open Source Flash Server written in Java that supports: Streaming Audio/Video (FLV, h264, AAC, and MP3) Recording Client Streams (FLV only) Shared Objects Live Stream Publishing Remoting (AMF) export variables in /etc/bashrc to become available for every user login or for any terminal opens. echo “export ANT_HOME=/usr/local/ant” >> /etc/bashrc echo “export JAVA_HOME=/usr/lib/jvm/java” … Read more

Crontab Command Line

Crontab Command Line 1. dump the content of the existing crontab to a file # crontab > /tmp/dump 2. echo “your lines” >> to the corntab file # echo ” 00 1 * * * /monitor_file_system 2>/dev/null” >> /tmp/dump 3. import the new crontab # crontab /tmp/dump other option…. # crontab -e It will open … Read more