readable? vs. readable_real?

Today I’ve learned, that in Ruby much better way of checking whether file is using File.stat(“file”).readable_real? than just File.stat(“file”).readable? Difference is not big, but significant. Using real version allows to check whether file is readable not only when owner and user ID match, but also when file has group readable attribute and user belongs to …

Yet another rake and subversion task

This time my first rake task – adding content to Subversion repository. I took example Ruby code given on http://wiki.rubyonrails.org/rails/pages/HowtoUseRailsWithSubversion changed a little (in rake task I can not find way to read from stdin) to get input for commit message. So, if You find useful such a code: download http://nhw.pl/download/svn.rake, put it in Yours …

Time tracking – online and offline

Recently I’ve discovered two new tools to do time tracking. Both I find very useful, however they are completely different… First one is online tool and second good old paperwork. I see how You laughed on paper based time tracking… Well it is not so bad as You think. Let me explain why it is …

Subversion and Rails HOWTO

Update You may found this utility useful – automatic SVN repository creation, and preparing all for new Rails application. https://nhw.pl/wp/2006/08/28/rails-application-creation-script/ I’ve just started new project in rails, and this time got sick trying to recollect what I need to do in order to setup svn:ignores. This is no special task, but I do it not …