Monthly Archives: January 2008
Basic File Parsing with PHP and Python
I’m currently taking a masters class on dynamic languages with DaBeaz, and our first assignment was to parse a basic text file containing a stock portfolio, like so (here’s a simple text file w/ all of them): YHOO 50 19.25 … Continue reading
Moving to a New Domain? Use Apache to Redirct the Old to the New
So you have to move your site to a new domain – it happens. One of my clients just had to go through this because of a legal issue. But never fear – there’s no need to break your existing … Continue reading
Simple SQL to Track Hits/Views
I just added a feature to ChronicBabe.com, which runs a custom CMS, to keep track of how many times an article as been viewed. In the code that pulls an article from the database, this single line of SQL quickly … Continue reading
Force/Strip the “www.” On or Off Your Domain (Apache)
One of the first things I do after launching a new site is make sure every page is unique as far as the URL is concerned. By this I mean that IMHO you should not be able to view this … Continue reading
The Best Way to Start a Blog
So you’ve been pondering a weblog. All of these ideas keep popping into your head, but something keeps you from starting that blog. Maybe it’s because the process is a bit intimidating. Or maybe you just can’t “picture” how it … Continue reading
Learning Languages is Like Shopping at a New Grocery Store
A couple weeks ago I started taking a class down at the U of C called Dynamic Languages, taught by python guru David Beazley. Languages like Ruby, PHP, Python, JavaScript, Perl, etc. are dynamic in that they don’t have to … Continue reading
