My friend Paul Kedrosky's post on one of his main investment theses, the application of currently consumer oriented technologies to business (DropBox, Twitter, FaceBook, Yelp, …), got me thinking about how the future of work will look.
I've made a career of working far from where I live. I've generally considered …More
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 …More
Disagree with other panelists.
A panel of people agreeing with each other is generally …More
I 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 …More
I 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 …More
django-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 …More
I 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 …More
Here'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".More
I 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 …More
I'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 …More