Archive for the ‘Uncategorized’ Category

Session is Invalid – A Boneheaded Mistake Might be Your Problem

Sunday, October 26th, 2008

Here’s something I lost hours to thanks to my own boneheaded mistake (I think I might have “lack of sleep” to blame for this one – in conjunction with ignorance).

I changed my Rails app to use memcached as the caching store for obvious reasons.  Some sql queries are just too expensive so why keep hitting the damn db over and over again? Here comes memcached to the rescue!  … or not?

I made all the appropriate changes, installed memcache-client, and restarted my local dev environment only to be hit with an ugly

session_id “whole lots of letters and numbers blarghedy blargh” is invalid

With the last file in the stacktrace being mem_cache_store.rb.   “What the hell?  Everything looks good though!”After uninstalling any and every plugin that I didn’t need thinking maybe they were interfering with the cache store – newrelic_rpm,  query_reviewer and of course cache_fu – the problem remained. I reverted to regular built in filesystem caching and another error shows up – something about a cookie being tampered with.

*Ding*

Where the hell is the session id stored?  Of course it’s in a cookie.  After bringing up firebug and deleting the cookie (or conversely probably just restarting the browser) the problem was gone.

My fatal flaws?  I overwrote the config.action_controller.session :secret I had originally in development.rb with a new one in environment.rb and I didn’t restart my browser or delete that session cookie.

Ain’t that a bitch?

Tags: , , ,
Posted in Uncategorized | No Comments »

Contemplating the Journey From “Big Idea” to Success.

Thursday, February 7th, 2008

Last weekend Sara and I were in New York City, mostly for some events she wanted to attend that were sponsored by a blog network she’s part of. One of the things we were both looking forward to was a brunch on Sunday morning with some of the people that work for the network (Partially because I was allowed to go with her to this one! Ok, maybe only a little bit). Regardless, we had a really good time and talked about a lot of different topics – one of which was a non-existent product that I’ve been pondering for months now. A GPS-enabled card of some sort that could be used to track down a lost wallet, bag, purse, etc. It’s a no-brainer right? One of those “I would buy that in a second if they actually existed”, even though it doesn’t. The reason why is probably because of technological constraints – cost of parts that are that small that could transmit instead of just receive. But, once those parts are available – someone will prototype this up and will make a fortune. Unfortunately that someone won’t be me. I’ll wait around with my credit card in hand, waiting for a chance to purchase it (for my Mother and for Sara).

The conversation popped into my head today because of a post over at Mike Davidson’s blog about some of the big ideas that powered what he calls a “Slam-Dunk Startup” – Youtube, Hot-or-Not, Google and Amazon. One point he brings up is similar to the thought I had above, that it’s not just the idea but the ability to execute with the overwhelmingly difficult details of providing enough bandwidth, computing power and engineering know-how to hit it out of the park.

I often hear people say things like “if only I thought of YouTube a year before YouTube did, I’d be rich”, implying that given first-mover advantage, that person could create a company as great as YouTube. A statement like this completely disregards just how difficult YouTube was to build, from having the balls to allow brazen copyright violation, to building a great user experience, to scaling out the ability to serve millions of video streams a day. In other words, 99 out of 100 people who may have had the same idea at the same time would have failed to create anything remotely as successful as YouTube.

I couldn’t agree more. Having the chutzpah to take that idea, to make something of it, and then break through the barrier of monetary success and cultural ubiquity? That’s a huge mountain to climb. The amount to which I can relate to this is by no means applicable – but being a solo entrepreneur trying to build something (which is, by no means, that original) on his own is extremely difficult. This is the reason why I have so much respect for the people that have done it. The Alex Tews, Joshua Schacters and Gabe Riveras of the world have nothing but the most tremendous respect from me. Odds are that I’ll never reach those heights, but the journey so far has been the fun part. We’ll wait and see.

Tags: , , ,
Posted in Uncategorized | 1 Comment »

| Newer Entries »