text:
Failed attempt to make a partition - other disk partitions take negative space
I have a 13-inch 2015 model Macbook Pro that has macOS High Sierra 10.13.3 installed on it and I was going to install Windows 8.1 manually since Bootcamp assistant failed. What I did was going to disk utility and creating a partition. It failed with the APFS error 49153 and my left space in Disk Utility immediately turned gray, which is the color for "Other Disk Partitions". I thought it was a temporary problem so I restarted Disk Utility, but it stayed the same. I then realized right under "Other Disk Partitions", it said -578,1MB, which is definitely not right. I am not sure what to do right now, and I am afraid to shut down my computer as it might not boot again. Is there any way to fix this?

After a solid hour it is magically fixed, I guess I needed to wait. Shall I leave this question open or delete it?

where you able to install windows? I tried downloading windows 10 through bootcamp, but it failed. Bootcamp failed to partition disk. Tried partitioning disk manually using utility disk app and got error 49187 which users on apple support don't even have said error code on their list yet.

@AldinGod-SunMendoza Please ask a new question if you have a different question.


text:
macOS High Sierra not trying other DNS servers
On one of my laptops which is running macOS High Sierra, is failing to resolve hostnames. I have specified two DNS servers in my network settings. One is an internal DNS server, and the other is 8.8.8.8. When I try to resolve local hostnames that the internal DNS knows, it resolves properly. But when I try to resolve something like google.com it fails.
I see that it tries to use the internal DNS server first, and since it doesn't know the hostname, I thought it would try to use 8.8.8.8 to resolve the hostname, but it never tries the other DNS server.
When I try this from my other laptop, it works properly i see
$>nslookup google.com
;; Got SERVFAIL reply from <internal dns>, trying next server
Server:     8.8.8.8
Address:    8.8.8.8#53

Non-authoritative answer:
Name:   google.com
Address: 172.217.5.110

But from the one where it doesn't I see
$>nslookup google.com
Server:        <internal dns>
Address:    <internal dns>#53

** server can’t find google.com: SERVFAIL

There is no attempt to try the 8.8.8.8 DNS server. Why is that happening? How can I get it to try the other DNS server if it fails with one.

First: nslookup does not use the system DNS resolver, and does not behave the same way that the system resolver does. Neither do dig or host, so none of these tools are useful for checking how macOS resolves names. If you want to use the system resolver, use dscacheutil -q host -a name google.com, but note that it uses the entire resolution system -- it looks in the local cache, /etc/hosts, mDNS (for .local names), and then DNS. Oh, and the man page for dscacheutil claims it can flush the DNS cache, but it doesn't work; use sudo killall mDNSResponder instead.
Second: the system resolver does not do a good (or even adequate) job of failing over between DNS servers. If you list multiple servers, it'll fire off queries to all of them in a sort of randomized-round-robin fashion. If it doesn't get a response, it'll eventually time out and try the other one. If it gets a "that doesn't exist" response, it assumes that's correct and doesn't try any other server. As a result, you really need a single server that can answer all queries, both internal and external.
Ok, there's one possible workaround: you can point your system at a public DNS server, then create /etc/resolver/ and put files in it to redirect queries for certain domains to your internal server. Provided you know what domains to redirect, that is. See Apple.SE: "Do /etc/resolver/ files work in Mountain Lion for DNS resolution?".

source: Stack Exchange

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/

sort: votes


text:
Send all notifications all the time
I just realised someone sent me an email 6 hours ago. This was an important mail.
I think I was watching a full-screen video in Safari at the time.
Does macOS block notifications when you are watching films? I've noticed this problem before, maybe I'm off the mark but missing notifications has become a problem as of late.
How can I make sure I'm getting all notifications (specifically Discord and Mail.app)

If you go to Notifications in System Preferences you can access the notification settings. Each individual app can have the style of notification changed, as well as some other settings. You can also set the Do Not Disturb hours and settings, which will prevent notifications from displaying.

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/


text:
Select and copy part of the text from a link in Safari
How can I copy only a section of text from a hyper link?
As in, if there is a link like below, how can I copy only  a part of the text that is linked?

Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation.

I want to copy only the "nothing particular" words from the above text.
How could I do that?
On Chrome I had an extension that let me select links like normal text by holding shift.
I hope there is a similar way for me to select the text of a link in Safari.

I started using Tampermonkey so ported my tiny extension to a user script:
// ==UserScript==
// @name         Shift to select link text
// @version      1.0
// @description  Hold down the shift key to select text from within hyperlinks
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
  'use strict';

  function bindNewAnchor(element) {
    element.addEventListener("mouseenter", function(event) {
      if (element.innerText) {
        if (event.shiftKey) setContenteditable(this);
        currentElement = this;
      }
    });
    element.addEventListener('keydown', function (event) {
      if (event.keyCode == 67 && event.metaKey) {
        document.execCommand('copy');
      }
    });
    element.addEventListener("mouseleave", function(event) {
      this.removeAttribute("contenteditable");
      currentElement = null;
    });
    element.addEventListener("keypress", blockEvent);
    element.addEventListener("paste", blockEvent);
    element.addEventListener("cut", blockEvent);
    allNodes.push(element);
  }

  function blockEvent(event) {
    event.preventDefault();
  }

  function setContenteditable(element) {
    element.setAttribute("contenteditable", "true");
    if (window.getComputedStyle(element, null).outlineWidth == "0px") {
      element.style.outlineWidth = "0px";
    }
  }

  var currentElement = null, allNodes = [];

  addEventListener("DOMNodeInserted", function(event) {
    if (allNodes.indexOf(event.target) == -1 && event.target instanceof HTMLAnchorElement) {
      bindNewAnchor(event.target);
    }
    if (event.target.querySelectorAll) {
      var element = event.target.querySelectorAll("a");
      for (var i = 0; i < element.length; i++) {
        if (0 > allNodes.indexOf(element[i])) bindNewAnchor(element[i]);
      }
    }
  });

  for (var elements = document.querySelectorAll("a"), i = 0; i < elements.length; i++) bindNewAnchor(elements[i]);

  window.addEventListener("keydown", function(event) {
    if (currentElement && event.keyCode == 16) {
      setContenteditable(currentElement);
    }
  });
})();

Hold shift and drag over links to select them.

If you used the Option ⌥ instead this would bring it up to par with Chrome and Firefox (and Alt on Windows, Super+Alt on Linux).

Just change event.keyCode == 16 to event.keyCode == 18 to use the Option key. (also, probably obvious, but you can use the Safari free Userscripts ext with his same code too)

In Safari this is not directly possible and I do not know a special extension for that.
A workaround:
start selecting the text behind "circulation",
stop at "nothing", (that selects as plain text and starts your selection  at the relevant bit)
now cmd+c
paste where you like
jump to beginning of paragraph
jump two words forward
delete the rest (quick way for that, just not on SE: ctrl+k or cmdshift+arrows)

Easiest way is to just copy the whole thing, paste it into a TextEdit document, convert to plain text, and then copy out exactly what you want.

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/


text:
Keyboard shortcut flip screen
How can I create a keyboard shortcut that flips my screen upside down?
I know how to enable this setting in System Preferences but I want to be able to bind it to a shortcut.
Is it possible to make the same keyboard shortcut revert the display back to normal orientation?

Just an FYI, I have built out a macOS 10.13.3 system and tested the example AppleScript code and it works as is on my system. You can reread my updated answer and see if you can get it to work on your system. If by chance it doesn't, then you need to add a screen shot of System Preferences > Displays > Display so I can at least see what the difference between your system and mine is.

Well it's quite obvious why the script is not working for you as there is no "Rotation:" pop up button on the Display tab shown in the image you just added to the OP. So according to the image you added, rotating the Display is not an available option for you! That said, if you have the ability to rotate the Display you'll need to add the particulars of you hardware configuration and how you are actually rotating the Display. Otherwise there is not enough information to provide an alternative answer then the one I have which works by default in macOS for me as I have stated.

@user3439894 I can cmd+alt click on the display option and it shows me rotation options

I thought that was normal for everyone, I've never heard of anyone being shown it without cmd alt clicking

Well for me it shows automatically, probably because I'm using a Thunderbolt display. Let me do some testing an I'll get back to you.

Okay, I've looked at my 10.13.3 build again and because the Rotation: pop up button shows by default on my system, and not on yours, you'll need to modify the example AppleScript code provided in my answer to accommodate your scenario. This means sending the keystrokes necessary to expose the Rotation: pop up button prior to tell pop up button "Rotation:" ... and this may  also require exposing the UI, so an activate command might need to be added after the reveal command. This might also necessitate the use of a third-party utility if native actions fail.

Since, at the present time, I cannot replicate your scenario I'm afraid that's all I can offer at the moment. I will do a clean build tomorrow and see if there is any difference on my system then, however I'm not hopeful. Try using key code 58 using command down and may be a delay 0.25 after and add this before the tell pop up button "Rotation:" ... command.

I wrote a program named displayplacer that makes this easy to do via a terminal command. You could bind this to a keyboard shortcut with a program like BetterTouchTool or maybe Automator. Works with all macOS versions above 10.6.
Example to flip 180: displayplacer 'id:123467890 res:1920x1200 scaling:off origin:(0,0) degree:180'
Example to flip 0: displayplacer 'id:123467890 res:1920x1200 scaling:off origin:(0,0) degree:0'

what's id for?

Each display has a unique ID. For example, if you have 2 monitors you'll specify that one gets rotated and the other does not. Note, displayplacer currently doesn't work well when you specify for the changes for less than all monitors plugged in. I'll be enhancing this soon.
I recommend downloading the latest displayplacer binary from the repo (not the releases tab) and executing displayplacer list. At the bottom of the output you'll see your current "profile" which represents how your monitors are currently laid out. Edit this to your liking.

Glad to hear my answer helped! Upon viewing this page it is now the first answer shown.

This is an awesome piece of software that is able to store fully specified configuration in a command line invocation.  It helpfully suggest the command to replicate the current settings (use displayplayer list).
You had me at "Essentially XRandR for macOS."  :-)

The following has been tested under macOS Sierra 10.12.5 and macOS High Sierra 10.13.3, and works without any issue on my system.
Using the example AppleScript code, from my original answer, saved as an AppleScript application named Flip Display 180° and added to System Preferences > Security & Privacy > Privacy > Accessibility, so as to allow it to process the code, I then used an Automator service workflow, also named Flip Display 180°, to open the AppleScript application of the same name, while assigning the following keyboard shortcut:  ⇧⌃⌘R

Note that the keyboard shortcut ⇧⌃⌘F, which worked under OS X 10.8.5, conflicted with a system default keyboard shortcut under macOS 10.12.5, macOS 10.13.3 and why I changed it. You may have to use a different keyboard shortcut and as usual you have to choose one that isn't already assigned in any application that has focus when pressed to activate this Automator service workflow.

I also ran the following command, in Terminal, so as not to show the Dock Tile for the AppleScript application on the Dock:
  defaults write '/Applications/Flip Display 180°.app/Contents/Info.plist' LSUIElement -bool yes

That said, if the UI for Displays in System Preferences in macOS High Sierra on your system different for some undisclosed reason then the example AppleScript code will need to be modified to accommodate the the differences between what works on my system and yours. If it does need to be modified, I'd imagine it wouldn't be that hard to figure out.

The following images show the relevant details:
System Preferences > Displays > Display, as shown on my system:

AppleScript application, named Flip Display 180°:

Automator service workflow, also named Flip Display 180°:
Code: open -a 'Flip Display 180°'

System Preferences > Security & Privacy > Privacy > Accessibility:

