1. Mediator: When you have two classes that are in need of each other, you might create a strong coupling between them. In other words, a simple change in one class can affect the other. This is not a good thing since one of the core concepts in object oriented programming is to reduce the [...]
Archive | CODE RSS feed for this section
Design Patterns – Part 3
January 7, 2011
1. Proxy: The proxy pattern provides a surrogate for another object (You make your calls to the proxy, and the proxy calls the other object to get the work done). The first example that comes to mind when thinking about a proxy is web services. Web services are methods available somewhere on a server. We [...]
Design Patterns – Part 2
January 7, 2011
Structural Pattern: As the name implies, this pattern concentrates on how elements are structured. For instance, when I look at windows explorer, I see a folder that contains a list of other folders that contains files and folders, and so on… This concept relates to the composite design pattern. The patterns we will explore in [...]
Introduction to Design Patterns Using C#
January 6, 2011
Design Patterns are common solutions to problems you encounter as you are developing software applications. As you are writing code and finding elegant solutions to business problems, you see yourself asking questions such as: why am I copying and pasting code very often? I think I have seen this problem before, did I write a [...]
Check your server load before you process
September 24, 2010
Most of us just write applications to be deployed on a webserver without thinking about what to do when the server becomes overloaded. What happens in most cases is that the application would go trying to run itself on every request, and on a heavily loaded system, it just goes on the aggravate the problem, [...]
Form Magic in HTML5
September 24, 2010
Forms are one area in HTML 5 which has got a major overhaul. Some of the tasks which required a fair bit of Javascript to achieve in HTML4 become relatively easier tasks in HTML5. Be warned that since HTML5 is still not finalized, browser implementation of some of the features may take a while to [...]
How to Recover Deleted Files in Fedora / Ubuntu
September 15, 2010
foremost is a forensics application to recover files based on their headers, footers, and internal data structures. Foremost can work on image files, such as those generated by dd, Safeback, Encase, etc, or directly on a drive. This short article shows how you can use foremost to recover deleted files. Currently foremost can recover the [...]
Squid Proxy Cache Server Installation and Configuration
September 15, 2010
Squid is a proxy caching server. If you are Linux sysadmin, you can use squid to control internet access at your work environment. This beginners guide will give a jump-start on how to setup squid on Linux to restrict internet access in an network. Install Squid You should install the following three squid related packages [...]
vtiger Installation On CentOS 5.x
September 9, 2010
vtiger is the CRM / complete tracking solution I have looked for and needed for 10 years!!! An all-in-one tracking everything organic package that ties everything together – because every task has many things associated with it, and vtiger works the way people think. I will install vtiger in the /var/www/html/vtigercrm directory on a CentOS [...]
PHP Tutorial: Fetch and Display Tweets
September 8, 2010
This is hopefully the first in a few posts that will describe and explain a quick and easy method to get something up and running using PHP. This tutorial will talk through a class I wrote extremely quickly that can pull tweets using Twitter’s REST API from both protected and public accounts, and that will [...]

January 7, 2011
0 Comments