Don’t rely on REMOTE_ADDR for your PHP apps

Don’t rely on REMOTE_ADDR for your PHP apps

I have to correct this in a lot of PHP applications. It’s probably the most common thing I have to patch. People rely on REMOTE_ADDR to arrive at the users IP address, not knowing that this does not work when…

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!

Monitor your cloud cluster with Munin

Monitor your cloud cluster with Munin

Munin is a great tool for giving you graphical information about the health of your servers, but deploying it in a cloud environment can be a little tricky. Unfortunately, solving that problem can sometimes be a lot easier than getting…

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!

Step-by-step guide to using Google Storage as your website CDN

Step-by-step guide to using Google Storage as your website CDN

Today I finally moved away from Cachefly as my CDN to Google Storage, because my friend at Google assures me that any content put there is distributed on to their Edge servers which is Googles CDN, and he also assures…

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!

Step-by-step guide to MySQL master-master replication without downtime

Step-by-step guide to MySQL master-master replication without downtime

In my previous entry I talked about my plan to move from Linode to Digital Ocean. But, I wanted to do it in a way that ensured no data loss if for some unexpected reason I need to switch back….

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!

Step-by-step guide to social logins with Django Social Auth

Step-by-step guide to social logins with Django Social Auth

Update! The guys at OAuth.io have released their awesome idea an open source package for everyone to take advantage of. I HIGHLY recommend using this solution, because it is FAR easier. If you don’t want to bother setting it up…

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!

MySQL dump large database to remote server

MySQL dump large database to remote server

I’m currently in the process of migrating one of my sites from Linode to Digital Ocean. The database for this site is quite large, approx ~25G and mysqldump kept crashing trying to xfer that much data. It’s not that it’s…

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!

Programming for an 80 space width

Programming for an 80 space width

Like a lot of people, I try to use the Google style guide for code. I run on the assumption that given the amount of code produced by Google their standards have to be implemented for logical reasons, and I…

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!

Language goals for the year

About a year ago I broke out of my programming rut. I had been stuck in PHP for far too many years, and I eventually made the change to Python and haven’t looked back. I started with Django, then migrated…

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!

How to properly use Backbone.cachingSync on models

How to properly use Backbone.cachingSync on models

Backbone.cachingSync has support to be used with models directly, but that seemed to confuse me because your model would always be wrong if you do that, because when you define your model you’re meant to define the namespace for storage….

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!

Build for 1.5mil users, aim for 3k

Build for 1.5mil users, aim for 3k

As I’ve stated a few times, I’m working with my friend (aspiring Game designer) on a Browser based space RTSMMO. It’s a heavy strategy based game and leaves a lot of the whiz bang graphics on the curb and instead…

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!