System Preferences > Keyboard > Shortcuts > Services > General > Flip Display 180°

For the time being I'm leaving my original answer at the bottom portion of this answer as it does work as stated under OS X 10.8.6 and may be beneficial for other users.
Original Answer:
I know you are using macOS High Sierra and maybe you can use what works for me under OS X 10.8.6.
The following example AppleScript code used in a Run AppleScript action in an Automator service workflow flips the Display 180° when I press: ⇧⌃⌘F
if running of application "System Preferences" then
    quit application "System Preferences"
    delay 1
end if

tell application "System Preferences"
    reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
    delay 1
    tell application "System Events"
        tell pop up button "Rotation:" of tab group 1 of window 1 of application process "System Preferences"
            if (value) contains "Standard" then
                click
                click menu item "180°" of menu 1
                my clickConfirmButton()
            else
                click
                click menu item "Standard" of menu 1
            end if
        end tell
    end tell
    quit
end tell

on clickConfirmButton()
    set wasClicked to false
    repeat until wasClicked
        delay 0.5
        tell application "System Events"
            try
                click button "Confirm" of sheet 1 of window 1 of application process "System Preferences"
                set wasClicked to true
            end try
        end tell
    end repeat
end clickConfirmButton

Note that the value of the delay commands may need to be adjusted for your system, and or additional delay commands may or may not be needed. Adjust values of and or add/remove the delay commands as appropriate.

Note: The example AppleScript code is just that and does not employ any other error handling then what's shown and is meant only to show one of many ways to accomplish a task. The onus is always upon the User to add/use appropriate error handling as needed/wanted.

Automator service workflow:

Your script still doesn't work for me, "System Events got an error: Can’t get pop up button "Rotation:" of tab group 1 of window 1 of application process "System Preferences"."

Thank you, the script works wonder! I pasted it in Better Touch Tool to trigger it with a trackpad gesture.

This script has tested on macos 10.14 for Chinese users.
If you're using other language, please modify the button name to your language.
In script "LG Ultra HD" means your monitor's name, this is useful if you have more than 2 monitors, otherwise, you can replace (first window whose name is "LG Ultra HD") by window 1
if running of application "System Preferences" then
    quit application "System Preferences"
    delay 1
end if

tell application "System Preferences"
    reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
    delay 1
    tell application "System Events"
        tell pop up button "旋转：" of tab group 1 of (first window whose name is "LG Ultra HD") of application process "System Preferences"
            if (value) contains "标准" then
                click
                click menu item "270°" of menu 1
                my clickConfirmButton()
            else
                click
                click menu item "标准" of menu 1
            end if
        end tell
    end tell
    quit
end tell

on clickConfirmButton()
    set wasClicked to false
    set i to 10
    repeat until wasClicked or i ≤ 0
        delay 0.5
        tell application "System Events"
            try
                click button "确认" of sheet 1 of (first window whose name is "LG Ultra HD") of application process "System Preferences"
                set wasClicked to true
            end try
        end tell
        set i to i - 1
    end repeat
end clickConfirmButton

Could you provide a hint what those buttons mean in English? (You could create an additional account on your Mac, select English as main language and check what the button text is in English). It would make your answer much more useful.

"旋转" means "Rotation"
"标准" means "Standard"
"确认" means "Confirm"

I have taken user3439894's solution and modified it a bit.
The following script is a massive hack, but the general idea is sometimes the rotation tab is window 1 and sometimes it is window 2. To solve this I used a try catch block that will just try the first one and if it errors it will also try the second one. Feel free to improve this script, but I just wanted something that works.
if running of application "System Preferences" then
    quit application "System Preferences"
    delay 1
end if

tell application "System Preferences"
    reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
    delay 1
    tell application "System Events"
        try
            tell pop up button "Rotation:" of tab group 1 of window 2 of application process "System Preferences"
                if (value) contains "Standard" then
                    click
                    click menu item "270°" of menu 1
                    my clickConfirmButton()
                else
                    click
                    click menu item "Standard" of menu 1
                end if
            end tell
        on error errMsg
            tell pop up button "Rotation:" of tab group 1 of window 1 of application process "System Preferences"
                if (value) contains "Standard" then
                    click
                    click menu item "270°" of menu 1
                    my clickConfirmButton()
                else
                    click
                    click menu item "Standard" of menu 1
                end if
            end tell
        end try
    end tell
    quit
end tell

on clickConfirmButton()
    set wasClicked to false
    repeat until wasClicked
        delay 0.5
        tell application "System Events"
            try
                click button "Confirm" of sheet 1 of window 1 of application process "System Preferences"
                set wasClicked to true
            end try
        end tell
    end repeat
end clickConfirmButton

Cheers for doing 99% of the work user3439894

Tested on macOS 11.3 Big Sur.
Based on @Vxider's solution, with menu items translated to English.
You'll need to change both occurrences of "LG HDR 4K" to match the name of your monitor, as presented in the System Preferences window:

if running of application "System Preferences" then
  quit application "System Preferences"
  delay 1
end if

tell application "System Preferences"
  reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
  delay 1
  tell application "System Events"
    tell pop up button "Rotation:" of tab group 1 of (first window whose name is "LG HDR 4K") of application process "System Preferences"
      if (value) contains "Standard" then
        click
        click menu item "90°" of menu 1
        my clickConfirmButton()
      else
        click
        click menu item "Standard" of menu 1
      end if
    end tell
  end tell
  quit
end tell

on clickConfirmButton()
  set wasClicked to false
  set i to 10
  repeat until wasClicked or i ≤ 0
    delay 0.5
    tell application "System Events"
      try
        click button "Confirm" of sheet 1 of (first window whose name is "LG HDR 4K") of application process "System Preferences"
        set wasClicked to true
      end try
    end tell
    set i to i - 1
  end repeat
end clickConfirmButton

Based on previous solutions, I adapted the script to macOS Monterey. It works fine with my macOS 12.3.1. Enjoy it.
if running of application "System Preferences" then
    quit application "System Preferences"
    delay 1
end if

tell application "System Preferences"
    activate
    reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
    delay 1
    (*set current pane to pane id "com.apple.preference.displays"*)
    delay 1
    tell application "System Events"
        tell pop up button "Rotation:" of group 1 of window 1 of application process "System Preferences"
            if (value) contains "90°" then
                delay 1
                click
                click menu item "Standard" of menu 1
                delay 3
                display notification "Rotated to Landscape mode"

                (*my clickConfirmButton()*)
            else
                delay 1
                click
                click menu item "90°" of menu 1
                delay 5
                display notification "Rotated to Portrait mode"
                my clickConfirmButton()
                delay 2
            end if
        end tell
    end tell
    quit application "System Preferences"
end tell

on clickConfirmButton()
    set wasClicked to false
    set i to 10
    repeat until wasClicked or i ≤ 0
        delay 0.5
        tell application "System Events"
            try
                click button "Confirm" of sheet 1 of (first window whose name is "Displays") of application process "System Preferences"
                set wasClicked to true
            end try
        end tell
        set i to i - 1
    end repeat
end clickConfirmButton


text:
How to remove tripmode's kernel module?
A while back I checked out the application Tripmode when I was using a free trial of Setapp (its like Netflix but for Mac Apps), I removed Tripmode however I've noticed the kernel module persists and would like to remove it.
The kextstat utility reveals the following:
   168    0 0xffffff7f85da8000 0x7000     0x7000
 ch.tripmode.TripModeNKE (2.0.0) D637B8E3-E64B-3C60-9D43-87F8583B05AC
 <5 4 1>

A list of the kernel module system directory shows the following.
Nathaniels-MacBook-Pro% pwd
/System/Library/Extensions

