Can't delete copied Time Machine files I'm trying to move my time machine backup files all under Backups.backupdb to another drive. I initiated a file copy overnight. In the morning I saw that only certain backups(folders with dates) got copied over. I then tried to copy over the ones that didn't get copied...but the OS wouldn't allow me to do that. I got and error that "The operation can’t be completed because backup items can’t be modified."

So then I though, ok. I'll delete the incomplete copy from my new drive and then try to start a whole new copy.

I started the delete and it prepared all night (I can see it counting all the files in the delete dialogue box). HOWEVER, in the morning I saw the error "The operation can't be completed because unexpected error occurred (error code -8003).

I tried to search online for info about it and can't seem to find anything.

I also tried to hold down the OPTION key while emptying the trash and that didn't work.
Holding down SHIFT+OPTION while emptying got me the -8003 error right away...I didn't have to wait for it to count all the files.

What is going on? How can I delete these files? I don't want to format my drive because it has other files on their that took a LONG time to copy.

I went through this just last week.  Time Machine backups have ACL permissions set.  There are a few ways to see these.  The first is ls -e.  This is from my TimeMachine .bash_profile

ls -le .bash_profile
-rw-r--r--@ 5 gregcain  staff  6508 Mar 21 13:57 .bash_profile
 0: group:everyone deny write,delete,append,writeattr,writeextattr,chown

and this is for my normal one

ls -le .bash_profile
-rw-r--r--  1 gregcain  staff  6748 Mar 29 13:08 .bash_profile

If you want to modify these settings, you'll need chmod:

chmod -N .bash_profile


Make preferences changes take effect immediately from CLI How you can make changes take effect and update in the Preferences GUI immediately without having to reboot (unacceptable), log out (bad) or kill processes (last resort)? macOS 10.12

defaults write ~/Library/Preferences/.GlobalPreferences.plist com.apple.swipescrolldirection -bool NO
sudo defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd.plist LocationServicesEnabled -bool NO

Update:

Restarting Finder updates swipe GUI, but not the swiping itself! How can this be done?
Location services: Updates instantly now. (Must have been something wrong before.)

Send the System Preferences process a signal called the 'hang-up' or HUP, also known as signal number 1 as defined somewhere in a system signals.h header file. POSIX convention, I believe.

The quick and dirty:

sudo pkill -1 'System Preferences'

Replace System Preferences with Finder, or the PID of a relevant process.  Another quick and dirty:

for STALE in Finder Preferences locationd ; do sudo pkill -1 $( pgrep ${STALE} ) ; done

What a HUP signal should effectuate in the receiving process is an internal halt and re-evaluation, which usually includes a re-reading of any relevant config files. The process will not terminate, only 'refresh' itself.

Hope this helps.

F.


Open contact group on Mac I just want to use AppleScript to open an existing group in Mac Address Book (v7.1).

tell application "Contacts"
    set selected of group "friend" to true
    activate
end tell

above is the sample code for what I want.

This probably isn't the best Applescript code ever written but it did work for me to list the people in a specific group (on 10.8 mountain lion).

tell application "Contacts"
    activate
    set grp to first group where (name = "friend")
    tell grp
        get people
    end tell
end tell


Will I damage my HDD if I transport my MacBook in sleep mode? Is it safe to carry MacBook with HDD in a bag while it has been put sleep? I.e. I know there are some risks of hard disk drive damage if one tries to shake them or rotate them while they're working. But is the HDD working while the Macbook is asleep?

MacBooks are fine to be transported when in sleep mode.  When a MacBook goes into sleep, it takes 20-30 seconds to save the current state to the HDD, while this is happening you'll see the status light shine brightly.  Once it goes into a slow pulse, the MacBook is asleep and the HDD is inactive so there is no risk to the HDD from normal movement in a bag for example.  Just make sure you don't throw it into the bag until it's fully asleep.  MacBooks also have a 'Sudden Motion Sensor' which can prevent damage to the HDD by the computer parking the head of the HDD if it detects that it is being shaken or is falling.  Read about it on the apple support pages or in the excerpt below:

  Sudden Motion Sensor technology is built-in protection for the hard
  disk, designed to help prevent disk issues if the computer is dropped
  or if it senses unusually strong vibration. Apple has adjusted this
  feature carefully to provide the best balance between protecting the
  hard drive and preventing unwanted activation of the Sudden Motion
  Sensor. Most Apple portable owners never need to turn this feature
  off. Apple suggests that you not modify the settings unless absolutely
  necessary.

  In some environments, such as live concert halls, recording studios,
  or dance clubs, external vibrations may be major enough to cause the
  module to unexpectedly park the hard drive heads, resulting in
  interrupted sound or video playback. In these situations, you may find
  that you want to disable the feature temporarily.

Also see page 23 of this manual
and page 16 of this manual


iPhone 7 Plus takes days to turn on showing Apple logo or black screen I’ve had this issue for months but in the last couple of days it’s got very very bad.

When my phone runs out of battery it needs like 2–3 days to turn back on. At the beginning of this problem the phone would need about 1h. Every time when my phone goes off again the time to switching on goes up.

What does this all look like? Well, when my phone died I put it on the charger, then the logo appears and goes off. When it goes off, a black screen pops out with a little white line on in it, then it turns on back to Apple logo. It keeps doing this until it turns on which is 1 or 2 even now 3 days.

I tried to restore it and also update it but nothing happens, literally nothing happened.

...when my phone died I put it on the charger, then the logo appears
  and goes off. When it goes off, a black screen pops out with a little
  white line on in it, then it turns on back to Apple logo. It keeps
  doing this until it turns on which is 1 or 2 even now 3 days.

This is indicative of a battery failure and you need to have it replaced.

Your battery is having difficulty holding a charge under a certain level (batteries are really never at 0V).   The battery itself has an operating range - it may be 12 to 8 volts DC.  Under 8V, it will give you the black screen and not power on until it reaches that minimum threshold.  If it's taking 2 or 3 days to meet that threshold, it means that the battery's capacity has diminished to a point that the charger can barely keep up with the dissipation - think "keeping your head above water" analogy.

There will come a point in time (very soon) where the charger simply won't be able to charge the cell(s) anymore.


How do I hide Terminal windows using AppleScript? I am using an AppleScript where I need to open many Terminal Windows using:

repeat while counter > windowAmount
    tell application Terminal
       do script ""
    end tell
end repeat

Is there any way that I can hide the new Terminal windows that are opening up?
I am fine with it appearing in the dock but I don't want it to show any windows.

You could minimize each window as it's created, although you'll see each window as it minimizes to the Dock, or you could hide each window as it's created. The latter of which would require additional code as some point to unhide the window.

To minimize the window:

tell application "Terminal"
    do script ""
    set miniaturized of window 1 to true
end tell

To hide the window:

tell application "Terminal"
    do script ""
    set visible of window 1 to false
end tell

To uhide the window:

tell application "Terminal" to set visible of every window to true


Incompatible software with newer operating system versions I bought a new conputer to replace my aging MacBook Air (2011). I migrated from my Time Machine backup, bringing my old applications. One of the steps in the migration said "identifying incompatible software."

Some applications have a gray slashed circle over them, while others (like OmniGraffle 4) just crash instantly on launch.

What causes some applications to be preidentified as incompatible while other simply fail to work?

What causes some applications to be pre-identified as incompatible
  while other simply fail to work?

It all depends.  Some binaries are compiled with a flag that indicates which is the minimum OS version it will run on.  There's also the Info.plist that contains minimum OS versions.  Finally, the application itself can check to see if it will run on a particular OS version.

Unfortunately, older apps like OmniGraffe 4 which was released back in 2005 probably don't use any of the version checking (and is incompatible) which is why it crashes when launched.


Imac 2006 Snow leopard Disk Image Restore Problem I have installed a new internal hard drive due to old one failing. I had made a complete Disk Image of the old Drive.
I re installed snow Leopard, and then tried to restore disk Image from External hard drive, it allowed me to pick the source of the restore "disk Image" but would not allow me to choose the Internal hard drive.
Can any one help with this problem
Thanks
Nicholas

Are you trying to restore onto the partition from which you booted (it sounds like installed Snow Leopard on the internal drive, then booted that and tried to overwrite it)?

Instead try booting from the Snow Leopard CD.  The install screen has a menu, from there you can choose the disk utility.  Run that and try to do the image restore from there.


Disk image of OS + Recovery partition? I'm working with multiple OS X versions frequently and I'd like to have an image which contains a particular OS version's system partition and its recovery partition. Is this possible? (the disk where these partitions are, contains several other partitions which I don't want, so full-disk image is not an option)

I'm guessing this cannot be done as a single-step process, so I've already created an appropriately-sized sparsebundle image with GPT layout:

hdiutil create -size 35g -layout GPTSPUD -type SPARSEBUNDLE /path/to/new_image.dmg

The next step would be to copy the relevant partition onto this image, but I don't know how to do this. My Linux experience tells me the partitioning utility should be the place to look for this, but I don't see anything in diskutil's manual which looks like it does what I want.

Hints/ideas?

Starting from a working setup

A working setup is disk, or full-disk image with multiple partitions (FDI hereafter), where the OS and its recovery partition is known to be correct, most likely because it was created by the OS Installer. As mentioned in the comment, asr is enough to handle copying both partitions in this case.

Assuming the source OS and recovery partitions are disk3s11 and disk3s12, respectively, I recommend the following procedure:

Shrink the OS partition to its minimum size. This isn't necessary, but I suggest doing it when you can never be sure if the user's target partition will be as big as the one you're using.

$ diskutil resizeVolume disk3s11 limits

... (minimum size will be mentioned here) ...

$ diskutil resizeVolume disk3s11 24GB

Create appropriately-sized temporary FDI as a sparsebundle. Remember, the Recovery takes extra 650 MB over the system partition, and EFI takes another 210 MB. So I'll add an extra GB to the size used in step 1 just to be safe. The catch here is, hdiudil support only binary prefixes (1024 for k, etc.). In this example, 25 GB = 23.29 GiB.

$ hdiutil create -layout GPTSPUD -type SPARSEBUNDLE -size 23.29g /tmp/temp_FDI

created: /tmp/temp_FDI.sparsebundle

Attach the image without mounting it (it would fail, since the partition was not formatted). Take note of the /dev/ entry for the Apple_HFS partition.

$ hdiutil attach /tmp/temp_FDI.sparsebundle -nomount

/dev/disk5              GUID_partition_scheme
/dev/disk5s1            EFI
/dev/disk5s2            Apple_HFS

