Category Archives: General Code
General things about code, sql, and languages that aren’t specific enough yet to warrant their own categories.
Finally, A Great HTML Parser for PHP
I’m blown away by the PHP Simple HTML DOM Parser. It’s like Beautiful Soup, the Python HTML/XML parser, but for PHP and has some nice jQuery-like syntax. It also seems just incredibly fast, but maybe that’s also because I’m better at … Continue reading
Using BBEdit’s Update Document Feature
When you find yourself updating the same static HTML files over and over again, like with a newsletter, BBEdit’s templating feature can really save you time and your clients money. Here’s an example of the process I use with a bi-weekly HTML newsletter I do. 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
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