Merry Christmas
I wish you a merry Christmas! I hope you already got all those presents for your beloved ones. And I hope you have nice decorations at home or wherever you are. If you’re still looking for something special have a … Continued
Ruby’s “each” for JavaScript
Wow! 30 new subscribers due to my last blog posting about JavaScript inheritance: Welcome dear new readers ๐ Due to this fact I’ve decided to try out something new. No fancy new technologies for showing-off but a tutorial-like introduction to … Continued
JavaScript Inheritance via Prototypes and Closures
JavaScript as a prototypical language offers loads of solutions to implement classes and class inheritance. When coming from an Object Oriented language such as Java or Ruby, these solutions aren’t obvious at the first glance. I started coding JavaScript years … Continued
Using rsnapshot for File and Database Backups
rsnapshot is my favorite tool for doing automated distributed backups on Linux machines. It saves you a lot of headaches – and it finally replaced all those hundreds of hand-made backup scripts I previously used. rsnapshot itself is easy to … Continued
Liquid Canvas Version 0.1 Out Now
I’ve just released version 0.1 of Liquid Canvas.
It’s a JavaScript library for drawing inside your web page. It works on top of HTML canvas, jQuery and excanvas.
On the Liquid Canvas page you’ll find a demo and an example of how it works.
Here’s just a teaser take from the basic example:
$(window).load(function() { $("#example").liquidCanvas( "[shadow border gradient] => roundedRect{radius:50}"); });
Yeah, this beast renders rounded corners with a drop shadow! Harrharrharr!!!
Drupal Development and Deployment using Git
Most of the current CMSs mix their “bare” source code with configuration data, third party plugins, themes, etc. One example is Drupal where your settings.php configuration is found under the sub folder sites/default, third party themes under themes and third … Continued
Production Database Download – The Easy Way
How often did you download your production database to your development machine? And how often did you write a script for that? You’re first dumping your MySQL production database – easy. Then you download it with scp or ftp or … Continued
May I Cite Myself?
Well I’ll just do it. Maybe it’s because I’m motivated by my new blog theme. Or maybe because my blog is now running on Drupal instead of WordPress – well what the heck? ๐ Anyway, I tought it’s time to … Continued
ShadedBorder Forum Open Now
The comments section of ShadedBorder just exploded – and often questions got asked multiple times, even when there was already an answer. A comments sections simply isn’t suited for that – So here it is: The ShadedBorder Forum! Feel free … Continued
timed_fragment_cache on Rails 2.1
With Rails 2.1 cache_erb_fragment has been replaced by write_fragment. This breaks a plugin I really enjoy to use: timed_fragment_cache by Richard Livsey.
It basically allows you to specify an expiry for the fragments you cache, e.g. inside memcache, by adding a “meta” fragment for the fragment you store containing the expiry time.
Some usage examples – pretty self-explaining:
In your view:
<%- cache 'my_key', 1.hour.from_now do -%> ... <%- end -%>
With extensive queries – your view …:
<%- cache 'some_posts' -%>