Run asr with the image's empty partition as the target. You'll have to enter full path to /dev/... entries. Also, since the source is a physical disk, elevated privileges are necessary. You should see the tool finish with 2 rows of Restoring... progress.

$ sudo asr restore --source /dev/disk3s11 --target /dev/disk5s2 --erase  --noverify

    Validating target...done
    Validating source...done
    Erase contents of /dev/disk5s2 ()? [ny]: y
    Validating sizes...done
    Restoring  ....10....20....30....40....50....60....70....80....90....100
    Restoring  ....10....20....30....40....50....60....70....80....90....100

Finally, create a compressed read-only image from the sparsebundle. Use the sparsebundle's "whole disk" /dev/ entry (/dev/disk5).

$ hdiutil create -format ULFO -srcdevice /dev/disk5 -o /tmp/OS_X_10.11-combined_FDI2.dmg

...
Elapsed Time:  2m 33.743s
File size: 8000565446 bytes, Checksum: CRC32 $5D496986
Sectors processed: 48842670, 38032196 compressed
Speed: 120.8Mbytes/sec
Savings: 68.0%
created: /tmp/OS_X_10.11-combined_FDI2.dmg

You may wish to use UDZO format if you need your image to be compatible with older versions of OS X and their respective Recovery environments (ULFO was only introduced in 10.11).

Working from the ground up

