WordPress 3 and WordPress Plugin Development

Here are the slides from my talk at the PHP meetup on 7.13.2010.

US Zip Codes and States

So I decided recently to work on getting a list of zip codes for the United States, in case I needed them in the future. I thought that it might be useful. I already had a list of US States, but I added a State FIPS code to correspond to the FIPS code in the Zip Code table. I saved both files as ODF, CSV and SQL. You can download them here. US Zip Codes (rar) US States (rar) The SQL files will let you import the information into your database, so you can build awesome web applications! I don’t think the zip code table is a complete list of zip codes, but it is the best I have for now. If you have anything that is more current, please let me know. Reminder: Only approved sites can link directly to the files. Please link to this page...

jQuery and CodeIgniter Chat

I adapted a Javascript & AJAX tutorial off of sitepoint to work with CodeIgniter. It uses jQuery to the handiwork. It is a simple AJAX chat script, not the most advanced thing in the world. Hopefully it will get better in the future. Here is it in action: Download jQuery Chat REQUIREMENTS You have Downloaded and Installed codeigniter. You may want to check for a new version of jQuery.The version of jQuery that is included is 1.2.1. You can find the current version of jQuery here. The root folder is where codeigniter is installed. You are using MySQL. INSTRUCTIONS Open /system/application/config/autoload.php Verify that you are autoloading the database library. You should see ‘database’ listed in the $autoload['libraries']...

Diggable WordPress Plugin

Diggable is a plugin for WordPress that adds Digg This buttons to websites. This will make it easier for your website visitors to submit content while it also allows them to see the Digg count for content that has already been submitted. Features General Features Admin Menu with options for button placement and customization No template modification, so you aren’t required to have any programming knowledge Buttons placed at the end of the content post and only visible if you load the page for a particular post There are options to display the buttons on pages and posts and on the front page of the website You can also select between the compact and normal version of the button. Currently the display options are basic but will be expanded...

Setting Passwords that Expire in Linux

The /etc/login.defs file controls the parameters we are interested in changing inorder to enable or disable passwords that expire in Linux. It contains a number of other configuration setting for user accounts on your machine. The following are the ones that we are interested in. PASS_MAX_DAYS: Maximum number of days a password may be used. It controls how often users must change their passwords. Any passwords older than this will force the user to change their password the next time they login. To disable set to 99999. PASS_MIN_DAYS: Minimum number of days allowed between password changes.This prevents people from changing their password 5 times in one day. To disable set to 0.  PASS_MIN_LEN: Minimum acceptable password length. No short passwords will...

AACS encryption cracked, almost

A hacker posted the source code and a video of new software called BackupHDDVD that he developed that ‘supposedly’ allows people to backup HD-DVD. Source: Electronista, Doom9 What really happened is that the method that Cyberlink uses to decrypt AACS was semi-compromised. Apparently this method won’t work for long because the key that is used to decrypt the content can be revoked with AACS. This was something that was not possible with CSS encryption. Source: Chris Lanier,...