Rails Misapprehensions: Understanding RESTful PUT and POST

{{{ In the last post “I talked about the rest in REST”:http://nicksda.apotomo.de/2010/12/rails-misapprehensions-rest-is-more-than-get-post-put-and-delete/, beyond the four major verbs. Before getting completely wasted at the tonight’s new year party I’d like to quickly *illustrate my understanding of two HTTP verbs and how to think about them* in a RESTful mind. While *GET and DELETE are pretty obvious*,… Continue reading Rails Misapprehensions: Understanding RESTful PUT and POST

Haml breaks pre indentation

Haml has a feature called “Whitespace Preservation” which usually tries to nicely indent your markup. This is great. However, sometimes it gets in your way – especially when it indents your <pre> paragraphs wrong. I had a setup like %p Here, some code! = render_some_code where #render_some_code would return some markup. def render_some_code “include ‘cells’ninclude… Continue reading Haml breaks pre indentation

Perl CGI Scripts are cached after switching to mod_perl

I recently had to port a very old perl project to a new server, which is running mod_perl- that made me some headache as I didn’t know anything about that environment. Pages with dynamic form input from CGI::param suddenly seemed to be “cached”, the script did process old variables and emitted wrong output. After diggin’… Continue reading Perl CGI Scripts are cached after switching to mod_perl

Painless text-editing with Scribes 0.4 on Ubuntu

Colleagues keep laughing at me. It seems that I missed the point in a programmer’s life where he faces a shimmering light at the end of the dark terminal tunnel, where he suddently gets enlightened… and switches to eclipse or Textmate. Being an IDE-reject I’m used to work with bare-bones text editors, which support syntax-coloring,… Continue reading Painless text-editing with Scribes 0.4 on Ubuntu