Memory Leaks in GetText for Ruby on Rails
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:
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.
ShadedBorder with Gradients
The new version 0.3 of ShadedBorder supports gradient backgrounds:
Have a look at the updated example.
Ruby on Rails: gettext + memcache = trouble
The latest Ruby gettext 1.10.0 gem broke the memcache based fragment caching of the current project I’m working on. I figured out what the problem was. gettext 1.10.0 tries to localize caching of fragments by kind of appending the Locale.current … Continued
Ellipsis or “truncate with dots” via JavaScript
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
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…
Align List Items Horizontally with CSS …
… or: “Cross Browser display:inline-block”. If you ever wanted to display a list of items horizontally with a wrap around once the right margin of your page has been reached, you came across a float:left solution. And if you ever … Continued
Random lockups/freezes on nForce4 solved
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.
ShadedBorder on del.icio.us
Wow – ShadedBorder was top 1 on the del.icio.us main page yesterday… Thanks everybody!