Serving out static files shouldn't require creating a VirtualHost
in Apache or a nginx config file (this project may not be render this claim inaccurate though). Here's how to do it in one line.
$ ruby -run -e httpd . -p8000
In true dsl fashion, this require
s the ...
I've switched to a new look based on Tom Preston-Werner's theme. (Thanks Tom!) Its clean look made an impression when I first saw it; my yearning was further kept alive whenever I browsed blogs with the same look - which is not uncommon, given the popularity of the Jekyll ...
Today I learnt: you can do this by adding --no-edit
to the invocation.
I learnt it the hard way: scanning the manpage from start to end. As the "false" symbiont to --edit
, defined via OPT_BOOL, you won't have much success grepping --no-edit
through the source either.
The curious developer ...
One morning Skype decided to update itself. However the upgrade failed with an install error 1603, and tried to make up for its crypticness by launching an automatic query of Skype's help centre, which turned up no results.
This left me ...
A couple of weeks back, github introduced "starring", ostensibly to separate notifications from "tracking".
Sounds good. I've always wanted something like that. My apologies to those following me for the flurry of activity; I've shifted a couple of repositories from my browser's bookmark store to use the ...
Firefox now features a nifty "new tab page". You can drag around the thumbnails, remove them...oops, I accidentally removed one, how do I get it back?
The options according to Mozilla don't sit well with me. There must be a better way to do it!
From http://www ...
As I fired up Google Reader for my daily appetite of content, I noticed that things looked a little different.
Hmm, was my userscript messing things up? After disabling and reloading, I realised I was in the middle of an A/B test!
For comparison, here's what the current ...
For details on the bug itself, see the ticket description
Summary: in Ctrl-R (reverse-i-search), Alt-* leads to * being inserted at the cursor, instead of the command being executed. eg. 'f' is inserted when Alt-F is hit, instead of the cursor being moved to the end of word (forward-word).
It took ...
''
in vimI picked this up from Andrew's post while reading up on the vintage mode in sublime. While I didn't take the plunge in the end, this plugin is now loaded.
There is still some room for improvement, as there are times where ...
I used to be of the opinion that Ruby takes OOP to the limit, by allowing reopenable classes.
Take the factorial function. It operates on numbers, so conceivably, there should be a "factorial" message on receivers of type Number (to borrow from Smalltalk). Here's how it can be done ...