Well, if you do not know “use strict” in perl, you are still perl noob. In short, “strict” is a perl module that help you writing neat code. For example, it helps detect un-declared variables, or reference calls that may causes problem.
Tag Archives: Perl
Use map() to process array
map() is a useful function in PERL to process all the elements in the array. I got one senario that bugs quite some time. I would like to use map() to replace the white space for each element in the array.
About puzzlebird
So, here is something about me.
Expertises:
HPC Architecutre, Performance tuning (system/program profile),
Linux/Unix, Mac osX, Oracle, MySQL, Perl, C, SHELL, PHP, XML, Joomla
Prototype code to run batch jobs with SGE
User once ran thousands of “agrep” jobs on our 20 CPU Solaris machine and took all the CPUs. I am leading the process to introduce cluster computing to the bioinformatics group, so this is a good chance to convert this scripts to run in a SGE cluster environment.
varchar(byte) vs. varchar(char)
In oracle, varchar2 is widely used to hold variable length string. For varchar data type, there are two minor variants: varchar(byte) and varchar(char). Usually developer does not care about and uses the default from the system. We found that in some situation there may be performance issues for varchar(char) vs varchar(byte).
Add timestamping support to prozilla-2.0.3
This request is initiated by Mojun to enhance prozilla-2.0.3. We need the function where prozilla will skip downloading a file if the local copy is the same as the remote. She did this for prozilla-1.3.x but just worked for FTP without proxy support. My patch has add timestamping for prozilla-2.0.x and tested successfully for HTTP/FTP (with or without proxy).
Set timeout for SOAP::Lite
The default HTTP timcout is 180 seconds (3 minutes), but this is not enough for long SQL query or BLAST operations. In some cases, we need to set a longer timeout for SOAP requests.
fixed bugzilla perl path in batch
During bugzilla deployment, I found all the scripts hardcoded perl interpreter to be “/usr/bin/perl”. Our current environment uses perl at other locations and this makes deployment difficult if we are going to fixed all these 60+ scripts by hand. Hence, I wrote a fixPerl.sh to do this job.
Workflow Environments Guide
This guide is excerpted from Chris Dwan (Bioteam). Original Link is here .
ensembl+DAS deployment
I have migrated “ensembl + DAS” from Marie’s linux workstation to Kampen and Genesis successfully. Marie has helped me to do everything from scratch (including hacks on ensembl web codes), so that we can track on the changes made. Below is the draft I sent to Ramneek/Neal/Kevin/Tim for review. I also proposed having all these discussed in CMAB meeting when Ramneek is back.