• InvalidAuthenticityToken on Logout when using Authlogic

    This one took me a while to debug. When upgrading my existing application to Rails 3 almost everything was working fine except whenever I would click the Logout link I would get an error because Rails couldn’t verify that the UserSessionsController#destroy request was valid from my app.

    This is the error message shown:
    ActionController::InvalidAuthenticityToken in User sessionsController#destroy

    actionpack (3.0.0) lib/action_controller/metal/ request_forgery_protection.rb:96:in `verify_authenticity_token'

    And the solution is simple, you just need to add the new csrf_meta_tag helper to your generated page (probably in the /views/layouts/application.html.erb file).

    (more…)


  • Running Rails 3 using RVM

    Getting RVM installed and managing two ruby environments (ruby 1.8.7 + rails 2.3.8 / ruby 1.9.2 + rails 3.0.0) went better than expected. This gist pointed me in the right direction. Now hopefully the process of migrating a rails 2.3.8 app to 3.0.0 will be as quick and easy.


  • 99 Excuses For NOT Making Ideas Happen

    Common excuses for NOT making ideas happen:

    1. I DON’T HAVE ENOUGH TIME.

    Extra time, like money, rarely just materializes out of thin air. We have to work for it. If “finding creative time” is a struggle for you, consider getting proactive about carving it out, and doing the most important work first.

    2. I’M AFRAID OF FAILURE.

    If we really push ourselves, we will fail more than we’ll succeed. But that’s how we gain experience, how we learn, how we grow. The greater failure is to never risk failure at all. Choreographer Twyla Tharp: “If you do only what you know and do it very, very well, chances are that you won’t fail. You’ll just stagnate, and your work will get less and less interesting, and that’s failure by erosion.”

    3. I’M NOT INSPIRED.

    Inspiration comes from action, not the other way around. Our friends at Red Lemon Club shared this insightful tidbit from leadership guru John C. Maxwell: “”The whole idea of motivation is a trap. Forget motivation. Just do it. Exercise, lose weight, test your blood sugar, or whatever. Do it without motivation. And then, guess what? After you start doing the thing, that’s when the motivation comes and makes it easy for you to keep on doing it.”

    [... to see 4-99, read the rest of the article]

    via 99 Excuses For NOT Making Ideas Happen :: Tips :: The 99 Percent.


  • Debunking Myths of the Medical World

    Interesting article from the NY Times that looks at unusual research findings that seem to fly in the face of reason. He looks at surprising medial statistics of class presidents, Academy Award-winners, and drivers, among others:

    “Life is a marathon, not a sprint,” he read, adding, “A great deal of mischief occurs when people are in a rush.”

    To that end, he studied the psychology around changing lanes in traffic. In an article published in Nature in 1999, Dr. Redelmeier and Professor Tibshirani found that while cars in the other lane sometimes appear to be moving faster, they are not.

    “Every driver on average thinks he’s in the wrong lane,” Dr. Redelmeier said. “You think more cars are passing you when you’re actually passing them just as quickly. Still, you make a lane change where the benefits are illusory and not real.” Meanwhile, changing lanes increases the chances of collision about threefold.

    via Scientist at Work – Dr. Donald A. Redelmeier – Debunking Myths of the Medical World – NYTimes.com.


  • Running my own Private Git Host with Multiple Users

    Maybe I’m just cheap, or maybe I have a run-my-own-servers fetish, but instead of using GitHub for my private personal and small-team projects I’m now hosting the Git repos on my own servers. Two excellent blog posts explained the first step of setting up a private Git server on Ubuntu and the second step of using gitosis to manage multiple repos and users with access.

    Took about an hour to set it up and test with two users and three forks.  One note: you might want to use GitHub-style fork names like “cgooley/whirlfood” to keep things better organized if you plan on having many projects.


  • Coming Soon: Earbits Radio iPhone App

    Earbits is a new 24×7 commercial-free, subscription-free free internet radio service that just launched last Friday. Once it’s fully baked, it’s going to have some really cool artist discovery tools and great utilities for bands who want to get their music heard.

    I’ve been involved in the minor capacity of building the actual player used on the website and for embedded players on partner websites. It’s been a nice refresher of using my javascript skills. And now, I’m expanding my role into building the first mobile Earbits app for the iPhone. Since I’ve been trying to learn Ruby on Rails over the past week or so, I decided that I might as well also try and learn Objective-C and that whole mess too.

    Keeps life interesting. But here’s the teaser shot taken right after the first time I actually deployed the radio app to my iPhone.

    Hope to have a beta version done in a week or so, depending on API availability, and get it into the App Store sometime in September.


  • The first step is to start

    Some good advice from the 37signals blog. Take it to heart. From what I’ve seen, the biggest barrier to success is not trying.

    Many people ask me, “How can I get started in web design?” or, “What skills do I need to start making web applications?” While it would be easy to recommend stacks of books, and dozens of articles with 55 tips for being 115% better than the next guy, the truth is that you don’t need learn anything new in order to begin. The most important thing is simply to start.

    Start making something. If you want to learn web design, make a website. Want to be an entreprenuer and start a business selling web based products? Make an app. Maybe you don’t have the skills yet, but why worry about that? You probably don’t even know what skills you need.

    via The first step is to start – (37signals).

    Go read the whole blog post… This doesn’t apply just to building web pages or software. In anything you do, if you spend too much time planning or worrying that things might not work out unless you do it perfectly, you’re only preventing yourself from having a chance at success.


September

This is the archive for September, 2010.

FRESH / LATEST POSTS

FRESH / Twitter Updates