You can't really (or shouldn't) use text items without first defining your text item delimiters.

If each field in the formatted text is separated by a tab character, then the task is trivial:

set my text item delimiters to tab

set cbTotals to {}
set cbDates to {}

repeat with row in the paragraphs of (the clipboard as text)
    set the end of cbTotals to text item 6 of the row
    set the end of cbDates to text item 7 of the row
end repeat

If the fields are, as they appear here, actually separated by a variable number of spaces, then one might be tempted to count each space between each field, and enumerate the text items in the same way we just did above.  However, this is impractical, and more importantly, it is not a very robust way to approach this in a general context, because the content of your data might change slightly at some point.  For example, you may, on one occasion, select the text flush with the start of the line, whilst on another occasion, over-select and include some leading whitespace.

One way to ensure consistency is to deal with the spaces first:

set my text item delimiters to space

set |cb₀| to the text items of (the clipboard as text)

repeat with cbField in |cb₀|
    if cbField's contents = "" then set cbField's contents to missing value
end repeat

set cb to the strings in |cb₀| as text

Now cb contains an homogeneously-delimited version of your clipboard data, where each field is separated by a single space character.  Now we can employ the same technique from earlier, and obtain the relevant text items.  Without changing your text item delimiters, which will currently be set to space:

set cbTotals to {}
set cbDates to {}

repeat with row in the paragraphs of cb
    set the end of cbTotals to text item 6 of the row
    set the end of cbDates to text item 7 of the row
end repeat


Can I put a Time Machine backup hard drive directly into a MacBook?

No, you cannot. Your Time Machine backup isn't a real clone of your hard drive — it's a time-based collection of all the files on your hard drive.

It's a little intensive to do this process, so proceed with caution if you follow the steps below. Read through them — if you feel uncomfortable with any of the steps, feel free to read up on anything you're not comfortable with or hire a friend or professional who is more familiar with this kind of stuff.

If you know that the 500GB hard drive will actually fit in your computer (i.e. your current internal hard drive and the one you want to replace it with are both 2.5"), then you can put it in. If you have another external hard drive you can use temporarily, you can switch them out without losing your backups; if you only have the 500GB external hard drive, you can do still do it, but you'll lose your old backups.

I would do the following steps:

Create a bootable MacOS USB drive
Shut down your computer and replace the internal hard drive with the 500GB hard drive
Wipe the 500GB hard disk and reinstall MacOS using the MacOS USB drive
On first boot during the initial setup process, select the option to restore from another computer hard drive
After that is done, you are free to wipe the 250GB hard drive and use it for your future Time Machine backups


How to remove Trovi malware from Safari?

Before killing false culprits at random with a great chance to damage your working environment, I suggest you to first attack your original problem.

Download a correct malware hunter:
Malwarebytes.

Disclaimer: I don't work for them, they have a free version.

I tested it on many versions of OSX (Mavericks, Yosemite...) and found and fixed some well hidden crapwares left undetected by leader commercial anti-virus.

Warning: There are a lot of bad and good methods to get rid of Trovi found on the web. Avoid to download from unchecked sources, as you wouldn't drink from any found bottle.

I didn't test the following, but trust its author since many years.
I advise you to apply the receipe from Linc Davis:

How to remove Trovi from Safari


If you restored your iPhone from a different backup, or as a new device, then you would need to restore again from the correct backup.

There is no recoverable data once a restore has been completed.
The devices are hardware encrypted & once the encryption keys are deleted, that's it, I'm afraid.


Connect me is an intranet portal used by Apple. Used for internal communication and collaboration. Someone probably posted a link to your site for reference or info. Source: former contractor.


You can change the channel of your router, maybe it is the problem with it.
Another possibility is that a Firewall is preventing this. Go to System Prederences-Privacy and Security and then find the Firewall option. Check if it is turned on or off. Change it to either way and check if you can connect now.
Additionally, you can go to Keychain Access app and try to remove everything related to the router such as its password or ... But be careful and don't remove important passwords.
You can also use the built in diagnoser, which is in System Preferences- Network-Assist Me. See what it suggests. It usually says that you'd better turn your router off for a minute and turn it on again.
You actually have to play (!) with three files in your System Configuration, which the link below explains how.

This discussion in Apple Discussions is also noteworthy : https://discussions.apple.com/thread/6354581?tstart=0


Press the Home button twice. This will bring up recently used apps. Find the Message app and swipe up. This will force close the app.
Hold down the Power button until the power-slider appears, but don't turn the device off. Instead, while that power-slider is showing, hold down the Home button until your home screen re-appears.
Hold down the Home and Power buttons until the Apple Logo shows, and then release.
If one of your recent messages had a photo or video, try deleting it from the Messages. This may keep it from crashing again if you're able to open the app at all.

→ Try this multiple times.

If these steps still don't fix the problem, try backing up your iPhone to iTunes. Then restore from the backup. This step is tedious, I understand. But it may solve the problem when everything else has failed.

EDIT:
(additional suggestions)

Going beyond what usually fixes this problem...

You're options, shy of going to an Apple Store for an actual diagnostic, would be limited at this point. I see two options.

• Restore as a new iPhone.

• Try downloading PhoneClean on your computer. I have only used this briefly and am not entirely proficient in this app, but it has helped me in the past. It's available for Mac and PC.


Mysterious "EFI Boot" partition appearing at startup?

Your question has two parts. The first part is repeated below.

  The question is, how can I make the EFI Boot disappear when I press the options key at startup?

This a duplicate of the question "Ghost partition, Windows BSOD". The rest of your question, which again is repeated below, does require further explanation.

  It's not creating any problems with my Mac or Windows partitions, but I'm very curious about what it actually is, what does it have to do with my computer, and why does it decide to show up when I pressed the options key?

The "EFI Boot" appears because the Mac firmware finds the boot file BOOTx64.EFI in the folder \EFI\BOOT on the EFI partition of your internal drive. This is part of the UEFI specification. For example, if you go to the "uefi.org Specifications web page", you can download and view the "UEFI Specification Version 2.5". Sections 3.5.1.1 Removable Media Boot Behavior and 3.5.1.2 Non-removable Media Boot Behavior (on pages 88-90) describe the naming of the BOOTx64.EFI file and that it should appear in the \EFI\BOOT folder.

When holding down the Option ⌥ at startup, the Mac firmware will look for the \EFI\BOOT\BOOTx64.EFI file on each EFI partition of all drives accessible at startup. Each occurrence will generate an icon with the label "EFI Boot" on the Startup Manager menu.

When Windows installs, some of the startup files are stored in the folder \EFI\MICROSOFT. These files are also duplicated (with some renaming) in the \EFI\BOOT folder. Not all non-Apple operating systems do this when installing. For example, Ubuntu Linux does not. (Well, last time I installed in EFI mode it did not.) The Ubuntu installer does create a folder \EFI\UBUNTU with startup files (GRUB), which the Mac firmware by default ignores. To get Ubuntu to appear in the Startup Manager, you have to manually mount the EFI partition and copy the files in the \EFI\UBUNTU folder to the \EFI\BOOT folder. (Also, the copied grubx64.efi file needs to be renamed to BOOTX64.EFI.)

If you need to do this for two operating systems, then you will need a second EFI partition. This should not present a problem since an EFI partition is fairly small (<200 MB) and the limit on Macs by default is 128 partitions. However, to tell one operating system for the other, while viewing the choices presented by the Startup Manager, you may want to change the icons.

For example, I have rEFInd installed in a second 134 MB EFI partition on my iMac. (This happens to be the last of 9 partitions.) Additionally, I have Windows 10, Yosemite (on volume "Steelhead") and El Capitan (on volume "Steelhead2") installed. Below is a image of my Macs Startup Manager menu. (For a better view, click on the image or open in a new window.)

The icon can be changed by mounting the EFI partition and adding the icon file .VolumeIcon.icns to the root folder. A collection of these icons, for popular Linux and other operating systems, can be found here.


Would signing out of iCloud delete my locally stored photos?

iCloud always asks you if it deletes local copies and it only deletes copies it knows are stored online, so you should be safe to remove an account.

If you're worried, make an iCloud and iTunes back up just in case, but signing out only is intended to clear things that came down from the cloud and even then it offers you the option of keeping local copies of data in many classes of data (contacts is the one I see often).


Imagemagick installed via Homebrew, convert missing

Think I resolved the problem. convert is present in /usr/local/Cellar/imagemagick/7.0.10-28/bin as a symlink to magick; which led me to look in /usr/local/bin where mogrify exists as a symlink; convertis present there too. Running rehash (hash -r) brought it into visibility on the path.


What happens to iOS Apps when you turn OFF Family Sharing?

Before Family Sharing, you could take someone else's iOS device and sign in to the app store with your account and download all/any apps you choose.

At that point, your password was needed to update, but signing out didn't delete the apps or in any other way prevent them from working. Let's set aside in-app purchases for the time being.

Family sharing changes this in that when someone joins the "family" - their Apple ID is used to download and update other family member apps. They do not show up in your purchases, they show up as the other named family member's purchase. All that changes is the password needed to install and update.

When you as a family member remove yourself from the plan - you get a warning that lists what will happen and basically, you immediately lose access to the purchases, photos, calendars and other items that were shared in the plan.

Rejoining the family would then let you re-download and re-sync the items.

You'll probably want to find a better way to use the family service than routinely joining and leaving or skip the family share and use the older method of signing in to multiple devices which doesn't immediately remove/revoke the items.


Why do my new sunglasses make my iPhone and iPad look funny?

It seems it's not EVERY phone or iPad - have you tried taking our device to the Apple Store and asking them?  (Yeah, I know, it's not always convenient and if you do, make sure you make a Genius Bar appointment ahead of time so you don't have to wait).

Take a look at this page:
http://www.phonearena.com/news/iPads-and-polarized-sunglasses-dont-mix_id28909

I can't seem to find why the problem occurs - it seems to be something about polarization needs to be at 45 degrees:
Why are LCD Panels Polarized at 45 degrees


How to reset Apple ID PW without knowing original PW and answer to security question?

"If you forgot your Apple ID password" on Apple's support website provides the steps to reset your password, however you have stated you do have not access to the original email address and a security question was not set up.

Therefore you will need to contact Apple directly. "Contacting Apple for help with Apple ID account security" provides a country-by-country list of contacts for Apple ID password issues.


Can't add Google account to iOS 13. Default browser not supporting cookies?

It turns out this wasn't an issue with my cookies settings directly, but with the "Block Pop Ups" setting in Safari. After turning off pop-up blocking, I am able to reach the login page.


Why does `df` use "Bi" as abbreviation for bytes?

It's the difference between the decimal value and the binary prefix.
In this case, it's saying you are using 0 binary bytes.

What's the difference?

Using "Giga" as our example, it means 10003 of something (i.e. Gigahertz).

In computers it poses an interesting problem:

A Gigabyte is 10003 bytes.  However a byte is 8 (binary) bits.  Which means it's technically 10243 bytes.   To account for this, we use different notation:

Giga is decimal (base 10)
Gibi is binary (base 2)

The output is telling you that it's using binary units.

If you want to get the output in "human readable decimal notation", use a capital "H":

$ df -H
/dev/disk2      1.1T   413G   706G    37% 100935848 172431606   37%
map auto_home     0B     0B     0B   100%         0         0  100%   /home

Finally, it's actually not an Apple convention, but one from BSD (it's a BSD command). You can find more info on the man page (man df).


