.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.
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 220.127.116.117 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:
Running PHP scripts from command-line with WAMP (Windows Apache, MySQL, PHP)
On my old pc I installed Apache, MySQL and PHP singularly, and I made some PHP scripts to be runned from command-line, like this:
c:\php\php -f myscript.phpOn my new pc I installed WAMP5 1.6.4, all was running fine (phpMyAdmin, my local website, php scripts pointed to by the browser) but php scripts launched by command-line reported
Fatal error: Call to undefined function mysql_connect() in myscript.phpObviously I changed the php path to
c:\wamp\php\phpbut with no results.
Solution: change the command to
c:\wamp\php\php -c c:\wamp\apache2\bin -f myscript.phpThe -c option tells php to search php.ini in the directory specified, and that's needed because WAMP puts php.ini in Apache bin directory, while with a PHP regular installation php.ini is located in the php.exe directory.