Further explorations of the TweetsToRss tool

I am using the TweetsToRss tool created by Dave Winer to get a set of tweets for a Twitter user and convert it to a RSS feed (wrote a previous blog post comparing this tool and Granary). When I started using the tool, I saw that it only listed tweets created by the user (no replies). I decided to look at how to add replies as part of the RSS feed.

Twitter has an API reference page for data contained in a user timeline. I decided to review TweetsToRss to see if some of this data was present. In tweetstorss.js, there is an array called “params”, which sets screen_name to the variable username, and trim_user to “false”. I was thinking that I would have to add some additional parameters to this array based on the API reference page. However, upon further review of the source code, there was some logic to not add replies (lines 437-441):

[cc lang=javascript]
if (flSkipReplies) {
if (thisTweet.in_reply_to_status_id != null) { //it’s a reply
flInclude = false;
}
}
[/cc]

The value of flSkipReplies is set to true in line 36. I changed this line to set flSkipReplies to false, and was able to see replies in the RSS feed – yay!

One last thing – I tested having flSkipReplies set to both true and false, and saw that the version of the RSS feed with replies had 20 items, where the version of the RSS feed with no replies had only 10 items. May still be a thing or two to play around with here….

This is a good thread if you want to finish things…

How I am getting things done on Christmas projects

TL/DR version: make a short list, break tasks down, prioritize, be gentle with yourself

Full version:

My company has a holiday shutdown at the end of the year, and I usually take enough vacation so I get a two week break – nice! In the past, I have tried to take advantage of this time to do lots of things, but ended up not completing a lot. This year, I decided to change how I approached this opportunity:

Step 1: Make a short list of projects to accomplish

After reviewing the things I might want to do, I settled on two large tasks that I had not made any progress on in the last month. One was a writing project to document the tools and processes I used to create and publish the Portland Protest News website. I had an outline that was several months old, but had not made time to get this done. The second task was starting to read How to Engineer Software by Steve Tockey. I had watched some videos of him talking about the use of semantic modeling, and was intrigued enough to buy his 1100-page book. However, it has been sitting on my desk for almost a month, and I had only opened it once.

Step 2: Break tasks down

For the writing task, I decided to go for a daily word count of 500 words per day, following Jeff Goins’ Three Bucket System for starting a writing habit. For the reading task, I set a goal of one chapter a day. With these constraints, I hoped that I could fit these in around holiday activities and still feel a sense of accomplishment.

Step 3: Prioritize

I worked to try to do these as soon as possible each day. That did not always work, but knowing that these were my most important items to get done helped me to maintain focus.

Step 4: Be gentle with yourself

If there was a day where I did not get both tasks done (or maybe none!), I decided that was going to be ok. After all, this was a vacation, not a job!

Results:

I have completed my first week of vacation, and managed to write at least 500 words each day. I completed 5 chapters in the book, so there were two days I did not complete my reading task. But that’s ok! I feel good about what I have gotten done, and managed to fit in a few more things (like this blog post).

I hope this is helpful – let me know what you think about my method!