Solution for gpg: skipped: ” secret key not available” in windows

This occurs when GPG is not specified in the path. Excellent solution for this problem is given by Thomas Muntaner here

He gave me the solution, I am not going to copy paste it here.

Enjoy :)

Uninstalling torrent-time on Mac

Torrent-time is a browser plugin to stream torrents directly from your browser. During the past week, many popular torrent sites have incoporated it to their sites.
If you have installed them by mistake, and wants to remove them, you can follow the steps below

Open Terminal and type in the following commands

sudo rm /Library/LaunchDaemons/com.torrents-time.helper.plist
sudo rm /Library/PrivilegedHelperTools/com.torrents-time.helper
sudo rm -rf /Library/Preferences/com.torrents-time.plist /Library/Application Support/com.torrents-time

Restart & Njoy :)

Scraping comments of a facebook post

This is a basic example of scrapping comments of a facebook post using python and facebook sdk

I hope you have python and know how to install a package.

Lets install facebook using pip

pip install facebook-sdk

We are proceeding directly in python

Before that we need an access token to connect to facebook.

Get the access token from here:

Access token is the pretty long string inside the textbox on the side where it is written “Access Token”

Now lets get those comments

graph = facebook.GraphAPI(access_token=’your pretty long string which you have copied now’)

post = graph.get_object(id = ‘post id’)

You can get the post id, by opening an url of a post in facebook

If url to a post is then, “10153947250687139” is the post id

print post

This will print bunch of details about the post including first 10 likes and first 10 comments

If you just need to see the comments

print post[‘comments’]

This will show just the comments.

If you need the remaning comments/likes, you will need to iterate the “cursors”, which doesn’t cover in basics. So just stopping here.

If you need further clarifications, please comment. If you wish to have Part 2 of this post, comment.

Njoy :)

CMD + Q to close Finder window in OS X


One of the most annoying things that I have encountered while using mac was the inability of os x to close the finder window with the default quit button(cmd+q) . The default button to close finder in os x is cmd+w. But that, for me is a slow process when I want to quit all applications quickly.


There is a simple way to achieve this. As simple as entering two commands in terminal. That commands being

defaults write QuitMenuItem -bool yes

killall Finder

That’s it. You are done. Now you can use cmd+q to quit the finder windows.

Njoy :)

Happy New Year 2016


A new year is approaching in few hours :P. A lot has passed in an year. But as usual i had only very few posts here. So by now you would have understood that i am bad at keeping these things. 
Last year i categorised how it was year in personal and professional front. Let’s continue that tradition.

Personal – Good, there were ups and downs

Coding – Freaking awesome (changed immensely this year ;) )

Professional – Good. Switched job. 

Since you know, and for those who don’t know, i don’t take any new year resolutions as it got delayed by a few years :D . But i hope coming year everything is going to mix and come out perfectly.

Also, i wanted to try a new feature “thoughts”. Lets start the first one here…today

I always wanted things that are impossible to get

Happy New Year. Njoy :)