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

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.

OS Twitter and Services

twitbot.gifIn light of Dave Winer’s recent post about Twitter since the announcement on TechCrunch that some new API features are on the way, I thought I’d point back to a couple of earlier posts I made about these very subjects. Ie: Using Twitter as a ‘service layer’ and Open Sourcing the Twitter server (without SMS) – that post also talks about the’@dictionary word‘ TwitterBot which I created after having the idea as a proof of concept.

I think it’s great and all that people like Nik, Steve and Dave are looking at this too. Let them pick up the ball and run with it. (Ermm. Did I drop it? Ah I see, there’s more than one! Heh)

The new Twitter stuff will enable developers to write ‘GroupWare’ too by delivering messages privately. I hope that Obvious add ‘groups’ soon though. Also the ability to distinguish/register an account as a ‘bot’ as opposed to a human.

BTW : Bots should not have ‘friends’ – only followers. That’s how a ‘client/user’ can register with the bot/service more easily. Simply add the user account.

I also use Twitter for server alerts too, letting me know when somthing has completed or gone wrong – this will help ‘privatize’ them without needing an ‘alt’ account.

I started out by asking my followers where I could find a decent search engine that can respond to a ‘human question’ – after not finding a good enough one with a decent API, I plumped for the Urban Dictionary, which can provide very amusing results ;)

One of the unique things about Twitter is the difference in push/pull with info than we are used to. Usually we ‘push’ a post, then ‘pull’ the website or feeds. Here, we have also have Twitter not only ‘pushing’ email, but also SMS – for ‘free’.

That’s so incredibly useful. ESPECIALLY given all the places in the world where mobile phones work, but the internet does not. Third World etc. This should be exciting to people working in remote situations.

Open Sourcing the Twitter server without the SMS capabilities would make the central Twitter.com/Obvious server like the ‘Sun’ where all the other OS Twitter servers would connect like ‘Planets’ – Obvious could then handle and monetize all the SMS transactions (which the OS server might lack) by charging for this feature.

Tweet! Tweet! Kerrchingg!! 🙂

Oh and I’ve been building a new forum-like content/communications system with RSS and OPML at the heart of it. Imagine ‘structured Tweets’ – with the ability to also attach files – as a payload – can you imagine how easy it is to flow, connect and direct all these via RSS and OPML? Wow!

Twitter Down!

Wow. Looks like Twitter is having the biggest downtime to date. After a day of it crawling at very low speeds, refreshing on the other machine, it’s now firing in circles. Meaning that a hit to my Twitter seems to be constantly redirecting to itself. Odd. And painful (for the server)!

update: Now it’s “Twitter: down for maintenance—be back shortly!”

I think that the users out there with hundreds (some well over a thousand Friends) (Robert Scoble and Jason Calacanis, for example) are probably causing a huge strain on the databases while calling for updates, depending on their architecture.

It could also be that they are in the process of implementing a group feature. Which should enable a further filter to reduce heavy flow. I’m sure they’ll get it all fixed up soon.

It also means that as it’s down people can get back to blogging! Ha!

It’s a shame that this went down, as I did a quick favour for my friend Bre Pettis from Make: magazine and set up a simple PHP script to grab the latest updates from the Make: Craft: and Hacks: zine blogs and post them to their respective Twitter accounts, which Bre set up after I alerted him that those usernames were still available. 😉

Ask Urban Dictionary (via Twitter)

Well, here’s my first go at a kind of TwitterBot. 😉

http://twitter.com/dictionary

Ask for the definition of a word from the Urban Dictionary via your Twitter account. It’s easy!

First when signed in to your Twitter account, go to the twitter.com/dictionary page and ‘add dictionary’ to your list. This will add you as a ‘follower’ of the dictionary system.

To request a definition, all you do is post to Twitter :

@dictionary word

[at dictionary space word] – where ‘word’ is the word you’re looking up 😉

It’s not too great on multiple words but some work.

THEN WAIT for your reply. It will only take a couple of minutes, as the system checks for requests every couple of minutes (for now)

If you post another Tweet before getting your reply, it will miss it out.

Note that as a ‘follower’ you will also see all the other requests too from other people. So you might need to leave and add as you need to. See how things go. It can be pretty funny 😉

Have fun! 😉

UPDATE : More discussion from Dave Winer 

Twitter Posting with PHP and Curl

As it’s so utterly and incredibly easy to do this, I thought I’d add to the resources of how to post to message to your Twitter account using PHP and Curl.

