Help Debug The World

Andy Brice, man of many talents, is putting together a Christmas drive to make t-shirts for programmers and donate the proceeds to charity. Sounds like a swell idea — particularly the donating to charity bit, as my office will let me wear a T-shirt the day after I get elected Prime Minister of Japan.

Who Benefits:

Jaipur Foot: A charitable foundation which provides support to the disabled and needy in India, including by providing low-cost prosthetics.  

Sightsavers: A charitable foundation which provides surgery and other medical care to people at risk of losing their eyesight due to mostly easily treatable conditions.

What You Can Do To Help Out:

1)  Buy a T-shirt, naturally.  I like “Be Nice: I have a blog” personally.  

2)  Help spread the word about Andy’s charitable drive.

3)  Donate to the charities directly (links are available on their websites, mentioned above).

What I’ll Do To Help You Help Out:

Take a picture of yourself wearing one of Andy’s T-shirts.  Alternatively, if you just straight out donated, take a picture holding a sign with a funny programming joke.  (Or something which would approximate funny if programmers had a sense of humor.  I suggest “I’m in your world debugging your illnesses!”)  

Inform me of the photo in some manner — comment, trackback, email, skywrite your TinyURL over central Japan, whatever.  For every person who does so by Christmas, I’ll chip in $30 direct to the charities.  (We’ll set a sensible limit for the matching grant at, say, the first ten folks who take me up on it.)

Because We Wouldn’t Be Programmers Without An API Call:

 

Lets Play Move The Needle

What It Lacks In Subtlety It Makes Up For In Lack Of Subtlety!

Comments Off

Free Christmas Bingo Cards

Every year around Christmas time, I get literally thousands of requests for Christmas bingo cards.  I decided to do something a little special this Christmas and throw up a website about them — so if you want your Christmas bingo game, you can go there now.  

If you aren’t a small businessman, there is likely nothing else of interest in this blog post.  I suggest clicking on the above link to get your bingo cards.

If you’re a microISV, keep reading: this is an experiment.  For the last several months I have been particpating on Aaron Wall’s SEObook community forums, and he preaches the gospel of Exact Match Domain names as a tool for ranking sites quickly in Google and the like, even allowing them to cut past other older sites that have scads of links.  I have actually seen one of my competitors dip his toes into doing this, too — after I talked here many times about a particular keyword he registered keyword.org and now ranks #3.  Spiffy for him.

I get scads of traffic for all seasonal related bingo cards — if you remember my graph of different categories on my website, Holidays accounts for almost a quarter of cards downloaded by visitors.  The top few holidays account for the lion’s share of that — Halloween, in particular, is the reason October is invariably the best month of the year for me.   

So I decided, hmm, why not try an experiment this year and see if I could drive rankings for just a few head terms instead of doing my usual rank-for-everything-under-the-sun strategy (Crustaceans bingo, ho!)  That could involve getting a few dozen links to my site, but it is fairly difficult (though by no means impossible) to get people to link directly to a commercial site.  Instead, I thought, I’d make a mostly non-commercial mini-site focused like a freaking laser on giving people exactly what they wanted, and making it as easy to link to as humanly possible.

Step #1: Identify my keywords.  I already know them, in this case — the next big holiday which gives me suitable time to get ready is Christmas.  The #1 keyword is Christmas bingo cards.  I can look at my website logs and find 15 variations of that to play with.

Step #2: Buy the exact match domain.  Somebody had actually registered [Christmas bingo cards] before.  Oh well.  He was amenable for selling at the quite reasonable price of $149 — then I paid another $8 to move it to Godaddy, my registrar of choice.  (Is this reasonable?  Well, consider that I spend 25 cents to drive one download of Bingo Card Creator, or roughly $15 per sale, when I’m paying on AdWords.  I’ll spend more on AdWords this week alone than the domain cost me, and as of next week its like that money was never spent… but the domain stays up for years.

Step #3: Install WordPress.  You really can’t beat WordPress for making attractive, small sites with a minimum of time investment.  They don’t even have to necessarily look like blogs, if you choose your template well.

