Category Archives: Coding

All kinds of Programming.

Php array of iso 3316 country list

By | February 16, 2013

Php applications often need to present the user with a list of countries to select his home country from. The iso 3316 country list contains the name of the countries along with the 2 letter codes. Check out the following project on github that contains the uptodate list of the countries in various formats. Here… Read More »

Websockets with php – tutorial on basics

By | February 12, 2013

Websockets Websockets is a new feature available in browsers as a part of the Html5 specs that allows javascript clients to open bi directional socket connections to a server. Currently all major desktop browsers support the api. Websocket is not an independant socket protocol, but is based on the TCP protocol just like HTTP. Therefore… Read More »

Revolute joint in box2d in javascript

By | January 26, 2013

Revolute Joint Revolute joint is a useful joint in box2d that allows 2 bodies to be pinned together at a point without restricting rotation. The joint can be made between 2 dynamic bodies or between a static and dynamic body. The pendulum on left is a static circle joined to dynamic rectangle. Whereas the cart… Read More »