Tuesday, September 29, 2009

Twitter Weekly Updates for 2009-09-29


  • can anyone with ruby on rails experience recommend a good book? im about to start on it. #

  • Anna's Taqueria 5/5 on #Yelp: Anna's Taqueria is one of my two favorite fast Mexican restaurants (the other is Bueno... http://bit.ly/Xr2rt #

  • got ruby 1.9 + ruby on rails 2.3.4 installed on my mac (snow leopard) last night. rvm caused more trouble than it was worth, so i removed it #

  • "hey can we find a Family Guy to sleep in?" - Alicia #

  • 1 play left. go lions!!! #


Powered by Twitter Tools

Friday, September 25, 2009

Does this count as ironic?

Salad with dressingI was sitting at my cubicle today, eating a salad (with fat free sun dried tomato dressing) for lunch. Despite a perfect knowledge of my spill-happy past, I ate the salad leaning back in my chair.

About halfway through, I decided I was just asking for trouble, and decided to lean over my desk for the rest of the meal. Two bites later, a piece of lettuce (covered in dressing) fell off my fork, hit the side of the desk, slid off the desk and onto my pants, then slid off my pants and landed on the floor.

It's things like this that make me think God doesn't exist.

Tuesday, September 22, 2009

Morning Sickness

Over the last dozen or so mornings, I've felt anywhere from below average to awful. I'm not sure what it is; my friend Ron thinks it's the change of weather, which is definitely possible, but it's never happened before.

I wake up with a sore throat and headache (each of varying intensity). It starts to dissipate as the day goes on, and I usually feel fine by the early afternoon.

I've been getting about six hours of sleep per night. Maybe going to bed earlier will help.

Twitter Weekly Updates for 2009-09-22


  • do the analysts saying TO had "no impact" not know football? u think fred jackson wouldve torn it up if we didnt need to double-cover TO? #

  • Latest Facebook blog post (http://bit.ly/VB1qa) says theyre now cash flow positive. If thats true, its incredible (they burnt $500m last yr) #

  • Aw, that's a sick tattoo! http://bit.ly/eDblr #

  • man tests out bulletproof glass by having his wife hold it in front of her face and shooting it: http://bit.ly/9iTlh #

  • Goten of Japan 5/5 on #Yelp: The food here is delicious. I've been here five times, and I've loved it every one of t... http://bit.ly/d9Wp9 #

  • "went to church this morning. worst mistake of the day." - some guy yelling in central square #

  • you can see why NE picks up vet players. fred taylor knows exactly how to set his blockers up. #

  • Celebrity Pizza & Dairy Bar 3/5 on #Yelp: My roommates and I walk here from our house once every couple weeks.

    The ... http://bit.ly/uMEAo #

  • Antonio's 4/5 on #Yelp: Antonio's makes the most unique and delicious pizza I've ever had. My favorites are the buff... http://bit.ly/10Wh8e #

  • i love when i wish a feature existed in an app, then find that it actually does. just happened with "bookmarks" on @yelp #

  • Me: let's diagram it out tomorrow. we should get a whiteboard.
    Alex: ya
    Alex: and tattoos. #


Powered by Twitter Tools

Monday, September 21, 2009

Tough as Nails

I set a goal for myself at the beginning of last week: stop biting my nails.

Nail Biting

It's been a lifelong habit. Personally, I don't think there's anything wrong with it. In fact, once I do end up successfully stopping, I may start again. I just want to see if I can do it.

So far, it's been a lot harder than I expected. I sometimes catch myself halfway through biting a nail (of course, I have to finish at that point, lest I leave half a nail hanging off). For the first few days, I wasn't even sure if I'd be able to do it.

Now, my nails are longer than they've been since I was a little kid. Once they get to the point where a normal person would cut them with a nail clipper, I'll consider myself victorious.

Saturday, September 12, 2009

Installing MySQL on Snow Leopard

Early on at Cisco, I realized that it's really beneficial to write down (step by step) what I've done when I install something new. It forces me to think about what I'm doing, it provides me with a guide in case I mess up and have to start over, and other people can benefit from it later.

With that in mind, I've decided to document my installation of MySQL on Snow Leopard (OS X 10.6). Hopefully, someone will get some use out of it, but if not, at least I'll have documentation of what I did.

The PATH Variable



MySQL has a bunch of useful executables that aren't in PATH by default. I could symlink to them, but I think that's less maintainable than just appending to PATH.


  1. Open the Terminal

  2. Open up the .bash_profile file in your home directory. This is a bash script that runs every time you start the Terminal, so the PATH variable will be extended properly every time. If you have TextMate and its UNIX command line tools installed, do it like this:
    [code lang="bash"]mate ~/.bash_profile[/code]
    Otherwise, do it like this:
    [code lang="bash"]/Applications/TextEdit.app/Contents/MacOS/TextEdit ~/.bash_profile &[/code]
    If you use the second one, make sure to add the ampersand at the end.

  3. We want to add MySQL's bin folder to PATH. MySQL's going to be installed at /usr/local/mysql, so let's add /usr/local/mysql/bin to PATH. Add the following line to .bash_profile:
    [code lang="bash"]export PATH="/usr/local/mysql/bin:/usr/local/sbin:$PATH"[/code]
    This replaces PATH with two new locations and the old value of path (so essentially, appending the two new locations to the beginning of PATH). You'll notice that, in addition to /usr/local/mysql/bin (which I mentioned earlier), I also added /usr/local/sbin. OS X doesn't include this in PATH by default, but I think it should, so I added it. I have no defense for that position, but this is as much a guide for myself as it is a guide for other people, so I don't need to defend it :)

  4. Save the updated .bash_profile and close it.

  5. Quit and reopen Terminal so that .bash_profile will be rerun (you could also run it explicitly, but I prefer quitting and reopening).

  6. Run the following command:
    [code lang="bash"]echo $PATH[/code]
    You should see /usr/local/mysql/bin and /usr/local/sbin in there now.


Downloading + Installing


I might try compiling and installing from source at some point, but I don't see any reason to when there are official OS X binaries available. Worst case scenario, it messes with a bunch of my settings, and I'll uninstall and then do it from source.

  1. Go to http://dev.mysql.com/downloads/mysql/5.1.html#downloads

  2. Scroll down to the Mac OS X section (near the bottom). Download the version labeled "Mac OS X 10.5 (x86_64)". It's very important that you download the 64-bit version. The 32-bit one will give you preference pane problems (I call them PPPs whenever I talk about them, though this is the first time I ever have). Eventually, there'll probably be a Mac OS X 10.6 version, but for now, this works perfectly.

  3. Open the .dmg, then run mysql-x.x.xx-osx10.5-x86_64.pkg. Continue through all the screens without changing anything, until it finishes.

  4. Optional: install the preference pane by running MySQL.prefPane.

  5. Optional: make MySQL start up along with OS X by running MySQLStartupItem.pkg. I didn't do this (I often use my computer for things other than development, and I don't want to bog it down unnecessarily), so I can't provide any instruction or vouch for how well it works on Snow Leopard.


  6. You should now be able to start MySQL by going into the MySQL preference pane and clicking "Start MySQL Server". If it doesn't work, leave me a comment, and I'll try to help you.