Icon_search
Stephanie Sharp Buck Sharp Kim Landrum Travis Roberts Colin Jones Natalie Glenn Andrew Reifman Charlie Maffitt Kelly C. Jones Juli Tredwell
Profile

Adam's Blog

RSS

Removing Desk Clutter

Posted on 12/15/2006
1 Comment

Ever since I bought my MacBook and made the switch to OSX, I have found the Stickies app to be quite useful. Even more useful would be a web based app that I could access from anywhere. Today I have found it. Save a tree and your desk.
Stikis

Tagged:  productivity

Back to top

Firefox Crashes on Gmail

Posted on 12/15/2006
4 Comments

Last week I noticed that every time I tried to compose an email in Gmail, Firefox would have a hard crash. I figured it was something in the javascript and left Gmail alone for a few days since it is Beta. This week I decided to try it again and I experienced the same behavior. In an effort to debug this problem I tried Gmail in all the browsers that I had installed. I had the same crash in Camino and Opera but it worked fine in Safari. After much poking around I found that my Palatino font was corrupted. After replacing the font everything was fine.

Tagged:  Gmail, firefox

Back to top

Yes. Significant shrinkage!

Posted on 12/08/2006
0 Comments

I decided to play around with reducing page weight today. I wrote this script to strip out new lines and whitespace. There wasn't a huge amount of difference in the individual file sizes but when you subtract 8-10k per file from the total document weight the difference is noticeable.

download shrinker.rb

Back to top

Rails Caching non HTML Files

Posted on 11/10/2006
0 Comments

Rails page caching is without a doubt the best way to speed up your application and reduce the server load. I decided to cache some XML I was dumping out for a web service and realized that Rails will cache the document as HTML. As long as the controller handles nothing but xml you can do the following as a work-around:

class LinkApiController < ApplicationController

  session :off
  skip_before_filter :check_authorization

  LinkApiController.page_cache_extension = '.xml'
  caches_page :get_stuff

  ...
end

Tagged:  ruby, rails

Back to top

4 8 15 16 23 42

Posted on 10/04/2006
0 Comments

01010111011001010010000001000010011101 01011010010110110001100100001000000101 01110110010101100010001000000101001101 10100101110100011001010111001110011001

Tagged:  lost

Back to top