how not to insult developer while hiring

In December I was looking for new job. I came across one and applied. After couple of rounds of interview, co founder informed me we will get back to you, but never happened. This sounds normal but it is not. Interview First round of interview started with online pair programming with one of the co-founder X. After that I went to their office, met product manager, co founder X had discussion for an hour. [Read More]

On leaving HasGeek

Today (31-12-2013) is my last working day at HasGeek. It was in July 2012, I joined HasGeek. It was fabulous journey for past 18 months, meeting lot of new people, being part of events, writing lot of code. I was part of large, medium, small conferences like Fifth elephant (2012, 2013), Cartonama (2012), JSFoo(2012, 2013), Droidcon (2012, 2013), Metarefresh (2013), various hacknight and geekup. I will be joning Aplopio Technology Inc, flagship product recruiterbox on 16 January, 2014. [Read More]

introduction to python

This is the material which I use for teaching python to beginners. tld;dr: Very minimal explanation more code. Python? Interpreted language Multiparadigm Introduction hasgeek@hasgeek-MacBook:~/codes/python/hacknight$ python Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> >>> print "Let's learn Python" Let's learn Python Numbers >>> 23 + 43 66 >>> 23 - 45 -22 >>> 23 * 45 1035 >>> 23 ** 4 279841 >>> 23 / 4 5 >>> 23 / 4. [Read More]

Deploying full fledged flask app in production

This article will focus on deploying flask app starting from scratch like creating separate linux user, installating database, web server. Web server will be nginx, database will be postgres, python 2.7 middleware will be uwsgi, server ubuntu 13.10 x64. Flask app name is fido. Demo is carried out in Digital ocean. Step 1 - Installation Python header root@fido:~# apt-get install -y build-essential python-dev Install uwsgi dependencies root@fido:~# apt-get install -y libxml2-dev libxslt1-dev Nginx, uwsgi [Read More]

ipynb2viewer - Afternoon hack

ipython nbconvert has lot of handy options to convert ipynb to markdown, html etc… But I wanted to upload ipynb to gist.github.com and create a link in nbviewer.ipython.org. Started with curl and soon realized, it is getting messy. So wrote a small python program ipynb2viewer, Source code. Install pip install ipynb2viewer Usage Upload all ipynb files in the given path to gist.github.com and return nbviewer urls. ipynb2viewer all <path> Upload mentioned file to gist. [Read More]

Autogenerate Dockerfile from ubuntu image

I was learning docker to use in one of my projects. I kept installing packages, finally created required Ubuntu image. Suddenly thought it would be cool if I can generate Dockerfile like pip freeze > requirements.txt. sudo docker run ubuntu dpkg --get-selections | awk '{print $1}' > base.list &amp;&amp; sudo docker run pyextra dpkg --get-selections | awk '{print $1}'> pyextra.list &amp;&amp; sort base.list pyextra.list | uniq -u > op.list &amp;&amp; python -c "f = open('Dockerfile', 'w');f. [Read More]

easy_install broken in os x mavericks

I hardly use easy_install. Nowadays all the python requirements are installed via pip. IPython is my primary python console. After installing mavericks, I installed IPython and fired IPython console. Following warning message appeared ➜ ~ ipython /Library/Python/2.7/site-packages/IPython/utils/rlineimpl.py:94: RuntimeWarning: ****************************************************************************** libedit detected - readline will not be well behaved, including but not limited to: * crashes on tab completion * incorrect history navigation * corrupting long-lines * failure to wrap or indent lines properly It is highly recommended that you install readline, which is easy_installable: easy_install readline Note that `pip install readline` generally DOES NOT WORK, because it installs to site-packages, which come *after* lib-dynload in sys. [Read More]

Why programmers should love to read and write

Everyday as a programmer we solve problems and introduce new problems. Most of the time is spent in reading other people source code, library documentation, replying to developers email. Though communication is what programmers do all the time with computer and humans. Programmers around the globe suggests books like SICP. I have never come across people who suggests books like on writing well for programmers. Though I haven’t read the book myself, the point is why aren’t people recommending books like how to write well. [Read More]

taking rest

On my way back to home from work I was thinking, I should take rest. In my world rest always meant working on some non work codebase, reading a book, watching a movie. But I don’t want to do any of these. Then I thought I would just listen to songs, quickly remembered that will not work out because I will start coding. Finally I started to ask myself, is it possible for any human being to sit idle and take rest. [Read More]
random