As regular readers of my blog know I'm using Drupal's ActivityStream module to power the Life Stream page on my site. I've wanted to add an activity stream block and remove the twitter / lastfm blocks for a while now, but haven't gotten around to it until tonight. It's a short function but I figure I'll post it in case someone else is looking for it.
Just add the following function to activitystream.module
There are currently 3 feeds that I'm building and hosting here that I'm moving over to feedburner (mostly to preserve bandwidth). I'll be setting up redirects but for now they are just being replicated. The new links are as follows (I've updated the original posts as well):
When I added disqus to seanreiser.com I thought it was simple, but one of my tweeps asked for a howto so maybe it wasn't . Also I seem to have had a few hits on from google searching on "disqus drupal". So for the curious here's are the steps I followed.
I noticed that items from my activity stream were popping up in the last viewed (and potentially most popular content). As I'd rather not show these items I've changed statistics_title_list in drupal's statistics.module as follows:
function statistics_title_list($dbfield, $dbrows) {
return db_query_range(db_rewrite_sql("SELECT n.nid, n.title, u.uid, u.name FROM {node} n INNER JOIN {node_counter} s ON n.nid = s.nid INNER JOIN {users} u ON n.uid = u.uid WHERE %s <> '0' AND n.status = 1 and (n.type = 'story' OR n.type = 'page') ORDER BY %s DESC"), 's.'. $dbfield, 's.'. $dbfield, 0, $dbrows);
}
A couple of folks have asked why I am basically reinventing friendfeed and presenting my lifestream on seanreiser.com.
As has been documented, I have been playing around with putting a presence aggregator on this site. I've hacked around with the drupal activitystream module and came up with this. It's still very alpha, and subject to change but as time goes by. For example, I'm pretty sure I'm removing the list controls to get rid of the useless bullets (the icons are much better then the bullets in this case). When I have all my changes in place I'll post the code.
Since the beginning of the year I've written 3 small scripts that create RSS feeds w/ media enclosures out of sources without such feeds. In some cases the scripts are a little wanky because they rely on screen scraping to get the job done. I hadn't released the code since I always planned on doing more with it. As I haven't gotten around to it, I suspect I never will. As the scripts are working I might as well release them to the world at large. This is not the best code I've written, it just gets the job done.
The Story so far
By extreme stupidity I managed to flood twitter using drupal's twitter module installed on http://seanreiser.com My problem was that the twitter module tweets every new node, not ever new front page story as I thought.
First off, I'd like to make things perfectly clear, I use both my blog and twitter as a place to test technologies. There's always a possibility that something I do will cause a minor explosion. It happens rarely, but every now and then it's going to and I apologize in advance for this. This is a bit of a playground for me.
As is painfully obvious to my twitter-peeps last night there was a bit of a mishap involving twitter and my blog. In a period of a minute I basically retweeted my last hundred tweets or so. I'm posting what happened here so folks having similar issues can see what went on and how I'm handing it in the future and possibly some changes I'm making to the drupal modules in question.
So... on to my story. A few days ago I posted an entry about making my blog the center of my web presence basically adding friendfeed style features into my blog and using seanreiser.com as hub to access my online content.. While doing some research I found a drupal module named activity stream which grabs content from a number of services, creates drupal nodes for them and creates a stream for your site. It also accepts RSS and has a plugin system that allows you to create interfaces for services that it currently doesn't support. So, last night, being the curious person I am, I decide to install the module on seanreiser.com's drupal install and check it out.
OK, the first draft of my Social Graph Page is up. It's rather rudimentary. I'll be pulling data out of my other socnets and inputting them into the database in the next couple of days.
Right now it's only generating XFN compatible links... soon I'll have an FOAF file generated as well. Once I'm happy with it I'll post the code for the module.
I'm still importing contacts, so don't feel slighted if you're not on there (if you want to be, feel free to email me).
Sean Reiser, 40, is a developer, technologist, and amateur photographer. Sean has spent the past 20 years as a programmer, system architect and development manager. He is a life long New York resident.
Sean currently serves as the President and Chief Geek Officer of Repair Sense, Inc.. Please go to that site with any professional inquiries.
Sean can be found using a number of social networks. These are the ones he's most active on: