Intridea Company Blog
Sketchnotes from the UIE Roadshow
I recently had the pleasure of attending the User Interface Engineering Roadshow in Washington, DC. The day was chock-full of insight and wisdom from usability guru Jared Spool, founder of UIE.com. In taking notes during the workshop, I decided to take my first official shot at sketchnoting. The results are as follows:
Overall, I found this experience to be wholly satisfying. Putting key ideas into sketches required an interesting use of my attention span: in addition to listening intently to the ideas being communicated, I was simultaneously forced to employ creative sketching solutions that would properly embody the most important parts of the talks.
Upon returning home from the Roadshow, I was quite surprised to find these sketches spanning 5 full pages of my notebook. Upon scanning the notes and adding a bit of chronological organization, I’m left with a sort of visual map of the workshop (as I experienced it). I hope these notes might be of interest to others who attended.
As for adventures in sketchnoting? I look forward to continued exploration when the proper circumstances arise in the future.
Built For Speed: Using the AssetPackager Plugin
Inspired by the recent launch of code.google.com/speed, I decided to sit down and see how I could apply their guidelines. This is the first in a series of posts on improving front-end performance for your Rails applications.
First of all, we need to create our sample application. Recently, I’ve been using Beet, a gem for generating Ruby projects, but you can create your local version however works for you. Using Beet, the following command tells the Rails generator to use MySQL, remove unused files (public/index.html, etc.) and initialize a Git repository:
beet -g built_for_speed -r="rails/db/mysql, rails/clean_files, rails/git"
Next, let’s create a Post resource:
script/generate scaffold Post title:string body:text
Make sure your databases are created, and run the migrations. Note that for the purposes of this tutorial, I’m running the application in production mode (to better see the speed benefits), using Passenger on my MacBook Pro. By the way, I highly recommend the Fingertips Passenger preference pane for managing your sites locally.
RAILS_ENV=production rake db:migrate
Now let’s add the Blueprint CSS framework. Download the latest version from blueprintcss.org and unpack it somewhere. Blueprint provides you with compressed versions of the CSS files, but humor me and add the uncompressed versions. From the unpacked directory, copy all the CSS files from /blueprint/src/ into /public/stylesheets/blueprint/ in your application.
Before we start up the application, let’s add the CSS files as well as the default JavaScript files to the head of our posts layout (/app/views/layout/posts.html.erb). The head of your layout file should look something like this (note that I added my own base.css file):
<head>
...
<%= stylesheet_link_tag 'blueprint/reset', :media => 'projection, screen' %>
<%= stylesheet_link_tag 'blueprint/typography', :media => 'projection, screen' %>
<%= stylesheet_link_tag 'blueprint/forms', :media => 'projection, screen' %>
<%= stylesheet_link_tag 'blueprint/grid', :media => 'projection, screen' %>
<%= stylesheet_link_tag 'blueprint/print', :media => 'print' %>
<!--[if lt IE 8]>
<%= stylesheet_link_tag 'blueprint/ie', :media => "screen, projection" %>
<![endif]-->
<%= stylesheet_link_tag 'base', :media => 'projection, screen' %>
<%= javascript_include_tag :defaults %>
</head>
Okay, now let’s fire up the application. I’ll be using Firefox so we can profile the application using YSlow. Go ahead and create your first post. Once you’re looking at the ‘show’ page, let’s open up Firebug and click on the “YSlow” tab. On the YSlow screen, click the “Run Test” button to get your page grade.
Bummer, we got an overall D – not so good. Let’s take a look at what’s going on. YSlow grades are listed in order of importance, so let’s check out the first section: “Make fewer HTTP requests”. Looks like we got a C in that area. What can we do to improve our grade? YSlow gives us some tips: “combine multiple scripts into one script, combine multiple CSS files into one style sheet”. Before we get back to the application, take a look at the “Components” tab in the YSlow dialog.
Hmm, five JavaScript files for a total of 234.3K and six CSS files for a total of 18K. We definitely need to work on that.
In order to compress JavaScript and CSS files in my applications, I use Scott Becker’s AssetPackager plugin. Go ahead and install it:
script/plugin install git://github.com/sbecker/asset_packager.git
The first step after installation is to create the configuration file for AssetPackager:
$ rake asset:packager:create_yml
You should see a message to reorder the files under ‘base’, so let’s go ahead and do that. Open up the newly-created /config/asset_packages.yml file. You’ll notice that there are two top-level entries – one for ‘javascripts’ and one for ‘stylesheets’. AssetPackager should have correctly generated the required files for the ‘javascripts’ section, but we’ll need to add the Blueprint files. Your completed asset_packages.yml file should look something like this (again, I added a base.css file):
---
javascripts:
- base:
- prototype
- effects
- dragdrop
- controls
- application
stylesheets:
- base:
- blueprint/reset
- blueprint/typography
- blueprint/forms
- blueprint/grid
- base
- print:
- blueprint/print
- ie:
- blueprint/ie
Now that the config file is set up, you can go ahead and generate the combined, minified JavaScript and CSS files:
rake asset:packager:build_all
This command will output a “[name]_packaged” file for each entry under both ‘javascripts’ and ‘stylesheets’. Now we have to tell our application to use those compressed files. Go back to your posts.html.erb layout and change the head to look like this:
<head>
...
<%= stylesheet_link_merged :base, :media => "screen, projection" %>
<%= stylesheet_link_merged :print, :media => "print" %>
<!--[if lt IE 8]>
<%= stylesheet_link_merged :ie, :media => "screen, projection" %>
<![endif]-->
<%= javascript_include_merged :defaults %>
</head>
Okay, now it’s time to see the fruits of our labors. Restart the application in the Passenger preference pane, and reload the post page in Firefox. Now let’s run YSlow again. This time, you should see output like this:
Alright! We’ve improved our grade up to an overall B, with an A for “Make fewer HTTP requests”. Let’s take a look at the ‘Components’ tab.
Thanks to AssetPackager, we’re down to one JavaScript file for a total of 171.7K and two CSS files for a total of 12.6K. Now there’s eight fewer components, and we’re saving 68K of bandwidth on each request. Nice work!
The source code for this sample application can be found at: github.com/dramsay/built_for_speed
Check back for more performance tips in the future.
Quick Tip: Railsy Array Checks in jQuery
I love the any? and empty? convenience methods that Rails and Ruby provide, they make conditional statements much easier to read. I also really dislike the default method of checking this behavior in jQuery:
if ($('some.element').length > 0) {
// ...do something
}
Well, luckily jQuery is ridiculously easy to extend, so why not just mix that functionality in with a couple of quick shot plugin methods? Just add this javascript sometime after you include jQuery:
jQuery.fn.any = function() {
return (this.length > 0);
}
jQuery.fn.none = function() {
return (this.length == 0);
}
That’s all you have to do! Now we can make the same call as before, but it looks a little cleaner:
if ($('some.element').any()) {
// do something more readably...
}
UPDATE: Apologies, I added in the empty bit as a last-second update to the post and forgot to check and realize that empty() is part of jQuery core. Updated the name to none instead.
Intridea's Hackon in Portland, Maine
I’m pleased to announce Intridea’s Hackon, a 3-day co-working and unconference event we’ve organized at the Portland Harbor Hotel in Portland, Maine June 18-20th.
Thursday and Friday (17/18th) will be for informal hacking, coworking, and discussion and as we attempt to backfill interesting talks for Saturday (20th).
The Hackon is intended to bring local software craftsman together to work on projects, exchange ideas, hack on open source, or just get some work done. There will be wifi, projection, food, and valet parking at the hotel.
And because we love developers and the community so much, we are hosting this event for FREE! Yes. Free. If you want to attend we only ask that you RSVP ahead of time so we can ensure that enough food, space, and power available.
Thank you to MERUG, NHRUG, and #Progmatica for their support and their assistance in spreading the word!
Please head over to intridea.com/hackon for details, rsvp, and talk submission.
Present.ly Mentioned as a Best-Bet Collaboration Tool by Inc. Magazine

In the June 2009 issue of Inc. Magazine, Present.ly was mentioned as one of the best-bet collaboration tools for mobile users. It's becoming more apparent that companies need online collaboration tools that help alleviate the hassle of back-and-forth e-mail conversations and allow users to share information and documents. The article states that 22 percent of companies use real-time collaboration software and around 24 percent use document-sharing software, which Present.ly supports out of the box. It goes into detail on how to choose the right collaboration software for your company and provides real-life examples from different companies.
We are more than honored to be mentioned in a magazine that we all frequently read. If you get a chance, pick up the June 2009 issue of Inc. Magazine.
Visualizing Data: the Sampras & Federer Title Race
With Roger Federer’s recent win of the 2009 French Open, he is now tied with Pete Sampras for holding the most Grand Slam titles — fourteen. Although the two athletes have arrived at the same destination, how do their respective journeys compare with one another? With this question fueling my curiosity, I set out to create a rich visualization of the data to add some depth to this story.
The final product is available as follows. For additional notes about the techniques used to create these graphs, keep on reading.
Here are some tips & techniques I employed to put this together.
Have Your Data Ready
Before diving into Illustrator (or whatever your tool of choice may be), spend the necessary time finding all of the data you will need for your graph. Go the extra mile to arrange and label everything properly — you may return to the data at a much later time and will be glad you did yourself the favor. Aside from reaping the benefits of good organization, this step is additionally helpful in keeping the grunt work of data-fetching separate from the creative requirements of the task.

