The singleton pattern is a common pattern used to make resources exclusive in that there is one of a particular type of resource. The most common usage of this is database connectivity. Typically, an application only wants a single connection to a single database server at any given time. This is where the singleton pattern comes in.
Read More ...A web service is a way for systems to communicate over a network. They can be as simple as an API (e.g. Google Maps) or as complex as a brokered system that handles transactions for multiple requesters and/or providers. Web services bring with them some huge advantages. Data is packaged via HTTP or HTTPS and [...]
Read More ...PHP 5.3 introduces a much requested feature for object-oriented programmers: namespaces. At the time of this writing, version 5.3 of PHP was in development, but is planned on being released in the near future. One of the purposes object-oriented programming is to remove ambiguous development and data access items. This basically means identifying common functionality [...]
Read More ...With the increasing use of web services and communications via HTTP, XML has become an industry standard for sending and receiving data among systems. Every language seems to have multiple ways to parse XML, each more complicated than the other. This presents a problem for developers. The majority of the time, developers need to read/write [...]
Read More ...This is a simple tip to keep your Linux box’s clock up-to-date (quite literally). Using your ntpdate program, set a cron for say 30 minutes to sync your time with a NTP server. 30 * * * * /usr/sbin/ntpdate -s ntp-2.mcs.anl.gov The above server is available to US machines, and requires an email notification for [...]
Read More ...