Monday, January 31, 2011

const variables in headers and namespace !!

Hey today I suffered a lot while compiling my code in GNU C++.
What I did ? I have put a std::string variable in a header file inside a namespace
I was always getting variable multiple defined error, I almost broke my head in solving this simple problem.

header files were properly guarded !! (to avoid multiple inclusion)
Variable was declared in its own namespace !! (to avoid name collision)
Find | Grep used to check if the variable is declared anywhere !!

Ohh is it so i forgot C, C++ ? Is it so that I am writting more java now a days :)
Am I really a senior software engineer I doubt now !!

Ohhh Hell I left the const key word before the std::string object !
solution is const std::string A_VARIABLE_NAME and it is solved :)

Thursday, December 2, 2010

Ponniyin Selvan by kalki

I was planning to read this novel for a long time.Finally i have started and finished volume - 1
It has 5 volumes each has around 350 pages.

But the book is awesome.So much of details about Tamilnadu and the places we have lived and passed by without knowing much about the important events that has taken place there.

Though Indian rulers conquered a lot of places within Indian subcontinent i always had a small concern about them not going outside india for conquests as done by these Europeans. I have always wondered why south Indians did not have a strong Navy even though they were ruling the coastal areas.

But this book will makes us proud about the kind and expanse of the conquests made by the cholas(Raja Raja Chola and Rajendra chola). We might have read that Rajendra chola was called "Kadaram kondaan".Kadaram is the present day kedah in Malaysia.It was conquered by Rajendra. And cholas had a powerful navy and they had developed expertise in navigation in 1000 AD. They developed art and architecture which spreads the glory of chola empire even now.I have attached an image which depicts the territories which was under chola empire's control.

Still 4 more volumes to go and lot of information to grasp from this book. Will update as soon as i read.

Sunday, August 1, 2010

Thursday, July 15, 2010

words of swami vivekananda..!!!

When I Asked God for Strength
He Gave Me Difficult Situations to Face

When I Asked God for Brain & Brown
He Gave Me Puzzles in Life to Solve

When I Asked God for Happiness
He Showed Me Some Unhappy People

When I Asked God for Wealth
He Showed Me How to Work Hard

When I Asked God for Favors
He Showed Me Opportunities to Work Hard

When I Asked God for Peace
He Showed Me How to Help Others

God Gave Me Nothing I Wanted
He Gave Me Everything I Needed

- Swami Vivekananda

A Nice Article about Love by Swami Vivekananda

I once had a friend who grew to be very close to me. Once when we were sitting at the edge of a swimming pool,she filled the palm of her hand with some water and held it before me, and said this: "You see this water carefully contained on my hand? It symbolizes Love.

" This was how I saw it: As long as you keep your hand caringly open and allow it to remain there, it will always be there. However, if you attempt to close your fingers round it and try to posses it, it will spill through the first cracks it finds.

This is the greatest mistake that people do when they meet love ... they try to posses it, they demand, they expect ... and just like the water spilling out of your hand, love will retrieve from you.

For love is meant to be free, you can not change its nature.
If there are people you love, allow them to be free beings.

Give and don't expect.
Advise, but don't order.
Ask, but never demand.

It might sound simple, but it is a lesson that may take a lifetime to truly practice.

It is the secret to true love.To truly practice it, you must sincerely feel no expectations from those who you love, and yet an unconditional caring.

"Passing thought ... Life is not measured by the number of breaths we take; but by the moments that take our breath away"

To download or read all books of swamivivekananda click here.

Sunday, July 4, 2010

joined new office fg

hello guys hoepe you are all doing fine . right now am at the fusion garage , using joojoo and updating this blog. the device is fine.needs some improvement which is what my job would be :)

catch you all sooner with more updates.

Tuesday, June 15, 2010

Multi client - server program

For an interview process, i was asked to write a simple chat server server( socket programming) which handles multiple clients and it should broadcast a client msg to all other clients who connected to the server at that instance. And the client side chat window should be designed in QT.

The code is attached to the following link.

Server side program;

Client side program.

Steps for compiling and checking the demo:

pre requiste : qt4.3-dev tools , or qt libraries need to be installed.

Step1 : Un install the into a folder. (name: server )

> qmake -project
> qmake
> make

> ./server 50003 ---> Example to run the server.

Step 2: Un install the into a folder.( named: client )

