Gnome Programming: Getting Started with Anjuta/Glade

April 20th, 2005

Note: This tutorial is no longer current. A new, more up-to-date and in-depth tutorial has been written: Tutorial: Simple Gnome Application Using libglade and C/GTK+


Read the rest of this entry »


PHP Format Any Time/Date for MySQL

April 20th, 2005

Many people find the act of formatting a date or time for input into a MySQL database tedious. It's actually very simple. Here is a function that will take a timestamp value such as time() or a human readable string and format it for MySQL. MySQL format is: 'YYYY-MM-DD HH:MM:SS'
Read the rest of this entry »


Intro to Programming PIC Microcontrollers in Linux

April 19th, 2005

PIC Programming on Linux

I first tried switching to Linux back in 1996-- however, grew frustrated after 2 agonizing weeks of trying to configure ppp to connect to the internet on my speedy 28.8 modem. I continued using, and developting software for, Windows. I grew more and more frustrated with Windows until I reached the breaking point with the new spyware/virus epidemic. I once again attempted the switch to Linux, and to my delight, found it quite painless. I found the install to be VERYeasy and all the drivers and applications I would need were free and readily available-- if not already built into my Linux distribution (at the time that was Fedora Core 1, and is now Fedora Core 3).

Read the rest of this entry »


PHP Zip Code Range and Distance Calculation

April 19th, 2005

Planet Source Code Superior Code Winner!

This is a PHP class to do various calculations with zip codes. It's primary purposes are to calculate the distance between two zip codes and to extract all the zip codes that are within a range of a given zip code. All calculations are based on lattitude and longitude coordinates stored in the database. Included is a class file, demonstration file, and the sql files required to create and populate the MySQL tables.
Read the rest of this entry »


PHP MySQL Database Class

April 19th, 2005

A class for very basic MySQL database connectivity. Written to reduce redundant code in my own projects aswell as aid in debugging and error reporting during the developement phase. Currently connects to a database, execute external files containing SQL commands, insert and update from an array of key => value pairs, insert and update with sql command, query (one result), query (multiple rows), and dump a select query to a table. The zip file contains the class aswell as a demonstration script. Read the rest of this entry »


PHP Authorize.net AIM Interfacing Class

April 19th, 2005

Provides a simplified interface the the authorize.net AIM payment gateway. Allows all the control and flexibility to be in the hands of the PHP developer (you). Uses cURL and SSL. The zip file includes the class to interface with authorize.net as well as a demonstration script on using the file. Read the rest of this entry »


PHP Paypal IPN Integration Class

April 19th, 2005

This free PHP script provides a simple method to interface with paypal and the paypal Instant Payment Notification (IPN) system. It is not a complete system but a single PHP class allowing the PHP developer more control. Included in the zip file is a demonstration PHP script called paypal.php which shows the basic usage of the class.
Read the rest of this entry »