Tried out asciinema and encountered the env: python2: No such file or directory error. Asciinema must be attempting to use python from the wrong symlink. To create it,
sudo ln -s /usr/bin/python /usr/bin/python2
(assuming /usr/bin/python is python 2.x). If you dont know where python and it is not located in /usr/bin/python, run which python. To find out which python you have, run python --version. Combining both commands, you could run:
For some odd reason, I was unable to start the stats-rrdb daemon (it said that it started but it would die immediately afterwards).
After tailing the logs, I found this slightly cryptic error message.
Server status update thread exception: Unexpected rrdb metric block pos 648 pos_ts: 1379698992 (expected from tuple: 1379697192)
I attempted changing some configs to no avail, so the last resource was to reset the metrics. Given that this was on my VM and no important metrics were being recorded for me, I resorted to clearing all the data (don’t do this in your production environment, unless you don’t care about losing all your data).
sudo rm -rf /var/stats-rrdb/*
After clearing all the data, I was able to restart the stats-rrdb. Best of luck!
I decided to move over my personal blog entries outside this blog. Following good migration procedure, I set up 301 Redirects. At first, my dumb self cranked up vim and created a .htaccess, then I remembered that this blog runs on Heroku, which is probably not using Apache (for obvious scalability reasons). After a quick heroku ps, I can see that the ‘thin’ application is serving my blog. thin --version reveals that I am running thin 1.2.6 codename Crazy Delicious.
Needless to say, htaccess wont work, so I must resort to using rack-rewrite.
I add the gem at the end of my Gemfile:
Then I add my rewrite rules to config.ru (after the $root line)