Try to run Disk utility upon system start up, this may increase functionality. So delete second volume and extend  Macintosh HD by dragging it down to make as a single unit. Also repair disk and permissions.

From the screenshot I noticed that you selected your boot disk, which is not possible to edit while OS is running, however second split of HD should be editable. To make less confusion, consider renaming HD, for potential data prevention while modifying HD


Looks like the GPU is hosed to me. Try restarting it while holding down commandoptionpr and see if that helps. If not, try holding down commandoptionshiftpower button for 10 seconds to reset the SMC. If that also doesn't work, send it to Apple for repair.


How can I force Parallels to ask about re-associating my USB drive with my Mac or VM?

I had the same problem, with a USB disk drive. Parallels was configured to ask each time yet always put the device to the guest I'd first used it on. Choosing Parallels Preferences didn't help. The device wasn't listed as one that had a permanent assignment.

I think this is expected behavior as the documentation talks about a "New" device.

The fix for me was to Option-click (Alt-click) the Parallels icon in the Dock and choose Devices -> USB and there I saw the device listed with a tickmark next to it. Selecting the device removed the tickmark. Next time the devise was connected I was asked.


How to print result of some javascript execution in ScriptEditor?

The result pane displays the result of the evaluation so the easiest way to print the result is to execute:

Math.round(5.0/2)

Using console.log() does work from the command line:

osascript -l JavaScript -e 'console.log(Math.round(5.0/2))'


How do I encrypt an external HFS+ drive without erasing it on Big Sur?

Apple says you need to remove the disk from being a Time Machine destination for your Mac first.

If you want to change from unencrypted to encrypted backups, you must remove your backup disk and then set it up again.

https://support.apple.com/en-gb/guide/mac-help/mh21241/mac
Removing the disk doesn’t delete the contents of the disk though, so you should be able reassociate the disk with your Mac once it’s encrypted, though I haven’t tested this.


What is the best Shared Calendar implementation for machines running OS X?

For a small office, you may be able to get away with using BusyCal. It works well for sharing calendars with a small workgroup. You can turn your co-workers calendars on or off so you can see them, or not, depending on your need to de-clutter your calendar. It's worked flawlessly for us with MobileMe calendar sharing, or you can set up your own CalDAV server. Free trial, excellent support. I'm a big fan.

You said:

  MobileMe: Not really shared calendar because I can't easily see a coworker's schedule.

I think I need more info, as I have no problems viewing the shared schedules of the other people on our system.


Set up OSX to act as router via Internet Sharing

You need to enable routing.  I'm pretty sure on OS X this is a sysctl(like FreeBSD):

http://securityreliks.securegossip.com/2010/10/enabling-ip-forwarding-on-mac-osx/

doing:

# sysctl -w net.inet.ip.forwarding=1

as root should enable this.


Set the hostname/computer name for macOS

Setting the Mac hostname or computer name from the terminal

  Open a terminal.
  Type the following command to change the primary hostname of your Mac:
  This is your fully qualified hostname, for example myMac.domain.com

sudo scutil --set HostName <new host name>

  Type the following command to change the Bonjour hostname of your Mac:
  This is the name usable on the local network, for example myMac.local.

sudo scutil --set LocalHostName <new host name>

  If you also want to change the computer name, type the following command:
  This is the user-friendly computer name you see in Finder, for example myMac.

sudo scutil --set ComputerName <new name>

  Flush the DNS cache by typing:

dscacheutil -flushcache

  Restart your Mac.


Why can other users see my files in MY user folder?

