Netgear AC750 Wifi Range Extender (EX3700)
Here is how I satisfied my need to have a LAN messaging program, not really to chat with other users on the same LAN, which I could do, but to copy and paste links or texts between a rdp client and a rdp server when copy and paste from/to clipboard does not work in rdp sessions, for instance with some Android rdp clients.
These are the programs I used:
- Openfire 3.9.3 on the "server" (which can be a simple Windows pc): a realtime collaboration server using XMPP/Jabber
- Miranda IM 0.10.23.0: a multi-protocol instant messaging client
- Xabber 0.9.30b: an Android Jabber client
Create a VPN to connect from an Android client to a home Windows XP server
If you want to connect to your home computer using rdp when you are not home and are connected to the internet, you have to open a port on your firewall; changing the standard rdp port on both your server and your firewall increases your security (or decreases your unsecurity); configuring a Virtual Private Network (VPN) increases your security even more, and you can close the rdp port on your firewall: in fact, when you connect your remote client to your vpn, your remote client comes inside your LAN so that you can remote access your server from inside the LAN.
- Configure server to create a VPN
- Configure router firewall for VPN passthrough
- Configure VPN on Windows clients
- Configure VPN on Android devices
.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
.htaccess configuration 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
How to force Firefox to open in a new tab a link that tries to open a new window
about:config in the address bar, read the warning and confirm.
Then change the value of
browser.link.open_newwindow.restriction to 0.
See mozillazine about:config FAQ for a detailed description of the variables and values.
With my LCD monitor, a LG 1718S, the characters appear too much narrow on the screen, especially using Excel sheets: I tried all OSD settings but the characters are so much thin that they're almost invisible. I got the best results setting the ClearType effect:
Control Panel, Display, Appearance, Effects, Use the following method to smooth edges of screen fonts: Clear Type
This way the characters appear a little fatter and they're better looking too.
Yes, I use light grey background color :)
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
I'll try to answer these questions:
- What is AMD Cool'n'Quiet?
- Does it really work?
Remove XP Pro or Win Server 2003 bandwidth limit
Run Group Policy (gpedit.msc) and go to Computer Configuration -> Administrative Templates -> Network -> QoS Packet Scheduler and change "Limit reservable bandwidth" to "Enabled" with a value of 0%. By default it appears disabled but read the description and you'll discovered it's enabled with a value of 20%.
Seeing MySQL queries, just like MS SQL Profiler
Just execute mysqld with the
-l[=filename] command-line option.
If filename is omitted, hostname.log will be created in the mysql data directory.
log=filename line (i.e. if you use WAMP).
Then restart mysqld.
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:
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.
Pausing a command
How to pause / suspend / sleep a running command in a terminal?
How to resume the paused command?
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