Bible Verse Tweet

Earlier this week I built a quick tool that automatically updates a Twitter account with a daily Bible verse from ESV.org (@TodaysVerse). The English Standard Version Bible has a really nice API that allows anyone to pull passages directly from their site. Likewise, Twitter has a very popular API that allows developers to build programs and scripts that can update a status and much more.
Since I'm a fan of open source solutions, I'm sharing this PHP script as an example of updating Twitter using PHP-Twitter with the Twitter API. Enjoy.
Step 1: Download PHP-Twitter - This is a single class file that is "installed" by copying the file 'class.twitter.php' to your web server.
Step 2: Copy the code below to a file that is in the same directory as the 'class.twitter.php' file.
Step 3: Read the documentation in the script below as an example of how to update your Twitter account with data from a source API or database.
Step 4: Add the PHP command line code #!/usr/local/bin/php.cli) to the very first line of your PHP script and then schedule the job to run nightly in CRON.
Continue reading Comments (0) Apr.23.2009.
Open Source is not Pirates of the Caribbean’s Tortuga
Remember the pirate port-town called Tortuga in Pirates of the Caribbean? Tortuga was out of the jurisdictions of the Royal Navy and the East India Trading Company. The place really lacked order. In Tortuga, pirates got slapped and first-mates where found in less than desirable places. Many IT professionals may think of images similar to Tortuga when they hear the phrase, “open source.” However, the results reveal that open source is not a disorderly software collaboration, so the images of Tortuga don’t apply.
Now think back again with me to Port Royal. Port Royal was the heavily-guarded British Caribbean stronghold. Most of the time, order was maintained, and only a few major problems occurred such as when Lady Elizabeth was abducted by pirates. How could the Governor’s daughter be kidnapped in such a secure place? However, Port Royal maintained the very important image of being under British control regardless of real threats and problems. Now this depiction could accurately portray our more commercial-ware solutions.
So, if open source is not Tortuga and obviously not Port Royal, what, or more accurately who, best represents open source? The answer is simple - Captain Jack Sparrow and his loyal team of swashbucklers. The analogy makes sense, really. Sparrow’s wit and genius didn’t work well in Tortuga. However, he thrived in Port Royal. Likewise, open source can thrive in the enterprise. Like Captain Jack’s team, the dedicated development teams behind open source are loyal and they are motivated to do well.
This approach is very similar to the Google motto, “Don’t be evil.” Likewise, Google’s adoption of open source is well known. During the summer of 2005, Google donated $2 million to “The Summer of Code” project. This effort encouraged students to participate in open source projects. Google saw a 93% to 94% success rate with the projects they sponsored through this program. Jack Sparrow experienced similar results with his team during the Pirates trilogy.
Stable, cheaper, and more flexible solutions are being developed and deployed with open source powered building blocks across many enterprises similar to Port Royal. Early this year (January 23, 2007), Wal-Mart selected the SuSE Linux operating system for their lower-cost commodity servers. Likewise, the Web 2.0 success of Zillow.com was enabled by the open source database MySQL for its clustered environment.
Quite simply, more people working on the software yields a better product; quicker responses to problems than commercial-ware; and a more cost-effective infrastructure. Returning to our Pirates analogy, Will Turner could have waited on the British Fleet to rescue Elizabeth, but he wanted results, so he turned to Jack.
Continue reading Comments (1) Nov.28.2007.