Start with the Simplest Graphs Possible
An elegant, attractive graph is seldom created from scratch. There are usually a number of tried & tested variations that must be wrestled with before arriving at the final product. With this in mind, a good first step is creating some bare-bones, stripped down graphs to get bird’s eye view of the data. This phase is all about finding the approach that will best server your original vision. Sketches work great in this stage.

What is the story you want to tell with your data? This is an important question to keep in mind, as different visualization approaches will yield different results. Play around with things. See what looks good as well as which data comparisons are intuitive and interesting. Seek feedback from friends or colleagues who might offer a valuable opinion.
Using the Grid
Before long, it will be time to create your final, finished product. At this stage, the very most important thing you can do to keep things looking straight and orderly is use Illustrator’s grid feature. You’ll want to make grids visible (CTRL/CMD + “), as well as enable “Snap to Grid” (CTRL/CMD + SHIFT + “). Additionally, you may want to go into Illustrator’s preferences to customize the grid spacing and subdivision width (which you can modify at any point).

Another useful tip to keep in mind when using grids extensively is enabling Overprint Preview (CTRL/CMD + ALT + SHIFT + Y). This will have the gridlines appear on top of all objects & paths, allowing you to eliminate any guessing that might otherwise be required in keeping things properly arranged.
Using Layers Wisely
Keeping your objects arranged in layers is a huge time-saver when dealing with moderately complex projects in Illustrator. This was especially true in my case of creating four separate graphs, each of which contained separate groups of objects. For example: if I wanted to modify the color of the Roger Federer graph plots, I’d only need to target the layer “Federer” and all plots (on each graph) would become active.

Layers can also be locked, combined, or temporarily hidden to make document management easier.
Go Forth and Visualize
And that’s it! Combined with a simple bit of color and typography, you can transform any crude visualization into an attractive graph. Keep in mind that data in itself can be rather inert; though when arranged in a conscientious manner it can tell an interesting story. Hopefully the techniques above can be of use in recreating your own graphs of a similar nature.
AlwaysOn and KPMG Global 250 Competition
We are very pleased to announce that Present.ly has been nominated for the seventh annual AlwaysOn and KPMG Global 250 Competition! This truly is an honor as the AO Global 250 Competition nominates only the best and brightest emerging companies in the global marketplace in several categories. Our selection for the competition means that AlwaysOn and KPMG think that we are “demonstrating significant market traction and pursuing game-changing technology.” The winners are announced in July, and our fingers are crossed, but simply being nominated is an honor. Thanks AlwaysOn and KPMG!
NVTC Hot Ticket Awards Nomination
We are honored to announce that we have been nominated for the Northern Virginia Technology Council Hot Ticket Awards! These awards recognize the hottest companies in a number of categories, and this year we are competing in the Hottest Bootstrap category. The announcement of winners will be held on June 24th, and all of us are truly appreciative of this nomination.
Present.ly Wins WebWare 100 Editors' Choice Award!

