Ehsanul Haque

Welcome to my personal site & blog

Author Archive

18 January
0Comments

Tricks for MS Excel: Add a frozen header row and set alternate background colors for rows

Here are couple of tricks for MS Excel users.

First we take a look at how to add a “Frozen” header row. Frozen header row is the one you could have for a very long worksheet. This row will be frozen (to act as the column header) and rest of the rows will scroll. Here’s how to do this.

1. Select the row below the one you want to be the header (or be frozen)

2. From Window menu select Freeze Panes (for MS Excel 2007 click on the View tab and inside Window panel click on Freeze Panes and pick the first option which is also Freeze Panes)

The frozen row will have a border at the bottom. Simple but an essential option for MS Excel users.

Second trick is the alternate background color for rows in the MS Excel worksheet.

1. Select the rows

2. From the Format menu go to Conditional Formatting (or in MS Excel 2007 under Home tab click on Conditional Formatting from Styles panel and click on New Rule)

3. When the window appears select Formula Is… (or on MS Excel 2007 select the last option Use a Formula to Determine Which Cells to Format)

4. Add this formula: =mod(row(),2)=1

5. Then click on Format button and go to Fill tab

6. Pick the color that will be used as the alternate color

7. Hit OK and go back to the worksheet

You will see the worksheet has alternate background colors.

12 January
0Comments

Grab Yahoo class is in “coma”

Grab Yahoo class was one of my works that has been used by many people around the world. Since I released this class I did  not have a single month without comments or questions or suggestion about this class. Some people have copied the class, released it under their name (simply taking out my comments and added their own) to increase traffic to their site probably. But more importantly this class was appreciated by many. This was one of my finest contribution to the open source world.

How did I come up with this idea?

Well, I cannot remember which user group but in one of the groups I participate in had a discussion over if PHP can pull data off from places like Yahoo and use it for some purpose. Users on the group said this can be done (easily) with Java, but cannot be done with PHP. So I started researching over it. I found the cURL extension for PHP which seemed the good candidate to do the job. So I started working on it. After days of coding I finally wrote a script that will allow someone to login to their Yahoo account and fetch data from their address book. Initially I simply had a script but then I converted it to a Class allowing people to grab their address book, messenger list, number of new emails and calendar data.

What is happening now?

As per the title of this post this class is in “coma”. The reason is the update to Yahoo address book export mechanism. They have placed a CAPTCHA validation page in the export feature and, therefore, my Grab Yahoo class cannot go any further to grab the content it needs. Same thing happened with the LinkMeIn class which stopped working after LinkedIn added the CAPTCHA validation.

Why is this class in “coma”?

I have looked at the Yahoo address book export feature and found the CAPTCHA validation which will not allow the class to work. But I’ve not done my complete research on it yet, to make sure there is no other way to make this class functional. So, for the time being, this class is in “coma”. If I fail to revive this class I will probably officially pronounce it “dead”.

Can you help?

Yes, of course, you can. I hardly have time, these days, to sit with these side projects. If anyone from the community has time to research and help me revive this class it will be appreciated. Your name will go into the credit section of the class, well that is all I can offer!

11 December
0Comments

Take a Screenshot with iPhone 3GS

We are all used to taking screen shots for various purposes on a PC or Mac. In case if you’ve something on your screen you want to share with someone quickly, this is a handy feature. There are many other reasons why we would like to take a screen shot, to create a documentation or user manual for example.

As I am getting used to different features of my newly bought iPhone I discovered it also has the option to take screen shot. The process is very simple. Press the Sleep/Wake button (on top) with the Home button (at the bottom) together and your screen shot will be saved in the Camera Roll section of Photos application.

sspecs_controls_20090608

Source: Apple.com

I believe iPhone 3GS has lot more features and I will keep posting them as I explore.

30 November
0Comments

Import contacts from Blackberry to iPhone 3GS

If you are switching from Blackberry to iPhone 3GS, you must be trying to import all your Blackberry contacts to iPhone 3GS. When I switched to other phones before I always copied all my contacts to SIM and import them to the new phone. Most of the time the format would be different for the phones so you will end up editing the contacts. But with Blackberry to iPhone 3GS the process was really simple and clean.

I downloaded Blackberry Desktop Manager on my Mac Book Pro. After installing the BDM I had to reboot my Mac. After Mac restarted I plugged in my Blackberry on USB and started BDM (Blackberry Desktop Manager). Synced the contact with my Mac Address Book. After it was done I plugged in my iPhone 3GS with Mac and synced it using iTunes.

In few minutes and with few easy steps I’ve all my contacts on iPhone 3GS from Blackberry. I didn’t try to do it on my PC but I believe the process will be close to Mac, if not similar.

Enjoy!

12 November
0Comments

Cannot start Microsoft Office Outlook. Cannot open the Outlook window.

Are you getting the error “Cannot start Microsoft Office Outlook. Cannot open the Outlook window.” when you try to open the MS Office Outlook? If you are then the quick and easy fix it to run the following command from Start > Run:

Outlook.exe /resetnavpane

This command should fix the problem with your MS Office Outlook. It worked for me on Windows XP SP2.

06 November
2Comments
28 October
0Comments

New Login System for Facebook: Scam Email

Be carefull of the scam email going around asking people to update their Facebook profile to use the new login system Facebook has implemented. If you look closely the link provided in the email to update your Facebook account the link is not going to take you to Facebook. It is actually going to some site with domain name www.facebook.com.XXXXXX.XXX (where XXXXXX.XXX is some domain name). Here’s a screen shot of the email.

Picture 1

05 October
2Comments

Let’s grow old together!

One fine day staring at the mirror
I will see the life has gone a long way.
There will be so many different things around me,
But one thing will be unchanged!

Staring at the mirror I will realize
All my hairs are gray,
My skin is old and a high power glass will help me see.
But there will be one feeling unchanged.

There will be you beside me,
You will be holding my hand to pray.
Pray to the God so that we can live the life together
And our love for each other remains unchanged.

One thing that will remain unchanged is You,
One feeling that will remain unchanged is my Love for You.
I am with you now and will be with you forever,
Let’s grow old together!

I Love You Tithi….now and forever….


16 September
3Comments

Wordpress Plugin: Recently Updated Pages

Today I’ve released a Wordpress plugin called “Recently Updated Pages” which is a Wordpress Widget that displays your recently updated page list on the sidebar.

I was looking for a similar plugin but after searching for a while I wanted to write my own plugin. I followed some instructions on couple of websites and created this plugin. It uses WP_Widget class from Wordpress core and extends it to build the widget. You can download it form Wordpress Plugin page at http://wordpress.org/extend/plugins/recently-updated-pages/

In case if you want to make a small donation you could do so at http://resource.bdwebwork.com/WordpressPlugins/RecentlyUpdatedPages/

Thanks

UPDATE AS OF SEPTEMBER 17, 2009:

I’ve updated the plugin and committed the latest version (1.0.1) to Wordpress plugin directory. The updated version will allow users to include list of blog Posts in the Recently Updated list. Originally the plugin only displayed list of updated Pages and now with this optional choice you can toggle between the option.

03 September
8Comments

Wania Haque, our sweet baby girl … Born 27th August 2009

Tithi and I are proud to share the happiest moment of our life with the world. Our baby girl, Wania Haque, was born on 27th August 2009 at 2.56AM at Brampton Civic Hospital. Please give your blessing to our first child. Here are some pictures from those moments….