2014

One of the great new things in Drupal 8 is that it comes with a dependency injection container ("DIC").
In fact, it borrows the dependency injection container component from Symfony..

If you don't like the DIC from Symfony, you could try Pimple instead.
Or you can skip to the next article, and build your own.

XAutoload 7.x-5.x now has full support for PSR-4 as in Drupal 8.
So, you can now organize your module class files in Drupal 7 like this:

class: "Drupal\$module_name\Foo\Bar"
file: "$path_to_module/src/Foo/Bar.php"

Enjoy!

2013

Teakmoebel Logo

I've been working with guaka since 2010. After getting to know him from our mutual interest in an Open Source hospitality exchange website, our first Drupal project has been a migration project of an Israeli human rights NGO site from ASP to Drupal 6.

2012

Tags: 
imagene

The Imagene gradient generator Drupal module generates 1D and 2D gradient images based on [Bézier control points](https://en.wikipedia.org/wiki/B%C3%A9zier_curve) encoded in the file url.

animelion on drupal.org asked me for some example images Here are some!

You need javascript enabled to see the gradients.
(imagene does not need javascript, but this blog post does)
Use your favourite web developer tools (Firebug etc) to inspect the elements and see the background image url.

Vertical gradients

With only two colors, you can achieve a lot of different gradients: Linear, cubic, etc.

Transparency gradients

2011

Tags: 
linux

In linux you can configure the pgup/pgdown keys to navigate through commands you typed that begin with the string you just typed. Type "mysql" and then hit "Page up", and you will see nothing but mysql-related commands.

Unfortunately this has to be configured anew on every machine or server/vm I work on, and I always forget where this is configured (and it takes a while to find it in google), so I thought I should write it down.

------------

In /etc/inputrc, uncomment:

An implementation for

<?php
camelCaseExplode
('FooBar') === array('foo', 'bar')
camelCaseExplode('FooBar', *, *, '_') === 'foo_bar'
?>

With parameters to control special cases like `AABc`.

Note: I developed this module for Drupal 6 and did not port it to D7 yet. This blog is now on D7, so sorry! no slideshow available for you atm.

In a previous post I announced the slides for my presentation at Bxl2011 are now online. Maybe you noticed, these slides are all HTML and (quite poorly done) CSS.

Tags: 
crumbs

The slides are online! (EDIT: not really, atm)
I did not really have the time to add some nice CSS - next one will be more beautiful.

Feb 07, 2011.
It was an eventful weekend on the Drupal Developer Days, and I missed a lot of the Sunday presentations. Luckily I did not miss my own, Using Crumbs To Build A Consistent Hierarchical Site Structure., and was able to finish the slides just in time. Almost..

Pages