We are extremely excited to announce that Present.ly has been selected as a CNet WebWare 100 Winner in the Editors’ Choice category. The WebWare 100 is a list of the top 100 web applications of the year, and to be included as an editor’s choice is a great honor. Thanks to everyone who supported us in the voting and to all of our users for helping us get to this prestigious accolade.
This award shows the recognition that Present.ly is gaining as a tool for enterprise collaboration and a new way to collaborate with co-workers. This is going to be a great year for Present.ly and we have lots of big things planned, so stay tuned to this blog for some new announcements in the coming weeks.
As we celebrate our success, we would love to hear feedback from those who use our product to enhance their business communications. If you have suggestions or comments, feel free to send an e-mail to info@presentlyapp.com or just leave a comment on the blog!
Make it so with RSpec Macros
RSpec macros (like those in the fantastic Remarkable library) ease spec writing for repetitive tasks, but is that process more effort than it’s worth? No—it’s actually quite easy to write and include macros for your specs to do some of the standard heavy lifting.
This is a great resource to get started with how to write the actual macros (or custom matchers) themselves.
What tripped me up was how to actually include them in my examples. Monkeypatching is rarely a clean process. And, while the comments on that post mentioned a public API, how to use that API wasn’t immediately obvious (as with many things about RSpec).
In my case, I was looking to define a quick login! macro that would allow me to easily create a before block to log in as a specified user or just as a FactoryGirl generated one in a TwitterAuth based app. Here’s the module I wrote and stuck in my spec_helper.rb:
module LoginMacro
def login!(user=Factory(:user))
before do
@current_user = user
controller.stub!(:current_user).and_return(@current_user)
session[:user_id] = @current_user.id
end
end
end
So that was relatively straightforward and now what I wanted to be able to do was call it in my controller specs like this:
describe UsersController do
describe "#create" do
login!
it 'should etc. etc.'
end
end
As it turns out, RSpec offers the ability to add macros and matchers via the config.extend and config.include methods on the RSpec configuration object (extend is for class-level macros like the one I wrote here, include is for instance-level matchers). You just have to add this to your spec helper’s configuration portion:
config.extend(LoginMacro)
Voila! Now your specs will be able to use the login! macro to set up a user in no time.
Experienced RSpec users are already familiar with this, but I find that certain things can be hard to come across if you don’t already know how to use them. So I thought I’d blog for the benefit of others like me: this is an easy way to use RSpec macros.
Hacking the Washington Capitals Logo with Illustrator
While on a recent plane ride, I embarked on a self-imposed quickfire challenge to use Adobe Illustrator to design the text “@davidpots” (my Twitter username) in the style of the Washington Capitals logo. I was armed with only 45 minutes and a vector version of the Capitals logo; no internet connection would be at hand for additional assets (such as fonts, etc).
By the end of the plane ride, things worked out great:

Throughout the remainder of the post, I’d like to share an overview of the approach I took and the Illustrator techniques used to make this happen. The result is not merely a tutorial, but rather a broad look at some Illustrator skills any user might find helpful in such a situation.
Start With What You’ve Got
First step when resources are short? Make the most of what you’ve already got. While in a perfect world I’d have access to the font on which the Capitals logo is based, in this case I’d have to make due with the letters (or rather, shapes) that make up the source logo I was starting with.
Fortunately, “Capitals” and “@davidpots” have quite a few letters in common. My first move was to ungroup the shapes in the “Capitals” logo and move all letters that matched into their proper placement in their “@davidpots” counterpart.

After this first step alone, about half of the letters are already in place. What’s left? Creating the “@”, “d”, “v”, and “o”. Onward we go.
This Shape + That Shape
To create the remaining letters, I would have to create custom shapes based on the contours of existing elements. This would ensure the overall look & feel of the logo remained consistent.
Starting with the “d”, I saw that the base contours I’d need already existed in the “c” and the “l”. Through combining these two objects, the resulting “d” would retain the general shape of these other letters.

