Category: Tips

  • init script for mongodb 4 on WSL in ubuntu 18.04

    If you try to start mongodb on WSL using systemd you will be getting this error. System has not been booted with systemd as init system (PID 1). Can’t operate. There seems to be no init script for mongodb 4 on ubuntu 18.04(may be other versions too). This makes it complicated for starting mongodb in…

  • Serving Flask helloworld using uwsgi

    uwsgi is a high performance, low-resource usage web server for deploying python application. In this post, i am going to show how to serve a simple HelloWorld application in flask using uwsgi   Prerequisites pip install flask pip install uwsgi Now lets create our app.py from flask import Flask app = Flask(__name__) @app.route(“/”) def hello(): return…

  • 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 http://www.thomasmuntaner.com/blog/gpg-with-git-on-windows-secret-key-not-available/ He gave me the solution, I am not going to copy paste it here. Enjoy smile

  • Uninstalling torrent-time on Mac

    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…

  • Scraping comments of a facebook post

    Scraping comments of a facebook post

    You need to submit your app for review with required permission to access Facebook posts of page in which you aren’t admin; in live mode 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…