That was a very vague error message when installing certain gems. What we need to do is:
Error: listen EADDRINUSE :::3042
We just need to kill whatever that’s on the port. Probably the last exit wasn’t clean. Do:
$ lsof -i :3000 // to find out the PID number $ kill -9
// kill the process with its PID
Just reclaim ownership of the untamed parent directory, instead of
sudo-ing every single time.
Because of my use of VIM, ESC is much more useful to me than the more easily accessible CapsLock. I’ve always used Seil to switch them, until it started to fail in the new MacOS, Sierra.
After a bit of search, Karabiner solved my problem wonderfully.
Sometimes it’s because Chrome is in the middle of an update. Even if it doesn’t prompt for restart, go to chrome://help/ and manually restart from there. Simply quitting Chrome and restarting the app might not work.
OS X provides a pretty handy way of combining PDFs in Preview. Go Menu -> View -> Contact Sheet with both files, and drag additional PDF pages onto the first one. However, sometimes it just doesn’t seem to work.
Many times it’s due to DNS settings.
What we want to achieve:
- one click create a working version of rails project on DigitalOcean
- set up a local working version of the project
- set up remote & local git repo so we could push to update remote rails project folder
- and deploy automatically with push
In Yosemite and El Capitan, go to System Preferences -> General. You’ll find the default browser preference there.
In older version of OS X this setting is in Safari’s Preference, under General tab.
git branch -vv shows that my local
develop branch is tracking the remote
fix/some-bug branch. However, a
git push command pushed my commits to the remote