April 2011
1 post
1 tag
man.vim dude
It turns out that Vim ships with a pretty sweet man page plugin included, which you’d discover if you edited man pages very often, but most of us don’t so it’s probably a lot more useful to us as a viewer. Some of you Vim wise guys are saying, “But Vim already has a handy man page viewer, just press K in normal mode for the word under the cursor.” Sure. If you type...
Apr 28th
1 note
October 2010
1 post
5 tags
Handy Bits for Mongoid with Rails 3
Rails 3 and Mongoid are just peachy. Here are a couple of development conveniences for using them together. Pop this snippet in your ~/.irbrc to show the raw JavaScript queries that Mongoid is running as you play with your app in the Rails console (and/or SQL, when you’re using ActiveRecord). Formatting isn’t great for Mongo queries, but it’s helpful nonetheless. Setting...
Oct 17th
2 notes
GNU screen Wrapper for SSH Agent Forwarding
This problem is well-documented around the web, this is just my personal reminder. Others have crafted various solutions varying in complexity. I like this one for the simplicity and easy portability—I don’t remember who to credit for it, unfortunately. Without getting too deeply into the gory details, if you connect to a remote shell and run GNU screen there, then detach the screen...
Oct 15th
Sanely Rebuild Corrupt Font Caches on OS X
For Leopard, at least: # Clear user font caches $ atsutil databases -removeUser # And system cache $ sudo atsutil databases -remove # Restart the ATS server $ atsutil server -shutdown ATSServer shutdown $ atsutil server -ping ATSServer is running # Check for filesystem activity (this is just generally cool) $ sudo fs_usage | grep ATS You might possibly still need to restart applications,...
Oct 8th
July 2009
1 post
“The future is no more uncertain than the present.”
– Walt Whitman
Jul 6th
December 2008
1 post
“I’m no good at those “guess how many jelly beans are in the...”
Dec 2nd
November 2008
1 post
Gorefest
‘clean blood stain’ is probably one of those Web History moments where you want to make certain that you’re logged out of your Google account.
Nov 6th
October 2008
1 post
Um... Arrrr!!
Ches
I've switched Facebook to Pirate speak and it's pretty awesome
Sophie
You win! That's the most inane thing I've heard so far today
Oct 3rd
June 2008
1 post
Get the Ruby mysql gem to build with MySQL installed from 64-bit binary installer: sudo env ARCHFLAGS=”-Os -arch x86_64 -fno-common” \ gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config Courtesy of synth @ Chris Cruft » Blog Archive » Ruby, Rails and MySQL with Leopard 10.5.2 and XCode 3.0
Jun 24th
April 2008
1 post
Sophie
Do you know what I would have to do to make $65 an hour?
Ches
does it involve a pole and acrylic shoes?
Apr 4th
March 2008
6 posts
Swap Control and Caps Lock in X.Org
In the keyboard section of xorg.conf: Option "XkbOptions" "ctrl:swapcaps" This will naturally effect all X users on a system, so you may want to look at alternatives if you’re not the only one using your system ;-)
Mar 31st
Bash Prompt
export PS1="\n\[\033[0;32m\]\w\[\033[0m\]\n[\u@\h]\$ " Produces a prompt that looks something like this, with that initial newline giving some space from the output of the previous command: ~/src/lexblog/lexcode [ches@porco]$
Mar 13th
Literature and Latte - Scrivener →
Scrivener is a word processor and project management tool created specifically for writers of long texts such as novels and research papers. Has a screenplay mode, WriteRoom-like fullscreen edit,…
Mar 12th
gitnub →
A RubyCocoa frontend to the Git SCM.
Mar 12th
finding that just about everything in the Rails Recipes book is useful and pertinent
Mar 12th
1 tag
“It does not matter how slow you go so long as you do not stop.”
– Wisdom of Confucius
Mar 12th