Nathaniels-MacBook-Pro% ls -a
.
..
ALF.kext
AMD10000Controller.kext
AMD2400Controller.kext
AMD2600Controller.kext
AMD3800Controller.kext
AMD4600Controller.kext
AMD4800Controller.kext
AMD5000Controller.kext
AMD6000Controller.kext
AMD7000Controller.kext
AMD8000Controller.kext
AMD9000Controller.kext
AMD9300Controller.kext
AMD9500Controller.kext
AMD9510Controller.kext
AMD9515Controller.kext
AMD9520Controller.kext
AMDFramebuffer.kext
AMDLegacyFramebuffer.kext
AMDLegacySupport.kext
AMDMTLBronzeDriver.bundle
AMDRadeonVADriver.bundle
AMDRadeonVADriver2.bundle
AMDRadeonX3000.kext
AMDRadeonX3000GLDriver.bundle
AMDRadeonX4000.kext
AMDRadeonX4000GLDriver.bundle
AMDRadeonX4000HWServices.kext
AMDRadeonX4100.kext
AMDRadeonX4150.kext
AMDRadeonX4200.kext
AMDRadeonX4250.kext
AMDRadeonX5000.kext
AMDRadeonX5000GLDriver.bundle
AMDRadeonX5000HWServices.kext
AMDRadeonX5000MTLDriver.bundle
AMDRadeonX5000Shared.bundle
AMDShared.bundle
AMDSupport.kext
ATIRadeonX2000.kext
ATIRadeonX2000GA.plugin
ATIRadeonX2000GLDriver.bundle
ATIRadeonX2000VADriver.bundle
AirPortBrcmNIC-MFG.kext
Apple16X50Serial.kext
AppleACPIPlatform.kext
AppleAHCIPort.kext
AppleAPIC.kext
AppleActuatorDriver.kext
AppleBacklight.kext
AppleBacklightExpert.kext
AppleBluetoothMultitouch.kext
AppleBluetoothRemote.kext
AppleBusPowerController.kext
AppleCameraInterface.kext
AppleCredentialManager.kext
AppleEFIRuntime.kext
AppleEffaceableNOR.kext
AppleEffaceableStorage.kext
AppleEmbeddedOSSupportHost.kext
AppleFDEKeyStore.kext
AppleFIVRDriver.kext
AppleFSCompressionTypeDataless.kext
AppleFSCompressionTypeZlib.kext
AppleFWAudio.kext
AppleFileSystemDriver.kext
AppleGFXHDA.kext
AppleGraphicsControl.kext
AppleGraphicsPowerManagement.kext
AppleHDA.kext
AppleHIDALSService.kext
AppleHIDKeyboard.kext
AppleHIDMouse.kext
AppleHPET.kext
AppleHPM.kext
AppleHSSPIHIDDriver.kext
AppleHSSPISupport.kext
AppleHV.kext
AppleHWSensor.kext
AppleIRController.kext
AppleInputDeviceSupport.kext
AppleIntelBDWGraphics.kext
AppleIntelBDWGraphicsFramebuffer.kext
AppleIntelBDWGraphicsGLDriver.bundle
AppleIntelBDWGraphicsMTLDriver.bundle
AppleIntelBDWGraphicsVADriver.bundle
AppleIntelBDWGraphicsVAME.bundle
AppleIntelCPUPowerManagement.kext
AppleIntelCPUPowerManagementClient.kext
AppleIntelFramebufferAzul.kext
AppleIntelFramebufferCapri.kext
AppleIntelGraphicsShared.bundle
AppleIntelHD3000Graphics.kext
AppleIntelHD3000GraphicsGA.plugin
AppleIntelHD3000GraphicsGLDriver.bundle
AppleIntelHD3000GraphicsVADriver.bundle
AppleIntelHD4000Graphics.kext
AppleIntelHD4000GraphicsGLDriver.bundle
AppleIntelHD4000GraphicsMTLDriver.bundle
AppleIntelHD4000GraphicsVADriver.bundle
AppleIntelHD5000Graphics.kext
AppleIntelHD5000GraphicsGLDriver.bundle
AppleIntelHD5000GraphicsMTLDriver.bundle
AppleIntelHD5000GraphicsVADriver.bundle
AppleIntelHDGraphics.kext
AppleIntelHDGraphicsFB.kext
AppleIntelHDGraphicsGA.plugin
AppleIntelHDGraphicsGLDriver.bundle
AppleIntelHDGraphicsVADriver.bundle
AppleIntelHSWVA.bundle
AppleIntelIVBVA.bundle
AppleIntelKBLGraphics.kext
AppleIntelKBLGraphicsFramebuffer.kext
AppleIntelKBLGraphicsGLDriver.bundle
AppleIntelKBLGraphicsMTLDriver.bundle
AppleIntelKBLGraphicsVADriver.bundle
AppleIntelKBLGraphicsVAME.bundle
AppleIntelLpssDmac.kext
AppleIntelLpssGspi.kext
AppleIntelLpssI2C.kext
AppleIntelLpssI2CController.kext
AppleIntelLpssSpiController.kext
AppleIntelLpssUARTCommon.kext
AppleIntelLpssUARTv0.kext
AppleIntelLpssUARTv1.kext
AppleIntelMCEReporter.kext
AppleIntelPCHPMC.kext
AppleIntelSKLGraphics.kext
AppleIntelSKLGraphicsFramebuffer.kext
AppleIntelSKLGraphicsGLDriver.bundle
AppleIntelSKLGraphicsMTLDriver.bundle
AppleIntelSKLGraphicsVADriver.bundle
AppleIntelSKLGraphicsVAME.bundle
AppleIntelSNBGraphicsFB.kext
AppleIntelSNBVA.bundle
AppleIntelSlowAdaptiveClocking.kext
AppleKextExcludeList.kext
AppleKeyStore.kext
AppleLPC.kext
AppleLSIFusionMPT.kext
AppleMCCSControl.kext
AppleMCP89RootPortPM.kext
AppleMIDIBluetoothDriver.plugin
AppleMIDIFWDriver.plugin
AppleMIDIIACDriver.plugin
AppleMIDIRTPDriver.plugin
AppleMIDIUSBDriver.plugin
AppleMatch.kext
AppleMikeyHIDDriver.kext
AppleMobileDevice.kext
AppleMobileFileIntegrity.kext
AppleMultitouchDriver.kext
AppleOSXUSBNCM.kext
AppleOSXWatchdog.kext
AppleOnboardSerial.kext
ApplePlatformEnabler.kext
AppleRAID.kext
AppleRAIDCard.kext
AppleRTC.kext
AppleSDXC.kext
AppleSEPManager.kext
AppleSMBIOS.kext
AppleSMBusController.kext
AppleSMBusPCI.kext
AppleSMC.kext
AppleSMCLMU.kext
AppleSMCRTC.kext
AppleSRP.kext
AppleSSE.kext
AppleSmartBatteryManager.kext
AppleStorageDrivers.kext
AppleThunderboltDPAdapters.kext
AppleThunderboltEDMService.kext
AppleThunderboltIP.kext
AppleThunderboltNHI.kext
AppleThunderboltPCIAdapters.kext
AppleThunderboltUTDM.kext
AppleTopCase.kext
AppleTyMCEDriver.kext
AppleUSBACM.kext
AppleUSBAudio.kext
AppleUSBCDC.kext
AppleUSBCommon.kext
AppleUSBDMM.kext
AppleUSBDisplays.kext
AppleUSBECM.kext
AppleUSBEEM.kext
AppleUSBEthernet.kext
AppleUSBEthernetHost.kext
AppleUSBFTDI.kext
AppleUSBMultitouch.kext
AppleUSBNCM.kext
AppleUSBNetworking.kext
AppleUSBSerial.kext
AppleUSBTopCase.kext
AppleUSBWCM.kext
AppleUSBiBridge.kext
AppleUpstreamUserClient.kext
AppleVADriver.bundle
AppleWWANAutoEject.kext
AppleXsanScheme.kext
Apple_iSight.kext
AudioAUUC.kext
BootCache.kext
BridgeAudioCommunication.kext
BridgeAudioController.kext
CellPhoneHelper.kext
CoreStorage.kext
CyProtectDrvOSX.kext
DSACL.ppp
DSAuth.ppp
DVFamily.bundle
Dont Steal Mac OS X.kext
EAP-KRB.ppp
EAP-RSA.ppp
EAP-TLS.ppp
GeForce.kext
GeForceAIRPlugin.bundle
GeForceGA.bundle
GeForceGLDriver.bundle
GeForceMTLDriver.bundle
GeForceTesla.kext
GeForceTeslaGLDriver.bundle
GeForceTeslaVADriver.bundle
GeForceVADriver.bundle
HFS.kext
HFSEncodings.kext
IO80211Family.kext
IO80211FamilyV2.kext
IOACPIFamily.kext
IOAHCIFamily.kext
IOATAFamily.kext
IOAVBFamily.kext
IOAccelerator2D.plugin
IOAcceleratorFamily2.kext
IOAudioFamily.kext
IOBDStorageFamily.kext
IOBluetoothFamily.kext
IOBluetoothHIDDriver.kext
IOBufferCopyController.kext
IOBufferCopyEngineFamily.kext
IOBufferCopyEngineTest.kext
IOCDStorageFamily.kext
IODVDStorageFamily.kext
IOFireWireAVC.kext
IOFireWireFamily.kext
IOFireWireIP.kext
IOFireWireSBP2.kext
IOFireWireSerialBusProtocolTransport.kext
IOGraphicsFamily.kext
IOHDIXController.kext
IOHIDFamily.kext
IOImageLoader.kext
IONDRVSupport.kext
IONVMeFamily.kext
IONetworkingFamily.kext
IOPCIFamily.kext
IOPlatformPluginFamily.kext
IOReportFamily.kext
IOSCSIArchitectureModelFamily.kext
IOSCSIParallelFamily.kext
IOSMBusFamily.kext
IOSerialFamily.kext
IOSkywalkFamily.kext
IOSlaveProcessor.kext
IOSlowAdaptiveClockingFamily.kext
IOStorageFamily.kext
IOStreamFamily.kext
IOSurface.kext
IOThunderboltFamily.kext
IOTimeSyncFamily.kext
IOUSBAttachedSCSI.kext
IOUSBFamily.kext
IOUSBHostFamily.kext
IOUSBMassStorageClass.kext
IOUSBMassStorageDriver.kext
IOUserEthernet.kext
IOVideoFamily.kext
KXLog.kext
KernelRelayHost.kext
L2TP.ppp
Libm.kext
NVDAGF100Hal.kext
NVDAGK100Hal.kext
NVDANV50HalTesla.kext
NVDAResman.kext
NVDAResmanTesla.kext
NVDAStartup.kext
NVMeSMARTLib.plugin
NVSMU.kext
OSvKernDSPLib.kext
PPP.kext
PPPSerial.ppp
PPPoE.ppp
PPTP.ppp
Quarantine.kext
Radius.ppp
RemoteVirtualInterface.kext
SMARTLib.plugin
SMCMotionSensor.kext
Sandbox.kext
System.kext
TMSafetyNet.kext
acfs.kext
acfsctl.kext
apfs.kext
autofs.kext
cd9660.kext
cddafs.kext
corecapture.kext
corecrypto.kext
eficheck.kext
exfat.kext
iPodDriver.kext
mcxalr.kext
msdosfs.kext
ntfs.kext
pmtelemetry.kext
pthread.kext
smbfs.kext
triggers.kext
udf.kext
vecLib.kext
webcontentfilter.kext
webdav_fs.kext
Nathaniels-MacBook-Pro%

I cannot find the kext file for tripmode's extension to delete it. Since I am not using tripmode I do not want to leave a potentially outdated kernel module running.

Kernel modules don't necessarily have to reside /System/Library/Extensions. Another common kext folder is /Library/Extensions.
The TripMode kext resides in /Library/Application Support/TripMode/ though.
You can remove the folder manually. The app also contains an uninstall script:
TripMode.app/Contents/Resources/Uninstall.command

I will list other files and folders mentioned in the script to look at and remove eventually:
...
sudo rm -Rf "/Users/$USER/Library/Application Support/TripMode"
sudo rm -Rf "/Library/Application Support/TripMode"
defaults delete ch.tripmode.TripMode
sudo rm -Rf "/Users/$USER/Library/Preferences/ch.tripmode.TripMode.plist"
sudo launchctl remove ch.tripmode.TripMode.HelperTool
sudo launchctl remove ch.tripmode.nke.TripMode
sudo rm -Rf "/Library/PrivilegedHelperTools/ch.tripmode.TripMode.HelperTool"
sudo rm -Rf "/Library/LaunchDaemons/ch.tripmode.nke.TripMode.plist"
sudo rm -Rf "/Library/LaunchDaemons/ch.tripmode.TripMode.HelperTool.plist"
sudo osascript -e 'tell Application "System Events" to delete every login item whose name contains "TripMode"'
...

Thanks for this, very helpful. Just wanted to comment for future readers that you can run the Uninstall.command script from the terminal and that it does remove the kext.


text:
Parrot OS install in Parallels on Mac
I have been using VirtualBox for years to run Windows and many Linux distributions but recently I purchased the Parallels program and am currently porting over all my virtual boxes. All of them work flawlessly except Parrot OS (Debian based) and I just can't figure out why. I install it perfectly fine but when I try to boot it it hangs at the message below:

