Tips for The Everyday Web Developer TUESDAY, OCTOBER 15, 2013 HOW TO DEPLOY A HTML5 PROJECT ON GOOGLE APP ENGINE (HTTP://APPSPOT.COM) HOW TO DEPLOY A HTML5 PROJECT ON GOOGLE APP ENGINE (APPSPOT.COM) STEP-BY-STEP TUTORIAL SHOWING HOW TO USE APPSPOT.COM TO DEPLOY AND HOST YOUR HTML5 PROJECTS.
STEPS
* Signup to Google App Engine * Download, install, and setup Eclipse IDE * Deploy your application Before we get started, let me give you a few features that makes Google App Engine a really good alternative to you host your projects. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs grow. With App Engine, there are no servers to maintain: You just upload your application, and it's ready to serve your users. With App Engine, you only pay for what you use. There are no set-up costs and no recurring fees. The resources your application uses, such as storage and bandwidth, are measured by the gigabyte, and billed at competitive rates. You control the maximum amounts of resources your app can consume, so it always stays within your budget. App Engine costs nothing to get started. All applications can use up to 1 GB of storage and enough CPU and bandwidth to support an efficient app serving around 5 million page views a month, absolutely
free.
* Run your web applications on Google's infrastructure. * Google App Engine is fully-integrated development environment * You can serve your applications with your own domain (such as http://example.com), or you can use the App Engine domain for free (just like http://emersonestrella.appspot.com) * You can use server side languages such as PHP, Java, Python, and
Go.
* For storage on Google App Engine you can use the App Engine 1. SIGNUP TO GOOGLE APP ENGINE (APPSPOT) Go to http://appengine.google.com and signup to App Engine with your Google Account. After that you can create your application on Google App Engine using the Admin Console. Just click the button "Create Application"...
Fill up the form...
2. DOWNLOAD, INSTALL, AND SETUP ECLIPSE Go to http://www.eclipse.org/downloads/ and download the lasted version "ECLIPSE IDE FOR JAVA EE DEVELOPERS"... Then extract and execute the binary. Next step is to configure Google Plug-in for Eclipse. Open the Eclipse IDE and go to "Help" -> "Install new software"... Click in the "Add..." button to add a new update site and then fill the field location with one of the following urls based on the version of Eclipse you have installed: * Eclipse 3.6: http://dl.google.com/eclipse/plugin/archive/3.2.4/3.6 * Eclipse 3.5: http://dl.google.com/eclipse/plugin/archive/3.1.2/3.5 * Eclipse 3.4: http://dl.google.com/eclipse/plugin/archive/2.3.3/3.4 After you add the new update site you can go back to "Help" -> "Install new software" and select the Google Plugin Update Site from
the list...
... a list of available plugins and tools will be populated. Choose the "Google Plugin for Eclipse" and click "Next >". After that restart Eclipse and the Google Plugin will be available. 3. DEPLOY YOUR APPLICATION Create a new project on Eclipse to "hold" your application. To do that go to "File" -> "New Project" -> "Google" -> "Web Application
Project"...
Add the project files under the folder "war" that is inside your project folder on Eclipse Workspace. Before deploy your application to Google App Engine you have to link your Eclipse project to the application that you have created using the App Engine Console (Step #1). To do that you have to edit two little things in the file: "../war/WEB-INF/appengine-web.xml" * Add the same name of the application you have created on App Engine Console between the application tag... * my-application * Add the application version number between the version tag... * 0.1 Now you're ready to deploy your application. Sign in with your Google Account by clicking in the bottom right button "Sign in to Google"... And finally, click on the Google button in the menu bar and choose the option: "Deploy to App Engine"... After that the upload process will start and in a few seconds your application will be available on Google App Engine. That is all. Hope that help you guys who are wondering how to use Google App Engine. If you find any problem during this process, please leave a comment. Thanks! Posted by Unknown at
3:17 PM
No comments:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
Labels: AppSpot
, Deploy
, Eclipse
, Google
, Google App
Engine
,
HTML5 , IDE
, Plugins
, Web
Application
SUNDAY, MARCH 31, 2013 FOCUS ON PROCESS, NOT OUTCOME FOCUS ON PROCESS, NOT OUTCOME BY DEFAULT WE TEND TO BE FORWARD-LOOKING, GOAL-PURSUING,
RESULTS-FOCUSED.
BUT FOCUSING ON PROCESS RATHER THAN OUTCOME IS A MUCH BETTER
STRATEGY. WHY?
* It eliminates the noise of external factors. * It encourages experimentation. * It lets you enjoy the process more. * And you also enjoy and benefit more from the outcomes.
by Tom Murcko
Posted by Unknown at
5:51 PM
2 comments:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
Labels: goal
, outcome
, process
TUESDAY, MARCH 5, 2013 HTML5 SHAPE PUZZLE - HTML5 VERSION OF THE GAME THE PRESCHOOL KIDS
LOVE
HTML5 SHAPE PUZZLE - HTML5 VERSION OF THE GAME THE PRESCHOOL KIDS
LOVE
Including music, sound, touch support, responsive design, and 20
stages
HTTP://SHAPEPUZZLE.APPSPOT.COM HTML5 Shape Puzzle Game Posted by Unknown at
5:12 PM
No comments:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
Labels: APIs
, audio
, Audio API
,
Fullscreen
, Game
, game engine
,
HTML5 , HTML5
Game ,
image puzzle
,
Javascript
, Puzzle
, Shape
Puzzle
SUNDAY, MARCH 3, 2013 HOW TO GRAB YOUTUBE PLAYBACK VIDEO FILES HOW TO GRAB YOUTUBE PLAYBACK VIDEO FILES STEP-BY-STEP TUTORIAL SHOWING HOW TO GET ALL AVAILABLE VIDEO SOURCE FILES FROM A VIDEO ON YOUTUBE USING ONLY JAVASCRIPT. NO PLUGINS AND/OR SERVER SIDE SCRIPTS ARE REQUIRED. First of all I want to list here a few benefits from being able to do
that.
* You can download any video from YouTube without plugins or server-side scripts. You just need a browser. * You can use YouTube as an encoder. Let's say you have to convert a
FLV video to MP4 or
WebM.
* You can set a cron job to run once a week to download all available video files from any channel. * You can play any YouTube video out of the YouTube player
(not recommend).
* You can play YouTube videos on HTML5 canvas and go crazy! Check this out at: http://videopuzzle.possum-cms.com
HOW TO DO IT
Live demo: http://keepvideos.possum-cms.com or http://keepvideos.appspot.com Source code: https://github.com/edse/keepvideos STEP 1: EXTRACT YOUTUBE VIDEO ID FROM URL var url = 'http://www.youtube.com/watch?v=yntfUjenls0'; var video_id = ''; var regExp = /.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)(*).*/; var match = url.match(regExp);
if(match){
video_id = match;
}
STEP 2: REQUEST YOUTUBE PLAYBACK FILES INFORMATION Easy as pie. Just make an Ajax request to: http://www.youtube.com/get_video_info sending the desired video ID...
Step 3: Parse the response data information from YouTube The information that we are looking for is "url_encoded_fmt_stream_map". This variable contains all streams available for the requested movie.
function(data) {
var info = {};
parse_str(data, info); var streams = explode(',', info);
...
Step 4: Trick. Parse again each one of the streams YouTube encode the information twice, so you have to parse it again. There is other trick here, You also have to add a signature value on each stream url, otherwise it won't work.
var results = ;
for(var i=0; i}
Step 5: Have fun!
By now you should have a variable "results" with all YouTube video files available for the requested movie. You can do whatever you want with the files. For example: display a link, play the video, grab snap shots of the video... Have fun! To display the a link for each video file available... if(results.length > 0){ $.each(results, function(index, value) { $('#results').append(''+value.quality+' - '+value.type');
});
}
Posted by Unknown at
9:43 AM
19 comments:
Email This
BlogThis!
Share
to Twitter
Share
to Facebook
Share
to Pinterest
Labels: 3gpp
, Download
, download
youtube video
,
HTML5 , mp4
, OGG
, video
, video files
,
video formats
,
webm , YouTube
THURSDAY, OCTOBER 18, 2012 HOW TO PLAY A VIDEO ON HTML5 CANVAS TAG HOW TO PLAY A VIDEO ON HTML5 CANVAS TAG STEP-BY-STEP TUTORIAL ON HOW TO PLAY A VIDEO ON HTML5 CANVAS TAG
LIVE DEMO
First you need a video file. Actually, two. One video file in ogg format (for Chrome and Firefox) and the other one in mp4 format (for Safari). To get any video in these file formats you can use a website like www.online-convert.com or www.mediaconverter.org . Once you have the video files, the next step is to create a simple HTML page with one canvas tag, and one video tag. Just like the code