Using Capistrano to deploy Drupal (or other non-Rails) projects – step 1

Step 1: install RVM, Ruby 1.9.2 and Capistrano (or skip to step 2) These instructions will leave you with a single-user RVM installation. This works for me because I’m only deploying with one user. If you want more than one user to have access to RVM-installed Rubies on your server, you’ll need go the Multi-User...

Testing Rails 3 with Guard and Zeus

Zeus is a really great tool for speeding up development in Rails 3. It “preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.” Guard responds to changes in your files, making it easy to automate tests. guard-zeus-client tells Guard to use Zeus...

Git Subtrees

I’ve been working on a Spree project recently and decided to open source a couple of the extensions about half way through development. After doing a little reading here, here and here I decided a better fit would be to use a subtree. I broke the extensions off into their own repos, forked them to...

RVM aliases

Problem: I recently upgraded RVM, and now every time I cd into a directory with a .rvmrc file that has ruby_string="ruby-1.9.3", I get this warning: ruby-1.9.3-p392 is not installed. To install do: 'rvm install ruby-1.9.3-p392' Unfortunately, I’m too busy to install the newer patch level Ruby right now. Solution: Create a RVM alias that points...

View SCSS in Chrome Dev Tools with Source Maps

@paul_irish recently tweeted about this ( I can’t find the tweet right now so I’ll just summarize ) The one nice thing about writing vanilla CSS is that when something breaks or needs to be tweaked you can pop open the dev tools and find the exact file and line where the offending CSS lives....

Use SSH agent forwarding to deploy via Capistrano

Setting up and maintaining deploy keys in github can be annoying. If you’re looking for a workaround, follow github’s instructions to deploy using your own personal SSH key. Moving forward, we’ll assume you’ve generated SSH keys on your local machine. Step 1: add a few lines to the ~/.ssh/config file on your local machine. We’re...

Update WordPress & Plugins over SSH

For security reasons, we don’t typically enable FTP on any of our servers. WordPress downloads core and plugins via FTP, so updating usually involves doing it locally and then deploying the changes. In most cases WordPress core isn’t included in the repo, so that has to be done manually : ssh into the server, wget...

Serving @font-face fonts to Firefox from an S3 bucket

I’m building a Rails site that uses the excellent asset_sync gem to push my assets up to an S3 bucket on deploy, and I ran into an issue where @font-face fonts were rendering fine in all browsers except Firefox. After a little googling, I found that it’s an issue with Firefox’s “file uri origin” policy. http://stackoverflow.com/questions/2856502/css-font-face-not-working-with-firefox-but-working-with-chrome-and-ie http://stackoverflow.com/questions/5008944/how-to-add-an-access-control-allow-origin-header The...

What is a modern web application?

On Sept. 10th I attended a presentation by two Developer Advocates at Google, Pete Lepage and Jan Kleinert. Pete was kind enough to share the slide show he used for the presentation on his website. I found it very informative and thought I’d share a summary. The subject of the presentation was : What is a modern web application?...

Setting up MCFileManager on Drupal 7 with Capistrano

I needed to install MCFileManager on a capified Drupal 7 project.  I followed these instructions, but changing the upload directory and getting things to work with Capistrano was slightly complicated.  Here are a few lessons I learned… 1. The filemanager module must be installed in /sites/all/modules I’ve been installing all contributed modules in /sites/all/modules/contrib, but this didn’t work...

Blendercise!

One of the great things about working at Blenderbox is being surrounded by people that are constantly trying to better themselves in one way or another.  Blenderboxers are a curious bunch, always looking to do more, learn more, and create more, and in no instance is this more apparent than during the semi-annual celebration of...

Launched: the New + Improved Backbone NYC

Earlier this week, on behalf of longtime client Backbone NYC, Blenderbox launched the newly-redesigned backbonenyc.com. Back in 2005, Blenderbox created a compelling Flash-based website to showcase Backbone's high-quality retouching and pre-press capabilities.  In the intervening years, Backbone's already robust portfolio grew by leaps and bounds, eventually outgrowing their portfolio section. paper writing service With the...

Introducing Compost

This past weekend was the Rails Rumble and a team of intrepid blenderbox developers hunkered down in our Brooklyn headquarters and, in a mere 48 hours, produced a slick new web app: Compost. Compost is the simple way to post, share, and present your design comps. More than just a slideshow, Compost allows you to...

Amazon invests in Engine Yard to take Rails further into the cloud

Engine Yard has just closed a second round of funding for $15m, including contributions from Amazon, with the focus on increasing their hosting platform and community-driven open source projects. According to Ezra, “We’re going to use this money towards making Ruby the platform of choice for cloud computing and web development in startups and the...

Flash to get better indexing in search engines

Adobe has finally publicly acknowledged their very important problem with SEO and Flash and has made an effort to make Flash content easier for search engines (specifically Yahoo! and Google) to index by collaborating with both Google and Yahoo!. From the press release: Adobe is providing optimized Adobe® Flash® Player technology to Google and Yahoo!...

Colin Moock interviews Jim Corbett

A really nice interview with one of the flash player engineers. They talk about ecmascript 4, the future of the web browser, silverlight, actionscript 3, web politics, etc. It’s really worth a watch (or listen in my case). watch it on the FITC site via colin’s blog

Processing.js

John Resig just ported over the Processing project to Javascript. Some really cool demos are coming out of it. live molten pie chart springs It’s some pretty amazing stuff. via kottke.org > via waxy

Coding for the mobile web

An Opera developer writes up a comprehensive overview of the state of the mobile web design industry. Let me summarize, since it’s a long article: The iPhone is one slice of a much larger mobile market Mobile browsers are divided into two categories: full-featured (Opera Mobile and Safari) and constrained (WinWAP, Pocket IE, Blazer) Javascript...

Interaction designers discuss the iPhone SDK

They seem pretty impressed: Apples sniffed out an industry that was divided into two disfunctional factions. The carriers, who are making the exact same strategic mistakes they made as long distance providers 20 years ago, and hardware manufacturers – also repeating old mistakes. The carriers are still caught up in creating barriers for consumers to...