Category "macos"

SwiftUI on macOS - handle single-click and double-click at the same time

Consider this view in SwiftUI: struct MyView: View { var body: some View { Rectangle() .fill(Color.blue) .frame(width: 200,

change web root apache mac OS X

I cant change my web root in apache, for some reason it points to /Sites/folder1/folder2 instead of it pointing to /Sites. I configured and change my apache &l

SwiftUI on macOS - handle single-click and double-click at the same time

Consider this view in SwiftUI: struct MyView: View { var body: some View { Rectangle() .fill(Color.blue) .frame(width: 200,

Maven Install on Mac OS X

I'm trying to install maven through the terminal by following these instructions. So far I got this: export M2_HOME=/user/apple/apache-maven-3.0.3 export M2=$M2

error from Transporter, "failed to get the app's bundle id"

I'm preparing an app for the Mac OS app store. The app is a package that consists of a precompiled binary and a bunch of configuration parameters embedded in i

Need a less repetitve way to start Rails on Mac

I've been on a Mac just over a month and before that I've been using Windows and wrote a .bat file to run a few other little .bat files to fire up MongoDB, guar

Fatal Error: Docker daemon failed to start with Docker Desktop

I'm on MacOS 12.1. I downloaded Docker Desktop from the Docker site, but when starting it, I always get the following error: level=error msg="Handler for GET /

Installing jdk17 on Mac with brew

I am trying to install jdk17 with brew, while also having java8, java11 and java16 installed. In order to install 8, 11 and 16 I ran: brew tap adoptopenjdk/open

CGEventPost fails to deliver keyboard events to another process under Catalina (Mac OSX 10.15)

We have a little QA helper program (called keysim) using CGEventCreateKeyboardEvent and CGEventPost to feed functions keys to the application under test. This d

Multi-line block select using the keyboard in IntelliJ IDEA on a Mac OS X

I've recently switched from Eclipse to IntelliJ IDEA 13. I use the VI keybindings. One non-vi thing I am used to doing in Eclipse is using Shift + ↑ / Sh

Can external multimedia files linked to pdf documents launch external applications in the macOS pdf-viewer Preview?

I have generated a beamer pdf containing a link to an external player in order to play a sound. I am opening it with the macOS pdf viewer preview and when I hov

Mac Apache web server won't start anymore and can't find any web directories

I'm on Mac Yosemite 10.10.5. Apache web server suddenly no longer starts. I tried changing the port to 8080. Also tried sudo apachectl stop and sudo apachectl s

-bash: emacs: command not found (after updating mac to CATALINA)

After updating my mac to CATALINA, I have been dealing with some issues, and one of them is the fact that I can't open EMACS on the terminal: -bash: emacs:

Jupyter Notebook didn't save for over a day. How can I recover lost work?

I've lost a day's work in Jupyter Notebook because it didn't autosave. As I was working, I would click on File > Save and Checkpoint to be safe. I closed the

Weird Android Emulator and Mac tap-to-click sensitivity issue

I'm experiencing a really weird and frustrating issue with the Android Emulator on macOS Monterey. I have "tap to click" enabled on my Macbook Pro (Mid 2015 15"

Where does ctypes LoadLibrary() search for libs on OS X?

Where does ctypes LoadLibrary() search for a shared lib on Mac OS X? This works: LoadLibrary("/full/path/to/my_library.dylib") However, LoadLibrary("my_li

How to tell if homebrew is installed on Mac OS X

I am doing some Rails programming and I consistently see Homebrew referenced in solutions around the web but have never used it. I also notice Homebrew in the

Error: caskroom/cask was moved. Tap homebrew/cask-cask instead

I try to go through installation process Github on MacOs Catalina The first step is to execute in Terminal: cd ~/ curl -s https://raw.githubusercontent.com/to

Mac Terminal Sending Email With Attachment

I'm trying to make a bash script that will send an email to all contacts which will contain a message and an attachment. This is not for malicious purposes. Ho

Locate the nginx.conf file my nginx is actually using

Working on a client's server where there are two different versions of nginx installed. I think one of them was installed with the brew package manager (its an