I like using Now-Reading to track what books I’m currently reading, have read and want to read on my website. Unfortunately the plugin’s author has been too busy of late to update the plugin and one of the recent updates to WordPress caused Now-Reading’s admin menu to break (when using the single menu option). PHP is not a programming language that I’m really familiar with but I did some poking around in Now-Reading’s code and found if I changed this snip of code:

	if ( $options['menuLayout'] == NR_MENU_SINGLE ) {

		add_menu_page('Now Reading', 'Now Reading', 9, 'admin.php?page=add_book', 'now_reading_add');

		

		add_submenu_page('admin.php?page=add_book', 'Add a Book', 'Add a Book',$nr_level , 'add_book', 'now_reading_add');

		add_submenu_page('admin.php?page=add_book', 'Manage Books', 'Manage Books', $nr_level, 'manage_books', 'nr_manage');

		add_submenu_page('admin.php?page=add_book', 'Options', 'Options', 9, 'nr_options', 'nr_options');

To read like this:

	if ( $options['menuLayout'] == NR_MENU_SINGLE ) {

		add_menu_page('Now Reading', 'Now Reading', 9, 'add_book', 'now_reading_add');
		
		add_submenu_page('add_book', 'Add a Book', 'Add a Book',$nr_level , 'add_book', 'now_reading_add');
		add_submenu_page('add_book', 'Manage Books', 'Manage Books', $nr_level, 'manage_books', 'nr_manage');
		add_submenu_page('add_book', 'Options', 'Options', 9, 'nr_options', 'nr_options');

Then Now-Reading’s single admin menu worked properly again.

py2avi is a python script I wrote to make it easier for me to transcode video files from MKV to AVI while not forgetting to extract the subtitles from the MKV file. On the off chance that somebody out there in Internet-land has a similar need, I’m releasing the script under the GPL 2.0. So if you want/need it, take it and have fun with it!

You know your morning is shot when it takes you half an hour and multiple attempts to drink from an empty coffee mug; before you realize the cup is empty and you need to go get coffee.

Five years, one month and three days ago, I bought myself a Canon PowerShot S500 Digital ELPH digital camera. Around this time last year, I gave the camera up for dead but never got around to chucking it out and now I’m very glad I never did. Then around a month or two back, I heard via SEB that there was a recall on some Canon cameras where they would fix the camera at no cost even if the waranty had expired. I checked the service notice and saw my camera was covered by it.I contacted Canon, followed their instructions, shipped my camera to them and had it back in my hands (and working!) in about 2 weeks. Very nice!