WD My Passport Doesnt Work in Ubuntu 9.10 Karmic Koala

(OK this is my first post after a looong time so the reading is going to be bumpy ride for you)

I bought a WD My Passport external hard drive (750 GB, WD Smartware) recently and connected it to my Windows laptop and set it up. But when I connected it to my other laptop with Ubuntu, I was not able to see a drive so that I can add my files to My Passport.

I searched about this problem on Google and hit few articles which asked to look up the drive manually using a command and mount it manually. I tried it but the command didn't return me a drive, I found few more articles to debug the issue but none of them worked for me.

After some thought, I found that there is a WD Smartware installed in the My Passport which locks and secures the data with a password. Somehow this is not working with Ubuntu and therefore the drive is not showing up.

Fortunately, I saw that there is an option where we can unlock this feature in the WD Smartware when you connect to a windows laptop.

So here is what I did and what I would suggest people to do if they find the similar problem:
1. Connect the My Passport to a windows laptop
2. Open WD Smartware
3. You should be able to find a "setup" button and an option to disable the "lock feature"
4. You might have to update the firmware in order to see the option above.
5. Disable the lock feature
6. Disconnect the My Passport and connect it to windows laptop again to make sure its not asking for a password and also to make sure disable lock feature is enabled.
7. Now connect the My passport to the Ubuntu 9.10 laptop
8. Now you should be able to see the drive in Ubuntu.

More useful Solaris commands

Here is a list of Solaris 10 commands that I found helpful, to monitor and optimize the performance of the system:

1. To find the top 10 largest files on the file system:
du -a /var | sort -n -r | head -n 10

2. Sort the ls command to show the largest files first:
ls -l | sort -nk5

3. Find out the top processes taking up the CPU:
prstat -s cpu

4. Find out the top processes taking up the memory:
prstat -s size

5. Find out the number of mails in the mail queue:
mailq |wc -l

6. Get the information about a specific mail in mail queue
cat /var/spool/mqueue/qf

Are your skills upto date?

I came across this website which rates the Programming languages, Interesting read!. Also helps in finding out if your skills are upto date:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
Abstract:

The TIOBE Programming Community index gives an indication of the popularity
of programming languages. The index is updated once a month. The ratings are
based on the number of skilled engineers world-wide, courses and third party
vendors. The popular search engines Google, MSN, Yahoo!, and YouTube are used to
calculate the ratings. Observe that the TIOBE index is not about the best
programming language or the language in which most lines of code have been
written.
The index can be used to check whether your programming skills are
still up to date or to make a strategic decision about what programming language
should be adopted when starting to build a new software system. The definition
of the TIOBE index can be found here.

How to dynamically edit a website content on your browser

I was scrolling through a blog and found this cool tip, it lets you edit a webpage online in browser (I tested on Internet Explorer but I think this works with Firefox and Opera as well). Its very useful when you
want to comment/note a webpage and store it for future. You can also edit the website and take a screenshot of it. Here are the steps:

1. Open any website (eg., www.google.com)
2. Enter this line in the URL of the browser:
javascript:document.body.contentEditable='true';
document.designMode='on'; void 0
3. Go ahead and edit the website!

See this blog to know more about this idea and various comments on it.

http://www.blogstorm.co.uk/cut-and-paste-one-line-of-code-to-make-any-website-editable

How to move the thunderbird mails to Outlook

I have written a post earlier to do this, I found a new way to do it. This way is better if you have few emails to be transferred from Thunderbird to Outlook. Again, this is not a direct way and is not straightforward. Here are the steps:

1. Open Thunderbird
2. Select all the mails to be transferred
3. Right-click and select "Forward all mails" (or something like that)
4. A new mail window opens with all the selected mails as attachment
5. Send this mail to your own account (Thats why this method is not good to transfer heavy mails!)
6. Open outlook and check mail, dran-and-drop the attached mails to your desktop
7. Drag-and-drop the attached mails from your desktop to Outlook folder.

Done! Take care while moving the mails, better to take a backup.

C++ coding standards at Google

