Basics of encryption

December 28, 2010

Why do we need encryption ? There will be lot of reasons.

I just want to specifically talk about encrypting Database values. We don't want the administrators to figure out the content in the database by doing a simple select query. What values do we encrypt ? Mostly password , credit card info etc.

How do we encrypt ? I am using c# and .net framework to explain this process.

This is all we need to do. we need to convert the specified string into bytes. we need to use some kind of hashing algorithm to do the encryption. The easily available one are "Rijndael","TripleDES","RC2","SHA512". Then it is a couple of lines of code.

HashAlgorithm h = HashAlgorithm.Create("SHA512");

ret = Convert.ToBase64String(h.ComputeHash(bytes));

Best way to check for user authentication when the password is encrypted.

Read the existing encrypted password in the database and then check it with the user entered password but please encrypt the user entered password before you do a compare so that the values can be equated if both of them are equal. you know what to do..

Social media in business..

December 23, 2010

Couple of things which I have seen relevant.

The pure capitalistic way will not work in social media. I feel the rules are changing for doing business. If companies are not changing it is hard to stay float.

  • Social media is not free and it is not about you…
  • Social media will not take you to next level. It will help.
  • Social media cannot make up for a bad product or service.
  • Listen first and always listen
  • Try to get a picture of who your customers are, and who you want them to be.
  • convert your current customers.
  • Respond to all of the bad comments.
  • Respond to the good comments too.
  • Determine formal or informal ways you can reward your most loyal and influential customers.
  • Be authentic.
  • Be honest & transparent.
  • Ask a lot of questions?
  • Provide value for free.
  • Share stories.
  • Inspire your customers to share stories
  • Use social network ads carefully & efficiently
  • Admit when you f—k up - & then use it for your advantage.
  • Consistently deliver excitement, surprise, & delight
  • Don’t sell! Just make it hard for customers to say no.

Did any one thought how important the hair cut is ?

If not believe me, if you live and work in NYC or in any big cities. How we look is more important than how useful we are.

Just some basics, every one has a different face shape. so it is important how we choose our hair cut. You can cut it from a barber shop for 8$. Great..then if you need to tell the person how to cut and if he has enough patience to hear what you are saying and more than that, you should know what is best for you. otherwise take my advice go to a nice place talk to a hair professional and discuss what you want ? based on your interest, your profession etc.... You cannot cut your hair like an artist and go to work in a fortune 500. As everything come with a cost you need to at least spend some 80$ with tip to get it right. This is for men ok. I don't have any clue about woman's hair cut. It a field I will learn after getting married. Hope fully I will learn something from my wife.

If you live in midtown NYC.I can give you some suggestions. This is a nice place, Please don't repeat the mistake I did. please visit them on a weekend or when you have enough time. Don't do it after work. Everyone want to go home so you wont get what you are really looking for.

This is a nice small place.I got an appointment with Sara Kay. she is one of the stylist. She is nice and I am happy she knows what she is doing. The best part here is, if you are some one who drinks occasionally. you can get a 12 year old Scotch whisky free. This is included in the cost. Be decent atleast. Since I stopped this habit I fealt bad. You can drink while you are getting a hair cut and don't worry about scissors scratching your head. You will never feel that some one is cutting your hair. They are so professional and decent. Most of then time you will get it done in 45 minutes.

Please check it out if you are ready for a hair cut.

Since I am from the software field. This reminds me of offshoring. There are shops here in NYC who will cut you hair at 8$ or at 800$. End of the day what are they doing... cutting your hair... Do both of them have customers ? yes. It doesn't matter how much offshore companies reduce the rate, people are going to go with who are good. Price is only a matter to someone who don't know what they want ?

Design patterns.

December 22, 2010

What is a patterns and why do we need them ? This is a normal Question.

Patterns are a solution to a design problem.

There are a lot of patterns available, They are mainly divided to structural and behavioral patterns.

Let me a give a small Idea about factory pattern.

This is like a factory where we can build Objects as we want.We can tell the factory that I need an object of a particular type, by passing in a parameter. what the factory will do ? It will create the object and pass it on to you.


The end developer do not need to worry about the complexity of creation of objects. Creation of a object can be complex based on the type of object we are building. so all these process is abstracted from the end developer.

Mobile space

December 20, 2010

Would like to shed some light on Mobile market place.

6.8 billion people

5+ billion mobile subscriptions

The above figures will give a basic Idea what kind of market we are reaching out to. ?

It is considered as the third most used media platform. The first and second goes to computer and Television. The best part of mobile is, we can converge all the other platforms into this.

The below image will give an Idea about the Txt message growth in US.

The most looked after operating system in next 5 years is anthroid.

Below are some of the no's on handsets and smartphone models available in the market place.

