Sometimes when we pull from upstream origin in terminal, we see git prompting to enter vim. And if we left it hanging there and went ahead committing somewhere else, it would treat all those changes in master as your own contribution, because merge didn’t happen before commit.
$ git diff > file_name.diff
$ git apply file_name.diff
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
On mac, the key “D” opens the FileMerge compare automatically.
With the amount of documents that go in and out of my kindle, the documents folder is constantly left in a rumpled state–the book record
*.sdr files scatter all over the place. I wonder why the kindle system can’t just delete the record file when the book is deleted?
Finally I decided that I’ve had enough of deleting and wrote a ruby script to deal with the mess.
For one thing, Charles can’t be turned on before VPN. So closing VPN after turning on Charles won’t work either. Sometimes Charles doesn’t work with VPN at all.
First, if you already have another language under your belt, search “X Language for Y Language Developers”. If not, no worries, simply find out these things about the new language: