Blog makina

Contenu exporté vers le blog makina-corpus.org

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.

Howto nicely theme Drupal node form

Drupal node form is not the most exciting user experience that Drupal may propose. If you are an experienced user, there is no need to worry, but in most cases, the sites you'll make with Drupal will be stupid end-user oriented.

With some minor custom theme alteration, you can easily provide the exact same form, but more "Wordpress-like", understand here, with a better organization and a more trivial visual schema.

Howto fix Drupal's update.php when $_REQUEST is denied by a paranoid sysadmin

I dont know how much people get to this problem, but one thing is sure: when you have a paranoid sysadmin, you might encounter some surprises with PHP and globals.

The annoying case is here when you restrict PHP to the maximum you can, you can't access to the $_REQUEST superglobal.

Bien configurer Iptables sur un serveur OVH RPS pour le SAN

OVH propose une offre de serveur "Cheap", le RPS. Ces serveurs ont la particularité de fonctionner sans disque dur, tout le stockage étant déporté sur un SAN (storage via le réseau).

Deux problèmes se posent, dont un qui est vrai avec tous les serveurs OVH.

  • Le Premier est l'existence, sur ces serveurs, de 2 adresses IP publiques, celle physique du serveur, et celle qui vous est attribuée (IP failover).
  • Le second est le stockage sur un disque réseau, pouvant perturber la mise en place d'un firewall.

Do not use <Bad PHP applications> !

<?php
   
foreach ($_POST as $key => $value) $$key = $value;
    foreach (
$_GET as $key => $value) $$key = $value;
?>

No comment..

Howto install openoffice 3 on Ubuntu 8.10 Intrepid

OOo Da Mouette

Since Ubuntu does not provide supported packages for OpenOffice 3.0, here is a simple method to install OOo3.