Morton Fox (mortonfox) wrote,
Morton Fox
mortonfox

Geocaching in Wayne and TwitVim support for identi.ca

readingrr-3

There was heavy rain yesterday evening, but this evening, the weather was fine; not particularly hot or humid even. So I went out to Wayne for two geocaches. The first was parkview. It wasn't a hard one. Just a short dash into a slightly-muddy wooded area. I hadn't brought information for any other geocaches but I checked on the cell phone web browser and saw that Reading RR wasn't that far away. (or rather, it wouldn't be far if I'd gone the correct way instead of going out on I-80/US-46 and having to make a U-turn half a mile out of the way, but I digress) This cache site was a weed-filled nightmare. I was lucky to find this one because I didn't even think of checking that spot for the cache. I just happened to see it while crossing from one patch of weeds to another patch of weeds.

After that, I went to Willowbrook Mall for dinner. I hadn't been to that mall for years, so I was surprised to find an Arby's in the food court. Better yet, they still had the Pick 5 for $5.95 special, which is very filling if 3 of the 5 items are sandwiches. :)

identi.ca is an open source alternative to Twitter (the source code is Laconica), but like most Twitter alternatives, it seems to be more popular when Twitter is performing poorly. Commentary aside, I heard from more than a few people and blog posts that identi.ca has a Twitter-compatible API. Since it wasn't difficult to slip that into TwitVim, I did that in release 0.2.19. It's more of a hack than a proper feature implementation since all of TwitVim's messages still refer to Twitter instead of identi.ca, but it works pretty well and I can talk to either Twitter or identi.ca simply by changing a config variable. Of course, in my own installation, I wrote some additional commands to help me switch between the two services.

The essential idea is to have two commands/functions in your vimrc, one that sets up config variables for Twitter and one that sets up for identi.ca:
    function! Switch_to_twitter()
	let g:twitvim_api_root = "http://twitter.com"

	let g:twitvim_login_b64 = "your Twitter base64-encoded login string"

	FriendsTwitter
    endfunction

    function! Switch_to_identica()
	let g:twitvim_api_root = "http://identi.ca/api"

	let g:twitvim_login_b64 = "your identi.ca base64-encoded login string"

	FriendsTwitter
    endfunction

    command! ToTwitter :call Switch_to_twitter()
    command! ToIdentica :call Switch_to_identica()
Notice that I also made both functions end with a call to FriendsTwitter. This way, you'll get a fresh view of the friends timeline after you switch. After adding that to your vimrc, you can just do :ToTwitter or :ToIdentica to switch between the two services.
Tags: arby's, geocaching, identica, twitter, twitvim, wayne, willowbrook
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 7 comments