Consider the scenario of a PHP script which can be run for a period of time, stopped, and continue its task later on. A common necessity for such a script may be to detect when the script is terminated, and perform some functions at that time. This can be accomplished by having the script capture… Continue reading Capturing Termination Signals in PHP
Day: November 18, 2011
Installing ApacheBench without Apache on Amazon’s Linux
Having recently switched to a setup with only nginx (and no apache), I found myself wanting to run some tests. As nice as siege is, I rather like ApacheBench (ab). However, I really didn’t want to install all of Apache just to get ab. Quick and Easy Way On Amazon’s Linux, the ab binary can… Continue reading Installing ApacheBench without Apache on Amazon’s Linux
Producing Hydrogen Gas using Sodium Hydroxide and Aluminum
One of my favourite chemistry demonstrations is the combustion of hydrogen in a balloon. It has all the qualities desirable in a flashy experiment, and the actual execution is exceptionally easy – the difficulty, however, comes down to obtaining the hydrogen gas if none is available. This procedure is meant to be conducted in a… Continue reading Producing Hydrogen Gas using Sodium Hydroxide and Aluminum