Yes, you read that right. We are using Capistrano – a very popular application deployment tool that is written in Ruby to deploy a Python Django app. In fact, you can deploy any application written in any language using Capistrano. We have been using Capistrano to deploy Rails apps for a very long time and […]
Unix Philosophy
Before we get started with UNIX philosophy, let’s figure out what UNIX is. First things first. What is Unix? Unix is a family of multitasking, multi user computer operating systems. The current Unix is derived from the original AT&T Unix. The development for the original UNIX started in the 1970s at the Bell Labs research […]
Jekyll Docker image missing C headers
So, if you are using Jekyll Docker image and you need to install any Ruby gems that require C headers, such as raindrops in my case, which was a dependency for unicorn, you will find yourself faced with this error: fatal error: asm/types.h: No such file or directory Fortunately, there is a quick fix for […]
Vim Bootstrap – generate .vimrc for your favorite programming language
Programmers in the current era like to work using IDEs because it is more user friendly. But there are reasonable number of programmers who still use command line for programming. Their favourite editor might be Vim. Vim is easy to use, light-weight and comes with almost every Unix distribution. Unlike IDEs, it does not hang […]
Executing bash commands via Python 3
In python, executing bash commands can be done using subprocess module. It’s pretty easy to use and it’s a powerful module. For simple commands, we can use subprocess.call Usage: Eg: total 4 -rw-rw-r– 1 tevin tevin 15 Sep 3 15:29 test.txt You can also use subprocess.check_call and subprocess.check_output Popen: For more flexibility, you can use […]