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.
Archive for the General Code category:
General things about code, sql, and languages that aren’t specific enough yet to warrant their own categories.
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 increments a “hits” row (type=INT) in the “articles” table for a given id:
UPDATE articles SET [...]
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 be compiled in order to run, much like C and Java, which are static languages. [...]