I have tried nomodeset, upgrading, booting from live (which also doesn't seem to boot), reinstalling the X.Org LightDM packages, tried pretty much everything I could find on Google. Because of this I think it is something to do with the Parallels settings and how it handles the OS.
The Parallels settings I am using are as follows:

2 Processors
3 GB RAM
128 MB Graphics Memory
64 GB Storage

I also have "Isolate Linux from Mac" selected under security
If you have any idea of something to try that would be much appreciated (since it is Debian based, Debian based fixes may work).

why Kali linux tag ?Also your problem whould be move on Ask different in my opinion the problems coms from a simple misgufiguration of advance cpu extension or something like or maybe disk space... it's strange

Please add the Parallels version. BTW Parrot & VMware 8.5.10 runs flawlessly (at least in Live mode)...

disconnect the virtual machine and make this configuration, in my work, I have the latest version of parallel. try this.
Note: the example print is with the Kurumin configuration but works with the parrotOS

Please try to answer in english

Heres an attempted translation from Google Translate: disconnect the virtual machine and make this configuration, in my work, I have the latest version of parallel. try this.
Note: the example print is with the Kurumin configuration but works with the parrotOS

Ask Different is an English site and as such all posts should be in English. Can you please edit your answer to convert it to English?

@Monomeeth Just did. Cant fix the images (obviously), leave that up to romero.


text:
How to make the "Don't save" or "delete" options the default?
I often start up an app to do something quickly, e.g. quicktime, record some audio, check it out, then I'll ⌘Q out of it.
I don't know about other people but generally for me ⌘Q means "be gone as fast as possible"
I always get prompted with these though:

Can I make the "Delete" or "Don't save"-type options the default?
So I can just hit enter when the dialogue appears and quit the app without saving any changes to that document?

Command Backspace (⌘⌫)
This works in all the apps I've tried (Preview, QuickTime, ScriptEditor):

⌘Q to ask to quit, then
⌘⌫ to quit without saving.

It seems ⌘⌫ selects the Don't Save equivalent in all these dialogues.

The options you want to make the default, are the options that are the most likely to cause data loss, and so they are not the default for a reason. However, you mentioned quitting using the ⌘Q key, so you’re not afraid to use keyboard shortcuts.
I mention this because the Mac OS usually allows you to select a button in a dialog by hitting ⌘ and the first letter of the button’s text. In the ‘Delete’ or ‘Don’t save’ case, this would mean you can dismiss the dialog and not save by hitting ⌘D. For ‘Revert’, hit ⌘R.
It’s not as convenient as ⌘Q and Enter, but it’s still two keystrokes. And without opening you up to potential data loss by default.

This didn't work for me in either of my examples (Preview nor QuickTime)

I am surprised - it works in the default File dialog boxes. I’ve been using these shortcuts for years

DIdn't work in script editor either

This doesn't work. In Preview, at least, where I tried it.

The default these days is Cmd/Backspace, though some apps still hang onto the old Cmd/D.


text:
Prevent Outlook iPhone app from automatically deleting meeting emails
I'm using Outlook on my iPhone to read my email. When I receive a meeting notice and acknowledge it, Outlook adds it to my calendar then deletes the email. Is there a way to disable Outlook automatically deleting the meeting email?

Perhaps there's an option to prevent automatically accepting meeting invites?

Actually no. It is not so much deleting the email as it is moving it to the calendar. Outlook has had that behavior for as long as I can remember. And I am not aware of any way to change that behavior.


text:
Disable "Return to previous app" button in iOS
In iOS, when some action in an app causes another app to launch, a button appears in the status bar towards the left side of the screen, and when you press it, it returns you to the previous app (the app that caused the current app to launch). Here is what I mean:

Is it possible to disable it? If so, how?

This is the standard iOS behaviour and nothing can be done to change it.
For more info, read this answer and subsequent comments on StackOverflow.

Isn't there any setting that you can change?

No. this is a feature built into iOS and there is no way to change it.

The feature was added in a major version of iOS (I want to say it was iOS 10...?) Also the feature has some exceptions (for example: going to Settings via Personal Hotspot's status bar does display a return button to the previous application.)


text:
MacBook Pro battery drains quickly
I am using a MacBook Pro 15" Mid-2015, running macOS High Sierra 10.13.3.
The current cycle count is 505, and battery "State of Health" according to coconut Battery is 85.2%.
Here is the battery information as displayed by the system report:
Battery Information:

  Model Information:
  Serial Number:
  Manufacturer: SMP
  Device Name:
  Pack Lot Code:    0
  PCB Lot Code: 0
  Firmware Version: 702
  Hardware Revision:    1
  Cell Revision:    3241
  Charge Information:
  Charge Remaining (mAh):   6316
  Fully Charged:    No
  Charging: No
  Full Charge Capacity (mAh):   7460
  Health Information:
  Cycle Count:  505
  Condition:    Normal
  Battery Installed:    Yes
  Amperage (mA):    -1269
  Voltage (mV): 12124

I suspect some unusual activity with the battery which is not normal. Half an hour ago the battery was fully-charged, it is now at 84% charge.
I'm not running any energy-intensive app, as determined by the energy tab in Activity Monitor app, as shown in the illustration below:

Additionally, my MacBooks dies without any warning. macOS used to notify of low charge previously, but now it just dies without any notification.
I've never seen the percentage when it dies but I am suspicious that the battery isn't hitting 0%.
How do I resolve the issue.

It is recommended to contact Apple authorised service provider and get your MacBook Pro diagnosed by a technician. If you bought an AppleCare, you may be eligible for free service and repairs.

Possible duplicate of Fully charged MacBook Air turns off when power cord removed

As in the linked dupe - the key here is to look at the Amperage.  Your's is negative meaning you have an issue with the battery - it's dead or dying.  If after an SMC reset  the problem remains, it's time to change the battery.

@Allan is it not normal to be negative when running on battery?

That wouldn't make sense.  What's the value plugged in?

Also see this answer and this answer.  I understand that your MBP is only 2 years old, but a battery failure of this nature is not unheard of.

@Allan when plugged in it.s 2000 and something

Since it's easy to do, the first things I'd try are to reset both the NVRAM and SMC in that order. Before following the steps below, ensure you have no external hardware connected (so, unplug any external displays, storage devices, etc) and make sure you use the built-in keyboard.
Reset the NVRAM
Here’s how to reset the NVRAM on your particular MBP:

Shut down your machine. Yes, a full shut down, not just logging out.
Press the power button and then press the commandoptionpr keys. You have to make sure you press these keys before the gray screen appears or it won’t work.
Hold those keys down until your Mac reboots again and you here the startup chime.
Let go of the keys and let your Mac reboot normally.

Note: When you log back in you may need to readjust some of your system preferences (e.g. speaker volume, screen resolution, startup disk selection, time zone information, etc).
Reset the SMC
To reset the SMC on your particular MBP, follow these steps:

Shut down your computer
Keep the power cable plugged in.
Press at the same time shiftoptioncontrol (on the left side of the keyboard) and the power button
Let go
Turn your computer back on with the power button.

After resetting both the NVRAM and SMC, use your computer to determine if the issue still persists.

It didn't seem to change anything. Guess I just need my battery replaced?

If you're on a new 2017 or 2018 MBP and your battery is dying quickly, it may be Google Chrome.  Chrome forces high performance GPU mode regardless of being on battery/AC.  As soon as you shut off Chrome you'll see your battery extend back to 8-10 hours.
Source: https://mkn.us/blog/brand-new-macbook-pro-battery-dying-quickly/

I actually only use Safari


text:
Move the position of or hide the brightness/volume pop ups on high sierra

Can I move the mini window that appears whenever I change the monitor brightness or keyboard brightness?
I want it higher on the screen, or (ideally) not there at all.

The suggested duplicate doesn't answer my question because the answers work only on previous versions of macOS, here's what I get:
$ sudo defaults write /System/Library/LaunchAgents/com.apple.OSDUIHelper Disabled --bool YES
2018-03-28 14:45:26.589 defaults[16565:159433] Unexpected argument YES; leaving defaults unchanged.

This answer discusses a workaround, but it works on macOS Sierra and older.

Possible duplicate of How do I disable the volume control overlay?

SIP needs to be disabled, then I ran these:
sudo defaults write /System/Library/LaunchAgents/com.apple.OSDUIHelper Disabled -bool YES
sudo defaults write /System/Library/LaunchAgents/com.apple.BezelUI Disabled -bool YES
sudo reboot

And it's worked, I no longer see the Overlays.

Unfortunately this doesn't work anymore with MacOS Catalina .

@Idris https://apple.stackexchange.com/q/374152/150109

I use Karabiner-Elements to re-bind the F1 and F2 keys to run my own Application which increases and decreases the brightness.
This prevents the overlay from being shown.

I edited the ~/.config/karabiner/karabiner.json file to add a rule to Karabiner-Elements:
"rules": [
  {
    "description": "Assign brightness conrol to brightness keys, but hides the overlay",
      "manipulators": [
        {
          "from": {
            "key_code": "f1",
            "modifiers": {
              "mandatory": [
                "fn"
              ]
            }
          },
          "to": [
            {
              "shell_command": "open -a DecreaseRetinaDisplayBrightness.app"
            }
          ],
          "type": "basic"
        },
      {
        "from": {
          "key_code": "f2",
          "modifiers": {
            "mandatory": [
              "fn"
            ]
          }
        },
        "to": [
          {
            "shell_command": "open -a IncreaseRetinaDisplayBrightness.app"
          }
        ],
        "type": "basic"
      }
    ]
  }
]

I am going to make my own apps DecreaseRetinaDisplayBrightness.app et al. because I need to be able to grant my AppleScripts assistive access, and I don't know how to grant osascript itself assistive access.
To make the Apps create a new Application in Automator:

The code to increase brightness by 1/16 at a time is this:
tell application "System Preferences"
    reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays"
end tell
tell application "System Events" to tell process "System Preferences" to tell window "Built-in Retina Display"
    set value of value indicator 1 of slider 1 of group 2 of tab group 1 to (get (value of value indicator 1 of slider 1 of group 2 of tab group 1) + 0.0625)
end tell
quit application "System Preferences"

Obviously to decrease it's the same thing but subtracting 0.625 instead of adding it.
I saved the Application in my Applications folder, then granted it assistive access from System Preferences > Security & Privacy > Privacy > Accessibility:

Now hitting fnF2 increases the brightness without showing any pop-up. Obviously some of the above steps have to be repeated to create the DecreaseBrightness App.

Of course an almost identical method can be employed for volume and keyboard lights. Just write an AppleScript that controls each.
E.g. my "shell_command" for volume decrease looks like
osascript -e 'set volume alert volume ((alert volume of (get volume settings)) - 100/16)' && osascript -e 'set volume (alert volume of (get volume settings))*7/100'

While it works it's not a perfect solution, it can sometimes momentarily steal focus, and is much laggier than Apple's default.
I wonder if the lagginess can be improved by adjusting some of Karabiner's settings,
"parameters": {
  "basic.simultaneous_threshold_milliseconds": 50,
  "basic.to_delayed_action_delay_milliseconds": 500,
  "basic.to_if_alone_timeout_milliseconds": 1000,
  "basic.to_if_held_down_threshold_milliseconds": 500
}

The lag can be made less annoying by increasing the 0.0625 to larger values, so that you can faster get to the brightness you want (although with less precision). The 0.0625 was chosen to simulate the steps taken by Apple by default (1/16).
An ideal solution would be the updated version of the
sudo defaults write /System/Library/LaunchAgents/com.apple.OSDUIHelper Disabled --bool YES

command that works for High Sierra 10.13.3.
I also don't know how to fix this error that occurs if System Preferences is already open and doesn't have focus:


text:
Apple Activity March Challenge can anyone explain calculation?
The March Challenge in the iOS Activity app is making no sense. At the beginning of the month it started out telling me I needed 719 Calories a day. And my average at the start of the month was:

(Never mind the fact that I'm in Australia and my local setting is kilojoules, and that it should localise like every other app in the world does. Has no trouble showing me activity in kilojoules but the challenge can't show kilojoules?)
Obviously that figure is wrong. First mysterious number right there. 20,263 kilojoules, would that even be possible?
I decided I wanted to get this badge so I converted the required daily average (719 calories) to kilojoules and got 3008.3. So I set the daily move goal to 3000 and planned to exceed it. And I have been, getting to around 4500 a day. So if I exceed the daily average goal the calculated average should be trending UP, right?
Not so. Now it tells me I am under the daily required average (today it reports 699) and the figure is trending down though I am still exceeding it by 50% a day and have been well above it all month.
Possible explanations I have considered....

the USA uses a different kind of calories from the rest of the world
and my conversion of cal-kj is wrong (seems ridiculous but U.S.
gallons are different to imperial gallons)
this challenge is as broken as February's
the decreasing daily figure shown is how much I would need to every day of the rest of the month? But then the ridiculously high figure
from the start of the month makes no sense. -

So can anyone explain this?

Your phone’s math looks off. I’d contact support in case they have a unit error in your locale. In the US I can confirm from three different people, we have pretty aggressive goals set. One person is far less active than me and far less calories on their goal. Another works out a lot more and has a much higher increase needed in their daily burn.
My goal was 25,015 calories and I’m barely going to make it tomorrow on the 29th having worked out at least once a day which is far more than I did all year.

Sorry this isn’t an “answer” other than implying there is an algorithm that’s somewhat tiered or nuanced. Perhaps enough people could edit in their goals to crowd source a range of possible goals?

End of the months happened - I totalled the month and got over 800 calories per day. Something is wrong, so I am going to see what support says about it. Thanks for the advice.

@AdamEberbach Maybe there's an award for falling the most short from an impossible goal and you win the "lanterne rouge" for March 2018


text:
Google Drive does not work with the Files app on iOS 11
I can't use/see Google Drive files on the Files app on iOS 11. Instead it comes up with this error:
I have tried pressing Try Again several times but still will not work. It doesn't seem to be the Internet. Is there anything I can do to solve this issue or is it a fault that everyone is having?

are you able to see the files in the Drive app?

An updated Google Drive app was available in the App Store today (4/6/18).

I have the same problem. I tried making some files available offline on the google drive app but it didn't work. It is definitely not an internet connection issue since I have used different networks (including using my phone as a hotspot) and the problem persists. The files can be viewed on the google drive app with no problem

Do you have multiple Google accounts? I wonder if that may be a problem.


text:
How do you position your hand to use the control + w key? What fingers do you use?
I would like to improve my typing. Currently, I start web dev with vim. I use one of the feature called split, which create new window for me. then we need to hit Control+ W to move around cursors. I find myself vary awkward hit press the control key and w key at the same time, pinky for control key and ring for w key.
I understand there is one correct answer to this question. I would like to know how you guys do it. I definitely will find useful tips to improve the typing overall. Thank you so much in advance.
edit:
Ok, I need to specific, I am using MacbookPro 2016, which only have left control key. (I wish we could modify the right option key to act as a control key, but the left option key stays the same)

Is this not a primarily opinion based question?

On the Apple Magic keyboard, I use my left thumb for the command key, and my left ring finger for any bottom row keys to the left of that. For command W, I use my thumb and middle finger. For control W I use my ring and middle finger - all on the left hand.

I'm sure there are as many answers as fingers...
If I've got one hand on the mouse, then left hand; ring; middle.
If I've both hands on the keyboard then I'd use the right Ctrl key instead, right hand pinky; left hand, ring.

You can use karabiner-elements to remap just the right option key to control.


text:
Browse iPhone Photo folders on Mac
If I plug my iPhone into a Windows computer the photos I believe DCIM folders display as basically a drive. All you do is drag and drop the files you want. This works great!
How can I do this on macOS, preferably without any additional software?
Unfortunately on my Mac it forces you to use the Photos application which I do not like. I'm transferring such a large number of files, I don't want airdrop.  AirDrop is to slow and sometimes doesn't work when using differing iOS and MacOS versions.
Right now I hilariously drag the files onto a thumb drive in Windows and then move the thumb drive to my Mac.

Would you please edit this to include a clear question?

@Christian so the answer I marked as duplicate doesn't have a response really.

Sorry, missed that.


text:
Internet Recovery - No progress
I am trying to use internet recovery to install OS X Yosemite and dual boot it with High Sierra on my 2015 model 13-inch Macbook Pro, but I’m having some issues. I can boot into Internet Recovery, can choose an internet connection, but after doing that, absolutely nothing happens. The earth icon is still spinning, I can change to a different wifi, NOTHING happens. Is there anything I can do to start Internet Recovery properly? By the way, the computer already has High Sierra installed, and works properly.

How long are you waiting for the Earth globe to stop spinning?

I waited like 20 minutes and then posted this question. I restarted and tried again, waiting for 10 minutes. Should I wait longer?

How long it takes can depend on a number of factors, including the speed of your connection and how much needs to be downloaded, etc. I've seen instances where it can take a couple of hours or more, so I'd leave it for a while and see what happens.

Thanks for the info. By the way, I’m trying to connect to internet via Thunderbolt 2 to Ethernet adapter. Can that be a reason?

Well, it could be. Do you know if you're actually connected? Have you tried connecting another way (e.g. via Wi-Fi)?

My computer is away from the WiFi so I always use ethernet. I’ll try going near the WiFi, retrying with it and post my results.

After waiting about 30 minutes near the WiFi, I got error code “-2002F”.

Let us continue this discussion in chat.


text:
How to change multiple file type associations on the Mac at once?
I want to change my default media player in macOS.
(In my case, I want to change it to my own AppleScript-created instance of VLC that I exported as ‘VLC-New-Window.app’, which is scripted to always open files in a new VLC instance so that it doesn’t override the existing paused playlist or video file I want to keep in the background.)
It is very tedious to find an example of every file type I use VLC for (whether mkv, avi, mp4, m4v, m4a, m4b, mp3, flac, or m2ts), right-click on it, and manually set the new default program each time.
And honestly I’d like every audio or video file type that VLC can open to be applied here so that I never have to worry about this again.
Is there any method that can help automate this, or do this in batch?

Step 1: Put the list of file types (from one of the categories below) into a text file at ~/types.txt, with one per line as shown.
Below are very exhaustive lists for three common media file categories.
Audio:
.2sf
.3ga
.a52
.aa
.aa3
.aac
.aax
.abc
.ac3
.acd
.acm
.act
.adg
.adts
.afc
.ahx
.aif
.aifc
.aiff
.al
.alac
.amb
.amr
.amz
.aob
.apc
.ape
.apf
.apl
.atrac
.au
.avr
.awb
.bap
.bmw
.bwf
.caf
.cda
.cfa
.cidb
.cm3
.cmc
.cmr
.cms
.copy
.cpr
.cwp
.dac
.dcf
.dcm
.dct
.dfc
.dff
.dig
.dlt
.dmc
.dsd
.dsdiff
.dsf
.dss
.dst
.dts
.dtshd
.dtswav
.dvf
.efa
.efe
.efk
.efv
.emd
.emx
.f64
.fc
.fl
.flac
.flp
.fst
.g726
.gnt
.gpx
.gsf
.gsm
.hma
.hmi
.hmp
.htk
.htw
.hvl
.iff
.iklax
.imw
.imy
.its
.ivc
.k26
.kar
.kdm
.kfn
.koe
.koz
.kpl
.ktp
.latm
.lds
.lha
.loas
.lqt
.lvp
.m3u
.m3u8
.m4a
.m4b
.m4p
.m4r
.ma1
.mat
.mdat
.mds
.mid
.midi
.mids
.mini2sf
.minidsf
.minigsf
.minincsf
.miniqsf
.minissf
.miniusf
.mio
.mka
.mlp
.mmf
.mon
.mp2
.mp3
.mp+
.mp_
.mpa
.mpc
.mpd
.mpp
.mpt
.mpu
.msv
.mt2
.mte
.mtp
.mup
.mus
.mxp4
.mzp
.ncor
.ncsf
.nki
.nrt
.nsa
.ntn
.nwc
.odm
.oga
.ogg
.oma
.omg
.omx
.opus
.ots
.ove
.paf
.pcast
.pcm
.pek
.pfv
.pla
.pls
.pna
.prog
.pvc
.qcp
.qsf
.r1m
.ra
.rax
.rex
.rf64
.rfl
.rif
.rmi
.rmj
.rmt
.rns
.rsd
.rso
.rti
.rx2
.sa1
.sap
.sbr
.sd2
.sds
.sf
.sfa
.sgt
.sid
.smf
.snd
.sng
.sns
.sprg
.spx
.sseq
.ssf
.ssnd
.str
.swa
.syh
.sz
.tac
.tap
.tfm
.tfmx
.tfx
.tm2
.tm8
.tmc
.trm
.tta
.ul
.usf
.usflib
.vag
.vmo
.voc
.voi
.vox
.vpm
.vrf
.vy1
.vyf
.w01
.w64
.wav
.wma
.wrk
.wus
.wut
.wv
.wve
.wwu
.xa
.xfs
.xhe
.xi
.xmi
.zgr
.zvr

Video:
.3g2
.3gp
.3mm
.3p2
.60d
.264
.aaf
.aec
.aep
.aepx
.ajp
.am4
.amv
.arf
.arv
.asd
.asf
.asx
.avb
.avd
.avi
.avp
.avs
.ax
.axm
.bdmv
.bik
.bix
.box
.bpj
.bup
.camrec
.cine
.cpi
.cvc
.d2v
.d3v
.dav
.dce
.ddat
.divx
.dkd
.dlx
.dm_84
.dmb
.dpg
.dream
.dsm
.dv
.dv2
.dvm
.dvr
.dvx
.dxr
.edl
.evo
.f4v
.fbr
.fbz
.fcp
.flc
.fli
.flv
.gts
.gvi
.gvp
.h3r
.hdmov
.ifo
.ircp
.irf
.ivr
.ivs
.izz
.izzy
.m1pg
.m2p
.m2t
.m2ts
.m2v
.m4e
.m4u
.m4v
.m21
.mbf
.mbt
.mbv
.mj2
.mjp
.mk3d
.mkv
.mnv
.mocha
.mod
.moff
.moi
.mov
.mp4
.mp4v
.mp21
.mpeg
.mpg
.mpg2
.mqv
.msdvd
.mswmm
.mts
.mtv
.mvb
.mvp
.mxf
.mzt
.nsc
.nsv
.nut
.ogm
.ogv
.ogx
.pds
.pgi
.piv
.plb
.pmf
.pns
.ppj
.prtl
.psh
.pvr
.pxv
.qt
.qtl
.r3d
.ram
.ratdvd
.rm
.rmbv
.rms
.rmvb
.roq
.rpf
.rpl
.rum
.rv
.sdv
.sfvidcap
.slc
.smk
.spl
.sqz
.sub
.svi
.swf
.tda3mt
.thm
.tivo
.tod
.tp0
.trp
.ts
.ty
.udp
.usm
.vcr
.veg
.vft
.vgz
.vid
.viewlet
.vlab
.vmb
.vob
.vp6
.vp7
.vro
.vsp
.vvf
.wd1
.webm
.wlmp
.wmmp
.wmv
.wmx
.wp3
.wtv
.xfl
.xvid
.zm1
.zm2
.zm3
.zmv

(For the few file extensions that I'm aware can apply to either video or audio, e.g. .ram, .mp4, .3gp, .3g2, I've put such an extension into the video list).
Image:
.006
.007
.1ff
.1im
.3dmf
.3dx
.7tif
.8pbs
.abm
.abr
.adi
.aex
.ai
.ais
.ait
.albm
.amu
.apng
.ard
.art
.arw
.asat
.avif
.b16
.bil
.bitmap
.bld
.blend
.blkrt
.blp
.blz
.bmc
.bmp
.bob
.bpg
.br4
.br5
.bum
.c4
.cadrg
.catpart
.ccx
.cdr
.cdt
.cdx
.cel
.cgm
.cht
.clp
.cm2
.cmx
.cmz
.comicdoc
.cpl
.cps
.cpt
.cr2
.csf
.cur
.cv5
.cvg
.cvi
.cvx
.dae
.dcim
.dcm
.dcr
.dcs
.dds
.design
.dib
.dng
.drg
.drw
.drwdot
.dt2
.dvl
.dwb
.dwf
.dxb
.easm
.ebm
.ec3
.edp
.edrw
.edw
.emf
.eprt
.eps
.epsf
.epsi
.exr
.fac
.face
.fbm
.fbx
.fc2
.fcz
.fd2
.fh11
.fhd
.fit
.flic
.flm
.fm
.fpf
.fs
.fw
.fxg
.gcimgd
.gif
.graffle
.gtx
.hd2
.hdz
.heic
.heif
.hpd
.hpi
.hr
.hr2
.htz4
.ibl
.icl
.icns
.ico
.icon
.icq
.ics
.idw
.ief
.iff
.iges
.igr
.ilbm
.ilm
.im1
.im24
.im32
.im8
.ima
.image
.ime
.imi
.ims
.ipj
.irf
.iss
.itc2
.ithmb
.j2k
.jfi
.jfif
.jif
.jiff
.jng
.jp2
.jpe
.jpeg
.jpf
.jpg
.jpg2
.jpm
.jps
.jpw
.jpx
.jt
.jwl
.jxl
.jxr
.k25
.kdc
.kodak
.kpg
.lda
.ldm
.let
.logo
.lt2
.ltz
.lva
.lvf
.lwf
.lxf
.mac
.macp
.mbm
.mcs
.mcz
.mdi
.mgs
.mgx
.mic
.mip
.mj2
.mng
.mpf
.mpo
.mtz
.mur
.nav
.ncr
.neu
.nff
.ngg
.njb
.nol
.nrw
.ntc
.nth
.odi
.odif
.ola
.opd
.ora
.ota
.otb
.otc
.otg
.oti
.ovw
.p21
.p2z
.pac
.pal
.pat
.pbm
.pc6
.pc7
.pcc
.pcd
.pct
.pcx
.pdb
.pdn
.pef
.pfm
.pgc
.pgm
.pi2
.pic
.picnc
.pics
.pict
.pictclipping
.pl0
.pl2
.pln
.plt
.pmb
.png
.pol
.pp2
.ppm
.ppsx
.prw
.ps
.psb
.psd
.psf
.psg
.psp
.pspimage
.psq
.pvl
.pwd
.pws
.px
.pxr
.pz2
.pz3
.qtif
.qtl
.qtz
.qxd
.ras
.raw
.rgo565
.ric
.rlc
.rle
.rs
.rsb
.rsrc
.rw2
.sct
.sdk
.sdr
.sec
.set
.sfw
.sgi
.sig
.skp
.sldasm
.slddrw
.sldprt
.snx
.srf
.sst
.sun
.sup
.svg
.svgz
.t2b
.targa
.tcw
.tcx
.tex
.tga
.tif
.tiff
.tjp
.tn
.tpf
.tpx
.trif
.trx
.u3d
.upx
.urt
.utx
.v00
.v3d
.vfs
.vga
.vis
.vpb
.vrl
.vtx
.wb1
.wbc
.wbd
.wbmp
.wbz
.webp
.wgs
.wi
.wmf
.wnk
.x-face
.x_b
.x_t
.xbm
.xcf
.xdw
.xip
.xpm
.xsi
.xwd
.yuv
.zdl
.zif
.zno
.zprf
.zt

(The above lists were collated from sources including dotwhat.net as at 2020.09.30 (audio, video, image), VLC's formats wiki, foobar2000 documentation, my own knowledge, and various programs' save / export file dialogues. From such sources, I removed a few that I deemed unsuitable as they are commonly used in non-media file contexts and may conflict, e.g. .xz was in a dotwhat.net media list, but it's usually an archive format.)
Some extensions may not open in the universal media player / image viewer you want to switch to, but you can fix it on a doesn't-work basis after the switch.
Step 2: Create temporary dummy files of every extension in an above category in your user folder.
Open Terminal.app, and using your txt file above do the following command:
while read -r line ; do mkfile 1b file${line} ; done < types.txt

Step 3: Select all dummy files in Finder at once, then press option+command+I. Under 'Open With', select the program you want to change the default to, make sure to click on 'Change All...' button, confirm, and it is done.

Where there’s a will, there’s a way. +1 for gumption

If you save the lines in Step 1 into a text file "types.txt" then while read -r line ; do mkfile 1b file${line} ; done < types.txt will create your files for you.

I believe that it is possible to change file association for each file using a script at https://stackoverflow.com/a/2976711/13044086 By combining these two scripts it should be possible to change all file associations with a single command.

Note: there's more image formats to add referenced in https://www.lemkesoft.info/files/manuals_gc11/Manual_GC11_EN.pdf (e.g. .422) (not an easy task as most don't list the file extension) - I aim to make this quite a complete resource.


text:
Where can I get a small form factor security cables similar to the one that Apple Stores use for their iPhone?
I notice that iPhone antitheft cables that attach on the back side all take up a huge space on the back of the phone.
Are there small form factor ones? Is there a way to get the Apple Store sized smaller security antitheft cables?

Have you asked at the store? Have you looked for the manufacturers name or asked for it ?

Also, ugly is relativ :-) Take a look at https://duckduckgo.com/?q=kensington+lock+cable&bext=msl&atb=v105-5__&iax=images&ia=images and similar searches, there is a huge variety of cables out there.

If you're a Reseller you should get them from your Distributor.

@patrix have you seen a good kensington security cable for an iphone

@patrix updated question to be less opinion based

@KevinGrabher i'm just someone who wants to show off an iPhone app at Makerfaire

@ina There's no official way to get Apples security cable, Apple offers it just to their resellers. Ask some stores I guess..

Sorry, didn't notice the iPhone part .-)

The product you are looking for is called a security tether.  It's not a specialized product only available to iPhone vendors.  A quick search on Amazon and you will find a bunch of them


text:
How do I delete files older than N days?
The content in my Downloads folder is getting bigger and bigger. There are many older documents that I don't need any more. Is there a way to bulk erase files from a given number of days ago?

Automatically would be dangerous. Simply sorting by date & selecting multiples would at least give you the opportunity to check first what was about to be trashed.

This looks like a spam seed ...

Sure - a safe way is to have a backup like Time Machine - you can then delete files knowing you can restore them with ease.
I like to sort a file listing by date - select the first file to be deleted, scroll to the end of the list leaving that one file selected. Then use shift to select the last file - shift then selects the entire range.
Then put all the files in trash. Once you're sure your backup was was good or you selected the correct files - empty the trash.


text:
Apple Holiday Calendar for Vietnam
Apple used to maintain its own set of calendars, but that page no longer exists, and recently my subscription for Vietnamese holidays (pulled from Apple’s now-retired page) stopped updating in the Calendar app.
It’s easy enough to derive certain countries’ holiday subscriptions from the US one. For instance you can subscribe to French holidays at https://p20-calendars.icloud.com/holiday/FR_fr.ics. However there doesn’t seem to be one at https://p20-calendars.icloud.com/holiday/VN_vn.ics.
Does anyone have the address for Apple’s Vietnamese holiday calendar? I realize there may be other sites that offer such calendars, but I’d prefer to use Apple’s.

Okay, Apple had made it so that you have to change your region in Language and Region Preferences in Settings to Vietnam. Also, you need to add the regional language as well to see the holidays of that region, but you don't need to make it the primary language. View here for more information.
There isn't a link for apple's calendar subscription, so the easiest is to just use another calendar for Vietnamese holidays: Vietnamese Calendar.
Hope this helps ;D

Well, I guess that’s the reason there isn’t a calendar at https://p20-calendars.icloud.com/holiday/VN_vn.ics: Apple simply removed the Vietnamese holidays calendar. I made a guest account and set its region to Vietnam, and no new calendar would show up in Calendar after disabling/enabling Show Holidays calendar.


text:
Extension/userscript for Safari that allows Netflix screenshotting
Is it possible to make a Safari extension, or userscript, that would allow Netflix videos to be screenshotted?
Does anyone know how Apple are disabling Netflix screenshotting in Safari and whether this can be bypassed with an extension or userscript?

Not 100% sure on this, but have you tried using Chrome?

You can use that as a workaround.

@Josh I know

The on topic version of this has already been asked and answered.

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/


text:
Where is Make.sublime-build?
I'm looking to the sublimetext build system, where I considering to customize my own build based on make.
Since there is C.sublime-build I was expecting to find Make.sublime-build. Where is it?

Did you run locate Make.sublime-build or find / -name Make.sublime-build?

yes for 2nd question, found nothing


text:
How to delete /var/run/com.cyberghostsrl.CyberghostPrivilegedHelper.socket?
how can I delete this file?
if I run netstat -an this gets listed
/var/run/com.cyberghostsrl.CyberghostPrivilegedHelper.socket

it is probably an old installation of cyberghost, but I realy think that this is shady that it is not uninstalled.
I already tried:
sudo rm -rf /var/run/com.cyberghostsrl.CyberghostPrivilegedHelper.socket

in safeboot mode, but it doesn't get deleted.
What I can see that this only shows up in non safe mode.

The "file" (the name suggests it's actually a socket) is probably getting recreated by cyberghost every time the computer starts up. If you want to get rid of it, you need to completely remove cyberghost. I'm not familiar with cyberghost, but it may install some files besides the app itself, that you'll have to track down and remove.
There are some uninstall guides online that're fairly generic, but should give you the info you need to find & remove the relevant files. One thing that might be missing from a generic guide is removing launch daemons and agents: You'll need to look for related files in the folders /Library/LaunchDaemons, /Library/LaunchAgents, and (inside your home folder) ~/Library/LaunchAgents.


text:
Workout App Open Goal vs Calories question
On the workout app, for all of my workouts except “Outdoor Hiking” the default setting under the little green figure says “Open Goal” in bright green.  Under the Outdoor Walk it shows “750 Calories” in red. When I start it, the countdown ring is in red. How do I reset this to Open Goal and countdown ring in green ?

The workout should show an ellipsis (3 dots) on the top right that you can tap. From there select open goal.
See this Apple Support article for more information on workouts.


text:
Does "Not Connected" state of Bluetooth/Wi-Fi drain my iPhone battery?
As we all know in iOS 11 there are three states for Bluetooth and Wi-Fi buttons in Control Centre: Off, Not Connected, and On.

I'd like to know whether Not Connected state drains my iPhone battery or not?
And how to turn off Bluetooth and Wi-Fi completely via Control Centre?

Short answer: Yes it does!

It would be wrong to say that Not Connected status does not drain the battery at all. However, the drain rate is significantly less as the device is not connected to any access point (for Wi-Fi) and Bluetooth radio doesn't consume much battery anyways.
In iOS 11, it is not possible to completely turn off Wi-Fi and Bluetooth from the Control Centre. It could only be done from within the Settings app.

Quoting from the Apple Support document, Use Bluetooth and Wi-Fi in Control Center with iOS 11

About Wi-Fi and Bluetooth
In iOS 11 and later, when you toggle the Wi-Fi or Bluetooth buttons in Control Center, your device will immediately disconnect from Wi-Fi and Bluetooth accessories. Both Wi-Fi and Bluetooth will continue to be available, so you can use these important features:

AirDrop
AirPlay
Apple Pencil
Apple Watch
Continuity features, like Handoff and Instant Hotspot
Instant Hotspot
Location Services

Thus, it is apparent that battery draining will still happen. However, the device disconnects from Wi-Fi access point and Bluetooth accessory.


text:
Dock - Remove spacer?
Is there a way to remove the spacer between the downloads stack and apps?

As far as I know, this is not possible through normal means. And by that I mean I doubt you could change this without hacking the OS.
I know you can add spaces:
Adjust width of spacer between Mac OS dock icons
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}' && killall Dock

or
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'

Those are the only space customizations I am aware of.
I know this is not the answer you were hoping for but I believe it to be the correct answer.

and as an addendum (forgive me for being pedantic...) that is the separator between documents/folders and applications

Yup, that is a good clarification! It just turns out that you can in fact add that vertical spacer or a blank spacer to the dock at will. I just don't know of any way to remove that spacer. Far as I can tell its just designed into the dock.

Thanks for your answers! Concerning pedantism: The attached screenshot I was referring to shows only the downloads folder.

"long click" on space in the dock .  a little window appears to delete the space

Tested this on macOS10.15, does not work.


text:
Odd Frame Rate 29.68 fps in Live Photos
Why 29.68 fps?
Is it possible to set up a 30 fps or 29.97 fps frame rate for Live Photos?
The problem is a video part of Live Photos in iPhone X in iOS 11.3 uses quite strange variable frame rate – 29.68 fps, that is not suitable for editing presets in FCP or DaVinci Resolve. If I convert Live Photos' frame rate to 30 fps or even 25 fps, a sound slightly or noticeably drifts away from sync at some point.
P.S. Live Photos in iPhone 7 (iOS 10) work with 29.97 fps.

Blame the Americans. They invented drop-frame to compensate for their atrocious NTSC [Never Twice the Same Colour] television standard, so what ought to have been 30fps couldn't quite keep up.. Move to the light side & go with the European PAL standard, 25 fps. Solid. (yes, I'm joking, kind of ;-))

