Archive for February, 2008

Replacing a string inline using Perl CLI

Sunday, February 24th, 2008

This is a technique to replace a string in a file or a number of files using Perl.

perl -pi -e ‘s/old_string/new_string/g’ file_pattern

Can’t locate Net/SNMP.pm in @INC ….

Saturday, February 16th, 2008

If you are getting this error, you will need to install NET::SNMP Perl CPAN module.

The easiest way to install the NET::SNMP module is to by the CPAN CLI interface.

# perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell — CPAN exploration and modules installation (v1.7602)
ReadLine support available (try ‘install Bundle::CPAN’)

cpan> install Net::SNMP

RDP is very slow in Vista

Friday, February 8th, 2008

If you experienced this problem, it is related to Vista’s AutoTuning Feature.

To disable the Auto Tuning Feature, type the following command under Administrator

netsh interface tcp set global autotuninglevel=disabled

To re-enable Auto Tuning, type the following command

netsh interface tcp set global autotuninglevel=normal