Posts Tagged: python


Pop-Up Pantry is looking for two talented contractors to join our team. Experience a great start-up opportunity in a foodie culture company with competitive pay, perks and fun coworkers.

Systems Expert

We need a systems guru to help set up:

  • staging environement
  • load balancer setup
  • monitoring and alerting
  • deployment infrastructure
  • server and object caching
  • high traffic scaling and redundancy
  • profiling and optimization

Our current stack uses django, with uwsgi and nginx in the AWS cloud. This position would be contract, with the potential for a long-term contract relationship as part of ongoing maintenance, testing, integration and optimization. Must have at least 3 years experience and references. Send your resume and an intro to: jobs (at)

Web Designer / Front-End Developer

We need a front-end guru with knowledge of:

  • django templating and template tags
  • SASS / CSS integration
  • Javascript Development

This position will start as a part-time contract but could easily move to a full-time or long-term contract position. Must have at least 3 years experience and references. Send your resume and an intro to: jobs (at)

Super hacky but it works. See also: p.cmdline or p.exe if you have a different type of process you’re looking for (i.e. my script uses several params so I’m actually parsing p.cmdline because is merely ‘python’)
   import psutil

   for p in psutil.process_iter():
       if 'foo' in
           f = open('/var/run/','wb')

So I know the PyLadies are a hard group to keep track of, with all the hackathons, hacknights, workshops and pylady nights, these women are hard to track down!

So I started a search to hunt the PyLadies… here’s the trail of clues:

  • First, I hopped into the #pyladies IRC channel on freenode. I noticed @sandymahalo was there and I said hi! First, pylady spotted!
  • Then, I pinged @PyLadies on twitter. Within minutes, @audreyr responded. Another pylady spotting!
  • Audrey told me about upcoming Pylady hacknights, which happen every other Monday in locales around the world, loosely organized via IRC #pyladies channel. I heard the PyLadies in Los Angeles were having regular in person meetings and since I live on the west side, I pinged @webdevgirl (xtine on IRC) about where she was organizing the West LA hacknight this coming Monday, July 25. She got right back to me and I met up with her and hacknighted it up!
  • After the hacknight was so successful, I thought I *must* see the photos. @backcode (Sophia) told me all about the PyLadies flickr page! Tagged!
  • I knew there must be more PyLadies lurking around, so I found out that @estherbester and @tiny_mouse (Jess) were organizing events at this year’s Djangocon via the PyLadies website mailing list. Email input — > updates received!
  • @kjam tracked down all of my hunting, so she bugged me to join the PyLadies Volunteer List so I could help out with the daily operations of PyLadies and all the fun events they put together.
  • I decided I liked this whole PyLadies thing, so after hunting them all down, I liked them on Facebook. Commence internet warm fuzzies.

Keep up with us in all of these many ways, or help create more. :)

♥, kjam


Puts parent dir on python path. Useful for me at times… :)



Great success!

(If you need to use the beauty of celerymonitor from a non-web browser. Feel free to use
this script, and then a simple: from import state will give you lots of goodies.

For more info, see:

Celery is awesome.


So I have to do a lot of “reports” for ppl at work where I need to quickly build files for them to use from active databases. I wrote this to pass in a million and a half things and quickly output them. The normal python mysqldb cursor returns a tuple, but this can also be used for arrays (but not dicts). Hope it’s helpful for someone!

For usage, pass full filepath file name, an array or tuple of titles for the columns/fields and then the data from mysql itself.

def write_tuple_to_file(file_name,titles,tpl):
    f = csv.writer(open(file_name,'wb'), delimiter=',',quotechar='"')
    for x in tpl:


C would be Judaism - it's old and restrictive, but most of the world
is familiar with its laws and respects them. The catch is, you can't
convert into it - you're either into it from the start, or you will
think that it's insanity. Also, when things go wrong, many people are
willing to blame the problems of the world on it.

Java would be Fundamentalist Christianity - it's theoretically based
on C, but it voids so many of the old laws that it doesn't feel like
the original at all. Instead, it adds its own set of rigid rules,
which its followers believe to be far superior to the original. Not
only are they certain that it's the best language in the world, but
they're willing to burn those who disagree at the stake.

PHP would be Cafeteria Christianity - Fights with Java for the web
market. It draws a few concepts from C and Java, but only those that
it really likes. Maybe it's not as coherent as other languages, but at
least it leaves you with much more freedom and ostensibly keeps the
core idea of the whole thing. Also, the whole concept of "goto hell"
was abandoned.

Read More