How to create Recovery Partition for new SSD after restore via SuperDuper

If you still have the Recovery partition, you can transfer the partition manually.

The example given below was generated using two sparse disk images and Yosemite (OS X 10.10.5). You may have to jump though hoops that I did not have too. Some of these hoops are:

El Capitan and later users may need to disable System Integrity
Protection (SIP).
To enter some of the commands, you may need to boot from a USB device
(flash drive, HDD or SSD) or use Internet Recovery.
Add or remove the command prefix sudo.
Use the cd command to navigate to the proper directory (folder).
Precede a command or file with the proper path.
Make the proper adjustments if the sector size is not 512 bytes.
Deal with addition complexities, if employing Core Storage.

Below is the procedure for copying a Recovery partition from /dev/disk1 to /dev/disk2. This procedure requires the use of a third party command called gdisk. More information about this command can be found at the site "GPT fdisk Tutorial".

The initial contents of /dev/disk1 and /dev/disk2 are given below.

Steelhead:recover davidanderson$ sudo gpt -r show /dev/disk1
Password:
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  197892752      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  198302392    1697608      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
  200000000          7
  200000007         32         Sec GPT table
  200000039          1         Sec GPT header
Steelhead:recover davidanderson$ sudo gpt -r show /dev/disk2
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640   99328216      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
   99737856     262151
  100000007         32         Sec GPT table
  100000039          1         Sec GPT header

Image the entire source partition. This partition is very small and
normally is not mounted. Simply copy the partition to a file.

Steelhead:recover davidanderson$ sudo dd if=/dev/disk1s3 of=recovery.binary bs=40960
21220+1 records in
21220+1 records out
869175296 bytes transferred in 44.563133 secs (19504358 bytes/sec)
Steelhead:recover davidanderson$ ls -l
total 1697608
-rw-r--r--  1 root  staff  869175296 Jul 20 11:53 recovery.binary

Make room of for the new Recovery partition.

Steelhead:recover davidanderson$ diskutil resizevolume /dev/disk2s2 limits
For device disk2s2 MacintoshHD:
        Current size:  50.9 GB (50856046592 Bytes)
        Minimum size:  5.5 GB (5524418560 Bytes)
        Maximum size:  50.9 GB (50856046592 Bytes)
Steelhead:recover davidanderson$ diskutil resizevolume /dev/disk2s2 45G
Started partitioning on disk2s2 MacintoshHD
Verifying the disk
Verifying file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume MacintoshHD appears to be OK
File system check exit code is 0
Resizing
Finished partitioning on disk2s2 MacintoshHD
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *51.2 GB    disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS MacintoshHD             45.0 GB    disk2s2

Create the new Recovery partition on /dev/disk2. The new
partition has to be exactly the same size as the existing Recover
partition.

Steelhead:recover davidanderson$ sudo gdisk /dev/disk2
Password:
GPT fdisk (gdisk) version 1.0.1

Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): n
Partition number (3-128, default 3):
First sector (34-100000006, default = 88300264) or {+-}size{KMGTP}:
Last sector (88300264-100000006, default = 100000006) or {+-}size{KMGTP}: +1697608
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): AB00
Changed type of partition to 'Recovery HD'

Command (? for help): x

Expert command (? for help): a
Partition number (1-3): 3
Known attributes are:
0: system partition
1: hide from EFI
2: legacy BIOS bootable
60: read-only
62: hidden
63: do not automount

Attribute value is 0000000000000000. Set fields are:
  No fields set

