Gradually move REST API

Use Apache mod_rewrite to move an API call by call to another implementation. Loading the proxy_http module If you tried to proxy rewrite and got the following error in the log file, chances are that the proxy_http_module was not loaded: AH01144: No protocol handler was valid »

AngularJS Eclipse XDEBUG

I am using XAMPP Version 5.6.21 for Windows and Eclipse MARS for PHP Developers. In order to enable the XDEBUG communication, I had to make the following changes to the php.ini file: [xdebug] zend_extension = "C:\xampp\php\ext\pgp_xdebug.dll" xdebug.remote_enable = 1 xdebug. »

Javascript robot simulator

I have created a differential drive robots simulator in Javascript. See it in action here. What is it? A differential drive robot has two wheels, that can run independently. If the two wheels go at the same speed, the robot goes straight. If one wheel is going one way, and »

To clone, or not to clone

Cloning or deep copy of objects is not supported directly in the JavaScript language, so you have to rely on a third party library, or roll your own. You may object and say that there are the Object.create, and Object.assign functions that can do that, right? Wrong. They »

Extensible JavaScript function

For the book I am writing, I needed to create a JavaScript function that can tell if a chess move is legal, or not. Since there are so many ways the pieces can move, this method could potentially be quite messy with lots of nested if-statements, or calls to other »