Working stuff, coding mess, and other things..

Personal reminder about Drupal's settings.php

Because I often duplicate a production site on a local machine in order to do some debugging/bugfixes, I like everything to be ready the sooner as possible without having to do a lot of clicks.

Here is how I override values in my custom settings.php file instead of loosing time clicking into the administration pages or even doing configuration alteration with Drush.

Here is a common production site settings.php $conf variable alteration :

Tuning a bit Eclipse

I promised to some colleagues that someday, I will make a short post about my Eclipse eclipse.ini file, there it is!

Using Eclipse with some fancy plugins, you may experience a lot of the infamous quite annoying OutOfMemoryException or some incredible slowness sometime.

WTF is that!? - PHP will drive me crazy; Drupal FAPI too!

What do you think this code will output:

<?php
  $foo
= '7rray';
  echo (int)
$foo;
?>

If you answered NULL, 0 or '7rray', you're absolutely wrong. The magic with PHP is whatever you use (int) or intval() you get absolutely weird results, because it'll try to parse your string as an integer whatever is in it.

Playing with Python, D-Bus and Pidgin

Since last week, I finally can use my own domain name as jabber domain Yay! Thanks to http://jabber.apinc.org public free server, I used some DNS SRV records, and with the agreement of server owners let them handle my domain.
Now, the boring phase begins, I have to tell all my contacts to use the new XMPP screen name instead of the old @gmail.com one I was using before. The fact is I have *a lot* of contacts, even some of them which I don't really talked to. But they are all people I know, I like, or I work with, so I can't afford to loose some of them.

So, what about a bit of automation?

Let's start with the XMPP client I use, Pidgin. What's nice with pidgin, it's libpurple, and its D-Bus interface.

MDrush, a Drush python wrapper

Some months ago, I was developing some Drupal modules for my Company, I noticed the time I loose each time I have to run a Drush command (such as clear cache) in order to do basic Drupal developer stuff.

How to get rid of intrusive Ubuntu's Notify-OSD

Some people like Ubuntu's Notify-OSD deamon, because black bubbles are good looking; but in everyday's life, these are so intrusive that it becomes really anoying.

Browsing the internet, I found some a nice blog post linking to gnome-stracciatella-session. This ubuntu package was done to get rid of all gnome ubuntu modification, it contains a single xsession file which runs a vanilla gnome, getting rid of Notify-OSD, reverting to gnome default notification-deamon.

All you have to do is install this package :

System Theme 6.x-1.0 module released

System theme administration page with Slate theme

Today I released the System Theme++ module on drupal.org. This module is a simple administration theme admin page alteration. It allow site administrator to force Drupal to switch to administration theme on arbitrary pages.

Daily WTF

What The Fuck Cat

Today, I found the strangiest bug of the month; I was parsing some date parts with JavaScript to properly set default month of a YUI Calendar instance.

var month = parseInt(Drupal.settings.mymodule.date.month) - 1;
myCalendar.setMonth(month);

Why -1? Because month count starts with 0 in YUI Calendar, January is 0, december is 11; everything is fine until here.

Why the FUCK does my calendar always get to december?

Yamm 6.x-1.0-BETA1 has been released

The first official supported version of Yamm has been released1.

This version is identical to the one we use in pre-production environment for some projects. You will have no surprises using it.

Every opinion, feedback or issue is welcome.

  1. 1. See project page at http://drupal.org/project/yamm

Yamm development

I am currently writing a mass synchronization module for Drupal, based on eavy objects abstraction.
I will not describe it here, you can read the project page which describe pretty well how it works.

I wanted to do some notes about development context, and some other stuff.

About