If you’re on OS X, and you do this:
dave@home > sudo gem install mysql
And then you get this:
Building native extensions. This could take a while…
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install mysql
can’t find header files for ruby.
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out
… it might [...]
dmidecode drops a whole lot of information about the machine you’re on from the command line.
For other information, check out this fine list of command line applications.
Personally, I’ve been a huge fan of tree for a while, too. It shows file structures in an outline, and lets you manipulate them in a variety of ways. [...]
This is one of my favorite geek tricks ever.
Here’s how it goes:
You’re browsing Amazon.
You find a book you want.
You click a bookmarklet in your browser window.
The bookmarklet looks up to see if that book is available at your local public library.
If it is — and you’re in Austin — you can get the book held [...]
I’ve added a new category: “things I’ve learned more than once.”
To inaugurate this category, I give you rak, a nice little directory-level search tool.
Need to find all the times you used a method in a pile of code? Searching desperately for the error alert that says, “This stupid file has been changed?”
There are a fair [...]