Give a try to Flock

I just installed Flock and I’m giving it a test drive. But this is not about Flock itself. It is about something fun and strange. When I’m trying to access https://addons.mozilla.org/firefox/216 I got Unable to connect when using Firefox for this site returns normal page. Well, someone does not like Flock or it just some …

Adding Rails application to /usr/local/etc/rc.d/

I was adding recently Rails application to FreeBSD startup scripts, to have it running after power-on. I have chosen /usr/local/etc/rc.d/ as place to add such script. I’ve copied some existing script (I believe it was from Apache) and customized all required variables. But after reboot Rails application was not running. Starting script as a root …

FreeBSD port monitoring revised

Some time ago I wrote simple script to monitor installed ports on FreeBSD machine (original post https://nhw.pl/wp/2006/06/13/monitoring-freebsds-ports/). It works quite well and shows me what is happening on some machines which are manage not only by me. And leaves some trace after handy portupgrade -a command ;-)) But when many ports are upgraded at once …

Catching general exceptions in Ruby

I was wondering how to catch exceptions of any kind in Ruby. Well You just use begin rescue pair, without specifying what kind of exceptions do You want to catch. This perfectly gets all exceptions. But when You want to use some information, like exception name written to user, You have to declare some variable. …

WordPress blogtxt theme patch

I’m reading a lot about UI design, and one of design rules to web navigation is “no link to current page” – for example http://www.alistapart.com/articles/whereami I’m pretty sure also somewhere on Jakob Nielsen’s useit it is also given, but I can not find right now. This mean no link on page should point back to …