Memory Leaks in GetText for Ruby on Rails

posted in: gettext, rails, ruby | 0

Version 1.90.0 of GetText for Ruby has quite some memory leaks in its Rails support files. In my case, the memory Mongrel used increased by 1 MB with each request it served… Quite amazing that you don’t really find someone else having the problem… Well there’s at least a bug report on rubyforge…

Monkey-patching gettext.rb with the following code made things quite more relaxed:

  def bound_target(klass = self) # :nodoc:
ret = nil

Fat Transparent ShadedBorders

Ryan gave the idea and some code for a new ShadedBorder feature. Fat semi-transparent borders:

Fat Borders

And thanks alot NewTrax for fixing the hover issues on IE6. It needs a bit more CSS to get going, but will solve any issues. Check out the CSS included in test.html on how to use it.

Ah, right: it’s version 0.6 which has all these features. ๐Ÿ™‚

ShadedBorder with Gracefull Degradation

Yeah well, it was raining… And I’ll be on holiday for quite some days from Tuesday on – without any computer. So this weekend was kind of the perfect time to hack a little bit on my neat little fun project ShadedBorder.

The result: after version 0.3 yesterday, today comes version 0.4. ๐Ÿ˜‰ The new features:

  • Graceful Degradation: If JavaScript is disabled, your page will look almost as good as if ShadedBorder could do its job.

Ellipsis or “truncate with dots” via JavaScript

posted in: css, javascript | 0

Internet Explorer comes with a nice CSS feature for truncating text by appending three little dots: text-overflow:ellipsis. Here’s a screen shot: Unfortunately text-overflow:ellipsis is no standard and not supported by Firefox, Opera, etc. With some JavaScript hacking however you can … Continued

Berlin

| 0

Memories. Memories that come into your mind when things happen – reminding you – … Right now my girlfriend is in Berlin and one of my best friends lives in Berlin.

This one is to Andy and Anna – and to New Zealand where I really met both of them the first time.

It’s online since almost six weeks. And I don’t know how long it’ll last… Check it out on last.fm as well – although you’ll only get 30 seconds there…

Random lockups/freezes on nForce4 solved

| 0

I’ve had trouble with random lockups/freezes on my nForce4 based Asus A8N-SLI Premium mainboard since the beginning. I first thought it was related to my Asus 6600 graphics card – using the open-source nv driver instead of the proprietary Nvidia driver on Linux made things better, but didn’t solve it completely. The system simply stopped responding once in a while and a hard reset was necessary.