Srini's Point of View

My thoughts on technology, food and other fancies…

Disqus comments not loading

I am a little upset that my disqus comments widget is not loading on my previous post from last week. It is loading fine on all the older posts but not on the last one. Posting a random rant just to see if it is an issue with that post …

Send Email In Python Bugfix

I have been using this python function for a while to send html emails from within my python scripts -

def sendhtmlemail(emailbody, subject):
    """ Send html email with given subject and body """
    fromaddr = readconfig(EMAIL_FROM)
    toaddr = readconfig(EMAIL_TO)

    msg = MIMEMultipart('alternative')
    msg['From'] = fromaddr
    msg['To'] = toaddr
    msg['Subject'] = subject

    body …

Lost SSH During Ubuntu Update

I was trying to install security updates on my digitalocean vps and lost my ssh connection. The one time I was not using tmux! GAH!! It was also stuck at a stage where it was waiting for me to put in what config changes to use for some software package …

How to install MongoDB on a Mac

I am starting to teach myself the MEAN stack. The MEAN stack makes use of MongoDB, Express.js, Angular.js and Node.js. The best part about this stack is that all parts of the stack can be written in Javascript. Read this wikipedia article to know more.

The best …