Monday, November 17, 2008

ActionMailer with Gmail. Must issue a STARTTLS command first

If you ever tried sending e-mail via ActionMailer with gmail settings you may have received the following error:

530 5.7.0 Must issue a STARTTLS command first. k41sm7289021rvb.4

The problem is that Gmail requires TLS authentication but the standard Ruby net/smtp library doesn't support TLS.

Of course there is a helpful plugin created by Marc Chung to overcome this barrier. You can find it here and manually add it to your project or you can export it to your plugin directory.

$ cd vendor/plugins
$ svn export

Either way make sure you require 'smtp_tls'

Now all you need is to update your smtp_settings if you haven't done so already.

ActionMailer::Base.smtp_settings = {
:address => "",
:port => 587,
:domain => "",
:user_name => "",
:password => "password",
:authentication => :plain

You can now enjoy the benefits of a free email server.

Sunday, November 16, 2008

What happened to Save the Developers from IE6 movement?


Awhile back we found a nice site called Save The Developers that was dedicated to rid the world of IE6. The site was hosting some javascript that you could use to throw down a nice "Save the developers and upgrade your IE" message to the IE6 users of your site.

Well as of sometime recently that url redirects you to a Microsoft support site? WTF? Did Mr. Softy just crush these guys? If you have info on this I would love to know.

Conspiracy Theory? :)


Stop IE6 campaign logo

Stop IE 6. Another campaign against IE6.

Free the Web! Good luck guys.

IE6 hangs when downloading compressed images from AWS S3

Like many new sites we store uploaded user images to S3. We are always trying to improve the experience of users so recently we started compressing these images using gzip.

Well, it turns out that for some reason IE6 completely freezes for about 10 minutes when trying to download one of these files. Of course no problems in any other browser.

Luckily IE6 is only 12% of our user base, so now we are forced to have zipped and unzipped images.
Argh IE6! Save the developers!

I hope this helps someone as it drove us nuts trying to figure it out.

Thursday, November 6, 2008

Hotmail in Ubuntu fix

Not too long ago there was an update to Hotmail basically rendering it unusable in Ubuntu. This is just one more item to add to the list of reasons why Microsoft sucks. Personally I prefer Gmail but I have a legacy account on Hotmail that I must check every now and then.

After searching around for awhile I came across several solutions to get Hotmail working. One required opening up the about:config settings and changing the general.useragent.vendor from Ubuntu to Firefox. This works but it is required every time you restart your browser. There was also another solution that involved creating some .js script and placing it in your profile folder?!? Finally I found a somewhat decent solution. This should work in any Linux type system.

First you need to install the User Agent Switcher add on.

Then you need to create a new User Agent profile by going to
Tools -> User Agent Switcher -> Options -> Options

Then click on User Agents tab and hit the Add button.

Add the following fields:

Description : [whatever]
User Agent : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2008092417 Firefox/3.0.3
App Name : Mozilla Firefox
App Version : 5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2008092417 Firefox/3.0.3
Vendor : [blank]
Vendor Sub : [blank]

Here is what it should look like (some of the characters got cut off at the end)

Then click on OK OK

Now when you want to use Hotmail you can just quickly switch the User Agent Profile to the newly created one. When you are done, simply switch back to the Default Profile.