Begining HTML5 game part 2

To continue Begining HTML5 game part 1 . Download images for this tutorial . https://docs.google.com/open?id=0B3wmdk4k7b_-V3Q1TTVIWW5LaWM (Save s to get zip package) We using simple html5 game framework for develop a card game . Maybe blackjack First, you need create Struct Folder to easy manager when your project become  complex  In WebContent-> index.html : Body part, add…

Read More

Begining HTML5 game part 1

OK. Let’s start . Do you know HTML ? Create file game.html with content : <!DOCTYPE html> <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″> <title>Insert title here</title> </head> <body> </body> </html> Adding some javascript as framework <!DOCTYPE html> <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″> <title>Insert title here</title> <script type=”text/javascript”>     function update()     {       …

Read More

[How to] Install resin webserver on centos

Resin is very strong webserver/servlet container  . It really fast and strong ,  it may be keep ~10k  concurrent connection  . This tutorial will help you install Resin as service on Centos 1. Install jdk (best is  jdk7 , skip this step if you already have JDK [5,6,7]) http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jdk-7u2-linux-x64.rpm     wget http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jdk-7u2-linux-x64.rpm     rpm -i…

Read More

Cake Bake – Cake Console

Some quick tip to use cake bake In normal, you will type :  $cake bake After that, you will answer each question of cake bake as what do you generate (D/M/V/C/P/Q …) … how to gen. We have a quickly statement to do that :  Want to direct generate models $cake bake model Want to…

Read More

    Select Top Percent Records MSSQL, MySQL

    Returning TOP records Microsoft SQL Server – SELECT TOP 10 column FROM table My SQL – SELECT column FROM table LIMIT 10 Returning TOP PERCENT Records Microsoft SQL Server – SELECT TOP 50 PERCENT * FROM table MySQL – SELECT @percentage := ROUND(COUNT(*) * 50/100) FROM table;   PREPARE STMT FROM ‘SELECT * FROM table LIMIT ?’;  EXECUTE…

    Read More