Author Archive for anoopsachari
a holistic web developer , movie buff and technical blogger from queen of arabian sea.
Capture Keystroke Using Jquery.js
Share Capture keystroke using jquery.js . Download and include jquery.js before you use the code . The code check the ASCII value of the key pressed . $(this).keydown(function(e) { if (e == null) { // for IE keycode = event.keyCode; } else { // for mozilla keycode = e.which; } if(keycode == 27){ // write [...]
A Function To Rotate Image using PHP
Share As you all know we use GD library in php for creating thumbnails of images . I found an interesting function that would help you to rotate image as you wish . function rotateImage($sourceFile,$destImageName,$degreeOfRotation) { $imageinfo=getimagesize($sourceFile); switch($imageinfo['mime']) { //create the image according to the content type case "image/jpg": case "image/jpeg": case "image/pjpeg": //for IE [...]
Twitter OAuth Integration using PHP
Share This article would help you to integrate twitter using OAuth . I had to implement twitter integration using OAuth but couldn’t find a good tutorial but did it successfully after long research. Thus I am sharing you step by step explanation on it . Step 1 : Login to your twitter account and register [...]
How to get Latest Tweet using php.
Share Integrating blogs with twitter was a daily routine for me . Thus i decided to write a function that would return you the last tweet of a particular twitter user . It is a simple self explanatory code . Note : Change $username to your account before you use . Usage echo "Latest Tweet [...]
Update Your Gtalk Status Message With Your Latest Tweet
Share Hai friends i found an interesting application written in python that would update your gtalk status with your last tweet all you have to do is . Step 1 : Login to http://twitter2gtalk.appspot.com/ Step 2: Click on the settings link at top-right corner Step 3: Submit your gtalk and twitter account details and check [...]
Thumbnail Generation In Symfony Using jsThumbnailPlugin
Share Trying to generate thumbnail in symfony ? well there is a great plugin named jsThumbnailPlugin that would help you to do the same . The plugin create the thumbnails using GD library and uses the symfony cache system to cache the thumbnails . Its simple to configure and use . Step 1 : download [...]
Thumbnail Generation made easier using Image-Resize Class
Share The PHP class is meant to resize images keeping the aspect ratio using GD library . The class can handle jpg , jpeg , gif and png . Its simple to use , you just need to specify the image path and dimensions . Usage : include("resize-class.php"); $resizeObj = new resize(‘sample.jpg’); $resizeObj -> resizeImage(200, [...]
Resolve Conflict between Jquery.js and Prototype.js
Share How to resolve conflict between jquery.js and prototype.js This tutorial would teach you to resolve the coflict between jquery and prototype when used together in same file . Its a simple tip to implement . 1. Create a noconflict.js file and include the following code in it . jQuery.noConflict(); var $j = jQuery; 2. [...]
Ajax Tutorial for Beginner’s
Share Ajax is shorthand for Asynchronous JavaScript and XML. It allows client side of an application to communicate with the server side of the application. Using Ajax an application can retrieve data from the server asynchronously in the background without refreshing the existing page. How usual AJAX script works * Some action activates the event [...]






