Rubrique virtuelle SPIP

12 mars 2009

SPIP permet de créer très facilement un article virtuel (redirection d’article). Mais il n’est pas prévu de rubrique virtuelle (redirection de rubrique).

On peut toutefois contourner cette limite en bricolant un peu. Mais cette solution est assez complexe : elle consiste à vérifier d’abord s’il y a plusieurs articles dans la rubrique ; s’il n’y en a qu’un, alors un clic sur le titre de la rubrique affiche directement cet article ; si cet article unique est un article virtuel, il joue son rôle d’article virtuel et redirige vers une URL.

Cette solution correspond à la situation où on veut une rubrique virtuelle si et seulement si cette rubrique ne contient qu’un seul article et que cet article est un article virtuel. Dans le cas contraire, la rubrique fonctionne comme une rubrique normale.

Ce n’est sans doute pas le cas le plus fréquent. Une autre solution beaucoup plus simple existe pour qu’une rubrique redirige toujours vers une URL. Lire le reste de cet article »

Configuring the touchpad on a Packard Bell EasyNote under Linux (Debian Etch - Kernel 2.6.18)

30 janvier 2007

I had some trouble configuring the pointer’s speed on my Packard Bell EasyNote. The pointer was too slow.
I found that when setting to “false” the “SendCoreEvents” option of the “InputDevice” section (xorg.conf) the pointer was running faster :-)
… but then it froze when I switched to the console by CTRL+ALT+F1 and switched back to X by CTRL+ALT+F7 :-(
The solution was in the /usr/share/doc/xserver-xorg-input-synaptics/REAME.alps file.

There was just to add the following options in the “InputDevice” section of the xorg.conf :

Option “VertScrollDelta” “20”
Option “HorizScrollDelta” “20”
Option “MinSpeed” “0.3”
Option “MaxSpeed” “0.75”
Option “AccelFactor” “0.015”

The pointer’s speed is now perfect !
Debian GNU/Linux is really the distribution that will make you a hero ;-)

(read the synaptics(5) manpage for a detailed explanation of the various options’ meaning as well as a full list of options)

Configuring a Wireless Lan PC Card Sweex 140 Nitro XM under Linux

19 janvier 2007

My Wireless Lan PC Card is a Sweex 140 Nitro XM.
It’s now working properly under Linux (Debian Etch kernel 2.6.17-2-686). But I had some trouble to make it works.
I get a great help from this tutorial: http://uid.free.fr/Wifi/WG511.html (in french) which describes two different ways to configure a wireless lan PC card (using prism54 or using ndiswrapper). My card was supposed to work under Linux using ndiswrapper (see http://ndiswrapper.sourceforge.net/mediawiki/index.php/List#S).
But I’ve been a long time trying the two ways without success.
For ndiswrapper, see here (just replacing WlanUIG.inf by wlanCIG.ing from the installation CD-ROM). I installed the following firmware http://www.prism54.org/firmware/2.7.0.0.arm by doing :
root# cp /home/my_home/Drivers/2.7.0.0.arm /usr/lib/hotplug/firmware/isl3886
But it didn’t work until I decided to unload the prism54 kernel module using modconf and unplug/replug the card. Then I’ve been very happy to get the following messages from the kernel :

Loaded prism54 driver, version 1.2
ndiswrapper: driver wlancig (Sweex Europe,02/16/2005, 3.3.20.0) loaded
PCI : Enabling device 0000:02:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10
ndiswrapper: using IRQ 10
wlan0: vendor: ‘Sweex WiFi LAN 140 Nitro XM’
wlan0: ethernet device 00:16:0a:00:66:4d using NDIS driver wlancig, 1260:3886.5 conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
ndiswrapper: changing interface name from ‘wlan0’ to ‘wlan1’

After that I just had to do :
root# iwconfig wlan1 essid “My_Essid” mode Managed key my_key
root# /etc/init.d/networking restart

It seems to be ndiswrapper which makes my wireless connection to work. I don’t understand what prism54 is doing here. But it works !

Back to the Linux tips page

PS. It doesn’t work automatically at boot time : I need to load ndiswrapper (modprobe ndiswrapper), unload prism54 (using modconf or, faster, modprobe -r), unplug and replug the card, after boot, everytime I want the wireless connection to work ! I would be pleased if somebody could tell me why.


This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0 France.