A classic calendar made with OpenOffice Calc:
The cells with orange background are Italian holidays, and the background has been added manually (no formula); Easter is missing because its calculation would require a custom formula.
In regular expressions there are some constructs that influence the way a pattern is matched:
- Positive lookahead
- Negative lookahead
- Positive lookbehind
- Negative lookbehind
- Testing regular expressions
Mounting a second fan on the back of the case (Antec SLK3000B)
With the summer approaching, I am making some experiments trying to cool my pc as much as possible while keeping it quiet. Now, airflow in the case is made by 2 fans: the intake fan, a Papst 4412 F/2GLL, pulls air inside the case from the front, the exhaust fan, a Antec Tricool coming with the SLK3000B, pushes air out to the back; in addition, the psu fan pulls air from the top of the motherboard through the psu to the back.
Since I bought a second Papst 4412 F/2GLL, I tried positioning this fan in different locations to see which one conributes the best to the cooling. One of these is the back of the case, in the bottom, where there would be additional cards: it pushes air out of the case through the back slots.
Execute a command at shutdown
To dismount TrueCrypt volumes at shutdown and reboot time, I created a script, put it in
/etc/init.d/ and symlinked it into the needed
/etc/rc?.d/ directories using
Here is the detail:
How to rename multiple files from bash
Rename all *html files to *test:
for x in `ls *html`; do mv $x `echo $x | sed -e "s/html/test/"`; done
for var in some-list ; do command ; done