Skip to main content

Posts

Showing posts from October, 2010

CURL

cURL Wikipedia page cURL tutorial: Using cURL to automate HTTP jobs 1 - Update your Facebook status Wanna update your facebook status, but don't want to go to facebook.com , login, and finally being able to update your status? Simply save the following code on your server, define the variables, and voilĂ ! <?PHP /******************************* * Facebook Status Updater * Christian Flickinger * http://nexdot.net/blog * April 20, 2007 *******************************/ $status = 'YOUR_STATUS'; $first_name = 'YOUR_FIRST_NAME'; $login_email = 'YOUR_LOGIN_EMAIL'; $login_pass = 'YOUR_PASSWORD'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ' https://login.facebook.com/login.php?m&next=http%3A%2F%2Fm.facebook.com%2Fhome.php' ); curl_setopt($ch, CURLOPT_POSTFIELDS,'email='.urlencode($login_email).'&pass='.urlencode($login_pass).'&login=Login'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch,...

Cloud Certification Courses

http://hubpages.com/hub/Best-Cloud-Computing-Certifications-Courses -- "You see things; and you say 'Why?'; But I dream things that never were; and I say 'Why not?' "- George Bernard Shaw ----------------------------------------------------- Best Regards Pavan Kumar N, Project Engineer (HBCG), C-DAC's R&D, Pune-411007 Mob: 9595714186 http://twitter.com/simplypavi

Google Code University

http://code.google.com/edu/ -- "You see things; and you say 'Why?'; But I dream things that never were; and I say 'Why not?' "- George Bernard Shaw ----------------------------------------------------- Best Regards Pavan Kumar N, Project Engineer (HBCG), C-DAC's R&D, Pune-411007 Mob: 9595714186 http://twitter.com/simplypavi

for fullscreen in flash

function  toggleFullScreen ( ) {      if ( Stage [ "displayState" ]  ==  "fullScreen" ) {          Stage [ "displayState" ]  =  "normal" ;      } else {          Stage [ "displayState" ]  =  "fullScreen" ;      } } -- "You see things; and you say 'Why?'; But I dream things that never were; and I say 'Why not?' "- George Bernard Shaw ----------------------------------------------------- Best Regards Pavan Kumar N, Project Engineer (HBCG), C-DAC's R&D, Pune-411007 Mob: 9595714186 http://twitter.com/simplypavi

To Print a movieclip in actionscript2.0

on (press) { // 72 pixels = 1 inch // A4 printable height = 10.5 inches approx var printableHeight = 10.5; var objHeight = _root.targetMovieClip._height; var objWidth = _root.targetMovieClip._width; var numberOfPages = Math.ceil((objHeight/72)/printableHeight); var pixelsPerPage = 72*printableHeight; trace(numberOfPages) var myPrint:PrintJob = new PrintJob(); myPrint.start(); for(i=0;i<numberOfPages;i++) { yStart = i*pixelsPerPage; yEnd = ((i+1)*pixelsPerPage) - 1; printArea = {xMin:0, xMax:objWidth, yMin:yStart, yMax:yEnd}; myPrint.addPage(_root.targetMovieClip,printArea); } myPrint.send(); delete myPrint; }