Monthly Archives: April 2017

Change the Default Terminal Editor in Debian

Debian comes with a very handy utility called update-alternatives that helps to set default tools for various tasks. It is possible for several programs fulfilling the same or similar functions to be installed on a single system at the same time. For … Continue reading

Posted in debian, linux | Leave a comment

Do not Install Karma Globally

Wow, I spent so long trying to figure out why the hell karma was not working for me, it turns out its because it was installed globally. For instance. In my projects package.json I had: “scripts”: { “test”: “karma start … Continue reading

Posted in programming | Leave a comment

Injecting Stuff into your Python Path

Similar to a previous post where I wrote about how to run flask tests without installing your app, another common thing that you might want to be able to do is import your app from some arbitrary script. This is especially … Continue reading

Posted in programming | Tagged | Leave a comment

Using the Flask CLI

Who knew that flask had a cli? Previously I used to just use manage.py just like Django does it to “do stuff”. The CLI is great, but again it follows the theme of kind of wanting you to install your flask app. … Continue reading

Posted in programming | Tagged | 2 Comments

Follow Me on Twitter CTA on Ghost and WordPress

The other day I read a post on Hacker News about premature optimization in web application development. This was an excellent post in its own right, but one thing that jumped out at me was the call to action from the … Continue reading

Posted in programming | Leave a comment

Running Flask Tests without installing the app

The Flask Docs have a great section for testing. However they assume that you have the app installed with pip install -e . which I almost never do. (Maybe I should start?) I have had trouble with this approach. So one little hack to … Continue reading

Posted in programming | Tagged | Leave a comment

Dockerized Laravel and MySQL for local development

Docker is awesome. Its also quite useful for local development. The following Dockerfile and docker-compose.yml will be helpful if you want to do laravel development inside of docker. I am using Ubuntu as a base, but you can probably use … Continue reading

Posted in programming | Leave a comment