.htaccess: an example of the Apache per-directory configuration file
Using bloxsom as my weblog designing application, I had to provide some settings to the Apache
.htaccessconfiguration file to fine-tune the usage of my site:
- tell Apache to load
index.cgiin addition to the default
- rewrite the requested address adding
www.if it's omitted
- rewrite the requested address adding
index.cgiif it's omitted
- and for bandwidth reduction, forbid robots from crawling some pages
This 3Com product has many functions: router, firewall, adsl modem, wireless access point, 4 port switch. 3Com chose to give two names to its products: a name for the market (as the long name in the title), which identifies the purpose of the product and is not changed when a new model replaces the older one, and a model name, a number which identifies the specific model.
The "ADSL" term in the name is particularly useful to specify that it's a adsl modem too, with a RJ-11 port that would connect the router directly to the phone line, through a RJ-11 cable, just like any adsl modem; in fact I found several routers that were capable of routing the adsl signal but were equipped with a RJ-45 port instead of a RJ-11 port: they were not DSL modems and needed to be connected to an external DSL modem. Checking the rear of the product, maybe on the user guide, can help making sure the router is a DSL modem too.
I will review two 3Com OfficeConnect ADSL Wireless 54 Mbps 11g Firewall Router models, the older 3CRWDR100A-72 and the newer 3CRWDR101A-75.
- Reliability and 3Com assistance
- Wireless trouble with 3CRWDR101A-75
- Wireless coverage
- Other features
- Missing features
License: freeware for private use
Author: Karl Maloszek
Size: 250 KBytes (114 KBytes installer)
Requirement: Windows with COM support
Panorado Flyer is a compact program that gathers GPS coordinates from Google Earth and writes them into images EXIF information.
GPG key error updating aptitude, Debian upgrade
I had an old Debian Etch machine which I did not upgrade for some time, and when I attempted to install ghostscript by using Synaptic, I've got some unmet dependencies errors with libc6 and libc6-dev. Any attempt to reinstall or upgrade these packages failed, so I decided to try to upgrade the whole system to Lenny:
- I replaced
#sudo aptitude update
But I've got this error: The error can be solved downloading the GPG signatures with these commands:
#gpg --keyserver keyserver.ubuntu.com --recv xxxxxxxxxxxxxxxx
#gpg --export --armor xxxxxxxxxxxxxxxx | apt-key add -
I've tried a few servers (subkeys.pgp.net, keyserver.pgp.com, wwwkeys.eu.pgp.net) but they could not find the "right" keys...
Then I did the
#sudo aptitude updateagain.
#sudo aptitude install apt dpkg aptitude
#sudo aptitude full-upgrade
How to mount an image file and access image content
To get access to the content of a virtual machine image or a ISO file, follow these steps:
- associate the file with a loop device node:
# losetup /dev/loop0 /var/otheros.img
- list the partition table of the device:
# fdisk -l /dev/loop0 Disk /dev/loop0: 21.4 GB, 21474837504 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/loop0p1 * 1 2609 20956761 7 HPFS/NTFS
- create device map (
kpartxis part of
multipath-toolspackage on Ubuntu):
# kpartx -a /dev/loop0 # ls -l /dev/mapper/ total 0 crw-rw---- 1 root root 10, 62 Jul 6 2008 control brw-rw---- 1 root disk 253, 0 Jul 5 23:18 loop0p1
- mount the device partition:
# mount /dev/mapper/loop0p1 /mnt
Pausing a command
How to pause / suspend / sleep a running command in a terminal?
How to resume the paused command?
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
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:
WAMP & Perl - Windows Apache, MySQL, PHP with CGI scripts written in Perl
I need Perl to run Blosxom, an open source and free CGI script to create blogs.
So I installed WAMP5 1.6.4a and ActivePerl 184.108.40.2067 with MSI installer.
I already have my site on my disk, so I told my site directory to WAMP during the setup procedure and then I pointed my browser to http://localhost/index.cgi but it displayed the cgi instead of executing it.
This is what I did to make it work:
Blosxom: How to insert a fixed path for images in Blosxom
I wrote some post on my new site created with Blosxom and I wanted to insert some images that I put in a directory called
images under my website address root.
I found different solutions: