Tuesday, 27 March 2012

Link: What is turning women off coding?

Following from are women in tech really in tech we have:

Some things to think about before you exhort everyone to code by Miriam Posner

Which points out the important cultural aspect of why it is that women are often not coders.

If you are not a woman in tech, and wonder why there are so few... this article is for you.

So is this recent article on the recent "brogramming" phenomenon: Brogramming: just one of the girls by addabirnir from Skillcrush

She points out that "brogramming" has its intentions in the right place: it is just trying to inject some appeal into coding... but is doing so in a blatantly misogynistic fashion. (eg "without brogramming, bros might just feel like...one of the girls") and thereby alienating the very few women who are trying to break into this industry.

The important take-home message from her is "you don’t need to alienate anyone to make yourself comfortable"

Also of very distinct interest is the NYT article about Wikipedia's serious gender imbalance, which also points the finger strongly at geek culture - which is extremely male, and can be very uncomfortable for a woman.

Speaking personally on this subject, it took me a good ten years before I figured out the rules for getting along in geek society. My feminine upbringing was with an entirely different, incompatible culture. I can well understand that the serious culture shock would be offputting to the point where many women might not even want to bother continuing.

Again, I'd recommend reading all these article to get a glimpse into why this is the case.

Thursday, 22 March 2012

Performance review vs company policy

A post inspired by 1.00 FTE:

Makes the obvious point - any truly bad behaviour should be addressed specifically with the given person. Otherwise you end up with gargantuan employee policy documents filled with items best left to local law enforcement.

The question then becomes, where to draw the line? I also think we can apply this principle to the grey-areas - the smaller infractions that, if policies are created, become annoyances that the rest of the staff must deal with.

I've been here before... company-wide policies on email, facebook, draconian time-clocking... generally only instigated when some young intern has done something stupid, so everybody else has to suffer for his/her bad behaviour.

Sure, if somebody abuses your trust then punish them, or fire them, or put them on probation or whatever you need to do. but changing a policy for the entire company is overkill. Especially when it degrades the previously open and enjoyable culture that you spent so many years developing.

Don't let the actions of a single individual degrade the trust that you give to your other employees. Trust is hard-won and easily lost, for sure... but it's also an essential component of a happy workplace. People don't want to be treated like they are children - and will find it stressful to be constantly nannied when they are capable of looking after themselves.


With a nod to the fact that some people *do* need supervision, try to trust your employees to at least act like the adults they are. After all - people try to meet your expectations... whatever they are.

Saturday, 17 March 2012

Do I look fat in this picture?

Blogger is doing a most unkind thing with profile pics - it scales to fit and does not respect the aspect ratio.

I've updated my profile pic to match the "acceptable" ratio on the full-size profile page (FYI everything is scaled to 140px wide and 180px tall). Previously it was stretching it width-ways and making me look like the fat-mirror in the hall of mirrors. :P

Of course my profile pic is a few years old now... but still close enough to life for people to recognise me, and I'd like it to stay that way.

Tuesday, 13 March 2012

Go the fuck home...

Jeff Atwood (of CodingHorror) recently left StackExchange after four years of really hard work. He gave his reasons in a farewell to StackExchange - explaining that he has realised that, as amazing as it is to work on a brilliant project... it's not worth missing out on your children.

To this I'll add a recent Ignite talk: Go the fuck home by Pam Selle

I totally agree.

Anything over a 40 hour week is really stupid. Not just for you, but also for the business you're working for. Many good books have pointed out that, not only do you not do your best work after five... but sometimes you can be actively sliding backwards (making more bugs that have to be cleaned up).

Of course the business won't say no. They think they're getting extra work from you for free... But remember that old deathbed adage about nobody feeling like they should have spent more time at the office.

Don't ever forget that any extra time at work is at the expense of your most precious commodity - your own life.

You only have one, and it's shorter than you think.

Get Real about how you're spending it.

