How I created a TwitterGroup for Gnomedex

twitbot.gifI see Dave has posted a few ideas that he’d like to be able to do with Twitter. His ‘use case #1’ is regarding the ability to subscribe to a kind of ‘reading list’ of people at a conference. Good idea! TwitterGroups are what we need! 🙂

So, while I was at Gnomedex, I wanted a way to track tweets (that’s Twitter posts, for the uninitiated ;p ) from others at the conference who were also on Twitter. A show of hands from the audience showed there were a LOT of us 😉 Naturally, I don’t want to have to follow every user and see everypost/tweet from them – I just want the ones relevant to the conference.

Having got the idea of how to do it in my head in the first morning session, I hacked it together quite quickly during the lunchbreak. It’s based very much like my Urban Dictionary ‘TwitterBot’ which will go and search for the (urban) meaning of a word, at the command of any follower.

So, here’s how I did it:
1. First, I set up an account, called @gnomenet

2. Then I set up a simple database table in MySql with a ‘status_id’ column and a ‘screen_name’ column.

3. I then invited people to ‘follow’ that account and instructed the followers to start a post with  ‘gd’ if they wanted their tweet to appear in the ‘group’ timeline – if they had something to say about the conference.

4. Then, I had a PHP script set on an automated cronjob to poll the followers.xml for the gnomenet account.  The followers.xml file always has the latest tweet from each follower, also providing the status(tweet) id and the follower’s screen name. It polled the followers.xml file once a minute, which is under Twitter’s API limit of 70 per hour.

5. When the script sees ‘gd’ at the start of a follower’s tweet, it then adds the screen_name and status_id to the database table. Then it sends that Tweet to the @gnomenet account after removing ‘gd ‘ from the start. This is easily done using Twitter’s very simple API.

6. The next time the script polls the followers.xml file, if it sees the same user posting the same thing (it compares each status_id with existing records in the database) it says to itself “this user already said that!” and ignores it.

7. If the follower does not have gd at the start of the Tweet, then the script goes and deletes from the database table any post from that user/screen_name  – ie: mostly, there is nothing to delete, as people don’t post to it all the time.

Doing this keeps the database table clean and compact. It worked pretty well for 52 followers! I wonder how many them were not even there at the conference! 🙂

This has a load of potential uses for TwitterBot automation and TwitterGroup creation, though I’m sure there might be a more graceful way of doing this. Happy to hear more ideas

Gnomedex was GREAT fun again – this was my third. But I have to say, I’m looking forward to the possibility of ‘GnomeStock‘ ;p

Flash on the iPhone

Since Bobby Scoble posted a link to a funny video earlier about the lack of Flash on the iPhone, it has sparked more discussion about it on the comments thread. Here’s my take:

If the iPhone had Flash support, then it would be very easy to build fullscreen web-powered applications for the device which *could* look and operate just as good as the native UI – without using Apple’s tools or Safari/js/wigdets UI and platform.

Mobile versions of Flash are an issue due to the differing Flash versions they can support. Eg: FlashLite for many Symbian, etc mobile phone platforms and often PocketPC can only support previous versions of Flash, say v5 or v6, which have limited support for xml and flv stuff people might want these days. Though that’s not to say that a hugely compelling Flash application can’t be built in Flash 5 or 6, because it can! (QuickTime has rubbish support for recent Flash too, btw)

But Flash is VERY GOOD at creating and submitting FORMS – which is more or less what every Web2.0 application does, be it up front or around the back of the scenes via JavaScript functions ie: AJAX.  Flash developers who have been building online interactive apps for years have hae the AJAX mindset for a very long time, programming switches and routines to work behing the nice shiny vector graphics, which might then go and hit a web based script and database on the server.

Does anyone know of Apple and Abode are indeed talking or not? Let’s face it, it would make for a great announcement and demo by P.T.Jobsnum! ‘One more thing’

People like ‘Some Guy‘ don’t seem to be able to see the Wood for the Trees (‘Branches for the Apples’?) with suggestions that it’s all about YouTube and the comparison between FLV and MPEG H.264.

Ho hum.

Social Fleshworking

Yesterday, Dave Winer says that ‘It’s time to open open Social Networking again‘ – I agree. (Though I will add that I wasn’t aware anything had ‘closed’ 😉

At about the same time he posted that, while sat here in a hotel in Cambridge MA, I get a tweet from a buddy who says there’s an impromptu Boston Twitter meetup going to happen in town tonight.

So, my mind starts ticking for a second, and bang!! I buy tweetup.com – hehe
I can already see a global network of communities building around it, ON TOP of the Twitter ‘platform’ – think multi-lingual global cityname subdomains. Aggregate feeds of each, connected by the participants of the communities. boston.tweetup.com, london.tweetup.com, melbourne.tweetup.com etc, etc.

I *know* you get the picture. )

All this will need a calendar system of course. ;) Or we’ll all be late / early! ha!

Let’s turn colliding, fleeting, passing electrons into flesh-pressing real relationships.

This is BIG!!

And, my friends – the planet is SMALL! A LOT smaller than you think.

1 13 14 15 16 17 47