@Tetsujin NTSC's CFR 29.97 fps isn't the same as VFR 29.68 fps))

Just a question. Re your statement: If I convert Live Photos' frame rate to 30 fps or even 25 fps, a sound slightly or noticeably drifts away from sync at some point, can you clarify how you're converting the frame rate? In FCP? Something else? What settings?

@Monomeeth For instance, I set up my project in FCPX as Custom format 1440x1080, 30p, Render Sequence ProRes422, Audio 48kHz.
Then, I distribute 2 formats: H.264 30fps, audio 48kHz, and H.264 25fps audio 48kHz.

@Andy Hmm, considering that Live Photos are only 3 secs long, I wonder whether something else is at play here? Since Live Photos were first introduced the frame rate has varied between iPhone models (e.g. on an iPhone 8 it's 29.79 fps). But this is just me thinking out aloud. If I get a chance I will try and replicate your issue. In doing so, are you joining multiple Live Photos together in your project, or...?

@Monomeeth Yes, I'm joining approximately 200 Live Photos and other video and audio together in a project. Sorry but I can't share this content because it's a property of my company. If you have any iPhone model with non-standard frame rate you can try it yourself.

Thanks @Andy - no worries, I definitely wouldn't want (or need) you to share any of the content. I just wanted to get a better context for what you were trying to do - I'm hoping to get the time to create a test project to see if I can replicate this behaviour and find a workaround.

I'll try to answer my own question. I'm not sure this is 100% right.
I suppose frame rate's issue depends on the architecture of Live Photos itself. Total number of frames inside each Live Photo in iPhoneX is 85 frames (look at the picture above):
42frames + 1frame + 42frames = 85frames

Frame rate for all these 85 frames is supposedly 30 fps, but considering just a video part (without a HEIC file), frame rate is 29.68 fps.
Here's a math:
//let's assume that 1/85th is 0.011764,
//truncate that floating point number to 0.011
1 / 85 = 0.011

//let's assume that video frame rate of all 85 frames is 30 fps
//so each frame's contribution is approximately 0.33 fps
30 fps * 0.011 = 0.33 fps

//thus H.265 video portion without HEIC frame will be 29.67 fps
30 fps - 0.33 fps = 29.67 fps

Value 29.67 fps is very close to 29.68 fps.

I reckon that altogether all 85 frames of Live Photos have frame rate 30 fps, but two H.265 video portions (without HEIC part) have frame rate 29.68 fps.


text:
How can I delay monitor output?
Using Audio Hijack I can intentionally "lag" the audio, so that when a sound happens on the system, I hear it a second later.

Can I similarly delay monitor output? I want to have my display lag a couple of seconds behind the audio that I hear.
On my MacBook Pro (Retina, 15-inch, Mid 2015)'s built-in display.

I just wanted to mention it may be worth clarifying whether you're using an external display or a built-in display, as this may be relevant.

@Monomeeth MacBook Pro (Retina, 15-inch, Mid 2015)'s built-in display.


text:
My iMac automatically/mysteriously powers off when on standby. How can I make it not power off?
Our iMac randomly powers off while on standby. I put it to sleep, come back, and it is powered off. I need to reboot it, which is a long process.
The iMac is at the newest operating system and it is really annoying that I put it on standby, and it shuts down. I look in system preferences, but I did find setting associated with it shutting down when on standby, but they were already off, so there is no reason for it to.
When logging back in, a message said, "Your mac restarted because of a problem..." I could not get the rest of the message.
How can I make the iMac no longer automatically shut down when I put it in standby and have it remain in standby?

Are you in Europe?

First thing to do is get the shutdown cause.  See this answer on how to obtain that info, then proceed by editing your question with the new information.

Do you have power nap enabled? I've found that that can cause problems. Also, you can try disabling sleep altogether and only allow the display to turn off, although this will use more power.

@drivec I am not in Europe

As the question is rather old it's unclear whether it is still relevant. In case it is: please follow the links listed in the comments and add the details other users ask for.


text:
iSCSI mounts in macOS
I have a question about using iSCSI mounts in macOS (High Sierra). What is the preferred way to mount iSCSI targets in macOS? Also, is it possible to do so from Recovery Mode? Any advice would be appreciated.

iSCSI is not natively supported on macOS.  You need to use 3rd party software.  The best one that I have used (but it costs $$$) is the one from globalSAN

The free options are:
iSCSI Initiator for macOS
https://github.com/iscsi-osx/iSCSIInitiator
iSCSI Initiator X - Freemium
https://www.kernsafe.com/product/macos-iscsi-initiator.aspx

iSCSIInitiator has 0 commits since 2018, and Kernsafe's product has not seen an update since 11/2019. So both can effectively be considered abandonware at this point. Neither are working on Big Sur.
I found two options for Big Sur and newer:

Daemon Tools Lite for macOS. Performance seems to cap out around ~65MB/s (globalSAN was >100) but it seems stable and reliable so far.
ATTO Xtend SAN iSCSI Initiator has recently been updated as well, and claims to support Big Sur/Monterey as well as Apple Silicon-based Macs. I haven't tested it.

Daemon tools does indeed work, but when the connection times out it simply drops (there is no persistence).  Anyone have a work around for this?

Related question: create iSCSI target LUNs on macOS… maybe someone knows how this would work on macOS. https://apple.stackexchange.com/questions/460916/macos-as-server-os-possible-to-create-iscsi-target-luns

I've used both the GlobalSan licensed and a trial of Daemon tools, unfortunately on new Macs, GlobalSan is no longer supported.
My current dilemma is that I have Photos on a SynologyNas.  Every time I try to connect now it is asking me to initialise the drive which I believe will forma the LUN.
Does anyone know how to get access to the data?  I have tried connecting via various methods, Linux, Proxmox, MacOS old sierra and also new with daemon tools and Windows and none show the drive only an initialise message.


text:
How can I find the serial number of my Mac mini?
Do Mac mini come with a unique serial number? How do I find it?
It is a model without optical drive.

You have a recent generation of Mac mini. They come without the Optical Drive.
To determine the serial number of your Mac mini (or any Mac for that matter), click on the  menu item in the Menu Bar, select About This Mac. You will see the serial number mentioned in the window that opens. This window will also specify the model and year of your Mac mini.

Alternatively, on your Mac mini, you can also spot the serial number printed on the metal frame towards the bottom of the machine. For instructions, you can refer this Apple Support Document, Mac mini: How to find the serial number.
Device specific instructions on finding serial number of an Apple product can be found in the support article, Find the serial number of your Apple product.

Is there any danger in sharing your serial number with strangers?

No major threats, but it's better not to divulge.

Yes. They come with unique serial number. You can find the serial number as per Apple Support Document.
Mac mini: How to find the serial number
In Mac OS X
On most computers with Mac OS X, you can find the serial number in the About This Mac window.

On the surface of the computer
On Mac mini (Mid 2010 and later) computers, the serial number is printed on the metal frame without a bar code:


text:
Connecting two HDMI monitors to Late 2012 Mac mini
I have two Samsung monitors with HDMI input.
Is it possible to connect them simultaneously to my Mac mini using HDMI? I wish to have a extended desktop setup.

Yes! Get a mDP (Mini DisplayPort) to HDMI cable. Then plug that into the Thunderbolt port, and run the other monitor from the HDMI port.
Here’s an arbitrary example of a mDP-HDMI cable.


text:
How to boot into internet recovery mode with rEFInd installed?
I have the bootup manager rEFInd installed on my Macbook. The key combinations for recovery (Command R and Command R+I) just boot into rEFnd's bootloader. At this point in time holding the option key while booting still allows me to plug in a USB and boot it (e.g. I can boot a Linux Live USB and wipe the disk - afterwards I'd be able to do internet recovery mode without a problem). That being said I'd like to be able to access internet recovery without the usage of external media and without giving up rEFInd. How can I achieve this?

