Here's a handy way of running a command on multiple boxes. In this case I wanted to check disk space on a series of machines.
Assuming you're using bash as your shell, the following will list the hostname and run df on machines racb13 through racb28 and spit out the …
MoreMark Suster and Fred Wilson have both posted on the topic of being a good panelist. I'll throw in the best advice I ever got on the topic (from Alex, who got it from someone else):
Disagree with other panelists.
A panel of people agreeing with each other is generally …
MoreI was surprised at how little information I found on making use of Django's permission system. Here are some quick notes on one way to use it:
Groups are groups of users. For example, you could define a group of users who have premium accounts, or have been verified in …
MoreI remarked to a friend that Mark Suster's entrepreneurial roots show in his approach to being a VC - he's come out of nowhere and in short order aggressively pushed himself into being one of the most relevant voices out there. He seems to be working a lot harder than …
Moredjango-mptt is a library for storing tree oriented data using the Django ORM. It allows you to place your model instances into a tree structure and efficiently query for ancestors and children.
Here's a brief tutorial on how to use it:
After installing, you'll need to modify your model to …
MoreI'm a big fan of Fantastic Mr. Fox. We just watched it again and it was a hit with everyone from the 2 year old to grandma.
The dialog an voice acting are excellent, and the animation is really refreshing. The story is smart and is different enough from your …
MoreI was doing some log analysis this morning and was struck by the variety of user agents accessing Xpenser. Quite a bit of mobile access with quite a variety of different browsers, as well as some more exotic items (various tablet PCs I don't recognize, etc).
Then there's the API …
MoreHere's a little script for finding files modified more than 7 days ago and moving them to another directory:
find . -type f -mtime +7 -print > /tmp/old_files.txt
cat /tmp/old_files.txt | while read line; do mv "$line" ../old_files ; done
Note to self, as I seem to need to do this on every new install:
Ubuntu ships with vim-tiny, which doesn't support syntax highlighting. Do this:
sudo apt-get remove vim-tiny
sudo apt-get install vim
sudo vi /etc/vim/vimrc
( Remove the quote mark from the "syntax on" line, uncommenting it …
Impressive Ted Talk by Chimamanda Adichie on how stories, and in particular "single stories", shape our views of cultures. Many parallels with how people typically see Iran.
A great quote from the talk: "The problem with stereotypes is not that they are untrue - it is that they are incomplete".
MoreI used to be a vi guy who finally made the move to graphical editors. I looked for the simplest, lightest possible solutions, using ConTEXT for quite a while.
Some years ago I was forced into using Eclipse for reasons I can't quite recall; probably Java development. I didn't like …
MoreI'm noticing how much the practice of finding a candidate and interviewing them has changed over the years.
First step is to look up the person on the web. Since I'm looking for a technical person I'm expecting a blog, contributions to open source projects, a twitter presence, etc. If …
MoreI still have a big soft spot in my heart for Yahoo, but Yahoo mail, WTF?
Of the entire screen only the area I've highlighted in orange is dedicated to the contents of the message. And this is with the app maximized to full screen.
The interface is unusable as …
MoreI was thinking about what book to read next and it occurred to me to ask you nice people. I'm in the mood for something factual but interesting - something like The Prize, if you're familiar with that. I was intrigued by Fiasco but I haven't looked into it.
So what …
MoreLooks like I've finally converted Alex to Python as well. "This is actually shorter than perl and still makes sense". Be forewarned - if you code with me, you'll be doing Python in no time.
MoreDue to aforementioned OS X stupidity with the Home and End keys, my new favorite Eclipse hotkey is Ctrl-Q. It takes you to the location of your last edit. So next time you hit the End key to go to the end of the line but end up at the …
MoreThe title pretty much says it; I'm planning an SJC/SF trip next week, if you want to meet or chat drop me a line - Darugar at gmail.
MoreNice and detailed article from Jesse Noller on concurrency, threads, the GIL, and Python. Worth a read; I learned a lot from it.
For the record I'm one of the people who doesn't think threads are not the true solution to the concurrency problem.
More