mortonfox: (words)
I released TwitVim 0.5.4 yesterday, just a day ahead of Vim 7.3 final. I haven't written about TwitVim development in a few months. The last time I wrote in any detail was while I was in the middle of writing the OAuth code. From 0.5.0 to 0.5.4, there have been over 3 dozen revisions, mostly to complete the feature set with some bugfixes and documentation improvements thrown in the mix.

One issue I've struggled with in TwitVim 0.5.x is about requiring the user to use a Vim executable that has been compiled with one of the scripting interfaces. (Perl, Python, Ruby, or Tcl) The reason for this is I don't have a good implementation of the HMAC-SHA1 digest code in pure Vim script1, so TwitVim has to sign OAuth requests by calling a HMAC-SHA1 module from one of those scripting languages. This is a terrible inconvenience; if it were not for this requirement, one would be able to run TwitVim in a precompiled Vim executable. Because of this requirement, a prospective TwitVim user now needs to be reasonably familiar with compilers and be able to build Vim from scratch. Furthermore, the required module isn't present by default in most Perl distributions other than ActivePerl, so the user has to fetch it from CPAN. Fortunately, the TwitVim user base (which seems to number about 3 at the moment :) ) appears to be quite good at those things. So far, those who contacted me with questions only needed a nudge in the right direction to get it working.

Another problem that's still unresolved at this time is Vim breaks some Tcl 8.5 modules. In particular, this bug prevents TwitVim from using Twitter SSL via the Tcl interface if Vim is compiled with Tcl 8.5. (TwitVim needs the "tls" package that I mentioned in my post to vim_dev. Tcl 8.4 is fine.) It was too late to address this issue in Vim 7.3, but I hope there'll be an official patch for this before Vim 7.4. (The unofficial patch is simply to hack out the redefinition of the "catch" command in if_tcl.c.)

---
1 There are Vim script modules for HMAC and SHA1 but these are very slow. The problem is Vim script does not have bitwise operators, so all the shifts, rotates, ANDs, ORs, and XORs have to be done using regular math operators and table lookups. It's really quite clever but I'd rather wait until the necessary enhancements are in Vim script before implementing HMAC-SHA1 in pure Vim script.

Friday

Feb. 9th, 2008 12:55 am
mortonfox: (fox yawn)
bboom-2

Opened a Google Code project for the 10 Million Photos Flickr group scripts. That was pretty easy to do. Since I'm allowed 10 projects, I ought to make projects for some of the other scripts I've written too. The SVN repository alone makes it far superior to just sticking the code on [livejournal.com profile] randomfox.

Friday Five )
mortonfox: (morton ave)
rockpeaks-04

Got a package from Garmin this afternoon. It has only been 8 days since I sent out the malfunctioning GPS, so that's a pretty quick turnaround. It's not the same GPS though. It has a different serial number so it's got to be a refurbished unit from their repair facility. I'll use it this weekend and see how it goes.

Aside from cash and prizes, Shoppers' Hotline also offers special coupons to participating members. I have to admit though that I hadn't been checking their coupon section. The reason for that is the first time I took a look at their coupons, which was over a year ago, I saw only coupons for high-end retailers, which are of no use to me. Last night, I took a look and saw that they had added Burger King coupons. Great! I printed out a coupon for BK Big Fish and used it this evening. S.H.'s deal seems to be 4 coupons a month, my choice, so if I plan ahead, those will be useful for meals whenever I'm out a bit late running errands.

Wrote a Top Posters script for the 10 Million Photos Flickr group. It produces reports like this one. Most of the code I needed was already in the older 10 Million Photos stats script, so all I had to do was reuse a few functions and add some report-generating code. Initial reviews from the 10 Million Photos regulars are encouraging.

Commerce Bank shareholders approved the TD Bank acquisition with 97% in favor, so if nothing goes seriously wrong, I'll get cash and TD stock in early April. Not so much though, as I'd already cut my CBH holdings way back when in anticipation of the credit crisis. In addition, I got cash out of the TAQA-Primewest deal last month, so the only merger I'm still waiting on is Metal Management - Sims Group. (both scrap metal recyclers)
mortonfox: (morton blvd)
Bayshore Marina

No new geocaches in my neighborhood yet this week, so I revisited The Rhodo Ranger and The Swirly Girly Cache on my way to the Park Ridge post office. Already found them, so I can't sign in again, but I swapped geocoins and travel bugs. Having geocaches too conveniently nearby may not be a good thing. :)

I discovered today that I'm in the top users for the last 60 days at Postcrossing. Apparently, sending just 30 postcards in the last two months is enough to be on the leaderboard! Last year, I was thinking about quitting Postcrossing because of the postal rate hike but 15 postcards per month isn't so bad.

Wrote my first Pidgin plugin last night. The backstory is I was using Pidgin to update Twitter with status messages showing what I was doing. There were certain things such as "catching up with livejournal" that I would do daily, sometimes multiple times daily, so I would copy the status IM to the clipboard and repeat it later using the clipboard manager Ditto. I was lazy so I started wondering if I could write software to automate the copying of sent status IMs to the clipboard. Which, if you think about it, is a silly way to be lazy. Wouldn't most people who wanted to be lazy just accomplish that by forgetting about the whole thing? :)

To be specific, I was wondering if I could write a plugin to extend Pidgin's functionality to copy IMs to the clipboard. Now, I didn't know anything about Pidgin's plugin interface (nor did I know much about GTK, for that matter), but a few web searches later, I had enough documentation and code samples to hack a simple piece of code and this is it. The whole thing is essentially a wrapper for 3 lines of code that do the actual work of copying the message to the clipboard.

Profile

mortonfox: (Default)
Morton Fox

May 2020

S M T W T F S
     12
3 456789
10111213141516
17181920212223
24252627282930
31      

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags