Have you ever been in terminal and wanted to copy contents of a file to the clipboard and move on to your next task? This seems to be a pretty common occurrence for me and I just found out there is a command to do precisely that: pbcopy.
Let’s say you’re IMing with someone and you want to send them your public key so they can set you up to ssh into their server. Depending on your IM client, it could be a pain to send a file, but the contents of your public key is just text. Previously, I would just do this:
… then highlight the output with my mouse, and copy & paste. Not only is using the mouse for n00bs, but when you have something like public keys, you need to be sure to capture the whole key exactly and have no room for human error. Now I’ve learned that I can just pipe to pbcopy and the contents will be copied to my clipboard.
cat ~/.ssh/id_rsa.pub | pbcopy
In case you’re wondering, pbcopy stands for “pasteboard copy” because apparently clipboard wasn’t a thing when this command was written decades ago. Here is another article on clipboard vs. pasteboard.
Let’s say you’re playing with ImageMagick. And you’ve found all sorts of documentation that tells you what you can do with ImageMagick on Linux, but it doesn’t seem to be working on your Mac. If you’re on a Mac, you may not have some of the ImageMagick libraries by default. To fix this, you need to
>> display pencil.png
display: delegate library support not built-in `' (X11) @ error/display.c/DisplayImageCommand/1904.
>>brew uninstall imagemagick
>>brew install imagemagick --with-x11
==> Downloading https://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.8.7-7.tar.bz2
==> ./configure --disable-osx-universal-binary --prefix=/usr/local/Cellar/imagemagick/6.8.7-7 --enable-shared --disable-static --without-pango --with-modules --disable-openmp --without-gslib --without-
==> make install
/usr/local/Cellar/imagemagick/6.8.7-7: 1435 files, 22M, built in 108 seconds
>>brew info imagemagick
imagemagick: stable 6.8.7-7 (bottled), HEAD
/usr/local/Cellar/imagemagick/6.8.7-7 (1435 files, 22M) *
Built from source with: --with-x11
Build: pkg-config ✔
Required: libtool ✔
Recommended: jpeg ✔, libpng ✔, freetype ✔
Optional: fontconfig ✘, libtiff ✘, little-cms ✘, little-cms2 ✘, jasper ✘, libwmf ✘, librsvg ✘, liblqr ✘, openexr ✘, ghostscript ✘, webp ✘
Build with fontconfig support
Build with ghostscript support
Build with jasper support
Build with liblqr support
Build with librsvg support
Build with libtiff support
Build with libwmf support
Build with little-cms support
Build with little-cms2 support
Build with openexr support
enable build/install of PerlMagick
Compile with a quantum depth of 16 bit
Compile with a quantum depth of 32 bit
Compile with a quantum depth of 8 bit
Build with webp support
Build with x11 support
Build without freetype support
Build without jpeg support
Build without libpng support
disable build/install of Magick++
install HEAD version
I look at analytics every day. It’s somewhat of a compulsion. Today, I saw a big orange dot and went to investigate. There were 41 Visitors from International Space Station – Control Room. In fact, it looks like all of my sites have become very popular with the International Space Station – Control Room! I clicked on it to drill into their activity and saw that it was an April Fool’s day prank by the Google Analytics team. Nice work. I am sure you’ve made many search engine marketers very happy every thinking that 41 people were concurrently visiting all of their sites because of whatever tweak or content they just launched. Oh, if only we could be there when their hopes and dreams came crashing down.
It would be epic if the International Space Station really did visit everybody’s site and tried to pin it on Google. I’ll be wearing a tin foil hat just in case.
It just dawned on me that this was the first year I didn’t do a year in review comedy show. Consequently, I didn’t scour the web for pop culture references and try to make jokes that would be funny for all of one week. I did, however, read a lot of very interesting 2012 year in review posts about entrepreneurship, science, advertising, et al. Here is the first in a series of posts about my favorite 2012 year in review articles and a couple of highlights that I found interesting.
Patrick Mckenzie (AKA patio11) is known on the internet for his contributions to sites like Hacker News. He shares a lot of his personal experience with pricing your services, SEO, A/B testing, and email drip marketing. He has historically shared a lot of this on his blog. He has since expanded to email lists, podcasts, video training courses, and ebooks. In addition to consulting, he runs two products on his own:
I really enjoy Patrick’s writing. It’s very valuable because it is highly actionable and cites specific examples. Here are some tidbits that I’ve learned from Patrick this year and how I’ve applied it
When I was growing up, I had some awkward years. I was very smart for my age and used that as an excuse for my difficulty in making friends with my peers. In high school, I had spent one New Year’s Eve completely alone and felt very depressed watching some car drop into a bunch of vans stacked on top of each other. Sitting on the couch alone at midnight, I became abundantly aware of my self-esteem plummeting faster than that car!
That night I started to
Looks like it’s about that time… after 7 years, I’m leaving Microsoft! This may come as a shock to people who I’ve met over the years, so I’d like to give you all some insight.
This past year was a transformational year for me. I had completed my responsibilities to launch the closest thing to a startup Microsoft had to offer. My co-workers were leaving Microsoft in droves. My product team was primarily based in Shanghai and, after the exodus, I was the only person left in Seattle. Almost all of my closest friends had left the Seattle area. My girlfriend and I broke up. To top it all off, I was diagnosed with
If you own an Amazon Kindle and have Amazon Prime, you can say Avada Kedavra to paying a dime for the entire Harry Potter series. Amazon has recently acquired the exclusive rights to make the series part of its Kindle Owners’ Lending Library. This means all 7 Harry Potter books will be available to be digitally “borrowed”
Wordament is my favorite game on Windows Phone. In fact, it is the only game I’ve consistently played since I got my phone a year ago. Throughout the year, the Wordament team has made consistent progress and improvements to the core game. In the last couple of weeks, they’ve done a massive overhaul and