Step #4: Find an attractive template.  This is honestly one of the most important steps.  You’re creating a site to be the One Canonical Source On The Internet for your little subniche — it should look the part.  An attractive site makes it very easy for it to collect links from your customers saying “Hey, Ethyl, I just saw the best site on the Internet for Christmas bingo cards.  You should check it out.”  You can either outsource this to your favorite designer or use an OSS template.  Happily Smashing Magazine (a blog devoted to, hmm, beautiful things?) covered an absolutely outstanding Christmas wordpress theme last year.  It took me maybe 5 minutes with Stylizer to smooth some rough edges.  (Needs another 5 minutes for the sidebar in IE.)

Step #5: Supplement with pretty graphics.  Stock photography and stock icons make everything better.

Step #6: Write the content.  I wrote several blog posts and pages about the subject, in my usual voice.  This took more time than everything else put together, and it isn’t done yet — I eventually hope to have perhaps 5 or 10 pages on the site when it is ready.  Tips: You probably want to use WordPress to replace the front page with a Page rather than a listing of your most recent posts.  You also probably want to remove much of the blog-specific cruft, as the site will probably not be receiving year round regular updates so why lead people to expect that?  

Exactly what the content says is up to you.  I didn’t try to sell very hard at all — many of the folks who find this site are going to be parents, and parents don’t typically buy Bingo Card Creator.  But parents are quite capable of leaving links.  (Teachers, on the other hand, may decide to actually purchase BCC.)  Plus, because the site looks like the #1 destination on the Internet for christmas bingo cards (look at the design!  look at the domain name!  look at the Zen-like purity of purpose!), it should probably pick them up from authoritative sites as well.

Step #7: Make it scale.  If it works… why stop at one mini-site?

Comments Off

Do You Debug Your Website?

I can’t say that the bug this post is about is my worst bug ever.  Or even my most embarassing bug ever.  But it is certainly my most costly bug ever.  But first, a picture.  You can click it to see the full-sized version.

The above graph shows two years and change of monthly visitor counts to my business.  There are a bunch of milestones I could have put up there — the new versions of my software, the key events in my market’s annual cycle, the redesign of my website, the time I quadrupled my advertising budget.  And they all pale in comparison to squashing one stupid little bug.

What Could Possibly Have Done That?

Well, like many bugs, the impact of this one rose in direct proportion to how clever you are.  My business website runs on a custom-designed CSS which cranks out free printable bingo cards.  The home page, shopping cart, main level navigation, all of these things are valuable towers which sit on a gigantic foundation of free content.  That content attracts me links, traffic, and searchers.  The bright idea to make the production of this content scale is probably the single biggest thing I’ve ever done to grow my business.

And scale it does.  I pay a terrifically talented freelancer to write the actual word lists that become the bingo cards, and provide a little bit of color commentary.  I feed her input into the CMS, and *bam* web page, downloadable PDF, and GIF are created.  Now multiply this times a couple hundred, for very little additional work on my part.

The Best Laid Plans of Mice and Men

One design decision I made when building this automated marketing machine was to give it a time-based element: one bingo card got featured a day.  Originally this was largely because I had the site separate from my main site and wanted to call it Daily Bingo Cards.  I figured, hey, if a new card pops up to the “front” page every day then it will always be fresh, and that makes it stickier for folks.  (And, as it turns out, I do have a handful of folks who a year later are still loading the page several times a week to see what is new.)

However, I had (totally unfounded) performance worries about Rails when I wrote this application.  I thought hitting the database for every pageview was needlessly taxing on my server (bzz, I only get a few thousand a day, why the heck would the server complain?)  So I decided to turn on caching.

Caching is a wonderful tool.  You can use it to solve just about any performance problem.  It solves it by replacing the problem with a cache expiration problem.  (No performance problem?  Oh, you get to deal with cache expiration anyway, don’t worry.)

How Hard Can It Be?

Now, if you want to refresh your content on your website once a day, and you’re not really particular when you do it, caching should be dead easy: purge the cache once a day.  Which I did.  Sort of.

You see, Rails stores cached pages in the same directory your static HTML is being served out of, as static HTML.  Your web server treats the cached pages as it would any other web page if they exist, and just slurps them right out of the directory and spits them out at whoever is requesting that page.  This is blazingly, bugs-in-your-teeth fast.

