Perspective Unspoken

My perspective on Git, Docker, Python, Django, PHP and other stuff

Working with axes and subplots in Matplotlib

So, I decided to start to writing down some notes as I go along in my journey to get to Deep Learning. There’s quite a bit to learn I realize if you want to speak the language of the experienced. You’ll realize that Matplotlib is used heavily for showing graphs and so on. I’ve seen…

Continue Reading

Which chart library is best for Django?

I have a project that I’m working on and I want to integrate a chart library to add some color to the data I’m presenting. It’s a budget based app. In the app I’m using charts to show expenses vs income, how much you’ve spent on different categories and various budget visualizations. I had a…

Continue Reading

Work faster from the command line with Docker and Django

If you’re anything like me, speed is important to you. If speed is important then you need to keep your keystrokes to a minimum. We define functions anytime we realize there’s a bit of code that’s potentially reusable. Well… we should do the same working from the command line. While working with Docker and Django,…

Continue Reading

Django’s templating engine is simpler than you think

I’ve always wondered how Django’s template engine worked. How does it go about parsing and making sense of all the markup we write in our templates? I figured it had to involve a Parser and a Lexer because I paid attention in Compiler class back in school. I also saw a post on SO that…

Continue Reading

A simple way to setup Laravel with Docker

Laravel, from what I’ve read is a great framework for PHP. I’ve heard it’s fast, small and many other things. I decided to give it a try on my foray back into the PHP world. On visiting the Laravel website and scrolling to the Installation I realize they’ve got a nice virtual machine available for…

Continue Reading

Cleaning up after your Docker

So Docker tends to leave alot of things around and you can end up with insufficient space. Here are two commands you can run to keep your Docker environment clean.

The first command removes any dangling volumes. The second command removes any images that are of no use to you.  

Using “virtual environments” with NodeJS

Python developers are quite spoilt with the good habit of using virtual environments for every project. What are they and why are they useful? Well, for starters, typically each project we develop uses other code from other libraries or frameworks. Every project has some dependencies, whether it be for database, HTML parsing, scraping, complex math,…

Continue Reading


Making Code Igniter place nice with Mailgun

There are scenarios where your hosts’ email servers just don’t cut it *cough* GoDaddy *cough*. Sometimes you run into issues where emails are delivered on time or not at all. And to top it off, you find countless other persons complaining on Stack Overflow about the same problem. It’s time to move on. I inherited…

Continue Reading

Compiling React using Gulp and Babel

Babel is a great toolkit for doing all sorts of Javascript compilations. Maybe the most popular is ES2015. It’s also great for compiling React code. Turns out the setup process wasn’t too bad either. Babel has several hundred plugins that can be used to do all kinds of stuff. Fortunately, Babel has put together presets…

Continue Reading

Caching user content separately from general content in Django

I saw an amazing talk at Django Con by Nate Pinchot and had to write a follow up article about it. In his talk, Nate describes a two pass cache approach to caching that allows us to cache content for a specific user and content for all users independently. It’s amazing, awesome and ingenious! Let…

Continue Reading

1 2 3 4