Tag Archives: tweet

You’ll need to reboot to upgrade to Lion

June 7th, 2011

Yesterday I tweeted that you may not need to reboot in order to upgrade to Lion. That isn’t exactly true. After watching yesterday’s Keynote from Apple I realized where the Engadget editor made the mistake.

Typically when you insert a disc to upgrade Mac OS you need to reboot to the disc for the installation process to begin. This means that during the entire upgrade process (even though this process gets shorter and shorter with each update) you’d be effectively without a computer. The upgrade to Lion, it would seem, doesn’t require this step. The update happens just like any other installation process. However, you’ll still need to reboot when the upgrade process is complete.

Notable, but not as notable as not having to reboot at all.

Embed a tweet on your Web site

May 7th, 2010

Dubbed Blackbird Pie this tool from Twitter makes it fairly simple to embed a tweet on your Web site. Provide the URL to the tweet and you’ll be provided with a HTML embed code for the tweet. Nice.

Example.


Nothing like a good laugh to make a bright day brighter. Thanks @elizard.less than a minute ago via Echofon

RSS to Twitter using PHP

December 6th, 2009

Update January 19, 2010: This script is now available on GitHub. Go forth and fork.

Today I noticed that my now ancient PHP script to update Twitter automatically using PHP/cron needed to be updated. It turns out that Twitter stopped recognizing URLs with ? in them as clickable links. Here is an example tweet where you’ll notice this happening.

I could have told Twitter and asked that they update the way they handle URLs but in reality my script was old, slow, too long, and shouldn’t include ? anyway so I figured I’d write a new one from scratch that included my short URL scheme.

So, here is the PHP script to parse an RSS feed and send the posts to Twitter. It includes a caching mechanism so that you won’t have duplicate URLs posted to Twitter. If you want it, take it. However, if you are better than I am at PHP (most 6yr. olds are better than I am at programming) then I ask that you fork the script on Gist and try to improve it.

Update Dec. 6 @ 5:34p: Kyle Slattery, follow Viddler team member, loves him some Ruby on Rails. As such he’s offered up this version of the script rewritten in Ruby.

Next up we have Anthony Sterling, self-proclaimed “PHP addict”, who has rewritten the script to make the configuration a bit easier. He also changed the way the cache is saved. He’s using a hashed version of the title for each post as his key. I do not believe this to be the best way to go, since post titles can easily change after publishing – but I do like that the script is about 20 lines shorter and the code is arguably cleaner.

Thanks to both Kyle and Anthony for their versions. Lets keep this going and see if we can get this script much more succinct, stable, faster, and usable by others?