Kania Lodge – my first public Rails project

To be honest, I’ve been a Rails programmer/enthusiast for quite a while now (something along 1.5 years; I think I’ve first downloaded it in July, 2005) but it’s only now that I can show you my first public project using this awesome framework. So without further ado, here it is, the Kania Lodge:

Kania Lodge

The Rails part on this website is the custom CMS that is backing it all up (based on RedCloth). Most of the hard work was with the design, though (Photoshop, etc.). I know it is a hardly original design as I’m not a full-time designer, yet I’ve done my best for it to look good. I’ve aimed for simplicity, cleanliness and good overall feel/aesthetics. Did I miss or am I right on the spot? :)

WP Movie Ratings featured on the WordPress Podcast

The team that creates the WordPress Podcasts decided that my WP Movie Ratings plugin is good enough to be featured in the newest episode, the 17th. I feel so honored I’m almost blushing. Go, listen to it. Now. There’s also a local copy you can download. The part about my plugin starts at 23:11.

Now as for my surname, I was aware it’s hard to pronounce it right but the way he read it… man, you’ve made my day! :)

Top 10 movies of 2006

Continuing from Top 25 music of 2006 and doing exactly the same for movies. Just like before. Here are the pictures that moved me deeply in 2006. They’ve shattered my mind, they’ve crushed my heart, they’ve made me laugh and they’ve made me cry my eyes out. They are all more than highly recommended.

  1. Bezmiar sprawiedliwosci (2006)
  2. Renaissance (2006)
  3. Plac Zbawiciela (2006)
  4. Syriana (2005)
  5. V for Vendetta (2005)
  6. Leben der Anderen, Das (2006)
  7. Kiss Kiss Bang Bang (2005)
  8. Brick (2005)
  9. Inside Man (2006)
  10. United 93 (2006)

While I do highly enjoy watching foreign movies (see the TOP 3 aka the cream), my top 10 list consist of 6 USA-made productions. It’s just something that makes Hollywood movies so damn good. Is it money? Maybe the craftsmanship? Who knows. Point is they make them like no one other. And they are usually the best. Period. Although you are free to disagree :-)

Top 25 music of 2006

Just like last year – here are my favourite tunes of 2006!

  1. Largo – Tango Passion
  2. Randy Crawford – When I Get Over You
  3. Métisse – Boom Boom Ba
  4. Sharam – Patt (Party All The Time)
  5. Nelly Furtado – Say It Right
  6. The Jet Set – Just Call Me
  7. Ferry Corsten – Holding On
  8. Morandi – Love Me
  9. Bob Sinclair – World, Hold On
  10. Andru Donalds & Eugenia Vlasova – Wind Of Hope
  11. Therapy – Diane
  12. Pussycat Dolls ft. Snoop Dogg – Buttons
  13. Mory Kante – Yeke Yeke
  14. Kasia Cerekwicka – Na Kolana
  15. Arash ft. Aneela – Bombay Dreams
  16. Pati Yang – Reverse The Day.
  17. K-Maro – Les Frcres Existent Encore
  18. U2 & Green Day – The Saints Are Coming
  19. Chicane ft. Tom Jones – Stoned In Love
  20. Ivan i Delfin – Jej Czarne Oczy
  21. Ласковый Май – Белые Розы (Biełyje Rozy)
  22. Akcent – Kylie
  23. Malu – Fotonovela
  24. Shamur – Gonna Make it
  25. Long & Junior feat. DJ Wiesłaff – Bo Ja Tańczyc Chcę (Style Mix 2004)

It should be no surprise that half of those tunes come straight from my dance class.

Squid: WARNING! Your cache is running out of filedescriptors

So you have a LAN with 50+ users and you set up a nice Squid w3cache as a transparent proxy with 100GB of space reserved for the cache (hdds are so cheap nowadays…). Weeks pass and suddenly you notice that something is messing up your web experience as Firefox suddenly decides to run painfully slow. About 30 minutes wasted on finding the culprit (like changing your DNS servers, clearing browser cache, etc.) until you decide to check the router and then the Squid with its logs. And then you find something fishy:

2007/01/01 17:51:19| WARNING! Your cache is running out of filedescriptors
2007/01/01 17:51:35| WARNING! Your cache is running out of filedescriptors
2007/01/01 17:51:51| WARNING! Your cache is running out of filedescriptors

I won’t be explaining why this happens. Others have done it before. What I’m going to do is present you with a solution that does not require a complete Squid recompilation/reinstallation procedure.


/etc/init.d/squid stop

nano /etc/squid/squid.conf
  max_filedesc 4096

nano /etc/init.d/squid
  # add this just after the comments (before any script code)
  ulimit -HSn 4096

/etc/init.d/squid start


nano /etc/defaults/squid

/etc/init.d/squid restart


nano /etc/default/squid

/etc/init.d/squid restart

And now watch the /var/log/squid/cache.log for a similar line:

2007/01/01 18:32:27 With 4096 file descriptors available

If it still says 1024 file descriptors available (or similarly low value) you are out of luck (or you’ve just messed something up).