Skip to content
Zcentric

The old blog

Posts

Notes on iPhone development, Linux, Django and infrastructure, written between 2008 and 2016.

  1. Reason #4 on why Django is great

    Tweet Middleware! I can’t tell you how great middleware is in Django. It makes life so easy! Here is a good example. Django doesn’t handle ajax errors very good. It prints them to the client. Sure I can use …

  2. Reason #3 on why Django is great

    Tweet Making custom model fields are a great thing to save a lot of time. If you need a lot of custom validation around your modelforms and don’t want to do a lot of copy and pasting then create a custom model …

  3. Install all needed RPMS for a rpmbuild

    Tweet Ever had this happen? [mzupan@laptop SPECS]$ rpmbuild -ba php.spec cat: /usr/include/httpd/.mmn: No such file or directory error: Failed build dependencies: curl-devel >= 7.9 is needed by php-5.2.11-2.fc12.src …

  4. A better Jira init.d script for Redhat/CentOS

    Tweet I wrote a bit better init.d script for Jira for Redhat/CentOS The first thing you want to do is create a sysconfig file. Below is the filename /etc/sysconfig/jira The file has the following contents in it # # The …

  5. Init.d script for puppet-dashboard

    Tweet In the #puppet IRC channel on freenode a user was asking if anyone knew of a init.d script for redhat/fedora for puppet-dashboard. I have a blog post about installing puppet-dashboard on Redhat/CentOS and I …

  6. SSH Trick

    Tweet To start off with.. I know you can do this in DNS using a search parameter but I don’t want to do that in my envirnoment. Sometimes you are working with a hostname that is long due to the domain name. This …

  7. Google Apps List Shared Contacts

    Tweet I’ll be the first to call out Google that their gdata python library for connecting into the Google Apps API is the worst. I wanted to grab all the shared contacts from our domain and it was a giant in the …

  8. Django: Custom Decorator with an Argument

    Tweet Sometimes you want to be able to create a decorator for functions in Django but have the ability to pass in an argument into the decorator. I came across this when I wanted to switch from the require_login …

  9. Nginx proxy timeout fix

    Tweet This is something that is an easy fix. Nginx is a great web server not only for your primary site but for a proxy as well since it is made to serve a lot of requests very fast. So it is as simple as this  …

  10. Reason #2 on why Django is great

    Tweet The decorators that Django has are a great time saver. There are a lot of methods in your views where you only want logged in users to see. So you can use a decorator before the function to check if they are …

Browse by tag or category, or go back to all posts.