Ronnie

Written on 19 February 2014, 11:07pm

Tagged with: , , , ,

Ronnie O’Sullivan is one of my favorite sportsmen. But it’s only recently – after he won the World Masters – that I found 2 interesting things about him:
1. that he wrote an autobiography book
2. that running is a very important part of his life
ronnie running 300
Here are some interesting quotes from the first two chapters of his autobiography book:
(more…)

Random things that keep me busy

Written on 17 February 2014, 06:02pm

Tagged with: , , ,

1. Password protecting a subdirectory is not so easy if you’re using WordPress. Here is a discussion and 2 possible solutions.

At the top of /.htaccess add these 2 lines:
ErrorDocument 401 ./error.html
ErrorDocument 403 ./error.html

2. Force Chrome to re-prompt for credentials of a Basic Auth password protected directory – solution found here:

It seems chrome will always show you the login prompt if you include a username in the url e.g.
http://username@mysite.com

3. An old post that I forgot to publish 3 years ago. Found it in the drafts: 3 things about cfcache

My own fitness tracker

Written on 15 February 2014, 11:05pm

Tagged with: , ,

The awkward Tanita incident in the beginning of February inspired me to build my own fitness data input + visualising tool. After some nights of work, they are done; and I am pretty happy with the result. Screenshots and description below.

1. Background

I spent some time choosing the new repository for my data. After considering multiple options (like MongoDB, Google Fusion Tables, Dropbox xml, AWS), I chose a MySQL database + periodic Dropbox backup.
So, the measurement data was migrated from Tanita XML to MySQL. Funny enough, shortly after I started to work on this tool, my shared hosting provider had a data corruption incident (for the first time in 5 years since I am using them), and the database had to be restored. This is just another reminder to always backup 🙂
(more…)