I was going through an interesting blog ( http://1-800-magic.blogspot.com/2008/06/back-to-microsoft.html) by an ex-Google employee and found this link to google C++ coding standards.


Its good to use it as a reference for good programming tips, or just an interesting go-through. Here is the link to Google coding standards (http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml )

Solaris 10 commands: How to see Documentum Server logs

Checking documentum server logs while a workflow is running is very useful, also while debugging the content server methods. Here are the steps:

1. Login to Solaris 10 (From windows, I use putty or SSH client, both are good)
2. Type bash to change the shell (I find bash is very convenient shell than ksh)
3. Change to documentum folder: type cd $DOCUMENTUM/dba/log
4. Open the log: type tail -100f <<docbase_name>>.log

The above tail command lists out last 100 lines from the log file. As and when the log file is updated by the server, the refresh happens automatically enabling to see last 100 lines always. This is very useful when the server is throwing lot of log messages.

First Impressions on Documentum 6 (D6) Contd..

These are some of the differences I saw in D6 when compared to earlier version (5.3)…

* dfc.properties file is used instead of DMCL.ini
* DMCL emulator for backward compatibility for DMCL API calls (probably desktop client uses this)
* Global registry is made mandatory
* Aspects (on the lines of TBOs and SBOs)
* D6 install comes with its own DFC.jar, which means that D5 and D6 can exist on same box
* Presets (in Webtop)
* DocApp Archive becomes a DAR and is installed from Composer (Need to analyse what a DAR format is..is it just a zip of DocApp Archive? )
* McLaren Docloader doesn’t work with D6?
* Conditional value assistance
* Classification of Search results in Webtop
* Indexing can be restricted to object type

First Thoughts on Documentum Composer (D6)

During my 2 day workshop on D6, I had a hands-on on Documentum Composer which is a replacement of Documentum Application Builder (DAB) and Installer. I liked Documentum Composer for 3 main reasons:
1. It has better interface than DAB, and its easy to use.
2. Its combined with DAB and DAI, this is very good because you can create a DocApp and Install it there itself.
3. Since it is built in eclipse, you can identify the issues at the DocApp development level instead of installation level. Any Error in DocApp is immediately highlighted with a red mark.

I tried a few things with Composer... creating objects, types, value-assistance, life-cycles.It all seemed very simple and easy to create a DocApp. Installation also went fine without any issues.

Best thing about Composer is, once you have a DocApp you can install it in multiple docbases without exiting the Composer.

One drawback according to me is, it doesn't show workflows. I saw that BPM is there under artifacts but workflows can neither be created there nor the existing workflows are displayed there. To create and manage workflows, Process Builder is needed.

(This post is composed from ScribeFire, a Firefox Extension)

My First Impressions on Documentum 6 (D6)

My First Impressions on Documentum 6 (D6)

I have attended a 2 day workshop on D6 and Installed Webtop which seemed to be a simple 3 step process:
1. Installed JDK 1.5
2. Installed Apache Tomcat 5.5
3. Copied the D6 Webtop webapp to Tomcat

PROBLEM:
First error I got when I opened webtop is this:
com.documentum.web.form.control.TagPoolingEnabledException: JSP tag pooling is not supported. Please refer to the product deployment guide for instructions on turning off tag pooling for the application server.

Searched for above error in Google but couldn’t find a solution. I researched for sometime and here is the solution that worked for me.

SOLUTION:
1. Go to Tomcat/conf folder and open web.xml file
2. search for "enablePooling" in file
3. enablePooling is by default [true] which needs to be set a false for webtop to work.
4. set the enablepooling to false as below.
    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
...
        <init-param>
            <param-name>enablePooling</param-name>
            <param-value>false</param-value>
        </init-param>
...
    </servlet>
5. delete the Catalina in Tomcat/Work folder (Mandatory)
6. restart Tomcat

Many things about Documentum

Many things about Documentum

I came across the following link which talks about many things in documentum. Very informative, clean representation and learnt many things about documentum.

http://ajithprabhakar.wordpress.com+documentum&hl=en&ct=clnk&cd=6&gl=in

Few things of interest:
1. r_object_id notation
2. doogle (http://www.componentmonster.com/doogle/) Google search for documentum
3. Workflow object types
4. Find DocApp containing a Type

..list seems to be endless!

Solaris 10 commands: How to clear Memory segments and Semaphores

We have a Solaris 10 box which hosts a Documentum docbroker and around 22 docbases. Frequently, due to high memory usage, docbases go down and everything stops working. This also happens when the backend database goes down.

To resolve this, I normally restart all the docbases and docbrokers after clearing the processes, memory segments and semaphores.

Here is the step by step process that I follow to restart the Documentum Server.

STEP 1: Kill all the docbase processes first.
1. Type
ps -ef grep documentum which will list out all the processes along with the process ids.
2. Copy the output(from console) of this command and paste it into an Excel sheet. (I use SSH Secure Shell to connect to Solaris from Windows)
3. Extract just the process ids and arrange them with spaces between them. There are many ways to do it, I use the Text Import Wizard in Excel to achieve this. You should have your process ids in format like this:
12345 234 12333 12356 123213
4. Type kill -9 and paste the above process id string and hit enter.
kill -9 12345 234 12333 12356 123213
5. All your documentum processes are killed now.

STEP2: shutdown the docbroker

STEP3: List all the semaphores and memory segments with command
ipcss -a.
1. This will list out both the semaphores and memory segments.
2. Copy the output as mentioned in STEP1 to an excel sheet.

STEP4: Kill the memory segments first.
3. Copy only the memory segment ids. Leave out the memory segments for root.
4. Prefix
ipcrm -m to each id. Your list should look like this:

ipcrm -m 435348
ipcrm -m 23465
ipcrm -m 23122
ipcrm -m 93747


5. Copy the above list and paste it into Solaris Console.
6. Memory segments are now killed.

STEP5: Kill the semaphores now
1. Copy only the semaphore ids. Leave out the semaphores for "root".
2. Prefix
ipcrm -s to each id. Your list should look like this:

ipcrm -s 435348
ipcrm -s 23455
ipcrm -s 99888
ipcrm -s 435345


3. Copy the above list and paste it into Solaris Console.
4. Semaphores are now killed.

STEP6: Start the docbroker
STEP7: Start the docbases

Blogging from email

I don’t have access to blogger from office, so using blogger email to post my blogs.
Since this is my first email blog, I guess it won’t have proper formatting!

How to Copy Thunderbird Mails to Outlook

Background: I have two email accounts that are in two different Exchange Servers. Outlook 2003 allows connection to one account at a time, so I had to waste all my time switching the accounts by restarting Outlook. To overcome this I installed another email client, Mozilla Thunderbird.

About Thunderbird: Thunderbird is a fair alternative but in no way is a replacement to Outlook. There are many things it cant do and I felt handicap while using it due to lack of features. I still had to use it to solve my problem mentioned above.

New Problem: Though I use Thunderbird, I want to copy all the mails to one repository, an Outlook PST. I wanted a ONE store where ALL my mails are stored, so that if I need to search I can look at one location.

Research: Thunderbird stores all the mails as EML files (which is the same format used by Outlook Express) and I tried to import using Outlook, I tried all options, there is no way. I also looked in Thunderbird options as well as add ins, no way. I searched in Google, there are couple of EML to MSG (outlook format) converters but none of them are freeware. I did some more research and found an *indirect* way to solve this problem.

Solution: Here is what I do every weekend to copy my Thunderbird mails to Outlook PST:
1. Open Thunderbird
2. Open Outlook Express
3. Select all the mails in thunderbird and drag them to Outlook Express window.
4. All the mails will be displayed in Outlook Express now.
5. Open Outlook, select File > Import > Internet Mail and addresses > Outlook Express
6. Outlook copies all the mails from outlook express without asking anything!
7. Delete mails in Outlook Express
8. Delete mails in Thunderbird.

This is the easy way I found out and it costs nothing! Please leave a comment if this helps you too!

How to get a tatkal passport from Hyderabad Contd...

After 3 days I went to Passport office to collect my new passport at around 5:00 PM (Its better if you reach there by 4:00 PM). I went to the same hall where I submitted my passport. There was chaos there, people wandering here and there without any direction.

There were 2 counters open, no one knows which counter is for what. I went to counter and gave my acknowledgement slip. There was a peon like guy who took my slip and showed me next counter. both the counters were crowded with people, no queue at all.

I saw people coming for passport even if they were told to collect the passport by post. such people were harshly treated and counter clerks shouted at them that they cant give the passport as they were sent on post.

In the next counter, the officer was using mike and calling names one after the other and was handing over the passport. You will have to carefully listen for your name and then rush to counter to pick up your passport. I waited for 10 min for my name to be called and got my new passport at last!!

This brings to the end of my passport episode. I have put every minute of this experience into words for two main reasons:

1. To show how rude the system is in passport office and the treatment you can expect there from passport officers.
2. To elaborate the whole process of getting a tatkal passport which I found no where documented (including the passport websites, passport office notice boards, blogs, forums...)

Hope that helps!

How to get a Tatkal passport from Hyderabad Contd....

She checked my documents file and signed on them and kept the file aside. She asked me to pay the cash in next counter.

I went to next counter which had a lady and she was taking cash while talking to her collegue. I heard her saying "I cant work anymore I will go early and take rest in the afternoon". The accent was like a village lady talking to her illeterate neighbor!.

I asked the lady in the cash counter about my file, she said it will come to her. I just stood aside waiting for the file to move 3 meters! After some time, the lady got up slowly took files with her for which payment was made and dumped them on the floor in a corner.

She then took my file and sat in the counter. She was working as if she is doing a leisure household work. I payed my cash and she gave me the receipt asking me to collect it after 3 days.

At last my application was accepted though the system and people looked tough and rude. After 3 days, I went to passport office at 5:00 pm to collect my new passport.

To be continued....

How to get tatkal passport from Hyderabad Contd...

The lady officer was shouting at people and was checking documents while chatting with her colleagues. I felt I have seen most irresponsible and reckless employee who doesn't even know how to work. I heard her saying that "I'm frustrated checking these documents and dealing with these people".

Finally my turn came, I went and showed my application and certificates. she asked if there is a change in address (as per old passport) also asked for original marriage certificate (I wanted spouse name to be included in new passport). She saw the certificates and thrown them at me.

She then asked for passport copy, I had old passport copy xeroxed all pages except the empty ones. She shouted at me "I want the copies of ALL 36 pages of passport even the empty ones. go and get them xeroxed and comeback soon" (This English translation is lot more decent than what she talked in Telugu).

I ran out of office, and found a xerox center. I got the xerox copies and went again to the same counter. The lady was as usual shouting at the applicants. I gave her all the docs including the passport copy. She set them in order and gave me a file. I understood that she wants me to tie all the docs in the file. I did it and gave it back to her...

To be continued tomorrow...

How to get a tatkal passport in Hyderabad contd...

The following are the documents that I took with me for tatkal passport (re-issue)
1. Old passport
2. SSC certificate
3. BE certificate
4. Bank Statement (for address proof)
5. Marriage Certifacte (To include spouse name in passport)
and for tatkal 3 documents..
6. PAN card
7. Driving License
8. Voters ID card
I also made an affidavit (annexure I) just in case they ask. Its prepared by a notary just opp. passport office and he charged me 120 rupees for that.

I took all these documents, made a copy of them and went to another gate of office. security directed me to a room inside the office where all the people are made to wait. (Room is AC which was not working!) I waited there for 10 min, and a security guard came in and allowed us to enter a hall where there were queue counters.

I went inside the hall, my token had a queue name and number. I went to the counter which had the name. There were chairs put in front of counter and people were sitting there. few counters had mic-and-display and the officer was using it to call the numbers. My counter didnt have that system, and it had an obviously rude lady officer shouting the numbers. I saw that this lady is much rude than the other officers. Infact many of them appeared decent and calm to me except the lady officer in my counter.

I sat in chair patiently and waited for my turn...

(to be continued..)

How to get a tatkal passport from Hyderabad Contd...

On a beautiful day(!), I woke up early and reached passport office by 9:30 AM. There was already a long queue formed for tokens and people were standing outside office. I stood in the queue just outside the office.

(There was a security guard standing at the entrance shouting at the people and treating people like criminals in a jail. His job is only to check the application form and send the people into the office batch by batch. But he feels like he is a jailer and people in queue are the jail inmates. I have experienced this everytime i went to passport office and ofcourse at many govt offices)

It took one hour for me to reach the security guard, he checked me and my application and pushed me inside the office. Again in the office there were 4 queues: 2 for tatkal and 2 for "other" requests. I stood in one of the tatkal queue which was 20 people long. The officer was checking documents and sticking token stickers on the form.

(As usual he was also rude, someone got angry with him with his behaviour, he was talking about some RTI (Right To Information) before the security guard took him outside the office.)

My turn came, I showed the original certificates along with application form. Fortunately, he didn't say anything, pasted the token sticker and gave it back to me.

Next step was to go into other side of office and wait for my turn to submit the forms.

To be continued...

How to get a tatkal passport from Hyderabad...

This is my personal experience with the tatkal passport system at Hyderabad RPO.

Before applying for a tatkal passport I have googled for days about the full information but couldn't find a single site. This post should help people who would like to get a re-issue of passport from Hyderabad office.

I have filled in the passport application form and took copies of my tenth, engineering certificates and account statement for address proof. This is the simplest step in the whole process. Now the actual effort begins...

To be continued in my next post tomorrow...