|
|||||
|
This let me figure out that my modwsgi wasn’t using the Python that I thought it was. sudo lsof -c httpd | grep python I was dying a slow death from the slowness of my zsh prompt when using oh-my-zsh‘s git plugin and a repository managed by git-svn. I finally decided to do something about it today. I tracked the slowness down to the To fix this, I pasted the following into my I wanted to draw attention to the excellent work that Paul Fox has been doing in porting DTrace to Linux. And he recently created a GitHub repo for it, so it’s that much easier to contribute now. If you have Linux kernel knowledge, I’d encourage you to get involved! One day I was looking through a tar file and looking for an executable. When I use UsageYou can use tarcolor manually like this: $ tar tvf some_tarball.tgz | tarcolor ... colored output ... There is also a bundled shell script (for bash and zsh) that makes tar automatically pipe its output through tarcolor: $ source /usr/local/etc/tarcolor/tarcolorauto.sh $ tarcolorauto on $ tar tvf some_tarball.tgz ... colored output ... $ tarcolorauto off $ tar tvf some_tarball.tgz ... normal uncolored output ... CustomizationColors can be customized using the $ export LS_COLORS='di=01;34:ln=01;36:ex=01;32:so=01;40:pi=01;40:bd=40;33 :cd=40;33:su=0;41:sg=0;46' The format for LinksI pretty much followed these instructions, but one extra step was required. The problem that I was having was that the system kept running out of file descriptors and becoming unusable. After a little digging around with My solution was to increase the number of file descriptors by adding to
This was enough file descriptors to placate gam_server:
[marca@freebsd9-0 ~/src]$ fstat | grep gam_server | wc -l
6435
Why you don’t get mock objects Fascinating talk by Gregory Moeck from RubyCon 2011 While this deals quite a bit with TDD and mock objects, it’s also largely about a particular style of OO design, one that reminds me a lot of some of Allen Holub’s writings. It’s not very specific to Ruby (it has some examples in RSpec – that’s about the extent of the Rubyness). |
|||||
|
Copyright © 2012 Marc Abramowitz - All Rights Reserved |
|||||