Look here for coding-related concepts and solutions that may be of use to you. The aim is to provide algorithms for common problems that might not be published elsewhere. They may come in the form of pseudo-code, real code, or other.
Dividing a Rectangular Area
2006-08-21
This is code I came up with to split a rectangular area into N number of (almost) equally-sized rectangles. It comes with a function that favors rectangles of greater height where possible, and another that favors width. Both use the same core logic.
Database Parent-Child Relationships
2006-05-20
Two approaches for implementing database record parent-child relationships. The second method is something I came up with that makes selecting nested records a snap.
Preventing Contact Form Spam
2006-03-21
You surely won't be happy when your web site gets used for someone else's financial gain. Here are some ways to prevent contact form spamming and abuse.