Force PDF download with nGinx

Force PDF download with nGinx

Recently we wanted to force a PDF download instead of allow it to render in the browser. After some Googling the solutions I found didn’t work or they were far more complex than they needed to be. The code below…

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

Django 1.7+ migrations: Altering a field to be a ForeignKey

Django 1.7+ migrations: Altering a field to be a ForeignKey

I’m migrating an existing project written in PHP to Django. The existing project is using MySQL and it’s missing some indexes and foreign keys, but there’s also existing data so the normal Django migration file cannot be trusted. I’ll explain why….

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

Django: Custom decorator with optional kwargs

Django: Custom decorator with optional kwargs

After spending the last 3 years in PHP (not by choice) I’m happily back to Django and working toward a PHP-free-life. Not that PHP is terrible, I believe it has a place in the landscape, I just personally do not…

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

Vagrant direct SSH

I do all of my work in Dropbox for safety and easy portability. I know … you might be thinking that’s what version control is for, but sometimes I will get interrupted and have to run away from my PC…

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

AngularJS directive with DOM manipulation

I recently wanted to create a spoiler box with AngularJS but I didn’t want to have to inject anything other than the CSS3 classes and the directive name to make it work. After a little bit of research I learned…

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

Gulp pipe callback

Gulp pipe callback

I’ve spent the better part of the afternoon wrestling asynchronous issues in Gulp. I needed to concat a shitload of scripts and then after concat I needed to rename them to a certain name that couldn’t be done by simply…

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

Create a CSS spritesheet with ImageMagick and SASS

Create a CSS spritesheet with ImageMagick and SASS

I have to do this much more than I enjoy and for some reason I never documented it before. Finding the information to do this is always much harder than it needs to be so I decided to document it…

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

RethinkDB v1.5-1.6 patch: Get on it!

RethinkDB v1.5-1.6 patch: Get on it!

In this article I will attempt to bring you up to speed with the latest workings of RethinkDB. If, like me, you’ve been busy the past few months and you haven’t had time to keep up-to-date this post should help…

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

Quickly dump a MySQL database with suzie

Quickly dump a MySQL database with suzie

Originally I made this post to be a simple copy+paste command but I found that a little tedious so I made a quick bash script called Suzie. Suzie will prompt you for all the information below, with some defaults included,…

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

Phonegap Android HTML5 Video issue (error 2147483648)

Phonegap Android HTML5 Video issue (error 2147483648)

I’m writing this to hopefully help some of the thousands of people out there having an issue getting videos to play using Phonegap and Android. I don’t exactly know what the problem is, my best guess is that for some…

 Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!