You really don't win anything by giving it away for free to an employer that *maybe* might pat you on the back and give you a tiny pay-bump when your next review comes around.

yes, some companies are amazing, wonderful places to work for and you truly enjoy being there, that's great.... but this is the exception, not the rule, and even so - think about Jeff Atwood. StackExchange really is one of the really amazing places... but it still isn't Your Life (the only one you've got). So really think, then think again about your priorities here.

I know what it's like. Your boss tells you that it's critical to hit the next deadline and all but orders you to pull an allnighter? You do know they actually cant enforce that don't you?

Afraid you might lose your job? yes, you might... and then you might go find one where they treat you like a human, instead of a "business resource" to be pushed around at will.

Again, unless you're in a rare position, you probably aren't building the cure for cancer... and that deadline, while it might hit the company's bottom line today, probably won't cause people to actually die if you miss it... but what will happen is that you will continue to prop up a company that has very poor planning skills - and that is willing to exploit its workers at the expense of their time, health and sanity... and you're helping them do it?

Go the fuck home!

Tuesday, 6 March 2012

Link: Finding offshore ruby vendors that don't suck

Finding good "help" is always tough. When your help is located thousands of miles away in a country where english is a second language... that can be even tougher. How exactly do you filter out the dross and find the diamonds?

C42 have just put up a really interesting tutorial on how to identify offshore ruby on rails vendors that don't suck. I've never outsourced myself, but this looks like it would be a good starting point.

Wednesday, 29 February 2012

Are "Women in tech" really in tech?

Anneke Jong has posted an interesting article called why we need to rethink women in tech, which points out the real reason for the seeming disparity in numbers of "women in tech" comes about due to the definition of "in tech" being used.

She explains that while several recent articles are applauding the increase of "women in tech" - these numbers are gathered from women who are, in essence, working in tech-adjacent roles (eg marketing and PR for IT firms, or tech-bloggers such as herself), rather than actually having coding skills - which would be the definition of "technical" for those working in the industry.

As a coder-girl myself, I can see her point. There has indeed been a great uptake of "women in tech"... but the increase of actually technically-competent women is much slower.

While the figures quoted in media seem good at first glance - they aren't telling the full story of the gender imbalance. Anneke makes a great comparison with the music industry: "Imagine your disappointment if only a third of the 'Top Women in Music' were musicians."

This is not to say there has been no progress over the last twenty years. When I began my Comp Sci degree, I was one of only seven women in a class of 220, which was no uncommon at the time - whereas now the proportion is closer to 1 in 10... but that is still a far cry from 50%

The article, of course, offers no solutions - because generating interest for computing (or maths, for that matter) in women is still one of the Hard Problems facing education... but it's a good discussion of the problem, and worth a read.

Friday, 24 February 2012

I'm on AllTop for ruby

I made it to the AllTop ruby feed.

Apparently this is a big deal? They even have badges (see my ever-growing pile of badges at the bottom of my left-nav).

All part of my recent bout of SEO link-building experimentation in the last few weeks.

Saturday, 18 February 2012

Industry-average productivity?

An interesting point here that is quite true. Effort isn't enough... however - is it really possible to compare groups of IT guys against "industry average"? What data do we have on "industry average"?

Have we gathered reliable data on any of these? How would be go about collecting it and is it even really possible to do that reliably?

I guess it's possible if you're doing work that's already been done (eg building a better mousetrap)... maybe if you're churning out cookie-cutter brochure-ware websites perhaps? Or Yet Another Spreadsheet App?

Even so - I'd be curious how you'd determine the productivity of other groups in your industry - what is it exactly that we're averaging? Time to complete features? Code quality? Lines Of Code? :|

Even if we decide on a metric, asking people in your own company about their past experiences will only give you a few datapoints - possibly distorted by 20/20 hindsight (or whether you want to come off looking better than reality might show up). I don't know of any reliable info out there apart from this kind of self-gathered stuff.

How do we go about gathering data across companies and how do we trust that data? It'd still be self-reported and therefore open to various forms of bias ("Yeah, my *old* team used to be awesome! nothing like this group of idiots!"), differing levels of slave-driving ("Yes, *my* team got it done in a week... just ignore the shackles on their legs!"), differing levels of quality ("we got it done over a weekend! security? testing? what's that?") and downright manipulation ("yeah, we're Team Awesome and can code up a custom-built website in only 24hours!!!!")

Not that it wouldn't be worth giving it a go.. but of course you still fall back on the problem of metrics. What metrics reliably indicate productivity (especially when we need to hold code quality constant)?

"Features" produced per week perhaps? but what is a "feature"? how big is it? how do we compare across companies and even across industries? It's a tough call - made even harder when you add the "quality" constraint. Is a cavalier team churning out unplanned, untested code full of security holes *more* productive than a careful one that designs something elegant and simple, robust and well-tested?

Measuring quality is always a tough nut to crack.

I've seen people try for "customer satisfaction" - but in our industry, it also pays to ask "which customer?" - the one paying the bill or the one that is forced to actually use the product? Another example of Who is the real user here?

So... are there any resources out there? and what's people's experiences of their quality?

Sunday, 12 February 2012

Link: Who should learn to code

Who should learn to program presents a brief look at the reasons why everyone should learn to program, and also a very good reason why not. Worth a look.

Monday, 6 February 2012

Estimates and hiking

A fairly standard question on quora: Why are software development task estimations regularly off by a factor of 2-3? has sparked some discussion.

The best answer given was an extremely entertaining hiking analogy (it's the top-voted answer - go see), explaining the software development process in terms of the fractal-nature of a coastline, with unexpected delays along the way.

I think it's a great analogy as it goes and would be extremely helpful in getting the idea of unexpected scope-creep across to a complete IT-newbie.

The answer then spawned a plethora of comments and even a counter-post that is also really interesting: Why Software Development Estimations Are Regularly Off, which explains that the hiking analogy is way off, and that software estimation is more like inventing.

I agree... though I still see great value in the hiking analogy for explaining "what goes wrong" on the kind of project that encounters the problems described.

The counter-post has itself sparked a discussion on Y-combinator which goes into a lot more detail about estimation issues in general.

It's all provided me with an entertaining read on an otherwise well-picked-over subject.

Tuesday, 31 January 2012

Link: Rough Estimation Oath

OMG how much do I love this oath!!!

I might put it in my standard contract going forward :)

Wednesday, 25 January 2012

Project Euler Upgrade

Just a quick post as a follow-on to my project Euler post a while back.

Project Euler have had a site revamp. A bit of a nicer UI prettier progress-tracking and addition of merit-badges to mark some interesting milestones along the way.

The fun is still in solving mind-twisting math-puzzles... but it's at least nicer to look at now ;)

Thursday, 19 January 2012

Link: The hungry programmer

The hungry programmer compares healthy eating to healthy code-practices, discussing the code-quality equivalent of the "healthy eating continuum". In brief:

If you take the McDonald's approach and ship shit then you satisfy that need in the short-term. But you'll feel the effects in the long-term. Your code will be harder to maintain and need more attention later. It won't have a long and healthy life.

I know there have been several times when we just *had* to ship *something*... no matter the guilt I felt at the poor quality that was going out the door. I much prefer to spend some time *now* and work at the better-quality result - even if it means "going hungry" for just that little bit longer. Still, I also understand that a business has to ship to remain a viable business... It's one of those universal dilemmas.

What experiences have you had? Any spectacularly difficult trade-offs you had to make?

Friday, 13 January 2012

Link: link-building and SEO

It's fairly old, but this is still a good basic reference to SEO and link-building

Just be aware that IPL2 is no longer accepting link submissions. You have to register as an editor for joeant to be able to submit to them (which is free, and you don't have to submit any other links, though it helps).

This one also has some good ideas: How to build links fast
...and some hilariously dumb ones at the end (including "sue google" and the RIAA technique). :)

Anybody have any more recent good tutorials on link-building?

Saturday, 7 January 2012

Everybody thinks they're above average...

A post inspired by 1.00 FTE:

This is a bit of an aha moment - I'd especially recommend reading the comments about what happens when the perceived capabilities clash.

I have left a job where my perceived capability was well below what I later found out to be reality. I definitely experienced a chafing-at-the-bit (or perhaps "crushed-beneath-the-boot") sensation at that workplace. I was constantly irritated that the mid-level manager didn't seem to trust me to do my job.... even when I tried valiantly to prove my capability, eventually bringing about a revolution to their help-desk system for which I still occasionally receive praise (six years after I've left).

