Search this blog

mercredi 27 juillet 2011

Drupal 6.22: updating modules

To update the Google Analytics 6.x-3.3 module, download the last version, decompress and replace the current directory in /var/www/drupal-sites/all/modules. This location must have only one version of the module. For example, if you rename the directory of the previous version (ex. google_analytics_old) and keep it in the same place, Drupal may not use the updated version.

jeudi 21 juillet 2011

mardi 19 juillet 2011

Ubuntu 10.10: Masquer les icônes des disques amovibles du Bureau

Pour masquer les icônes des disques amovibles du Bureau il faut utiliser GConf editor:
Tapez Alt + F2
Tapez gconf-editor et valider
Aller dans apps, nautilus, desktop
Décocher l'option volumes_visible
Les volumes sont accessibles dans le menu Raccourcis de Gnome. Un effet indésirable est que les icônes du menu Raccourcis n'acceptent pas les clics droit de la souris pour choisir "Retirer le volume sans risques". Il faut donc ouvrir le poste de travail dont les icônes acceptent les clics droit.

Source: http://www.pcastuces.com/newsletter/adj/3000.htm

mardi 5 juillet 2011

Linux: copy file without ownership

If you are user A and want to copy a file owned by user B. Using the cp command will create a new file that you may not be able to modify because ownership remain to user B. Normally, you need to be the root user to change ownership using the command chown. An easier way is to use the cp command with the  --no-preserve=ownership option that will create a destination file owned by your user. Example:
cp --no-preserve=ownership path_to_file_from_other_user path_to_destination_file

dimanche 3 juillet 2011

Thunderbird IMAP: change default folders

I was really annoyed by the default folder names used by Thunderbird (Sent, Junk, etc...) because they are different from default folders already in use in my remote webmail account (Sent Items, Spam, etc..). As I was using both Thunderbird (from work) and the webmail interface (from home), my messages were split into two sets of folders. It was really confusing. For example, emptying the trash using Thunderbird to make free space was only working on one folder and not the other, and I was not able to find sent messages because I was looking into only one folder from Thunderbird.
I previously found a way to change the default remote trash folder by changing a configuration file (see related post). It is also possible to change all default directories using a couple of clicks.

  1. Right click on the IMAP account name in the left pane and select "Suscribe..."
  2. Select default folders of the webmail account and deselect default folders created by Thunderbird.
  3. You can now associate these folders to some events in the Account Settings for the IMAP account. For example:
    1. Server Settings / When I delete a message / Move it to this folder
    2. Copies & Folders / When sending a message, automatically / Place a copy in / Other
    3. Junk Settings / Move new junk message to / Other

Windows 7 add folder to Favorites

It should be as simple as an option in a folder context menu (right-click on it) but it is not.

Method 1:
You can drag-and-drop a folder or a library to the Favorites. This is also simple but I missed it the first times I was trying.

Method 2:
1. Browse to the folder using Explorer. The full path must be fully visible and correct on the Address Bar.
3. Right-click on Favorites in the side pane.
4. Select "Add current location to Favorites" in the menu.

From: http://www.webtlk.com/2009/02/23/how-to-add-items-to-favorites-windows-7-explorer-folder/