So far so good. While the remaining letters wouldn’t necesarily be as simple to create, the basic premise & approach would be the same.
Take This, Tweak That, and Drop the Rest
Next up is the letter “v”. After a moment’s investigation, it seemed the best way to recreate the bottom point of the “v” (with existing elements of “Capitals”) is through the upper-right corner of the letter “p”.

Unlike the creation of the “d”, this would require a bit more work. Instead of simply combining two separate letters to create a third, I would instead be transforming & tweaking part of a letter and then getting rid of the rest. I did it like this:
First, rotate the “p” 180 degrees…

Second, use the direct select tool to increase the height of the left “arm”

Third, use the Pathfinder’s divide function to get rid of excess shape at the top

And that’s it! The “v” is ready to be inserted into its namesake.

The exact same approach was used to create the “o”. Starting with the already-existant “p”, (1) the shape is divided, as to get rid of the unnecessary bottom stem. (2) Next, the remaining “corner” is duplicated & rotated 180 degrees. (3) Finally, the two remaining pieces are moved into place to form the “o”. Voila!

Round the Corner(s) & Tie Up Loose Ends
The final and most challenging letter to create was the “@”, which would require the most alchemy of the bunch. In summary, my plan would be to first (1) create the interior shape of the symbol, and second (2) use an external stroke to create the “wrap around” shape of the symbol — this would ensure the curves were 100% right-on. Here’s how I made it happen:
Creating the inner shape
The first step was creating the inner shape of the “@”. Locating all I would need in the base of the “d” contour, I simply created a dividing line and used the Pathfinder’s divide tool to make a clean cut:

Rounding the Corners, Part 1
So far so good — but I realized that I would need to round out the corners on the right-hand side of the shape I created (lest the sharp/jagged run wild and free). To make this happen, I first (1) spotted an existing corner “curve” in the “p”, (2) used the Pathfinder’s divide tool to isolate this corner, (3) and finally shifted this over into the contour of my original shape.

Rounding the Corners, Part 2
The previous “round the corner” approach was used one more time for the upper-right corner of the shape. This time I used an existing corner from the “a” to make it happen. Same basic steps:

Creating the Outer Wrapper
In order to create an outter wrapper for the “@”, I decided to use the object’s stroke. This would ensure the curves remained consistent in both contour and width. To make this happen, I first (1) gave an exterior stroke to my original object. Next, (2) an additional stroke of then wrapped around the shape again. Finally, (3) after expanding the strokes into proper shapes (Object > Expand), I used the Pathfinder’s divide tool to get rid of the undesired middle “red” section.

Finishing Touches
The very last step involves tweaking the lower-right section of the shape to complete the “@” transition. This involved (1) using the Pathfinder’s divide tool to once again get rid of the undesired portion of the outer wrapper. (2) Next, I created a small curved shape to join the two shapes, which was (3) moved into place and combined with both shapes to complete the task.

