Yet another linux nerd. Olivier Garcia's Blog

A few things about ruby

  • If you use emacs, live on the edge with the emacs-rails SVN trunk, that plays better with RoR 2.0+
  • The faker gem is handy if you have to create dummy data/pages
  • If you have trouble with the error unexpected tINTEGER after creating a new model, you may have used a ‘type’ column or another reserved word.
  • Test, test, test. If you don’t know Behaviour Driven Development (BDD for the acronyms junkies like me) check http://blog.daveastels.com/files/BDD_Intro.pdf

And a note about web security
I recently saw iphone-like slider that could be used as a captcha :



It consists in a javascript object that can be used to “unlock” forms (eg. by filling a <form> action), and may work against dumb bots. Unfortunatly, writing a function to bypass pure javascript protection is trivial (here by calling a simple handler) so this (cute) protection will be easily defeated. Client side / javascript protections won’t protect against specifically written bots. The only solution so far is a captcha based on image / heavily distorted text.

Leave a Reply