Monday, July 13, 2009

Naming Conventions C#

Variable name :

  • Variable type should have prefix. ( Example b = boolean , str = String , i = integer , o = class object.
  • First letter of the word should be capitalized
  • Variable should have //comments like below
Example :
int iCounterForArray; // counter for array
string strNameOfEmployee; // string identifies name of the employee. Scope is limited locally
bool bAlive; // boolean tells whether process is still alive. scope is global
MyDrawingClass oDrawingClass; // local object for drawing class


Function name :

  • First Letter should be small
  • First letter of the following words should be capitalized
  • Should have meaningful name
  • Do not use the short names, instead use fullwords and long names
  • Should have comments before the function signature explains what the function does and what the argumens should have.
  • Comments should describe return values too.
Example :

/*
* This function compares the process names.
* aStrProcessName : string value of process name to be compared.
* return : true if same else false
*/
bool isProcessAlive( string aStrProcessName )
{
bool bAlive = false;
/* do string comparison */
if( aStrProcessName == strProcessName)
{
bAlive = true;;
}
return bAlive;
}


Class Name :

  • First letter Should be small case
  • All the first letter of the following words should be capitalized
  • All the member variables and functions should have comments.
  • Must have destructor and constructor
Example :

/*
* Main drawing class inherited from base drawing class
* This will draw customized drawing functionalities for
* circle and rectanlges.
*/
class MyDrawingClass : public MyDrawingBaseClass
{
/* Boolean identifies the current state */
private bool bState;
/* Getter function for state */
public bool getState();
}

Thursday, December 4, 2008

Description of URI

Very good explanation of URI can be found from here : http://www.ltg.ed.ac.uk/~ht/WhatAreURIs/

Tuesday, November 4, 2008

Binary Reduction of your application

Refer the forum Nokia tutorial here : Optimization

Compression for EXE's and DLL's is enabled by default for 3rd edition
sdk's. Thats why you are seeing no diffrences in you application
sizes. There are various options that you can try:

1. You can tweak compression method used. Usually its Deflate for Code
and Huffman for data. However i doubt you will be able to reduce your
exe size much.
2. Try turning on optimizations on GCCE compiler. It will generate
smaller code at cost of speed. Have a look at
http://wiki.forum.nokia.com/index.php/Changing_the_GCC-E_optimization_level_to_speed_up_your_application.
3. Try using ARM compilers. They generate very small and relativly
faster builds. I had aboute 4 times reduction in my dll size just by
compiling my code over it.

Apart from above mentioned techniques you can tweak your code to
achieve smaller builds:
1. Dont use unnecessary headers in cpp's as they may generate static
literal strings contributing to the size of your code.
2. Minimize macro's/inline functions usage.
3. And as always MODULARIZE your code.

Thanks to VJ.

Wednesday, June 11, 2008

Peer to Peer Sharing

Whenever there is a restriction to access data ( video,audio,picture etc ) in this inter networked world there is always an alternative technology. In that way I love torrent protocol which is a weapon to kill the denial of data. I am one of those family of Michel Moore who hates Digital Rights management ( Which is created by Rich for Rich to be Rich).

Well , Traditionally or Primarily data accessed from a server or service provider ( Web Server) by a client ( Browser ). So one or more client access the server and view/download data from server. Since Server is key storage place of information, privacy policies can be imposed here like pay to use/should be 18/Only in America.

Imagine if every client turns to be server and every server is a client . Oops we form an ad-hoc network. In where there is no server or no client , there are only peers. Peers always have freedom to share whatever information they are willing to share. Torrent protocol works in this way. Torrent is a peer to peer to communication protocol to share data's.
Read more about operation and meaning of bit torrent here : http://en.wikipedia.org/wiki/BitTorrent_%28protocol%29

There are lot of bit torrent client software available but my favorite is uTorrent.
More clients can be found here : http://en.wikipedia.org/wiki/BitTorrent_client

You can find torrent files ( file in where information about other peers/seeds are stored)
in torrent search engines , of course the best one is http://www.mininova.org/

4 Steps to download your favorite music

Have fun and live in data unrestricted world.

Wednesday, May 14, 2008

How to upgrade phone software in Nokia phone ?

Before you start patience and slow and steady doing of steps are important. It is easy if you do it right and follow the steps properly.

Step 1 : Secure your data's ( Like contact,calender data , images,music etc)

    • Install PC Suite
      • PC Suite is Personal computer application which communicates to Nokia phone through USB data cable. PC Suite has device driver(or cable software) which is phone model specific and User Interface application. PC Suite is very much intrusive, means you can learn it by playing around the application.
      • You can download the PC suite application from http://europe.nokia.com/A4144902->Nokia PC Suite
      • Install application in your computer. Usually which includes cable softwares also.
      • Connect Phone and Computer through USB data cable. Your computer should automatically recognize your phone model. If not you lack device driver software ( other name cable software ) which you download and install for your phone model from http://europe.nokia.com/A4144902 -> Cable Drivers
      • Sync is widely used application to synchronize your data's. Choose Sync from PC Suite in computer which automatically synchronize your contacts & Calenders etc. Follow the guided steps shown by PC suite application.
    • More to secure your data
      • Choose backup option in PC Suite which automatically backs up your data in computer.
      • In your phone , Tools->Utilities there will be an application Memory. Select that and choose Backup Phone Memory from Options menu. Which will copy your phone data's to your memory card.
      • Now you secure your data's in 3 way. So you could be sure that no data's will be lost. Since data is single most important here.
      • Disconnect the phone and check your data's in computer , just to make sure you have all data's are copied to computer by using PC suite application.
Step 2 : Upgrade your phone software
      • Remove your memory card from phone and keep it aside.
      • Connect your phone to computer through USB cable.
      • Install phone up gradation software from http://europe.nokia.com/A4176089
      • Before you start see the demo and follow the steps. That familiarize you with the process of upgrading.
      • It is easy and reserve sometime without disturbance , that is important. taking out the cable or not following the steps properly could sabotage your phone. It might take 15 to 20 minutes. So sit and watch whats going on.
      • Following the steps guided by up gradation software is very important.
Step 3 : Copying back your data's and make your phone ready to use
      • Put your memory card back to phone.
      • In your phone , Tools->Utilities there will be an application Memory. Select that and choose Restore From Card from Options menu. Which will copy back data's to your phone memory.
      • Open PC Suite application in your computer and select Sync, which also synchronize your data's.
Now your phone should be ready to use.

Wednesday, December 12, 2007

Internet Call : Save your Money

Imagine you have to call you gal friend in US from India and want to talk about some nasty things for one hour. Are you afraid of cost ? . Oops , It costs nothing. Not a magic !

Just pay for a coffee in Star bucks who provide free WLAN and take your N95 dial an internet call . If you do not know about this powerful feature you are simply wasting your money by making CS Call .

Setup a wireless lan connection for your phone . This is important. You have to configure this access point.

And these are all the small steps you have to do :

Take your N95
1. Open Menu -> Download
2. Select Gizmo and download. ( This will take few steps to install this application )
3. Goto Gizmo website from your phone web and register in Gizmo for sip account.

Ask your friend to do the same & get his sip id . And store it in your contact.
Goto phone book and your friends contact . there should be an options called "Internet call"
Press that one .

Now it should be ringing in your friends phone .
Talk as long as and it will not cost anything for you .

Tuesday, December 4, 2007

Stay Hungry Stay Foolish : Steve Jobs

I have to admit that this could be one heart touching speech I would have ever heard. A child who was not willing to adopt by some one , a teen who was dropped out , a adult who was fired from his own company, a man who was close to death ..... is a CEO of the company which sells the hottest iPhone and one of the fortune 500 company in the world.

It tooks an hour discussion with a friend to know what exactly he meant by the word "Stay Hungry Stay Foolish".

A wise explanation could be,
"Stay open to new ideas and thoughts and never be content to do the same thing day after day. Never worry about doing something you want to do because you are afraid of what others may think. It’s your life. Don’t waste it doing what others want you to do. Find what you love to do and do it!"

If you still wondering who is Steve Jobs read it from Wiki here

It could be a bit lengthy video , but it worths to listen and who knows it can make a fire in your mind.
Watch the Video here : Steve Jobs Great Speech

And the text version of the speech is below :

This is the text of the Commencement address by Steve Jobs, CEO of Apple Computer and of Pixar Animation Studios, delivered on June 12, 2005.

I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I've ever gotten to a college graduation. Today I want to tell you three stories from my life. That's it. No big deal. Just three stories.

The first story is about connecting the dots.

I dropped out of Reed College after the first 6 months, but then stayed around as a drop-in for another 18 months or so before I really quit. So why did I drop out?

It started before I was born. My biological mother was a young, unwed college graduate student, and she decided to put me up for adoption. She felt very strongly that I should be adopted by college graduates, so everything was all set for me to be adopted at birth by a lawyer and his wife. Except that when I popped out they decided at the last minute that they really wanted a girl. So my parents, who were on a waiting list, got a call in the middle of the night asking: "We have an unexpected baby boy; do you want him?" They said: "Of course." My biological mother later found out that my mother had never graduated from college and that my father had never graduated from high school. She refused to sign the final adoption papers. She only relented a few months later when my parents promised that I would someday go to college.

And 17 years later I did go to college. But I naively chose a college that was almost as expensive as Stanford, and all of my working-class parents' savings were being spent on my college tuition. After six months, I couldn't see the value in it. I had no idea what I wanted to do with my life and no idea how college was going to help me figure it out. And here I was spending all of the money my parents had saved their entire life. So I decided to drop out and trust that it would all work out OK. It was pretty scary at the time, but looking back it was one of the best decisions I ever made. The minute I dropped out I could stop taking the required classes that didn't interest me, and begin dropping in on the ones that looked interesting.

It wasn't all romantic. I didn't have a dorm room, so I slept on the floor in friends' rooms, I returned coke bottles for the 5¢ deposits to buy food with, and I would walk the 7 miles across town every Sunday night to get one good meal a week at the Hare Krishna temple. I loved it. And much of what I stumbled into by following my curiosity and intuition turned out to be priceless later on. Let me give you one example:

Reed College at that time offered perhaps the best calligraphy instruction in the country. Throughout the campus every poster, every label on every drawer, was beautifully hand calligraphed. Because I had dropped out and didn't have to take the normal classes, I decided to take a calligraphy class to learn how to do this. I learned about serif and san serif typefaces, about varying the amount of space between different letter combinations, about what makes great typography great. It was beautiful, historical, artistically subtle in a way that science can't capture, and I found it fascinating.

None of this had even a hope of any practical application in my life. But ten years later, when we were designing the first Macintosh computer, it all came back to me. And we designed it all into the Mac. It was the first computer with beautiful typography. If I had never dropped in on that single course in college, the Mac would have never had multiple typefaces or proportionally spaced fonts. And since Windows just copied the Mac, its likely that no personal computer would have them. If I had never dropped out, I would have never dropped in on this calligraphy class, and personal computers might not have the wonderful typography that they do. Of course it was impossible to connect the dots looking forward when I was in college. But it was very, very clear looking backwards ten years later.

Again, you can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something — your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.

My second story is about love and loss.

I was lucky — I found what I loved to do early in life. Woz and I started Apple in my parents garage when I was 20. We worked hard, and in 10 years Apple had grown from just the two of us in a garage into a $2 billion company with over 4000 employees. We had just released our finest creation — the Macintosh — a year earlier, and I had just turned 30. And then I got fired. How can you get fired from a company you started? Well, as Apple grew we hired someone who I thought was very talented to run the company with me, and for the first year or so things went well. But then our visions of the future began to diverge and eventually we had a falling out. When we did, our Board of Directors sided with him. So at 30 I was out. And very publicly out. What had been the focus of my entire adult life was gone, and it was devastating.

I really didn't know what to do for a few months. I felt that I had let the previous generation of entrepreneurs down - that I had dropped the baton as it was being passed to me. I met with David Packard and Bob Noyce and tried to apologize for screwing up so badly. I was a very public failure, and I even thought about running away from the valley. But something slowly began to dawn on me — I still loved what I did. The turn of events at Apple had not changed that one bit. I had been rejected, but I was still in love. And so I decided to start over.

I didn't see it then, but it turned out that getting fired from Apple was the best thing that could have ever happened to me. The heaviness of being successful was replaced by the lightness of being a beginner again, less sure about everything. It freed me to enter one of the most creative periods of my life.

During the next five years, I started a company named NeXT, another company named Pixar, and fell in love with an amazing woman who would become my wife. Pixar went on to create the worlds first computer animated feature film, Toy Story, and is now the most successful animation studio in the world. In a remarkable turn of events, Apple bought NeXT, I returned to Apple, and the technology we developed at NeXT is at the heart of Apple's current renaissance. And Laurene and I have a wonderful family together.

I'm pretty sure none of this would have happened if I hadn't been fired from Apple. It was awful tasting medicine, but I guess the patient needed it. Sometimes life hits you in the head with a brick. Don't lose faith. I'm convinced that the only thing that kept me going was that I loved what I did. You've got to find what you love. And that is as true for your work as it is for your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle.

My third story is about death.

When I was 17, I read a quote that went something like: "If you live each day as if it was your last, someday you'll most certainly be right." It made an impression on me, and since then, for the past 33 years, I have looked in the mirror every morning and asked myself: "If today were the last day of my life, would I want to do what I am about to do today?" And whenever the answer has been "No" for too many days in a row, I know I need to change something.

Remembering that I'll be dead soon is the most important tool I've ever encountered to help me make the big choices in life. Because almost everything — all external expectations, all pride, all fear of embarrassment or failure - these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.

About a year ago I was diagnosed with cancer. I had a scan at 7:30 in the morning, and it clearly showed a tumor on my pancreas. I didn't even know what a pancreas was. The doctors told me this was almost certainly a type of cancer that is incurable, and that I should expect to live no longer than three to six months. My doctor advised me to go home and get my affairs in order, which is doctor's code for prepare to die. It means to try to tell your kids everything you thought you'd have the next 10 years to tell them in just a few months. It means to make sure everything is buttoned up so that it will be as easy as possible for your family. It means to say your goodbyes.

I lived with that diagnosis all day. Later that evening I had a biopsy, where they stuck an endoscope down my throat, through my stomach and into my intestines, put a needle into my pancreas and got a few cells from the tumor. I was sedated, but my wife, who was there, told me that when they viewed the cells under a microscope the doctors started crying because it turned out to be a very rare form of pancreatic cancer that is curable with surgery. I had the surgery and I'm fine now.

This was the closest I've been to facing death, and I hope its the closest I get for a few more decades. Having lived through it, I can now say this to you with a bit more certainty than when death was a useful but purely intellectual concept:

No one wants to die. Even people who want to go to heaven don't want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life's change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true.

Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma — which is living with the results of other people's thinking. Don't let the noise of others' opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.

When I was young, there was an amazing publication called The Whole Earth Catalog, which was one of the bibles of my generation. It was created by a fellow named Stewart Brand not far from here in Menlo Park, and he brought it to life with his poetic touch. This was in the late 1960's, before personal computers and desktop publishing, so it was all made with typewriters, scissors, and polaroid cameras. It was sort of like Google in paperback form, 35 years before Google came along: it was idealistic, and overflowing with neat tools and great notions.

Stewart and his team put out several issues of The Whole Earth Catalog, and then when it had run its course, they put out a final issue. It was the mid-1970s, and I was your age. On the back cover of their final issue was a photograph of an early morning country road, the kind you might find yourself hitchhiking on if you were so adventurous. Beneath it were the words: "Stay Hungry. Stay Foolish." It was their farewell message as they signed off. Stay Hungry. Stay Foolish. And I have always wished that for myself. And now, as you graduate to begin anew, I wish that for you.

Stay Hungry. Stay Foolish.

Thank you all very much.

Thursday, July 19, 2007

Monday, July 16, 2007

Masabi M-Commerce

Masabi created the so called worlds first secure commerce website ... I dont know how much it is going to be a killer application in present hostile data connection.

Check it over here -> http://www.masabi.com/techSecurity.html

Friday, July 13, 2007

Mobile Social Networking

Being working in mobile field , it drives me crazy to know what is new using the mobile web.

Like blogging a content , chatting or in touch with your friends in so called seem less connectivity.

One interesting site which by live shows how many users and from where using the mobile web.
http://winksite.com/site/chat_realtime.cfm

I was watching this for 5 mintues , almost every few second I could see one person is logging from somewhere in the world .

This helps the people to be in touch with their friends/gangs by using their mobile phone .

Another similar kind of group is over here http://beta.plazes.com/

Tuesday, July 3, 2007

Engineers without borders

One interesting idea which opens the opportunity for students and also humanitarian work

http://www.ewb-international.org/members.htm

Thursday, June 14, 2007

IPod Safari

Opening up your arms for broder always work out .

Will Nokia roll out its product for better ecosystem .

Read about apple support of Ajax and Web2.0. Doing the same with symbian programming could suck ones head .

http://blogs.pcworld.com/techlog/archives/004626.html

Tuesday, June 5, 2007

Realtime Bus Movement

http://transport.wspgroup.fi/hklkartta/

This is awesome. Imagine you are in the middle of nowhere but you have a mobile phone with browser , you can just find where is the nearest bus stop and the navigation of bus .

Oops this is cool :)