And We’re All Done!
And there you have it! All shapes have now been created. I needed only to align the items as desired and save my final product (which I now proudly wear as my Twitter profile pic in support of the team).
Could this have been arrived at quicker if I had the original “Capitals” font to work with? Of course! But that is removed from the point: this was instead about the challenge of a self-imposed quickfire task which forced me to think quickly & make the most of the resources at hand.
In closing, I must of course bestow the Caps with all the good luck I can muster for game 7 against Pittsburgh. It has been a truly epic series so far, and I trust Washington is going to bring it home to DC with their best performance of the series. Let’s go Caps!
RailsConf 2009: Twitter on Rails
And I’m back from RailsConf 2009! I had a great time and enjoyed meeting and speaking with a number of Rubyists who had previously only been @-names on Twitter. I also had a great time giving my talk, Twitter on Rails. Thanks to everyone who had a chance to make the session and especially everyone who made it to the Twitter BoF on Wednesday night. I got some great feedback and interesting ideas for future work.
I recorded my entire session as a screencast (a last-minute idea that I’m very glad to have had; with 30+ minutes of livecode the slides are only so useful), and I have also posted the slides (also embedded below) and the completed livecode. I’m happy to answer any questions about Twitter app development, TwitterAuth, or anything else since I didn’t have a chance to take questions during the session.
Thanks to everyone at RailsConf for making it a great conference, and hopefully I’ll see many of you at another Ruby event soon!
Earth Aid on Earth Day
On this Earth Day, we are happy to highlight our most Earth-friendly client, Earth Aid. We've been working with Earth Aid to build an innovative new service designed to help consumers reduce energy consumption and then reward them for their savings. This is the first service to bring carbon offset trading down to the individual level — previously carbon offsets had only been tracked and traded at the big business level.
Hear it first-hand from Earth Aid CEO, Ben Bixby:
"Households have a big role to play in the fight against global warming, but they’ve been left out of the $100 billion carbon market system that allows big business to earn rewards when they save. Earth Aid's service is the first tool that can measure and verify your energy savings, 'bundle' them with savings from other households, and then sell them on carbon markets, in the same way as big business."
From the day we started, we knew there would be significant technology hurdles to overcome, along with a tightly compressed development schedule. Earth Aid chose Intridea as their technology and design partner because of our reputation as an innovative company that excels under pressure.
Our team loves a challenge, and were able to get through even the thorniest problems that came up throughout development. Using our proven agile methodologies, we worked closely with Earth Aid to deliver feature-rich iterations that brought them closer to their launch point every week. Working in tandem, our design and development teams built a great looking user interface that was full of function and easy to understand.
Ben and the crew at Earth Aid are a pleasure to work with. Their enthusiasm for making the world a greener place is contagious, and our team voluntarily put in extra hours to help ensure a successful beta launch. We're looking forward to expanding the Earth Aid feature set and providing additional ways for individuals to reduce their footprint and earn money at the same time.
Please check EarthAid.net out and sign up today - not only will you do the planet some good, but you'll get paid for it, too!
TwitterAuth Supports 'Sign in with Twitter'
Twitter recently implemented Sign in with Twitter, a convenience layer on top of their OAuth solution that provides a better user experience for those making use of OAuth as a sign-in strategy for their applications. I have just added support for this new feature to TwitterAuth. This is available immediately to new applications made with TwitterAuth as the default implementation.

If you already have a TwitterAuth application that you would like to utilize the new sign in method all you need to do is add one line to each of your twitter_auth.yml environments:
authorize_path: "/oauth/authenticate"
You don’t need to reset any user data or make any other changes, and when you restart your server people should be able to take advantage of the new experience. Enjoy!
Present.ly Adds LDAP Authentication
We want to make Present.ly a seamless part of your organization’s workflow. To that end we are excited to announce a new feature that is finally ready to enter beta: LDAP Integration! With LDAP, you can allow your employees to use the same credentials to log in to Present.ly that they use to log in to your other business services, making it easier and more secure by utilizing your existing processes. This is especially useful for large organizations with hundreds of employees, as replicated logins create a great deal of stress and extra work.
To utilize the LDAP integration in Present.ly an administrator of your network needs to go to the Admin page and click on LDAP Settings. The administrator should then fill out the form that appears:
![test [Present.ly]](http://img.skitch.com/20090407-1b56yw3ax6b1xsascmmrjd8nme.jpg)
For more detailed information about LDAP usage, visit the LDAP Knowledge Base Article on the Present.ly support pages. This feature is available immediately for all claimed networks. It is still considered a beta feature at this point, so if you have any questions, concerns, or problems don’t hesitate to contact support and we’ll work with you to improve the system.
The Intridea Blogs
Blog Archive
- June 2009 (7)
- May 2009 (4)
- April 2009 (6)
- March 2009 (15)
- February 2009 (18)
- January 2009 (4)
- December 2008 (2)
- November 2008 (3)
- October 2008 (7)
- September 2008 (9)
- August 2008 (2)
- July 2008 (7)
- June 2008 (14)
- May 2008 (5)
- April 2008 (14)
- March 2008 (6)
- February 2008 (5)
- January 2008 (6)
- December 2007 (5)
- November 2007 (5)
- October 2007 (7)
- September 2007 (2)
- August 2007 (7)
- July 2007 (4)
- June 2007 (3)
- April 2007 (1)
Dave Potsiadlo








