I have Cloud Power

Amazon Web Services AWS is an IaaS platform and provides maximum freedom for developers in choice of the OS, middleware and development environment. Google App Engine + Google Apps Google App Engine is used as SaaS, it provides free limited resources (disk space and bandwidth), GAE supports programming languages – PHP, Python and Java. Facebook … Read more

Installing Apache, MySQL, PHP in CentOS 5.5 on Rackspace Cloud

Most of cloud users prefer Rackspace Cloud for its better service and cost effectiveness… All commands are performed as root to install Apache, MySQL, PHP in CentOS 5.5 Server on Rackspace Cloud. Install Apache # sudo yum install httpd mod_ssl Configure ServerName # sudo /etc/init.d/httpd start Remove Error Starting httpd: httpd: Could not reliably determine … Read more

The best way to consume API

    <?php require_once(‘lib/nusoap.php’); $url = “http://www.hotelscombined.com/api/wsdl/SearchSoap.wsdl”; // web service URL $client = new nusoap_client($url, false); // soap client to consume API // XML payload from “soapUI” to send over wsdl server $xmlRequest='<soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:tem=”http://tempuri.org/” xmlns:hot=”http://schemas.datacontract.org/2004/07/HotelsCombined.WebServices.Version4″>    <soapenv:Header/>    <soapenv:Body>       <tem:HotelSearch>          <!–Optional:–>          <tem:request>             <hot:ApiKey>?</hot:ApiKey>             <hot:Checkin>?</hot:Checkin>             <hot:Checkout>?</hot:Checkout>             <hot:DisplayCurrency>?</hot:DisplayCurrency>             <hot:Guests>?</hot:Guests>             <hot:HotelID>?</hot:HotelID>             <hot:LanguageCode>?</hot:LanguageCode>             <hot:Rooms>?</hot:Rooms>             <hot:TimeOutInSeconds>?</hot:TimeOutInSeconds>             <hot:UserAgent>?</hot:UserAgent>             <hot:UserID>?</hot:UserID>             <hot:UserIPAddress>?</hot:UserIPAddress>          </tem:request>       </tem:HotelSearch> … Read more

How to check RTMP source stream is live or not?

Dear Friends, You can check RTMP Source is live or not using socket programming, but that will not give you exact output. Today I have tried Linux utility “rtmpdump” to test & check RTMP Source it produced quite interesting results on command line…. # rtmpdump -v -r rtmp://giraldatvlivefs.fplive.net/giraldatvlive-live/stream001 -o /tmp/rtmp-checker.log <?php /*  *  * RTMPChecker … Read more

SaaS built using a PaaS (Google App Engine) and using IaaS (Amazon EC2)

SaaS = PaaS + IaaS Tools for Development, Testing and Implementation: * Amazon Web Services (AWS) * Google App Engine (GAE) * Google Chart Libraries * Eclipse IDE VaR Cloud Presentation SVNLabs References: Google AppEngine: http://code.google.com/appengine/ Amazon EC2: http://aws.amazon.com/ec2/ Google Chart: http://code.google.com/apis/chart/ “A lamp does not speak. It introduces itself through it’s light. Achievers never … Read more

JSP S3Upload

JavaScript is good alternative to bypass AWS bucket policies 😉 <%@ include file=”config.jsp” %> <%@page import=”java.util.Calendar”%> <%@page import=”java.util.Date”%> <%@page contentType=”text/html” pageEncoding=”UTF-8″%> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”><head> <title>S3 Upload – JSP Demo</title> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″> <script src=”sha1.js”></script> <script src=”webtoolkit.base64.js”></script> <script src=”script.js”></script> <script> function uploadS3() { var awsid = ‘<%=awsAccessKey %>’; … Read more

fbsocialmarketing.com

FB Social Marketing is a Social Media Marketing company specializing in the development of Facebook Fan Pages for your business. Be sure to check out complete line of training videos. I have partnered with Shelle Kind of fbsocialmarketing.com and we have released the Amazon S3 / EC2 Solution for Facebook fanpage apps.

Save Facebook Profile Photo

<?php $facebook_uid = ‘100000296428149’; $sourcecode = save_facebook_profile_photo($facebook_uid); print_r($sourcecode); file_put_contents(“images/”.$facebook_uid.”.jpg”, file_get_contents($sourcecode[‘url’])); //this is name of new file that i save function save_facebook_profile_photo( $id ) {     $options = array(         CURLOPT_RETURNTRANSFER => true, // return web page         CURLOPT_HEADER => false, // don’t return headers         CURLOPT_FOLLOWLOCATION => true, // follow redirects         CURLOPT_ENCODING => “”, // handle all encodings         CURLOPT_USERAGENT … Read more

How to Setup Elastic Load Balancing on AWS