Toronto TechDays Speaker

Thursday, 13 August 2009 13:19 by SyntaxC4


Over the past year I've been getting more involved in the Technology Community. Knowing you can only learn so much between the hours of 9-5, I took to my personal time to start learning other Frameworks, Technologies, and Patterns & Practices.  After making my way in to new areas of the .Net Framework I thought it would be a great idea to start studying for my MCTS: Client Based Web Development Certificate.  I bought the Self Paced Training books [Exam: 70-536, Exam: 70-528] online and started reading it. I've never really noticed how easy it was to get distracted at home, I'd start into a chapter, and the next thing I knew I was cleaning my room.

One day I was looking at my RSS Feed and noticed a post from Joey deVilla on Canadian Developer Connection blog, his post on this new idea of "Coffee and Code" where he makes himself available for developers to come out to a Coffee shop and work along side him, and potentially ask questions about the MS .NET Platform.  Unfortunately, I read the blog post too late to make it out, but I though what an amazing idea, and the following Tuesday I launched "Guelph Coffee and Code".  Sure, I was a Junior Developer, and had no ties with Microsoft, but I figured why not meet more Developers in my area, share our knowledge, maybe teach each other things from our own personal experience.  On August 17th, Guelph Coffee and Code Celebrated 6 months of operation but that's a completely different story all together.

I also became involved with the Canadian Technology Triangle Dot Net User Group (CTTDNUG for short).  The group was dormant for approximately 9 months, so I got the gears grinding again and was able to launch an event in June.  I now hold the title of Speaker Coordinator and manage to pull in speakers from around the Greater Toronto Area (GTA) to come down to kitchener to speak at CTTDNUG.

After 3 paragraphs I know you're asking yourself, did Cory forget what this blog post is about? The answer is no, I wanted to share some of my advances in my Technicological Community before I got into the main story.

With the Starting to follow User Groups, I heard about Toronto Code Camp put on by Chris Dufour, and a wide range of other developers. So I signed up to go. I had my whole day planned out, I was going to volunteer in the morning, and catch the last 3 or 4 topics of the day.  So i started out the day helping out the Volunteer Centre of Guelph-Wellington with the 2009 Ontario Youth Volunteer Challenge Change the World Day of Action!  The event goes off with out a hitch, and I'm off to Toronto for Toronto Code Camp.