Perhaps the manager was right - perhaps I wasn't as good as I thought I was... but given that I literally doubled my income when I walked out the door (and haven't looked back since), I doubt it.

I recognise it's difficult for non-IT-front-line bosses to accurately gauge the skill of their techies (see my old article on The economics of IT salaries for a discussion) but it's still not good when this sort of thing happens.
That being said - there is absolutely a real need to provide direction for those that need it, and to make sure that everybody's on the same page. So... what to do?

Is it better to downgrade everybody's skill level to make sure nobody incompetent accidentally gets through and influences strategy until they've "proven" they are capable? Or is it better to trust first?

I'd go for the latter... mainly because I agree with the old adage of "people will meet your expectations whatever they are"... but then I don't have to pay the bills. Opinions?

Saturday, 31 December 2011

Who is the real user here?

If a site is developed ostensibly for one purpose, but the monetization strategy is skewed in favour of some other purpose... what do you think is going to happen to the site over time? Whose interests are going to be prioritised?


Sure, the intentions are good, and you'll try your hardest to serve all your end-users, but if you have an actual, paying subscriber demanding a particular feature (or they'll take their money and leave) vs a feature that the non-paying community has been asking for... which one is more likely to make the cut?


I mentioned recently in my Sparkpeople vs fitocracy comparison, Sparkpeople have a number of UI problems, and I believe they stem from a slightly mis-matched customer-needs alignment. Ostensibly, the purpose of SP is to help people trying to lose weight. But the only money is coming in via advertising - the result? big flashy ads on every page, special "javascript-only" links that won't let you open other pages in new links (because that way you'll be busy reading the other tabs instead of watching the ads), very few new features that *actually help people lose weight* - instead concentrating on increasing user-generated-content.