purely for my own edification, how long do you press and hold the option key?

@Thufir I gave up and wiped the disk, reset NVRAM+SMC, and restored from internet recovery mode.

I think c will work.  But, it seems to be inconsistent..\

I managed to start the internet recovery mode with rEFInd installed by holding right CMD + alt + R just after pressing power button and before rEFInd starts.


text:
High Sierra - Why is Recovery HD inside the APFS container?
I noticed a few days ago that the Recovery partition was inside the APFS container. Isn't it better for it to be a separate volume? For example, APFS containers sometimes get corrupted with an invalid partition type (FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF), so you can't boot to Recovery mode either, because that's inside the container! Why is this the case? Is there an explanation? Here is the output from diskutil list. You can clearly see that it's inside the container.
$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         435.1 GB   disk0s2
   3:           Linux Filesystem                         25.0 GB    disk0s3
   4:           Linux Filesystem                         39.9 GB    disk0s4

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +435.1 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            425.5 GB   disk1s1
   2:                APFS Volume Preboot                 22.4 MB    disk1s2
   3:                APFS Volume Recovery                517.8 MB   disk1s3
   4:                APFS Volume VM                      3.2 GB     disk1s4

Placing the recovery volume inside the APFS container allows space sharing. Instead of creating a fixed partition, the unused space inside Preboot and Recovery can be pooled with your normal volume. Only the actual space used by the Recovery files becomes unavailable.
This also simplifies issues if in the future, the Recovery volume needs more space. Instead of a risky resize operation to your data partition, it simply becomes a matter of adjusting the metadata for the Recovery volume.
Finally, any Mac that shipped with an SSD has Internet Recovery, so you have a reasonable solution if the entire drive gets corrupted.


