Category "macos"

Ruby On Rails - NoMethodError: undefined method `[]' for nil:NilClass

I'm trying to run on a new computer some ruby code and I receive the following error (rails db:migrate --trace) ** Invoke db:migrate (first_time) ** Invoke db:

FATAL: Failed to start gitlab-runner: "launchctl" failed with stderr: Load failed: 5: Input/output error

After installing and registering gitlab-runner, when I'm running gitlab-runner start I get this error message. What will be the reason for this ? Runtime platfo

reinstallimng Anaconda 3 on mac

I have been trying to reinstall Anaconda3 on my Macbook pro with no success. I keep getting this error: Anaconda3 is already installed in /opt/anaconda3. Use '

How to create a suffix alias for files without an extension?

I just found about zsh suffix aliases that allow one to associate a program with an extension in the shell: alias -s {md,txt}=nano Is there a way to do somethi

Using subprocess.check_output for a command with 2>/dev/null

I am on Mac OS X Yosemite 10.10 and Python 2.7. If I type the following: du -g -d1 /Users 2> /dev/null in the command line, everything works perfectly. No

TextField in Table behavior

I'm trying to use the new SwiftUI Table with TextField's in each row. However, the behavior of the text field's is weird, for 3 reasons: Clicking on a text fiel

Where is adb located when installing Unity and Android SDK for Mac?

I'm getting Android Build Failures and would like to locate adb to do some queries like adb devices but where is adb installed? I've already installed the Andro

Running C++ in Eclipse on MacOS

I am using Eclipse IDE for C/C++ Developer on Mac OS Sierra 10.12.6. When I build a project (HelloWorld Project) I see a message: "xcrun: error: invalid activ

How to open Visual Studio Code from the command line on OSX?

The docs mention an executable called code, but I'm not sure where I can find that so I can put it on my path. The zip I downloaded from the VSCode site did not

_cgo_export.c:3:10: fatal error: 'stdlib.h' file not found while running go test in VS Code after upgrading to mac OS Big Sur

I'm trying to learn select statements in go from learn go with tests. Just before this I upgraded macOS to Big Sur version 11.4. Now I'm trying to run the follo

How to create an alias in a shell to go to parent directories

I'm wondering how to create an alias with endless arguments for going parent directories without alias name! Currently I have written this function to achieve

How to create an alias in a shell to go to parent directories

I'm wondering how to create an alias with endless arguments for going parent directories without alias name! Currently I have written this function to achieve

How can I install emacs correctly on OS X?

I tried doing: brew install emacs --HEAD --use-git-head --with-cocoa --with-gnutls --with-rsvg --with-imagemagick But when I do emacs --version emacs --vers

Click through custom NSWindow

I have custom NSWindow with custom NSView set as its contentView. The window gets initialized with: [window setOpaque:NO]; [window setBackgroundColor: [NSColo

How do I implement a global keyboard hook using GTk2 C# Visual Studio on mac?

This is not a duplicate question. I have read lots of implementations of low level / global keyboard hooks using C# but none of them have yet provided a solutio

Could not find public_suffix-2.0.4 in any of the sources

It started when I tried to add the Google Tag Manager Gem to my local installation of Jekyll. A little background here, I'm using homebrew and rbenv. My r

On zipfile read of shapefile from URL, fault for initial value not str

Using Python 3.5, following example for reading shapefile zipfile from URL and updating for P3.5. Code is below. I've looked at other cases and attempted to a

What is the exit code of the MacOS /usr/bin/python3 stub?

If you run /usr/bin/python3 on a MacOS system that has yet to install the system python3 it pops up a dialog that says: "Xcode-select: note: no developer tools

How to update python 3.6 to 3.7 using Mac terminal

OK I was afraid to use the terminal, so I installed the python-3.7.2-macosx10.9 package downloaded from python.org Ran the certificate and shell profile scripts

Pygame/Python/Terminal/Mac related

I'm a beginner, I have really hit a brick wall, and would greatly appreciate any advice someone more advanced can offer. I have been having a number of extreme