Send Eco-elegant flowers

Author Archive for Ivan Storck

404 error pages in Rails

I’m always trying to encourage visitors to my website to find the right information. I’m also pretty lazy with typing and want to be able to just guess at URL’s and see if they work.

The new website system for Sustainable Websites, built in Ruby on Rails, has articles (called posts in WordPress) and pages. I wanted the page not found (HTTP status 404) page to automatically direct them to the appropriate page, if it exists, or article, and if it doesn’t exist, provide some suggested links and a search box (pre-filled with some keywords from the URL they tried).


The first part was setting up a default route in routes.rb:

# 404 handler
map.connect '*path', :controller => 'four_oh_fours'

then here’s the 404 controller:

class FourOhFoursController < ApplicationController
   def index
   #clean the slash out of request.path.
   cleaned_path = request.path.gsub(/\//," ").strip
   #if request.path is in the set of page permalinks then redirect to that page
   to_page = Page.find_by_permalink(cleaned_path)
   if to_page then
     redirect_to page_permalink_url(to_page.permalink) and return false
   end
   #same if it is an article name
   to_article = Article.find_by_permalink(cleaned_path)
   if to_article then
     redirect_to permalink_url(to_article.permalink) and return false
   end

   #TODO: same if it a username?

   FourOhFour.add_request(request.host, request.path, request.env['HTTP_REFERER'] || '')
   respond_to do |format|
     format.html { render :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found" }
     format.all { render :nothing => true, :status => "404 Not Found" }
   end
   end
end

It uses the Page model’s find_by_permalink method but I could have easily just used find by title or another attribute of Pages.

Vertical Reponse Email is Green and Free

Well, it’s free for 501(c)3 nonprofits, up to 10,000 emails a month. Vertical response is a Email marketing company that offers email newsletter services. I am also impressed with their green activities in their office.

Strategies for Good Trades, Partners, and Billable Work

I am a consultant and I usually bill my services hourly. Some clients seem to be confused about what type of work is billable, and what the line between “partnership” and billable work is. Also, I’ve been getting a lot of requests for trades (bartering) lately, so I’d like to clarify what makes a good trade and what makes a poor one.

My understanding is that billable (service for a fee) work happens when someone tells you to do something, or asks you advice about something, that benefits them (the person asking). Partnership happens when work is decided on together, perhaps performed in collaboration, and benefits both parties. It’s easy to cross the line, even in a short conversation. I’ve had experiences where I was instructing a client on a very technical procedure, which is obviously billable, and then an idea for a new project comes along. And I hate to waste the opportunity to explore while I have them on the phone. To derail creative thoughts seems counterproductive, especially the “creative” industry. How far off topic do you get before you stop the clock?

Sometimes people say “partnership” when they really mean something more like a trade (usually asking about getting work for free). Quid pro quo – I do something for you, and you do something for me. Trades are great, but there is a limited amount of trades one can do without affecting cash-flow, because there is a limited amount of time available. If I spend my available hours working on work that’s a trade, my cash flow will suffer. So I generally only am able to do one trade at a time, for my most urgent needs. The best trades seem to be equal work, measured hourly. For example trading web design work for copywriting, which are similarly priced skills that are complimentary. The hardest to quantify trades are for what I usually hear as “exposure”, perhaps a link on a website somewhere (frequently a website without any significantly measured audience) Other trades that have value are based on exchanges of equal value: if a hosting customer brings in five new accounts, I give them a free account, because based on our margins, they just brought in enough new customers to value giving away a free account. Problems happen when partners have mis-matched valuations of what each is bringing to the table. An example would be a site with low traffic and pagerank giving a link to a site with more traffic and pagerank. Usually, a link is just worth a link back, especially if it is from an interior page. A home page link, or a link on every page of your site is a different might be worth a little more.

There are certain things that I do just for “whuffie” – usually I have prior relationship, like a personal friendship, where I know that the time spent will be reciprocated, or that because of the friendship, I don’t care if it gets reciprocated or not. It’s hard to scale that to “internet friends”, unless the task times involved are very small.

What lines have you drawn in your consulting business? How do you guide your conversations with clients? What makes a social exchange successful? While we’d all love (and strive) to work in a world filled with whuffie (link to tara), we also all have bills to pay and food to put on the table. I’d love to hear about significant and sustained successes with partnering strategy, bartering, and keeping up a good amount of billable hours.

Today is Earth Overshoot Day

It’s the day our demand surpasses nature’s budget. I dig getting an email notification of this event every year.

On September 23rd this year we mark an unfortunate milestone: As of today, humanity will have consumed all the new resources the planet will produce this year, according to Global Footprint Network calculations. For the rest of 2008, we will be in the ecological equivalent of deficit depending, drawing down our resource stocks – in essence, borrowing from the future.

The recent bank failures in the United States have shown what happens when debt and spending get out of control. We are seeing signs of similarly disastrous consequences from our ecological overspending. Climate change, shrinking forests, declining biodiversity and current world food shortages are all results of the fact that we are demanding more from nature than it can supply.

Read more on the Global Footprint Network.

David Byrne and Brain Eno Together

Interviewed on Carbon Offsets Daily

originally posted here

Interview: SustainableWebsites on the Soundness of Carbon Offsets to Combat Global Warming

Carbon Offsets Daily: Do you think companies should use carbon offsets to mitigate their global warming emissions?

SustainableWebsites: Yes. The old saying in carpentry is “measure twice, cut once” and I think it applies to offsets too. First, take a baseline measurement of your existing carbon dioxide footprint, and begin offsetting as soon as you can. Then, determine areas where you can cut down on the the actual CO2 produced, so that you can purchase less offsets. The act of purchasing carbon offsets is only the first step towards true sustainability, but it is a very important one because without measurement you don’t know where to start. So, if you can “measure and cut” and then continuously improve, your company will be truly living up to its potential in terms of helping the impact of its activities on global warming. A complete sustainability strategy should also measure and then reduce waste and water usage as well as energy, and include social and labor considerations.

Testing from iphone

Wow, check out the Wordpress app on the iTunes app store!

Video: Stabilize Carbon Dioxide at 350 ppm

via WorldChanging:


“The evidence indicates we’ve aimed too high — that the safe upper limit for atmospheric CO2 is no more than 350 ppm,” says Jim Hansen.

Where the Hell is Matt - 2008 version 2

Where the Hell is Matt? (2008) on Vimeo - Mozilla Firefox (Build 2008061004).jpg
I love the update to this very popular internet video. It’s so transcendent, and I love that he got to travel the world making people smile and Dance. Thanks to Seguinwoodworks.com’s David Terry for letting me know about it!


Where the Hell is Matt? (2008) from Matthew Harding on Vimeo.

100% post-consumer recycled paper business cards from Moo.com

via GreenLAGirl.com: Eco-friendly business cards don’t come cheap, she discovered a while back. But just in time for the BlogHer conference later this month, eco-cards have gotten a lot more affordable, with Moo.com entering the eco business card business!