text:
Deploy iOS app directly from Xcode to iPad
Since Xcode 7 was released, a target device has now free provisioning. A developer doesn't have to sign up for Apple Developer Program in order to test his/her app on an iOS device.
When you uploaded your application on an iPad or iPhone, you'll also have to trust the developer. So, on a device go to Settings >> General >> Profile >> Developer Account Name >> Trust.
The problem is an app with free provisioning works on your device only 7 days.
Is there a way to make it work perpetually on iPad (without building an app in Xcode again)?

Yes, it is possible to make the app work "perpetually" without recompiling and rebuilding it in Xcode. This can be done by re-signing the finished binary using command line tools (i.e. essentially just replacing the developer signature instead of remaking the whole binary over and over). However, this is probably not what you want as you will need to transfer that new binary to the iPad every week.
If you want to make it work "perpetually" without having to reinstall the app, you will need to get it signed by someone with a real developer certificate (i.e. obtained from either the Apple Developer Program or the Enterprise Developer Program).


text:
iPad Apple keyboard error message

I have the iPad Pro 12", original model (when it first came out), along with the Apple keyboard/cover.
This error message appears randomly, and searches so far have blamed it on an OS update, but those notes are from a few revisions back. The current iOS is what I've installed 11.3.1 and the error still occurs, making the iPad virtually unusable even using this as a cover, not even typing. Any hacks/fixes to this issue?

