Stuff from the 'scripting' category
If you use Mail.app to read RSS feeds and want to export the URLs for those feeds (maybe you want to use some other RSS reader now?), you can use this command.
Posted: September 14th, 2008 under macintosh, scripting.
Comments: none
I modified my phpstates code include to display countries and Canadian provinces as well. The country codes come from the UPS developer’s API. This is another one of those snippets that I use often, so maybe it will help you out.
Posted: May 27th, 2008 under scripting.
Comments: none
Here’s how you can create perl scripts in TextMate, starting from a template instead of a blank screen.
Posted: March 17th, 2008 under macintosh, scripting.
Comments: 1
I was looking for a quick and simple PHP function that would validating credit card numbers, but the code I found was mostly clunky and sometimes just wrong. I wrote this function and it seems to work correctly. Feel free to use it and leave a comment here if it works for you.
Posted: March 1st, 2008 under scripting.
Comments: none
This is how I find out where a remote client is coming from. It takes into account proxies and tries to get the hostname using gethostbyaddr(). Frankly, this was written many years ago so I’m not sure if I’d do it the same way. If nothing else, it should be a good [...]
Posted: April 29th, 2007 under scripting.
Comments: none
Ever wanted to create a 1 pixel transparent GIF with Perl? Me neither, but this is still neat to have in the toolbox.
Posted: April 29th, 2007 under scripting.
Comments: none
I wrote this cross-reference a while back for people who know how to program using Perl and are looking for some of the familiar Perl functions in the php language. When I originally write it, we were stuck with php 3 so I just reworked the list to include some of the functions that were [...]
Posted: April 28th, 2007 under internet, scripting.
Comments: none
This one time, I thought maybe I’d try compressing URLs to make the query strings shorter.
Posted: December 16th, 2005 under internet, scripting.
Comments: none
I’m posting this short chunk of php code that might save you a few minutes. It creates a list of US states in an HTML or XHTML SELECT list. Download the zip file here.
Posted: December 16th, 2005 under scripting.
Comments: 1
Here’s a template for adding javascript code to an HTML page. It might save you 30 seconds someday.
Posted: July 30th, 2005 under internet, scripting.
Comments: none