Creating an HTML5 Paint App

HTML5 Paint App
There are several apps available today that allow one to draw freely on your touch screen smartphone. Be it to take notes, annotate photographs, capture signatures digitally or to play games like the popular OMGPOP Draw Something App.

In this article we’ll explore a way to achieve this using the HTML5 canvas element and a little JavaScript.

Continue reading

Creating a Java Daemon (System Service) for Debian using Apache Commons Jsvc

Creating a Java Daemon for Debiandaemon is a computer program that runs as a background process, executing tasks on a predefined schedule or in response to particular events, or in response to requests for information or services from other programs.

To start up a Java program as a daemon using Jsvc, we’ll need to do a few things:

a) Implement the Apache Commons Daemon interface.

b) Install Jsvc by downloading and compiling the source (C) or via the command line with the sudo apt-get install jsvc command.

c) Create a bash shell script to launch the daemon and manage the basic set of daemon controls, namely: startstop restart. Others include reload status.

Continue reading

How to Add a Custom Eclipse Launcher to Unity

Eclipse Unity Integration

Anyone that has worked with Eclipse on Ubuntu has undoubtedly experienced this particular annoyance.

As Eclipse isn’t really ever “installed” but just executed, it is never registered as an application on the system and so is completely absent from the menu system etc..

Odds are, if you’re reading this that you too believe that there must be a better way than creating that sloppy desktop shortcut…

Continue reading

Extending AndEngine’s GenericPool to Safely Add and Remove Bodies from Box2D PhysicsWorld

Anyone delving into Android game development with Box2D physics will at some time struggled with seemingly random crashes when adding or removing bodies from the physics world. The instinctive thing to do is to destroy the object when some type of event has occurred, such as a touch event or collision in the physics simulation, however simply removing entities from the simulation can cause the simulation to crumble.

In this article I’ll go through my preferred method of safely adding and removing objects from the physics simulation with the minimum performance hit.

Continue reading