Toggle which attribute field (0-63, 64 or <Enter> to exit): 49
Have enabled the 'Undefined bit #49' attribute.
Attribute value is 0002000000000000. Set fields are:
49 (Undefined bit #49)

Toggle which attribute field (0-63, 64 or <Enter> to exit):

Expert command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk2.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.
Steelhead:recover davidanderson$ sudo gpt -r show /dev/disk2
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640   87890624      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
   88300264    1697608      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
   89997872   10002135
  100000007         32         Sec GPT table
  100000039          1         Sec GPT header

Eject and reattach /dev/disk2. If you can not do this, then
restart the Mac.

Steelhead:recover davidanderson$ diskutil eject /dev/disk2
Disk /dev/disk2 ejected

Copy the saved image to the new Recovery partition. Since this is an
exact copy, use the hfs.util command to generate a new UUID key
for the HFS file system.

  When using El Capitan (OS X 10.11), the full path to the hfs.util command is
  System/Library/Filesystems/hfs.fs/Contents/Resources/hfs.util.

Steelhead:recover davidanderson$ sudo dd if=recovery.binary of=/dev/disk2s3 bs=40960
Password:
21220+1 records in
21220+1 records out
869175296 bytes transferred in 52.127608 secs (16673992 bytes/sec)
Steelhead:recover davidanderson$ /System/Library/Filesystems/hfs.fs/hfs.util -k disk2s3; echo
78A8438E-2299-3AF0-AD9E-3AC225B0554A
Steelhead:recover davidanderson$ /System/Library/Filesystems/hfs.fs/hfs.util -s disk2s3
Steelhead:recover davidanderson$ /System/Library/Filesystems/hfs.fs/hfs.util -k disk2s3; echo
0F4F5893-D9E1-3512-9B2B-2AEA0DE9FDE3

Eject and reattach /dev/disk2. If you can not do this, then
restart the Mac.

Steelhead:recover davidanderson$ diskutil eject /dev/disk2
Disk /dev/disk2 ejected

Attempt to recover any leftover free space.

Below a is first attempt. The diskutil resizevolume /dev/disk2s2 R
command fails.

Note also that diskutil resizevolume /dev/disk2s2 limits command
reports the wrong maximum size.

Steelhead:recover davidanderson$ diskutil resizevolume /dev/disk2s2 R
Started partitioning on disk2s2 MacintoshHD
Verifying the disk
Verifying file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume MacintoshHD appears to be OK
File system check exit code is 0
Resizing
Error: -69742: The requested size change for the target disk or a related disk is too small;
please try a different disk or partition, or make a larger change
Steelhead:recover davidanderson$ diskutil resizevolume /dev/disk2s2 limits
For device disk2s2 MacintoshHD:
        Current size:  45.0 GB (44999999488 Bytes)
        Minimum size:  5.5 GB (5524459520 Bytes)
        Maximum size:  45.0 GB (44999999488 Bytes)

Try again, but this time compute how large partition /dev/disk2s2
should be.

Steelhead:recover davidanderson$ sudo gpt -r show /dev/disk2
Password:
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640   87890624      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
   88300264    1697608      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
   89997872   10002135
  100000007         32         Sec GPT table
  100000039          1         Sec GPT header
Steelhead:recover davidanderson$ expr 10002135 \* 512 / 100000000 + 450
501
Steelhead:recover davidanderson$ diskutil resizevolume /dev/disk2s2 50.1G
Started partitioning on disk2s2 MacintoshHD
Verifying the disk
Verifying file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume MacintoshHD appears to be OK
File system check exit code is 0
Resizing
Waiting for the disks to reappear
Finished partitioning on disk2s2 MacintoshHD
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *51.2 GB    disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS MacintoshHD             50.1 GB    disk2s2
   3:                 Apple_Boot recovery                869.2 MB   disk2s3
Steelhead:recover davidanderson$ sudo gpt -r show /dev/disk2
Password:
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640   97851560      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
   98261200    1697608      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
   99958808      41199
  100000007         32         Sec GPT table
  100000039          1         Sec GPT header

This attempt succeeded. In practice, you never recover all the free
space. Note that the new Recovery partition /dev/disk2s3 was
relocated automatically.


2009 Macbook A1278 with only win10 loaded, need mac os x but cant install it?

Boot into recovery mode and if that doesn't exist wipe the entire disk and then boot using the USB drive.
You can wipe the disk by removing it from the macbook if recovery mode doesn't work.


Restoring of iPad using recovery mode fail due to 15 minutes timeout

This constantly happens to me and people I know.

Download the .ipsw file - links to true Apple Software are listed at https://ipsw.me
[files hosted by Apple, the site simply makes the files findable, as Apple doesn't publish the locations]
Place the file in ~/Library/iTunes/iPad Software Updates or ~/Library/iTunes/iPhone Software Updates depending on device.
Launch iTunes & connect your device
The ipsw ought to be discovered automatically.
Follow the on-screen instructions

ipsw.me has links to all iOS versions, however generally only the latest is still being signed by Apple & will therefore be the only one that works for a restore.


Is it possible to merge two health sources without losing data?

Please don't delete any Apple Watch from the sources tab if you care about your health records.

You can't merge these entries. If you need to remove an Apple Watch, do. so using the Watch.app on your iPhone.

I have multiple entries for my Apple Watches as well listed in my sources:


Volume Encryption plus FileVault -- redundant?

Don't think it's double-encrypted. I suspect you created a 'Disk Password' when encrypting in Disk Utility and then you added users to unlock the disk when enabling FileVault. Out of curiosity, what do the following show?

diskutil cs list
sudo fdesetup list -e

Answers from original poster:

diskutil cs list shows:

+-- Logical Volume Group B48571B2-985A-48B3-91F0-0C9AA9FFBE0A
|   =========================================================
|   Name:         Macintosh HD
|   Status:       Online
|   Size:         511250432000 B (511.3 GB)
|   Free Space:   36864 B (36.9 KB)
|   |
|   +-< Physical Volume C60946EB-D0F1-4A80-BAAF-6D7F0B716C2A
|   |   ----------------------------------------------------
|   |   Index:    0
|   |   Disk:     disk0s2
|   |   Status:   Online
|   |   Size:     511250432000 B (511.3 GB)
|   |
|   +-> Logical Volume Family 3C90D9A1-05C4-4D94-B20F-05F469418176
|       ----------------------------------------------------------
|       Encryption Type:         AES-XTS
|       Encryption Status:       Unlocked
|       Conversion Status:       Complete
|       High Level Queries:      Fully Secure
|       |                        Passphrase Required
|       |                        Accepts New Users
|       |                        Has Visible Users
|       |                        Has Volume Key
|       |
|       +-> Logical Volume 38FE20AC-17E6-4C37-B465-FB270BE91718
|           ---------------------------------------------------
|           Disk:                  disk2
|           Status:                Online
|           Size (Total):          510883004416 B (510.9 GB)
|           Conversion Progress:   Complete
|           Revertible:            Yes (unlock and decryption required)
|           LV Name:               Macintosh HD
|           Volume Name:           Macintosh HD
|           Content Hint:          Apple_HFS

sudo fdesetup list -e shows:

ESCROW  UUID                                                                     TYPE USER
        799FBB35-D5A3-443E-B397-E934AECC6D51                                  OS User myusername
        1B4714C8-EB0E-42D4-A2D4-F45E19CA6890                              iCloud User


How does file system mounting in macOS work

That is (as is probably clear to you) not how mounting works.

The contents of the /dev folder is mainly device files (as the name implies). Device files are "special files" in that they're really nodes in the file system, but the contents of these "files" are not stored inside the file system.

Device files are divided into two main types: block devices and character devices. A block device is something you can read/write blocks of data from/to (a block is a number of bytes). In contrast, a character device is something you can read/write single characters (bytes) from/to.

In this case, the file systems mounted on a normal Mac are usually block devices. For example hard drives, SSD's, etc. are normally available as block devices.

As we've now know that device files does not store their content inside the file system, but merely are indicators of a block or character device - how does it then work?

It works by storing a kind of "pointer" to a kernel representation of the device inside the file system. This is done by having each device file contain 3 pieces of information that is stored inside the file system, and that you can see by running "ls" in the Terminal for example:

$ ls -l /dev/disk0
brw-r-----  1 root  operator    1,   0 Jun  5 10:48 /dev/disk0

In this example the first "b" on the line indicates that this is a block device. Had it been a character device, the letter would have been a "c"

Then after "operator" (the group), the numbers "1, 0" appear. This means that this block device (/dev/disk0) "points" to the internal kernel device that has major number 1 and minor number 0.

The major number indicates what type of device we're talking about. The disk drives in your Mac all have major number 1. The minor number then indicates which disk and partition or volume that it is.

Now when you actually mount a file system, you do give the device file as an argument to the mount command. However what is really stored inside the kernel when representing the mount is not the path you've given, but merely the device information (i.e. the major and minor numbers).

So when you unmount /dev/, you're essentially removing the device files themselves from the / root. I.e. you can no longer browse those device files. However the actual devices still exist within the kernel, and the already mounted file systems just refer to those by their major/minors numbers, and thus keep working.


2018 MacBook Pro + Dell U2718Q, single cable for display and USB data

No.

Technically speaking, you have a Thunderbolt 3 Type C port.  "C" is the physical charastic of the port, not the USB specification.  Being that it's Thunderbolt 3, its carrying several signals:

PCIe
USB 3.1
DisplayPort
Power

Your "end" device is a monitor that has several different inputs

HDMI
DispayPort (DP)
Mini DisplayPort (mdP)
USB

When you go from your MacBook's TB 3 port to the video in, you're not passing the USB signal; this is why you need a second cable for the USB functionality.  If this was a monitor that accepted Thunderbolt as an input, you could do this with one cable.


Lock events (or disable drag and drop) in iCal

You can't lock an event, but if you add an Invitee (yourself maybe) then it will prompt you after making any change.


I have never seen this "Sign in..." message before downloading

This is a normal App Store pop-up. It does mean that somehow you were logged out of your Apple ID on your phone though, which could be for any number of reasons. Maybe someone signed out on your phone or someone tried to hack into your account and Apple forced all devices to re-authenticate, but there isn't an easy way to find out.


How do I revert the sudo less /private/etc/cups/printers.conf command?

Less isn't modifying anything in your printer settings, it's just displaying the contents of the file. For example:

less test.txt

will show the contents of the test text file. If you exit using q, and you reopen the Terminal window, you will no longer see the IP address of the printer without using the

less

command again.


If no path is given (either an absolute or a relative one) the shell searches through the directories listed in $PATH to find commands to execute. If the current directory isn't included there, you need to use a relative path like
./hulusubs_dl_osx

In theory you could solve this by adding . to PATH but this is considered bad practice due to the potential security risk (imagine somebody putting a fake ls command in one of your directories).


Window management with multiple displays and desktops

I don't have an external monitor to test this on, but you could look at an app called Swapp that purports to be able to swap the contents of an external screen onto your main display.  I'm not sure if it works with more than 1 external monitor, but in theory you might be able to switch to a 2nd desktop on your MBP, and swap the windows from an external monitor onto it, hopefully being able to repeat the trick with a 3rd monitor on a 3rd desktop space.

There is also Display maid which looks similar.

Both have free trials.

You could also try this relatively simple but manual trick to shove windows to another desktop space, either before removing your external monitors or after:

Enable Desktop Space control keys in System Preferences > Keyboard > Keyboard Shortcuts > Mission Control, check the boxes as follows:

To move windows, click and hold on any window titlebar and hit Control+2, Control+1, or Control+3 to instantly bring the chosen window to the desktop corresponding to the keyboard shortcut


most likely your 30pin dock port is full of dust and dirt, take a tooth pick, and verry carefully remove any dust that may have been stuck there.


How to change mouse speed when acceleration is 0?


There are shortcuts for Page Up/Down and Line Up/Down in Terminal. You can find them under View menu item. For Page Up press ⌘ cmd+⇞ Page Up, for Line Up press ⌘ cmd+⌥ alt+⇞ Page Up.

Edit: you can get ⇞ Page Up on Macbook by pressing Fn+↑ Up Arrow.


How do I search by file extension in MacOS Finder?

OK, I finally figured it out with the following approach:

Open finder to the top-level directory you wish to search
Press ⌘ + F
From the search menu options, on the left, choose other
Click the checkbox under the In Menu column for file extension from the popup window and close the popup window by pressing OK
Select file extension from the search menu
Type your file extension in the text field (follows the word is)


MacOS Mail cannot access folders on external drive via symlinks

Wow, I just discovered that while this would not work in High Sierra, it does work in Mojave!
And then as I did some further importing, it no longer worked ... sigh ...


Word 2011 for Mac: keyboard shortcut for turning balloons on/off in review mode

There is not one. But you're in luck, because you can assign one using Tools -> Customize Keyboard. See the example below.


No, I don't believe Lion comes with any sort of SQL server pre-installed.


Strange network activity virus when Aiport is off / No Wi-Fi

First make sure to disable any Sharing, Airplay ect. and turn off your Bluetooth.

Here is a test you could run in Terminal:

Netstat -i

and look who is connected to what, by looking at the en0 (your wifi)


Accessing unmountable APFS Volume on a disk image

Welcome to Ask Different. Maybe you can mount the APFS volume by using the 3rd party app Mountain. Others have had good luck using this app. The app is not free but has a free trial. It's easy to download and give it a shot. I'm not associated in any way to Mountain. I'm just a happy user. The app requires macOS 10.8 or later.


You should have no problem making Hungarian Qwerty work. Have you verified that the correct layout is showing in the "flag" menu at the top right of the screen when you are trying to type, like this:

To see the "flag" menu, you check the box for "Show Input Menu in Menu Bar" in system preferences/keyboard/input sources.

(Selecting something in system preferences/keyboard/input source does not accomplish anything other than show you a picture of the layout).

Ukelele is for making a custom keyboard layout.  Do you really need to do that for some reason?


MacBook Wi-Fi can't connect on Connectify: invalid password

Lets try to reset your Macs settings.

            Go to System Preferences > Network.
            Click the Wi-Fi connection.
            Click the Advanced... button on the bottom right.
            Click the Wi-Fi tab.
            Under Preferred Networks, select your wireless network.
            Click the - (delete) button.
            Turn off your Wi-Fi connection.
            Turn it back on.
            Select and login to your wireless network. This will re-save your connection under Preferred Networks.
            Close your laptop and reopen it to test whether it worked.

Next would be to try connecting manually using your Terminal (located in the Utility Folder.

Copy following in to your Termial:

To find the Network

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan

To Connect

networksetup -setairportnetwork en0 WIFI_SSID_I_WANT_TO_JOIN WIFI_PASSWORD

Replace the SSID and Password with your data.


The exe file will download like any other file. Then each Mac user needs to have a program to open that file for it to run. That's where they will need virtualization (VMware / VirtualBox / Parallels) or emulation (Wine).


Will initiating recovery mode on an iPhone permanently disable it until it is recovered?

I had an extra iPhone (that didn't have important information) which I just tried it on. Simply initiating the recovery process (by pressing and hold home button while plugging it into the computer) will not cause anything irreversible to happen on the phone. You still have to click a few buttons on iTunes to start the process.

To go out of recovery mode, simply eject the iPhone through iTunes, disconnect the cable, and restart the phone. It will be in the exact same state it was previously.


What happens when I share an iTunes Radio station I've created?

From the Apple website:

  With iTunes Radio, you can easily share stations via AirDrop, Mail, Messages, Twitter, and Facebook. The stations you share continue to change as you tweak the mix, so your friends can listen to music that adjusts with your evolving tastes. Show off your favorite stations, or tune in to your friends’ to hear what they’re into.

So, it appears to mean that they're getting a read-only instance of your station, that updates as you update it.


The volume customer keys of my Mac don't work anymore

Basically

Open System Preferences
Select "Keyboard"
De-select "Use F1, F2, etc., keys as standard function keys"


Where is the microphone for Siri for the iPhone 5?

There are three microphones on the iPhone 5. This setup is used to eliminate background noise while on call. One is ideally placed at the back, and two in the front. So basically when you're covering the bottom, the mic on the ear piece picks up the audio input.


Is there TRIM support in OS X 10.6.9 for PowerPC?

A few searches tell me that there isn't good SSD support for power pc macs.

This seems to be mostly a SATA III compatibility issue. TRIM support seems to have been introduced in 10.6.8 but only for Apple-supplied drives. Since Apple was producing Intel-based systems by that point, that is where they focused the support.

There are blog posts where people have talked about specific drives working in G5 and G4 macs but this is notably without TRIM.

OWC has some posts about TRIM and how it isn't for everyone.

The important question is, why do you need TRIM?


Does iPhone update deletes media content?

A normal update doesn't delete your content, but I don't think you can delete your jailbreak with an update. You can always try. If it fails, you'll have to restore. Then you'll lose your music and apps from the device. ;-)


Once you have setup different Network Loacations as per Adam Rice's solution, you can quickly switch between the locations using top menubar option "Apple > Location".


MBP15: 45W works only right after unplugging 85W

As far as I know, the 15-inch MacBook Pro is not supposed to use the 45W power adapter.  Therefore, when you plug in the 85W and quickly swap in the 45W, you are essentially tricking the MacBook into thinking that it is still charging from the 85W power source.

I don't believe this to be dangerous to your MacBook in any way, but it is definitely a hack and it is unlikely that this can be done without using an 85W adapter.


Proliferation of unknown bash processes when invoking ps

Okay, I think I found out the source of the problem. After removing the fasd plugin for the fish shell (https://github.com/oh-my-fish/plugin-fasd) the issue seems to have gone away. Reinstalling it brings the problem back, so it must have been that. Absolutely no idea why it was doing this though.


Script to be activated if web page changes

Save this as ~/bin/example and run chmod +x ~/bin/example. (Edited to only check the modification date from the header.)

#!/bin/bash

url=http://www.iana.org/domains/example
tempdir=~/Library/Caches/scripts
temp=$tempdir/example
mkdir -p $tempdir
modified=$(curl -sI "$url" | grep ^Last-Modified)
if [[ -f "$temp" && "$modified" != "$(cat $temp)" ]]; then
    terminal-notifier -message 'Example changed'
fi
printf %s "$modified" > $temp

To run it every 15 minutes, add */15 * * * * ~/bin/example to crontab (EDITOR=nano crontab -e).

terminal-notifier can be installed with sudo gem install terminal-notifier.

You could also run it every five seconds in a shell window:

while :; do ~/bin/example; sleep 5; done


How do I change the menubar transparency in Lion?

You would most likely need to use a translucent/transparent background image to accomplish what you're asking. If you know how to make an image 90% transparent then you should be able to experiment and to come up with something similar. Tweaking the UI is art in many ways, however, it's not necessarily a function of the interface creating the effect; the elements that compose it (background color, wallpaper, dock and icons) play a key role.

[posted for reference]

System Preferences > Desktop & Screen Saver > Translucent menu bar

One app that I've used to achieve a similar effect is called Nocturne. I'm unsure of it's compatibility with Lion though.


How do I run sudo command from standard account?

The system is asking for the password of your account and then verifies whether you are allowed to run sudo based on the content of /etc/sudoers. By default only Administrators (which have the option ticket in Preferences) are allowed to do this.

In case you want to run shell commands with sudo without having to switch users all the time you have several options:

Use ssh <any-admin-user>@localhost to log in as an admin user and run sudo then
Add your non-admin user to /etc/sudoers by logging in as an admin user, executing sudo visudo in Terminal, duplicating the %admin    ALL=(ALL) ALL line and replacing %admin with your username. This will allow you to use sudo in Terminal without giving you full admin access. Using visudo instead of editing the file directly will ensure that the file gets checked for syntactical correctness on save (an error in /etc/sudoers might lock you out of your system completely)


I'm afraid you can't. Your desktop just uses your iPhoto library to generate the background randomly.
So, the shown background is just a one-way link to the picture in your iPhoto library.


What is the reason for the large minimum brightness of MacBook Air (or other devices)?

Have you tried to split the last notch in 4 part, pressing Alt+Shift+F1 or Alt+Shift+F2 ?

It allow you to have other three level before black screen. It will works also with audio.


Does the new Air (2012) support Daisy Chaining to two Thunderbolt Displays?

Yes you can.

Source: http://support.apple.com/kb/HT5219?viewlocale=en_US#11


The iPhone does have two ways to get altitude, but the barometer is not one of them. You can only use a barometer for relative altitudes, not absolute, unless you know the current atmospheric pressure at sea level. But as well as GPS, Apple maintains a database of the locations (presumably including altitude) of a vast number of wifi networks, so if the wifi is enabled it can determine the altitude from the database. Try turning off wifi on your phone, and see if it can still get your altitude.


Give local PHP Full Disk Access in Mojave

You are possibly doing it incorrectly.

First of all, sudo typically requires a password to be typed, and that won't happen via a Web app.

Second, the _www user doesn't get to use sudo. That's a big security hole. Don't even think of modifying sudoers to allow it.

What you should be doing instead is allow the _www user (the one the webserver runs as) access to the chat.db file, like this:

sudo chgrp _www ~/Library
sudo chgrp _www ~/Library/messages
sudo chgrp _www ~/Library/messages/chat.db
chmod g+rx ~/Library
chmod g+rx ~/Library/messages
chmod g+r  ~/Library/messages/chat.db


Best practices to migrate from a single shared iTunes account to family sharing

Personally I would create subsequent accounts for other family members, then you can use your current account as the "parent" or "leader" account and then add the new accounts to the family.

You are still using your original account so you're guaranteed not to loose anything, the others should also have access to the content you choose to share with other family members.


How can I install java openjdk 8 on High Sierra or newer macOS

Fastest Solution

Use the adoptopenjdk cask

See also https://discourse.brew.sh/t/how-to-install-openjdk-with-brew/712/4

To install latest:

brew cask install adoptopenjdk

To install a specific version

brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk8
brew cask install adoptopenjdk9

Manual Solution

If you are looking to just bring down the binary without actually installing it, simply navigate to https://adoptopenjdk.net


iPhone has WiFI turned off, but router is asking ARP to IP

Turning WiFi off on the iPhone means the device shuts down the radio - it means it doesn’t establish a network connection and route traffic.

We would need to see what “the IP address” is and know details about your network to dig deeper, but here are how the system is designed. WiFi can work in airplane mode and turning off wifi is more like releasing DHCP reservation than not broadcasting.

https://support.apple.com/en-us/HT204234
https://support.apple.com/en-us/HT208086

It also matters which iPhone and which iOS you have.


Switch to Desktop shortcut bug (desktop 2 and desktop 3 are mixed)

Is Mission Control set to automatically rearrange your spaces based on most recent use? That might trigger the behaviour you see in certain circumstances. Check System Preferences -> Mission Control and that the highlighted checkbox is unchecked.


How can I store my iPhoto Library and iTunes library in Lion Server (Mini) and access it via my MBP?

Unfortunately you can't easily do Mac-to-Mac syncing of iTunes libraries in that manner. Your best options for networked iTunes access are:

iTunes Library Sharing: put your library on the server, and you can get streaming access from your MBP. Downsides: no remote/offline access, you need to be on the same network as the server; all media/playlist management has to be done on the server.
iTunes Home Sharing: same streaming access as above, but you can also copy files from the server to your MBP. Downsides: it's not syncing, you need to manually select and transfer the songs you want.
Store iTunes Library on a Network Share: change the iTunes folder location (Advanced section in the iTunes Preferences) to a shared network drive on the server (or any shared drive, doesn't have to be a Mac). This gets you local control of the library, just like any standard functions. Downsides: have to be on the local network to get access.

With this option you could make a second library (option-click iTunes when you open it) on the local drive with a smaller collection of songs you want for off-network access, but again, you don't have any syncing abilities, you have to manually add what you want.

I don't know that much about iPhoto sharing, I think it's more limited, but you can always put the iPhoto Library on a network share, as in the third option above, with the same limitations. There's also iCloud's Photo Stream, which is fairly limited, but may work if you just want to get recent photos from point A to B.


Use IR sensor integrated Mac to listen to IR signals

Apple's IR sensor only works with the two versions of the Apple remote (white plastic and aluminum).

To use another remote you need to attach an external IR receiver and install additional software.

See remote buddy


Send current location in Messages app running iOS 12

Tap recipient’s name > info button > Send My Current Location (or Share…)

Sure, It's just two taps away. But it's not visible, so you wouldn't know it by looking.

Tap the name under the icon for your contact in details. (this tap target it pretty small, so you might miss it first time you try)

The panel expands to display audio, FaceTime, and info buttons. Tap the info button to display a panel with several items. One of this items is the option to send current location, either snapshot or ongoing.

Then tap, Send My Current Location (this one is thankfully easy to tap)


Find Record with List by key in AppleScript

I suppose that you are worried about the speed of iterating.  Iterating would be a time of order-n O(n).

In AppleScript, you can possibly use a record of records instead of a list of records, but I believe that then the class of the key would  have to be an identifier -- not integer like in your example.

Here is a link to somebody with a similar question:
Emulating associative arrays in AppleScript

Lauri Ranta's answer is to use the command-line tool called "awk".

The solution that I toyed with was to make a faceless background app that would be what is called an "Agent" which AppleScript's could call upon for using its datastructures such as an associative array (also known as a dictionary or a Mapping.)

I didn't get my solution done.  It's just an idea, but you could use Lauri's answer, she usually knows what she's talking about.

Since I know a little Pyton, and since Pyton comes with OS X, pre-installed in the System Folder, I would consider using Python myself.

I tried it again in "pure AppleScript" with the following code which I'm not really happy with:

set theRecords to {fooKey:{key:"fooKey", value:"fooValue"}, barKey:{key:"barKey", value:"barValue"}}
try
    set theRecord to get barKey of theRecords
    display dialog (key of theRecord & ":" & value of theRecord)
on error errorMessage number errorNumber
    if errorNumber is not equal to -128 then
        display dialog "No match"
    end if
end try

You can mix shell script and AppleScripts:

-- in AppleScript, you can call a shell script
do shell script "<enter your shell script here>"

Or, you can call an AppleScript from a shell script with the command-line tool called "osascript".


What monospace font is most legible at the smallest size?

My choice would generally be Lucida Grande or Anadale Mono; Some days I'm more in the mood for Monaco though too. If my eyes start getting tired I ditch the small fonts for a few days if possivle. Depending on the shell I'm running, I've had Anadale Mono cranked all the way down to 5 point and still readable (provided I have access to an electron microscope as backup).


Why are certain games only available on iPad?

The most simple answer probably is because the developer decided accordingly. There might be several more specific reasons, the most relevant is probably that some games just need a bigger screen and/or it's too cumbersome to maintain two GUI versions in parallel.


How can I track my stolen iPhone 4S phone?

It sounds like whoever has your phone hasn't bothered (most likely doesn't know how to) to change the Apple ID and has entered their own contacts in. You should take this information to the police.

Then check if there's a contact labelled "Mum", call the persons mother and tell them that their child is a thief :-)

Best of luck!


User & Groups settings text top down and reversed

I don't know why it happened but rebooting the mac solved this issue. I filed this issue to Apple.


Enable Do Not Disturb While Driving" automatically

Thanks dwightk. It looks like you're right. I just watched this video on iOS 11 for the iPhone 5S. When they came to the Do Not Disturb While Driving feature (@ 3:55), the shot didn't show the "automatically" option either, just the two mentioned above.


Preview Not Opening File - Permissions Issue (via Python)

I have tested this a bit in my free time today, and it seems that subprocess.call(['open','-a','Preview',path]) is your best option for opening PDFs in Preview from Python.

I'm still not sure why using the absolute path to Preview doesn't work, though.

I am trying to find a way to get a process PID based on its window title in AppleScript. For example, if you were to open a document named "Test.png" in Preview with that command, it would spawn a Preview window with the window title "Test". I am hoping there is a way to get the PID of this process using the window title, but I'm not sure yet.


Disk image windows open beneath other windows

Digging around on Apple Discussions, I found this hint for this problem:

In Terminal.app, execute (all on one line, no carriage return)
(does not require sudo)

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

A successful run produces no output.

After doing that on my machine (OS X 10.8.2 12C60), the expected behavior for read-only .dmg's momentarily occurs, i.e. when opening .dmg's from Firefox or from the Downloads folder on the Dock, after accepting the license agreement (if one is present,) the Finder window for the .dmg pops to the foreground.

BUT, this desirable behavior only seems to last a matter of seconds before the old behavior (opening under other windows) recurs. Not sure what to make of it.  Probably some conflict going on within LaunchServices, either an Apple bug, or maybe interference from some other application.

In my case, I have a lot of third party file-system and UI tools such as PathFinder, DefaultFolderX, KeyboardMaestroX, etc, maybe one of these is to blame.


How do i unlink my iMessages between mac and iPhone?

For consistency, it is advisable to have the same settings on all your devices.
On iOS go to Settings > Messages > Send & Receive and check:

Under the "You can be reached by iMessage at", how many addresses are there and which are activated (whit a check to the left).
Under "Start new conversations from" check to see if your phone number is selected, and if it is not, what email address is.

If you have more than one iOS device, check that they are set the same way.

Then go to OS X, and on the Messages app, go to Preferences > Accounts; under iMessage > Settings check that the information coincides with those of your iOS device(s).

If you are sending and receiving from different email addresses or an email on one device and a phone number on another, your recipients will actually have multiple separate conversations with you and when replying to one or another will be sending messages to the device associated with that address.
If the device is offline, you won't receive the message. If all are configured the same way you eliminate this problem.

All the conversations you have with a contact look the same, independent of the address they used to send.

It's not easy to know to which address you're talking to; on iOS you have to tap details, then on the the (i) to the right of the name, and see which of the contact addresses or numbers is highlighted in blue.


How to transfer Adobe licenses to another Mac

have you tried to find out if you had technical support services for those Adobe softwares? if yes then you can ask them for the version and serial numbers. If you are a company and you have volume licensing the information you are looking for is registered in the Adobe services. Hope this helps.


Disk became full, had to force shutdown, now it doesn't boot

The problem is that the system goes into a fail-safe mode when the directory structure cannot be presumed to be safe for a new write.

You did the correct triage step by booting into recovery mode and attempting to repair the volume with Disk Utility.

At this point, you should back up any files you need. Test that your backup is complete and run Disk Utility against it to make sure it's in a good state.

Then you can boot to recovery and erase the volume or perhaps use another tool to repair the volume. If the drive erases and takes a format - the problem was a directory (data) corruption and not a hardware issue. If the disk can't be erased, then you need to repair the machine before restoring your backup onto a clean install of the OS.

In your case, you could possibly back up the changed files since 3 weeks or just get a new external drive and use Disk Utility to clone the volume or terminal to copy what you can using rsync or another tool.


slim black object on 1st generation macbook air case

According the Apple's user manual it is the Infrared Receiver.

http://manuals.info.apple.com/MANUALS/0/MA394/en_US/MacBook_Air_Users_Guide.pdf

The "Sleep Indicator Light" is next to it on the left.

The MacBook beneath it has the same configuration.


How to remove a corrupted Trust Settings Record?

I finally found the Admin trust settings. It's in a file called Admin.plist
in the /Library/Security/Trust Settings directory. Deleting this file cleared the error!

There are other files in that directory that are named <UUID>.plist, where UUID is the value of the GeneratedUID key in the user record. You can see this value with this command:

dscl . cat /Users/<short login name> GeneratedUID`

These files store the per-user trust settings.


Here is a simple wrapper script that effectively can work as a Java shebang on OS X and Linux:

# /* ------- build and run wrapper script for Java -----------------------------
TMP=$(mktemp -d)
tail -c +3 ${0} > ${TMP}/$(basename ${0})
cd ${TMP} && javac $(basename ${0}) && java $(basename ${0%.*}) ${@:1}
RV=${?} ; cd - > /dev/null ; rm -rf ${TMP}
exit ${RV}
----------------------------------------------------------------------------- */

public class example {
    public static void main(String[] args) {
        System.out.println("Hello world");
    }
}

However, as pointed out in the comments this is technically not a "shebang", but it comes pretty close in terms of functionality.


How am I able to export all of my applications' names on my Mac into a CSV or TXT file?

In a Terminal:

mdfind kMDItemKind="Application" > ~/Desktop/apps.txt

This will create a file named apps.txt on your Desktop, containing the full paths for everything that OS X considers to be an "Application" on your system.

This is might be a lot more than you want. You can limit the search to a given folder by adding -onlyin <dir>, so:

mdfind -onlyin /Applications kMDItemKind="Application" > ~/Desktop/apps.txt

will limit the search to the /Applications folder (and its subfolders). Note that you might also have apps under ~/Applications, i.e., inside your Home folder.


You can use builtin app called Digital Color Meter.app which can be found in /Applications/Utilities. It'll show You RGB values. You can copy them as text with ⇧ Shift+⌘ Cmd+C.


Include entire album in Smart Playlist if one song matches criteria

Smart playlists can't grab tracks that don't meet their conditions. You might be able to script something like that, however; find all tracks for albums in a smart playlist that meets certain conditions.


How do I recover a deleted file from an iPod Touch running OS 4.1

Unless you have a recent enough backup in iTunes, you can't. But if you do have a recent backup in iTunes, you'll have to do a full restore (by clicking the "Restore" button in iTunes) to get the file back.


What is the purpose of padlock when Bluetooth Preferences is opened from the debug menu?

That prevents turning off the bluetooth card.

It locks the "Turn Off" button with your password [admin users only]. So the bluetooth card cannot be disabled, unless you click the lock again and input your user password (considering you are an admin user) or any other username/password with admin privileges.


I updated from Mavericks to El Captian and suddenly Aperture 3.4.5 stopped working. Sadly, the Aperture 3.6 update is not available in the App store. Don't know if this is a temporary thing or it's gone forever. However, if you have 3.6 on another Mac you can drag the app itself to a flash drive and simply drop it in your App folder. It did it today and it runs perfectly under OS 10.11.


unable to restore backup because not enough space

That backup is awfully larger than it should be. I dont think you'll be able to restore it on that size, you'll need a 128GB model for the update to work since most OS sizes are between 8GB - 4GB of that base memory. Thats why you are having problems.


How can I prevent "Mail" from popping up alerts?

I asked this question at Superuser a while ago and received a good answer (chmod):

https://superuser.com/questions/337134/how-do-i-stop-apple-mail-from-opening-because-of-ical-appointments


Safe to allow students to access Terminal.app in a shared environment?

It's important to realize that students already have other avenues of access to the bash (and other) shells. Students can download alternate terminal programs—such as iTerm—to their home directories to gain shell/CLI access. Additionally, shell scripts can be run via Automator.app.

So, especially for enterprising students, blocking the default Terminal.app hasn't bought you much from a security standpoint.

Really, whether CLI access is appropriate comes down to the intact permissions across the filesystem combined with appropriate user account settings. If the students are running as standard or managed (non-admin) accounts and filesystem permissions are intact, then that's what limits student access. Non-admin accounts shouldn't be able to run root-level tools and modify root-level configuration files.


How does a Mac choose between Wi-Fi and Ethernet to work with?

It's possible to set network access interface priority order. Go to System Preferences → Network, click on the lock icon to unlock the preference pane. Now click on the gear icon shown towards the bottom of the network interface list, and select Set Service Order... command.

Now, in the new pane that opens, you can drag the priority network interface (Ethernet in your case) to top.

(I do not have a LAN interface, so the same isn't visible in the screenshot).


Is there a keyboard shortcut to switch the cursor between panels of iPad split screen?

Control Option Left Bracket and Control Option Right Bracket should allow the user to switch between the two apps displayed
[…]
If you […] try it twice, you should find it indeed moves you to the application on the other side of the screen.

https://www.applevis.com/forum/switching-between-apps-split-view-ipad-using-keyboard-commands


Unless you do some serious data crunching with your Mac, you shouldn't need to worry about SSD wear. It does happen, but any relatively recent SSD does a lot to combat it, both by minimizing write amplification, and by setting aside spare area to do wear levelling and compensate for bad flash.

If you're really worried about it, you can still sleep, but not use hibernate mode, meaning that nothing gets written to disk. Just open Terminal and run sudo pmset hibernatemode 0. You can then delete the sleep file to free up some space: sudo rm -rf /var/vm/sleepimage.


Why does Mountain Lion ask me for my password when trying to SSH even though I have setup public/private keys?

In Mountain Lion the sshd configuration (/etc/sshd_config) was changed and sshd no longer looks at ~/.ssh/authorized_keys2 for valid keys.

/etc/sshd_config on Lion (line 46):

#AuthorizedKeysFile     .ssh/authorized_keys

/etc/sshd_config on Mountain Lion (line 48):

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile      .ssh/authorized_keys

If you don’t wish to edit the /etc/sshd_config on the target machine you can either rename ~/.ssh/authorized_keys2 to ~/.ssh/authorized_keys or symlink it.

Symlink ~/.ssh/authorized_keys to ~/.ssh/authorized_keys2

ln -s ~/.ssh/authorized_keys ~/.ssh/authorized_keys2

Rename ~/.ssh/authorized_keys2

mv ~/.ssh/authorized_keys2 ~/.ssh/authorized_keys


Typing into Terminal works, AppleScript partially works

What can I do to make my AppleScript run things just like they run in Terminal?

Well, you could tell the Terminal app to run your command:
tell application "Terminal" to do script "youtube-dl  " & input

But, I don't recommend this route, because it will actually open a Terminal window!
There are a whole host of differences between do shell script and typing commands into the Terminal. For starters, do shell script commands are run via sh, rather than the more advanced bash or zsh (And, your "#!/bin/zsh" shabang line at the top will have no effect in an Applescript!).
As to your actual problem, it sounds like youtube-dl can't find your copy of ffmpeg—probably because another difference between the Terminal app and do shell script is your PATH is set differently. Try specifying the location of your ffmpeg binary with youtube-dl's --ffmpeg-location flag.
If it helps to have a reference to look at, here is an Applescript I use to download videos from my web browser with youtube-dl. Note that I've been tweaking this for many years, so it has accumulated a lot of error checking, and code for compatibility with different browsers. Don't be intimidated! https://gist.github.com/Wowfunhappy/c2c8fc097a8b4f47430811fc1d0da041


How to display exact modified date/time in finder?

In Finder - View > Show View Options or  Cmd ⌘   J

Uncheck "use relative dates"


You have several options:

Your first option is to use a "third-party" app that works for both iPhone and Android. For example:

http://synkmonkey.me/
http://www.cozi.com/mobile-access.htm (I personally know someone that, IIRC, uses this)

Your other option is to use a shared calendar in a service such as Gmail. I personally think this solution is better. You have two options: either setup an arbitrary email account that all the managers use to sync their calendar to, such as [your-company-calendar]@gmail.com, or, you create a calendar, and if all the managers have their own Gmail accounts, make them all owners of it. This allows you to use the default, built in, calendar app on both Android and iOS devices.

To set this up (I am generalizing the steps that work with both setups):

Log in to Google and create a calendar.
If everyone has their own Gmail accounts, share it with all the managers and make everyone an owner. If not, there is no need to share the calendar.
On iPhone (I'm assuming Android would be somewhat similar) create a new email account and log on to the new centralized Gmail account - if this is the route you want to take. After logging in to the account on each device, leave calendars on, but disable email.
If you aren't doing a centralized Gmail account, make sure everyone is signed into the Gmail accounts, on their phones, that you have used to make them owners of the calendars.

This should allow them to look up, and create events from the default calendar app on the devices.


Slow website loss times on Google.com and apple.com

A similar error may be due to the low speed of the Internet. Check this information. The second way, I recommend checking and resetting errors on your iPhone.


Can I release as opensource an iPad application I develop?

Yes, you can, but there are some important things to keep in mind.

First off, I'll note that I'm not a lawyer or intellectual property expert. This is just my opinion, as informed as I can make it.

To my knowledge there's no prohibition in the App Store rules about what you do with your source code. The main issue arises when there's a conflict between the licence of the source code (i.e. the GPL) and the App Store. This was the problem with the VLC app that Ian C referenced in the comments, particularly with regards to other open source libraries used in an app.

Another issue is when not all the code belongs to you - i.e. others have contributed and hold copyright on parts of the code. You can't submit something to the App Store that you don't have the rights to, so everyone who owns the code in the project must agree.

That said, if we're talking about a program that you've developed entirely on your own, without code from other projects or people, then you're free to do with it whatever you feel like - you can release it on the App Store, licence it under anything you want (the licence applies to what others do with it, not you).

There are some open sourced apps on the app store, you can find a partial listing here


What's the difference between `brew tap caskroom/cask` and `brew install brew-cask`?

Homebrew is written in Ruby, which uses Perl's motto of "There's more than one way to do it" to cater to every special interest, to the confusion of newbies.

bmike thinks this is important:

  Also - the handling of taps / casks has changed over time. On Homebrew
  1.2.4 you can jump straight to installing from cask and the best guide on getting started that's current is:

  https://github.com/caskroom/homebrew-cask/blob/master/USAGE.md

But it confuses me as brew install caskroom/cask/foo does the same as brew cask install foo.


keyboard shortcuts lost on iOS 8 upgrade

It has been reported that upgrading iCloud to iCloud Drive corrects the issue and makes the shortcut both reappear and sync properly.

If that doesn't work (or if you have iCloud Drive already on), try rebooting your iPhone.


Partition/Volume grayed out but full read/write access

I figured it out:

The partition was hidden (i don't know why...) so i made it visible again:

chflags nohidden /Volumes/MY_PARTITION


Move files if file name doesn't exist considering extension

Save the following as a text file and make it executable. Invoke it from the command line, passing in the paths to folder A and folder B.

#!/usr/bin/ruby

if ARGV.size != 2
    STDERR.print "#Usage: #{$0} source/folder destination/folder\n"
    exit 1
end

a = ARGV[0].chomp("/")
b = ARGV[1].chomp("/")
old_bases = Hash.new
Dir.foreach(b) do |f|
    next if f =~ /^\./
    old_bases[f.sub(/\.[^.]*$/, "").downcase] = true
end
Dir.foreach(a) do |f|
    next if f =~ /^\./
    fbase = f.sub(/.[^.]*$/, "").downcase
    unless old_bases[fbase]
        File.rename( "#{a}/#{f}", "#{b}/#{f}" )
        old_bases[fbase] = true
    end
end

Script edited to check number of arguments, and fix error in File.rename

Edited again to ignore case. That is, don't move Bar.png if bar.jpg already exists.


Instead of using "Get Specified Text" then filtering paragraphs, you can use "Get Specified URLs" and direct this straight to Get Image URLs from Webpage:

Alternatively, if you want to parse text, you can use Extract URLs from Text:

Download Workflow


How to fix the Jerky and jumpy Apple Magic Trackpad behavior?

For me, turning Bluetooth off then back on did the trick for a very jerky cursor. Turning the trackpad off and on did not fix it.


Is there a limit to amount of bluetooth devices connected to a MacBook Pro?

Here's the info from Apple site:

Connect multiple Bluetooth devices to one computer
The official Bluetooth specifications say seven is the maximum number of Bluetooth devices that can be connected to your Mac at once.
However, three to four devices is a practical limit, depending on the types of devices used. Some devices require more Bluetooth data, so they're more demanding than other devices. Data-intensive devices might reduce the total number of devices that can be active at the same time.


Is it possible to control a digital camera from an iPad2?

There are applications for remote triggering more advanced DSLR cameras.

Like this one DSLR Camera Remote HD for iPad

Here is one more example: Remote Shutter


The itunes stores payment option for your country is the one you see there when editing your payment option.

You also can select none for the moment and get an iTunes Gift Card


My iCloud account doesn't have a calendar?

If you haven't signed in with your Apple ID on an Apple device at least once in its history, these are the only services available to you.

  What is web-only access to iCloud?

  Web-only access is a free level of iCloud service that's available to anyone, including people who don't own or use Apple devices. It includes access to Pages, Numbers, and Keynote for iCloud and 1 GB of free storage for any documents you create.

You can obtain the other features by signing in on an Apple device.

  How do I get the full set of iCloud features?

  If you have an iOS device or Mac, you can get the full set of iCloud features. Simply sign in to iCloud in Settings on your iOS device or System Preferences on your Mac. You'll get immediate access to all iCloud features and 5 GB of free storage. You can also choose additional storage plans from your device.

For more information, see this Apple KB article:

Web-only access to iCloud


The problem is you are trying to have the installer erase itself.
Your internal storage is broken and not showing up, so you could install to an external drive or get a repair.  Both will work once it’s repaired and if you get your external drive erased, a clean install might let you run for a while or just know it needs someone that can diagnose and repair it.


How to spoof Firewire MAC address or hide Firewire and Ethernet - Need to add more than 2 Google Play Music accounts to machine

Spoofing MAC address is not straightforward if you do it all by yourself but there is one great package to do jus that. If you don't already have npm installed do so by following the link. Then install spoof package. By doing npm install spoof --global. Then it's very easy to change you MAC address, do spoof --help for instructions.


iPhone - what does each number of rings mean?

This depends on how they blocked your number. However, generally the number of rings is not a good indicator of whether you've been blocked.

I would suggest solving by talking to or contacting the organisation or person that has blocked your number.


Problem downgrading from high sierra to original (shipped) OS

Go to Apple Store and Download OS X

Click on Purchased to see what is available to you

create bootable disk with that OSX

Plug the new bootable installer into your Mac.

Restart your Mac, holding the Alt key and, when you see the option, choose the bootable install disk.

Launch Disk Utility, click on the disk with High Sierra on it (the disk, not just the volume) and click the Erase tab.

Choose Mac OS Extended from the Format menu, then give the disk a name. `Click Erase`.

When the disk has been erased, restart by holding down Command-R and wait for the macOS Utilities window to appear.

Choose Reinstall macOS and select the disk you just erased – your Mac’s regular startup disk. Follow the onscreen instructions and wait for your Mac to restart.

When it restarts, ignore the option to migrate data from a backup.

Optionally --Re-install the backup tool you used to backup your Mac before you upgraded to High Sierra and then use that to restore data from that backup.


Transfer photos from friends windows 10 pc to my iphone

You can try to sign in iCloud.com on your friend's computer, click on Photos icon, and upload photos to iCloud. Hours or days later it will sync with your iPhone if you connect WIFI. Then you can get photos to your iPhone without wiping any existing information.


Import Albums "From my Mac" to my iPhone albums and keep them synced

Ok technically I've found the answer : no.
It seems that due to iOS limitations, you can't edit album that are created outside the iPhone.
So I'll try to achieve my goal by managing photos manually.
The problem is : Photos crashes during the export. I'll ask another question for that.


How to set up Touch Bar to show function keys in a specific VirtualBox virtual machine

http://www.mastropaolo.com/2016/12/16/how-to-have-function-keys-in-virtualbox-guess-with-macos-touchbar/

  Open a Finder window to the /Applications folder. Right click on VirtualBox.app and click “Show Package Contents”.
  Find the Resources folder, and drag it into Finder’s favorites sidebar.
  Using the Resources folder you put in favorites, add vmstarter.app and VirtualBoxVM.app to the list of exceptions.
  Now you can remove the Resources shortcut you added to favorites.


MacBook Pro supports 802.11n wifi wireless networking. There are other wifi protocols like 802.11b and 802.11g. MacBook Pro is compatible with these (b and g) as well. Wifi issues prop up when your router supports other frequency and your laptop is trying to catch other frequency.

If your router supports 802.11b/g and compatible with n then it means some communication problem may arise between your wifi router and your laptop. Best thing that can be done here is to tell your router that it should send signal (broadcast) only on 802.11n.

Go to your wifi router settings (you need to connect your router to your laptop through cable for this. You can consult wifi router help book for this) and Fix channel as 11 (11 from 802.11 is called channel) and bandwidth as 150Mbps. n means it will run on 150Mbps. (generally b means 54 Mbps and g means 65 Mbps). Save your setting and you are hopefully ready to run without any hassle.

PS: You can do the same setting if your wifi is not visible or your MacBook Pro doesn't detect your home wifi.


How to edit many lines at once in TextMate?

You've answered your own question; to edit multiple lines at once in TextMate, you Command-click the places you want to edit. Is that not working for you for some reason?


How can I get iPhone Mail to accept meeting invitations attached as .ics files?

When I receive an invitation to my Gmail account, it auto populates in my Google Calendar with a question mark beside it.

Unfortunately you can't accept - however it will now show in your calendar.

If the invite is sent from gmail, there is a link to select if you want to accept the invite.

Not exactly the full answer you're looking for but, hopefully this helps.


Why does the Apple iPad cost less than the iPhone?

There are a few factors to this.

The iPhone 8 has lot newer technologies inside it the the iPad 5.

A11 Bionic CPU vs the A9 (used on the 6s)
True Tone display
3D Touch
Better LCD used for display (supports P3)
The iPad 5’s LCD isn’t even laminated to the front glass
and a lot more changes

Even though the iPad 5 is released in Q1 2017. It is using technologies that dates back to 2015. A more fair comparison would be the new iPad Pro announced in WWDC17. Which costs similarly (just a little bit less than the iPhone 8). If you want to compare the 5th generation iPad with something, that would be the iPhone SE.


How to clean install and only re-install old applications/files as you need them?

I'm not sure that you have an issue. You are free to install formally or drag and drop any app from source to hard disk - if it doesn't meet that system's requireents, it will be sort of whited out and won't run.

Got good preferences files? Do the same thing.

Hope this helps.


Apple Books app and multiple desktops: How to stop app window to show on all desktops?

I had the exact same problem, solution:

Open a book within the app
Right click on the dock icon
Options>Assign>This Desktop

Solved on macOS Catalina 10.15.4


Macbook late-2009 not displaying red color

Let me summarize the troubleshooting steps.

Before disassembling:

1- Run the Apple Hardware test to see if it comes up with anything.

2- As far I know you have a NVIDIA graphics car. Run without it to test.

3- Connect a external monitor to test if the internal display is failing.

4- Open up the computer and unplug/plug the Video cable few times to clean the contacts. Or replace the Cable following the instructions here.


MacBook slow on boot since booting from external disk

I found the issue, on General > Startup Disk it automatically selected the external drive. Switched back to Machintosh HD and it worked.


iOS: Adding googlemail account button does not respond

Same as that - button doesn’t work.

I added my gmail account via Exchange instead. Works fine!

https://www.google.co.uk/amp/s/www.imore.com/how-set-exchange-accounts-your-iphone-ipad-or-ipod-touch%3famp


I can't upgrade my Mac from macOS Sierra to macOS Mojave. Admin password required

Your Mac is asking for an administrator name and password for a reason. It wants to make sure that only an authorised user is making a major change to the computer as upgrading the operating system software.

You generally cannot work around it. You'll need an administrator username and password to be able to upgrade macOS. You should consider getting in touch with the person/team responsible for this and seek their assistance.


How can I make calculations based on smart category summaries in Numbers?

While it's not (currently) possible to place custom values in the column you desire, it is possible to refer to the operands elsewhere, such as by using a secondary table to refer to the cells in question. To make a formula point to a certain category’s subtotal, hold ⌥ option and click on the desired cell.

Unfortunately, this method does require the categories to be entered manually, so it may not be suitable for all situations.

Here is a demonstration using your example table, with a secondary table holding ratio values for each of the categories:


How to define a shortcut for OS X terminal using Shift-PageUp?

I think this may be a task for Karabiner, because you cannot natively create shortcuts using the Page Up/Down/Home/End Keys


How would applications on the iPhone adapt to a bigger iPhone screen?

If Apple were to increase the screen size, it would likely be done in the same fashion by which they have done it each previous time - in such a way that apps, while maybe not looking as great as they could, are functional and visibly proportional.

When they introduced the Retina screen on iPhone 4, they kept the screen size the same but doubled the resolution. So while pre-Retina apps might have looked a bit blurry, they were still functional and had the exact same proportions.

This same process occurred when the Retina screen was applied to the iPad 3.

When the 4" screen was introduced on iPhone 5, they kept the same width but increased the height of the screen. Functionally this meant that all apps operated identically, with the sole difference being black letterboxing at the top and bottom of the screen. But since the pixel density did not change, nor the width, apps looked exactly the same with no proportion issues or visual degradation.

Apple has shown themselves to be very thoughtful about making such changes and there is no reason to believe they wouldn't be going forward.


How do I automatically enable Personal Hotspot when my Bluetooth device is in range? (Similar to Tasker for Android)

There's a way to do this if you're jailbroken with tweak called Activator by Ryan Petrich, and unfortunately it's the only solution because regular App Store apps aren't allowed to access settings like Bluetooth, Wi-Fi, and Personal Hotspot (even Workflow cannot access them).

If you happen to be jailbroken, the way to do this with Activator is to go Settings > Bluetooth > On then Settings > Activator > Anywhere > Bluetooth Devices > Connected to [your Bluetooth device] and assign it to Switches > Hotspot. You might also want to assign the Disconnected from [your Bluetooth device] event to the same action, so when you connect Bluetooth, your hotspot turns on, and when you disconnect Bluetooth, your hotspot turns off. If Switches > Hotspot doesn't appear in the list of available assignments, then you'll also need to install Flipswitch by the same author.

For use on iOS 9 and 10, see Doron Gold's comment below on how to set it up.


What are the specific restrictions on downgrading an iPod Touch to previous iOS versions?

(I'm not certain of this answer -- it's a somewhat educated hunch, based on using iPods for 10 years and Apple products for 25, and looking at wikipedia.  If anyone knows from actual experience, use that answer instead.)

In general, I would guess that you can downgrade an iPod to the version of the OS that it was released with, but not earlier.  So, for example, an iPod Touch 2g could probably be downgraded to iPhone OS 2.1, but not 1.1 (which wouldn't really matter since there was no App Store in 1.x!).  Each iPod Touch gen-N ships with the N.1 release of iOS, about a month after the corresponding iPhone ships with the N.0 release.

An iPod Touch 2g should run all versions of iOS for the iPod Touch that have an App Store, though it doesn't support all the features of iOS 4.  The hardware differences between iPod models might be a bigger issue for testing, e.g., older iPods don't have a built-in microphone.


How do I use a numerical variable and a loop in automator?

Intheory, s.o. could copy this or clone this file, name it document.wflow and put it inside a folder structure like this /pdfToJpeg.workflow/Contents/document.wflow and open it in Automator.

This is the structure of a .workflow file when you look at Package Content.

This workflow will ask for a file to select, extract any page as pdf, rename each file like page_01.jpg and convert it from pdf to jpg.

Please be patient, its Automator, but you can invoke it step by step from Automator.app.

This is how workflow looks like:


Restart OS X if an application has crashed/is not responding/beachballed?

Replace Shalalalala with the name of the process you want to monitor.

property NameOfVictim : "Shalalalala"

tell application "System Events"
    set ps to get the name of every process

    repeat while ps contains NameOfVictim
        set ps to get the name of every process
    end repeat

    restart
end tell


List all devices connected, lsblk for Mac OS X

diskutil list will list all disks with their identifiers, even if unmounted.

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Mac SSD                 150.0 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data Windows 8               100.1 GB   disk0s4
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *500.1 GB   disk1
   1:                  Apple_HFS George Garside          300.2 GB   disk1s1
   2:               Windows_NTFS GRGARSIDE               199.9 GB   disk1s2

For mounted disks only…

To find the raw device name (i.e. /dev/disk0s1) you can run df.

You can limit the results to locally-mounted filesystems, use df -Hl.
This results in a list of partitions and their raw device names, as shown below:

Filesystem     Size   Used  Avail Capacity  iused    ifree %iused  Mounted on
/dev/disk0s2   150G   130G    20G    87% 31761475  4859615   87%   /
/dev/disk0s4   100G    83G    17G    83%   184667 17015601    1%   /Volumes/Windows 8
/dev/disk1s1   300G   282G    19G    94% 68771109  4529660   94%   /Volumes/George Garside
/dev/disk1s2   200G   172G    27G    87%   144125 26731127    1%   /Volumes/GRGARSIDE


How can I change the IMEI number on my iPhone 6?

sorry, but changing of the phone's IMEI number is not possible.


Archiving Apple Mail to an External Drive

Start by creating a new mailbox for the messages you intend on storing externally, be sure to name it something sensible so the it is easy to sort through when these mailboxes begin to pile up (ex. "Archive 2010 Jan-Jun). After you have filled said mailbox, perform a secondary click (right click) on the mailbox and select export mailbox. This will open a finder window asking for a destination. The exported file will be in the .mbox format. If you wish to view these messages again you will need to import them back into the mail app, keep this in mind when preparing your archive mailbox, try keep each one under 1-2 GB in size.

These instructions are provided you are running Mavericks mail with the sidebar enabled.

Hope this helps!


iCloud Photo- How to save to the cloud but not share photos between devices

You can't do it permanently.

iCloud is a syncing system and not (primarily) a backup system.  It's main goal is to allow you to share your photos and documents between all devices signed-in with the same Apple ID.

You can either not sign-in to a device with the same Apple ID, create a new, different Apple ID for the device you don't want your photos (which create problems if you do want to share other documents), or not use iCloud for your photos.


Will Microsoft Office for Mac 2011 be affected by an upgrade from Yosemite to Sierra?

What I can tell you is that Microsoft Office for Mac 2011 does indeed work in macOS Sierra.

I've also just done a check on its Roaring Apps page and up to version 14.6.8 was confirmed as working in macOS Sierra. While this is not the version you quote (14.7.1), Microsoft typically provides updates to improve compatibility with the OS, so your more recent version will work fine.

As to whether you will have any issues because you're upgrading directly from Yosemite to Sierra, no-one can give you a 100% guarantee as every system has its own quirks (depending on configuration, installed software, connected hardware, etc). However, your current installation of MS Office should still work fine after the upgrade.


Add specific media types to iTunes without copying them to the iTunes Media Folder?

Hold down option whilst dragging into the ITunes window to add to the library, without it also being copied into ITunes fodler


Install Autoconf, Automake trying to install pcre

You can use the work-around published here to solve the problem:

https://github.com/iriscouch/build-couchdb/issues/77

The work-around consists of disabling the generation of the info pages (manual).

It seems this error is there because you have an older, incompatible version of TeX. Perhaps you're using an old version of OS X.


Early 2011 MBP Hard Drive Noise - What IS normal?

I can tell you, this isn't normal.

You shouldn't hear the hard drive very much at all, and only a little chatter when you're using it extensively.

Since you've clearly established that it's a hardware problem (because pressure fixes it), you should probably try to get it fixed. Rather than open the machine and do it yourself (violating your warranty), you should get Apple to fix it.
Since your computer is pretty new, it should definitely be a free repair.

You can take it to the Apple Store and tell Apple what happens. They'll take it and do some tests, then replace the drive (or whatever part they think needs it).

Make sure you back up all your data first; you won't get your old drive back.


I'm still not sure how the Pictures folder came to believe it was an iPhoto bundle. Most of the cleanup was just restoring an older version of the Pictures folder from Time Machine.

To turn the Pictures bundle back into a folder, I took the SetFile executable from my Mac (ships with the developer tools) and executed SetFile -a b Pictures.

This is important, because Mac OS will prohibit most actions done against basic folders in the user directory structure. You cannot move or delete the Pictures folder (and if you sudo your way through it, you will be missing some extended attributes on your new folder), so turning it back to normal was an essential step.


Why doesn't my Macbook detect network after sleep?

Clear the network out and re-setup it.

Otherwise, I've run into this issue before, what brand of router are you using? And does it happen with other networks apart from this one?

Related: Why doesn't Airport reconnect after sleep or shutdown?


If you browse to one of the external disks' folders in the Terminal, typing ls -l will show you the owner and group as the third and fourth columns.

If these are just numeric IDs, your system doesn't know who the owning user is, and is printing a raw UID/GID instead.


Reinstall Mountain Lion after factory reset to Lion

From Personal Experience: I believe it's the same for everyone. It is the only item in the Mac App Store that doesn't show purchased even though it is purchased, even in UK, however I don't think they would make you pay for it again as it is linked to your account. You could call them and ask them or ask a Genius in store, I would just to be sure you don't get billed again for it, even though you shouldn't.


Custom Scheduling of Time Machine backups

Schedule backup for every 4 hours ( 4*60*60 = 14400 )

sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 14400

Default is 1 hour ( Rollback procedure )

sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 3600

Source: http://osxdaily.com/2012/02/02/change-the-time-machine-backup-schedule/


This is not a programmatic but a manual solution.

Go to System Preferences → Network and check Show Wi-Fi status in menu bar.

Now click on the Wi-Fi icon shown in the menu bar and select Create Network....

Supply network name in the dialogue box shown (the default name assigned is the computer name set under System Preferences → Sharing).


OSX Utilities downloads installer then goes back to start

Your Recovery HD might not match with the version of OS X installed on the drive — try Internet Recovery. Boot with ⌘⌥R until you get the spinning globe, then follow the instructions. This should download a new Recovery HD which you should be able to use to reinstall OS X.


Can I run a disc image of a cloned Tiger or Leopard PPC drive on a modern Intel Mac via virtualization software?

Mac OS X SLA doesn't allow to run older Mac OS Xs in a VM until Max OS X Server 10.6.8 or Mac OS X 10.7 and later. Additionally there are some technical restrictions.

So none of them will run directly in VMware Fusion, Parallels or VirtualBox.

To get an image of the MacBook3,1 running in one of those three you would have to update it to Snow Leopard Server 10.6.8 or Lion 10.7.x first. The easier and cheaper way is probably to set up a vanilla Lion VM and migrate the content of the MacBook.

The only way to get the PowerMac G5 possibly running I know of is outlined in this guide. You would have to migrate the contents of the PowerMac as well.
Probably it's easier to choose the simple way and use the same approach as with the MacBook: vanilla Lion VM and migration.


How can I recover from a frozen fullscreen application / game?

Search for the Starcraft 2 process in the process list. I don't know the name of the binary but something like ps aux | grep -i starcraft should get you there
The number in the second column is the PID
kill PID or (if this doesn't work) kill -9 PID (if you are not the owner of the process, you can use sudo kill ... instead)

Depending on the process structure of Starcraft 2 you may need to do this several times to hit the right one.


Apple Error reporting suddenly turned off. OSX 10.9.4

You can change it in Terminal. Open /Applications/Utilities/Terminal.app and then...

Turn the Crash Reporter dialog box off entirely:
defaults write com.apple.CrashReporter DialogType none

Turn it back on to its default type:
defaults write com.apple.CrashReporter DialogType crashreport


Why are folders with weird names automatically appearing on my Desktop?

They look suspiciously like folders from a iPhone or iPod backup, which is typically not found on the desktop (normally found in ~/Library/Application Support/Mobile Sync/Backup//
If so, the backup would consist of a folder with an iPhone ID as a name and all those folders you see inside it. The folders have 2 character names. Inside one of these folders (say 00) are feels with file names starting with the name of the folder. One example filename for me is 00aabeab60f635dc810b27b8b884e90115caef61. All characters would be hex digits.
In iTunes Preferences under Devices you can see the individual backups, if any. Selecting one, then right-clicking will pop up a menu with the choice "Show in Finder". If this is what it is, then a new window should open showing where the backup is.
It could be some other Apple generated backup as well.


Is it possible to buy a genuine iPhone battery online?

I've replaced several batteries in older iPhones including the iPhone 3.. I have not tried in the iPhone 4 models.

In the original and the iPhone 3 / 3GS, it's really quite simple. The batteries were fine (from Amazon). They come with the tool to separate the back panel, look at iFixit.com for instructions, but just take your time and be patient..

HTH


The clear button also worked nicely for me. As an added bonus, "Now" button is working as it should: stopping the scroll when toggled off, and jumping to the most current entry when toggled on.


Is usr/local/bin the correct directory to place JAR files?

From a SIP perspective, /usr/local/bin is perfectly fine to place JAR files.

SIP excludes the directories:

/usr/local
/Libraries
/Applications

Anything in these directories can be read/written/executed.  Which one of those makes more sense for you to place your JAR files is entirely up to you.  (IMO), since it is a run-time and presumably it's part of an application, putting it in a sub-directory within the /Applications directory is not a bad place to start.


How Does Time Machine Check for "Runtime Corruption" and How Do I Reset It?

I've now discovered a complete solution by (carefully) following these steps:

Turn off Time Machine's automatic backups in the Time Machine preference pane (to prevent any conflicts).
First mount the network volume to which Time Machine is backing up, how to do this will depend upon your system, there should be a disk image in there named after your computer (e.g- for a system named "Haravikk's Mac Mini" you'll find "Haravikk's Mac Mini.sparsebundle"
Attach the image using the following command: hdiutil attach -nomount /path/to/image (you can fill in the path by dragging onto a terminal window from the finder, just make sure there's a space after -nomount).
Take a note of the device numbers returned, one of these will be your backup volume, usually the last one in the form of diskNs2 where N is the disk number, and the s2 should be the partition.
Run the following command, taking note to add r to the start of the device number to connect to the "raw" (unbuffered) device: fsck_hfs -p /dev/rdiskNs2
Wait for the check to finish; if it finds any errors it should attempt to fix them then run again automatically, wait for the process to finish. If it reports there were errors that could not be fixed then you should consider discarding the backups as recommended, or else run the command again with -f instead of -p (though this is not recommended).
At this point you should really check that your latest backup isn't corrupt; you can do this visually by mounting the image (diskutil mount diskNs2 substituting as appropriate) and examining in the Finder. A more detailed comparison is recommended however but beyond the scope of this answer.
Detach the disk image with the following command (substituting disk ID): hdiutil detach diskN (if you mounted the image above, "eject" it first).
In the Finder open the the folder with your backup disk image, right-click it and choose "Show Contents". Inside you'll find a file called com.apple.TimeMachine.MachineID.plist, open it. If you have Xcode installed it will open in this, otherwise you should be able to open it in TextEdit; when editing in TextEdit you'll need to have some familiarity with XML and plist files, though they're pretty straightforward.
Find the VerificationState key and change its value to 1 (it will probably be set to 2 if you're experiencing the same issue as me).
Find the RecoveryBackupDeclinedDate key and delete it, if you're using TextEdit make sure you also delete its <date> value.
Save your changes, unmount the network volume and re-enable Time Machine's automatic backups.
Either wait for the next backup, or run one immediately; if your network destination isn't your only backup device you can trigger a backup to it in the Time Machine preference pane by right-clicking on the destination's icon and choosing "Back up to  now".

Details

It seems that Time Machine's "runtime corruption" check is a call to a fsck_hfs -q, which checks whether a volume was unmounted uncleanly. If this fails, the volume will have an "inconsistent" bit set against it that can only be cleared by successfully repairing it using fsck_hfs -p or similar.

However, in addition to this Time Machine stores a "corrupt" status in its com.apple.TimeMachine.MachineID.plist within the disk image bundle. I'm kicking myself for not finding this sooner since it's right there just inside it. I'm not sure if Time Machine performs an additional checks, there is a key related to some kind of extended check, but I'm not sure exactly what this entails.

Correcting both restores the image to "normal" status, allowing Time Machine to run without issue.

NOTE: While in my case the "runtime corruption" check was definitely mistaken, it is important that you check whether there is any actual corruption to ensure this is the case. It's a bit beyond the scope of this answer to cover that as well, but if anyone would like to recommend tools or guides for doing so please comment!

Extra

I ended up finding these solutions myself despite trying to get help from Apple engineers; they just wasted my time trying to find ways to blame me for the fault, rather than telling me what I needed to know, and they've gone and closed my bug report despite my having shown them exactly how I verified no corruption had occurred!

Very, very disappointed with Apple's handling of a report that their flagship backup tool may be deleting users' backups unnecessarily. I'm now seriously considering ditching Time Machine entirely next time I upgrade my storage, as I'm no longer confident I can trust it, or the engineers who work on it, and may go for the overkill option of something based on ZFS send.


I can't install “lockfile-progs” which is necessary for “log check” by HOMEBREW on YOSEMITE

This appears to be a bug; you should report it to Homebrew.


How fix fonts on external tv look good view?

It sounds like your TV is not correctly connected to the Mac, so that you only have Full HD resolution available instead of the UHD resolution you want.

I would suggest trying with a different cable from mini-DisplyPort directly to HDMI. This should give you the least amount of problems connecting to the TV. Ensure that the cable specifically supports 4k.

I have seen multiple times that even cables sold as HDMI 1.4 cables do not really support 4k with the Mac (I guess some companies deliberately re-label old cables). Specifically I have seen this also with expensive cables, where as a cheap HDMI cable from IKEA works without any problems.


How does one transfer old apps from one Mac to a new Mac?

Your best bet for an automatic process is running Migration Assistant on the new / destination Mac. It will ask you to connect the old Mac in target disk mode or connect a Time Machine backup of the old Mac. If you don’t want to use target disk mode - you can also use Disk Utility / Carbon Copy Cloner / Super Duper to make a bootable clone of your old Mac to an external drive and connect that when Migration Assistant asks for the old Mac to be connected.

From there - it can move over user accounts, applications and/or settings and other files from the old Mac to the new Mac.

Lots of good examples here:

Migrating to new iMac, what does Migration Assistant actually migrate?
Recovering all my old settings, apps etc ... from removed hard drive
Best way to move to a new Mac
How can I transfer data from a G5 iMac to an i7 iMac?


Screen brightness control (F1, F2) not working on a WASD mechanical keyboard with mac mode keys

You can use software like Karabiner (free) to remap your keyboard keys. According to their documentation, mapping function keys to brightness settings is one of the settings it comes with.

https://pqrs.org/osx/karabiner/


iOS 14.2 - No text notification when message is open but screen is off

This is a common bug that started early in iOS 14.2 beta and was never resolved for public release.
The workaround is always going back to the list of conversations before closing the Messages app, as you’ve already found.
The beta release iOS 14.3 RC 2 reportedly resolves the issue, so hopefully the issue will be resolved in the public release of iOS 14.3.


Carrier SIM card and unlocking issues...

Unlocking an AT&T iPhone requires more than just AT&T to send the unlock command.

If they have granted the unlock request, they should have sent you an email telling you what to do:

Back up your phone to your Mac or PC. Then wipe and reset it (settings > General > Reset > Erase All Content And Settings) and then restore from that backup.

You should turn off find my iPhone first.

Once it has erased go through the setup procedure it will ask you how you want to set it up. Select the option to restore from an iTunes backup. Plug it into the computer you just backed it up to and restore the phone.

You are now unlocked.


ipod Touch Account Reset with a new user and Ipad 4 account currently used

As long as you signed out of your Apple ID with:

iCloud
iMessage
Facetime
iTunes and App Stores

Or:
wiped the device before you sold it, you have nothing to worry about. The new owner of your old iPod, won't be able to access any of your data.

If you did not wipe the device, nor sign out of your Apple ID, then the best you can do is change your Apple ID password. This will, in effect, sign the new owner out of your Apple ID.
Even with an Apple ID change the new owner will be able to access:

Any non-iCloud email accounts that you haven't since changed the password for.
Any app's data that has already been installed.

So, change your Apple ID password, and other email passwords (i.e. Gmail), and that will prevent him from accessing your data any further. In addition he won't be able to download updates for apps left on the device.


Cursor stuttering: "IOHIDSystem cursor update overdue. Resending."

This is more of a comment adding data, but I'm not yet permitted to comment, so this will have to do:

I'm seeing this several times a day since getting my imac back from the shop with a new hard disk and Lion install, followed by a time machine restore.  I also upgraded the machine to 32G of ram after it came back.  When it occurs, the kernel_task in top goes to 95%.  The problem goes away after a minute or two without a reboot or other action.  There does not seem to be any disk activity, and I've tried replugging most of the USB devices since "IOHID" sounds like a USB thing, though I don't know that is the case.  That didn't seem to make a difference however.


All phones have done this, since they were first invented - the analog ones used to be far worse. It used to be compulsory to switch them off in the studios where I worked, as the interference could actually make its way onto a recording.

It's caused by electromagnetic induction to a nearby amplified circuit - hi-fi, tv, computer speakers etc.

It was always known as 'hunting' - not that it's any real technical term, but it roughly describes what's going on. If the phone is bordering one cell & hunting for the next, or if a signal comes through that data is about to be fired at it, the radios ramp up their power ready for it & the beep boppidy bop beep that you hear is the handshake as it ramps up.

Turning the phone 90˚ may help, by shifting the induced magnetic field out of alignment with the circuitry that's picking it up.

The only alternatives would be to move it well away from any other electronics, or switch it to Airplane mode.

This answer gives some simple background as to how induction works; it's the same for radio circuitry as audio.


Getting music NOT purchased from iTunes to show up on my iPhone

You need to select what music, for example, playlists, songs, artists or albums to sync to the iphone, please follow this apple support document

http://support.apple.com/en-us/HT201253


Bookmarks syncing between 2 machines in Google Chrome after Time Machine Migration

Then my only thought remaining is that by doing a direct transfer of all files that there is a special chrome ID/profile that gets created when the app opens the first time. If that file gets copied then both computer have the same profile. You might have to export the bookmarks in chrome on one computer an then delete the ~/Library/Application Support/Chrome folder and then ~/Library/Preferences/com.google.Chrome.plist file in Preferences. Relaunch Chrome and that should force an ID/profile creation and then you could sync again.


Are users on iPhone 5 (iOS 10) able to see new apps on the App Store?

I can answer from iOS 12's perspective for apps which need iOS 13 to work. I cannot reach the app page via search feature. But given direct link, it opens the app page and shows the banner about incompatibility.

iMovie for iOS is one example. Searching doesn't list this.


How to dual boot an iMac 2020, 27", T2 from (Catalina & Mojave)

Your iMac shipped with Catalina.  Generally, Apple does not support using an OS older than what the device originally shipped with.  Yes, there are the occasional exceptions.  Unfortunately, your model is not one of them.
If you really need to run Mojave on your system, then you should probably consider running it within a virtual machine.


When connected to VPN using the built-in VPN service, is all my internet traffic routed through the VPN connection?

Yup when using the VPN everything goes through your VPN.


Unable to remove Windows Partition on Bootcamp

There are two ways.

Option 1 (recommended):

Go to Boot Camp Assistant, which is in the Utilities folder. Then click continue until you see this window:

Select "Remove Windows 10 or later version", and click continue. Follow all the steps, and it should remove it.

Option 2:

Open up Disk Utility, which is in your Utilities folder in Applications. Then, as shown in the image below, click the top left button and click Show All Devices.

Once you have done that, you should see something like this:

Click on the - sign when the windows partition is selected and click Delete.

After the process finishes, the Windows partition should be removed.


This was caused by RVM. I uninstalled RVM and the problem disappeared.


What is the difference between cron and lauchd?

launchd does a lot more than cron.  In addition to running programs at certain times, it can also run them based on other triggers: incoming network connection, when a file is added to a certain folder, etc.  It can also relaunch a program if it crashes.

If you're interested in it specifically as a replacement for cron, the main difference is how it handles being asleep or shut down when a job is scheduled to run.  In this case, cron simply doesn't run the job, but launchd will notice that a scheduled run has been missed, and run it at the next opportunity (although if it's missed multiple scheduled runs, it'll only run it once).

Edit: I should also point out some things that cron can do that launchd cannot: automatic emailing of failure reports (you'd have to write a wrapper script to do this with launchd) and user-defined jobs that run even when the user isn't logged in (a user can define launchd items in ~/Library/LaunchAgents, but they only run inside a login session).


Apparent display bug with Arabic letter sequence lam meem alef

This is normal for some fonts, including Apple's default Geeza pro. In certain situations Lam plus meem becomes a ligature with the meem coming first and hard to recognize.  See this.