Install unrar command

Under Debian Linux, you need to type apt-get as follows to install unrar program:
# apt-get install unrar

If you are using Fedora core Linux then use yum command as follows (see discussion below):
# yum install unrar

If you are using FreeBSD, use:
# pkg_add -v -r unrar

If any of above, methods is not working for you, download binary package from official rarlab site:
$ cd /tmp
$ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz

Untar file
$ tar -zxvf rarlinux-3.6.0.tar.gz

Both unrar and rar commands are located in rar sub-directory. Just go to rar directory:
$ cd rar
$ ./unrar

Now copy rar and unrar to /bin directory:
# cp rar unrar /bin

How to use unrar

unrar command supports various options below are common options that you need to use everyday.

Task: To open rar (unpack) file in current directory type command:

$ unrar e file.rar

Please note that replace file.rar filename with your actual filename.

Task: List (l) file inside rar archive:

$ unrar l file.rar

Task: To extract (x) files with full path type command:

$ unrar x file.rar

(D) To test (t) integrity of archive, file type command:
$ unrar t file.ra

The following reports will be modified:
1. The Series Search report currently displays the full series/contract date in YYYY/MMM/DD format. Beginning February 12, 2010 the ticker columns will be removed and replaced with a one column Call/Put indicator.

2. Series Added Today

The Series Added Today report will display the full series/contract date in MM/DD/YYYY format and ticker columns will be replaced with a one byte Call Indicator column and a one byte Put Indicator column. The record size will decrease by two bytes.

3. The Series Download reports will display the full series/contract date in MMMDDYYYY format. Ticker symbols will be removed and replaced by a two byte Call/Put indicator. The record size will increase by two bytes.

4. The Flex Prices Reports will display the full series/contract date in MM/DD/YYYY format.

5. The OCC Volume Query will offer a series/contract lookup field for specific trading symbol(s) and display the series/contract date in a MM/DD/YYYY format. The series/contract date will also be appended to the end of the CSV download file in a MM/DD/YYYY.

6. A new daily trade volume HTTP download file will be available beginning 02/12/2010 that will append the series/contract date in a MM/DD/YYYY format to the end of each record. Please note that the existing OCC Trade Volume HTTP Download report without the series/contract date will remain “as is” and will not be affected by the new report. The new OCC Daily Trade Volume HTTP Download report will be located at the following URL on 02/12/2010:

Current OPRA participants include: AMEX, BSE, CBOE, ISE, NASDAQ, NYSE Arca, and PHLX. The participants act as a policy committee composed of representatives from each participant exchange and they implement and, subject to Commission approval, amend the policies and procedures set forth in the OPRA Plan.

The Options Price Reporting Authority (OPRA) provides, through Market Data Vendors, last sale information and current options quotations from a committee of Participant Exchanges designated as the Options Price Reporting Authority.

For more detail please visit : http://www.opradata.com/

How to get a file extension
How to get a file extension in PHP:

$ext = pathinfo($file_name, PATHINFO_EXTENSION);
How to get a file extension in Perl:

my $ext = ($file_name =~ m/([^.]+)$/)[0];
How to get a file extension in Ruby:

ext = File.extname(file_name)
How to get a file extension in Bash:

ext=${file_name##*.}
name=${file_name%.*}
How to get a file extension in Python:

import os
ext = os.path.splitext(file_name)[1]

#!/usr/bin/perl
use Fcntl; #The Module
use Spreadsheet::ParseExcel;

unlink (“Trunk_page.html”);
sleep 2;
my $oExcel = new Spreadsheet::ParseExcel;
my $oBook = $oExcel->Parse(“E:/File_Report.xls”);

print “content-type: text/html \n\n”; #The header
sysopen (HTML, ‘Trunk_page.html’, O_RDWR|O_EXCL|O_CREAT, 0755);
printf HTML “\n”;
printf HTML “\n”;
printf HTML “”;
printf HTML ” body {font-family: Times New Roman, verdana;”;
printf HTML ” color: black; } “;
printf HTML ” t2 { color:blue } “;
printf HTML ” t1 { color:red } “;
printf HTML ” t3 { size:’1′ } “;
printf HTML “\n”;
printf HTML ”

“;
printf HTML “This email is best read in HTML
“;
printf HTML “


“;
printf HTML “

“;
printf HTML “Here is trunk (Cpp, Obj, Exe, Dll and Lib file) file details with date after Nightly Build run.“;
printf HTML “


“;

#my $Tot_Rows= $Sheet->UsedRange->Rows->{‘Count’};
printf HTML “

“;
my($iR, $iC, $oWkS, $oWkC);
$oWkS = $oBook->{Worksheet}[0];
# Performance Table
print $oWkS->{MaxCol};

#for(my $iR = $oWkS->{MinRow} ; $iR {MaxRow} ; $iR++)
#for($iR = 0 ; $iR {MaxRow})
{
printf HTML “

“;
}

printf HTML “\n”;
#$oBook->close();
close (HTML);

Install perl module

If you are using Red Hat Linux then use up2date command to install most common modules:

# up2date module-name

Use following command to list all supported modules:
# up2date –showall | grep -i ‘perl’

OR use yum command under CentOS/RHEL 5/Fedora core:
# yum list available ‘perl’

If you are using Debian Linux, try to use apt-get command to install common perl module. However following is the recommended way to install a perl module.

A) Start CPAN Shell:
# perl -MCPAN -e shell

