Sample Code: prevent web page overwrites

Below are some interesting problems and solutions that I have come accross. Problem: In a web based system how to you prevent multiple updates to the same record by different users seeing potentially different data. This is a play on the old airline reservation problem you find in older computer science text books. If  there is one ...

Sample Code: Basic Login , Roles authentication and Login attempt alerts.

Sample Code: Basic Login , Roles authentication and Login attempt alerts.
Problem:  In most web based system one of the most commonly used process is user authentication and page access. This Login function is pretty typical here’s my example: Notice I set a bunch of session variables that I frequently use later in the application to display specific user information (such as dashboards etc.) <?php /////// ...

Sample Code: PHP Captcha Simple 6

Sample Code: PHP Captcha Simple
Problem: Web form spam or bot induced form submissions  is a common issue these days on we pages that have forms. The simplest way to thwart such spam is to use a[wiki]captcha[/wiki]. There are many varieties of captcha but today I’m going to focus on some simple code that does the job quickly and easily. ...

Work…

Work...
 “Who am I and Why and I here?” – Adm. Stockdale VP Debates. Currently I work as a senior PHP developer at  a a/v integration firm in NJ. My role there is as a senior architect and developer responsible for building and maintaining  a modern web-based operations system. The system is used by the company to track projects, estimates  purchasing , ...

Why I’m a humanist (atheist)

Why I'm a humanist (atheist)
Why I became an atheist… Having been raised catholic and going through all the machinations of the Christian religion, although never being a fervent believer or serious religious   practitioner, I came to  the the obvious conclusion that over the last 5-10 years, I simply didn’t believe in God. Or more precisely, the notion of God ...