Archive for August, 2010

installed Simply Exclude wordp…

August 31st, 2010 by Brian | No Comments | Filed in Uncategorized

installed Simply Exclude wordpress plugin to prevent tweets from showing up in my feed http://is.gd/eOi5W /cc @arielvalentin

Tags:

No power for last 4 hours. Pre…

August 30th, 2010 by Brian | No Comments | Filed in Uncategorized

No power for last 4 hours. Pretty sure it had nothing to do with our renovation. #fb

Tags:

hmm, I did not know this: “Rai…

August 29th, 2010 by Brian | No Comments | Filed in Uncategorized

hmm, I did not know this: “Rails”, “Ruby on Rails”, and the Rails logo are trademarks of David Heinemeier Hansson. All rights reserved.

Tags:

Why yes, I AM wearing a star …

August 29th, 2010 by Brian | No Comments | Filed in Uncategorized

Why yes, I AM wearing a star wars tshirt with an x-wing on it #fb

Tags:

Using Twitter Tools to integrate tweets into WordPress

August 15th, 2010 by Brian | No Comments | Filed in play

I realized the other day that I wanted blog more. At the same time I realized that I post a lot to Twitter and set out to find a way to integrate my tweets in-line with my blog posts. I also figured that as I get close to the 3200 tweet history limit it’d be nice to have some of that history in my own hands. That’s when I discovered Twitter Tools.

Twitter Tools allowed me to modify my theme in such a way that I can get my tweets either as they happen, daily or a weekly summary… pretty slick. I wanted the “as they happen” option and I wanted them to show up differently, as quick blurbs (inspired by Gina Trapani’s Smarterware.org (where I think she is using QuickPost)) right in line with my blog posts.

After some monkeying around, I learned I could switch the theme based on which tags were used in the post. So I set up Twitter Tools to use the tag “tweet”. With that in mind I used the following code in index.php:

<?php while (have_posts()) : the_post(); ?>
    <?php
        $posttags = get_the_tags();
        $tweet = false;
        if ($posttags) {
            foreach ($posttags as $tag) {
                if (‘tweets’ == $tag->name) {
                    $tweet = true;
                    break;
                }
            }
        }

        if ($tweet){
            include "post_tweet.php";
        } else {
            include "post_normal.php";
        }

    ?>
<?php endwhile; ?>

With that in place, tweets get rendered with post_tweet.php and everything else with post_normal.php. Yeah my post_tweet.php needs some love… I’m getting there….

But in the mean time – victory is mine!

Tags: , ,

Toy Story 3D zoetrope – whoa! …

August 15th, 2010 by Brian | No Comments | Filed in Uncategorized

Toy Story 3D zoetrope – whoa! http://www.youtube.com/watch?v=EACR3llow-w #fb

Tags:

“I’m glad mommy made Joe come …

August 15th, 2010 by Brian | 1 Comment | Filed in Uncategorized

“I’m glad mommy made Joe come alive” – 6yo about 4yo #fb

Tags:

ORCL is to Java what SCO was t…

August 13th, 2010 by Brian | No Comments | Filed in Uncategorized

ORCL is to Java what SCO was to Linux

Tags:

tweaked my blog’s theme, hopefully it is a little easier on the eyes

August 12th, 2010 by Brian | No Comments | Filed in Uncategorized

tweaked my blog’s theme, hopefully it is a little easier on the eyes http://brian.olore.net #

    Powered by Twitter Tools

    Tags:

    Updated Twitter bots

    August 10th, 2010 by Brian | No Comments | Filed in play

    Finally got around to re-enabling and updating my twitter bots – including new images!

    Thanks to Google’s new image search option for “labeled for reuse”

    @NYBadDrivers image courtesy of Leo Reynolds (via Flickr)
    @CTBadDrivers image courtesy of Daniel Case (via Wikimedia)
    @NJBadDrivers image courtesy Mr. Matté (via Wikipedia)

    Each account is re-enabled now, checking for any @replies to their respective account.

    Tags: , ,

    Doing battle with metric_fu

    August 8th, 2010 by Brian | 2 Comments | Filed in work

    Metric_fu is a set of rake tasks that make it easy to generate metrics reports. It uses Saikuro, Flog, Flay, Rcov, Reek, Roodi, Churn, RailsBestPractices, Subversion, Git, and Rails built-in stats task to create a series of reports. It’s designed to integrate easily with CruiseControl.rb by placing files in the Custom Build Artifacts folder.”

    It’s really a pretty sweet tool. It generates all these reports and you can either ignore them or act on them. Not saying which of those we do… but that’s not important right now.

    If you’ve used metric_fu you probably ran into the NaN error. Good ol’ “Not A Number”.
    Generally the output looks something like this:

    NaN
    /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/float/rounding.rb:19:in `round_without_precision’
    /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/float/rounding.rb:19:in `
    round
    /usr/lib64/ruby/gems/1.8/gems/metric_fu-1.3.0/lib/base/generator.rb:135:in `round_to_tenths’

    /usr/lib64/ruby/gems/1.8/gems/metric_fu-1.3.0/lib/generators/rcov.rb:85:in `to_h’
    /usr/lib64/ruby/gems/1.8/gems/metric_fu-1.3.0/lib/base/generator.rb:131:in `
    generate_report
    /usr/lib64/ruby/gems/1.8/gems/metric_fu-1.3.0/lib/base/generator.rb:53:in `generate_report’

    /usr/lib64/ruby/gems/1.8/gems/metric_fu-1.3.0/lib/base/report.rb:54:in `add’
    /usr/lib64/ruby/gems/1.8/gems/metric_fu-1.3.0/lib/../tasks/metric_fu.rake:6
    /usr/lib64/ruby/gems/1.8/gems/metric_fu-1.3.0/lib/../tasks/metric_fu.rake:6:in `
    each
    /usr/lib64/ruby/gems/1.8/gems/metric_fu-1.3.0/lib/../tasks/metric_fu.rake:6

    This particular error has cropped up several times for us, each time we do the same google searches, look at the same metric_fu sources, and slowly dissect which tests are causing this problem. Hopefully this post will help expedite debugging this error for you and your friends.

    (more…)

    Tags: ,