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

Amazon S3 & Facebook Fanpage app

I want to link Amazon S3 https object like “https://s3.amazonaws.com/bucket/index.html” to facebook iframed fan page… But it returned error…. 405 Method Not Allowed Code: MethodNotAllowed Message: The specified method is not allowed against this resource. ResourceType: OBJECT Method: POST RequestId: XXXXXXXXXXXXX HostId: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX OR PreconditionFailedAt least one of the pre-conditions you specified did not holdBucket … Read more

How to check Facebook Application is Alive or Dead?

<?php include(“facebook.php”); $APPLICATION_ID = “”; $APPLICATION_SECRET = “”; $facebook = new Facebook(array( ‘appId’ => $APPLICATION_ID, ‘secret’ => $APPLICATION_SECRET, ‘cookie’ => true )); $fql = “SELECT api_key FROM application WHERE app_id=” . $APPLICATION_ID; $param = array(  ‘method’ => ‘fql.query’,  ‘query’ => $fql,  ‘callback’ => ” ); $fqlResult = $facebook->api($param); if(isset($fqlResult[0][‘api_key’]) && $fqlResult[0][‘api_key’]!=””)   echo “This app is … Read more