Daily Archives: August 22, 2014

A simple example of how to set up a PHP-MySQL application in IBM Bluemix (including the code you need)

While PHP is not one of the standard runtimes provided in the Bluemix catalog, the sample code in this git repo (
https://hub.jazz.net/git/u27275/blm-hello-world-php/) will show you how to bring your own buildpack, and this buildpack will allow you to have PHP code running in Bluemix that also can talk to a MySQL database running in Bluemix.

Among the files there is a PDF providing detailed instructions on how to set things up in IBM Bluemix.

P.S. This is sample code.  See the licence file in the repo for more details.

Advertisements

How much sleep do we need? Seven hours? Eight?

This WSJ article makes the case that you can probably get by with less than eight. Given the audience of the Wall Street Journal, I am not surprised they would have such an article.

For more reasonable people, this article in Real Simple (So Now We Only Need 7 Hours of Sleep? Not So Fast) makes more sense.

As I get older I lean towards getting more sleep, but to each their own.

Regardless, the weekend is coming up. Get some sleep.

P.S. The image, from the wikipedia section on sleep, shows the downside of lack of sleep.