And to clear the cache?  Simple — delete the HTML file and it is like it never existed.  Your web server, seeing no file matching the user’s request, will fallback to calling Rails to see what to do with the request, and after Rails does its magic there might be a new HTML file deposited into that directory.

And how to delete a file once a day?  Stick task in chrontab… done.

Your Testing Protocol Leaves Something To Be Desired

Now normally a line which is, roughly speaking, the complexity of rm -rf /some/file/name/goes/here is pretty hard to screw up.  But knowing well my pechant for screwups I tested those lines before I wrote them into the crontab.  As root (do you see where this is going?)  And they worked swimmingly.

Of course, when I wrote them into the crontab, I did not set them to execute as Root.  No, I set them to execute as the user that I thought would be dropping the files — clearly the web server, right?  (WRONG.  The web server proxies requests to Rails, but Rails operates under another user to write the cached html.  I knew that on an intellectual level, but it did not occur to me one fateful evening when writing that cron file.)

Compounding Errors

So, as a result, large portions of my website were not getting refreshed when I thought they were.  As a result, instead of a dynamic bingo card publishing empire, with constantly refreshed content that was added to, content on the website was fixed at first generation and then went stale.

Had it stayed stale, I would have eventually figured things out.  But no — I was developing the site, occasionally, and every time I deployed a new version of it, one of the deployment steps had the side effect of nuking the cache directory.  And since the only reason I would be trolling on my own bingo cards pages was to see that my changes were taking effect, I never saw the bug.  

Meanwhile, between bursts of development activity, the page would look like an unattended ghost town for weeks or months at a time.

Diagnosing The Error, or, Reality Bites Your Hindquarters

Periodically I check what bingo cards my users find most appealing, both for curiosity’s sake and to guide development of new content.  Typically this is largely seasonal in nature — in November, for example, I can tell you without looking that bingo cards for Thanksgiving are going to have a total lock on the most popular crown.  But sometimes I’ll notice other patterns — a church sends my site out in their weekly flier and Bible Bingo gets popular for a week, some school has a unit on Chaucer and suddenly I see a surge in searches about the Canterbury Tales, and the like.

And then sometimes you see things that can’t be explained.  Insects being on the top 10 list for two months.  But you ignore it — maybe some people like bugs.  Cat Breeds for two weeks?  Maybe some people like cats.  But the one that finally clued me in was The Moon.  Because either NASA camp was playing Moon bingo every single day in July or something was up.

The Game Is Afoot

So I checked the database to see what card was scheduled for that day, because the card that gets top billing should typically be at or near the top of the most popular list.  And the database dutifully reported: none.  Which is impossible — had I run out of cards?  I thought I would still have about 100 in reserver.  I checked the database and saw, hmm, closer to 200.  Meaning either I was off on my mental count or about 100 had not been assigned.

One quick Ruby script later, iterating through all the days in summer, and I realized that only 6 days in summer had seen a new card assigned.  The error log showed nothing out of the ordinary for the other days.  As a matter of fact, it showed… nothing for them.  It was like the website wasn’t getting generated at all… or if it was, it was being served 100% out of cache.

Shoot.

Five minutes later I found and fixed the bug.  I was so mad I nearly posted a note about it here, but figured no one would care.  Had I known at the time how bad the impact was, I would have had apoplexy.

Fast Forward Three Months

If you know what happened, this seems like a pretty teeny bug conceptually.  Google sure didn’t see it that way — this bug made a live, growing website look largely dead to the world, and Google accordingly sent most of their searchers to get their bingo cards elsewhere.  (Ever wondered if Google values “fresh” web content?  This is my most convincing experience that says the answer is YES, although there are a couple of reasons why the pages are better with the daily updates happening which go a bit deeper than “they smell fresh that way”, which are out of the scope of this post.)  After the website was restored to vibrant life, Google opened the long-tail floodgates.

And the difference?  I’ve more than doubled most types of traffic, both search related and otherwise.  (Funny, while no user thought this was important enough to email about — and would you email if a favorite website went dead for a while during the summer?  — many sure thought it important enough when it was fixed to take notice.)  There are a few confounding factors in there (increased advertising budget, seasonal fluctuations, etc) but nothing accomodates for anything like the huge run-up you see in the graph.  My sales graph also shows a bit of a bump, to put it mildly.

