.
I’ve been evaluating a number of e-mail marketing services over the past few months, and though I haven’t actually decided which one I’ll be using yet, I have worked with many of them extensively. Right now MailChimp [get a $30 credit when using that link] is one of the front runners, along with newsberry, AWeber and Campaign Monitor. I’ve been working with the MailChimp API some, and am really impressed with it. In fact, it was so easy to use that I was able to build a working mailing list synchronizer using it in less than a day. Even if I don’t end up choosing MailChimp, I thought that this code might be helpful to others, so I’ve packaged it up and released it as the “Galahad MailChimp Synchronizer.”
Enjoy: Galahad MailChimp Synchronizer
During the past two years I’ve constantly been frustrated with the Authorize.net API wrappers that exist, so when I started to rebuild NACHI.TV I decided I would write the one I always hoped for. The code is just a two days old, so I’m sure there are all sorts of gaping holes in it, but I thought I’d release this first version to get some feedback from others who are as frustrated as I am.
Here’s a basic example of how you might use the wrapper:
$gateway = new Galahad_Gateway_AuthorizeNet($login, $tranKey);
$card = new Galahad_CreditCard('4222222222222', 4, 10);
$transaction = new Galahad_Gateway_Transaction(null, 2.00, $card, 'Description of $2 purchase');
$response = $gateway->capture($transaction, true);
if ($response->isApproved()) {
echo '<h1>Approved</h1>';
} else {
echo '<h1>Declined</h1>';
}
So I have a problem. Most of the time I bike, but every once in a while I need to catch a bus or hop on the el to get where I’m going. Inevitably, I get there just as the train is leaving, or I wait 10 minutes in the cold ’cause I left too early. This is usually because I don’t want to waste my time finding a schedule when there’s a chance those 3 minutes will make me miss the bus.
So my idea was a single page that had the upcoming times for all the public transportation I use. You’d enter the routes you take (in my case the 5 and 57 buses, southbound, and the Girard blue line stop, westbound), and the page will give you a quick list of when the next trains/busses will arrive. I’ve also thought it’d be really cool if you could put in the approximate time it takes you to get to any given stop, so if it takes me 7 minutes to get to Girard station, it will only show me trains that will arrive in 7 minutes or later).
I wrote a schedule parser this afternoon and put a little bit of interface this evening. The parser seems to work, but I’ve done VERY minimal testing. I know the iSepta folks said that getting 80% of the parsing done is easy, and the 20% takes some work, so I don’t know if this is a project that will ever go further than running locally on my desktop, but if there’s enough interest I’ll try to clean it up and make it live somewhere.
Here’s a quick screenshot of what I have set up right now (click to see full-resolution):
Feedback? Is this something that other people would find useful? Post in the comments or let me know via twitter.
Recent Comments