Monday, May 28, 2012

Monkey - a next-generation games programming language

  • Monkey is a next-generation games programming language that allows you to create apps on multiple platforms with the greatest of ease.
  • Monkey works by translating Monkey code to one of a different number of languages at compile time - including C++, C#, Java, Javascript and Actionscript.
  • Monkey games can then be run on potentially hundreds of different devices - including mobile phones, tablets, desktop computers and even videogame consoles.
  • Monkey saves you time and allows you to target your apps at multiple markets and app stores at once, potentially mutiplying sales several times over.

WebSite: http://www.monkeycoder.co.nz/




Monkey Game Development: Beginner's Guide

The first two chapters will provide you with grounding in Monkey. In each subsequent chapter you will create a complete game deployable to either iOS, Android, HTML5, FLASH, OSX, Windows and XNA. The last chapter will show you how to monetize the games so you can be commercially successful in the app development world. Do you want to quickly create games deployable to all the major desktop and mobile platforms?, if so look no further. You will learn how to utilize the highly versatile Monkey compiler to create 2d games deployable almost anywhere.

Saturday, May 26, 2012

jQuery for Designers: Beginner's Guide


Part of Packt’s Beginner’s Guide series, each chapter focuses on a specific part of your website and how to improve its design with the use of jQuery. There are plenty of screenshots and practical step-by-step instructions making it easy to apply jQuery to your site. This book is for designers who have the basics of HTML and CSS, but want to extend their knowledge by learning to use JavaScript and jQuery.



Friday, May 25, 2012

jQuery, handle event one time only - .one()

<!doctype html>
<head>
 <title>Mobile-Web-App: jQuery .one()</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
 <script>
  $(document).ready(function(){

   $("#clickme").one('click', (function(event){
    alert("'clickme' Clicked!");
   }));
    
  });
 </script>
 
</head>
<body>
<p><b>Mobile-Web-App: jQuery .one()</b></P>

<p id='clickme'>Click Me (accept one time only)</p>
</body>
</html>


handle event one time only - .one()


jQuery .live() and .die()

Similar to .bind() and .unbind(), .die() remove the handler set by .live().

<!doctype html>
<head>
 <title>Mobile-Web-App: jQuery .live() and .die()</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
 <script>
  $(document).ready(function(){
  
   //"#clickme" not yet existed
   $("#clickme").live('click', (function(event){
    alert("'clickme' Clicked! and die.()");
    $("#clickme").die('click');
   }));
    
   $("<p id='clickme'>Click Me (accept one time only)</p>").appendTo("#addhere");
  });
 </script>
 
</head>
<body>
<p><b>Mobile-Web-App: jQuery .live() and .die()</b></P>
<div id="addhere"></div>
</body>
</html>


.live() and .die()


Thursday, May 24, 2012

Web base Interactive g++ compiler - GCC Explorer

GCC Explorer (http://gcc.godbolt.org/) is a web base g++ compiler. You can enter your C++ code and view the assembly output by various version of g++ compiler.

GCC Explorer


Handle event using .live() in jQuery

jQuery .live() can be used to bind a event handler with a not yet existed DOM elements.

<!doctype html>
<head>
 <title>Mobile-Web-App: jQuery .live()</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
 <script>
  $(document).ready(function(){
  
   //"#clickme" not yet existed
   $("#clickme").live('click', (function(event){
    alert("'clickme' Clicked!");
   }));
    
   $("<p id='clickme'>Click Me</p>").appendTo("#addhere");
  });
 </script>
 
</head>
<body>
<p><b>Mobile-Web-App: jQuery .live()</b></P>
<div id="addhere"></div>
</body>
</html>


Handle event using .live() in jQuery


Related:
- jQuery .click() - click event handler
- Handle event using .bind() in jQuery
- Handle event using .bind() and .unbind() in jQuery

Next:
- jQuery .live() and .die()


Handle event using .bind() and .unbind() in jQuery

<!doctype html>
<head>
 <title>Mobile-Web-App: jQuery .bind()/.unbind()</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
 <script>
  $(document).ready(function(){
   $("#clickme").bind('click', (function(){
    alert("'clickme' Clicked! and unbind.");
    $("#clickme").unbind('click');
   }));    
   
  });
 </script>
 
</head>
<body>
<p><b>Mobile-Web-App: jQuery .bind()/.unbind()</b></P>
<p id="clickme">Click Me (accept one time only)</p>
 
</body>
</html>


Handle event using .bind() and .unbind() in jQuery


Related:
- jQuery .click() - click event handler
- Handle event using .bind() in jQuery
- Handle event using .live() in jQuery