Word to the wise

1)  Test your website with the same diligence you test your application.  Or, in my case, improved diligence.

2)  Pay attention to your website.  Even the boring bits.  Especially the boring bits that make you money.

3)  Never send a commited Windows programmer to do a Unix sysadmin’s job.

Comments Off

Can My Customers Use Paypal Without An Account?

Yes.  This fact isn’t very well documented and I’ve seen folks who have sold $100,000+ with Paypal tell you it is impossible.  However, not only is it possible, it is actually exceptionally easy for customers.

Briefly, a prospective customer arrives at the start of the Paypal Express (fancy term for “Paypal hosts the checkout flow”) funnel by either clicking on checkout in your shopping cart or clicking on a buy it now link.  That page is presented differently based on whether the customer currently has a cookie with Paypal or not.  

If the customer is cookied:

They are told to log in to their Paypal account.  Here’s an example (I have used my own site’s shopping cart, so you’ll see my payment email address and the name of my product in both screenshots):

If the customer is not cookied:

They get a split screen.  One half of the screen presents a checkout workflow which they can enter immediately.  The other half presents a sign in/sign up with Paypal dialog.

Why Paypal does things this way:

In a word, because it makes them money.  You have to understand that Paypal’s primary source of revenue is interchange fees.  And their primary expense?  Also interchange fees.  When somebody pays $24.95 for a copy of Bingo Card Creator, Paypal makes $1.02.  And if that person paid through a credit card, Paypal now owes about 70 cents, give or take, to the credit card company.  

If, however, that customer had a Paypal balance and paid through Paypal, completing the transaction is free to them — all they have to do is a database update on their own records.  Ca-ching, tripled their profit!  Or, if the person has no Paypal balance but has linked their checking account to their Paypal account, Paypal can do an ACH debit on the checking account for much, much less than 70 cents.  Again, more profit.  

Then there is also the matter that conversions are much higher when all you need to do is convince people to signin and click “Purchase” rather than filling out a dozen fields in a form.  However, for those folks who are holdouts about getting a Paypal account, requiring them to get one costs conversions and thus costs Paypal money.  This is why they continue to prominently offer the “guest” checkout to people who do not have a Paypal account yet.

What this means for you:

Have no fear — Paypal’s check out experience is optimized to make them money, but as a side effect that means it is also optimized to make you money, by automatically presenting all prospective customers with a purchasing option which is appropriate for them.

Comments Off

Book Recommendation For Budding Bloggers

Almost a year and a half ago, Stephane Grenier approached me about contributing a chapter to a book he was editing, at the time entitled Interview The Pros.  The general gist was collecting the thoughts of several dozen successful bloggers in interview format.  I was honored to be included (it still amazes me that I could credibly be included in a list of names including Seth Godin and Jeff Atwood), dashed out a chapter, and forgot about the project for 18 months.

Then on Tuesday the mailman stopped by my little apartment in central Japan and dropped off a package.  Five promotional copies for me — whee!  It turns out the book has been retitled Blog Blazers, an act I think Stephane owes somebody a beer for.  (The importance of titles is a major recurring theme in the book.)

I promptly updated ye olde resume to include “published author”, gave a copy to a friend of mine who was starting a business, and set about to reading it.

Structure 

The basic style of each of the 40 chapters is a question/answer session with the interviewee.  The questions are identical.  Representative sample:

  • What makes a blog successful?
  • How long does it take to be a successful blogger?
  • What is your biggest tip on writing a successful blog post?
  • What are your main methods of marketing your blog?
  • How do you monetize your blog?

The sheer diversity of answers to these is amazing — the book includes everyone from folks whose blogging generates a full-time income from AdSense, software consultants who are looking for professional contacts, an online weightloss diary, some guy with an interesting fascination with shoes (who wrote the funniest chapter, by far), and one computer programmer who should probably listen to his own advice more:

Speaking of timescales in blogging — recognize that you will be blogging until you stop blogging.  That sounds simple, but many peopole start out with a burst of post-every-day fever, which they cannot sustain over the long haul.  Pick a pace which is predictable and sustainable.

In my defense, it sounded a lot more credible when I wrote it.