This is because Finder creates new folder with default permissions set to 755, or rwxr-xr-x (I agree that's questionable behavior). This means that new folders in your home directory are readable (r) and executable (x) by both users not-only in the same group, but all users on the system.
You can lock down the access to just your user from Finder's Get Info dialog by removing the group access entry and setting the "everyone" entry to "No Access".
Alternately, you can use Terminal to chmod your directories with chmod 700 ~/your_directory to accomplish the same thing.


MacBook Pro freeze and goes off by kernel panic

Troubleshooting is a process of elimination and often requires patience, so keep that in mind as I'm going to offer you quite a few troubleshooting steps below.

The first thing I would do is to test whether this behaviour is replicated in Safe Mode.

Boot into Safe Mode

Follow these steps to boot your MacBook Pro into Safe Mode:

Fully shut down your MacBook Pro
Restart your MacBook Pro
Immediately press the Shift key and keep it down
Let go of the Shift key when you see the login window (NOTE: If you have FileVault enabled you may need to log in twice).
Take a note of what happens (i.e. is the issue still present when using Chrom and/or Photoshop)
Now exit Safe Mode by restarting your MacBook Pro as normal
Once logged in again, test to see whether the behaviour continues

Now, depending on the above testing, we can narrow down how to proceed:

If the problem is still present during Safe Mode and afterwards, proceed to 1. Run Apple Diagnostics (see below).
If the problem is not present during Safe Mode then it's time to investigate login items, fonts, and kernel extensions. If that's the case, proceed to 2. Investigating login items, fonts, and kernel extensions (see below).

1. Run Apple Diagnostics

Follow the steps below to run Apple Diagnostics:

Fully shut down your MacBook Pro
Restart your MacBook Pro
Immediately press the D key and keep it down until you see the Diagnostics screen appear
Wait for Diagnostics to finish (this typically only takes a few minutes)
Once complete, one of two things will appear on the screen:

a No issues found message
a brief description of any errors found plus further instructions

If the diagnostics test does find errors, take a note of what they are

If you get an error let me know the results. If you get no error, skip to 3. Some suggestions re Google Chrome, Photoshop and macOS Sierra.

Note: If pressing and holding the D key at Step 3 doesn't work, start again at Step 1 and, at Step 3 press and hold both the OptionD keys instead. This will try and run diagnostics from the internet instead, so you will need to allow more time for it to complete.

2. Investigating login items, fonts, and kernel extensions

Let's start with Login Items:

Startup normally
Go to System Preferences > Users & Groups
Select the Login Items tab
Take a note of your Login Items
Now remove all of them by highlighting them and clicking on the - button below
Restart your computer

Now your Mac will boot up without those login items loading. Test this and see if the problem persists:

If the problem goes away you know one (or more) of the Login items were causing the problem. You can then add them back in one by one until you've identified the culprit. Problem solved.
If the problem does persist, it's either a problem with fonts you've installed yourself or with a 3rd party kernel extension. A little more info below:

Fonts:- You can remove any of the fonts you've installed yourself to see if this makes a difference.

Kernel Extensions:- You can open Terminal (found within your Utilites folder) and enter the following command:

kextstat | grep -v com.apple

The above command will list 3rd party kernel extensions (you may need to stretch the Terminal window so it's easier to read). Look for anything you don't remember installing, or something that belongs to software you've removed, or just anything that looks out of place. Remember though, this is a list of 3rd party kernel extensions and therefore any of them could be causing the problem.

3. Some suggestions re Google Chrome, Photoshop and macOS Sierra

I would try the following suggestions to see if they have any impact on what's going on.

Google Chrome

I would strongly consider not using Chrome for a few days as a test. However, if you need to, there’s actually a setting in Google Chrome that may help you:

Go to Chrome > Preferences
Scroll down to the bottom
Click on Show advanced settings…
Scroll down to the System heading
Uncheck the Use hardware acceleration when available option

Adobe Photoshop

Likewise, you may be able to tinker with Photoshop’s settings as well. Depending on the version you use, if you go to Photoshop’s Preferences and look under the Performance category, there should be a section for GPU Settings. By going into its Advanced Settings you may be able to try different options for the mode of use. It will probably default to Normal, but you could change it to Basic and see whether Photoshop plays more nicely with your MBP. Under GPU settings you could also switch off OpenGL Drawing altogether, but that may limit some functionality.

macOS Sierra

There are a couple of things you can do within Sierra:

You’re probably already aware of this one – but for your MBP you should have an additional setting under System Preferences > Energy Saver for Automatic graphics switching. Playing with this and the other Graphics option (for better battery life) may be useful.
Now this one is not so obvious:

Go to System Preferences
Click on Accessibility
Select Display (in the left-hand column)
Tick the Reduce transparency box (on the right-hand side)
Exit System Preferences

After making these changes, use your Mac long enough to see what difference, if any, they make. This is basically a troubleshooting step to help narrow down the possible cause of your problem, so let me know how you go.


Looks like the Vnet Gateway needs to "push" the DNS server as well. See the following link for more details of how i got it to work with macOS 10.15.4 and Azure Point-to-site

https://stackoverflow.com/questions/51615301/approach-for-private-dns-when-using-point-to-site-with-azure-vpn-gateway/60870856#60870856


Stolen Phone - How to Know if iPhone sound was triggered/un-triggered

The sound will play on the device regardless of the silent switch, and when the device plays a sound it reports back to iCloud and you will receive an email saying that the sound has been played. While there's no way to be sure that anybody heard it, you can safely assume that the sound was played if you get that email.


I want to hear sound of push notification when sound is turned off (like iOS alarm clock)

You can't, the push notification is handled by the iOS. If the user muted his device there is no way force it to play sound on receiving a push notification.

The reason the alarm can play a sound is because it is not bound by the apple rules for app s from the app store.


Will Apple reject my iOS app if it has unused UIViewControllers?

The app won't get rejected.

Apple don't browse the source of your app—they're testing the functionality from a user's point of view. Private API detection is left to iTunes Connect.

You should still try to remove unused code from your app to make the app as small as possible for users.


Quickly transfer file from iOS device to new Windows computer

I think uploading to Google Drive is the best solution without installing any programs. If you use your email in your university anyway, you can email the files to yourself and then download it again.


Identity not found when trying to code-sign an application with a certificate

This is not the explanation of the problem but the way I worked around to solve it:

Deleted the previously created certificates.
Unlocked the System keychain with the keychain Access tool (locker on the left).
Recreated the certificates filling most of the fields of information even if not totally required.
Switched to a simple and clean terminal (just in case a modified terminal lacked some kind of access to the keychain)
Executed the codesigning commands with sudo

This worked for me, but I don't really understand what was causing the problem previously.


Why did I get incorrect wifi password pop up for unknown network on iPhone?

The simple answer was the alert is not sensitive to a communication error from the server and lumps all Failures to authenticate into - password must be wrong.

Instead of retrying is presumes the cause of the error was human input not  generating a successful challenge and response from the server.


What devices can receive an iOS AirPlay audio stream?

Yes, this would be known.

First, the old Apple TV won't be getting the update (since its now iOS based), and therefore wont support airplay.

Not sure of any workarounds for an old Apple TV that use the actual AirPlay standard. A hack may exist after 4.2 has been out for a while, but I think most people decided to just move to the new Apple TV instead.


"We could not complete your purchase" dialog on login

If you open Mac Store and under your Apple ID you will see all the items under Purchased (Application such as Keynote, Pages, GarageBand so on). So even it is free, it is counted and listed under purchased items with zero cost/charge.

In your case, I think your machine is trying to download some updates from Mac Store for your application that you have downloaded from store and it is unable to do as you don't have enough space for its upgrade. Make some space free first :)


Boot Camp Assistant: "Your disk could not be restored to a single partition."

WARNING: This answer may cause a problem with El Capitan! Read Warren Pena's comment below. If anyone knows how to get the disk space back on El Capitan after doing this then please comment below.

I had this issue and I solved it by doing the following.

Go to "Disk Utility.app"
Select your Windows Partition
Click "Erase" and select "Mac OS Extended (Journaled)"
Erase the partition
Once that has completed, select the Complete Disk (Not Partitioned)

Now select "Partition"
Select the newly Formatted "Windows" partition and select the "-" symbol at the bottom to remove the partion

You should see an empty space where the partition was
Select your main partition, and to the right where it says "Size", type the Disk's full size and hit enter

After Disk Utility completes the resizing, you should now have a single, full partition again.


Issue with using Netgear AC1600's 802.11ac standard and WMM on 2014 MBP

The problem has resolved itself with the update to OS X Yosemite. It must have been a Mavericks issue. I have done nothing to the routers settings prior, and have since been able to enable WMM settings.


Is it possible to query the current user's Apple ID from the command line?

The currently logged in Apple IDs for iCloud are stored in the MobileMeAccounts preferences. You can query the entire store with:

defaults read MobileMeAccounts Accounts

To return just the first account ID (an email address nowadays):

/usr/libexec/PlistBuddy -c "print :Accounts:0:AccountID" ~/Library/Preferences/MobileMeAccounts.plist


It has been my experience (with a non-full SSD in a MBA running 10.8.2) that the /.MobileBackups directory always holds hourly backups from the last day and daily backups from the previous seven days. These are kept locally (even after making a Time Machine backup to an external disk) so that you can still use Time Machine to restore recently changed files even when your external Time Machine disk is not available.

Accordingly, it makes sense that your /.MobileBackups would be large if you have made correspondingly large changes in the past week (i.e. deleted or changed big chunks of data).

I have not yet filled my disk, so I am not sure how it works in that situation. Ideally, it would “give back” some of the space /.MobileBackups earlier than normal instead of letting you completely fill up your disk.

If you are not critically short on “disk” space, you can probably just wait a week or so (while doing daily backups to an external Time Machine disk) and /.MobileBackups should automatically shrink as the locally stored data ages (assuming you are not still making “large changes”).

If you need the space (and Time Machine is not automatically giving it back as the disk gets full), or you need to constantly make “large changes”, then you can try this command (in a Terminal window):

sudo tmutil disablelocal

I have never run this command; the manpage has this description for disablelocal:

  Turn off local Time Machine snapshots and trigger automatic
               cleanup of accumulated local snapshot data.


How to Download to Computer a Voice Memo Received via MMS on my iPhone?

Forward the MMS to your E-Mail.
The Email client of your computer can then extract the attachment.

In the SMS/MMS view, touch edit in the upper right-hand corner.
Touch the circle to the left of the audio clip(s) you want to keep or send to others.
Touch forward at the bottom and then type in the email address that is linked to your phone, or touch the + and you can pick any of your contacts and send it to their cell/email.


The file that is executed when you run the command xattr is /usr/bin/xattr which is a python script that works out what version of python you have and then executes /usr/bin/xattr-2.7 for python 2.7. This script is also python and includes a import xattr to import the python module xattr from the Apple installed python libraries


You could perhaps try deleting the saved state files, then on next launch it would return to a default view.
The advantage is that no other settings would be changed - nothing lost.

~/Library/Saved Application State/com.apple.mail.savedState

Because it's an alias, don't delete the folder itself, just the contents.

That would potentially allow you to empty the Trash folder without having to first open it.


Can retina display features be enabled on older (non-retina) displays?

I don't see how this would be possible, its a hardware limitation.

The 15in Retina comes with a resolution of: 2880x1800 but the resolution is set to 1440x900 by default and has its pixels doubled.

That is why when you do doubling of pixels you get a smaller resolution because there is only so many pixels on the screen in which everything can be displayed.

The Retina mac's scale the UI by removing the pixel doubling. The screen it self has a high densit of pixels, meaning that a particular window can take up a smaller area by filling in those pixels.

However with a 1080p there are far fewer pixels/lower density and it is not physically possible to scale things to fit.

Theoretically it is possible but would require real time rendering of everything which would take time + processor usage. As compared to the Retina which has a hardware solution.

It is not the best explanation but I hope it delivers the point.
--EDIT

UI is designed based on pixels, so a button is placed on a form and it dimensioned to take up say 100 pixels wide and 20 pixels high.
On a lower resolution screen it will look much bigger because of the density of pixels, as compared to a higher resolution
where the user has the option to allow the UI to take up single pixels so its small or more than 1 pixel so it looks big.

So with that 100 x 20 pixel button, on a 19in screen: At a resolution of 100 x 20 it would take up the whole screen because there are
only 100 pixels for the UI to be able to fill up horizontally and 20 vertically.
If you had a higher resolution screen the UI is able to take up less space because of the higher pixel density. So the same monitor with a resolution of 400 x 80 will have the button take up a quarter of the screen, and if you allow it to double its pixel then the button will take up 200 x 40 pixels, looking bigger but better/more crisp because of the extra pixels.

That is why higher resolution screens have smaller UI, because the pixels are super close together and theres a lot of them allowing us to decide how we want it scaled, ie. how many pixels we allow for each designed pixel.

When Developers design UI they set anchors on everything, that is why when you change the size of the form it dynamically adjust the size of the buttons, boxes etc.

When I say hardware rendering I mean the pixels are placed per pixels or simply multiplied by the current ratio. So at full resolution 1 pixel is 1 pixel on the screen. At a different resolution 1 pixel might be allocated 2 pixels.


How to view download progress while Finder downloads new iOS version?

Unfortunately there's no immediate way.
But see this article: https://discussions.apple.com/thread/250790312

While there is no progress bar available, one potential way to estimate the progress is through Terminal, with the following command:
ls -lhrt ~/Library/iTunes/iPhone\ Software\ Updates

It will show the size of the current (.ipsw.download) and all previous (.ipsw) update files, which can be used to estimate progress. For example, for a 2.9G update file (can be estimated using previous update files), if we see that the current update file size is 2.3G, then the progress would be approximately 2.3G / 2.9G = 79%. By running the above command periodically, we can somewhat know how long it may still take (or at least the downloading is still in progress and not stopped because of network or other issue).


As far I know, Apple purchases are not transferable to other Apple IDs. You'll either have to repurchase your apps or authorize your device to work with both Apple IDs.

You can continue to use the old apps with your iPhone under the new Apple ID, but you won't be able to update them. To update the apps, you have to log in with your father's Apple ID, update the apps, transfer them to your iPhone.

Using your Apple ID for Apple services

  I have purchased music, apps, or books with multiple Apple IDs. How can I get all of this content onto my iOS device?

  First, you need to copy all of your purchased content so it is on the same Mac or PC with iTunes. This computer should be the one you sync your device with.

  Next, authorize your computer to play content with each Apple ID in iTunes. Once your  computer is authorized for all your content, it can be synced to your iPhone, iPad, or iPod touch.


Unable to find an album in iTunes while I see it using web browser

Your link to the iTunes web preview points to the US store. Looks like that the album is not available in the Australian store. Some albums are region specific. That's why you could not find it in the Apple Music app on your iPhone.


macOS Catalina: Preview > Print... > Save As PDF, not really working

I have experienced a problem similar to yours.

Unfortunately for us, there seems to be no solution, but "the answer" to our questions was revealed in my telephone call to Apple Care. During this support call, a "second-level" tech support person stated:

  "Apple doesn't actually support PDF files with Preview. There is nothing we can do to help you."

UPDATE/EDIT:

A subsequent call to AppleCare got me to a different support person who was not afflicted with an attitude. Apple subsequently reviewed a copy of my PDF document, duplicated the behavior I saw, and collected some "system data" from my Macbook. I finally got the results of this, and Apple has indicated they have found an issue that will be addressed in a future update.


Can a Late 2016 MacBook Pro drive a 4K monitor with HDR?

In general yes. It depends on the monitor, because every monitor has a different definition of "HDR". I'm not sure but I don't believe macOS can output in the HDR10 codec at all. Unless you really need 4k HDR 60Hz then I wouldn't worry about bandwidth, because the typical user will rarely have content that can use all three features at once. For example when you're gaming just switch the monitor to 1080p to get an HDR update every 16.7ms, but when you are photo editing or video streaming switch to 30Hz for a detailed image. But that's on the off chance that it doesn't work all at once. Any other problems you may have won't likely be because of your computers driver if you get a compatible display.


How can I increase the mouse sensitivity of Magic Mouse?

Here are 5 Mac utilities that alter the mouse acceleration curve, speeds, and/or add features to mice in OS X:

USB Overdrive

$20 (Shareware; Free unlimited, fully functional trial)

  USB Overdrive is a popular program
  that works with just about any USB or
  Bluetooth input device. It allows
  users to customize mouse acceleration,
  scrolling, clicking, and more. You can
  even configure per-application
  settings. A new version that supports
  Multi-Touch in Apple’s Magic Mouse is
  in development and expected soon.

Version 3.0.1 compatible with 10.4, 10.5, or 10.6

SteerMouse

$20 (Shareware; Free 30 day trial)

  Aside from mouse acceleration,
  SteerMouse offers a ton of other
  advanced features. Configure up to 16
  buttons, modify scroll wheels/balls,
  and set the cursor to automatically
  move to a specific location on the
  screen when a window is activated.
  Support for the Apple Magic Mouse is
  pending.

Version 4.0.1 compatible with 10.4, 10.5, or 10.6

MouseZoom

Free

  While MouseZoom does not alter the
  acceleration curve itself, it does let
  users bump tracking speeds beyond
  those available in System Preferences.
  An ideal solution? No, but it’s a free
  alternative that helps ease the pain.

Version 2.2 compatible with 10.1, 10.2, 10.4, 10.4, or 10.5

Mouse Acceleration

Free

  This Preference Pane is based on
  Richard Bentley’s MouseFix – a
  non-user-friendly command line
  utility. This version, however, makes
  it easy to increase mouse precision
  and speed up mouse movement with
  visual aids.

Version 1.0 compatible with 10.4 or 10.5

BetterTouchTool

Free

  This is a brand new piece of software
  that just came to be within the past
  couple weeks. It’s in beta and still
  buggy, but it packs some nice features
  and is in active development. I can’t
  say for sure whether it customizes OS
  X’s acceleration curve or just
  supercharges the maximum tracking
  speed. The real reason to give it a
  shot, though, is if you have a Magic
  Mouse or MacBook that supports
  Multi-Touch gestures. BetterTouchTool
  lets users assign specific actions to
  advanced finger gestures and can
  simulate a middle-click. It can even
  bring the Mighty Mouse’s Exposé
  functionality to the Magic Mouse.

Compatible with 10.6

ControllerMate

$15

  ControllerMate is a controller
  programming tool that allows you to
  customize the behavior of your HID
  devices — keyboards, keypads, mice,
  trackballs, joysticks, gamepads,
  throttles, among others.
  ControllerMate’s philosophy is to be
  as flexible as possible, to provide a
  set of basic programming tools, and to
  allow the user to combine those tools
  in an endless variety of ways.

SOURCE: This was posted on Nov 24th, 2009 at MacYourself.com. Some utilities are probably updated now. I’ve used USB Overdrive with certain success.


Eventually I had to call Apple senior support to fix this.


Sharing screens/monitor between Asus Laptop and iMac

I'm afraid that's not possible...

The closest you can get to that is by using Target Display Mode as described here. The problem, though, is that TDM is only available when running OS X on the iMac. Furthermore, you won't be able to use the iMac even though it's technically running.

Judging from this question here at Ask Different, TDM doesn't seem to support multiple displays while running anyway.

I've looked at this before and did some research for this question, and I was unable to find anything beyond streaming the contents in an AirPlay-like fashion, which I doubt is usable in your case.


Change Finder Printing default to print 100%, not scale to fit

If you drag and drop onto the Printer queue window, or otherwise send a job to print without settings the print options, then CUPS will fall back on the default options for that queue.

Check the manual to see if there's a way to set the default for your printer using its control panel, or other method.

Failing that, you can set the default options for a specific queue in the CUPS web front-end. First, make sure that you can access the CUPS web interface:

cupsctl WebInterface=yes

Then in your browser, go to http://localhost:631

Click on Printers in the menubar at the top. Click on the print queue. Then choose Set Default Options from the 2nd drop-down menu.

..

You may find a Fit To Page parameter, with options:

But the available options will depend on the definable characteristic of your printer. The fact that it is scaling suggests it does have such a setting.

As for the lp command: that command sends files to a print queue, and you can specify the job options that are used. To find the appropriate options, use:

lpoptions -l <printQueueName>

The print Queue Name is optional for the default printer.

So, for my HP LaserJet, I get (among other things)

HPPaperPolicy/Fit to Page: PromptUser *NearestSizeAdjust NearestSizeNoAdjust

The asterisk shows the current default. If I wanted to change that for a specific file, I would use:

lp -d <printQueueName> -o HPPaperPolicy=NearestSizeNoAdjust /path/to/file

Again, you don't need the -d flag to set the destination if it's the default printer.


Launch App with Automator when system is idle

If you want to actually save energy, use brightness.c instead of Shady. Shady doesn't reduce the backlight levels of displays, and LCDs usually require a similar amount of energy to display dark and bright pixels.

You can see the time since the last human input device (keyboard or mouse) action with ioreg:

ioreg -c IOHIDSystem | awk '/HIDIdleTime/{print $NF/1000000000;exit}'

If you are for example wathing a video with VLC, pmset -g assertions will contain a line like this:

   PreventUserIdleSystemSleep     1

So you might use a script like this:

#!/bin/bash

while sleep 0.5; do
  idle=$(ioreg -c IOHIDSystem | awk '/HIDIdleTime/{printf "%i",$NF/1000000000;exit}')
  current=$(brightness -l | awk '/display 0: brightness/{print $NF}')
  if [[ $idle -ge 10 ]] && pmset -g assertions | grep -q 'PreventUserIdleDisplaySleep *0'; then
    [[ $current != 0.000000 ]] && old=$current
    brightness 0
  else
    [[ $old ]] && brightness $old
  fi
done

It doesn't make any sense to execute over ten new processes every second though.


Share a Mail.app mailbox between multiple computers

I had a similar problem a few years ago and decided to move to a better email service. I chose Gmail, mainly because of the >10GB storage.

You can migrate your locally stored messages via IMAP. Once you set up your Gmail account, add the IMAP server to Mail. Then drag and drop all the messages you want to migrate on the Gmail inbox. IMAP will do the rest.

Adding the IMAP server to multiple devices will obviously keep them all in sync.

In general, I would recommend this over using a local option. IMAP is a superb protocol and I don't see the advantage of trying to sync the local archive in any other way.


What image file formats are commonly imported into Keynote and PowerPoint for Mac?

Yes, these are standard image formats that OS X, Keynote, and PowerPoint for Mac all support.

There are not any special Mac graphics formats that would be better for you to use.


Homebrew: change name of group ownership in /usr/local/ so admins and standard users can brew

This can work if you also then make /usr/local/ and everything under it group-writable with chmod. The current permissions have them writable only by localadmin.

Yes, you will need to do something about the umask for users running brew. Otherwise users won't be able to modify stuff brewed by other users, even if they're both in the brewers group. You probably don't want to change their default umask, because then all the files they create would be group-writable, which is probably not what you want. You might use a custom wrapper script around the brew command which sets the umask to 002 for just the duration of that command, e.g. by doing the umask and brew calls in a subshell.


In Finder, go to ThisAutomatorThing.app

Right click. Show Package Contents.

Go to folder /Contents/, and open Info.plist file with a text editor. Find something like:

<key>CFBundleName</key>
<string>6ARbL3D-C0D4</string>

If the string is exactly the gibberish in notification, replace it with you app name.

You MIGHT need to 1) reset LaunchServices to delete the old cache and reflect the change:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

AND/OR, 2) reset LaunchPad:

