Sunday, February 26, 2012

Predictions - What can be changed/added for Facebook?

Below are some predictions for Facebook -
  • Add search functionality, which provides content search from your friend’s likes/ checkins. e.g. searching for good restaurant you might be better off searching on Facebook and decide where you want to go instead of checking ratings on yelp or any other place. Movie reviews you can just search for movie on it on saturday and find out if any of your friend had seen it on friday night, link next to movie review comment to buy ticket etc.
  • Let people go to buy stuff based on people’s like/checkins by ‘cash in your content’
  • Show the connections between when you are visiting someone who is not part of your friend list. e.g. how its shown in LinkedIn. They are doing similar thing partially as a part of showing suggestions for the friend.
  • concept like how pinterest following the model to make money using skimlinks (
  • Video chat with friends from Facebook chat/messenger.
  • Let small business help to make the advertisment from the platform itself and help them to find a target audience.
Above all urge to Facebook, please do not complicate already started feeling like its too complex to use. People make so many mistakes like while watching video it gets shared on their page, just click on news item it gets shared on the page. of course there is mistake on people's side that they dont take enough care about where they are going :)

Add few more if you can think of....

Saturday, February 18, 2012

VIM editor line numbering

If you are fan of VI editor, here is the trick how you can enable the line numbering,

below is your normal presentation when you do vi

#define your item pipelines here
from scrapy.exceptions import DropItem
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See:

class newsPipeline(object):
    def process_item(self, item, spider):

1. hit esc
2. enter - :set rnu

result -

  0 #define your item pipelines here
  1 from scrapy.exceptions import DropItem
  2 # Don't forget to add your pipeline to the ITEM_PIPELINES setting
  3 # See:
  5 class newsPipeline(object):
  6     def process_item(self, item, spider):

  7 ......

if you want to revert to the original settings..
1. hit esc
2. enter - :set nornu

Sunday, February 12, 2012

Some Useful mac commands

  • Check the disk space - df 
  • Is your system 32-bit or 64-bit - uname -a
  • Update environment variables like windows - vi ~/.bash_profile
  • Load the environment variables - source ~/.bash_profile
  • Run program under admin - sudo

In mac, there is no explicit delete button like windows.

Fn + backspace - "del" key (delete letter to the right)
Alt + backspace - Delete last word
Command + backspace - Delete whole line

Saturday, February 11, 2012

Python color syntax highlighting

If you open python file first time on your terminal, it will be plain black color text. To enable the color highlighting follow below steps -

  • open the file - vi
  • hit esc (escape) - : syntax on

It will enable the color highlighting, which will be helpful to recognize any syntactical error.

To enable the highlighting permanent follow below steps -

  • open the file - vi ~/.vimrc
  • hit i > it will enable the insert mode
  • type - syntax on
  • hit esc (escape) - :wq
open the python file in vi and check the syntax.

Wednesday, February 8, 2012

Some Testing on public websites

Search testing on Microsoft Store

Below is the page -

They are selling windows 7 - Nokia Lumia 710 phone.

I tried to search for Lumia, 710, 900 and few other terms on the store search, and below is the result -

Now you can answer why one would go to Google vs Yahoo vs Bing...