Does the error occur even when the cover is not attached to the iPad? (As a side note: having had occasion to test out the original 12" iPad Pro, keyboard/cover & pencil for a few months, I thought to myself then that the cover/keyboard, although durable and well constructed, would prove to be the weak link in the device triad over time.)

Thx. No. The message has never come up with no cover on. With the cover being an Apple branded item, I thought they’d fix this issue by now. Very random, but frequent, and I don’t use the keyboard too often anyway.

It may be a faulty or physically damaged keyboard then. Are the contacts on the connector edge of the keyboard clean and crud-free?

No, shiny clean connectors.


text:
List of all homebrew package names (not a count)
Is it possible to get a complete list of all homebrew package names that are able to install using brew install PACKAGE_NAME? (not just a count of all packages)
There is a complete list of available Homebrew packages here, but I would like a script if available

@Nimesh Neema I don't think that this question is a duplicate, because I don't just want a complete count, I want a list of all the packages

The linked question contains the answer, brew search, with the count only from a locally piping into wc -l. Do you think this needs to be clarified in the linked question?

I think so, at least I didn't know that it did that

You can use brew search to get a complete list of all available packages.
This website provides a great search functionality to search in all the packages

This is a link only answer that is subject to link rot...

Hi - consider editing this in to the answer in the linked question. No need to delete anything here. Closed questions help with search engines to find the main Q/A for one topic so having several linked and closed questions helps the site and isn’t any penalty for you.

@SolarMike While I would agree in most cases, I disagree here for two reasons.  1. There's no point in copying and pasting everything on that link because it's way too long 2. It's subject to change on the daily, and therefore would be outdated pretty quickly.

@Josh perhaps a script that would download the latest list to the desktop would be more relevant...


text:
Experience with booting on a Tempo SSD PCIe card?
I have a MacPro 2009 reflashed as a 2010. I am considering to install a Tempo SSD PCIe card and then put High Sierra on it. This card is advertised to allow booting on it: would anyone have first hand experience with that? The background story is that my boot drive is a RAID 5 Softraid with 4 disks (the four internal slots of the machine) and I have just discovered that High Sierra can't be installed on a RAID. So if I could have put one SSD on that PCIe card and boot on it, the upgrade path would be very simple.

I successfully installed a bootable High Sierra system on a Samsung EVO 860 (1 TB) mounted on that Tempo SSD PCIe card I asked about. I kept the RAID 5 alongside for the big important data.


text:
Is winebottler safe to install?
I've been missing Notepad++ since changing from Windows to macOS and there's an article that says if I use WineBottler (that's the only thing I miss), it should run.

WineBottler packages Windows-based programs like browsers, media-players, games or business applications snugly into Mac app-bundles.

The notepad aspect is inconsequential (in fact I nearly didn't add it in). I'm aware of other editors, I'm expressly asking about WineBottler. I don't want to know about running Parallels, etc.
I simply want to know if WineBottler is malicious or not.
Is this known to be safe?

Also see How can I run Windows applications on a MacBook Pro?

Run Wine

Wine is a translation layer for Windows applications. It's a bit like
  a virtual machine but doesn't require the Windows OS. It sits between
  the Windows application and OS X and makes the application think it's
  running on Windows by translating all the Windows calls its making to
  OS X calls.
There are two choices of know of here. The free WineBottler and
  the paid-for CrossOver Mac from CodeWeavers.
Some commercial software is delivered for OS X this way -- I know The
  Sims 3 game that my wife likes to play on her MacBook Pro is actually
  the Windows version of the game running under the Wine emulator.
Pros:

You don't need to buy a copy of Windows
Your OS X-based data can be accessed from your Window programs

Cons:

Application support under Wine can be hit-and-miss. Some apps work well, some don't. Check at http://appdb.winehq.org/ to see if your
  applications are on the list of tested, supported applications if
  you're going to try WineBottler. CodeWeavers keeps their own list.
Because the Windows applications think they're running on Windows, and not everything Windows does translates perfectly to OS X, some
  applications can behave erratically.

Source: How can I run Windows applications on a MacBook Pro?

It basically installs enough windows frameworks i.e. registry, and
  DLLs needed by Windows applications to run. It doesnt install a full
  out version of windows. It is more or less sandboxed, as well as when
  you compile an application, you can further sandbox that application
  in its "own" windows subsystem, making it modular, like most macOS
  applications. It is safe and does not alter your HD filesystem.

Source: Reddit - WINE - is it safe to use?
Notepad++ 7.x in Wine:

What works
Installs Launches (slowly) Opening/saving files Searching What does
  not
Default font is not monospace Some high Unicode codepoints (surrogate
  pairs?) do not display correctly Really slow to launch Workarounds
What was not tested
Anything but basic functionality Hardware tested
Graphics:
GPU: Intel Driver: open source Additional Comments
It works out-of-the-box, you just need to change the font to a
  monospace one that you have installed.

Source: WineHQ - Notepad++

I simply want to know if WineBottler is malicious or not.

Yes, I had Wine and WineBottler installed for years without problems. As long as you download it from the official source you should be fine.

Beware, using TextEdit to edit code can make your code unusable because TextEdit replaces normal quotes with "smart" quotes by default.

Suggesting TextEdit as code editor is the most ridiculous answer I've ever seen on this site, sorry. You cannot even create other files than RTF files with it, although you can edit text files, but it sucks as hell. Best replacement for Notepad++ is Visual Studio Code, imo. Simply use it with Notepad++ key mappings, if you don't want to re-learn key mappings.

@modiX I don't disagree. Looking over this post from awhile ago, I must have misread Notepad++ as Notepad. I was describing the macOS equivalent, TextEdit. But it should not be used for code editing. Use JetBrains IDEs or Sublime. Do note however, TextEdit can create plaintext files, allowing for html, js, php, etc. to be written.

P.S. I didn't include Eclipse in that list on purpose....

@JBis Obviously you have another editor to prefer for code, it's opinion based. And yes, you can (technically) edit code files with TextEdit. That's what I included when I said text files.


text:
How can I submit my app if I didn't enrolled for the Apple Developer Program?
I made this app and I would like to put it in the App Store and I searched the Internet for how to do that but they all require you the account that you used to enrol for the Apple Developer Program and unfortunately I don't have one(I learned Swift by Youtube).
What can I do?
NOTE : I don't care if I have to pay any money.

It isn't really possible to put an app in the iOS App Store without a Developer Account. If you don't mind paying money (it is $99), why don't you simply create an account & submit your app?

@Scot Should I just enrol for the Apple Developer Program?Because when I tried , I got this : Sorry, you can’t enroll at this time

The only way for you to distribute your app via the iOS App Store is to have it submitted by someone (or an organisation) that is enrolled with the Apple Developer Program. That someone doesn't necessarily have to be you, but based on your question that seems to be the best option.
You can refer to the Enrollment page to get started, or skip straight to the Start your enrollment page.
If you're getting the Sorry, you can’t enroll at this time message, you should also get a description below that as to why you can't enroll. If you don't, or the message doesn't make sense to you, then you can contact Apple Developer Program Support via this form.


text:
Raise "shadows" on monitor
I want darker colors to be brighter on my MacBook Pro 2015 (retina display).
Every frame displayed should be as if it's gone through photoshop and the "shadows" slider has been increased.
How can I do this?
I already tried creating a new color profile in display preferences but couldn't seem to get the effect I want, maybe someone knows how I need to set those values etc. to achieve this.

Normally I'd say "you need a colorimeter..." however just this week I find myself with the same need, for a TV that's too contrasty when used as a monitor. Colour profiling it is not working well enough, so ideally I'd like some app/utility that can adjust the curves manually, just like you would in photoshop.

BTW, you know if you hold Opt whilst clicking the Calibrate button in Display/Color, you get the advanced setup, which is a bit better but still not good enough, imo.

@Tetsujin yeah that's what I did, but it "distorts" other colors and bleaches mids and highs too, I tried for about 4 hours lmfao

tbh, I've never struggled before except with this TV. All the actual computer monitors in the house were done with the i1Display Profiler... to perfection. This damn, telly... not playing ball. I think I'm on about my 30th calibration run right now :(

I've just discovered this software - DisplayCAL which I'm running across my regular monitors right now. Cool thing about it is it will apparently use just about any colorimeter out there. I've got the i1 but it will even apparently work with a Pantone Huey [which long ago stopped being supported on Mac] Bet you could pick one of those up for a tenner on eBay. Just about to run it on the TV, I'll let you know how it goes...

Yes !! DisplayCAL has got the TV closest yet. Desktop looks pretty close, VLC movies look great.


text:
keep photos on iphone but not on icloud
Maybe this isn't the right place to ask this question. If not direct me. How can I keep photos on my iphone but not in icloud? Most often the question is asked in reverse. I'm not interested in icloud for the most part and would like to free up space but still have pics on my phone. Do I need 3rd party software to do this? I'm not sure why apple makes it so hard to do stuff.
Thanks!

I'm not sure if you want to go this far, but I simply turned iCloud off entirely...

I do not send my photos to iCloud, i only keep them on my phone.
All you need to do is toggle of the switch that tells your phone to send your photos to iCloud or not.
When you are in the iCloud settings page you can choose what things you want to have iCloud save, such as calendar, notes etc by just toggling a switch/button next to each function.
Go to Settings and click on your name at the top of the page, it will  be at the top of the page and have your name in large text ( or whatever your apple id is set to ) and in small text just below it will be "Apple ID,iCloud, iTunes & APP Store with a  >  to the right.
Touch the > scroll down and touch iCloud, now just toggle off the slider button next to Photos. ( it will be green and to the right if it is set to on and if you touch it it will move the the left and no longer be green. )
I also do not use iCloud drive, i keep it toggled off. ( not sure if having it on would have an effect on the photos setting.


text:
iPhone does not get detected on older MacBook Pro
I had to switch temporarily to a MacBook Pro 13 early 2011 model and when I'm connecting my iPhone 7+ or iPad, it's not getting detected nor charged.
Other USB devices like thumb drives or USB-microphones are working just fine.
If I put a voltcraft USB power converter between the iPhone/iPad and my MacBook Pro, the device is getting charged but it's still not getting detected in iTunes/duet.
I already reset NVRAM (https://support.apple.com/en-us/HT204063) as suggested in similar posts here but that didn't fix anything and I don't know what else to try.
Any ideas?
Thanks

Have you tried a known good USB > Lightning cable?

@IconDaemon yes, I've verified that first :) All cables that I've tried work fine on my iMac and Linux/Windows laptop.

I've had the same problem before, and the following steps solved it for me:

Open iTunes
Plug the phone into the computer, and unlock the phone (Either with TouchID or Passcode Unlock)
A notification should popup on your phone saying "Trust This Computer?", click "Trust"
And finally, in iTunes and after a couple of seconds it should show up

thank you now it works. I was waiting for the "Trust This Computer" prompt but it never showed up and the device wasn't even being charged. I've just tried it again with iTunes already being open and now it gets detected. thanks :)

You're quite welcome, but then that means I will have to change my answer slightly now
If this helped you, please mark my answer as correct, and thanks!


text:
Keyboard shortcut to exit the print dialogue in safari
When I press cmd-p in safari the print page shows up.
Escape doesn't work because I've remapped my escape key to ⌥esc
How do I exit this without using the mouse or escape?

Normally, use the esc key.
This will dismiss the dialog without using the mouse.
This shortcut work with most dialog boxes in macOS.  See this answer for more details.
If one has remapped the esc key, using command+. should dismiss the dialog as well.  (Thanks to Steve Chambers' comment.)

Spot on - and used so often I forget that I’ve used it...

Is there an alternative? I re-mapped ESC to ⌥ESC to prevent Safari exiting full-screen mode when I use it, and so now I can't close the dialogs using this method.

Well, then, perhaps remap another key combination to esc might work.

@bjbk just what I thought about writing until I read yours :)

Before Macs has an escape key cancelling was done with Command-Period. And I believe it still works.