Dreamstime

Tuesday 29 November 2016

Integrating Google's API Client Library Into The RavenPlus Source Code Repository

There is this problem with us programmers. We will not complain and will happily chug along when confronted with the toughest programming challenge ever. But when it comes to documenting our work, we will make excuses, drag our feet and create various alibi. I remember this joke that I've heard about programmers some 20 years ago:

"if it is so hard to write, it must be even harder to describe"

Yes, we programmers understand this perfectly. But still there should be no excuses for not documenting one's work; and this is something that I should bear in mind - always.

Unfortunately, I do get sloppy sometimes. Case in point:

I briefly mentioned that I might be integrating the "Google API Client Library for Python version 1.2" into RavenPlus some 11 months ago. Well in the end, I actually did.

Problem is now I can't remember why I made this decision. I can faintly recall problems I had between 'py2exe' and the newly installed libraries needed for Google OAuth2 authentication (most of them is installed, by default, in the '.egg' format).

Is this the main reason? I can't remember. If only I have written the reason down earlier - somewhere.

New Sub-Directory

Google's API Client Library Within the Raven+ Source Code Repository

Integrating the Google API Client Library for Python into RavenPlus is rather simple. All I did was to bung it under the blog publishing sub-system of RavenPlus at 'zoundry/blogpub'. Naming the new directory as 'blogger' seems appropriate and all Google Blogger's OAuth2 related modifications in RavenPlus (by me) are placed here and below its sub-directories; and this includes the picture uploading capabilities to Google's PicasaWeb ('zoundry/blogpub/blogger/gdataExtend' is where the modified gdata API resides).

The directories 'apiclient', 'oauth2client' and 'uritemplate', circled in RED in the picture above, are from the Google API Client Library itself. As mentioned previously, I only used a subset of this Client Library from Google.

Tuesday 15 November 2016

Zebra Doves - From Hatchlings To Fledglings

A pair of Zebra Doves nested on one of my many bougainvillea plants last month October 2016. A well chosen site in my opinion with shelter from the sun and rain (courtesy of my front porch) and my dog out front keeping the stray cats at bay. The nest was well placed too at about 7 feet high off the ground. Like most bird nests it is made of twigs, with size measuring about 3" across - looks a bit undersized compared to the parent bird, in my opinion. The gaps between these twigs however made the nest look rather 'half-built'. But still, it did get the job done; it managed to raise 2 chicks.

Zebra Dove Hatchlings

Owing to its 'half-built' appearance, I didn't realised that the nest was ready until I saw a Dove sitting in it one day. Eggs had been laid a few days earlier without me knowing - I can't see because of the nest's height.

About 11 days later this is what I saw - a baby Zebra Dove:

A Once Day Old Zebra Dove Hatchling

I think another chick is partially visible, hidden by the twigs that made up the nest (under the beak of the parent Dove if you look closely).