Tuesday, October 26, 2010
More Twitter OAuth Stupidity
Twitter uses the OAuth consumer key to identify client applications. Now they've gone a step further, and are revoking the consumer keys of open source clients that fail to adequately obfuscate the key in the source code. Twidge was disabled yesterday. It was fixed a day later after the developer modified the source to comply with Twitter's requirements. So far, I haven't heard of any other open source clients having problems.
I don't know what Twitter hopes to accomplish with this ridiculous obfuscation requirement. Even if the key is hidden in the source code, it's still available to any one who examines the code. Does the requirement apply to closed source clients? In the above article, the author extracted the consumer key from the binary of the official Twitter Android client. Anyone want to bet it hasn't been fixed?
Monday, October 11, 2010
Useless Statistics
Thursday, September 2, 2010
How Not To Use OAuth
The OAuth protocol avoids the problem of giving your credentials to third party client applications and web sites when you want them to access your data on another site. Twitter is an example of how not to use OAuth.
It seems the genii who run Twitter require client software identify themselves with a consumer secret and key, which has to be embedded in the application somehow. Obviously, this is huge problem for open source applications, since it is impossible to obfuscate anything when people can see the source code.
As the article points out, the OAuth RFC actually recommends against using the consumer key protocol to identify application as Twitter is doing. Isn't it great when companies ignore standards for the sake of their own business goals? ^_^
Wednesday, September 1, 2010
OAuthpocalypse
I've been thinking of ditching Gwibber for a simpler client for while now, but haven't found a replacement yet. I prefer a console only program but it must be support multiple services the same way Gwibber does. Gwibber's multi-service capability is actually the only feature I really like about it.
I'm using Twidge, a command line program, to read and post on Twitter for the time being. Twidge switched to OAuth a long time ago already. If I feel ambitious I might write some scripts around Twidge to get the features I want. Ambitious. Right.
But really, the reason for this post is that I want to know who on earth came up with the word "OAuthpocalypse." ^__^
Sunday, June 20, 2010
YouTube Unblocks My ISP
On the other hand, it got results and you can't argue with that.
Saturday, September 19, 2009
Twidge
Twidge can post to both Twitter and Identica but can't do it with a single invocation. That's easily solved with a simple three line shell script taken from the Twidge web site. Or you can use the slightly more fancy script which gives a text length marker so you don't exceed the 140 character limit.
Of course, it was hard to resist "improving" things. ^_^ Here is my current script:
#!/bin/bashThere basically two additions over the original script. First, the text for the post is created in the vim editor, which is a more comfortable writing enviroment and, more importantly, has a spell checker! The second addition is to convert Identica groups, which are specified as "!tag", into a Twitter "#tag", since Twitter doesn't have groups.
tmpfile=$(mktemp)
trap "rm ${tmpfile}" EXIT
vim ${tmpfile}
if [ ! -s "${tmpfile}" ]; then
echo "No text, aborting update."
exit 1
fi
text=$(cat "${tmpfile}")
twidge -c "$HOME/.twidge/identica" update "${text}"
text=$(echo "${text}"|sed 's/\(^\| \)!\([[:alnum:]]\)/\1#\2/g')
twidge -c "$HOME/.twidge/twitter" update "${text}"
Hah, I hear you say! Why did my script become so complicated? But it is not really complicated once you realize these scripts are able to duplicate the basic functionality of Ping.fm, a complex web service, in a few lines of shell code. And so far, the script has proven to be more reliable that Ping.fm. The script is only as complicated as it needs to be, but no more.
Long live the command line!
Friday, June 26, 2009
Microblogging
I found out Twitter has an XMPP gateway. That's handy, I thought. My IM client is always running so it would be more convenient than posting from my Twitter home page. Unfortunately, XMPP isn't a priority for the Twitter developers so the gateway doesn't work too well when it worked at all. Others such as tweet.im and twitterspy have step in to fill the need. Other microblogging sites like Identi.ca have an XMPP gateways and connect to Twitter. I decided to try Identi.ca first since you are posting to two sites at once. Hey, its hard to resist a two-for-one. ;)
So far my impression of Identi.ca is mixed. It has a much nice web UI than Twitter but the service became very unreliable just after I signed up. Twitter is can be slow but I haven't seen it become inaccessible yet. Identi.ca's XMPP gateway works and the posts are forwarded to Twitter, but the XMPP gateway is annoying. It constantly logs in and out for some reason. One post I made tonight showed up on Twitter a couple of hours later. Well, at least it showed up.
The two-for-one maybe wasn't a deal after all so I'll have to try the other options.
