All posts

Fast translation with Google Translator

March 7, 2016

via https://medium.com/@mrdoro/fast-translation-with-google-translator-and-mac-osx-817e32233b7a


Nice article about how to create a service to automatically translate selected text from any application. I use this all the time, I have a “German-to-English” service bound to Command-Alt-Ctrl-Shift-E, so I can just select text off the screen, press the shortcut, and a window with the translation will pop up. Very handy.

Clicking on the MacBook Pro is entirely artificial

October 13, 2015

via http://sixcolors.com/post/2015/10/apple-magic-trackpad-2-review/

This is probably old news for most, but it still blew my mind: only now I realized that the clicking feeling and sound on my MacBook Pro’s trackpad is artificially generated. I did the experiment of turning on “Silent clicking” and turning off “Force click and haptic feedback” on the trackpad preferences panel and, indeed, the clicking is gone. Wow (/ht @jsnell)

To aid in the process, the Magic Trackpad apparently even generates its own artificial clicking noise (as the Force Touch trackpads in the MacBook and MacBook Pro do). If you think that’s weird, you can enable Silent Clicking in the Trackpad system preferences pane, and the artificial sound will shut off. (There’s still a sound when you click, though, thanks to the vibration—but it’s much subtler.)

As on the MacBook, it’s kind of hard to believe that the Magic Trackpad 2 isn’t actually clicking when you push down. The glass does flex with the pressure a little bit, but that clicking feeling is entirely artificial.

Using Multiple SSH Keys with Github

May 20, 2015

via http://www.freshblurbs.com/blog/2013/06/22/github-multiple-ssh-keys.html#tldr


Since Github doesn't allow us to reuse an SSH Key, the only sane solution is to jump through some hoops and generate + use multiple keys on the server itself. Let's look at some effective approaches of doing that.

Short version: define multiple hosts in the SSH config file for each repository, which use different SSH keys, then you can assign different deploy keys to each repo. But read the whole article for the full details.

image from The log: The lifeblood of your data pipeline - O'Reilly Radar

The log: The lifeblood of your data pipeline - O'Reilly Radar

April 30, 2015

via http://radar.oreilly.com/2015/04/the-log-the-lifeblood-of-your-data-pipeline.html

Interesting article. I hadn’t heard of Fluentd, looks useful.

oreilly_radar_fluentd_1
The old paradigm — machines to humans, and the new — machines to machines. Image courtesy of Kiyoto Tamura.
Over the last decade, the primary consumer of log data shifted from humans to machines.
Software engineers still read logs, especially when their software behaves in an unexpected manner. However, in terms of “bytes processed,” humans account for a tiny fraction of the total consumption.

Moving files between git repositories, preserving history

April 17, 2015

I needed to copy a directory between two git repositories while preserving its history. I found some good instructions at http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/, which got me started, but I figured out a way to avoid having to move all the files into their directory again (lines 5-6 in Greg’s instructions) by reversing the filter to remove everything I don’t want instead of only including the directory I want. Here are the steps (the idea is the same as in Greg’s post, so please read that to get the explanation, I’m only listing the commands here for reference):