acrollet's blog

Applescript to open a different account's INBOX in Mail.app

A while ago, I threatened to post this script, and then it slipped my mind, mostly because I switched to Gyazmail. At any rate, one of the most frustrating things about Mail.app to me was having to get out the mouse to switch between the inboxes of my various email accounts, especially once I got Mail Act-On working so nicely.

Inline tags module for Drupal 6.x

A few posts (and many weeks) ago, I alluded to my hope of coming up with a decent way to integrate free tagging (folksonomy), Drupal, and xmlrpc. I looked into trying to extend the existing blogapi module to fit my needs, but discovered that it isn't simple to over-ride core functions in Drupal. Essentially, one must copy the entire module from core to the local modules directory and hack on it. Less than ideal, and not too many people are going to want to mess with it.

Improvements to the Vim drupal blogging client

I've made a few improvements to my Drupal blogging client, first spoken about here. It now has the ability to publish and unpublish posts, delete posts, and create and edit free tags (folksonomy). The free tagging feature requires a module that I've packaged up for parsing tags in the post body - just waiting on permission from the author of the sample code I modified before posting that. Hopefully it'll be coming soon!

Setting Screen's title to the currently running process with bash

This is the first of a series of at least two posts about how I've configured the excellent Gnu Screen to fit my needs and make me more productive.

Creating a regex for finding credit card numbers with grep

Ugly regex:

grep '\(^\|[^0-9]\)\{1\}\([345]\{1\}[0-9]\{3\}\|6011\)\{1\}[-]\?[0-9]\{4\}[-]\?\
       [0-9]\{2\}[-]\?[0-9]\{2\}-\?[0-9]\{1,4\}\($\|[^0-9]\)\{1\}' filename

Posting to a drupal blog from Vim (with side forays into uploading and free tagging)

So, we are finally getting closer to the long-awaited post (ha!) about posting to drupal from vim. I've been having a lot of fun making this plug-in suit my needs, and making it truly easy to post. Python hasn't been too hard to learn - vim scripting is truly a weird, weird language.

Paying Uncle Sam

Well, I'm working on taxes today, so "normal" posting will resume later. Planning a write-up on my improvements to the Vim blogging client I posted about earlier... (tags are working as you can see!)

This is a test entry

I'm posting this from vim with a plugin taken from yyhh.org. If you can read this, it's working ;-)
Update: My modifications are coming along - the following image was uploaded from Vim...

more testing

taking notes with bash + vim

A co-worker sold me on the utility of having a program like Yojimbo. However, I'm too cheap to shell out the $39 for a license, and I prefer to have vi key bindings, and complete keyboard control. I found an excellent post at make-believe.org which describes a system for note-taking using a little bash magic for searching and command line tab completion, and vim for editing. I liked it a lot, but decided to add tagging to the system.

easy way to clean up html

While I was working on a website migration for work, I found myself wanting a way to preserve formatting without keeping really poorly formatted html. (probably made by Word, a lot of blockquotes instead of list tags, etc.)

Syndicate content