{{{ 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
Category: Programming
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
Releasing with Jeweler
I love jeweler for releasing my gems, however I tend to forget how it is working, so here’s my release workflow. 1. Bump and Commit Bump the version (usually in lib/a_perfect_gem/version.rb) and git commit my latest changes 2. Doublecheck git status to check if my working tree is clean git status # On branch master… Continue reading Releasing with Jeweler
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
Git Cheatsheet
Branching If you’re planning to change huge parts of your code at once introduce a complex new feature or another API switch easily between different – simultaneously running – development processes of your project (actually, that’s called a branch) you’re better off creating a new branch. As soon as you switch to this branch, the… Continue reading Git Cheatsheet