118,560 questions
3513
votes
40
answers
1.5m
views
Git is not working after macOS update ("xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools") [closed]
I updated to the latest OS, and/or restarted my computer (this happens on every major update, but this time all I did was restart my computer on 2022-09-13).
This morning I navigated to my work's ...
3185
votes
40
answers
5.2m
views
Find (and kill) processes listening to port 3000 on Mac [closed]
How do I manually find (and kill) process using the terminal that listen to/use my TCP ports? I'm on macOS.
Sometimes, after a crash or bug, my Rails app gets locked to port 3000, and I can't find it ...
2213
votes
19
answers
2.0m
views
Who is listening on a given TCP port on Mac OS X? [closed]
On Linux, I can use netstat -pntl | grep $PORT or fuser -n tcp $PORT to find out which process (PID) is listening on the specified TCP port. How do I get the same information on Mac OS X?
1841
votes
32
answers
1.3m
views
How can I Remove .DS_Store files from a Git repository?
How can I remove those annoying Mac OS X .DS_Store files from a Git repository?
1671
votes
21
answers
3.2m
views
How do I install pip on macOS or OS X?
I spent most of the day yesterday searching for a clear answer for installing pip (package manager for Python). I can't find a good solution.
How do I install it?
1428
votes
35
answers
1.6m
views
"code ." is not working in on the command line for Visual Studio Code on OS X/Mac
The command code . doesn't work in this manual.
All the other steps before that worked. How can I call the Visual Studio Code in an OS X terminal?
pwd
/Users/mona/nodejs/myExpressApp
code .
-bash: ...
1419
votes
39
answers
1.9m
views
How to set or change the default Java (JDK) version on macOS? [duplicate]
How can you change the default version of Java on a mac?
1413
votes
37
answers
527k
views
How can I check for an active Internet connection on iOS or macOS?
I would like to check to see if I have an Internet connection on iOS using the Cocoa Touch libraries or on macOS using the Cocoa libraries.
I came up with a way to do this using an NSURL. The way I ...
1334
votes
82
answers
1.0m
views
Xcode - How to fix 'NSUnknownKeyException', Reason: "… this class is not key value coding-compliant for the key X" error?
I'm trying to link a UILabel with an IBOutlet created in my class.
My application is crashing with the following error"
***
Terminating app due to uncaught exception
'NSUnknownKeyException', ...
1327
votes
32
answers
878k
views
Pipe to/from the clipboard in a Bash script [closed]
Is it possible to pipe to/from the clipboard in Bash?
Whether it is piping to/from a device handle or using an auxiliary application, I can't find anything.
For example, if /dev/clip was a device ...
1296
votes
35
answers
1.4m
views
How to install Java 8 on Mac
Editors note: This question was asked in 2014, and the answers may be outdated.
I want to do some programming with the latest JavaFX, which requires Java 8. I'm using IntelliJ 13 CE and Mac OS X 9 ...
1201
votes
39
answers
1.3m
views
How can I start PostgreSQL server on Mac OS X?
Final update:
I had forgotten to run the initdb command.
By running this command
ps auxwww | grep postgres
I see that postgres is not running
> ps auxwww | grep postgres
remcat 1789 0....
1087
votes
30
answers
747k
views
xcode-select active developer directory error
Saw the following error when running an npm install which required node-gyp... but could be triggered by anything which requires xcode-select.
xcode-select: error: tool 'xcodebuild' requires Xcode, ...
1075
votes
32
answers
1.3m
views
Upgrade Node.js to the latest version on Mac OS
Currently I am using Node.js v0.6.16 on Mac OS X 10.7.4. Now I want to upgrade it to the latest Node.js v0.8.1. But after downloading and installing the latest package file from nodejs.org, I found ...
1024
votes
36
answers
1.6m
views
How do I update the password for Git?
I'm using BitBucket with Xcode and Git for version control, and recently I changed all of my passwords (thanks Adobe!).
Unsurprisingly, I'm no longer able to push my local commits to my repository on ...