Ardekantur

Computer Science, Ruby, and Software Engineering.

Category: Software Tweaking

TextMate, Markdown, and following hyperlinks

I’m using Matt Webb’s excellent Plain Text Wiki TextMate bundle for gathering my thoughts, and needed a really basic way to quickly open hyperlinks I’ve saved without copying/pasting and all that nonsense. So, I added this command to the Plain Text Wiki bundle. I’m sure you could get it to work in Markdown’s bundle, as [...]

Textmate, RSpec, and Pending Tasks

I fix up the RSpec TextMate bundle to take care of something that bugs me.

Fixing Slideshow (S9) and Syntax Highlighting within Markdown

In another attempt to fill a blog entry title with as many buzzwords as I can, this diff can be applied to the code in your Slide Show library in order to take the suggestion of a previous developer and use CGI to unescape the HTML that comes back from syntax highlighting code, as opposed [...]

Generating Multiple RSpec Files from a Design Document

A small Rakefile task to automagically generate your spec files from a specially formatted design document of specifications.

rest-client and SSL Hackery

I’ve forked Adam Wiggins’ wonderful project rest-client and added a horrible hack for SSL support. To wit, adding a header :ssl with any non-nil value in a request will add SSL authentication. Fo’ example:

a = RestClient::Resource.new ‘https://api.del.icio.us/v1/posts/update’, ‘username’, ‘password’ a.get :user_agent => ‘random_service/1.0.0′, :ssl => true   # => "<?xml version=’1.0′ standalone=’yes’?>\n<update time=\"2008-03-24T13:11:50Z\"/>\n"

The catch? It breaks a few [...]