Who is the real user here? Well - the sponsors...


I'd actually have paid to get a better service than this - to get them to finally (after three years) allow me to get graphs in the metric system or to not see the advertising. But the CEO is convinced that he's being generous by keeping the site ostensibly "free"... unfortunately - the site clearly isn't free. It's paid-for by customer attention.


But how did it get this way? I mean the owner is clearly a fanatic about trying to help people to lose weight, willing even to spend a very large amount of his own personal fortune to set up and maintain this site. So why did these anti-features appear in the first place?


It's simple common human nature that's to blame.


If the motive for a site does not align with the motive behind the money-flow, then you'll have two masters to try to serve - and it's obvious which one will win out. It's a much better idea to find a way to align these two.


A good example of alignment is in White Label Dating (a company I used to work for).


They are a company that allows people to set up their own, branded dating sites. For example, a women's magazine might decide they want a dating site. Rather than building one from scratch - with the near insurmountable chicken-and-egg problem (not to mention a strongly gender-skewed audience), they can come to WLD and quickly build a site that has all the functionality ready-made... along with access to a *huge* pre-existing database of daters... but also allows them to put their own branding on top. It's a "white label" dating site.


Now WLD's monetisation strategy is as awesome as it is simple: they revenue share. That means that for any individual dater that pays for a membership through the magazine's site - a percentage of the money goes to the magazine, and a percentage goes to WLD. The magazine is incentivised to use their brand and existing audience to promote the site -> getting more memberships, which gives them more money. But better yet, WLD are incentivised to make a good service for the end customers (the individual daters) because that way people will be satisfied by the service and continue with their membership.


