Puddle Stomping

get the last word in the line

For example, in vim, after selecting the lines in visual mode:

‘<,’>!awk ‘{ print $NF }’   

…the stub uses state verification while the mock uses behavior verification. … Mock objects always use behavior verification, a stub can go either way. Meszaros refers to stubs that use behavior verification as a Test Spy. Martin Fowler, “Mocks Aren’t Stubs

ducking out of the way of an unintended “fork bomb”

If you’ve changed your .bashrc in such a way that it does this when you log in:

bash: fork: Resource temporarily unavailable

… then you can fix it like this:

$ exec mv .bashrc .bashrc.old

The back yard.

The back yard.

The cooling power of tziki sauce.

The cooling power of tziki sauce.

Rained out at New Smyrna Beach.

Rained out at New Smyrna Beach.

Fireworks barges on lake eola.

Fireworks barges on lake eola.

vim replace up to pattern

This replaces all text on each line up to the word “foo”:

:%s/.*\ze\<foo\>//
(via)

The big thing about the Web isn’t the technology, it’s that it’s the first-ever platform without a vendor Tim Bray
A wonderful view of the Charles from our corner suite.

A wonderful view of the Charles from our corner suite.