Copy & paste terminal output like a chump no longer!

run command_with_output | tee /path/to/destination/file.txt You’ll still get the output of your command to the terminal, but that output will also get piped into file.txt, thanks to the tee command. Pre-installed on OS X.

Aug 31, 2015 · Christopher Boette

Mike Heavers | code-item

var uniqueArray = duplicatesArray.filter(function(elem, pos) { return duplicatesArray.indexOf(elem) == pos; }); Lovely. [goto](http://mikeheavers.com/main/code-item/removing_duplicates_in_an_array_using_javascript)

Jul 26, 2015 · Christopher Boette

Web Design - The First 100 Years

“There is something quite colonial, too, about collecting data from users and repackaging it to sell back to them. I think of it as the White Nerd’s Burden.” [goto](http://idlewords.com/talks/web_design_first_100_years.htm)

Jul 23, 2015 · Christopher Boette

Three takeaways for web developers after two weeks of painfully slow internet

goto

Jul 12, 2015 · Christopher Boette

Too Many Content Requests

During a phone screen recently, the CTO of the company was going through my portfolio site. He checked the browser’s network console and noticed that the site — a page built with React components — was sending multiple requests a second for data from a JSON object [the object serves as the page’s datastore because spinning up a database in this instance would be overkill]. A learning moment! I revisited the React docs and the code for the components. With a better understanding of React, the issue was quickly apparent: every time the Dealer component was rendered, an AJAX request for data.json fired. Which, just to get static data, was a lot. ...

Jul 8, 2015 · Christopher Boette

Turn On or Off Color Syntax Highlighting In vi or vim Editor

Short version: once vim is running, hit the : key to get to the Action Line [as I’m now calling it] and type syntax on before hitting your enter key. A wonderful world of colors awaits you. [goto](http://www.cyberciti.biz/faq/turn-on-or-off-color-syntax-highlighting-in-vi-or-vim/)

Jul 5, 2015 · Christopher Boette

Photo for 2015-07-04

nowonlyghosts: sixpenceee: Margaret Hamilton is a computer scientist and mathematician. She was the lead software engineer for Project Apollo. Her work prevented an abort of the Apollo 11 moon landing. She’s also credited for coining the term “software engineer.” Those stacks are the code she wrote for Apollo 11. Incredible.

Jul 4, 2015 · Christopher Boette

Video for 2015-07-03

git clean Today, I’ve been trying out various Yeoman generators to kickstart a web app coding challenge. After manually deleting the generated files from the first generator I tested, I took a moment to look up a command that would quickly remove all of the untracked files in my working directory. git clean -di not only removes the untracked files [leaving the repo’s README.md untouched], but the -d flag also deletes untracked directories, while the -i flag does it all in interactive mode; it lists the files to be removed before asking me how to proceed. Easy peasy!

Jul 3, 2015 · Christopher Boette

SE Block Gets an Update

This week, I released an update to SE Block, the Chrome extension that removes some of the cruft from the otherwise-excellent Stack Exchange pages. I had initially struck upon the idea for the extension shortly after I started my last job. Spending a lot of time on Stack Overflow, I found myself getting distracted by whatever was trending on the rest of the network—analysis of characters in Gibson’s Bridge Trilogy? efforts to build supercapacitors using graphene sheets? mining the bowels of the English language to satisfy an itch for the perfect word choice? #relevant to this blog’s interests #productivity drain ...

Jun 28, 2015 · Christopher Boette

Video for 2015-06-28

Jun 28, 2015 · Christopher Boette