Monday, March 28, 2016

Linux web page error message location


Error File location for page error:
sudo cat /var/log/httpd/error_log


Wednesday, March 23, 2016

Listing Perl Modules - default or local installed

http://www.perlhowto.com/list_the_installed_modules

This additional
~$ cpan -l

There are several ways to obtain the list of perl modules installed in a system:
-- Using perldoc
There are 2 commands, depending of the kind of perl module:
perldoc perlmodlib
'perldoc perlmodlib' list the modules that come preinstalled with the standard perl package.
perldoc perllocal
'perldoc perllocal' lists the optional modules that are installed in your system that don't come with perl by default.
This command returns lots of useful information for every optional module installed, like the installation date, the directory where the module was installed, the module version number, etc.
-- Using a script
If you want to obtain the list of all modules installed using a script, you may use the following one-liner (have a look at 'perldoc perlmodlib' for details about this one-liner):
perl -MFile::Find=find -MFile::Spec::Functions -Tlw
     -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ },
         no_chdir => 1 }, @INC'
-- If using ActivePerl
If you use ActivePerl (very likely if you're using Perl in Windows), you may use the following command to obtain the list of modules:
ppm query

Friday, January 8, 2016

How to host bugzilla in RHEL6

http://bugzilla.readthedocs.org/en/latest/installing/linux.html

https://www.rosehosting.com/blog/how-to-install-bugzilla-on-centos-6/

http://ftp.mozilla.org/pub/webtools/


http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/


1. Install perl, httpd, mysql-server, etc
2. Install perl modules (perl install-module.pl --all)
3. Configure mysql-server config files
4.

 yum install httpd mysql-server mod_perl mod_perl-devel httpd-devel 

Troubleshooting MySQL:
http://stackoverflow.com/questions/11657829/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-var-run


Tuesday, December 22, 2015

Perl CSV to Excel 2003

http://www.perlmonks.org/?abspart=1;displaytype=displaycode;node_id=635437;part=1

http://www.perlmonks.org/?node_id=635437

http://cpansearch.perl.org/src/JMCNAMARA/Spreadsheet-WriteExcel-2.37/examples/csv2xls.pl

http://unix.stackexchange.com/questions/158254/convert-csv-to-xls-file-on-linux


Wednesday, November 18, 2015

Download ebook recursively

http://stackoverflow.com/questions/273743/using-wget-to-recursively-fetch-a-directory-with-arbitrary-files-in-it

wget -r --no-parent ftp://ftp.ni.com/pub/events/

wget -r --no-parent ftp://ftp.ni.com/pub/branches/uk/


Tuesday, October 13, 2015

Modify Screen Saver Timeout in Registry

Modify Screen Saver Timeout in Registry

1. Start > Run > regedit
2. Find "ScreenSaveTimeOut"
3. Click and modify the value

Monday, October 12, 2015

Windows Task Manager - kill task and list task

References:
http://www.addictivetips.com/windows-tips/kill-processes-from-the-command-prompt-in-windows-7/
https://technet.microsoft.com/en-us/library/bb491009.aspx

1. List Task List
C:\> Tasklist

2. Kill Tasks in single command
C:\> TaskKill /f /im excel.exe