The end result is a system that works for WLD, works for the magazine... but *also* works for the individual daters that sign up for the service.


That's how it should be.

Saturday, 24 December 2011

Autocomplete with acts_as_taggable_on

Basic tagging sorted, I went looking for a way to add auto-complete - cos it's a nice UI improvement that's pretty common on teh intarwebs these days. I did a lot of searching, as most of the solutions seem to require switching to jquery, and for reasons of laziness (and legacy code), I don't wanna do that right now.


Luckily my searching dug up a tutorial by Michael Schuerig called: auto-completion for tag lists that works with acts_as_taggable_on and the auto_complete plugin.


It pretty much covers all the bases for tagging, so I won't repeat it all here. But I think it's awesome, because it will auto-complete on just that part of the field after the last comma - just what you need for a keyword-list.


Do read all the way to the bottom of the page, as his later updates can change the way it functions a bit.


I did make one addition myself. We have one form that lets you upload multiple items at once, with a "add a new form" link. It just repeatedly inserts a partial-template onto the end of the existing list, each time it's clicked... but because it's called *after* the "onLoad" event, the auto-complete wasn't getting added to it.


To work with that, we needed to add the installAutocompletion(); call to our addNewForm function, and also make sure that each "tags_list" field had a unique id.


I also needed to slightly update the controller code so that it could *either* take params[:my_widget][:tag_list] *or* take params[:my_widgets].first[:tag_list], because the multiple-forms-on-the-page form always sends through an array of widgets instead of just the one.


Then I realised that installAutocompletion would just keep adding autocompleters every time it was called... even to fields that already had one. So I updated the code by adding the following around everything after:


/* only add it if it doesn't already exist */
   if ($(completions.id) == null) {
       element.parentNode.insertBefore(completions, element.nextSibling);
       ... everything else after the above line too
   }

After that it was all gravy.

Monday, 19 December 2011

"Our greatest asset"

I've just discovered 1.00 FTE. :)

Here's one to get you started:

Oh and, just like XKCD, there's always a rollover tidbit (not included here, go look at the site to see it).

Tuesday, 13 December 2011

fitocracy vs sparkpeople

Update: Here's a fitocracy invite (if you want one)

I've been using sparkpeople for several years now, to track my workouts and weight progress. I heard about fitocracy a while back. It's gotten a fair bit of buzz in the geek crowd, and I've been hoping to play with that to see how they compare - but they never did get back to me with an invite... so I googled and grabbed one from a random fitness website :)

So now I can finally have a look at it and see what all the fuss it about, and find out which of the two I prefer. I've only been using fitocracy for a month, but here's my pros/cons so far.

Fitocracy

pros

  • Founded by fitness enthusiasts
  • Better centred around actual fitness scores (eg you can graph your reps or dumbell-weight, not just "number of times logged")
  • Better-designed interface (cleaner, better inter-page linkage, less cruft etc)
  • Can enter individual sets (rep/weight) all at once - which makes drop-sets and ladders much easier
  • Can save a "routine" full of sets (even from different exercise types) and copy it to a new day
  • Can actually can deal with the metric system! In every place where units are used (both entry and display and on graphs)
  • More motivating scoring system (at least I think), including fun quests etc
  • It tracks and notifies you if you've reached a new personal best (eg more reps, more weight, faster time etc)
  • Scoring system seem better weighted towards actually improving a person's exercise/fitness, rather than creating the user-generated content (or reading/viewing the sponsored content)
  • The developers are active in the forums, and actively work to change the system to meet the community's goals.
  • freemium - I like that they make a premium service available. That means they may not end up as advertising-supported site (which skews feature-design through the who is the real user here problem)

