Traveling

Yea finally got to do some travel and haven’t been update website been long time.

This time I went to Taiwan again. I went to Tai Zhong > Qing Qing Cao Yuan > Hualien > Taipei .

More

IE again!

I was using jplayer for video stream service. It is a nice jquery plugin for you to run videos on HTML 5.
However, I was not able to play with IE 8 using latest plugin.

I google and found this problem

$(document).ready(function(){

$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4v: "http://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v",
ogv: "http://www.jplayer.org/video/ogv/Big_Buck_Bunny_Trailer.ogv",
webmv: "http://www.jplayer.org/video/webm/Big_Buck_Bunny_Trailer.webm",
poster: "http://www.jplayer.org/video/poster/Big_Buck_Bunny_Trailer_480x270.png"
});
},
<strong>swfPath: "http://www.jplayer.org/2.0.0/js",</strong>
supplied: "webmv, ogv, m4v",
size: {
width: "640px",
height: "360px",
cssClass: "jp-video-360p"
}
});
$("#jplayer_inspector").jPlayerInspector({jPlayer:$("#jquery_jplayer_1")});
});

The main issues is swfPath: “http://www.jplayer.org/2.0.0/js”  IE 8 is not able to support the latest player.

Again microsoft let us down….

Mobile Game using HTML 5

It is a break throught that mobile browsers are able to play games like app. However there is still issues with performance.
But I still believe in near future it is possible to play on browser which bring users to one single platform.

Play the demo

Read more from:

http://mobile.smashingmagazine.com/2012/10/19/design-your-own-mobile-game/

Html 5 Canvas

Canvas has been around for sometime, however, bloody IE do not support them. But people out there is trying to get a solution to it by using JS

1)http://fabricjs.com/ - Fabric js. So far it support most browser and IE 7 – 8. However, some bugs in transformations in IE 8. (can microsoft stop doing browsers damn!)
2)http://excanvas.sourceforge.net/ - excanvas far most supported with IE
3) http://raphaeljs.com/ - mainly SVG however use a different framework.
4) http://www.pixastic.com/ 0 very powerful Javascript which I did use in www.matchwing.com again do not support IE

Php login to secure site.

Lately have did a project on login site to download files. Here is the coding:

on index.php

&lt;?php

// Inialize session
session_start();

// Check, if user is already login, then jump to secured page
if (isset($_SESSION['username'])) {
header('Location: securedpage.php');
}
?&gt;

More