Perspective Unspoken

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

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

1

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

How to know when to hard code

Hard coding has always been a bit of a bad word for me. Hard coding for the uninitiated means…. “Coding in such a way that you have to edit the code to get different behaviour” I’ve always loved dynamic solutions. Hard coding almost always feels like it’s the wrong answer… I can always hear that…

Continue Reading

ngrok: An easy way to expose a local server

In development, the need often arises to employ a publicly accessible URL so an external service can see to your local server, or maybe you need to show a client something. In the older days many people would pull for tools like DynDNS or something similar to allow accessing of local services on a machine…

Continue Reading

Building Sphinx docs with watchdog under Docker or Vagrant

The watchdog  library is a cool library that allows you to watch for changes then execute some command. This doesn’t work at all out of the box when you try running the command on a Docker or Vagrant box, because by default the observer that watchdog uses doesn’t look for changes that are made outside…

Continue Reading

Deploying with Fabric and Chef Solo (Part 1)

Fabric is a widely used library for SSH’ing into remote servers. It’s one of those libraries that really respect the zen of Python and makes for beautiful and seamless remote operations. Chef, now is well respected in the world of DevOps for being thee tool used for deployments and setting up of servers. At work…

Continue Reading

Using Munin to graph stats from Django

What’s Munin? Munin is a great tool for graphing any kind of statistics for your projects. The awesome thing about Munin is that the format it required is pretty straight forward. All we have to do to provide data for Munin is point it to a script that prints out data in a simple format….

Continue Reading

2 Python features I wish I knew from the get go

As developers we’re always learning and improving. New API’s come out, new versions of libraries come out, and we’re forever stuck expanding our minds, shifting paradigms and adopting new approaches. Ever so often though, we’ll find that we’re using a tool, as a daily driver even and we discover there are some features we just…

Continue Reading

1 2 3 4
000webhost logo