B) Install a perl module:
At cpan> shell prompt install module using install module::Name command. For example install module called MIME::Lite:
# cpan> install List::MoreUtils

Alternatively, try out the following command:
# cpan -i List::MoreUtils

The Olympic medals being flashed all across TV screens worldwide catch the eye and inspire the imagination. In seeing their beauty, one might wonder just how these wonderful mementos are created. Let’s take a look at the basics of the medal manufacturing process.
The Olympic medals are actually struck by a process basically the same as modern coins. The creation of the Olympic medals begins with the creation of a design model by the artist, based on an original work of art. The artist sculpts a detailed three-dimensional prototype of the design, which is then cast into plaster. Usually these are much larger thanb the actual medal. A specialized computer scanner is then used to transfer the digital image into a pantograph, which automatically carves the design into a steel mold used to strike the medals. Before going into production, the mold undergoes a hardening process to make it more resistant to pressure, so that it does not wear out when striking the medals. During the production powerful presses will be used on the discs of silver and bronze to fashion the image on both sides of the medal.
The International Olympic Committee has strict requirements on the design for the Olympic medals. Specifications state the materials, identification, weight, size and drawing for each type of medal. The medals for the champion and the runner-up are made of pure silver. Contrary to what many folks might believe, the champion’s gold medal is not made of solid gold, but is constructed instead of solid silver covered with a heavy plated coating of gold weighing not less than six grams per each medal. The gold is applied in an electrolytic process similar to other gold, copper or chrome industrial plating operations, but the coating is thicker. The plating process takes place after the medal has been struck.
A series of flat disks of a specific size and weight are carefully prepared for the striking of the medals. As noted the first and second prize medals are make of pure silver. The disks to be struck into third place medals are made of bronze. The disks are placed in a powerful hydraulic press and the design is literally pressed into the face of the medals using thousands of pounds of force. This same method is used for virtually all monetary coinage around the world. All medals are sent to be finished by the hands of expert craftsmen in the following the disk striking phase of production. During this phase the clips used to attach the ribbons are soldered to the medals.
In 2006, the Organizing Committee for the Beijing Olympic Games launched a global campaign to solicit design proposals for the medals of the 2008 Games. A number of professional organizations, including China Banknote Printing and Minting Corporation, the Central Academy of Fine Arts, and Academy of Arts & Design of Tsinghua University were invited to participate in the design selection process. The design campaign was sponsored by BHP Billiton, the diversified minerals and medals sponsor of the Beijing 2008 Olympic Games. Within three months, 265 entries were sent in from 25 provinces of China , also Hong Kong and designers from America , Australia , Russia and Germany . The medal design selected for the Beijing Olympic Games was simple but elegant and attractive. T he medals represent a blend of traditional Chinese culture and the ideals of the Olympic movement. On the front, the medals feature the winged goddess of victory Nike and Panathinaikos Arena. However on the reverse (or back side) f or the first time the medals feature a circular inset of genuine Chinese jade. The finished medals are 6mm thick, which is a bit less than a quarter inch.

Perl command line arguments stored in the special array called @ARGV.

ARGV example

Use $ARGV[n] to display argument.

Use $#ARGV to get total number of passed argument to a perl script.

For example, if your scriptname is foo.pl and you called script as follows:

./foo.pl one two three

You can print one, two, three command line arguments with print command:

print “$ARGV[$0]\n”;
print “$ARGV[$1]\n”;
print “$ARGV[$2]\n”;

Or just use a loop to display all command line args:

#!/usr/bin/perl -w
foreach $num (0 .. $#ARGV) {
print “$ARGV[$num]\\n”;
}

Found that the password being asked is for APACHE user and not for Root so the password being sent isn’t matching. Since the apache account isn’t enabled, it doesn’t have a password. So the possible workaround would be to enable the account and create a password for it. This way the SVN update should begin to work again.
Googled for Apache user enabling, enable any user etc but all I got was the Apache should be enabled by auto. Further googling showed that the users are stored in /etc/passwd file. Found a webpage asking to check status of Apache users. Did
Cat /etc/passwd and got this as given below.
dbus:x:81:81:System message bus:/:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
apache:x:48:48:Apache:/var/www: /sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin

Since it shows /sbin/nologin – this shows account is disabled from here. Did a VI to this file and changed the default prompt to bin/bash.
Then when I did a su – apache I was able to see the bash prompt.

[root@INDIAQA5 html]# su – apache
-bash-3.2$ pwd
/var/www
-bash-3.2$
This showed that using Apache user I could not created directories in this directory and checkout SVN in it. So executed following sequence of commands.
Mkdir trunk
Svn co svn.s://svn.s/trunk /var/www/trunk
When I checked out SVN, the SVN repository asked for authentication. Gave the Simplex agenti authentication details and the check out worked 

“;
#for($iC = 0 ; $iC {MaxCol})
{
$oWkC = $oWkS->{Cells}[$row][$col];
printf HTML “%s”,$oWkC->Value,if($oWkC);
printf HTML “
“;
}
printf HTML “