While on my way to Toronto I end up getting held up on the Gardiner Expressway due to an accident. So, after literally standing on the Gardiner I finally make it into the Manulife building and am greeted by Joey deVilla.  I explain the days events to Joey, who intern says he has a question to ask me that may cheer me up [He's Happily Married, Get your minds out of the gutter!]. Joey explains to me that he is responsible for finding speakers for Tech Days 2009, and wanted to know if I would be interested in Speaking.  I accepted!

I will be speaking September 29, 2009 on What's New in Silverlight 3!

How To: Using jTweetr plugin for jQuery

Saturday, 8 August 2009 10:23 by SyntaxC4


Ever find yourself wishing that your tweets could be easily displayed on your website? Surprisingly enough when I went looking for a tool to do this, there was a very slim selection.  I wanted something that would be easy to use, had clean [html] code, and was easy to style with css so that I could have multiple looks and feels with very little code.

At first glance a twitter feed looks like it would be best represented as an unordered list or ordered list, item after item that contains a picture and some text. This is the practise that was found throughout all of the twitter feed tools I found on the web. However, I didn't agree with the (un)ordered list approach, I wanted more, I needed my tweets to have a title so I knew what they were about. After putting some thought into the possibilities and the benefits of different tags, I decided upon the definition list tag. With using the definition list keeping each of the elements can be styled easily as the title is a separate tag than the tweets.

jQuery - Write Less. Do More.  

I had been learning how to use jQuery for a while as it definately speeds up javascript development. What better way would there be to implement the ajax then using jQuery?  Which lead me to think, what if I made this a plugin so I could quickly and easily display a list of tweets of all the different topics I tweet about. Thus, jTweetr was born.

Ok, Ok, I know what you're thinking, what's with all the back story.. GET TO THE CODE!

jTweetr Design by @BlakeStevenson

Anatomy of a jTweetr Call

Don't get scared, you don't need a Medical degree in order to use jTweetr.  It's simple, There are just a few parts to it.

jQuery Selector: The jQuery Selector is how you identify the html element you wish to use as a container for the jTweetr Feed. jQuery has done an amazing job with this selector functionality. You are able to select any element on a page using CSS-Like selectors. Options like:

  • #Container - For ID's
  • .Container - For Classes
  • #ContainerSpace > div - For any child div contained in an element with ID="ContainerSpace"
  • more selelctors...

jTweetr Query:  The Query is what you want to show up in your jTweetr feed. This is plan text with no special characters. Searching against users, hashtags, and more is covered in the next section. [the Query for the photo to the left is 'CoffeeAndCode']

jTweetr Options:  This is what makes jTweetr so unique, Every aspect of jTweetr is customizable.  You can change everything from the names of the CSS classes that are on the elements, to how many tweets it is to search for, to how long between requests to Twitter.

Options Overview

  • [TweetTypes] SearchType
    • Search (Searches for tweets containing a word in plain text)
    • From (Searches for tweets from a particular user)
    • To (Searches for tweets to a particular user)
    • Mention (Searches for tweets mentioning a user [includes to and from])
    • SearchHash (Searches for tweets containing a particular hashtag. [Default])
    • AppFilter (Searches for tweets that were sent using a particular Twitter Client)
  • [String] Title
    • [Query] (A replacement token that subs in your Query text)
  • [String] ListClass (CSS class placed on the DL Tag)
  • [String] TitleClass (CSS class placed on the DT Tag)
  • [String] TweetConClass (CSS class placed on the DD Tag)
  • [String] TweetClass (CSS class placed on the DIV Tag which is wrapping the Tweet Text)
  • [String] AvatarClass (CSS class placed on the IMG Tag which displays the users picture)
  • [String] ProfileClass (CSS class placed on a link of to a Users Profile)
  • [String] LinkClass (CSS class placed on a link in a tweet)
  • [String] EvenClass (CSS class placed on even DD Tags)
  • [String] OddClass (CSS class placed on odd DD Tags)
  • [LoadingType] LoadType
    • Text (Displays Text from the 'LoadObj' variable while the tweet feed is loading. [Default])
    • Image (Displays an Image from the url in 'LoadObj' variable while the tweet feed is loading)
  • [String] LoadObj
    • LoadingType.Text (HTML Formatted Text)
    • LoadingType.Image (URL to Loading Image)
  • [String] LoadError (The Text that displays if an error occurs while requesting tweets)
  • [Integer] NumResults (The number of tweets to get from the Twitter API. [Default=20])
  • [Integer] FeedRefresh (The amount of time, in seconds, between API Searches. [MinValue=60])
  • [String] Language (The two character language code for the Langage to search against. [Default='en'])

jTweetr Code

Future Features

If you see any places where jTweetr needs to be enhanced please comment on this post, and I will work towards implementing them.  Here are some of the current ideas I have for enhancements.

  • API Time Stamping - Getting the Time Stamp from the API will allow jTweetr to update only the most recent items, no longer refreshing the entire list.
  • Themes - Currently there is only the Official jTweetr Look. Please don't feel as if you need to stick to it. I will eventually work on rolling out some themes for easy adoption into any website.
  • CMS Modules - I will be working towards creating modules/plugins for the most popular CMS software so that jTweetr can be installed and configured in a CMS with little to no coding.

Downloads

Tags:   , ,
Categories:   jQuery | Twitter
Actions:   E-mail | del.icio.us | Permalink | Comments (3) | RSS

About SyntaxC4:

  • Cory Fowler
  • Guelph, Ontario
  • English
  • SyntaxC4

SyntaxC4 Tweets:

Posts by Date:

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

Archive:

Advertisements:

Tag Cloud:

Favourite Publishers:

Apress Daily Deal
Apress Daily Deal

Blog Roll: