rahji.com

Main menu:

Site search

Categories

My Other Sites

People

Places

Stuff from the 'scripting' category

20 Challenges

This is a list of twenty arbitrary challenges for people who are learning to create using a tool like Processing, Quartz Composer, or the like.

Using OSCemote with Processing

This is my tutorial for using Processing with the OSCemote iPhone app.

iPhone and Processing

I made a couple simple demos for the VIS145A students at UCSD to show how we can use an iPhone as the interface to Processing sketches.

Creating Visual Rhythm in Processing

I’m teaching Processing to art students at UCSD and the course’s professor has basically asked them to create visual rhythm. I made a few sketches to show a simple way in which this might be accomplished.

How to get your RSS feeds out of Mail.app (and into NetNewsWire)

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.

PHP Countries, States and Provinces

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.

Perl template for TextMate

Here’s how you can create perl scripts in TextMate, starting from a template instead of a blank screen.

Simple credit card number validation with PHP

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.

Finding remote host info

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 [...]

Creating a 1px GIF with Perl

Ever wanted to create a 1 pixel transparent GIF with Perl? Me neither, but this is still neat to have in the toolbox.