Dangerous Cucumber Loading Issue I recently discovered a potentially dangerous issue with how cucumber loads ruby files. The standard cucumber project expects a features directory in which to place your .feature files. Standard practice is to place supporting ruby files in features/support and to place step definitions in features/step_definitions, but that’s just convention. Cucumber recursively [...]
Author Archive
Fetch and Iterate
By jasonkarns in javascriptTonight I stumbled across a blog post from the future! Or something like that. On 4/17 at 11:30PM I read a blog post that was published on 4/18 at 1:54. Time zones = time travel. Anyway… It was about finding a cleaner, more succinct, syntax for a standard pattern: fetch_data, process_data, rinse and repeat until [...]
Tags: javascript, php, ruby, while-loop
ANSI color in Windows shells
By jasonkarns in shellHaving used git on windows for over three years now, I’ve fallen back in love with the command line. Bash, of course, not the windows command prompt. Beautiful, ubiquitous, warty bash. Git depends heavily on GNU utilities so on Windows it requires either cygwin or msys. Having been burned by cygwin in the past, I [...]
Subdirectory Checkouts with git sparse-checkout
By jasonkarns in gitIf there is one thing I miss about SVN having switched to git (and trust me, it’s the only thing), it is the ability to checkout only a sub-tree of a repository. As of version 1.7, you can check out just a sub-tree in git as well! Now not only does git support checking out [...]
Tags: git, read-tree, sparse-checkout, svn
JRuby on MSYS | MinGW
By jasonkarns in jruby, rubyFor many Windows users, like myself, the easiest way to get up and running with Ruby is to install JRuby. If you’re like me, then you may also be a Git user. Now this is just a hunch, but I would wager that if you’re a git user and interested in ruby, then there is [...]
Ubiquity in Firefox 5
By jasonkarns in ubiquityAs may be clear by my ubiquitycommands github repository, I am an avid Ubiquity user. So much so, in fact, that I delayed upgrading to Firefox 5 until I was able to find a version of Ubiquity that works with Firefox 5. Wonder of wonders, I have found that version. Satyr Murky continues to work [...]
Test Your Transformations
By jasonkarns in .netWeb.config transforms are a really great tool for setting up environment-specific configuration files. However, the transform syntax can be a bit obscure, and tracking down configuration bugs is just painful. For this, there is a great testing tool hosted on AppHarbor. Paste in your web.config contents in one box, drop in your transform in another [...]
Tags: .net, asp.net, transforms, web.config
Google Calendar > Lotus Notes
By jasonkarns in productivityAre you forced to use Lotus Notes at work? Do you prefer Google Calendar? Would you like to have your Lotus Notes calendar synced to your Google calendar? Solution: CalSync! CalSync is a great little utility that runs in the background and automatically syncs your Lotus Notes calendar with Google Calendar. You can download it [...]
Tags: calendar, google, lotusnotes
Userscripts, Userstyles and Ubiquity
By jasonkarns in ubiquity, userscripts, userstylesA while ago I described how to merge two git repositories into one. I discovered how to do this as I was attempting to consolidate a number of git repositories that I have on GitHub. Previously, I had a separate git repository for each user script, user style and ubiquity command that I’ve written. It [...]
Tags: ubiquity, userscripts, userstyles
Merge Two Git Repositories Into One
By jasonkarns in gitA few weeks ago I tweeted: “Just did 2 subtree merges in order to combine 2 partially-related git repos into a single repo and still maintain history. #gitrocks” Wanna learn how to do it? Here we go… TL;DR # create new project as the parent $ mkdir new_parent_project $ cd new_parent_project $ git init $ [...]
Tags: git