My chapter focuses mainly on blogging as a small business and practical tips you can use to achieve success that way.  (A few of the other chapters are a bit more inspirational in nature, although most of them have some actionable advice.)

In Which I Disagree With My Marketing Idol

Example from my chapter:

I personally can’t stand the “Top Ten Ways To Write A Blog Post” type articles, as aside from being boring and aesthetically unpleasant they turn your blog into a commodity provider of lists.  Instead, absorb the lessons that style of writing provides which continuing to have unique positioning for your blog.  The important lessons are “titles which promise immediate benefits are a good idea” and “judicious use of formatting such as bullet points, bold text, and pictures can turn a scanning surfer into an engaged, active reader.”

Seth Godin’s take on the issue:

Use lists.

Write short, pithy posts.

That is one of many, many disagreements the authors have with each other, and I find them fascinating.  (A few other points of contention: the importance of monetization, the ideal post length, and the importance of SEO.  You’ll find many well-argued solutions to all of these in several chapters… and the right answer in my chapter, naturally.)

Single Best Advice From Me: 

I recommend… that you get familiar with two groups of websites in your niche: the folks who have achieved something close to what you want to achieve, and the folks who are on the path to success but just a wee bit farther than you are.  The first give you examples to emulate and objectives to strive for, and the second should become your new best friends, because a) they’re not too busy yet that they have millions of admirers and b) their support can really kick start your blog and help you both get closer to your goals.

For the other 200-odd pages of advice, you’ll have to buy the book.  At $16.95 I’d honestly say it was a steal, even if I had no connection to it whatsoever, because the value a blog can drive for a small business is immense.  (See my chapter, and several others, for elaboration.)

