Archive for the 'Web Development' Category

Gedit Symbol Browser Plugin

Wednesday, November 14th, 2007

I have written a symbol browsing (function browser, class browser, etc.) plugin for Gedit, the default GNOME text editor. The plugin is based on Exuberant Ctags (ctags.sourceforge.net) which must be installed to use the plugin.

Read the rest of this entry »

Some Handy Linux Commands

Tuesday, October 30th, 2007

Here are some commands I use ALL THE TIME when working on a web server through SSH. I'll try to update it as I think of other stuff that comes in handy.
Read the rest of this entry »

ErrorDocument in .htaccess Returns 302 Response

Monday, October 15th, 2007

Just thought I would help out anybody who has this same problem. When using a custom error page to hand 404 errors, you need to make sure you use the local path to the script and not a full URL, otherwise the server needs to use a redirect to get to the page. This will cause a message from Google Webmaster Tools such as "We've detected that your server returns a status of 200 (found successfully) for pages that don't exist. "
Read the rest of this entry »

Customizing gedit as a Web Developer’s IDE

Saturday, September 29th, 2007

As a web developer and programmer, I prefer to use a powerful text editor over WYSIWYG software. I write code using HTML/XHTML, CSS, Javascript, PHP, MySQL, Ruby, etc. The standard text editor that comes with GNOME is much more powerful than you may know. This article is written to illustrate how you can configure gedit for use as a powerful, stable web developer's text editor.
Read the rest of this entry »

Web Development in Linux (GNOME)

Friday, September 28th, 2007

I see people asking around in the forums quite often about which tools to use for web development in Linux. Here are some tools and instructions for setting up your gnome-based Linux distributions to handle all your web development needs.

I won't be discussing any commercial software here. Just the open-source (free) stuff.
Read the rest of this entry »

Customizing Firefox for Web Development

Friday, September 28th, 2007

One of my most valuable tools as a web developer working in Linux, is Firefox. I think I can safely assume that you're familiar with the Firefox web browser if you're reading this post. However, you may not be familiar with some of the tools to assist you in created your web pages.
Read the rest of this entry »

PHP Format Any Time/Date for MySQL

Wednesday, 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 »

PHP Zip Code Range and Distance Calculation

Tuesday, 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

Tuesday, 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

Tuesday, 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 »