I made a new git alias I’m loving. Maybe you have something similar. I’ve added this to my .gitconfig: [alias] last = rev-parse –abbrev-ref @{-1} This gets the name of the branch you had checked out prior to the current branch. It’s like git checkout -, but you can use it all over, such as:… Continue reading New git alias: git last
Category: post
I’m Adopting an Open Source Project. Now What?
On June 11, Twitter retired version 1.0 of their REST API. It was announced well in advance, but I had other things to do; checking to see if my Twitter tools would still work was too low a priority. Until they broke. When I refer to my “Twitter tools,” I mean a Python command-line script… Continue reading I’m Adopting an Open Source Project. Now What?
Fargo as a Fluid App
I thought it would be cool to have Fargo as a separate Fluid App. For those who don’t know, Fluid let’s you make a web app into what feels like a regular desktop app (for Mac OS X only). For me at least, this will make it easier to find Fargo among my many open… Continue reading Fargo as a Fluid App
RabbitMQ Queue Auto-Delete
Breadcrumbs for myself. Queue config options: exclusive: delete when declaring connection closes. No other connection can even access this. Only queues can be exclusive. autodelete: delete when the last downstream thing (i.e. consumers for a queue, or queues for an exchange) goes away. Note that this isn’t bound to channels or connections at all really.… Continue reading RabbitMQ Queue Auto-Delete
Fragile Tools
Not as much fun as Fraggle Rock. I’m currently dependent on the following fragile tools: Twitter Google Reader To a lesser extent, Firefox and Chrome What do I mean by “fragile tools”? Consider Twitter: It started as a fun ecosystem for development, where anyone could whip up an interesting alternative way to interact with the… Continue reading Fragile Tools
Making FiOS Actiontec Router and Apple Bonjour Services Play Together
I have Verizon FiOS at home. It’s very fast, but if you want optimal speed and all the features the service offers, you must use the router supplied by Verizon. This week, Verizon replaced my old router with a new one: Actiontec MI424WR-GEN3I. Unlike the older model it replaced, the new router is a Gigabit… Continue reading Making FiOS Actiontec Router and Apple Bonjour Services Play Together
Enermax KB007U-B Key Picture
My sons keep popping the keys off of my Enermax KB007U-B keyboard, and I was having a hard time putting them back on. But this picture proved very helpful because it shows how the little, white scissor hinges (or whatever the hell they are) are supposed to be connected.
Using watch with a bash alias
I love the Unix watch command. On OSX, you can install it easily with Homebrew: brew install watch Something I didn’t realize until 10 minutes ago is that if you want to watch the output of something in your bash aliases, watch will complain because it cannot find the command. This is because watch evaluates… Continue reading Using watch with a bash alias
Fixing Node.js v0.8.2 Build on Linux
There’s a nasty gcc bug on RedHat (RHEL 6) and CentOS Linux (and related) that gets triggered when you try to build Node.js v0.8.2: pure virtual method called. Solution: Run make install CFLAGS+=-O2 CXXFLAGS+=-O2 instead of just make install. More info: Cannot compile node.js 0.8.2 under CentOS 6.2 “make install”: terminate called without an active… Continue reading Fixing Node.js v0.8.2 Build on Linux
Mongoose Indexes and RAM Usage
If you’re using Mongoose, you’ve changed your indexes, and you’re wondering why you’ve run out of RAM, go into the Mongo shell and manually drop any indexes you are no longer using. Mongoose has no method for deleting indexes you’re not using any more, so they accumulate, gobbling up RAM. Now that you’ve cleaned out… Continue reading Mongoose Indexes and RAM Usage