Monday, April 30, 2007

Rickshawala

I usually travel by bus while returning from office. There are two ways to return from my office to home. There is a direct bus service from Gulshan-2 to Mohammadpur. And another way is to take 27 no bus from Kakoli upto Asad gate then the rest to Mohammadpur by Rickshaw. My office is at Banani 27 no road, middle of Gulshan 2 and Kakoli.

Yesterday I took the second way. From Asad gate I took a Rickshaw. I rode on the rickshaw and asked the rickshawala, ‘What is the fare upto Mohammadpur Shiya Mosque?’

’15 taka’, he replied.

‘It should be 12 taka, why you are charging more?’

‘If you compare the fair with the previous days then it is not fair. In previous we had to pay 25 taka per day to the owner and now we are paying 80 taka per day’

‘I see. The government set fixed charge for the taxi owners and did not set any constraint for the rickshaw owners’

‘The owners are not responsible for this. They have to buy a tire for 250 taka while they bought it for 150 taka in the past.’ – Rickshawala’s quick reply

I was astonished hearing the rickshawala saying on behalf of the rickshaw owners. I guessed that he himself is the owner and asked the rickshawala to be sure.

‘Hey, stop. Are you the rickshaw owner?’

He smiled, looked at me and said ‘yes sir, I have only one rickshaw’

Who does not like to speak for himself?

Wednesday, April 25, 2007

SEO Tips

What *NOT* to do?

Don’t submit multiple URLs to Google database for the same site. e.g. mysite.com and mysite.com/index.html are two different URLs.

Don’t do cloaking. Cloaking is a way to keep two different pages. One is optimized for the search engine another is optimized for user.

Doorway pages are another way of cloaking. This is the trick to fill your home pages with keywords and keeping a link for user optimized page.

Hidden texts and hidden links with same color as page background color are often used in doorway pages and are cause to ban from search engines.


How to use MySQL Aggregate Function GROUP_CONCAT()

Few days ago, I got a mail from one of my friend. The mail was asking a question like below:-

Answer the following question within 10 sec and without the help of a calculator.

If 1 = 5, 2 = 25, 3 = 625, 4 = 390625, then 5 = ?

Answer is hidden here


I asked this question to some other friends. They also replied the wrong answer. The answer is very simple. But sometimes we make complex and wrong solutions of simple problems. This happens due to lack of proper understanding the 'system'.

Here is similar problem, which occurs frequently in our day to day programming.

Let you have team_member table data like below:-