It is possible to assemble a "working setup" from single-partition images (images which don't have partition table, and therefore no hint for asr that a particular partition is a Recovery; SPI hereafter). The procedure is not for the faint of heart.

I'm going to assume that I have a compressed, read-only SPIs of both the system partition, and the recovery partition. Shrinking the partitions to minimum size is a whole another can of worms, where using a full-blown UDRW image seems unavoidable. Feel free to suggest a simpler solution.

With that in mind, do a pre-shrink of the system partition image. Readonly image can only be shrunk with a shadow.

$ hdiutil resize -sectors min  OS_X_10.11-system.dmg -shadow /tmp/pre-shrink.shadow

Check the image size, then attach it

$ hdiutil imageinfo OS_X_10.11-system.dmg -shadow /tmp/pre-shrink.shadow

...
    Total Bytes: 27648868352

$ hdiutil attach OS_X_10.11-system.dmg -shadow /tmp/pre-shrink.shadow -nomount

...
/dev/disk7

The size is about 27.65 GB.

Create a sparse image big enough to hold the system and recovery partitions in full size - AFAICT, SPIs cannot be resized and that must be done inside an FDI. With extra space needed for EFI and recovery, we'll need 28.6 GB = 26.64 GiB.

$ hdiutil create -layout GPTSPUD -type SPARSEBUNDLE -size 26.64g /tmp/temp_FDI
$ hdiutil attach /tmp/temp_FDI.sparsebundle -nomount
/dev/disk5              GUID_partition_scheme
/dev/disk5s1            EFI
/dev/disk5s2            Apple_HFS

Do an asr restore from the system SPI's /dev/ node into the sparsebundle's data partition.

$ asr restore --source /dev/disk7 --target /dev/disk5s2 --erase --noverify

Now, check the minimum size of the partition using diskutil. Then use resizeVolume to shrink the partition and create the recovery partition in a single step.

$ diskutil mount disk5s2
$ diskutil resizeVolume disk5s2 limits

... (minimum size will be mentioned here) ...

$ diskutil resizeVolume disk5s2 24GB JHFS+ Recovery %recovery% Free\ Space dummy 1m

Restore the recovery SPI into the new  partition on the FDI. It will probably get mounted, so unmount it. You can work with the image directly.

$ asr restoreexact --source /path/to/OS_X_10.11-recovery.dmg --target /dev/disk5s3 --erase --noverify

...
$ diskutil umount disk5s3

Here's the tricky bit - dump the partition table using the gpt utility, taking note of the recovery partition's start and size values. Delete the record for the recovery partition, and re-add it with modified type GUID. You will know which record is for the recovery partition by the index ("disk5s3"), and by its size (shown here in 512 B sectors).

$ gpt show disk5
...
   47546784    1269536      3  GPT part - "Recovery"
...
$ gpt remove -i 3 disk5
$ gpt add -b 47546784 -s 1269536 -t 426F6F74-0000-11AA-AA11-00306543ECAC disk5

Optional: I also recommend changing the partition name (set to "disk image" by default) to match the system partition's volume name.

$ gpt label -i 2 -l "OS X 10.11" disk5

Now, since hdiutil resize doesn't work with sparsebundles the way we'd need, you can either:

Leave it at that. It's not like the free space consumes anything. Continue with step 5 in the Working setup scenario.
Convert the temp_FDI.sparsebundle image to UDRW, and try to properly shrink that. I haven't tested that and the need to write out the entire size image for this step makes the whole exercise pointless.
Treat the sparsebundle existing at this point as a disk with optimally-shrunk system, and perform the first scenario on it, skipping step 1. Ie. create another sparsebundle image, and run asr, which will this time copy both partitions into the new image, and convert that to ULFO image.

Restoring

Steps for restoring from the created image:

Mount the image using

# hdiutil attach /tmp/backup_image.dmg -nomount

Start the restore, either by:

Use the "Disk Utility" app, restoring from the partition in the backup_image to the partition on your drive (the one in Sierra just works, restoring the Recovery partition too: you will see two Restoring/Verifying steps)
Use asr, similarly as described above:

$ asr restore --source /dev/disk1s2 --target /dev/disk0s4 --erase  --noverify


kernel_task and softwareupdate constantly hogging .5 GB of RAM each I have a 2011 MacBook Pro. It had 4 GB of RAM and I upgraded it to 6 GB last year as it was getting a bit sluggish with the newer versions of OS X and running Vagrant VMs on it.

Lately, I’ve noticed my MacBook’s really slow upon waking up. As in, it takes up to a minute before it’ll accept keyboard and trackpad input, and app switching is woefully slow. And when input is recognised, it’s just very slow to operate.

After working on my MacBook through this sluggishness for about half an hour, and the fans kicked in, I decided to open Activity Monitor to see what’s actually going on.

Vagrant’s using nearly 2 GB of RAM (that’s fine, that’s what I set it to use, and I can scale that down), but I also noticed that two processes—kernel_task and softwareupdate—are both using .5 GB each. Add this with Chrome using around .5 GB and other applications, this quickly adds up and puts pressure on my poor 6 GBs.

The softwareupdate process is self-explanatory, but why is it using so much memory? I imagine it’s only hitting Apple’s servers to check for software updates. Does it really need .5 GB for that? And what about the kernel_task process? Why does that need .5 GB of memory as well?

kernel_task is, in effect, 'the operating system'.
Every process hangs from it, it's at the top of the entire tree of what processes are running on your machine.

Run Activity Monitor [Applications > Utilities]
From the View menu select 'All Processes, Hierarchically'
Switch to the memory tab
Click the Memory column until the arrow points down

You can now see the 'tree' of processes, which are running inside another, & how much memory each is actually using. Note, for things like web browsers, that each page uses memory in addition to the overall usage for the browser itself.

It has to be said that 6GB RAM isn't much, these days - & using 2GB of that for a VM is not really leaving you with a lot to play with.


Wifi stays connected but Internet connection drops constantly - Macbook Air 13" Setup:

Computer: Macbook Air 13-inch (early 2014) 1.7 GHz Intel Core i7, 8
GB, running OS X El Capitan. Using DHCP & automatically configuring IPv6
Router/modem: Netgear N300 Wifi cable modem router, Model C3000
ISP: Time Warner Cable

Problem:

Wifi stays connected, but ceases to have internet access constantly. I can regain internet access by either cycling the wifi on and off from the top bar, or by running "Diagnostics" in the "Assist me" section of the Network System Preferences.

When I run Diagnostics, the Network Status shows up green for Wifi, but red for wifi settings and everything below that. The actual act of running the diagnostics fixes the problem.

I've tried power cycling the router, the computer, and the cable box, as well as renewing the DHCP lease. It seems to improve the length of time between internet disconnections, but they still happen somewhat often.

What version firmware is present on the net gear?  Does this also occur if you are hardwired in?  Can you disable the N band temporarily to see if that changes anything?


Can I replace a "UK" keyboard layout` Macbook Pro 2016 top case with a "US" top case? Is it possible to replace my UK layout top case with a new US top case?

Also is it possible to replace this 2016 model top case with a 2018 top case?

Whilst the topcase-and-keyboard is interchangable (within years - you can't put the 2016 guts into a 2018 body), changing the keyboard's nationality layout does not change what the machine knows as its native tongue. Yes, it is possible to change the keyboard layout in the OS to match the new languagr-layout, but that only takes effect once you have logged in - at the login screen, the keyboard will still be using the original language layout.


Macbook Pro 15" Mid 2010 Keycap problem I am having a problem with my "a" key sticking. The key is clean, but I looked at some diagrams and compared them to my key, and it seems that the top pin on the scissor mechanism has snapped off or is otherwise gone.

I would like to replace just the faulty key. Is that possible? Do I need to replace the keyboard assembly as well?

Where can I find a replacement?

I looked at iFixit and they did not have the part. I also looked on PowerbookMedic and they had the entire top keyboard assembly, but I don't want to have to go that route if there is only one faulty key.

Maybe go to your local apple store (or repair center).
They often have spare keys around from broken keyboards and/or topcases.
Otherwise check ebay (make sure it's the same model. Apple changed the mechanism behind they keys 2 or 3 times afaik)


How can I disable the iCloud login prior to the local user login in El Capitan? After upgrading to El Capitan I get an initial login screen with my name and round icon, which wants my iCloud password. After that I get the username and password screen, where I enter my local username and password.

I want to just enter my local username and password. Is there a way to disable the iCloud login? I seem to recall selecting something related to that when installing, but I don't see anything about it in my login preferences.

It turns out the main issue is that I'm using FaultVault encryption. On restart, the login screen showing user photos is part of FileVault, and happens before booting OS X, so it doesn't utilize the login screen preferences.

When you simply logout, you're shown the actual OS X login screen, as the machine is already booted. That screen does utilize the preferences and appears as I expected.


macOS Sierra and QNAP SMB share - Disk does not support Time Machine backups. (error 45) Quote from macOS Sierra: Disks you can use with Time Machine

  If your backup disk is on a network, the network server can use Server
  Message Block (SMB) file sharing. Your Mac must be connected to the
  SMB server when you set up Time Machine. After you select the network
  disk in Time Machine preferences, Time Machine automatically connects
  to the disk when it’s time to back up or restore your data.

> sudo tmutil setdestination "/Volumes/$NAME/"
Password:
/Volumes/$NAME: Disk does not support Time Machine backups. (error 45)
The backup destination could not be set.

I use QNAP TS-251 with latest firmware. The SMB share is working fine with Finder.

Any idea? I don't wish to use AFP.

I followed the instructions How do I set up Time Machine backups between my Mac and NAS on a domain via the SMB protocol?. When mounted as SMB it doesn't work, but with AFP it works.


Project file can't be build error you don't have permission to view it Hello may be this is silly question and may be asked before it but i am not getting proper solution for this. I have downloaded one project from the internet and when i am trying to run it/build it the xcode says :

The file “PROJECT NAME” couldn’t be opened because you don’t have permission to view it..

Can anybody have idea why this is happen ? Please help me to resolve this issue

I have resolve the issue by following way. The project i have download from the internet don't have the executable file in info.plist which should be there and its value should be this ${EXECUTABLE_NAME}. Instead of this value it consist some different value. So i have changed it ${EXECUTABLE_NAME} this value then clean->build->run successfully.

See the below link also

https://stackoverflow.com/questions/27355361/error-while-build-project-xcode-says-you-dont-have-permission#


An anomaly (bug?) in iCal in Lion? Has anybody else noticed a problem with date display in iCal in Lion? It appears when "Show event times" is activated in the General tab of Calendar preferences.

I spotted a date-display inconsistency with a weekly recurring event I have set up. Despite having system-wide dates formatted as 12-hour with am/pm included (Language & Text System Preference), this event fails to respect that preference. It is scheduled to commence at 1:00 pm and finish three hours later, at 4:00 pm. Rather than being listed in Calendar in this way, it appears:

in the summary list in Daily view as "13 to 16", and
with a starting time of "13" in Daily, Weekly and Monthly view.

Anxious to get to the bottom of this, I have played around with various date ranges in a number of test calendar entries. The conclusion I've arrived at is that the problem is confined to on-the-hour times, as illustrated here. Once the time does not end in 00, things display correctly; otherwise, the date displays in stripped-down, 24-hour fashion.

So: has anyone else seen this, or am I alone with this problem? I'm inclined to submit bug feedback to Apple, but would first prefer to have corroborating evidence.

No - I'm not getting it and can't seem to break things even trying to.

An official bug might be warranted as you seem to have been careful to be sure it's happening. I would be very certain to file if you can make a new account and the same happens in a clean calendar.


How do I erase MacOS from HDD but keep personal files (i.e. convert a bootable disc to a storage disc)? I have a 2TB Seagate HDD which used to sit in my old Mac Pro. It has both the OS and my personal files on it. I want to sell my Mac but keep the drive and use it as an external HDD for my MacBook Pro. The drive has lots of movies on it and I would hate to lose them.
Folders currently on the HDD:

Applications
Library
opt
System
Users

Can I delete everything other than the Users folder?

Sure you can.
Once it's no longer actually being used as your boot drive you can treat it just like any other data drive. It will let you delete anything you want - just make sure you keep the good stuff ;)
I doubt you will even get any permissions issues at all, but if you do, you can Get Info on the drive itself & check the box at the bottom to ignore ownership.


apple.local Dock[255]: ECFileOperationRevealURL failed with -43 Cmd+click on any file can reveal them in Finder but now takes no effect.

I reviewed the console log and found following error:

May  2 00:14:12 apple.local Dock[255]: ECFileOperationRevealURL(file://localhost/Users/suyejun/Downloads/code/) failed with -43

I installed PathFinder and uninstalled it after I found this error. But the error still exits.

I'm sure that before installing PathFinder, the functionality is ok.

How can I fix this? Thank you.

OS X Mountain Lion (10.8.3)

I suspect that PathFinder isn't actually the culprit here.  I downloaded and extracted (although didn't install) PathFinder, and searched for ECFile, and found no matches:

Mitsu:Contents ashley$ pwd
/Users/ashley/Downloads/Path Finder.app/Contents
Mitsu:Contents ashley$ find . -type f -exec grep ECFile {} \;
Mitsu:Contents ashley$

I suspect ECFileOperationRevealURL is actually the name for some code within the Dock application itself.  I say that because I found the text ECFileOperation in a 2007 webpage where people are discussing features added to the Dock in a beta release of OS X 10.5.  I can't verify this easily on 10.8, though, as /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock is now an apple-protected (encrypted) binary, which can't be meaningfully searched with grep as above.

So, some suggestions:

Just to check I have the right end of the stick: you are saying that if you cmd-click an icon in the Dock, nothing happens, except that you get an entry in console.log?
Is this true for both applications (to the left of the Dock separator line) and folders (to the right)?  (Assuming you have the Dock on the bottom of the screen.)
If you create a new user account (for testing only), does the problem persist there?
If the problem goes away in the new user account, try moving ~/Library/Preferences/com.apple.dock.plist to another location temporarily (say your Desktop), then restart.  This should reset your Dock setup.  If this fix doesn't work, you can always put the file back.  If it does work, I'd suggest setting up the Dock again from this fresh start.


Filevault stuck on pause, can't reinstall macOS, can't upgrade I've had this issue for about a year now, but never cared about it. Now I'm very motivated to fix it. :)

So I wanted to enable FileVault for my system but somehow it got stuck. I'm running El Capitan 10.11.6. It's a MacBook Pro (Retina, 13-inch, Early 2013).

$ diskutil cs list
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group EA8CE898-9E59-4AE3-A61A-0483E0348B70
    =========================================================
    Name:         Macintosh HD
    Status:       Online
    Size:         249490432000 B (249.5 GB)
    Free Space:   1152106496 B (1.2 GB)
    |
    +-< Physical Volume 0EE26D70-A5FA-40F6-BF42-20E30E4D47C9
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk0s2
    |   Status:   Online
    |   Size:     249490432000 B (249.5 GB)
    |
    +-> Logical Volume Family 9756B87D-76C6-4923-AFD6-B183C6BFABB2
        ----------------------------------------------------------
        Encryption Type:         AES-XTS
        Encryption Status:       Unlocked
        Conversion Status:       Pending
        High Level Queries:      Not Fully Secure
        |                        Passphrase Required
        |                        Accepts New Users
        |                        Has Visible Users
        |                        Has Volume Key
        |
        +-> Logical Volume A84FF2DD-B511-47F1-BA9A-3E7BC522B42C
            ---------------------------------------------------
            Disk:                  disk1
            Status:                Online
            Size (Total):          247763697664 B (247.8 GB)
            Conversion Progress:   Paused
            Revertible:            No
            LV Name:               Macintosh HD
            Volume Name:           Macintosh HD
            Content Hint:          Apple_HFS
            LVG Type:              Sparse

I've spent a day looking up fixes and trying out solutions (dozens of times). Here's what I've tried so far:

Boot into recovery mode, unlock and repair disk. I get green checkmarks but no luck in unpausing encryption.
Boot into recovery mode, run corestoraged, no luck.
Both of the above in normal boot. No luck.
Tried to move the corestorage daemon but could not, the FS is read-only.
fdesetup disable did nothing as well. It succeeded but no change to filevault.
fsck_cs -y disk_identifier_goes_here succeeded but didn't unpause the Filevault conversion.
Tried to upgrade to Sierra but the installer complained about Filevault conversion in progress (https://i.imgur.com/k9ABpmI.png)
(After giving up hope, backing up to Time Machine) Boot into recovery mode, try to reinstall macOS there. Same error as 6.

So at this point. I have run out of ideas, and can't even start from scratch. How do I un-screwup my system at this point? I am okay with wiping my hard drive and restoring from a TM backup.

So I figured I've tried all I can so let's just try erasing the disk. That worked.

Here's what I did:

Time Machine backup to a disk.
Time Machine backup to another disk because I'm not risking it.
Recovery mode.
Disk Utility -> Select Macintosh HD -> Erase.
In recovery mode, Recover from a TM backup.

Now the system's good!


mkdir: /Users/me/.bash_sessions: Permission denied When I open terminal now I get always this error message. Any ideas how to fix this?

mkdir: /Users/me/.bash_sessions: Permission denied
touch: /Users/me/.bash_sessions/9F11525D-3E4C-45B5-8FA7-D69A4D2CC5B3.historynew: No such file or directory

~/.bash_sessions is a folder used to store the history of past bash sessions. Apparently the permissions are wrong (however this happened), there are several ways to tackle this:

rm -r ~/.bash_sessions Deletes the whole folder, should get recreated with the next Terminal tab/window you open
sudo chown -R $USER ~/.bash_sessions; chmod 700 ~/.bash_sessions Tries to fix permissions (sudo only works if you have an account with admin privileges)


Why use iPhoto instead of manually saving images? I would like to know whether there are any advantages to using iPhoto on Mac for my pictures taken on my iPhone. For the past few years I have simply exported all images via Image Capture which stores the actual file to a location on my hard drive. Recently I have had to use iPhoto to get images off an iCloud shared stream, I have noticed when importing the images it saves into one file (almost like a database) instead of individual JPEG files.

Can someone tell me whether what pros and cons are there to using iPhoto instead of manually saving images?

Most things you can do in iPhoto you can do in Preview and Finder, except a lot slower. Organization in iPhoto is more powerful than simply using a file system.

You can sort:

by Event
by Location
by Person via facial recognition

Arrange into albums (Unlike folders, photos can reside within multiple albums.)
Shows extra metadata, such as:

Stars
Camera and settings used
Map position

Allows basic image touch ups:

Color-grading
Auto touchup (really hand, fast and convenient)
Built in "straighten" function (also very useful)
Auto-enhance
Automatically retains "originals" in case you want to revert an edit

Manages Facebook and Flickr albums


Is there a way in Numbers to flip columns with rows? Is there a way in Numbers to flip columns with rows ?

I have several tables in my sheet and I need to swap columns with rows for each table.

e.g.

A1  A2  A3
B1  B2  B3
C1  C2  C3

should become:

A1  B1  C1
A2  B2  C2
A3  B3  C3

thanks

With the table selected, simply choose Table > Transpose Rows and Columns.


Occasional system hangups after upgrade to Lion: is it a disk or software problem? I have an 13 inch MacBook unibody Alu (early 2009, before they started to be called MacBook Pro) that I use every day for many hours (it's my work and life computer). Few weeks ago within few days I upgraded the RAM to 8Gb and the harddrive to Samsung 1TB HN-M101MBB (I cloned my old drive to the new one with SuperDuper). These were the first changes to the hardware (apart from new battery) I did from the original configuration. After using computer for few more days with Snow Leopard, I upgraded to Lion.

Since then, every week or so my computer freezes completely without apparent reason and no good explanation. I get notifications either that my harddrive was corrupted, or very cryptic message that (some application name, ie Mailplane or Papers) database was corrupted and it cannot write to disk "T" (I have no such drive). When I hard-reboot the computer, it can't find the home disk. When I reboot it again with option key and select recovery drive and run disk utility, it always reports that my home disk 'appears to be OK'. After another restart everything is back to normal again.

I have never had such problems before the Lion upgrade, but I am not sure if it's the software or the new harddrive. Any hint on what can be wrong and how to fix it would be greatly appreciated.

Thanks,
Yot

Nobody will tell you for sure (without diagnosing a problem), but you should definitely check both your harddrive and memory (corrupted memory may cause data loss while writing to HD. I had such a problem twice in my life.)

I prefere non-OS specific utilities:

SystemResqueCD
You can install it either on CD or on USB flash drive.
It contains a lot of diagnostic utils. One of them is memtest86+ which you can use to test you memory.

Memtest86+
It's is one of the most recognized software diagnostic tools on the planet. Since 2008 it supports Apple hardware. It checks memory by writing different binary patterns and checking what's actually stored in memory.

Red means bad

MHDD

Official site of this utility is dead, but you can find in here.
That's what you need to check your hard disk drive. I'm not sure that it will work on Apple hardware, but you can plug your hard drive in any PC or in external USB enclosure and check there.


iPhone 3g won't enter DFU mode I have an iPhone 3g running iOS 4.2.1 with no SIM card. I'm attempting to jailbreak it so I can use it, but it will not enter DFU mode, even though I have tried repeatedly. I am attempting to use redsn0w 0.9.15b3, but my mac should recognize an iPhone in DFU mode anyway, so the jailbreak's probably not the issue.
The home button is connected to the board, I opened it up and checked.

Please do not just parrot the instructions from the redsn0w jailbreak, as I have already read them many times. I am looking for advice on what may be preventing the iPhone from entering DFU mode.

This may seem silly, but this is what I do when I have had to troubleshoot DFU mode (getting in and out of). First cross your fingers that it is software. Do you have a different USB cable that you can try with? Access to another computer to attempt with. I'm sure you have already tried rebooting both the iPhone and Mac, right? Not sure if you know or not, but you actually don't the computer nor the cable to get in DFU. You may want to try without plugging it in as well. The only difficult part with that is since it is not plugged in you will not know when it boots into DFU mode until you plug it in and the computer chimes. These seem basic but even the best of us forget about switching ports, rebooting the computer or trying another cable.


How easy is it to reinstall MacOS and change my disk setup? I have a 2012 MacMini running Mojave. Originally MacOS was on the built-in 1Tb HDD but I got an external SSD and set this up as the main drive for OS, applications, etc. Given the Mac will no longer boot without the external drive, I believe I must have removed the original OS from the internal drive.

I would like to revert to booting from the internal drive, in a way that causes as little disruption as possible. Ideally I would be able to move installed apps rather than lose them, and certainly not have to format the drive. The external drive would be removed or become just a data drive.

How can this be achieved?

Install to the internal using erase install steps.
Migrate data / apps / settings from the external using the migration assistant portion of the os setup assistant.


MacBook Air Mid 2011: headphone plug makes weird noises If I turn a headphone plug around in the headphone jack, it makes really loud and weird creaking noises. I just want to make sure that my Macbook Air isn't the only one which does that.

I already had a close look into the jack, but nothing seems to be wrong with it.

There is no such sound coming from mine. Sorry to say this - but it sounds like you have a repair coming your way.

It might still just be the headphones though - have you tried with different sets??


Configure macOS Notification Center Banner self-dismiss time How can I reduce the amount of time before a macOS / OS X Notification Center banner dismisses itself?

Open your terminal and run this command

defaults write com.apple.notificationcenterui bannerTime SECONDS

where SECONDS is a number for how many seconds you want the banner to be displayed.


Where will the incident with the sudo command be reported to? If a non-admin types a sudo command in Terminal, this will appear after they enter their password:

User is not in the sudoers file. This incident will be reported.

Where is this reported to?

The event will be logged in /var/log/secure.log and a mail will be sent to root (which by default goes to /dev/null which is Unix speak for it is discarded).


Set a Display colour profile via Terminal or AppleScript? (Macbook) I would like to be able to change the display colour profile of my MacBook, with a view to writing a program that changes the loaded colour profile on a shortcut key-press, or automatically at certain times. Does anyone know of a Terminal or AppleScript command that could load an existing colour profile? I am aware that this could be achieved through UI scripting of the System Preferences application, but I'm not a fan as UI manipulation tends to be slow, messy and unreliable.

I know the .icc colour profiles used are stored at /Library/ColorSync/Profiles/Displays/, but opening one of the .icc files only starts ColorSync Utility, and I can't see an obvious way to load them.

I am using a 2007 MacBook (not Pro or Air), a "Core 2 Duo" 2.16 GHz model, running Snow Leopard version 10.6.8. I am pretty sure f.lux is not supported on Snow Leopard, and I would like more manual control anyway.

Somebody wrote a customdisplayprofiles command (in Python) for changing display profiles from the command line. I haven't tried it out, though.


"This Card is Already in wallet" message when I'm trying to add card to Wallet & Apple Pay which was removed I removed credit card and I'm trying to add it again in "Wallet & Apple Pay", but I get the message as in title.
At iWatch I removed and added the same card without problem.

I removed other cards which I had already in Wallet and then one by one added them, also the problematic card.


Is it possible to automatically back up my mac to Microsoft OneDrive? I'm not sure there is a way to do what I want to do.  Now that I have Office 360 + 1TB of free space, I'd like to set my mac to do monthly backups to OneDrive.  I'm looking for the following features.

Sync + Upload

Sync: would be great if it just uploaded changed files
Direct Upload: rather than just dropping files into the OneDrive folder, so my local Hard Drive doesn't explode.

Starts automatically, runs in the background

Is there any combination of software that can accomplish this?  I've done a fair amount of googling and can't seem to find a solution.  Basically looking for "Carbonite" but instead - using Microsoft OneDrive.

IF the onedrive is mounted then you can use sync and cron with a script
(Please note on kindle fire and format may be off so this will be simple):

cd $HOME
rsync -ar . /Volumes/<mount point of one drive>

This has more details:

Once you have saved script, and gave it execute permission, use crontab -e to add your frequency.

Please see this for crontab example (I can not give proper screen display with kindle)

If the drive is not visible with df, then I am not sure.

Following up on this answer, you could use this utility to mount your OneDrive folder and to the backup using the info above:


Why does iMessage recipient show as green when sending message thru Siri Shortcuts? I'm trying to use the built in "ETA" shortcut recipe. I add my wife as the recipient and run the shortcut. When it shows me the message for confirmation, her name is green, not blue.

When I actually send the message and look in the Messages app, I now have two different conversations for her. One is our historic message thread, the other has only this single message sent by Shortcuts.

Why is this happening, and how can I stop it?

I had the same issue. I solved it by typing in the phone number rather than using the contact.


Screensaver changes images too quickly – is there a way to adjust it? I like to display my own images using the Mac OS X screensaver, but it seems that Mountain Lion has shortened the duration for which each image is displayed. The duration is too short for my tastes – that is, the screensaver changes images too quickly. I searched online but could not find an explanation of how to change the refresh rate; I also looked inside the likely preferences files (~/Library/Preferences/com.apple.screensaver.plist and ~/Library/Preferences/com.apple.preference.desktopscreeneffect.plist) and none of the properties there appear relevant.

Is there a way to change the rate at which images are shown?

Found the solution!

I followed these instructions and it worked for me!
http://wiki.daveking.com/index.php?title=Change_The_Slide_Duration_In_Screensaver_%22Ken_Burns%22_Slideshow


How to know what percent of document that I read in Safari? When using Safari to read documentation, how do I know how much do I read or much much more is left to read just like I do with editors?

There seems to be no indicator in Safari for that purpose.

If you initiate a scroll a little bit either up or down a scrollbar will appear in Safari letting you know where you are in the document unless it has been disabled by code in the website.

You could use a "User Style Sheet" to have the scrollbar always appear: http://webdesign.about.com/od/css/ht/htcssusersafari.htm

Or you can do it the easiest way and go to "System Preferences > General" and choose "Show Scrollbars > Always".


Outline of changes to the iOS Developer Program License Agreement From time to time Apple updates their iOS Developer Program License Agreement, but, unfortunately, they never provide any clues as to what they changed since the previous version of the agreement. This means that after each change I need to read through the entire agreement and hope that I catch any of the new stuff they introduced.

Do you know of any place where a summary of the changes between versions of the agreement is presented (possibly somewhere on one of Apple's sites and I just missed it)?

An alternative might be an application that provides a visual difference between two PDF documents. I tried out DiffPDF, but it turned out that this app is not sophisticated enough to handle the accumulating changes after a few pages. If you have a different suggestion it would be welcome.

There is a very nice site that publicly calls out changes to Apple's developer terms.

http://www.appstorereviewguidelineshistory.com

Before them, I've not seen anyone that provides these publicly, so I've resorted to saving the PDF to a folder every time I'm prompted that there is a change. I just append the YYYYmmDD of the agreement to the file name so I can see where exactly the agreement with Apple is changing.

From there, a tool like Kaleidoscope can run a graphical diff on the text if you copy it into a TextEdit document or otherwise get the content out of it's PDF container. Preview will allow you to copy all the text and paste it into a Text Edit document, but I also have a Folder Action created in Automator to convert any PDF file dropped into it's folder into a rich text file and dump the result on my Desktop.


How to update apps through iTunes? I have iTunes 12.3.3.17 on Windows 7 and I want to update an app through iTunes.

All the tutorials I have found are for iTunes 11, where there is a clear button at the bottom. This is not the case with iTunes 12. How can I update an app via iTunes?

Welcome to Ask Different!

In iTunes, go to the upper left corner, and find the bar that shows icons for things such as Music, Movies, etc. Click the button with the three dots, and you should see Apps. From there, you'll see a button that says "Updates." Click that, then Update All Apps. For more information, look here.


Distribute an app directly to customers: MacOS vs. iOS I have a Developer Program subscription ("Enrolling as an Individual", not as an Organization).
With MacOS, it's possible to code-sign / notarize an app, and ship the .dmg / .pkg to customers, without using the AppStore. Since the package is code-signed, the installation process is normal, with no "Unknown developer" dialog box.
Is there a similar feature for iOS? Can we distribute apps to iPhone and iPad users without using the AppStore?

It is technically possible to distribute apps to iPhones and iPads without going through the App Store.
However, as you indicate that you want to distribute the apps to iPhone/iPads not owned by you or your organization, it narrows the options.
If you want to distribute software to internal test users or external beta testers (or similar), you can use Apple's TestFlight. It allows you to distribute your app to both insider and outsiders without limiting what the app can do compared to an App Store distributed app.
There is however limits to how widely you can distribute apps via TestFlight:
Essentially you can have up to 100 users that are internal (i.e. if you enroll as an organization this would be employees or dedicated extern testers). You can distribute apps to those almost without any delay and without going through a length review process.
You can also distribute your app to up to 10,000 external users. However those apps must go through a (shortened) review, and this means that there is some delay to the distribution. Often you will need to wait 12-24 hours to get the first version of an app approved. Updates are usually quicker.
Finally, TestFlight limits the duration these apps can be used. Essentially when an app is approved for external testing, it expires 90 days later. At that point it will not run on a users device. This means that to ensure people can keep using the app without interruptions, you must release an update 4 times a year approximately.
If you were enrolled in the App Store program as an Enterprise, you also have the option of distributing apps to your users without going through the App Store. Here you can deploy apps directly from MDM, email, web sites, etc. without going through any review process. However, you can only distribute apps to your own employees (i.e. devices owned by the enterprise). You cannot use this method to distribute apps to customers.


Fast user switching affects color profile I have a 2013 MacBook Air running Mavericks. I have a "work" and a "personal" account that I switch between throughout the day using Fast User Switching. Sometimes when I switch accounts, the (built-in, only) display turns an awful, washed-out blue. I thought the behavior was random, but I've figured out how to reproduce it consistently.

Have multiple accounts.
Log into one account from the Login Window.
Use Fast User Switching to switch to a different account that you're not already logged into.

Every time, the screen will turn blue. And when I look at the display preferences, I'll see that the factory color profile, "Color LCD", is not listed, and instead OS X is using the generic "Display" profile.

The screen will stay blue until I log out of the account that triggered the bug. Logging into the same account from the Login Window poses no problem.

For what it's worth, here's what the Display Preferences dialog normally looks like:

I have no idea why "Display" is listed four times. Perhaps it's a clue.

Thanks for this very detailed post.  I have the same issue, and only a workaround, not a solution.

Workaround consists in going into monitor prefs, change screen resolution to a lower res, then get back to "optimal screen res", and then you original color profile is available for selection.

A bit tedious, but once done, I can fast-switch back and forth and the color setting will remain intact (until I leave either session).

Hope this helps.


Corrupt Photos in Photos_Private.photoslibrary When I try to open a photo in Photos_Private.photoslibrary, its corrupted. However, if I select Show Package Contents and open the Originals folder, everything is fine. So the question is, where do I need to copy the folder Originals to, to be able to view the images in Photos?

Open Photos.app
Select the photos you’re interested in.
Menu-select Export, submenu export originals
Put them anywhere you want.
Edit: Having been alerted that I haven’t answered the question at the end, I decided to not delete this as it may be useful to someone else.


Report *only* mouse wheel events in iTerm2 In Preferences -> Profiles -> Terminal, my iTerm2 (3.2.7beta4) has the following options:

I would like iTerm2 to send mouse wheel events to the application (so that I can e.g. scroll in tmux), but not other mouse events. When I use mouse to select text (without any modifier keys), I want iTerm2 to handle that, not tmux. It looks like I can't do that with the above options. Is there any other way to do that?

There is no way to do it right know, but this pull request, if it gets accepted, will enable iTerm2 to report mouse wheel events without reporting clicks.


OSX 10.7 File Sharing does not respect Group: Everyone "No Access". Share publicly displays As the title says. I have a folder, which I added to my Shared Folder list under System Preferences > Sharing that I do not want to broadcast publicly. I'm the owner of the folder and my access is "Read & Write" and the Everyone group is set to "No Access".

Using a second computer I can navigate to this share, logged in as "Guest", and I can still see and navigate this private share.

I removed all my shares, turned off and back on again (AFP file sharing service) and instead of defining my share points in the System Preferences, I used ⌘I (Get Info) and checked the "Shared folder" checkbox. I then applied the same permissions at the bottom of the Get Info window with the same results. I can still see and navigate the private share over the network.

Any folder added to your shared folder list is broadcast publicly. If you don't want it to be visible to guest users, remove it from your shared folder list. You will still be able to access it by logging in as a registered user, using your user name and password. If you log in as a registered user, you will be able to see all your files, but a guest can only see files in the shared folder list.


Booting MBP 15" 2015 without battery I have a MacBook Pro 15" from Mid-2015.
Unfortunately the battery started swelling up (funnily the battery menu claims the it to be ok).
Since it's a stationary computer after I smashed the screen I simply want to run it without battery.
As soon as I remove the battery it does not boot anymore. It starts booting but then before it gets to the login screen it turns off again.
There is absolutely no information on this issue on the internet. The only hint I could find was another person claiming the AC adapter wouldn't have enough grunt to handle boosting.
That does not make a lot of sense to me, since I ran MacBooks without battery numerous times. On the other hand it's a pretty sound theory, electronics wise.
Is there any possibility to reduce load on boot? I could also try to sacrifice an old AC adapter and solder the MagSafe to either a thicker cable or even to a different power supply...
Any thoughts on this? Could it be, that the AC adapter is not capable of providing enough power (85W though...)? Or could the wimpy cable introduce too much voltage drop?

I wouldn't solder a new cable as you may risk destroying the entire Mac.  It would be best to just buy a replacement battery.  They're around $50 on eBay, but that's a whole lot cheaper than a new Mac if the DIY power cable fries it.


How can I copy only one page on iPad pages app? I want to copy only one page in my document at Pages app (iPad), but there seems no way to do it, as the copy button that is triggered by tapping on the specific page on the left-side bar seems to copy the entire page.
But I need to copy only the first and second pages of my document, and copy it to the head of another document. Is there any way to do it?

open the document and at the top, you see an icon that looks like a page divided into 1/3 and 2/3. See the image below. Tap on that icon and you'll see "Page Thumbnails". Turn that on and then tap on the document. You'll see the thumbnails on the left. Tap on the Thumbnails you want and you'll get an option to copy or edit.


Install php on Mac Yosemite I am trying to run Laravel but I was getting a mcrypt error.  I found more than one php on my mac so I decided to delete both and reinstall.  However I can not seem to find instructions on how to install the php.  Every thing I find already has the php installed and it is instructions on how to make them work by enabling.  I need to know how to get it installed.

Any Mac built in the last 10 years comes with Apache and PHP installed and ready to go. All you need to do is run one command to start apache (apachectl start) and un-comment 1-2 lines in httpd.conf. installing massive packages that leave you with multiple copies is NOT necessary.

If you want a friendly interface and a box to check, get Apple's Server application.


Multiple GUID_partition_scheme, cant boot MacOS High Sierra, and gpt command resource busy I have a problem after deleting Kali OS from my dual-boot Macbook (with High-Sierra MacOS). The problem is:

I can only boot into internet-recovery-mode
I can not use gpt command, as it results: 'resource busy'

The partition types got hosed by removing Kali Linux. Disk0s2 and disk0s3 got the wrong types. I would expect some Apple partition type for disk0s2 (HFS+/CoreStorage/APFS) and a Linux partition type for disk0s3. Disk0s4 is probably some dispensable Linux boot/swap partition.

To regain access to macOS you have to modify the partition type of disk0s2.

Boot to Internet Recovery Mode
In the menubar open Terminal.app and enter:

diskutil list
gpt -r show disk0

to get all partition and volume details of the internal SSD
Unmount all disk0 related volumes and disks (in your example that's disk2 (based on disk0s3), disk0s4 and finally disk0). Examples: diskutil unmountVolume disk0s4 or diskutil unmountDisk disk0.
Remove the APFS container disk2: diskutil ap deleteContainer disk2
Remove disk0s3 and disk0s4 (either with diskutil or gpt).
Example: diskutil eraseVolume "Free Space" Nil disk0s4
Determine the partition type of disk0s2 (How can I make my Mac partition bootable again?) and remove and re-add disk0s2 using gpt with the same size but the proper type. Considering the macOS version (10.13) and the hardware (SSD) the proper partition type is probably 7C3457EF-0000-11AA-AA11-00306543ECAC (APFS) instead of FFFFFFFF-FFFF….
Expand disk0s2 with diskutil ap resizeContainer disk0s2 0.

Under certain circumstances you have to disable SIP to edit the partition table with gpt!


Macbook EFI parition after reFind I have a question about what should be located in the EFI partition of my macbook. A couple of years ago I dual booted ubuntu with reFind, however recently I erased my main partition to clean up my mac. Now I would like to dual boot arch also using reFind, so I mounted my EFI partition and found this:

BOOTLOG
BOOTLOG.OLD
screenshot__001.bmp
screenshot__002.bmp
EFI/
    APPLE/
        CACHES/
            CAFEBEEF/
                (empty)
        EXTENSIONS/
            Firmware.scap
        FIRMWARE/
            MBP91_00D3_B0D_LOCKED.scap
    Ubuntu/
    tools/
        gptsync_x64.efi
    reFind/

So I deleted the ubuntu and reFind directories since I want to start with a fresh install of reFind. My question is were the files contained in the APPLE and tools directories created from the old reFind install, in which case I can delete them, or are they integral to the standard mac boot process (so I shouldn't mess with them)?

You can delete everything from the EFI partition if you wish. OS X will recreate what it needs when the operating system starts. Basically, OS X copies the Firmware.scap file from the boot partition to the EFI  partition.

The files and folders marked below for deletion are not part of OS X.

BOOTLOG                            <---- Delete
BOOTLOG.OLD                        <---- Delete
screenshot__001.bmp                <---- Delete
screenshot__002.bmp                <---- Delete
EFI/
    APPLE/
        CACHES/
            CAFEBEEF/
                (empty)
        EXTENSIONS/
            Firmware.scap
        FIRMWARE/
            MBP91_00D3_B0D_LOCKED.scap
    Ubuntu/                             <---- Delete (Part of Ubuntu)
    tools/                              <---- Delete (Part of rEFInd)
        gptsync_x64.efi                 <---- Delete (Part of rEFInd)
    reFind/                             <---- Delete (Part of rEFInd)

The rest of the files were put there by OS X or related software.


Archive Utility can't open some gzipped text files based on their contents In macOS 10.15.4, Archive Utility is able to open some gzipped ASCII text files but not others, depending on the contents of the text file. For example, this works:

% echo "abc e" | gzip > ok.txt.gz; open ok.txt.gz

But this fails:

% echo "abcde" | gzip > bad.txt.gz; open bad.txt.gz

The second example shows an error in Archive Utility: "Unable to expand 'bad.txt.gz' into 'folder'. (Error 79 - Inappropriate file type or format.)"

I'm trying to figure out:

Is this a bug in Archive Utility, or am I somehow misusing the gzip format?
Assuming it's a bug, what is the bug? Which files are allowed and which aren't?

Why I believe this is specific to Archive Utility on 10.15:

10.14 and 10.13 don't seem to have this problem; the files open normally.
The bytes of the gzip files created on 10.15 seem to match ones created elsewhere, and open normally with gunzip on 10.15.

Text file contents that work or don't work:

Text files without spaces don't work, such as "abcdefghijklmnopqrstuvwxyz"
Text files with spaces at the end don't work, such as "abcdefghijklmnopqrstuvwxyz "
Text files with internal spaces do work, such as "abcdefghijklmnopqrstuvwxy z"
Text files without spaces but shorter than five characters do work, such as "abcd"

What could be going on?

Someone in another forum sleuthed this out. If you run Archive Utility in the terminal, it shows a more complete error message:

Error unarchiving Error Domain=NSPOSIXErrorDomain Code=79 "Inappropriate file type or format" (Missing type keyword in mtree specification)

Turns out Archive Utility on Catalina is misdetecting text files as mtree files, which is a documented way to misconfigure libarchive (bug 1; bug 2).

This means, in addition to Archive Utility on 10.15.4 failing to decompress some simple text files like "hello", it will also do surprising things with text files that match the mtree format. For example, decompressing "hello type=dir" will create a directory that can only be deleted with sudo:

% echo "hello type=dir" | gzip > hello.txt.gz; open hello.txt.gz
% ls -l
total 8
d---------  2 jcushman  staff  64 Apr 20 09:36 hello
-rw-r--r--@ 1 jcushman  staff  35 Apr 20 09:36 hello.txt.gz


Unknown profiles icon in System Preferences I just noticed in System Preferences a new icon "Profiles". When I click on it, it shows  'AdminPrefs' then in red letters "unsigned"  details have a lot {, (, symbols .and 'default Search Provider lines.

What is this?

Your MacBook is probably infected with the OSX/Shlayer/Crossrider malware.

It's a so-called dropper which may install/already has installed additional malware.

Searching for a reliable removal method I came across a lot of dubious websites offering tools pretending to remove this malware. Don't download and install them!

Malwarebytes' Malwarebytes 4.0 or other decent AntiVirus software should be able to detect and remove this malware and subsequently loaded malware/adware.

Analysis: Mitigating OSX/Shlayer


Error installing unixodbc I am trying to install php55 using brew, but when you start installing the dependency 'unixODBC' stops at the last line

this is the message that shows

➜  ~  brew install -vu php55

==> Installing dependencies for php55: unixodbc, homebrew/dupes/zlib
==> Installing php55 dependency: unixodbc
==> Downloading http://www.unixodbc.org/unixODBC-2.3.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/unixodbc-2.3.2.tar.gz
==> Verifying unixodbc-2.3.2.tar.gz checksum
tar xf /Library/Caches/Homebrew/unixodbc-2.3.2.tar.gz
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/unixodbc/2.3.2 --enable-gui=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no

 .......MORE......
 .......MORE......
 .......MORE......
 .......MORE......

 -g -O2 -pthread -c -o _iniScanUntilObject.lo _iniScanUntilObject.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -pthread -c _iniPropertyRead.c  -fno-common -DPIC -o .libs/_iniPropertyRead.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -pthread -c _iniDump.c  -fno-common -DPIC -o .libs/_iniDump.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -pthread -c _iniScanUntilObject.c  -fno-common -DPIC -o .libs/_iniScanUntilObject.o
/bin/sh ../libtool --tag=CC   --mode=link clang  -g -O2 -pthread -no-undefined   -o libinilc.la  iniAllTrim.lo iniAppend.lo iniDelete.lo iniClose.lo iniCommit.lo iniObject.lo iniObjectFirst.lo iniObjectLast.lo iniObjectNext.lo iniObjectSeek.lo iniObjectSeekSure.lo iniObjectUpdate.lo iniObjectInsert.lo iniObjectDelete.lo iniObjectEOL.lo iniOpen.lo iniProperty.lo iniPropertyFirst.lo iniPropertyLast.lo iniPropertyNext.lo iniPropertySeek.lo iniPropertySeekSure.lo iniPropertyUpdate.lo iniPropertyInsert.lo iniPropertyDelete.lo iniPropertyEOL.lo iniPropertyValue.lo iniValue.lo iniToUpper.lo iniElement.lo iniElementCount.lo iniGetBookmark.lo iniGotoBookmark.lo iniCursor.lo _iniObjectRead.lo _iniPropertyRead.lo _iniDump.lo _iniScanUntilObject.lo ../extras/libodbcextraslc.la

[stops here]

I solved the problem by updating Xcode to the latest version.


No package manager on brand new macOS Catalina I'm sorry if this is a stupid question, but I've been searching for days with no results.

What is the default package manager for macOS Catalina terminal?

% brew
zsh: command not found: brew

I've tried others (apt, apt-get, yum, etc.) but none of them are pre-installed. Any help is greatly appreciated!

The only package manager that’s somewhat default is /usr/bin/easy_install for python. You have to choose and install any of the leading open source type package managers.

For brew, this has been the command to download and run code from the internet.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

If this thought makes you cringe, alternate install paths are safer than trusting dns and scripts without having a chance to inspect them.

mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew


How to guarantee a clean install of macOS Mojave from an external USB drive I recently received some Mac Mini's (2014 2.8 i5 16GB RAM) purchased online which came installed with El Capitain.  I was concerned that the there could be a root kit installed on these second-hand refurbished machines.  So I wanted to do a clean install of the OS.  I followed instructions (https://www.macrumors.com/how-to/macos-sierra-clean-install/) to create a bootable version of Sierra and restarted the machine with the option and reinstalled the OS from the USB disk.

To my surprise, when the system restarted after the "clean" install, the user that was created before the "clean" install was still there and so was all their user preferences and applications installed.

Is this normal for a "clean" install from USB?  What prevents a re-seller from installing a root kit in the user's directory that may include a cron, or even another sub-system that would still be there after this "clean" install?

Like Allan said in his comment that step specifically says

  Once the USB drive has booted, select "Disk Utility" from the Utilities window, choose your Mac's startup drive from the list, and click "Erase".

This is one of the most vital steps in the process of a clean install. It COMPLETELY wipes the target drive of all information previously there. If you don't do that all you are doing is reinstalling macOS right over top of what is already there leaving everything that was on the hard drive still there.

If you do that there will be nothing left, no users, 3rd party apps, malware, etc.


Mavericks unusable (beach ball) when CoreStorage fails I have a Late 2008 MacBook Pro running OS X 10.9.1 (13B42)

I've upgraded it with a 180GB Intel SSD 520 series (model INTEL SSDSC2CW180A3), which replaced the SuperDrive CD-rom, and I setup a Fusion Drive with my main Hitachi HTS543232L9SA02. Both disks now look as one for a total of ~500GB.

Since I've upgraded to Mavericks I've noticed this impossible issue with the  beach ball of death. At some times it just makes my life miserable.
I think I've tracked it down to this message log that keeps appearing at the exact moments when the computer freezes:

22/01/14 17:16:04,000 kernel[0]: CoreStoragePhysical::issueUnmap: unmap returned e00002ca

That's it, it never changes the returned e00002ca. I couldn't find any sort of information about the issue. Any idea?

Below is the configuration of the fusion drive as being seen by the System Information tool:

Hitachi HTS543232L9SA02

NVidia MCP79 AHCI:

  Vendor:   NVidia
  Product:  MCP79 AHCI
  Link Speed:   3 Gigabit
  Negotiated Link Speed:    1.5 Gigabit
  Physical Interconnect:    SATA
  Description:  AHCI Version 1.20 Supported

Hitachi HTS543232L9SA02:

  Capacity: 320,07 GB (320.072.933.376 bytes)
  Model:    Hitachi HTS543232L9SA02
  Revision: FB4AC50F
  Serial Number:    081216FB1400LEJHVM3F
  Native Command Queuing:   Yes
  Queue Depth:  32
  Removable Media:  No
  Detachable Drive: No
  BSD Name: disk1
  Rotational Rate:  5400
  Medium Type:  Rotational
  Partition Map Type:   GPT (GUID Partition Table)
  S.M.A.R.T. status:    Verified
  Volumes:
EFI:
  Capacity: 209,7 MB (209.715.200 bytes)
  BSD Name: disk1s1
  Content:  EFI
disk1s2:
  Capacity: 319,21 GB (319.213.174.784 bytes)
  BSD Name: disk1s2
  Content:  Apple_CoreStorage
Boot OS X:
  Capacity: 650 MB (650.002.432 bytes)
  BSD Name: disk1s3
  Content:  Apple_Boot
  Volume UUID:  A3B8405D-F6D7-3E1E-B368-9FC0EF7283BD

INTEL SSDSC2CW180A3

NVidia MCP79 AHCI:

  Vendor:   NVidia
  Product:  MCP79 AHCI
  Link Speed:   3 Gigabit
  Negotiated Link Speed:    1.5 Gigabit
  Physical Interconnect:    SATA
  Description:  AHCI Version 1.20 Supported

INTEL SSDSC2CW180A3:

  Capacity: 180,05 GB (180.045.766.656 bytes)
  Model:    INTEL SSDSC2CW180A3
  Revision: 400i
  Serial Number:    CVCV30350908180EGN
  Native Command Queuing:   Yes
  Queue Depth:  32
  Removable Media:  No
  Detachable Drive: No
  BSD Name: disk0
  Medium Type:  Solid State
  TRIM Support: Yes
  Partition Map Type:   GPT (GUID Partition Table)
  S.M.A.R.T. status:    Verified
  Volumes:
EFI:
  Capacity: 209,7 MB (209.715.200 bytes)
  BSD Name: disk0s1
  Content:  EFI
disk0s2:
  Capacity: 179,7 GB (179.701.792.768 bytes)
  BSD Name: disk0s2
  Content:  Apple_CoreStorage
Boot OS X:
  Capacity: 134,2 MB (134.217.728 bytes)
  BSD Name: disk0s3
  Content:  Apple_Boot
  Volume UUID:  8E3ACF9F-6DE9-3F12-BB8B-8B76ABDDFBA8

This is a complicated setup which makes troubleshooting a little difficult, so you are going to have to test multiple things and simplify.  Also, it sounds like you made your own fusion drive instead of buying an officially supported configuration so it could be that OS X just doesn't support doing this with your drives.

Check the state of Core Storage to see if things look correct on the logical disk level.  In Terminal, type: diskutil cs list
Assuming everything is Online and good, you should scan the logical volume for errors.  In Disk Utility, select your logical volume and "Verify Disk" followed by "Verify Disk Permissions".  You might have a few disk permission errors which probably aren't your issue but you should watch out for disk errors thrown by Verify Disk.
[Read completely before typing any commands. I am not liable for your data loss]  Assuming everything checks out, then there is probably a hardware issue with one of the individual disks in the pair.  Open Terminal and type diskutil list to list out the individual drives in your machine.  You need to identify the actual hardware drives and not the logical drives that are created as part of Fusion or any encryption in use.  It should be something like /dev/disk0 and /dev/disk1.  Once you have identified your actual physical drives, you can try forcing a read of every sector on each drive to cause bad sectors to be remapped if one of your drives is failing.  In Terminal type sudo dd if=/dev/rdisk0 of=/dev/null bs=64k.  This will ask you for your password.  Note the 'r' in front of rdisk0.  Also, replace the number after rdisk with the numbers you determined earlier for your physical disks.  This will take a long time.  It will read every single part of your hard drive and send the data that it reads to nowhere since we don't care about interpreting what is being read and just want it to be accessed.  If sectors on the drive are bad, then they will balk when they are read and the drive should internally remap the bad locations to a reserved set of new ones.  Once you have done this for both drives, the drives should stop having read/write errors assuming there was a small section that was bad on one of the drives which was able to be remapped.  WARNING.  Typing the previous sudo command incorrectly could erase your computer.  Also, if one of your hard drives is failing and about to die, then forcing a complete read of the hard drive could cause too many bad sectors to be remapped and cause your drive to fail.  Ideally you backup all data before doing this.  Also, even better would be to read the SMART tables off of each drive and look at the reallocated sector count.  The number should be 0.  Unfortunately, I don't know if an OS X utility will let you do this while your drives are combined using Fusion.  You might have to pull them out and test on a different machine.  A non-zero reallocated sector count means the drive is already failing and forcing a full read may kill the drive or may revive it if the damage is minor.  Ideally you would perform a full wipe of the drive instead of doing a read since this is much better at flushing out bad sectors but that would also erase all of the data on your drive.
If the previous suggestion didn't work or is too scary, then don't use Fusion in an unsupported configuration.


Why my MacBook Pro 15" (2011) power adapter turns orange? I bought an early-2011 MacBook Pro 15" (highest-spec model) in June. It's running Lion.

I have a problem which happens occasionally. My power adapter (while plugged in) from time to time (particularly when I play games) turns orange and shows me on the bottom of the screen that there is "0:09" or "0:10" minutes left. However, when I push on the battery menu icon for the detailed information, it shows me "99% Full".

It could be that your battery is defective.

If you go to System Information > Power, what do you see under "Battery Information" - "Charge Information"?

Mine says:

Charge Information:
  Charge Remaining (mAh): 4693
  Fully Charged: Yes
  Charging: No
  Full Charge Capacity (mAh): 4744
Health Information:
  Cycle Count: 219
  Condition: Normal


Send wifi password from iPhone to iPad I have an iPhone and an iPad. iCloud keychain sync is on. I'm in a location with a secret wifi password that is on my iPhone and not on my iPad. My iPhone isn't jailbroken and I already know I can't see the wifi password on my iPhone.

Is there any way to pass the wifi password from my iPhone to the iPad?

The simplest would be to just retype the pass. if you don't know it, then you cannot access the password saved. Here is an explanation. And if you can, configure a certificate authority and a key (That would be shared between your iPhone and iPad) to access the Wi-Fi.

Unfortunately, on the iPhone it is not possible to access this information. The passwords are kept on your phone in a safe place that is not accessible through any regular means on the phone. This is done for your protection, if you were to lose your iPhone and someone picked it up, the passwords that are stored on it would be up for grabs. This would lead to a lot of security problems.
I would recommend apps like 1password or the many other pieces of software out there that do the same thing to keep your passwords safe and backed up. I have way to many passwords to remember and it has been a life saver. 1Password even has the ability to back up your passwords to dropbox just in case something happens to your phone and you need to access it from somewhere else.
There are a lot of different password managing apps out there, just find the right one for you.
As gtm above me stated, there is a way to access your passwords but it is through jailbreaking. I do not recommend jailbreaking, that is something that you have to make the decision on for yourself. Jailbreaking is not for everyone.
I know this may not have been the answer you were looking for, we have all been there when we forget a password and there isn't a way to retrieve it. The easier thing you can do is just reset the password on your router and make sure to keep that password safe.
I hope this answer helps somewhat.

quotation from answer by @de_an777

Update:
I just noticed you seeing this quotation because of the link to the thread. You unfortunately cannot bypass it. At least nobody found out (ostensibly). You could be the first one to discover ;)


How to resolve iPhone 7 running iOS 13.1.2 not supported by Xcode 10.1? When trying to run my test app on my iPhone 7, I got this message:

  could not locate device support files.

This iPhone 7 (model 1660,1778, 1779, 1780) is running iOS 13.1.2 (17A860), which may not be supported by this version of Xcode.

My Xcode is version 10.1. I tried to update Xcode to latest from App Store. It never works - the coloured ball keeps spinning. What I can do?

You need to have Xcode 11 installed for this to work. Xcode 10.x won't recognize iOS 13.

Try logging out and in of App Store app on your Mac. If it doesn't work you try restarting your Mac. If that fails too, attempt a reinstall of Xcode from the App Store.


How can I tell what's in my iCloud backup? I have an iPhone 5s running iOS8 and a first generation iPad running iOS5, both logged in to my iCloud account. I'll skip some details and jump to the fact that I deleted my latest iCloud backup both from my iPad and my iPhone, as well as my computer running iCloud for Windows. I did it from all 3 just to make sure the backup got deleted (it wasn't initially showing it deleted, so I did it from all 3).

I then turned off iCloud backup on both devices. Finally, I turned it back on on just my iPhone. Then I let it do a backup. For some reason, the backup size is much larger than it looks like it should be. See screenshot attached. The settings shown there are the same settings that were in place when it did the backup this morning.

Why is the backup size so large? It looks like it should only be about 3MB in size, based on what I have checked. Incidentally, 4.6GB is the same size as the backup I said I originally deleted before starting this process. Is there any way to tell what's making the backup so large?

This is most likely a case of the numbers not updating in a timely manner. Have you tried setting it how you wanted, forcing a backup, and checking back in a small amount of time?


How do I install Eclipse? I just downloaded the .tar ball and unzipped it. It seems to run as a standalone from the folder that was unzipped in my Downloads folder. However, I want to install this so it is in applications, but there are so many other files like configurations. Where do I put those? I tried dragging just the eclipse.app to the applications folder and when i try to run it, it says the shared dependencies are missing.

The main Eclipse application needs to be kept in the same folder as its support files otherwise it won't start. What I have done is to keep Eclipse in its own folder, somewhere out of the way, then right-click on the main Eclipse application and select "Make Alias". This will create a file called Eclipse alias. You can then move the alias to wherever you want it to be, without worrying about the rest of the Eclipse files. You can move this alias to the Applications folder, and then rename it back to Eclipse.


OS X: common paths for executable files I have some executable files in OS X which I want to access from terminal from any area. For example in Linux, we can copy executables or binaries to /usr/local/bin or /usr/bin. So similar to that where can I copy executables in OS X? I have downloaded Firefox and copied it to /Applications. Now I want to execute Firefox from any area without going in to the /Applications.

/usr/local/bin is a suitable path for non-GUI applications. For example, you might put rsync 3.0 in there as compiled 'rsync3'.

This folder is listed in $PATH by default.


Left Command + Z isn't working anymore I have a full size Apple keyboard attached to my MacBook Pro. The left ⌘ + Z key combination isn't working since a while.

The problem only occurs when using the left Command key. ⌘ + Z is working fine.
The left Command key works fine with other combinations, such as left ⌘ + X.
The problem only occurs when using the external keyboard. Left ⌘ + Z is working fine on the MacBook itself.

I tried restoring the keyboard settings to its defaults, to no avail. This could be a hardware problem, but I can't understand why the left Command key works fine in combination with other keys.

I'm clearly lost here. Any ideas?

Edit: Tested the keyboard on another MacBook and it's having the same issues. So, it's most likely a hardware issue. Can this be fixed?

Fixed it! Cleaned the area underneath the Z key and everything is working again. :-)


Any way to modify DISPLAY similar to how it works for X11 with the macOS display system / window manager so other users can display on active display? I have a scenario where I need to run graphical applications from other users from shell on the currently active display. In other words, I am logged in as user "A" and in Terminal I su to user "B" and need to run TextEdit.app as user "B" in user A's graphical display.
Currently if I start up (in Catalina) /Sys/System/Applications/TextEdit.app/Contents/MacOS/TextEdit I see the following in Terminal:
TextEdit[26292:293814] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted
TextEdit[26292:293831] Spell server connection invalidated
TextEdit[26292:293792] In -[NSApplication(NSQuietSafeQuit) _updateCanQuitQuietlyAndSafely], _LSSetApplicationInformationItem(NSCanQuitQuietlyAndSafely) returned error -600

And while TextEdit renders on the display I cannot get the Menubar entries for it or save files, etc.
Similar behavior happens with all apps I try such as TextMate.app. I always seem to get this error:
TextMate[26365:295425] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted

Is there any way to work around this?

No
X11 includes the ability to run an application on once machine with display on another.
For macOS the application and display must be the same machine.
What can be done is use screen sharing so that if you share B's screen to A. A can interact with the program running on A's machine.
There are also applications that allow you to broadcast from one machine to another - e.g. if running on B's machine, other machines can see B's interaction with the program.


Error Installing OS X El Capitan on Early 2008 Mac Pro from USB I am trying to install OS X El Capitan on an early 2008 Mac Pro. I wiped the hard drive on the Mac and followed this tutorial to create a USB boot drive with El Capitan using a Macbook Air running El Capitan. I then place the USB into the Mac Pro and hold the option key during boot. The option to install El Captian from the USB stick appears and the window with a loading bar and the Apple logo appears. The loading bar loads 2/3 of the way and then the following screen appears.

This error is cryptic so I did some research online to see if any others have had this issue. Other have suggested to try another USB stick but this did not change the behavior. I've also read that this problem can occur with an incompatible version of OS X being installed. Is this possible?

Does anyone hae any idea how to fix this?

Probably you got a faulty SO image. You should try to re download the installation file from the App Store and/or try some other method to put the installer on the USB.


Stop auto scroll down in OS X terminal Is there a way to temporarily stop the terminal from automatically scrolling down when new output is output to the terminal?

You can pipe your command into more or less.  du -h | less
This gives you a page at a time.


I can't find my iPhone on my computer I connect my iPhone 6 to my computer(Windows 8.1), but I cannot find the "internal storage" or "Lily's iPhone". Can anyone help me?

I usually sync my iPhone with my Mac at home so testing it on my work PC does not give the option to mount the phone to sync music, pictures, etc. That said...

If I recall correctly you have to download and set up iTunes to sync with the PC in question. Then iTunes will mount (at least) the Pictures folder and allow you to copy things off of it manually if you so choose. (again going from memory, I may have a detail or two incorrect)

If your goal is to use your iPhone as an external storage device or to explore the contents of the phone then you will need a 3rd-party application like iPhone Explorer installed on your PC to have access to the iPhone's file system and to be able to copy files back and forth at will.

I have always wanted to be able to just plug an iPhone in and use some of the available storage as you would a thumb drive. But Apple has chosen to not implement that functionality out of the box for some reason.


Live iPhone stream to laptop I am making a self-driving RC car to drive around a track for a school project. I am going to attach my iPhone camera to the car to film. the car is connected to my laptop which needs the video in order to tell the car where to go. How can I upload the video from my iPhone to my computer while the camera is filming continuously? the computer and iPhone would be connected by a cable at all times.

It is possible to do, but I do not see an option for a wired option. Please see EpocCam WiFi Virtual Webcam by Kinoni on the App Store

OR

Connect your iPhone to one a USB port on a Mac, then launch QuickTime. From there, you can click File > New Movie Recording, from there, you will be given a record button with an arrow beside it. Click the arrow, and under "[iPhone Name]" select your iPhone and start recording.

Disclosure: I have no connection with the app whatsoever. It’s just what was found in a quick search.


How do I install Windows 10 on Mac without removing the existing Linux partitions? I have a MacBook Air (El Captain) with Kali-Linux dual booted. Well, kind of. It's a 4 GB partition for live and a 15 GB partition for persistency.

So, all I wanted to know is, do I have any possibility of adding Windows onto my internal SSD too?

As far as I know, you can do it, but the order of installation should go like these:

  Install Apple's Bootcamp and use it to install Windows 10
  Use Windows 10 to shrink the Bootcamp partition, freeing up space to
  Install Linux
  Install rEFInd as a Boot Manager for all 3 OSes

All details are provided by Rob Pickering:
https://robpickering.com/triple-boot-macbook-pro-macos-windows-10-linux/


On iPhone 6+ my text message shows my husbands name as sender, not mine How do I have my name show as text message sender?
I have tried Settings, messages but have not found the place to change it.

The recipient has an address book entry of your number and/or email address with your husband's name. The easiest way to fix this is to send them your address book card - share it from the contacts app.


Do the intel Macbooks have an option for Hibernation? I noticed that Big Sur 12.3 update notes mention that Hibernation support has been added for M1 Macs. I have an intel MacBook Pro and have never noticed an option to Hibernate.
In contrast to Windows machines, In Intel Macs the only available options are are Sleep, Shutdown, and Restart.

Except in the most general way it is better not to translate terms like 'hibernate' and 'shut down' from Windows to macOS. Macs does not 'hibernate' in the same way as older versions of Windows - it is better to think of macOS having stages of sleep.  The final stage can be considered as hibernation.
Shutdown, too, is different on Macs and Windows. When you shut down Windows 10, it writes its state to disk (i.e. hibernates) ready for a rapid startup. On the other hand, macOS does a full shutdown, closing all applications, stopping system processes and halting.
Having got that out of the way:
On a MacBook there are these stages of sleep:

Sleep or memory sleep: This is what happens when you close the lid or let the computer idle for some time. Power to display, disk, and other systems is turned off;
Standby or Safe Sleep: Memory state is written to disk and after a certain period memory power is turned off (standard 3 hours);
Hibernation: All power is off, all state has been written to a disk image. You know this has happened if when you open the Mac you see the Mac icon, and then see a progress bar while it is loading state from disk.

Thus the macOS 'Sleep' action includes a hibernation phase as a final step.  Mostly macOS avoids the final hibernation stage to ensure rapid start when opening the lid.
My Intel MacBook never hibernates - it probably would if I left it for many days with the lid shut (but not turned off).
Though I don't have an M1 MacBook, I suspect that allowing a hibernate state will not make a lot of difference in practice.
At this point the question is answered, but to continue a somewhat further:
The pmset command does have an option called hibernatemode which is just one parameter for controlling sleep. This can have 3 values (this is an extract from man pmset:

hibernatemode = 0 by default on desktops. The system will not back memory up to persistent storage. The system must wake from the contents of memory; the system will lose context on power loss. This is, historically, plain old sleep.

hibernatemode = 3 by default on portables. The system will store a copy of memory to persistent storage (the disk), and will power memory during sleep. The system will wake from memory, unless a power loss forces it to restore from hibernate image.

hibernatemode = 25 is only settable via pmset. The system will store a copy of memory to persistent storage (the disk), and will remove power to memory. The system will restore from disk image. If you want "hibernation" - slower sleeps, slower wakes, and better battery life, you should use this setting.

For MacBooks there are just the two values: 3 and 25.
My memory is that 25 was introduced about 15 years ago, but went out of favour for more recent Macs. It is strongly recommended not to use 25 as 1) it can cause issues when waking due to FileVault, and 2) makes for a slow restart.
To control the stages of sleep, it is best to leave hibernatemode as 3, and to modify other parameters of pmset. This is mostly to control the timing of sleep stages, but also whether the Mac wakes up for network activity whilst the lid is closed.
I am going to firmly consider tuning of sleep parameters as outside the scope of the question.
As a final point, you can investigate what macOS is doing while sleeping with one of these two similar commands:
pmset -g log | grep -e "Wake from" -e "DarkWake" -e "due to"
pmset -g log | egrep "\b(Sleep|Wake*|DarkWake|Start)\s{2,}"
You may be surprised at how much activity is going on whilst asleep.


Why get a regular MacBook Pro versus the Retina display model? I am looking into getting an Apple laptop. I took a look at the MacBook Pro (regular versus retina display). After reviewing the specs, it seems the MacBook Pro with Retina display has the following benefits:

Lighter (by about 1 pound)
SSD
The display, of course

Is cost the only reason I should look at the regular MacBook Pro? It seems like the Retina display is about 300 – 400 dollars (USD) more for the same specs (hard drive space, etc)?

I wanted to see if there were other things in the regular MacBook Pro, besides cost, that would be considered an advantage over the new retina display.

I can buy a regular MBP, with a cheap HDD, open it, upgrade the RAM and replace the HDD with a SDD, all for a fraction of the price Apple would charge me. In addition, I still have Ethernet and a CD/DVD drive, in case I need one.

As I said, you might need the retina, or you might just like it, both of which are perfectly reasonable points. I don't, and I prefer to keep my money with me, upgrading my hardware when I need it, and at the price I choose to pay (out of a range of options).  Uh, and I also hate the lack of Ethernet port.

To each their own.


How can I remove the File Quarantine warning for a file associated with an Automator script? To download torrents, I have changed from running Transmission on my Mac to running it on a NAS. As a next step, I want the Mac to automatically start the torrent download on the NAS by moving the .torrent file to the "watch folder" on the NAS.

I have created the Automator script below to move the file and it works well. I have associated .torrent files with this script and my browser (Chrome) opens these automatically.

The problem I now have is that the Mac File Quarantine is triggered when the .torrent file is opened. I get the message:

  ".torrent" may be an application. It was
  downloaded from the Internet and will be opened by
  TorrentOnDiskstation. Are you sure you want to open it?

When I have Transmission installed on my Mac, it opens .torrent files without a warning message, so it must have some way of telling the OS that .torrent files are ok.

How can I get the same behavior with my Automator script?

I've found answers that show how to completely disable the File Quarantine feature (at least for pre-Lion Mac OS), but this seems overkill. I've also seen "hacks" that will trigger the xattr function when a file is created, but this doesn't seem elegant. Can anyone come up with a clean and self-contained solution?

From the Terminal.

defaults write com.apple.LaunchServices LSQuarantine -bool NO

This will turn off the warning permanently, or until you change it back with the following command.

defaults write com.apple.LaunchServices LSQuarantine -bool YES

You may need to restart for changes to take effect. Info from MacWorld.


macOS Big Sur update problem I recently updated my MacBook Pro 13" 2015 to macOS Big Sur and now it's not working! Did they stop supporting older laptops? Maybe there's something I can do to go back to Catalina or Mojave?
Or at least recover the data from the disk. I'm working on a website and there's plenty of vital info on that disk, if I loose it my project would suffer a lot.
Thanks in advance. I asked this question on other forums but didn't get the answer...

No, the Big Sur support for older hardware is the same now as it was in June when it was publicly released. The only temporary change is two models are temporarily blocked from starting an update - https://mrmacintosh.com/big-sur-11-0-1-20b50-released-to-block-install-for-2013-14-13-mbpros/ but your model should be good to go for restores and installations.
What does and now it's not working! mean precisely?
Now, older hardware goes out of support all the time based on the age of purchase and has nothing to do with whether the gear runs the new OS. Either way, if you want to ask a follow on question for your specific symptom, we may have help for that whether it’s out of “official support or not, but hopefully this answers how Apple will support you.


Always show hidden in Open/Save dialogs Is it possible to set by default to show hidden files and folders in Open and Save dialogs ?

I know it is possible to trigger to show hidden for dialog lifetime by press Command ⌘+Shift ⇧+..

I just asked this question again, since there were no real answers here, and according to this answer all you need to do is run

defaults write -g AppleShowAllFiles -bool true

and restart whichever application(s) you're using, and you're all set. No restarting Finder or your computer. Brilliant!