Chrome-like Tab behavior in Vim on Mac OS X

Google Chrome has trained my brain that Ctrl+T, and ⌘+⌥+[arrows] will move me to the next and previous tabs. I wanted vim to work the same way. In .vimrc:

""""" TAB BEHAVIOR
" Ctrl+t to open new tab
" Note: this overwrites a shortcut for the tag stack, if you use tags
nnoremap <C-t> :tabnew

" Chrome-like shortcuts for prevtab and nexttab
" (Meaning ⌘+⌥+[arrows])
nnoremap <ESC>[1;9D gT
nnoremap <ESC>[1;9C gt

YMMV on the exact mappings to use, see below on how to figure it out for yourself. I found a lot of solutions that didn't work for me, including pressing the key combo in vim under Visual Line mode, so it would show me vim's notation for what keys it's getting. But the problem was three things failing in some combination:

-- The terminal was mangling the input before it got to vim

-- Vim wasn't showing me the starting "^[" (escape key)

-- Vim wasn't displaying the [1; section of the input either. Just ":9C" or ":9D"

After a lot of searching, I finally found this simple solution to figure out what the terminal is actually sending, and translate to vim speak, all in one. Using the terminal on my Macbook Pro, it's surprisingly simple:

> sed -n l
[Press whatever key combination you want]

The output it showed me was “^[[1;9D”, so my key signature to map was “<ESC>[1;9D”

You can see my entire .vimrc file on Github. Hat tip to Adam Morse for the warning on Ctrl+T and the tag stack.

Quotable Objectified (the Film)

I really enjoy the film Objectified. Every time I watch it, I find another nugget of wisdom I want to remember and integrate into the way I think about product and design. But as time goes on, my memory fades. I recently re-watched as a part of the fantastic HackDesign.org online course. But some time later, I often find myself asking questions like “what was that quote about objects you really love that get better with time? I think it was a guy from IDEO…”

I can try Googling parts of the quote I remember, and I might find a blog on it online. Even if this works – and it often doesn’t – how can I find that snippet to re-watch? I’m still faced with re-watching the movie to find that quote, or skipping through, hoping I get lucky.

This page is an attempt to solve that problem. Over the last year, I’ve collected all my favorite quotes from Objectified the film, in chronological order, including time stamps. I hope this makes it easier to find that elusive quote or moment of insight on the tip of your tongue.

By the way, you can buy Objectified on Amazon for only $2.99

 

Objectified on Amazon

Continue reading

Funding Fireside – Sammy Shreibati of SaveUp.com

My company, Emissary, works out of a great co-working space called the Founder’s Dojo. We organize periodic fireside chats with great people in the startup world. Below are my (raw/unedited) notes from our first talk. The topic was pre-seed and seed funding, with Sammy Shreibati of SaveUp.com


Advice to entrepreneurs looking to raise?
Create momentum.
Don’t tell them who you’re talking to. They won’t collude but they’ll get together, share notes, etc. They’ll eventually get there anyway, but no need to speed the process up.
Expected value of that situation is not necessarily worse, but it’s not a better outcome for the entrepreneur.
***Getting to the first term sheet should be your goal***

SaveUp’s 1st round
Talked to 15 investors in 2.5 weeks
Mid-2011, “frothy” time when lots of deals were happening
TrueVentures (seed), Blue Run (series A for Paypal)
Mostly Sand Hill, some SF.
Felt good to go up to them and say we’re talking to others
Once you get first term sheet you’re good.
Pre-product: bought adwords for different keywords, sent traffic to email signups, showed analytics as proxy for interest. This also got Sammy to really believe in it.
Reminds me of http://www.paulgraham.com/convince.html
There was also a ton of literature on Prize Linked Savings which is the inspiration of SaveUp. That helped pre-product.

Continue reading

Notes from Duct Tape Marketing: Day 3

Yesterday through Friday, CreativeLIVE is broadcasting John Jantsch, the author of Duct Tape Marketing, on boot-strapping or optimizing the marketing arm of a small business. Day 1 notes here | Day 2 notes here | Below are my notes from Day 3 of these sessions.

Let me know what you think on Twitter at @staringispolite

The book on Amazon

Watch the session live here: http://www.creativelive.com/live1 They have “course materials” here: http://www.creativelive.com/courses/duct-tape-marketing-john-jantsch Continue reading

Notes from Duct Tape Marketing: Day 2

Yesterday through Friday, CreativeLIVE is broadcasting John Jantsch, the author of Duct Tape Marketing, on boot-strapping or optimizing the marketing arm of a small business. Day 1 notes here | Day 3 notes here | Below are my notes from Day 2 of these sessions.

Let me know what you think on Twitter at @staringispolite

The book on Amazon

Watch the session live here: http://www.creativelive.com/live1
They have “course materials” here: http://www.creativelive.com/courses/duct-tape-marketing-john-jantsch

Continue reading

Notes from Duct Tape Marketing: Day 1

Today through Friday, CreativeLIVE is broadcasting John Jantsch, the author of Duct Tape Marketing, on boot-strapping or optimizing the marketing arm of a small business.  Below are my notes from Day 1 of these sessions | Day 2 notes here | Day 2 notes here.

Let me know what you think on Twitter at @staringispolite

The book on Amazon

Watch the session live here: http://www.creativelive.com/live1
They have “course materials” here: http://www.creativelive.com/courses/duct-tape-marketing-john-jantsch

Continue reading

Notes from Design+Startup:Making

Just got back from a fun and inspiring night at IDEO, who hosted Design+Startup (an ongoing series of design and hacking talks with lots of pizza and booze mixed in). Big thanks to @madisonmount and @phineasb for hosting. Below are my notes from the event’s talks. They’re mostly in stream of consciousness form, though I do make some attempt to organize them. Many past events can be found in video form (nicely separated into separate talks) on First Round’s Youtube channel.

I hope these can be a helpful resource. Final note: I love talking design and hacking. If you went tonight, or want to discuss, find me at @staringispolite.

TABLE OF CONTENTS:
Kyle Neath on: TOOLS
Karen Kaushansky on: EXPERIENCE DESIGN
Vivian Barad on: MANUFACTURING
Brad Simpson on: DATA VIS / TELLING A STORY
Tobias Toft on: PRINTER ART SIDE PROJECT
Jeffrey Kalmikoff on: DOING EVERYTHING

Continue reading

500 Words. Day 23.

Well yesterday was crazy. Unexpectedly, my reaction to the Lolapps layoffs made it onto the front page of HackerNews, and stayed there. Same with proggit (reddit programming). This was my third time getting this kind of traffic to something I did, but the first time it was to a database-driven page, so there were some interesting learning experiences.

The biggest lesson here was how Rackspace Cloud servers perform and scale while they’re under heavy load. Continue reading

Spy vs. Spy

I saw Iron Man last night, which was definitely in the top 3 comics-type movies I’ve seen (behind Batman Begins and Transformers).  Me and Casey also invented our own comic book series on the way there, but more on that later.

But then I wasn’t tired when I got back, so I did something that I’d never done before:  I watched C-SPAN.

And it was awesome.

It just so happened they were showing a talk held at the International Spy Museum by two high-up ex-counter-intelligence agents, one from the FBI and one from the USSR’s former KGB, Oleg Kalukin.  Oleg really impressed me with how friendly and knowlegable he was, despite speaking to an audience in the country he once spied on, and sharing the presentation with an agent of the FBI, which he had to avoid most of his life.  I instantly liked him.  (which is, I suppose, how he infiltrated America so well).

I came in half-way through the talk, but it seemed like a back-and-forth history of these two very successful spies as they rose through the ranks of each country, and showing how their paths crossed several times.  I think my favorite story was when Oleg took his family on vacation in Florida in the 90′s.  He saw the FBI tails changing cars on every state line so he knew they were following him.  On the way back, his car broke down, and the FBI actually drove him to a diner with his family, waited outside while he ate, drove him back to the motel they found, and fixed his car overnight.  Can you imagine the FBI doing something like that these days with a suspected middle-eastern spy?

The whole thing is 2 hours long, but I highly recommend it.

5 minutes of fame

If we all have 5 minutes of fame, I now have 4 minutes 54 seconds.

I was on the History Channel for 5 1/2 seconds today!  it airs again Saturday night at 7pm (Modern Marvels)  The Univ. of Maryland lab I used to work at (http://www.cattlab.umd.edu) does a really cool video-game-turned-training-simulation for first responders, and it was featured on Modern Marvels tonight, at the end of an episode on highway systems around the world.  And, for no reason at all, I’m in the background for a couple shots. Hey, I’ll take what I can get.  Check it out this Sat if you can!  The episode was actually fairly entertaining (but maybe only because I worked in traffic engineering field for a while…?  Who knows!)