rm ~/Library/Application\ Support/Dock/*.db;killall Finder


How can I skip the desktop while cycling through finder windows with cmd+`?

Desktop is a folder, so cycling between active folder is an expected behavior in Finder. The only way to achieve what you want is to hide Desktop by entering the command below.

defaults write com.apple.finder CreateDesktop FALSE

After this, cycling between window will happen to the folder you’ve opened. This suggestion is recommended only if you don’t use Desktop to place temporary files.


In Activity Monitor, is the percentage out of each core or out of each virtual core?

The CPU percentages shown in Activity Monitor are 100% for each virtual core.

Therefore, for your hyper-threaded dual-core processor, 400% is 100%.

In my case, the hyper-threaded quad-core in my Mac means that 800% is 100%.


How to trace what is re-entering jet.com super-cookie?

You can use a command line utility called fs_usage to find out which application is accessing a file.

To keep an eye on the files stored for this "jet.com" entry the following command will show all activity on all files that contain "https_jet.com" in the file name or path.

sudo fs_usage -f filesystem | grep "https_jet.com"

I'd recommend running this command and trying to delete the entry again. You'll be prompted for your password because of the sudo command at the beginning, but that's necessary because fs_usage needs elevated root permissions. To cancel the command once you think you have enough information hold down CTRL and hit C.

For example while running that command and removing the entry using Safari's preference pane I get the following entries, which shows activity from Safari, WebKit, dbfseventsd and fseventsd on these files. If the removal of these files is being prevented or if something is recreating them, I'd expect you to see something that might help you identify the culprit.

00:58:59  unlink            /Users/alistair/Library/WebKit/MediaKeys/https_jet.com_0                         0.000010   Safari
00:58:59  getattrlist       /Users/alistair/Library/WebKit/MediaKeys/https_jet.com_0                         0.000003   Safari
00:58:59  rmdir             /Users/alistair/Library/WebKit/MediaKeys/https_jet.com_0                         0.000002   Safari
00:58:59  unlink            /Users/alistair/Library/WebKit/MediaKeys/https_jet.com_0                         0.000002   Safari
00:58:59  getattrlist       /Users/alistair/Library/WebKit/MediaKeys/https_jet.com_0                         0.000002   Safari
00:58:59  rmdir             /Users/alistair/Library/WebKit/MediaKeys/https_jet.com_0                         0.000002   Safari
00:58:59  open              /Users/alistair/Library/Safari/Databases/___IndexedDB/https_jet.com_0            0.000042   com.apple.We
00:58:59  getattrlist       /Users/alistair/Library/Safari/Databases/___IndexedDB/https_jet.com_0            0.000003   com.apple.We
00:58:59  rmdir             /Users/alistair/Library/Safari/Databases/___IndexedDB/https_jet.com_0            0.000003   com.apple.We
00:58:59  open              /Users/alistair/Library/Safari/Databases/___IndexedDB/https_jet.com_0            0.000004   com.apple.We
00:58:59  getattrlist       /Users/alistair/Library/Safari/Databases/___IndexedDB/https_jet.com_0            0.000002   com.apple.We
00:58:59  rmdir             /Users/alistair/Library/Safari/Databases/___IndexedDB/https_jet.com_0            0.000002   com.apple.We
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000008   Safari
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000002   Safari
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000013   Safari
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-wal     0.000006   Safari
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-wal     0.000002   Safari
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-shm     0.000002   Safari
00:58:59  stat64            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000025   Safari
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000005   Safari
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000003   Safari
00:58:59  unlink            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000194   Safari
00:58:59  unlink            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-wal     0.000271   Safari
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-shm     0.000004   Safari
00:58:59    HFS_update      /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-shm     0.000003   Safari
00:58:59  unlink            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-shm     0.000070   Safari
00:58:59  stat64            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000006   Safari
00:58:59  stat64            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-wal     0.000004   Safari
00:58:59  stat64            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-shm     0.000003   Safari
00:58:59  access            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-shm     0.000020   dbfseventsd
00:58:59  access            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-wal     0.000004   dbfseventsd
00:58:59  access            /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000003   dbfseventsd
00:58:59  lstat64           /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage         0.000019   fseventsd
00:58:59  lstat64           /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-wal     0.000003   fseventsd
00:58:59  lstat64           /Users/alistair/Library/Safari/LocalStorage/https_jet.com_0.localstorage-shm     0.000002   fseventsd


How do I stop App Store multiple downloads

Check to see if you still have the "iWork '09" folder in your main Applications folder.  The updated versions don't replace the old ones there, so the App Store keeps seeing the previous version and thinks you need to update.  (iMovie and GarageBand have the same issue; previous versions were installed into a folder inside the Applications folder.)


Running Multiple X11 Servers Simultaneously

Duplicate /Applications/MacPorts/X11.app to another name, edit the other name's Content/Info.plist, change both “org.macports.X11” to another name.

Not sure changing both is necessary.


How to store new iWork (2013) documents in a flat file (for version control)?

The tool keynote-to-text gives a textual representation of a .key file. You can register it as the text converter for a Keynote file by adding to .gitconfig:

[diff "keynote"]
  binary = true
  textconv = /PATH/TO/KEYNOTE/keynote-to-text

And .gitattributes:

*.key diff=keynote

Then git diff provides useful output:


There might be a better way to do this, but this should work.

Upload the image to imgur.com. Then get the direct link to the image (it will look something like http://i.imgur.com/ipB4C6r.png). Open that url in Safari on your phone, hit the Share button at the bottom of the screen (the box with the arrow pointing up) and hit "Add to Home Screen."


Health data keeps disappearing without reason

Give it an hour then open it again.
For some reason, it can take a long time to catch up.

Don't try to force it - I did that once in the early days & lost about 3 weeks of data - which replaced itself with a marathon 79,000 steps in one day, then 20 days of no info.

I've noticed it is a lot better since iOS 8.3, in fact, I'd forgotten it used to do it until your post reminded me.


How can I back up the phone numbers on my iPhone?

If your whole contacts (Name, Cel, Email) are stored on Gmail, you can use it to sync over the air directly to your phone.

First, create a backup of your contacts and delete the ones you have in your iPhone (this will prevent any merging issues).

Go to Preferences > Mail, Contacts, Calendars > Add Account

Add your Gmail account and when prompted, turn on the "Contacts" option. This will import all your contacts from Gmail directly to your phone.

You're done! your Gmail contacts should be now in sync with your phone, if you use Outlook as your main application to edit your contacts, remember to sync it with Gmail first.


It doesn't look like you can do it in Keynote 2013 as Apple has removed this feature with this version.

An idea that you could do is to make a new Keynote file with the secondary theme that you want, copy the slide, and then paste the slide into your presentation.


I checked now and it is 130 MB / minute.


//////////////////////////////////////////////////////////////////////////////

EDIT: Upon rereading the question, I see that my answer was actually off topic.

//////////////////////////////////////////////////////////////////////////////

I have a solution for what you would like to do. It's actually really simple, but it would be to difficult for me to explain it in writing so I recorded a videos for you.

Trigger a USB event using Apple's Automator app

:)

PS. In the video I talk about UBS devices because I didn't realize you wanted this to work for Thunderbolt. But I'm pretty sure the solution will still work just as well for Thunderbolt. :)


Move all contents from a folder to another with shell script

The space character is used by bash to separate different parameters to a command so you need to protect/escape it if it occurs in filenames (or other parameters):

mv /Users/diogosaraiva/Music/Downloads\ -\ Youtube/Novas/*  /Users/diogosaraiva/Music/Downloads\ -\ Youtube/Tratadas

You can also use quotes to protect the space characters from being misinterpreted by the shell but need to move the * outside the quotes then to allow wildcard expansion:

mv "/Users/diogosaraiva/Music/Downloads - Youtube/Novas/"* "/Users/diogosaraiva/Music/Downloads - Youtube/Tratadas"


Apple says:

  Use only a soft, lint-free cloth. Abrasive cloths, towels, paper
  towels, and similar items may cause damage to the item.

  Disconnect your Apple product from any external power sources.

  Disconnect any external devices and other cabling from the product.

  Keep liquids away from the product.

  Don't get moisture into any openings, and don't use aerosol sprays,
  solvents, or abrasives.

  Do not spray cleaners directly onto the item.

You obviously managed to get liquid inside and on to your logic board.

Since it was mainly alcohol you might be lucky, by drying it for a while, but if the damage was done you are out of luck.


Macbook pro 2016 keeps getting panic mode

is there high hopes in Apple care finding and fixing an unpredictable issue like this?

Yes. And if your MBP is still under warranty, I wouldn't think twice about calling Apple. They can assist over the phone and may even be able to run some diagnostics remotely. And, if necessary, depending on where you live they may be able to send someone out to you if it can't be resolved over the phone. The worst case scenario is you will need to bring it in to Apple or one of their authorised repairers.

  What are the most likely causes for this

Now this is not so easy to answer, as there is a multitude of possible causes for this behaviour. However, there are a few things you can try yourself. See below.

Run Apple Diagnostics

Follow the steps below to run Apple Diagnostics:

Fully shut down your Mac
Restart your Mac
Immediately press the D key and keep it down until you see the Diagnostics screen appear
Wait for Diagnostics to finish (this typically only takes a few minutes)
Once complete, one of two things will appear on the screen:

a No issues found message
a brief description of any errors found plus further instructions

If the diagnostics test does find errors, take a note of what they are

Note: If pressing and holding the D key at Step 3 doesn't work, start again at Step 1 and, at Step 3 press and hold both the OptionD keys instead. This will try and run diagnostics from the internet instead, so you will need to allow more time for it to complete.

Regardless, take a note of what happens as this will be useful if/when you contact Apple.

Boot into Safe Mode

Follow these steps to boot your Mac into Safe Mode:

Fully shut down your Mac
Restart your Mac
Immediately press the Shift key and keep it down
Let go of the Shift key when you see the login window (NOTE: If you have FileVault enabled you may need to log in twice).
If there's anything you've identified that will normally cause a crash, then try repeating those steps while in Safe Mode to see if you can get your MBP to crash again. If there isn't, try using your MBP for long enough to see if you can get it to crash.
Exit Safe Mode by restarting your Mac as normal
Once again, test to see if your still crashes

If you find that your MBP works fine while in Safe Mode, but not when booted normally, then let me know and I'll explain the process of identifying the culprit (it's likely to be a login item, corrupted font, or kernel extension).


Do sideloaded iOS apps get permissions without asking?

Yes, it will still ask for permission. Just as if you had downloaded it from the store, it will fail to access your camera, contacts, notifications unless you grant permission.

This is important for developers, because it helps ensure that they catch any bugs where they don't ask when they are testing on their devices.  Apps loaded from Xcode follow the same rules in this regard as apps from the App Store.


The proper command to remove the ACE from the folder in SIP-disabled mode is:

sudo chmod -a "everyone deny delete" /Applications

You can also remove (or add) ACL entries by number/index:

sudo chmod -a# 0 /Applications


Find original filename after Data Rescue recovery

Data rescue is fairly sophisticated program on the Mac. If there were any traces the filename in the filesystem, that software puts the file name back when it performs a simple undelete. What you are seeing are video fragments of files that were found on the filesystem totally detached from a directory entry.

In short you're not going to be able to get the file names back without a backup or other source of the file names.

Hopefully, those AVI files are actually complete files and not just fragments of video content that it managed patch together with a proper header and a sequentially made-up filename.


I suspect this is a hardware issue and recommend taking it to an Apple service center.

This happened to me once on a Dell laptop. Our IT department replaced the keyboard and that fixed it.

To diagnose I determined it wasn't a software issue by noticing the key could repeat before the operating system had loaded. If you are dual booting Windows you could use the same technique to determine if it is a software or hardware issue.


I downloaded iTunes 10 but now it won't update my iPod Touch software

Is there a error number associated with this error?

Did you check to see if you have an internet connection?

Did you restart your computer?

Did you wait a while and try back later? Apple could be experiencing a downtime when you tried to access their server.

Do you have a firewall on? Is the port open for iTunes?

It could be any number of things...Let me know if this helps!


You dont say which 2009 iMac you have, but even the Late 2009 27" seems to support only one external display, up to 2560 x 1600. (From things like Everymac.com and MacTracker)

How have you managed to get two external displays running from 1 miniDisplayPort?

I doubt very much whether these machines have sufficient graphics hardware to drive 3 displays - 256Mb or 512 Mb Radeon 4000 series.

There may be third-party USB solutions, but they are likely to be annoyingly slow. It's USB 2, for starters, which does not have sufficient bandwidth/speed.


Get Swipe Left in Mail To Show 'Delete' Instead of 'Archive'

Go to Settings → Mail, Contacts, Calendars.
Select the Gmail account in question.
Select Account → Advanced.
In the second section called "Move Discarded messages into" change Archive Mailbox to Deleted Mailbox.

The messages will then be deleted instead of archived.

Apple KB Article: Archive your Gmail messages


Bad WiFi reception when using external screen

I may have an answer for you.

The AirPort card in this model is located at about where the play/pause and volume buttons  are and the antennas are built into the display. When you close the lid, the antennas are being pointed sideways instead of up.

Not only that, but now you've added an extra layer of glass and aluminum to block the radio waves being transmitted from your AirPort card to your AirPort Extreme. This is probably what's causing the issue.

There's not really a fix for this, as it's how the MacBook Pro was designed.

A workaround, however, would be to leave your MacBook Pro lid open when connected to your display. If you prefer your main screen to be the external display, you can change which display is primary. There are some pretty good instructions out there that explain how to do this.


Is there a quick way to switch between iTunes accounts in AppleTV?

The only way to switch is via the account settings.


It would depend on what device you are viewing the photos.

In case of iPhone:

To view slides in random order (shuffle) turn the shuffle on.


I use to have multiple dropbox instances running at once. I think you can put db  app on the drive and use the same trick I did.

HOME=/Volumes/Whereever/you/wanna/go; /Volumes/Whereever/Dropbox.app/Contents/MacOS/Dropbox &

One thing. With this method you change your default $HOME into your new path. So Dropbox will create a folder called Dropbox in that path.


"Differentiate without color" setting in Accessibility System Preferences

The only change I've found so far is changing the dots in Messages, as some other users have pointed out. I couldn't find any changes in Finder, which surprised me, since Tags would definitely benefit from this feature.

EDIT 1: This book excerpt would seem to corroborate that: https://www.safaribooksonline.com/library/view/os-x-yosemite/9781491948484/ch09s02.html


An intermittent issue like that could be as simple as broken wires, or cracked internal connectors, that make/break connection, which causes the unit to sometimes work, sometimes fail.

It would be prudent to send the unit in for repairs by Apple, and hopefully you have a Time Machine backup of your system.


Is there a way to add Services to the Trash Can's context menu?

In Yosemite and before, maybe (though exactly how is off-topic for this site), but specifically with El Capitan and forward, it's no longer possible to inject code into running processes, which is about the only way I can think of that you'd be able to override a system menu like that.


How do I automatically resize all iPhoto pictures above a certain size?

There is no way to do this in iPhoto, as what you're doing is destroying data, and iPhoto is built to expressly avoid this.

So, File -> Export, set the Kind to Jpeg and then choose from the Quality setting as appropriate. Export the images to a folder on the desktop.

Trash the images from iPhoto.

Import the exported ones.

Note some things 1: You lose your lossless editing history and Faces data at the very least. If any of the images are used in Books, Slideshows etc then these will have to be remade.

If space is an issue, have you considered moving the Library to a larger disk - an external, for instance? It's easy:

Make sure the drive is formatted Mac OS Extended (Journaled)

Quit iPhoto

Copy the iPhoto Library from your Pictures Folder to the External Disk.

Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.

Test the library and when you're sure all is well, trash the one on your internal HD to free up space.


What is updated by "a software update is required to connect to "?

That Apple page reads, in part:

If your iPhone, iPad, or iPod touch has a newer version of iOS than is supported by your Mac, you may see this alert: "A software update is required to connect to your iOS device. Would you like to download and install this update now?"

Click Install to download and install the software so your Mac can update or sync your iOS device. If you continue to see this alert, make sure that your software on your Mac and iTunes are up-to-date.

All this does is install software on your Mac which allows macOS (usually an older version) to work with a new version of iOS on your iPhone. As for which specific software is updated (system files and/or iTunes) I do not know, but this update will not update your Mac to a newer version of the operating system.
I saw this window pop up after I'd updated my iPhone 8 to the latest iOS some weeks ago. My iMac is still running Mojave because of some 32/64 bit app incompatibilities.


Hooking up multiple adapters in series to get from one type of connector to another, VIA a third type of adapter doesn't always work. However there are enough exceptions to the rule that it is worth trying if you don't mind losing money on unusable adapters or returning said adapters.

There are USB-C to DVI adapters that should work. Amazon sells several makes and models but a simple Google search should turn up a bunch more.


Can an iPhone be backed up when its screen has been damaged?

Yes - the screen has no bearing on whether the dock connector and internals are operational. You can charge the device on a wall adapter for 30 minutes and then plug it in to iTunes.

As long as the device is working (i.e. whatever damaged the screen didn't also damage the connector and the storage), then it will show up in iTunes and let you make a backup.


Get video from iPhone Videos app onto Mac/PC

Assuming iOS 7.

If the iPhone has been synced with the target Mac, it should be straightforward. Go to the home folder and then go into the folders in succession

Music -> iTunes -> iTunes Music -> Movies

Once in the Movies folder, all the movies that you see on your iPhone should be visible. Then copy that file to wherever else you want it.


I think you should check out instapaper which is free.  It helps you do what you want to do without dealing with bookmarks.  Here' is the description from their web site:

"Save long web pages to read later, when you have time, on your computer, iPhone, iPad, or Kindle."

I use it so I can save something on my phone and read it later from another device.


How can I disable the iPhone's microphone?

If security is a major concern, I'd assume that a software hack is not the solution. There still is a chance of malicious software importing code which re-enables the audio functionality.

I read NSA guidelines for Mac OS X 10.6 about disabling iSight on Macs where is was recommened to physically remove the webcam for absolute security.

If you do not want to physically remove your iPhone's microphone, I would try to distort the audio as good as possible - that would leave a spy with imprecise mumbling noises. The iPhone 4 can be muted quite effectively by just closing the hole at the bottom. There is a good chance that closing the hole of the microphone has the same effect. You could apply prestik or hot glue for example.


How can I troubleshoot or fix when macOS Photos app import from a connected iPhone gets stuck on "Preparing to import from..."?

How to get the photos to appear for selection in the macOS Photos app after only waiting 1-2 minutes

Disconnect the iPhone.
Close the macOS Photos app.
On the iPhone, open Settings.
Select Photos in the Settings App of the iPhone.
In the "Transfer to Mac or PC" section of the Photos settings, Automatic is the default. Change it to Keep Originals.
Open the macOS Photos app.
Reconnect the iPhone and select the device in the macOS Photos app.

Keep Originals Setting

Source:
Photos 'preparing to import from iPhone' message....


Making items added to paths via paths.d show up everywhere under Mavericks

Option 1: just use /etc/launchd.conf

Add a line like

setenv PATH /Users/username/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

to /etc/launchd.conf and restart to apply the changes.

The default path is /usr/bin:/bin:/usr/sbin:/sbin.

/etc/launchd.conf applies to all processes, which includes graphical applications, non-login shells, and programs started by launchd jobs.

Edit /etc/launchd.conf manually if you see that some program or installer has added new paths to /etc/paths or /etc/paths.d/*.

Option 2: use a launchd job to set the path during startup

Save this plist as /Library/LaunchDaemons/setpath.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>setpath</string>
  <key>ProgramArguments</key>
  <array>
    <string>bash</string>
    <string>-c</string>
    <string>launchctl setenv PATH "$((launchctl getenv PATH|tr : \\n
    cat /etc/paths /etc/paths.d/*)|awk '!a[$0]++'|paste -sd: -)"</string>
  </array>
  <key>RunAtLoad</key>
  <true/>
</dict>
</plist>

The program should be run the next time you restart. It changes the PATH of the root launchd process, which is inherited by the user launchd process.

In my opinion it's easier to just edit /etc/launchd.conf though.

Option 3: make bash run path_helper even for non-login shells

path_helper is run from /etc/profile, /etc/zshenv, and /etc/csh.login. zsh reads /etc/zshenv even for non-login shells but bash does not read /etc/profile for non-login shells.

This makes bash run path_helper for interactive non-login shells and for non-interactive non-login shells:

echo 'eval $(/usr/libexec/path_helper -s)'>>~/.bashrc
setenv BASH_ENV /etc/profile|sudo tee -a /etc/launchd.conf

It does not make bash run path_helper for non-interactive non-login shells invoked as sh. It also does not affect graphical applications or processes that are not started from shells.


Iphone 4s upgrade to iOS7 - Calendar appointments are gone

You can add your Google calendar to your iPhone 4s directly: Settings > Mail, Contacts, Calendars > Add Account > Google > Sign in and select to sync the calendar.


Apple Wallet (formerly Passbook) - Best way to add links

Since iOS7 you can add hyperlinks to the back of a pass and format the text that is displayed.

Simply add an  tag to the content of a field and the Apple Wallet app will render it as a clickable link.

For example: Click here

If you do not use an  tag but include a valid URL the Apple Wallet app will display it as clickable address.


How do I rebuild my HDD/SSD from scratch without Time Machine on MacBook Pro?

If the Users directory on the SSD is the same, ie., you haven't changed files, etc., then it is still the Users directory that the OS is using. However, if you did some terminal magic to make this transition I could see where things would get a bit hairy.

I'm not as familiar with the terminal, but I can tell you what I would do in this situation. I'd clone disk images of each drive to the TB using Carbon Copy Cloner or some similar piece of software. At least as a disk image you'll maintain the integrity of the files - I'm not sure how this is effected via encryption though. It may not even work.

Ideally, you'd reinstall OS X on the SSD and then use your Terminal magic to move the Users directory to the HD - if that is still your plan - mount the disk image files and move files accordingly, this should help with permissions. Again, I'm not sure how the encryption works into this either. And I've not seen many instances where moving the Users directory didn't result in some kind of mess. If you can keep it on the drive with the system, I think that would be best.

BTW - Lion should've installed it's recovery partition locally when you did the original install.

Perhaps not much help - but some things to think about.


Pencil by FiftyThree – Work with Apple Notes.app in iOS 9?

Yes - it works very well on all iOS devices up to and including the iPad Pro. The Pro does some special refresh rate enhancements with Apple's Pencil that you won't get full advantage of, but this stylus is very nice and I think some will prefer it's ergonomics over the faster response of the pencil.

From https://www.apple.com/apple-pencil/ this is explained as follows:

  When iPad Pro senses Apple Pencil, the subsystem scans its signal at an astounding 240 times per second, giving it twice the data points it normally collects with your finger.

So, your finger, the Paper by 53 pencil hardware and other stylus will be scanned at 120 times per second.

The other important feature that the Paper stylus and Apple Pencil share is that they communicate angle data to the iPad via Bluetooth. Apple's notes read that information in the notes app, but Apple's notes app do not read angle data from the Pencil hardware, so it's more like your finger with no additional bluetooth data for the Paper SDK. I've tested this on several iPad pro in the stores.


One thing you could do is start a new mail message to your recipient, then select the messages that you want to forward and drag them over to the new mail. They will be sent as attachments to your desired recipient.


Show an image without any border using Preview or some other built-in macOS app

What you need to do in Preview is to set the fill color of your image to white.  You may have a border but it will be invisible. If your page color is black, then set the background fill as black too.  You might need to set transparency to 100%.  A little trial and error should determine this part.

It is possible to set the Border color and Fill Color of your image in Preview. Open your image in Preview and go to the View menu item and under this menu, you'll see an option to Show Markup Toolbar. Make sure this is turned on. This will display the 2nd toolbar with the options to set the fill color and to set the border color. See the image below.

If you click Show Colors on the menu for setting the fill or border color you will get the Color Wheel to select the color. There is also a setting on the Color wheel for Opacity.


I've found a solution, it is not pretty clear, but it works.

First, I've rebooted my router

Second, in Settings -> General -> Network I've set Cellular Data and Enable 3G to OFF. After that operation WiFi indicator appeared and everything went well.

Hope it helps to those who experience the same problem.


Sierra update - wont recognise external soundcard

Looking at the Q&A for the sound card you mentioned (check the "Questions" tab on the linked website in the comment to the original question) you'll see the first question is about the availability of Mac drivers and the manufacturer response states that none are available.

Looks like your best option is to find a different USB sound solution or get your logic board repaired.

Edit: aha I forgot about SIP. Sierra broke a bunch of driverless stuff with SIP. There are ramifications for disabling it, but if you want to try it check out this Reddit post.


Not seeing hard disk in Disk Utility in Internet Recovery Mode

Based on the evidence I believe your hard drive has failed, and needs to be replaced.
You don't have to take it to Apple, there may be authorized repair centres near you.


How do I set which Apache / PHP 10.6 should run?

It's not so much your version of Apache/PHP have been reverted - it's just the wrong version is loaded.

If you have Mac OS X's Web Sharing enabled it will auto enable the version of Apache and PHP Apple provides using the LaunchDaemon org.apache.httpd.plist in /System/Library/LaunchDaemons (this will override MacPorts version). You'll want to disable this by either turning off Web Sharing in the Sharing Preference Pane or by running sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist.

When you installed Apache for MacPorts it installed a LaunchDaemon into /Library/LaunchDaemons which if enabled will start up the MacPorts version of Apache automatically. To enable it run sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist and you're off to the races.

If you're running apachectl to restart - make sure you've selected the right version. You may need to alter your $PATH to have /opt/local/apache2/bim before /usr/sbin

As for what version of PHP is being used; on the command line this will depend on your $PATH while for Apache it's entirely in your configuration of where the libphp5 module is. (/etc/apache2/ for the built in version, /opt/local/apache2/conf for the version MacPorts installed)


Make Skim save PDF's with embedded notes by default

Skim preferences has an option for "Automatically save Skim notes backups" which I highly recommend you turn on. This creates a .skim file next to the PDF. Skim still saves annotations to the extended attributes, but I've seen them go missing after sync with Dropbox. It's not supposed to, but it did. Hence, I always keep a notes backup in the .skim companion file.

Skim's big advantage over Preview and every other PDF annotating app is fast saves. This is possible only because Skim keeps the annotations separate from the PDF content. The PDF format is such that adding an annotation to a PDF page requires rewriting the entire PDF back to disk, which can be quite slow. Skim avoids this drawback elegantly because it doesn't rewrite the PDF, only the extended attributes.

So, turn on the backups option, and continue using CMD S in Skim for saving your work. If the extended attributes get wiped out, then when you launch the PDF in Skim, it will detect the .skim file and offer to load it & you can continue your work.

Bonus tip: DevonThink supports Skim annotations natively. So, if it finds a .skim file or extended attributes for the PDF file you're viewing in DevonThink, it will show the annotations too. This avoids the step of having to export a PDF with embedded notes from Skim, which is required for other apps to view annotations you've made in Skim. (Skim provides a free SDK for its annotations format, so other PDF viewers should be able to support skim annotations too.)


macOS annoyingly puts fullscreen videos in a new "space"

Have you tried adjusting the settings related to this in System Preferences > Mission Control?

The first checkbox there lets you disable automatic grouping of windows and there are other related options there too. You can also totally disable having multiple screens there.

I'm not sure if you're using macOS mojave and this is no longer a feature. Also this is the one gesture that I use..dragging from one side of the trackpad to the other with 3 fingers.


You need to list your disks to find the APFS volume disk where you want to change the password:

sudo diskutil apfs list

Now find the UUID of the cryptographic Disk User:

sudo diskutil apfs listUsers <your APFS volume, like: disk1s1>

Finally you can change the APFS volume password:

sudo diskutil apfs changePassphrase <your APFS volume, like: disk1s1> -user <the Disk User cryptographic UUID, like: 12345678-1234-1234-1234567890AB>


mp4 H264 video won't play in iPhone safari

MP4 is a container format, while H. 264 is a video compression codec. So to play H. 264 in Safari, you will need a video container like MP4 to host the encoded video.
Settings based on the MPEG-4 format offer a choice of two encoders: H.264 and HEVC (High-Efficiency Video Coding, also known as H.265). When you add an MPEG-4-based setting to a job, Compressor chooses the H.264 format as the default codec. You can change the codec to HEVC in the Video inspector if your computer is running macOS 10.13 or later. HEVC is a recently established compression standard that supports larger frame sizes (including 8K) and HDR10 metadata for high-dynamic-range video. HEVC playback requires a recent-generation Apple device running macOS 10.13 or later, iOS 11 or later, iPadOS 13 or later, or tvOS 11 or later.


can I upload photos through mobile safari?

Currently not, if the phone is not jailbroken.


You can map control+click to command+click globally with KeyRemap4Macbook. Put the following in your private.xml:

<root>
    <item>
        <name>Control+LeftClick Command+LeftClick</name>
        <appendix>Control+LeftClick Command+LeftClick</appendix>
        <identifier>control_click_to_command_click</identifier>
        <autogen>--PointingButtonToPointingButton-- PointingButton::LEFT, ModifierFlag::CONTROL_L, PointingButton::LEFT, ModifierFlag::COMMAND_L</autogen>
    </item>
</root>

This will cause any ctrl-click you type to be seen by the system as ⌘-click.  That will prevent the contextual menu (since you won't actually be producing a ctrl).  You'll still need to change your IDE settings, but this way you can keep the muscle-memory for the shortcut.


What's the meaning of the first two lines occurring after opening a Terminal window?

Hostname can be set by the wifi network's DHCP server, but you can turn this off - see https://superuser.com/questions/49891/how-can-i-stop-mac-os-x-overriding-my-hostname-when-i-receive-a-dhcp-request-on


Queries for Third Party Content in the iOS App

Yes, it uses the Instagram logo which is 'third party content'. When submitting an app like this, you will get another question asking if you have permission to use it. For uses like this, it generally means that you need to display the logo in a 'proper' way; what 'proper' means varies from company to company, but it usually includes things like not changing the color of the logo.

For the content, again this will vary per company, but usually you have to sign an agreement when using the SDK of said company. I don't know the specifics for Instagram, but this could include a section about giving you permission to show the content in your app, provided that you give attribution (to the company, the author of the photo, or both).

From the documentation:

  It’s your responsibility to determine and follow regulations that apply in each territory.

This is probably so that such third parties cannot sue Apple because there is an app available in their App Store violating the regulations; Apple will forward such complaints directly to the developer of the app.


MBPr shown to be connected to the net, while the router doesn't response to pings

I am experiencing the same problem.  The issue is the router.  There are a number of reasons why the router would do this....memory of the router is too small, too many connections for it to handle, to just poor quality components.

The way you can verify that it is the router is by

Pinging the router (which you did and it failed)
Pinging another device on your network
Test connectivity from another device

As for as your WiFi indicator, having full bars has nothing to do whether it has network connectivity (getting an IP address and being able to browse).  The "bars" indicate signal strength and signal quality, which both relate to the physical radio connection, not the network connection.

If you are familiar with the OSI model, it is layer 1 and 2 that your "bars" are reporting back.  Layer 3 is where your connectivity comes into play.  Think of it like how your (wired) Ethernet adapter  determines whether you have 100MB or 1GB connectivity

What's the solution?

Get a good router; or better yet, build it yourself.  I am finding that the consumer grade stuff is getting worse and worse every year so I decided to make a change.

I recently built a pfSense router on some old Dell hardware and installed an Intel PCIe AC Wireless card and with all my testing, I have yet to have the problem reoccur.

There's even a good YouTube video on this:  pfSense: How to Turn an Old PC into an Epic Router


Mail.app on 10.8: How to get back the "N Messages Selected" label?

I usually just drag the selected messages a few pixels and then let them drop back. While you're dragging them, the number of messages is shown next to the cursor.

Not exactly the same thing, but it does the job for me.


I use PlainText it's free, with a $2 in-app upgrade to remove the ads if you don't like them.

I find that plain text is easy to store (search!) and share my recipes with. I use it on iPad and iPhone and have a reasonable collection of recipes on there. The Dropbox sync makes it easy to add existing recipes from other sources, or to back up.


Make folders opened by external apps open in a new finder tab rather than a window

I did this, not sure if it will answer it for you.

Finder Preferences > General > check "open folders in tabs instead of new windows"


Why don't you go to System Preferences -> Network to change it manually, with GUI.


AppleScript is written in English. Read what it says! Remove the posix path of from the code, and you'll get the HFS path.

Full code:

tell application "Finder" to get (container of (path to me)) as text


Automator task to open screenshots in Preview automatically

@Feanux I was answering your question and then you deleted it but I see you reposted it, anyway I have made a Automator app that does this and will attach a screenshot (that was taken by Automator).
As you can see it takes two screenshots, one for clipboard and one for preview/save

UPDATE:


Can I submit an app without iPad version to App Store?

No, you can't prevent an iPhone app from being installed on an iPad.  You can prevent an iPad app from being downloaded to an unjailbroken iPhone.  As mentioned in the comments, an iPhone app can run on an iPad in 'compatability mode'.

Your app should still look ok on an iPad unless your setting up autolayout constraints based on specific iPhone screen sizes.  One of the benefits of autolayout is that your app should be able to run on different screen sizes, including iPads.

You would need to indicate in the App Store description that this app is not designed to run properly on the iPad. I would recommend spending the time to make it look decent on the iPad knowing that people will still download it on their iPads regardless of what you state in the description.


tracing stuck local to local mails in macOS

I know you want to use the command line, but use the GUI to add one mail account in Apple mail so you can view the sending mail server status. This completes the setup and saves your sending credentials so mail can use them to log in and send the mail.

Send one mail using the official mail app, then try again from the command line.

If you still get errors from the command line, use the connection doctor to check the results of the sending mail server status. All green lights indicate success - show the logs if you have red or orange lights on the status.

Here are relevant threads if you want to do things the harder, longer way. The first has great test commands and the second sidesteps the native system and installs new versions of mail/sendmail.

How to send an email from command line?
How to send email from OS X command line

The second link installs a complete sendmail package and avoids using the one that comes with the system, thus avoiding it altogether.


Can 'Find My Mac' work while the computer is sleeping?

If the Mac is sleeping there is no way for iCloud to locate it and it appears offline.

However, as you noted, you can enable Wake for network access in energy preferences for it to periodically wake and check the network allow remote wake up using and AirPort.

When the Mac connects to iCloud next time, your commands (locate, lock, wipe, message/alert) are sent to it.


How do I do a diagonal-arrow keyboard shortcut?

I suggest you to open your keyboard visualizer (by clicking on the flag that is near the clock in the menu bar).

This will make appear a window with a keyboard representation.

If you press the fn key, you'll see that the ← will become a ↖ (Home key) in this window while → will become ↘ (End key).

That's it: just press the fn+← or fn+→ to obtain the diagonal-arrow.


How to keep MacBooks keyboard and trackpad functionality when using Windows on Bootcamp?

Do you have Apple's bootcamp drivers? You should be able to go into Control Panel > Bootcamp and change your keyboard/mouse settings there...


To use the "java" command-line tool you need to install a JDK

UPDATE: PR was merged, fix will be available when version 3.0.1 is released.
This is a known issue that is being actively worked on.
I'm ignoring the alert for now, with the understanding that it will no longer show up once that PR is merged.


Open Outlook new message window from terminal

Office is moderately scriptable with AppleScript, so the command line interface to AppleScript can get the job done.

Try this (adapted from this blog post by Jim Shank), replacing the subject text, name and email as appropriate:

osascript -e 'tell application "Microsoft Outlook"' -e 'set newMessage to make new outgoing message with properties {subject:"My Subject"}' -e 'make new recipient at newMessage with properties {email address:{name:"John Smith", address:"jsmith@example.com"}}' -e 'open newMessage' -e 'end tell'

It's a bit lengthy, but it will get the job done. You could adapt this into a small script that you could call and provide parameters to more concisely (i.e. sendoutlook john@example.com "My Subject" "Hi John, blah blah blah") without too much work, but that's probably best left as a separate question.


Is there an iOS app for quick switching of the wifi network?

No, iOS applications do not have access to Wi-Fi settings and basically all other settings.


Unistall Realtek USB Ethernet Network Adapter

Check the Realtek site for the latest driver of your USB Ethernet adapter and download it. The driver zip file should contain an uninstall.zip. Unzip this also and double-click the resulting uninstall.command file. Enter the admin (root) password and reboot your Mac.

Using an uninstaller provided with the driver installer is recommended.

Provided it's a RTL8153 chip you can also pour the following content into a uninstall.command file and execute it:

#!/bin/sh
. /etc/rc.common

echo "                                                                  "
echo "Please type the password of \"root\" to Uninstall ..."
FROM=`dirname "$0"`

echo "Removing Apple USB Ethernet Driver..."

sudo kextunload /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815X*.kext
sudo kextunload /Library/Extensions/AppleRTL815X*.kext

sudo rm -rf /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815X*.kext
sudo rm -rf /Library/Extensions/AppleRTL815X*.kext

sudo touch /System/Library/Extensions/
sudo touch /Library/Extensions/

echo "Uninstall Complete."

Depending on your system version you have to disable SIP.

In Catalina you have to disable SIP in Recovery Mode first and mount the system volume read-write after rebooting: sudo mount -rw /. Additionally you have to chmod +x uninstall.command and add it to System Preferences > Security & Privacy > Privacy > Full Disk Access.

Enable SIP after uninstalling the driver!

If your kext has a different name (e.g. AppleUSBRealtek8153Patcher.kext) or paths have changed, you have to adjust it respectively in the file uninstall.command (e.g. AppleRTL815*.kext). Use at your own risk!


There are three current components to Apple's online photos.

iCloud Photo Library (Beta)
My Photo Stream
iCloud Photo Sharing

I think from your wording you are referring to the smaller parts and not the entire Photo Library in the cloud. The photo stream FAQ is quite good:

https://support.apple.com/en-us/HT201317

It mentions that you have a 30 day rolling window to save files that get stored in the stream. If you lost photos before that time - you can get help from this article:

https://support.apple.com/en-us/HT203511

Basically, you can use another iOS device or a PC/Mac to access the stream and see if the corruption is in the stream or on the device.

If you have backed up the photos, you can restore that iOS backup (or PC/Mac Backup) and get things back based on how recently your backups run.


I am facing the same issue. I believe it is caused by the newly added gcc v5.1.0 package.

Rolling back to gcc v4.9.2 solved the installation issue with rtorrent v0.9.4 package. You can rollback to gcc v4.9.2 two different methods based on the current state of your homebrew installation.

Method A

If you have not performed brew cleanup after brew upgrade --all then you can simply switch to older version of gcc by running brew switch gcc 4.9.2. For further information read this answer.

Method B

Unfortunately if you have a habit of running brew cleanup after brew upgrade --all (like me ;-(), follow the steps mentioned below to install gcc v4.9.2 package.

brew uninstall gcc
brew tap homebrew/versions
brew install gcc49

Final Step

Install rtorrent by running the below mentioned command in your teminal.

brew install rtorrent


Dell docking station D3100 with MacBook Pro

Yes, this worked for my MacBook Pro which is the Late 2013 model. You need to go to the DisplayLink website and download the driver for your Mac, the driver is called "DisplayLink USB Graphics Software for Mac OS X." Then reboot your Mac and then plug in the Dell D3100.


My Macbook can connect to ethernet over Ubuntu but not OS X

If you can see the interface in /Utilities/System Configration > "Ethernet Cards", try creating a new network location.

If the issue persists in a new location, you can reset OS X's detected network interfaces by (re)moving /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist.  If you want to play it absolutely safe, you could (re)move the entire SystemConfiguration folder, but this will affect other settings (like custom network authentication, power management settings, etc.). NOTE: this step supersedes testing it in a new user since it removes global preferences (which affect every user).

If you're still not seeing it, try booting to your Recovery Partition, launching Terminal, and running ifconfig to see if the Recovery partition can see the network interface.  If the Recovery Partition sees it, a reinstall of OS X might be needed.  If it doesn't, well then you did something that I've never seen... :)


How to cause manual "Announce the time:" checkbox changes to take effect

macOS uses NSUserDefaults to implement defaults. It offers an Objective-C interface and is part of the Foundation framework used by System Preferences and most applications to deal with preferences.
Caching of defaults is handled by the framework and the calling application is not expected to know about or manipulate the cache. See NSUserDefaultsDidChangeNotification and Key Value Observation (KVO) for how applications can track changes.
CFPreferencesSynchronize
NSUserDefaults itself is implemented with the C based CFPreferences set of functions, found in CoreFoundation framework.
In this layer, the documentation for the function CFPreferencesSynchronize reads:

This function is the primitive synchronize mechanism for the higher level preference function CFPreferencesAppSynchronize it writes updated preferences to permanent storage, and reads the latest preferences from permanent storage.
Only the exact domain specified is modified. Note that to modify “Any User” preferences requires root privileges (or Admin privileges prior to OS X v10.6)—see Authorization Services Programming Guide.
Do not use this function directly unless you have a specific need. All arguments must be non-NULL. Do not use arbitrary user and host names, instead pass the pre-defined constants.

macOS 11.2 is partly open source. Be sure to check if defaults is part of the open section. This may be useful in determining which domains and suites the preferences affect.