codespatter.com
AWS | Code Spatter
http://codespatter.com/tag/aws
Entries Tagged ‘AWS’:. Setting up Apache2, mod python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron. Posted on October 15th, 2008 by Greg Allard. Both Debian and Ubuntu make it really simple to get a server up and running. I was trying a few different Machine Images on Amazon and I found myself repeating a lot of things so I wanted to put them here for reference for those who might find it useful. With a fresh image, the first [.]. And Presskit'n Do-It-Yourself Public Relations.
codespatter.com
Programming | Code Spatter
http://codespatter.com/category/programming
Entries in the ‘Programming’ Category:. How to Display Realtime Traffic Analytics. Posted on September 2nd, 2009 by Greg Allard. Presskit’n have been asking for traffic statistics on their press releases so I decided I would get them the most recent data possible. At first I was parsing the access log once a minute and when I was testing that I decided it wasn’t updating fast enough. I’ve gotten used to everything being [.]. Python Projects in Users’ Home Directories with wsgi. I’ve been working on...
codespatter.com
A Django Model Manager for Soft Deleting Records and How to Customize the Django Admin | Code Spatter
http://codespatter.com/2009/07/01/django-model-manager-soft-delete-how-to-customize-admin/comment-page-1
A Django Model Manager for Soft Deleting Records and How to Customize the Django Admin. Posted on July 1st, 2009 by Greg Allard. Sometimes it’s good to hide things instead of deleting them. Users may accidentally delete something and this way there will be an extra backup. The way I’ve been doing this is I set a flag in the database, deleted = 1. I wrote this code to automatically hide records from django if they are flagged. Django allows developers to create model managers. Get query set (. I wanted th...
codespatter.com
Apache | Code Spatter
http://codespatter.com/tag/apache
Entries Tagged ‘Apache’:. How to Display Realtime Traffic Analytics. Posted on September 2nd, 2009 by Greg Allard. Presskit’n have been asking for traffic statistics on their press releases so I decided I would get them the most recent data possible. At first I was parsing the access log once a minute and when I was testing that I decided it wasn’t updating fast enough. I’ve gotten used to everything being [.]. Python Projects in Users’ Home Directories with wsgi. Posted on July 8th, 2009 by Greg Allard.
codespatter.com
How to Write Reusable Apps for Pinax and Django | Code Spatter
http://codespatter.com/2009/01/15/how-to-write-reusable-apps-for-pinax-and-django
How to Write Reusable Apps for Pinax and Django. Posted on January 15th, 2009 by Greg Allard. Is a collection of reusable django apps that brings together features that are common to many websites. It allows developers to focus on what makes their site unique. Here is an example of adding your own functionality to Pinax. It will also be an example of writing a. Since every individual app currently in Pinax can be used separately. Also, I’ve bundled the example files into a google code project. I will sta...
blag.gregallard.com
Uncategorized | Greg's Blag
http://blag.gregallard.com/category/uncategorized
I Got a New Blag! I Got a New Blag! I’ve always thought personal blogs were stupid, but I find myself reading a lot of my friends’ junk and I’m thinking they are less stupid. So I’ve decided to do one of these things. Code Spatter. Will continue to have the professional, web-development posts while this will be for stupid shit like my trip to Las Vegas and why I hate spirit airlines. I must be in love with wordpress since this is the 6th one I have running. One to keep track of crap at work.
blag.gregallard.com
I Got a New Blag! | Greg's Blag
http://blag.gregallard.com/i-got-a-new-blag
I Got a New Blag! I Got a New Blag! I’ve always thought personal blogs were stupid, but I find myself reading a lot of my friends’ junk and I’m thinking they are less stupid. So I’ve decided to do one of these things. Code Spatter. Will continue to have the professional, web-development posts while this will be for stupid shit like my trip to Las Vegas and why I hate spirit airlines. I must be in love with wordpress since this is the 6th one I have running. One to keep track of crap at work.
codespatter.com
Python Projects in Users’ Home Directories with wsgi | Code Spatter
http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi
Python Projects in Users’ Home Directories with wsgi. Posted on July 8th, 2009 by Greg Allard. Letting users put static files and php files in a public html folder in their home directory has been a common convention for some time. I created a way for users to have a public python folder that will allow for python projects. The server will look for this wsgi file: /home/user/public python/myproject/deploy/myproject.wsgi. REQUEST URI }. E=python project name:% 2. WSGIScriptAliasMatch / (. This is a sample...
codespatter.com
How to Display Realtime Traffic Analytics | Code Spatter
http://codespatter.com/2009/09/02/how-to-display-realtime-traffic-analytics
How to Display Realtime Traffic Analytics. Posted on September 2nd, 2009 by Greg Allard. Users of Presskit’n. Apache is installed with rotatelogs. This program can be used to rotate the logs after they get too large. However I wanted a few more features. Cronolog will update a symlink everytime it creates a new log file so that you can always have the most recent stats. Usr/bin/cronolog - symlink=/path/to/access /path/to/%Y/%m/%d/access.log. Piping Apache Log info to a Python Script. Cache r = re. Pid: b...
SOCIAL ENGAGEMENT