One piece of code I find myself using a lot is for defaulting values using a simple conditional if statement: condition ? true : false. This isn’t bad in itself, but it also isn’t very powerful and dynamic. I wrote a small application helper which wraps this function and provides a pretty nice way [...]
More
I was trying to tag a few of my internal apps with a subversion revision number just for personal reference. Since running the command svn info yields YAML-ish output the ruby YAML library can load it. Sweet. The next step was just wrapping it in a class and creating some instance variables and methods for [...]
More
Took the idea from Dive Into Mark because I’m bored.
If you’re curious to see which commands you use the most just run:
$>history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
# local server
133 l
70 cd
47 svn
38 ..
29 e
26 mv
20 ll
10 rm
10 cp
8 ror
# remote server
123 l
74 cd
35 [...]
More
Update!
Switch spaces using your Apple Remote! (Or view the project on GitHub)
I was just goin around on the interblagosphere today and stumbled upon Erling Ellingsen’s smackbook pro. If you’ve never heard of this then you’re in for a shock. The basic idea behind what he has created is a way to switch virtual desktops simply [...]
More
This is a short and sweet post. I was trying to merge and sync all my calendars (something I do every so often which leaves me frustrated, drunk and huddled in a corner crying) and decided on google calendar as a main point since I have my work Outlook synced up with it (using their [...]
More
I found that I use a lot of input fields which need to display a simple message to the user like “type the molecular structure of didehydro-dimethylether onium cation” — and when they focus the box it needs to clear, and when they blur the box it needs to go back to that message. Theres [...]
More
I was reading up on another one of those “top X command line hacks for OS X” posts (more specifically Mac OS X Tips) and came across something I never really paid attention to. It was the “Inspect Element” menu item on the right-click menu in safari. If you don’t see this, thats probably because [...]
More
Okay — so after that last post I decided it was time for a change. I’ve had the same bash prompt for years and was starting to get tired of it. Over the past 30 or so minutes I’ve been hating life learning way more than I wanted to about PS1, colors and embedded IF [...]
More
I have absolutely no idea what to title this as — and frankly, its more for me than anyone else. I need a place to store this before I forget and go racking my brain 2 years from now on how to do this.
If you think you’re interested — this post is about the following:
How [...]
More
So I almost forgot to post this up. For halloween my co-worker/friend Sam (at Napolitopia.com) created a video of the pirate cube. If you have no idea what the hell I’m talking about — check this (old) post.
By the way, this is the 1 year anniversary of the Official Pirate Ship Cubicle! (Well, 1 month [...]
More
Page 2 of 7 « 1 2 3 4 5 » ... Last »