Monday, October 5, 2009

mpirun and "test"

I had a great revelation today! I was unable to run my MPI program named "test.cpp" using mpirun (Open MPI) 1.3.2

I was stuck up for 3 days!

I couldnt find any problem with my code. I tried, tried, tired. It didnt work!

I changed the name of file to "client.cpp"

Alleluia! It worked. It seems that "test" is a reserved word/file in MPI. Dont mess with it, ever!

Wednesday, August 26, 2009

Differences between C++ Classes and Structs

Quoted from Ref:

Probably the most frequently asked interview question that I have received is one that explores the difference between C++ classes and structs. Such a question was asked by a Northrop Grumman recruiter during a career fair at UC Irvine. I was also asked this sort of question during an on-site interview at Heavy Iron Studios. Recently, it has been asked during a phone interview with Amazon.com.

My answer typically states that members of a class are private by default, whereas members of a struct are public by default. Inheritance between classes is also private by default, and inheritance between structs is public by default. The interviewer was usually satisfied with this answer, which Dr. Raymond Klefstad fed to my first computer science class. Lately, I was interested in the nontrivial cases that bring me uncertainty: a struct inheriting from a class and a class inheriting from a struct.

Tuesday, March 10, 2009

IEEEtran latex - url in reference

The url representation in reference (using bibtex in latex) may break up. U can avoid that by using:

usepackage{hyperref}

in latex file.

Monday, February 16, 2009

Installing Husband.

I got this email from one of my friends.. hilarious.

------------------------------------------------------------------
A desperate woman writes to the Technical support Guy,



Dear Tech Support,

Last year I upgraded from Boyfriend 5.0 to Husband 1.0 and I noticed a distinct slowdown in the overall system performance, particularly in the flower and jewellery applications, which operated flawlessly under Boyfriend 5.0.

In addition, Husband 1.0 uninstalled many other valuable programs, such as
Romance 9.5 and Personal Attention 6.5, and then installed undesirable programs such as NEWS 5.0, MONEY 3.0 and CRICKET 4.1.

Conversation 8.0 no longer runs, and Housecleaning 2.6 simply crashes the system.

Please note that I have tried running Nagging 5.3 to fix these problems, but to no avail.

What can I do?

Signed,

Desperate Woman


DEAR DESPERATE Madam,

First, keep in mind, Boyfriend 5.0 is an Entertainment Package, while Husband 1.0 is an operating system.

Please enter command: ithoughtyoulovedme.htmland try to download Tears 6.2 and do not forget to install the Guilt 3.0 update.
If that application works as designed, Husband1.0should then automatically run the applications Jewellery 2.0 and Flowers 3.5.

However, remember, overuse of the above application can cause Husband 1.0 to default to Silence 2.5, Happy Hour 7.0 or Beer 6.1.
Please note that Beer 6. 1 is a very bad program that will download the Farting and Snoring Loudly Beta.

Whatever you do, DO NOT under any circumstances install Mother-In-Law 1.0 (it runs a virus in the background that will eventually seize control of all your system resources.)

In addition, please do not attempt to reinstall the Boyfriend 5.0 program. These are unsupported applications and will crash Husband 1.0.

In summary, Husband 1.0 is a great program, but it does have limited memory and cannot learn new applications quickly.
You might consider buying additional software to improve memory and performance.
We recommend: Cooking 3.0 and Hot Looks 7..7.

Good Luck

Tech Support .

Saturday, January 31, 2009

Find the disk space usage in Mac and Linux

To find the total space usage of all the files/folders in a particular folder, in human readable form, use:

du -sh *

(on Terminal)

About Me

My photo
Jaison Paul Mulerikkal is the Vice Principal of Rajagiri School of Engineering and Technology (RSET), Kochi. He was the Principal of Jyothi Engineering College (JEC), Cheruthuruthy, Trissur, India. He is a member of CMI Sacred Heart Province, Kochi. He is a civil engineer by profession, but did his Masters in Information Systems from RMIT University, Melbourne, Australia and subsequently received his PhD in High Performance Scientific Computing from the Australian National University. He had worked as a computational scientist at the University of Auckland, New Zealand.