Skip to content
Zcentric

The old blog

Posts

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

  1. What Rollout will be?

    Tweet I have been debating just helping with fabric or writing my own app for a week now and I just think what I need and want fabric just isn’t and too much work to get it to the way I want it to be. So here are …

  2. Rollout has been designed

    Tweet I’m a big fan of fabric, a python module to make deployments easy. It is still very new but has some great features and some major short comings I don’t think the authors thought of before they …

  3. Reason #1 on why Django is great

    Tweet All the crazy helper function they have for models to display information in templates. Say I have a model that looks like this with a choice field (it will get rendered as a select input in html. SEX_CHOICE = ( …

  4. Remote Editing with Eclipse

    Tweet I was doing some Django work trying to get PayPal WPP to work with my application and it was stuck behind your basic LinkSys wifi router. Now you can just go in and forward the ports, edit PalPal configs and bla …

  5. Bash: Get largest files in a directory

    Tweet So you have a partition with a ton of subdirectories and the partition is almost full and you want to see if there are large files eating up space. There is an easy command you can run to list the 10 biggest files …

  6. Install fabric on Redhat/CentOS 5

    Tweet Fabric is a great tool for helping deploy applications. It is written in Python and still in it’s early stages. The big issue is that fabric will not run on python v2.4. That is a problem since Redhat/CentOS …

  7. Remove Leading 0’s in Bash

    Tweet So you have a var you want to remove leading 0’s on.. well do the follwing mzupan@mzupan-desktop:~$ var=00014 mzupan@mzupan-desktop:~$ let var=”10#$var” mzupan@mzupan-desktop:~$ echo …

  8. Calculate Distance In Mysql with Latitude and Longitude

    Tweet So you have a whole table full of members or places with latitude and longitude’s associated with them. Just replace the $lat and $lon with the center point you want to find distances from. You can also …

  9. Install puppet-dashboard on RedHat/CentOS 5

    Tweet If you have a puppet network in place you will want to use puppet-dashboard. It is a fairly new project and still has some misssing pieces but overall a good way to tell the health of your puppet network. The …

  10. Line breaks in command output redirect

    Tweet Every now and then you need to save command output into a bash var from a command. Generally it looks like VAR=`command` That will put the stdout of command into $VAR There is an issue if the output has …

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