Silverlight Twitter Client (and source code)
Building a Twitter client in Silverlight using Visual Studio 2008 and Expression Blend 3. You can download the source code at :
BESUG Silverlight Workshop @ Thibaut Van Spaandonck’s blog.
Building a Twitter client in Silverlight using Visual Studio 2008 and Expression Blend 3. You can download the source code at :
BESUG Silverlight Workshop @ Thibaut Van Spaandonck’s blog.
You can interact with your co-workers on Present.ly right from your Desktop using a light-weight application. You can also use our mobile applications below to interact with your co-workers anywhere you go. Also, all of our applications are open-source and can the source for them can be found here.
Choosing between memcached and an IMDG
Memcached enables us to to store the data (tweets) in a distributed memory set and read it in a scalable fashion. Having said that, be aware that memcached is not transactionally-safe and is not designed for reliability (i.e., it doesn’t support fail-over and high availability). That means that if we use memcached or something similar, we will have to use a database as the back-end. Every tweet posted will have to be written to both memcached and the database in a synchronous fashion to ensure that no tweet will be lost. This approach may be good enough for scaling read access, however, for writes and updates it offers limited scalability.
On our team we thought it’d be useful to auto-post Blocker defects from Jira to our presently stream. The gems httparty and jira4r made it easy.
Here are the steps:
1. Install JIRA, create a user
2. Create a Filter for the defects you want to auto-post, get the ID for that filter from the URL when viewing it. ‘jiradmin’ in this example
3. Create a user on presently to post from. ‘jira’ in this example
4. Create a cron or windows tasks to run the following ruby code once per hour:
jira_presently.rb
#!/usr/bin/env ruby
require ‘rubygems’
require ‘httparty’
require ‘rexml/document’
require ‘jira4r/jira4r’
# make a HTTParty object for integrating with presentlyapp.com
class Presently
include HTTParty
# Presently api url
base_uri ‘https://[EXAMPLE].presentlyapp.com/api/twitter’
#jira presently user credentials
basic_auth ‘jira’, ‘[PRESENTLY PASSWORD]‘
default_params :output => ‘json’
format :json
end
# link to your JIRA server and credentials
JIRA_URL = “[http://jira.url.com/]”
jira = Jira::JiraTool.new(2, JIRA_URL)
jira.login(”jiraadmin”, “[JIRA PASSWORD]“)
# Look at key in JIRA filter URL to get ID for the filter
issues = jira.getIssuesFromFilter(10112)
issues.each do |issue|
# post for the last 1 hour
if Time.parse(issue.created.to_s) > (Time.now – 60*60)
issue_post = “Blocker: ” + issue.key + ” – ” + issue.summary[0..75] + ” #{JIRA_URL}/browse/” + issue.key
puts Presently.post(’/statuses/update.json’, :query => {:status => issue_post}).inspect
else
puts issue.key + ” is older than 1 hour”
end
end
collaboration, httparty, jira4r, present.ly, presentlyapp, ruby, twitter, web2.0