cons

  • *still* in beta, and you need an invite (you can get one yourself from my fitocracy invite code - I got mine from spartanwarrior's blogpost )
  • Some "growing pains" style bugs now and then (though I notice they disappear very quickly)
  • No run-distance tracker (you have to use another tool)
  • Smaller community (so far)
  • Still putting together a full set of data (eg exercises and advice), though it's sufficient for general use, and they take suggestions.
  • Can't go back and add your past workouts if you're, say, halfway through a multi-week challenge and just arrived on the site (4 days back only, even if you've *just arrived*)
  • Can't track goals you're working towards (eg goal weight/reps/distance ?) - though you can graph your current "personal best"
  • Not really set up at all for weight-loss tracking (you can enter your weight, but can't track it, and there are no quests or points for weight loss goals)

Sparkpeople

pros

  • Founded by weight loss enthusiasts
  • Has extensive food/calorie/nutrition-tracking
  • Larger range of options - eg tracking custom measurements/goals/activities etc
  • A huge library of fitness and health information already
  • Regular health-based news, recipe books and personal webpage (including blogging)
  • Can go back and add past workouts at any time in the past (good for migrating to a new site and not losing your past)
  • Nice widgets eg the "starting/current/goal weight" tracker.
  • Integrated distance-tracking tool (uses google, but then you can add your time and click "add to today's workout")
  • Can set/track long-term and per-week goals (eg long term goal of 60kg or "do 650 calories of cardio each week")

cons

  • It's actually very difficult to put in strength-training. They assume you do same-rep/weight sets so drop-sets or ladders have to be entered over and over again one at a time.
  • I think the points-system rewards strange things eg you get much more points for watching their advertising or for blogging, making recipes and taking polls/quizzes than actually doing exercise - this makes me feel that they are rewarding user-generated-content creation (which makes their site look better) rather than actual exercise/weight/loss (which rewards the actual person and is the stated purpose of the site)
  • Strength-training has bad graphing - you can't graph individual exercises whether by rep/weight or even number of times done (even though you can enter the info)... only by "number of training sets in total" (with all exercises mashed into one blob)
  • Excessive flashy/movey ads everywhere - which slow the site-load down and are also annoying. They are also prone to z-index problems (ie the menus sometimes appear *under* the ads)
  • They have some weird attempt to try to force you to only ever have the site open in one tab at a time. They do this through excessive use of javascript "load into this window" rather than normal links.It's quite likely an attempt to stop people from browsing elsewhere while the ads are showing, but really annoying if you're a multi-tab geek like me. To me this is one more piece of evidence that the "real users" of the site are the sponsors, not the people coming to lose weight.
  • Years later and they still don't have metric graphs. It seems like they've only made lip-service towards the metric system. I can enter my weight in kilos, but all distances are entered/tracked in miles.
  • General US-centric approach: I've noticed many, many polls/quizzes and articles that refer to US-only brands/traditions and culture.
  • No Premium Service option. The site is clearly suffering the problems of a free service: heavy ads, frakking around with links etc - I would have paid for it to actually work the way I want to (and get rid of those ads) but there's no option for that. Unfortunately, this is because the CEO/founder had publicly stated that SP will always be free. I'm sure that seemed a good idea to start with... but as their userbase rose dramatically, they've clearly had to fill the gap with advertising - thus leading to the change of "real users"

My personal conclusions

Sparkpeople has done me great service, and I can't really complain too much about a free service. Still, it's been around for a long time now - and they seem to have stopped improving the actual exercise/weight features and moved to mainly improving the information and social aspects. These aren't the bits that brought me to sparkpeople in the first place. I want a great tool for measuring my progress - not just another "generic health information" website (plus recipes!). sparkpeople is centred around building the sparkpeople community. That's fine... but I'm increasingly feeling that it's just not for me.

So - is fitocracy a good replacement? So far I think the answer is yes. It provides a better tool for the kinds of things that I want from an exercise logger. It also has added community features which, in this case, don't seem to be getting in the way. It's still unfinished, and yet it has a more professional "finish" to it than sparkpeople has ever managed. From what I can tell - the only advantages that sparkpeople has over fitocracy are the recipe/food-logging tools (which I never use anyway) and the vast back-catalogue of information provided by the sparkpeople community (both paid-for and free), which is something that will come to fitocracy with time.

For a little while longer I'm going to maintain both - mainly because I have three years' worth of past-data in sparkpeople (which is motivating for me). But if fitocracy ever gave me a way of importing that, I don't think I have any hesitation in switching permanently.


What do you think? have you used them both? Have I missed something important?

Wednesday, 7 December 2011

Acts-as-taggable-on

Tagging is pretty popular these days, and it was time to add it to our site. Unfortunately, lots of the gems are old, and it's had to know if that means "good and has stuck around" or "buggy, obsolete and no longer supported".

The rubytoolbox page on rails tagging has several gems - most of which are marked as inactive now. The only one that looked like it had any recent activity is: acts-as-taggable-on. It's also the top-most-downloaded, so that looked good.

Best news: it is rails-3 compatible AND supports a recent build-version that is still Rails-2 compatible. As I've mentioned before, my current client is still on Rails-2 - because the upgrade pain is not currently outweighed by the new features.

The only annoyance is that the rdoc only has rails-3 post-install instructions rails generate acts_as_taggable_on:migration. These don't work for rails-2, and if you try just substituting "script/" for "rails ", it'll give you an error saying: Couldn't find 'acts_as_taggable_on:migration' generator

I had to hack about a bit to find the new migration name, but what you need is: script/generate acts_as_taggable_on_migration

After that I used this extremely good tutorial on tagging with acts-as-taggable-on.

I don't like the tag-cloud style of tag-selection, and instead prefer something much more like Stack Overflow. So I created my own tag-list as per the code below.

It lists all current tags for the class (assuming similar code setup to the tutorial above), and filter based on that keyword - incorporating any existing search or pagination conditions you already have. It will highlight the current keyword, and change that link to a "deselect if you click" link.


    # code in index page
    <% @tags.sort_by(&:count).reverse.each do |k| %>
      <% url_opts = {:action => "index", :controller => "posts"}
         link_name = "#{k.name} (#{k.count})"
      %>
      <% if @keyword == k.name %>
        <%= link_to link_name, url_opts.merge(:keyword => nil), :class => "tag current_tag", :title => "Click again to see all" %>
      <% else %>
        <%= link_to link_name,  url_opts.merge(:keyword => k.name), :class => "tag", :title => "Click to filter by #{k.name}" %>
      <% end %>
    <% end %>


   # code in controller
   options = {} # any search/pagination conditions go here
   @tags = Post.tag_counts_on(:keywords)
   klass = Post
   klass = klass.tagged_with(@keyword) if (@keyword = params[:keyword]).present?
   @posts = klass.paginate( options )




  /**** and associated tag-cloud styles ****/
  /* basic tag-box */
  .tag {
    background-color: #eee;
    border: 2px solid #ccc;
    color: orange;
    border-radius: 7px;
    -moz-border-radius: 7px;
    padding: 2px 15px;
    text-decoration: none;
  }
  .current_tag {
    background-color: #ddd;
    color: orange;
    border: 2px solid orange;
    border-radius: 7px;
    -moz-border-radius: 7px;
    font-weight: bold;
  }
  .tag:hover, .current_tag:hover {
    background-color: #bbb;
    color: red;
    border: 2px solid red;
    border-radius: 7px;
    -moz-border-radius: 7px;
  }

Next up is to figure out ye olde ajax auto-suggest when I add them.