> qmake -project
> qmake
> make

>./client mani 50003 ---> Example to run the client.

As soon as you give the above command, a qt based chat window will open on which you can type your chat messages.

Parallely open 3,4 terminals and instantiate the client program with different names, so that you will see similar chat windows opened.

On each you can type messages, which will be broadcasted to others.
I have tried it on ubuntu.




Wednesday, March 31, 2010

Code project Visual studio 2010 contest

Hi all,

            Hope you are all aware that Visual Studio  2010 has been released and a site named codeproject has announced a contest

On VS 2010.


For more .. Refer to



Best regards,



From: []
Sent: Tuesday, March 02, 2010 10:50 AM



Use this as to email id and fill a subject and send a mail it will be posted to our blog.


Sunday, March 7, 2010

Microsoft's Cloud services like the Google's appengine !!

Google's appengine is used to crete application and services in clouds.. So as Microsoft !!!
It is called Azure platform .. If you are comfortable with .net or any MS technology Azure could be a guide to put your imagination into clouds :)

Thursday, March 4, 2010

Help me in google search

I have gone mad.. lost all my patience.. I want a page where all itemtypes supported by gbase was listed. I lost this bookmark in my crashed laptop.

Difference is that in left side all the item types are listed and rightside for each itemtype all the available attributes with descriptions are listed in the same fasion as the above link.. If any one can help it will be great help for me.

Thanks in advance.

Tuesday, March 2, 2010

OVI store - Local guide widget published


Happy to say that Local Guide widget was published last friday in OVI store and so far 35 downloads have happened.

Hoping much more downloads, with all your blessings...!!!!!!

- mani

Monday, March 1, 2010

Google Site Sharing and Appspot Linking to Google Sites

Almost broke my head today to make one of my sites public !!!
If a site is not public then the site will be accesed by login to your google account .

In Google Apps Sites setting there is an option "User Can Make Sites Public" If it is disabled then in Sites Sharing You will not be able to see the Advanced setting option "Anyone in the world may view this site (make it public)" . So You got it right I had disabled my Apps setting option and trying to make the site public in the sites sharing advanced Option !!!

Linking to an appspot (AppId) is very simple if you already have a Google Apps Sites (Standard / premier) edition. Goto -> -> go to service setting click add more services - > In right side you can see the Google App Engine preview content and a tecxtbox where you can give your appid and link to your domain or subdomain.

Wednesday, February 24, 2010

Life teaches you ...

Life teaches you certain tough decisions to be made at certain times. Face it and take it. As my friend used to say never be emotionally attached to anyone. It brings hurtings when it breaks. I have heard lot of my friends first love failures and their saddness. Everyone of them is great to have successfully succeeded and surpassed with their mental power.

Dont cry over the spilt milk. If you cannot get happiness through someone, there are N number of people in your life who are longing love from you. Please find them and show them or tell them you love them. It brings more happiness to you.

Dont go behind the ones who doesnt respect you or consider you for what you are.

" Desire is the cause for all miseries in life" - So dont desire so much on anything, it can be money, material, love, girl,even friends in that list, anything... if you have more desire, expectations you will be inversely affected with hurtings in your life.

Before you find mistakes in others just 2 sec think in your mind, have your ever done the same mistake before or doing the same mistake to others. Then you shouldnt be asking or questioning others/ your friend's mistakes unless you rectify yours.

Spread love, you will get love. Dont forget the saying "All the things come back to you". If you show love you get love from others. If you show anger you get the same but twice more.

For success, Dont grave for recoginition. Dont ever think at anytime after you have done so much of effort or work that people should praise you for that. If you think like that you will not do better in your next work.

In life everyone has to go some extremes so that you learn something in your life. Your maturity, level of thinking changes. You should be glad for that, welcome it.

No one in this life is 100% perfect.

- Just something i felt inspiring me i wrote. If some thing doesnt suit your principles please ignore it.

Tuesday, February 16, 2010

Hi all ,
The much awaited WM 7 phone has been announced by steve Ballmer on 15 Feb 2010.

Microsoft Claims that Windows Phone 7 Series is a "fundamentally different approach to phone software".Lets wait and see if it actually is.

I pray it should be worth tbe hype otherwise a lot WM programmers will have to prepare their resumes with their experience highlighted in other non WM platforms.