Charlie's Diary

Long but useful to read . Thinking about communication & technology :)

Charlie's Diary

Monday, June 4, 2007

Must needed apps for N95


I got a new N95 plum which is the ever human made multimedia mobile computer as of now under earth. Well each words takes its credit. Being using Nokia phone for more than a decade, first time I got a feel this could be the coolest gadget ever I used in my life:)

When I was in a bicycle trip last week , I tried to use the GPS pointed navigation map . Though it sucks but looks cool when I figured it out later how to use that. It really sounds amazing when you hear the auditory note to turn left in between you compose a message and receiving call.

Well, the whole point of this writing is to put some information about some must application for N95. Thanks to the computer creature who survives in the same building with me ( ie Pravin :) )

Internet Radio

Maps

Chat client

Mobile DivX Player

-Siv

Friday, June 1, 2007

Microsofts Surface

Everyone knows that touch screens are the future and it is definitely going to replace the conventional keyboards and mouse. Watch this video , it is amazing ..

For my eyes nothing is new here , everything is known technology but the catch here is user interface .....

Imagine instead of waiting 20 seconds to find a bluetooth of your computer from your mobile phone , you just place your phone on the screen and there it goes everything ...

http://www.microsoft.com/surface/

Friday, May 11, 2007

Long Tail theory

This is an interesting phenomenon for next generation business model .

Read the Times one of the most influential person in the world

http://www.time.com/time/specials/2007/time100/article/0,28804,1595326_1595329_1616107,00.html

And the thoery here : http://www.firstmonday.org/issues/issue12_5/kilkki/index.html