'Geek' Archive

DemoCampGuelph6 next week!

July 4th, 2008

Next Wednesday evening is DempCampGuelph6. It’s an open event, talk about us, tell your mom, get people out! If you’re attending, please make sure to put your name on the wiki attendee list. If you want to demo, contact me.

Micro-Blogging with Twits

June 24th, 2008

I’ve explored and I’m willing to admit I’m fully on twitter. What that means for this site is that I post far less small bits here. Example, just saw this cool site bookrabbit that’s like zoomii for everyone’s bookshelves. I now tend to post small bits like that in twitter and not here. That’s all, thought you should know, it’s me not you.

If you know me and have any interest in what I post to twitter, you can find me here. On a similar note I’m pretty sure I’m trashing my facebook account soon.

Debugging in python

June 17th, 2008

If you’re a tech caveman like myself then you may not have a loving relationship with IDE’s in general. Hang on, now that I think about it, I grew up with IDE’s and I’ve tried, and spent a lot of my career in, most of them. This isn’t a case of not wanting to use the kid’s fancy new tools. Ok, stopping tangent…

When I lived in the java enterprise world, I was a heavy jdb user. Yes, even in a java shop I was in the minority in using a “simple command-line debugger”. Sorry but I’m a simple guy.

Lucky for me, python has pdb which “defines an interactive source code debugger for Python programs. It supports setting (conditional) breakpoints and single stepping at the source line level, inspection of stack frames, source code listing, and evaluation of arbitrary Python code in the context of any stack frame. It also supports post-mortem debugging and can be called under program control.”

I don’t know for certain, however, if pdb is like jdb then this is the module that any python IDE is using to offer you debugging capabilities. They build their gui on top of this module and expose pretty pictures and some subset of pdb to you. That’s another reason I prefer to use, and understand, things like jdb and pdb instead of relying on an IDE’s rendition.

If you have any interest, there are the ugly details and a gentle introduction.

VI Love

June 13th, 2008

I’m embarrased to say I didn’t know about shift-k in vi and stumbled upon it with a caps-lock incident. Yes, I am admitting this in public. I didn’t say I was good at this computer crap.

Now I don’t know how I survived without it. Not only will it hook you directly into man pages, it takes file context into place. So shift-k with my cursor over “range” in a python file takes you directly to…

“Help on built-in function range in module __builtin__:

range(…)
range([start,] stop[, step]) -> list of integers………….”

To get the python docs working, you’ll need python-doc installed “sudo apt-get install python-doc” and you’ll need something like this in your .bashrc or related file…

# PYTHONDOCS
PYTHONDOCS=”/usr/share/doc/python2.5/html/”
export PYTHONDOCS

Now can someone comment and tell me how I can wire django docs into this as well??

*args and **kwargs

May 29th, 2008

A lovely simple explanation, with examples, of how to use variable length arguments in python. Of course there’s always the ugly version as well.

Task Software

May 26th, 2008

I’ve been using Mark Hurst’s gootodo for over a year now and I can’t imagine work life without it.

I’m not sure if Mark’s a fan of GTD but the app certainly supports it if that interests you. I think it’s keys are the ubiquitous smtp interface and it’s calculated simplicity. It’s a simple, some may say oogly, application that works.

The quick story. It’s a web-based task application with an smtp interface. That allows me to send an email to today@gootodo.com with subject “eat a good lunch from McDonalds”. Or tomorrow@gootodo.com “eat a better dinner from Harvey’s”. This allows me to easily push tasks onto my task list from any email client including my blackberry. As well I can easily forward emails, pictures taken on blackberry, links, and other digital artifacts. It nicely supports the concept of 43 folders as well as an empty inbox.

Some quick examples of how I use it….

  • Receive an email, no time to reply, must respond at some point…..Forward email to 2d@gootodo.com with subject “reply to jojo’s email”.
  • See a cool shelf I’d like to build…..Take a picture with blackberry and forward in email to tomorrow@gootodo.com with subject “print shelf picture”
  • Browse a site about an interesting conference with registration closing in April….Email site link to march15@gootodo.com with subject “decide about conference”

Oh, did I mention it’s a whooping $3 per month.

DemoCampGuelph6

May 6th, 2008

DemoCampGuelph6 is booked for Wednesday July 9th. Please talk the event up and sign up to attend here. As always, we need interesting demo’s, if you know anyone interested please have them contact me here asap.

With this being #6 I’m seriously concerned about my health. I hope NOT to follow in David’s footsteps. Health-wise that is, fashion wise I’m always scampering along after David.

flock…2 years later

April 22nd, 2008

I installed flock today. This isn’t my first time installing flock. In fact it may be my third, fourth, or fifth time. While flock has come a long way, I can’t help but think that articles like this one written last week remind me a lot of one a tiny one I wrote over 2 years ago.

What’s my point? No clue, maybe just gratuitous links to old posts of mine? Or maybe something about how disruptive technology isn’t about taking over an industry as much as challenging and building community. Flock’s better because firefox’s better because IE’s better because flock’s better….

Hide your feedback loops

April 17th, 2008

Neil posted today about restaurants and the challenge they have getting real feedback, assuming they’re one of the rare few who actually want feedback. The way we’ve been tackling feedback in BrainPark is to try and hide it from our users. Hide sounds a tad malicious but all that I mean is make feedback part of the application instead of soliciting feedback from users with forms and other garbage.

A somewhat trivial example, let’s say you’re building a code search tool for your intranet. You want to know when you’re search algorithm sucks and when it works so that you can improve it based on hard facts. What do you do? Add a “Did these search results help you?” form right? Ewww!

Build the feedback into your application. In this case, add an X beside each search result that allows the user to make that result go away. For the user, they can refine and shape the results to give them more value and reduce the noise. For you, you can now create reports that show your team precise examples, with real data, of where your search is failing.

If you could somehow add a similar feature that allowed the user to say ‘I should have saw this in my search results’ then you’re in even better shape. Now all your design/dev team has to continually reduce the amount your users have to ‘fix’ their search results.

More Solr MultiCore

April 15th, 2008

The MultipleIndexes wiki page may, or may not, contribute to the previous post…

“There are various strategies to take when you want to manage multiple “indexes” in a Single Servlet Container”