You’ve got two options for getting it.  One is to buy it directly from the Blog Blazers‘ site (where there is an e-book option).  I’m going to encourage you to sidestep them and purchase from Amazon instead.  My big reasoning for that is that publishing is a winners-win game, and purchases through Amazon increase the book’s Amazon rank, which results in more prominent placement on the site and also results in indirect marketing opportunities (“buy Blog Blazers, currently #1234 on Amazon”).  (At time of posting they only have two copies left.  Small order to start out with = book languishes in obscurity.  Break the cycle — buy a book today ;) )

As usual, I don’t have any monetary interest in the book or in your purchase of the book.  (i.e. those are not affiliate links)  I contributed to the book because Steph asked me to, and it was a pleasure to contribute a small bit to something which will hopefully provide value to people.  If you’re one of those uISVs scratching your head thinking “So I’ve heard them say 432 times ‘Blogging helps for marketing’ but I don’t consider myself an expert at this yet”, read the book.  I guarantee you you’ll learn something.

P.S.  Seth Godin is one of the world’s best living theorists about marketing.  I am not Seth Godin.  You are not Seth Godin.  Please, for all that is holy, don’t write list posts.

P.P.S. uISVs will recognize more than a few names: Ian Landsman, Bob Walsh, and Andy Brice all contributed chapters.

P.P.P.S Remind me to get the contact details of whomever did the cover design if I ever publish anything.

 

Cover of Blog Blazers book, depicting man with BB on chest standing atop world.

Cover of Blog Blazers book, depicting man with BB on chest standing atop world.

Comments Off

Rails Fails To Update Serialized Columns On Save

One of the problems I hit earlier today, which literally cost 2.5 hours to resolve, was that I have a Rails model which uses a serialized column in it.  The column contains a hash of options for the object.  Fairly simple stuff.

As it turns out, after overwriting one of the parameters in the hash and saving it, the object in the database would be out of sync with the ActiveRecord object still in memory (even though save returned true), which lead to hilarity the next time someone grabbed the object from the DB and got partially out-of-date data.  (Inconsistent out-of-date data.  Failure.)

As it turns out, the issue is a new feature Rails 2.1 — partial updates of database records.  Rails keeps a list of which attributes are “dirty” and only updates those when you call ActiveRecord#save.  Unfortunately, touching the contents of a hash does not mark it as dirty.

I was absolutely clueless how this was happening (I stupidly upgraded to 2.1 on a whim, thinking that I hadn’t written any significant code yet so incompatibilities wouldn’t bother me — true enough, the only incompatibility was with my mental model of how ActiveRecord worked), but I successfully diagnosed the why — a dirty bit wasn’t getting set for the serialized object.  OK, no problem, the same thing happens at the day job with our Java system — which means I can use the same hacky solution to the problem.

def before_save

  options_hash_clone = options.clone  #shallow copy of options hash

  options = {} # sets dirty bit for options hash

  options = options_hash_clone # restores options hash to original content, ensuring save updates it in DB

end

which will, indeed, set the dirty bit. 

As it turns out, there is a cleaner way to do this if partial updates aren’t a requirement for your model:

#there are a number of places you could put this — the model class itself strikes me as decent

ModelNameGoesHere.partial_updates = false

A big thanks to this post for putting me on the scent of the problem.  Seems I missed quite a bit of discussion on Google about it since I was not hitting the right keywords apparently.  The fact that this is on by default appears to be one of those opinionated software practices where “opinionated” means “it is our opinion that you should be as familiar with the change log as the core team before you install a new production release”.  (Sorry if I sound bitter.  2.5 hours.)

Comments Off

Introducing Widget Bakery

After 8 very productive hours with my designer today, I have a bit to show.  We worked at his house and, in between random banter with his wife and eating some very nice Japanese-style pizza, he banged away at the design of the page and default widget behavior and I got to work on some heavy duty Rails/Javascript magic.  Sadly he is much better at design than I am at web programming, so I did not progress quite as far, but things are looking up.

So the project name, which I haven’t mentioned to anybody yet, is Widget Bakery.  I’d encourage you to go open that up in another window — there is a full design for the front page posted, less much of the content.  As should be obvious, everything is heavily in development so don’t expect you’ll see any of the verbiage or design work stay there permanently, but I thought I would get the ball rolling so that people didn’t think I had completely abandoned the Sprint.

On the functionality front, I’m afraid that because Widget Bakery’s fundamental behavior involves being responsible for content on 3rd party websites, I really can’t show you anything useful this early in development.  Database schema and whatnot are still in a state of flux and anything which I post, and which you might subsequently post to your blog, could suddenly break.

Plus I would really, really hate if one of my widgets actually became popular before I had, oh, put indexes on the table ids or turned on caching… almost melted my poor laptop today during testing.  Word to the wise, kiddies: despite it being so obviously necessary you’d expect them to do it for you, Rails will not automatically slap database indexes on your id columns, and then you get to do full table scans every time you pull in linked objects.  Gotcha!

So in lieu of live functionality I give you this screenshot of a widget which does actually function:

Sample Widget

As you can see I sort of have my work cut out for me on the CSS front, to get that footer text working properly.  You can’t see all the “fun” I had playing with iFrames, Javascript, and the DOM model to be able to inject that sucker into (just about) any page on the Internet and have that plus button bring up a Lightbox in the middle of their page to give instructions on how to embed the widget.  There still needs to be quite a bit more tuning done there — if you don’t hit the “close” button for the Lightbox at the moment there is no way to cancel out of it, which is quite unfriendly to the user.  (I’d like to get back the old “click anywhere to dismiss” Lightbox functionality, which is going to require further DOM spelunking.)

The RSS parsing, though, is done.  It needs to have error handling and some caching added, but after that I’ll have one widget ready of the baker’s dozen I hope to launch with.  Unfortunately, at the moment actually making that widget requires access to the server console and typing things like

@widget.version.latest.options[:rss_url] = “http://www.example.com/rss”

I’m going to have to get that functioning in a nice, easy to use GUI.  And then repeat or reuse that GUI for each type of widget, while making their internal differences fairly transparent to the user.  Lots of work to do, no time to do it — time to shake and bake!

Comments Off

Leveraging OSS As A Software Developer

Cards on the table: I sell proprietary software, do occasional OSS work on both a volunteer and paid basis. and have been known to post to Slashdot on occasion about my love of Windows Vista.  This either means I’m sort of an agnostic in the wars of religion over software business models, or that I really love making enemies.  But I’m more of a fan of making friends, so I’m perpetually trying to convince members of both warring camps that they can get a lot of what they want out of the others.

One perpetual worry on the Business of Software forums is that some OSS developer (invariably a grungy, marginally employed coder with Jolt stains on his T-shirt) is going to come along, clone your application, and eat your lunch.  As a result there is a certain amount of hostility among small software developers towards OSS, which is a shame.  I spent some time earlier trying to address myths about it, but I thought I’d go one better and focus on ways OSS can make you money.

Concentrate On What You Do Best.  Let Other People Do Everything Else

Currently I’m finally getting restarted on my latest project, which is a web service that helps small businesses do content syndication across the Internet.  There are a number of interesting technical challenges here, including both server-side (“How do I let a person who is potentially only paying me $9 a month generate tens of thousands of pageviews without the server bills putting me in the poorhouse?”) and client side (“How do I use Javascript to make the whole process pain-free for non-technical end users?”). 

As it turns out, I’m a fair hand at some portions of the puzzle, but portions of it are complex.  Very complex.  You have no idea how far down the rabbit hole goes in web development, Alice.  I honestly think that it is impossible, flat out impossible, for any one person to be expert at all the technologies which are implicated by a trivial web application running on a modern web stack.  This includes everything from HTTP to the DOM model to Javascript to the database to relative velocities of the little spinning bits of metal that make everything work. 

Thankfully, programmers get this lovely tool called abstraction, which means we can concentrate on one bit of the problem at a time and treat the rest of the world as a Solved Problem.  For example, when I’m working on Rails, I am not thinking about the L1 cache policy on the server.  In fact, although I really appreciate my $150,000 CS degree, it is entirely possible that I will grow old and die without ever once worrying about L1 cache.  Smarter people take care of that stuff for me.

OSS Is About Smarter People Taking Care Of That Stuff For You

One key feature of my content syndication widgets is that they be able to spread without requiring user action away from the host site, to avoid antagonizing hosting site owners.  This was going to require some serious work on my part to achieve — probably several days worth, as Javascript is not my bag.  As it turns out, Lightbox Gone Wild (a variant of the Lightbox project which I’ve previously used to business-enhancing effect) took this from several days of work to about five minutes of integration. 

Lightbox Gone Wild is made by Wufoo, a company which doesn’t specialize in wild-and-crazy Javascript, but rather in selling a service which makes data collection easy for people.  Note that key word selling – OSS developers are typically not poor aesthetics who need to beg for their next cup of coffee.  Since wild-and-crazy Javascript doesn’t make Wufoo money directly, they release it back into the ecosystem for someone to extend (much as how they themselves extended the previous Lightbox project), with the added benefit that they may get to incorporate the extensions later and in the meantime people who have no interest in HTML forms nonetheless say good things about them.  (If you need form input and HTML scares you, go to Wufoo.  There, did my good deed for the day.)

In turn, I’m going to tweak their script a few times to add usability enhancing features (like backporting my “escape button closes the layer” tweak to the original Lightbox, which is a big win for non-technical customers), which increases the aggregate value of free OSS available but still gets me incrementally closer to making money from my paying customers. 

In fact, taking stock over what I’ve accomplished so far, I realize I’m doing a whole lot of this borrowing from OSS.  From classic infrastructure components (database, web server, application stack) to user interface elements (editing controls, charts) to a zillion pieces of behind the scenes wizardry, I’m probably literally using several thousand man months worth of software, adding two man months worth of glue and secret sauce, and then if all goes according to plan making a bit of money off of it.

Code Base By Writer

That’s the OSS Business Model

I often hear folks wondering whether they’ll make more money if they stop charging for their main application and OSS it.  Survey says no in most cases.  Rather than being engaged 100% in the production of OSS, you can OSS contributions you make which are boring, routine, and only tangentially connected to the main business of solving specific problems for your customers.  This allows you to lower development costs very modestly, but the social benefits are very nice for a bootstrapped software company. 

Giving away free stuff directly to your customers is a time-worn capitalist tradition, but giving away free stuff to other people works pretty decently too.  We live in an era where, for better or worse, GoogleBot is a judge of character and strongly prefers people who share.  (OSS users/developers have, on average, extraordinarily high levels of technical expertise and are solidly members of the linkerati.  They make good folks to influence from an SEO perspective.  You also get direct benefits from having vocal, technically capable, engaged people interested in you personally — although those direct benefits may not extend into them actually buying your software, but then again they weren’t in your niche to begin with so no harm done.)

OSS as a Barrier To Entry

But wait, there’s more.  It seems funny to say, since OSS is making it vastly easier for me to build my website, but I think that it functions as a barrier to entry for competitors.  You can’t just whistle your fingers and snap together 15 diverse and unconnected OSS projects into a usable application — the design and integration of complex systems is still a skill, and it is one that is in many ways more difficult than straight-up application development in some domains.  This turns skill with particular OSS projects, or generalized methods and patterns of integration, into one more competitive wedge you’ve got in your arsenal.

Additionally, OSS raises something of a quality cliff in front of prospective competitors who are not using as much as you.  Consider the typical graph of development effort expended versus value to the customer.  Typically, this gently slopes upwards for the first portion of the graph (“20% of the effort secures 80% of the value”), and then it plateus for a very long time as the easy wins are exhausted and the long, arduous process of software development begins. 

The curve for a developer using lots of OSS doesn’t look different in asymptotic behavior, but it contains numerous discontinuities along the way.  Every time you spend a small quantum of effort to integrate a new feature (that you didn’t have to write), your user-perceived quality gaps up.  Someone running along on your old curve, trying to keep up, runs straight into the quality cliff-face. 

Example: assume you and hypothetical competitor Bob include analytics in your application.  Both of you decide, sensibly, that the screens require a visual component.  Bob starts coding his.  You quickly integrate Google Charts, which while not strictly speaking OSS is the same general principle.  Now Bob isn’t just running the race against you — he’s running against the team at Google doing the Charts development and you’re already done and busy working on your next feature.  It makes OSS a great force multiplier.

Sidenote

Speaking of Google Charts: wonderful output, neatly solves the problem of graphing without requiring massive server-side resources or Flash-capable browsers.  Terrible, terrible API from a programming standpoint — you write uber-ugly incomprehensible URLs and their servers return the appropriate charts.  Luckily, folks have already extended it by offering wrappers in many popular programming languages (I mentioned the Ruby one already), which is another example of collaboration making a good thing better. 

I’m planning on eventually releasing a bit of magic myself, which will let you treat the charts as if they were being produced locally.  (There are decent reasons for this, from branding issues to future-proofing your site in case Google decides to cancel the charts project and you don’t want holes developing in all your old content all of a sudden.)

Comments Off

Bad News and Bad News and Good News

A situation that has been really stressing me out recently has resolved itself.  Sadly, it did not resolve itself to my benefit, but it is no longer hanging in the air, which means I can get on with life.  Unfortunately, as I’m looking at the remaining days on the calendar, it looks impossible to recover the time I lost these last two weeks worrying about it, so I’m likely not going to have a saleable application at the end of 30 days.  Ahh well.  I’ll throw myself into the work again from tomorrow, and continue supporting the rest of y’all, with the new goal to have something to show in public by the 1st and then do the actual release sometime after that. 

I would happily launch with a half-finished app that doesn’t even have billing integrated, but the nature of widgets is that they exist on third party sites, and half-finished could very well mean that widgets break on third party sites, which is just not good behavior.

Comments Off

Eight Amazingly Productive Hours

Keith and I just put in a full day’s work on the program.  It is shaping up nicely — well, the design at any rate.  I spent most of the day fighting old, outdated versions of Capistrano and Deprec to let me get Rails to a deployable state from my Vista workstation to my shiny new 512 MB Slicehost slice.  I expect that I’m going to really, really need the extra memory to have enough MemCaching and Mongrels available to serve all the requests, since many of them will be originating off-site and the entire point of the system is to help people go viral.  (Hopefully not TOO viral…)

I also found some wonderful OSS to integrate in with my planned features today.  More news on that later, as I think some of them will not hit the shipping window, and I only want to show off stuff that will, for the moment.

My rough sketch of the implementation agenda:

  1. Skeletal widget implementation (i.e. what I have for BCC, except generic)
  2. Widget rototype including the Lightbox implementation
  3. Widget creation workflow
  4. Widget maintenance page
  5. Account creation
  6. Account/user management
  7. Billing (ugh — not even decided on a payment processor)
  8. Admin backend
  9. Stats tracking, graphs, and all that jazz
  10. Emails
  11. Periodic tasks
  12. Home-rolled Analytics
Comments Off