How To Write Good

Found this on the internetz – a nice litlle basic check list.

1. Avoid Alliteration. Always.

2. Prepositions are not words to end sentences with.

3. Avoid clichés like the plague. They’re old hat.

4. Comparisons are as bad as clichés.

5. Be more or less specific.

6. Writes should never generalize.

Seven: Be consistent!

8. Don’t be redundant; don’t use more words than necessary; it’s highly superfluous.

9. Who needs rhetorical questions?

10. Exaggeration is a billion times worse than understatement.

PHP and Redis

I’m on an old Ubuntu version, and just needed something to dump a Redis value as JSON.
sudo -s
git clone https://github.com/nicolasff/phpredis
cd phpredis
aptitude install php5-dev -y
phpize
./configure && make && make test && make install
echo "extension=redis.so" > /etc/php5/conf.d/20-redis.ini
service apache2 restart

And then
<?php
#
# Serves the JSON clob from Redis
#
header('Content-Type: application/json');
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
$data = $redis->get('movie_database');
echo $data;
?>