1168 handsets in US alone
195 smartphone models

Social media ads

December 20, 2010

Did any one of us fealt that ads we are seeing in facebook are so relevant to our interest.

This feature is called Interest based advertising. This is more relevant in social media and even in google.

Those in the age of 10-20 will see ads based on their age criteria. This is pretty common in ad advertising but I am not sure where the new social media companies are going to take this going forward.

Imagine we posted in facebook "planning to buy a new car" and getting a call next minute from a car dealer. Hopefully this wont go to that extend,I feel as there are privacy issues.

Even they show ads based on the users browsing history. Imagine reading our browsing history and showing ads based on it. It is like people coming to our house and asking us to buy stuff, by looking into our stuff. "Your TV is old why don't you buy a new one ?". Umm we don't know what technology is up for ?

One more new feature :)

“some of the users on social networks often do not populate their profiles to include all of their interests and other personal information “As a result, using personal information in ad targeting is typically not available for all members of the social network. Traditional ad targeting techniques are thus limited because they can reach only a subset of the members in the social network for whom the ads are intended. so they will reach out to users friends interest to show them ads.” This patent is basically used to fill that gap of users. They don't want to miss any one.

Please see the link below.

One patent from facebook

Social media in our life..

December 17, 2010

What is social media.. ? How is it going to change my life.. ? Is it where I can waste most of my time chatting and sharing my content..? Can I do something better..? There is a lot of real hype on Social media. How many are really benefiting from it..? Is it face book and twitter ? There are a lot of doughts..

Mark Elliot Zuckerberg.. (Mark Zuckerberg) founded a company which is worth billions of dollars in less than 5 years.. Whether any one did something similar ? What he did right? :)

There are a lot of predictions about face book, Whether It going to reduce the presence of Google.?

Couple of things I have seen relevant in Social media

1) Imagine some one is using Google PPC for marketing and sales. If he is using face book instead, what is the advantage ? Imagine I am looking for a physician in my home town. I searched using google. I got a lot of results. I will pick one of them who has a good website and consulting fee is affordable. Do I know anything about this person, other than what he tells in his website. Ofcourse we are not going to get any idea until we meet him and agreed to pay the money. Imagine I used face book. I have lot of friends and one of my friend already been to that physician and he has written a good comments about that person. Do you think whether we think twice.. Face book is really taking over Google in some of the smaller markets because it has more than 1/2 billions users....

2) One of the Question which came to my mind. If small business have a face book profile, do they really need a website ? There are a lot of answers. The prediction is one day small companies will never use a website. They will be able to do everything using face book profile. I am not thinking that now..

3) How do I get good response for my posts, so that my post come on top of news feed. ? I feel it is all about how we look at it, the best way I feel is to ask Questions ? It a place where you need to think, what others think and feel about your post..

4) How much I need to spend on SEM(Search engine marketing)? There is a lot of available prices in the market. I feel it is better to be legitimate. Know what you are doing and things will work out gradually. Give as much information as you can and make you profile as visible as it can and encourage people to come to your website.

5) As many of you know there are a lot of people making a living by just tweeting. How cool that job would be right.. :)

6) As many of you know face book has a development platform. In future it can replace all the personal software's available in the market. Imagine having all your mails, bank accounts, your company, credit card info etc in a common place which is very user friendly and simple. Many of us now forget our email accounts as we have a lot of them.

7) Can we integrate google in facebook ? So me as a developer don't need to search code each and every time. I can save my searches to my profile.

if you really want to do some social media stuff reach out these guys.. likeable They are pretty cool. They live on facebook. I went to their party on Friday, It was pretty cool.

My First blog...

December 17, 2010

I have been thinking about creating a blog engine on my site. I didn't get much time on what I need to do initially because most of the time I was working for some one else. Now since I got some time for myself I thought of writing something..

Creating a blog. It will not take you more than 10 minutes if you know what you are doing.My fist attempt failed because I wanted dasblog as my engine for writing blog. It is pretty cool. I created it for some of my clients but what happened was my affordable hosting guys wont support full writes to the application so I need to go back to blog engine to create this blog.

This is pretty cool stuff. I can share things to my social network..

Just in-case if you want to create one for yourself. I will give a basic Idea about what I did. I am not sure about how you are hosting your website but this will be helpful if you have a basic idea about creating a site.

1) Download some open source blogging software. I used .net Blog engine You can find it in the above link. There is installation Instruction just in case.

2) Download it and install it in you machine and see whether it works. If you are familiar with .net. You just need to create the parent folder as a virtual directory and set the permission to app_data folder. That is all you need to do. You will be able to browse the website from IIS. If you don't have any idea about IIS. Please use google.

3) No need of db as it is storing data in files. You can create if you want.

4) Upload it to your hosting account and you are done.