Dot: Puzzles for smart masses

I have always been interested in games, just for fun, nothing serious. A game is IMHO the most difficult piece of software to write. Think for a second. It needs support for user input devices (mouse, keywords, gamepads, etc.), graphics (2D or 3D), sounds and music, physics, AI, networking when playing with more players and it has to perform really, really fast. That’s not the typical PHP web, is it? Today, I would like to present my first really small and silly game, and probably the last one :) for iOS/Android and the technologies behind it. Hope you like it.
Continue reading

Javascript Apps, APIs, AJAX and CORS

If you are developing Javascript applications that make AJAX calls directly to an API that you don’t control, you will probably experiment issues with CORS. If you take a look to your console, the following message will appear:

XMLHttpRequest cannot load http://foo/bar. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8100’ is therefore not allowed access.

Continue reading