Author Archives: tayknight

This is a test

This is only a test. Advertisements

Posted in Development | 1 Comment

How I share Google Reader items in Twitter

So, I wanted to be able to tweet items from Google Reader. I know things like twitterfeed exist, but I decided I wanted to be able to tweet items from Reader, or share items into my standard shared items, or both. I found http://userscripts.org/scripts/show/10169 which descibed how to to it using a Greasemonkey script.

However, the script used tiny.url to shorten URLs. I wanted to use bit.ly, so I rewrote the getTinyAndInsert function and added a function.

If you want to use this script, you’ll have to sign up for a bit.ly API key. After you sign up, you should get a bit.ly login and API key. Replace the getTinyAndInsert function in the Greasemonkey script with:

function getTinyAndInsert(event) {
  var thelongurl = url;
  var bitlyLogin = "BITLY_LOGIN";
  var bitlyAPIKey = "BITLY_APIKEY";
  var commandurl = "http://api.bit.ly/shorten?version=2.0.1&history=1&longUrl=" + thelongurl + "&longUrl=" + thelongurl + "&login=" + bitlyLogin + "&apiKey=" + bitlyAPIKey
  urlinput.value = "making url tiny...";
  GM_xmlhttpRequest({
		method: 'GET',
		url: commandurl,
		onload: function(responseDetails) {
			if (responseDetails.status == 200) {
				var myFoundArray = responseDetails.responseText.match(/http://bit.ly/[a-zA-Z0-9]+/g);
				if (myFoundArray != null) {
					urlinput.value = myFoundArray[0];
									countWord(event);
				}
				else {
					urlinput.value = "error shortening";
					alert(responseDetails.responseText);					
				}
			}	
		}
	});
}

Be sure to use your BITLY_LOGIN and BITLY_APIKEY. Save the google_reader_twitter.user.js and reload Google Reader.

The function can probably be improved, but it works for me. YMMV. Good luck.

P.S.
If you use this, please follow me. Continue reading

Posted in Family

Be inspired

wow Continue reading

Posted in Uncategorized

say cheese

Cruddy camera on my phone. But the smile makes up for it.

Carter’s missing his buddy Harley, who is back at the vet to have a small tumor cut off his eyelids.

Continue reading

Posted in Family

like father…

like son.

Continue reading

Posted in Books | 1 Comment

By Air, Land, and Sea (err, lake)

Well, the dust has settled and life has resumed as we know it. We all have just returned from a very long awaited and very needed two week vacation. With Harley in tow, we all drove to Arkansas and dropped Carter off with Boppa and Grammy (Will's parents). He had a blast playing with his cousins, swimming, and becoming addicted to chocolate milk. Meanwhile, Will and I departed for 4 days to Las Vegas to celebrate our 10th anniversary.

Thanks to Aunt Betsy, Will's youngest sister, who lives there, we had the most wonderful time. She graciously offered us her car and her home to make our trip very convenient.

The highlights from our trip included getting all dressed up to see the Phantom of the Opera, eating fancy gourmet food, rocking out to the awesome Beatles show "Love" – Cirque De Solei, and for me, melting away with my relaxing spa day.

Though we had a great time, we definitely missed our sweet boy. I couldn't fight back the tears as the airport escalator revealed his precious smile when he saw us standing at the top. That kind of reunion was truly priceless. After tons of tears, hugs, and kisses, we all drove back to Grammy and Boppa's house in Jonesboro.

We packed all over again and all headed to Mountain Home, Arkansas to enjoy our family's little blessing – the lakehouse. We spent a whole week with all of the family swimming, playing, laughing and enjoying the beauty of God's creation. Carter got to ride in a boat and a jet ski for the first time. He didn't like it as much as he thought he would. Harley got to swim and was in absolute heaven. Will got to enjoy endless hours of Guitar Hero on the Wii, and I just enjoyed relaxing.

Though fun was had by all, we were all glad to be home. We want to especially thank Aunt Bets for all of her advice and hospitality, The Guerry family for mid-trip housing both there and back, and most of all Boppa and Grammy for caring for our precious son and dog for four days (and nights)so that we could enjoy some special time together. You all made our summer!

Continue reading

Posted in Family

10 years

10 years is a long time, but it has gone by in a snap. Happy Anniversary, babe. I love you. Continue reading

Posted in Family