Freetype, jpeg, zlib and the Python Imaging Library on OSX 10.5
I’ve spent the better part of a few days going through the Django guide, following along closely, and executing their code examples as I proceeded.
Predictably, things haven’t been smooth.
Diary of a Web Developer: Perl, Python, and PHP. Required knowledge.
This post is about tools in the web developer’s toolbox. This post is the sort of post that I wish I’d seen when I first got into web development. This post is meant to describe the tools in your toolbox, and their use within the context of the web.
Parse Yahoo! Weather RSS using PHP and SimpleXML (also: explore the yweather namespace)
The Yahoo! Weather API is just swell. We get current temp, atmosphere, et cetera for any area of the US and a forecast for tomorrow all for free. In a similar bout of awesomeness, PHP5 contains the SimpleXML class.
Using Apache logs to track 500m pageviews a month
So here’s the deal. GateHouse Media is becoming a large newspaper/technology company. We have several hundred web sites, and accurate stats on those sites in invaluable.
When I heard that accredited stat tracking companies like HitBox and Omniture cost hundreds of thousands of dollars a year, I thought — Holy geez, can I help out w/this expense?
Must have modules for fresh Drupal 6 installations
Nothing like starting a fresh install and having to claw around for the latest and greatest for each of the integral 3rd party modules.
Here are a few starters & their CVS checkout linkages. You should execute these from within the sites/all/modules directory in your Drupal 6 install. You should create this directory if it doesn’t exist already.
Add leading zeros to a number using PHP or JavaScript
I was creating an associate array the other day. Riveting, I know.
I needed to sort this array by a piece of data, and I was lazy (like all healthy programmers), so I decided to prepend the data to a unique string and make that the key. Nailed, it sorts, right?
No. PHP doesn’t realize that 1 is less than 12 when you’re sorting strings. The solution I chose for sorting strings of numbers was to add leading zeros. The functions below can be used to do so.
jQuery makes you smarter: Keep users from clicking on a link (or submitting a form) multiple times
There will be instances in which you need to limit user input for their own sake. Payment submission, file downloads, and…basically any time you require user input once and only once.
The script I’ve constructed here is meant to help reign in the wild masses by limiting clicks on links or form submissions.
Introduction to Git: Version Control for you and me (on OS X 10.5 Leopard)
While I’m relatively new to the field of version control, I’ve been through the basics of CVS and SVN, and at work, SVN is part of my programming workflow.
That said, people are hot for Git, and so I’m going to explore its installation on Leopard (OS X 10.5), and basic usage.
jQuery makes you smarter: Dynamically parsing a form field for golf score input
What I'm working on right now is a scorekeeper for disc golf scores that my friends and I keep. Entering scores for 3 or 4 people + 18 holes + HTML form fields = pain in the ass.
See the input model & code after the jump.