Few Words about the UI in WM 7 Series:
The operating system's main screen is "chromeless," without borders or a Start button, and features dynamically updated "live tiles.

Live tiles act as a doorway into more detailed pages called "hubs," which connect to Web services, applications, contacts and other items, according to Microsoft. The company describes six different hubs as follows:

People -- Provides a central place from which to post updates to Facebook and Windows Live in one step. Delivers an "engaging social experience" by bringing together relevant content based on a person, including his or her live feeds from social networks and photos.

Pictures -- Brings together a user's photos, including those synced from a PC. "Makes it easy to share pictures and video to a social network in one step."

Games -- "Delivers the first and only official Xbox Live experience on a phone." This includes games, spotlight feed and the ability to see a gamer’s avatar, achievements and gamer profile.

Music and Video -- Creates "an incredible media experience that brings the best of Zune, including content from a user's PC, online music services and even a built-in FM radio into one simple place."

Marketplace -- Allows the user to easily discover and load the phone with certified applications and games.

Office -- "Brings the familiar experience of the world’s leading productivity software to the Windows Phone." Includes Office, OneNote, SharePoint Workspace, and Outlook Mobile.

Some of the Features are:
  • Much more advanced web browser,fully multi-touch capable and based on desktop editions of Internet Explorer.
  • Improved Text display via "sub-pixel positioning".
  • Dedicated hardware button for Microsoft's Bing search engine
  • Silverlight Support(a rumour is that most of the UI in WM7 is based on a nice silverlight UI).Lets hope for a flashy,non-irritating,comfortable UI.
There is also a rumor that there is no multitasking in WM7.

For more info on WM7 phone series see:

Best regards,

Monday, February 15, 2010

Search Optimization and Googlebot

My Laptop broken and unfortunately all the backup of my last work on C# and Java in my 250 GB LG hard disk also crashed bit sad these days. But anyway Other personal responsibilities @ my hometown done well on my long Vacation.

After a long pause to my technical cultivation i have a small post for the day to reignite myself on web technology. So here is a link to learn more on Google way of Search engine optimisation and crawling the web.

At th end of a PoC @ project.....

At the end of completing one small working prototype project for my new team @ work,it made me feel -"Are people merely obsessed with tools usage among Java community specifically in Web development?" though few of tools were handy during my development.

Since I moved to this avenue("Web development") with my own interest few months back after one year in Core Java("Desktop Application development") and prior 3 yrs experience in c++ .

In the tools usage even,choices are the most troublesome for the new comers like me.

to start with ..

->wireframe for my ui mockups-many are there .I used Balsamiq(free version only)

->build - ant or maven . I favored maven as I used in my previous project(seems to me the world too :) )

->data modeling using TigerStripe (database design for the application) .This guy is capable to generate data model java pojo's for us from mere uml sort of diagram specification. also,specifying relationship between entities too possible..

->orm/persistance -hibernate used in mine & there are other good enough candidates-JPA,etc.

I am skipping - "choosing IDE and database for application". here.

->web framework - struts,spring mvc,spring web flow .finally what we have end up is an hybrid one :)

->web container - traditional non-osgi based containers(tomcat) or osgi based one(spring dm server).

->to be Web 2.0 app, usage of rich javascript library to our front end ui code.
this is infinite I suppose .few I tried - jquery,yui & end up in dojo.

->notification framework in ur web 2.0 enabled web app - DWR or cometd

I was exhauted finally when I was asked to automate my unit-testing of my web application.
many java mocking frameworks are there it seems. one I got to know and to be done :( - using mockito.

Though learning and doing were interesting,somewhat for people like me migrating to web development from " Application development" .I wish to share the happening via this post.
Nothing sort of complaining this web development space or scare the new venturers here.

Little mindset change is required - thats what I felt. after all I have jotted down about Java web devleopment only . There are very much strongs parallels in python ,ruby ,erlang.

My words finally -"pursue this ,only on passion" .but not on craze or hot things happening in this space

I am very passionate about things happening in web world now .
I wish to do really a big thing in future :)

if not me atleast via my Frenz by inspiring them.

Again Finally ,this is not melancholic or demotivating note. :)

With Patience and steady conceptual learning by doing things in web,I believe one should be able to achieve feat in this space. After all,learning in ones own pace is never a curse though you miss few buses now :)