So, to add to the other PHP scripts I’ve been plonking out here, here is the PHP source code to a simple  function which will post to a Twitter account. Send data to it from a form or a service, or even another script, even from an llHTTPRequest from an LSL script in Second Life! Easy and interesting stuff, that messaging. 😉

Here you go: http://kosso.co.uk/twitter/twitterCurl.phps

More Twittering…

I see that Scripting News has been thinking of Twitter. I’m surprised at the reaction from someone who usually see so much potential in simple things. (Something seems to be up over there too – I tried to comment but they vanished)

UPDATE : More discussion from Dave Winer

At first, I thought – “so what’s so great about this Twitter thing?” – it’s just blogging with just titles. One-liners. With contact lists. Aggregation of those contacts’ one-liners. And an SMS communication layer to distribute those short messages away from the desktop…without the internet.

oh, hang on.. 🙂 — hmm…aha!

To me, it’s the SMS layer to mobiles which makes this interesting. It’s very easy to duplicate – but not so easy to pay for. But SMS ‘can’ make a lot of money (but for who, eh? *nudge*)

The actual content back end must be very simple indeed – but no idea about what they are doing with scaling that, but it seems to get better and worse now again, which means they are constantly tweaking it I imagine.

They say they will be adding groups. This is a good idea, as it will extend what users can do privately – and that means it could be used for businesses.

Also, through the very simple API it’s easy to build stuff on top of the comms framework they have there. Some useful. Some for fun.

Some sites have started to ‘ping’ their TwitterBots (which have no friends – as they don’t read – but many followers) with the latest updates to their systems – Techmeme, BBC, CNN, Podcast.com, etc. – It’s a little river of news, mashed up with commentary, streams of consciousness – and the mundane. I have a little function on my server, using PHP and Curl to ‘Tweet’ me from a special account when something goes wrong.

I’m toying with couple of usernames which I am ‘Sqwitting‘ (That’s username squatting on Twitter, folks) which I plan to make respond to certain calls and queries after any user who the ‘befriended’ the account calls using @question or @answer – which has now become the de facto way to openly reply to another one of your friends. It’s easy to list recent posts from friends with the API, so why not get it to ‘look’ for @name calls? *Bingo!* It’s like a machine!

There are heaps of combinations of feeds – in different formats – to play with and construct all sorts of useful things – all with that very handy SMS layer 🙂 It won’t be long before someone builds something very useful based on this system. But only when it’s reliable and faster! 🙂

Rex Hammock quotes a great line from Joi Ito on how Americans, when looking at new technology immediately ask, “What’s the business application?” In Japan, however, new technology is handed to children who are told, “Go play with it.” The kids play and do stuff that later becomes things that others realize would make sense also in a business context.

Great stuff!

Bloghud is Twitter on Acid in a Virtual World 🙂 Think what will happen to Twitter when we can easily add our Geo location latitude and longitude! (Still waiting for my Nokia N95 😉 )

In addition

(and I think this is important)

I think that they should Open Source the main Twitter server system structure NOW. Before it gets cloned all over the place. (As happened with YouTube, etc)

All except the SMS layer. There is a huge potential business model in then creating that connection between all the various ‘TwitterPlanets’ in the ‘TwitterVerse’ to that SMS layer to enable that which is most valuable – staying in touch with the network while away from the desk or internet using a device most of us already have in our pockets.

The potential here and NOW is huge. They could wrap this up. Think of all the extra features that could come from it. Think of all the useful ‘special agent bots’ – each with different abilities from different (Twitter)planets. How that could also help the ‘mother hub’ itself. It’s almost a model of what will happen when Linden opensource their Server system. The universe, metaverse and Twitterverse will benefit.

What do you think?

Twitter Saves Souls!!

Yes folks, head on over and free your souls from all your sins!! 🙂

http://twitter.com/confession

SIN in 140 characters or less!! Anonymously get it off your chest!

Go to http://kosso.co.uk/twitter/confess

The Twitterati forgive you!! Follow us Brothers and Sisters! Have mercy on your mobiles!

Disclaimer: This service has not been approved by any deity or creed. No infringment is intended.

There’s been alot of bloggering about twittering recently – and hardly surprising, as most of the people at SXSW are using it to keep in touch of what’s on. Great stuff! Pwned!

I have had a load of thoughts and ideas about Twitter recently, but that’s for another ‘tweet’ .. 😉

Follow me at http://twitter.com/kosso

Twitter

Cliquey? Kinda. – In a good way, for now – Fun? Ish. Free? Yes. Addictive? Errrr… Maybe! 😉

Best thing is – it’s dead simple.  One liners.

It’s very much like the way blogHUD works too – many people use one liners there, as doing longer posts, using notecards can be a PITA.