osx port install of php74 crashes with Illegal instruction: 4 I have an issue with php74 compiled by macports that is crashing with illegal instruction 4 when i run phpunit for unit testing my project.
uname -v
Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64

sudo port selfupdate
Password:
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.6.4 installed,
MacPorts base version 2.6.4 downloaded.
--->  Updating the ports tree

I use this computer for website development with php74, apache 2.4 and mysql8.
This was working well and i was able to run unit tests on my project using phpunit 8.5.4
The other day the computer locked up and was un-responsive so I powered off and on again.
After that, the unit tests (phpunit) running php74 (7.4.15) command exits with illegal instruction 4.
Other php commands, executed either via apache, or from the CLI work ok, it just appears to be the phpunit commands that break php74.
i re-installed an earlier versions of php74, (7.4.14 & 7.4.13) and the compiler complained that MacOSX11.2 was missing.  using the earlier version of php => same error.
i tried another version of phpunit (9.5.2) => same error.
i run the disk utility to scan drive errors, none found => same error
i tried copying the /opt/local/php74 from another mac to this computer => same error.
i have:
completely removed xcode.
removed macports and uninstalled all ports.
re-installed xcode 12.4
symbolically linked the 11.3 SDK to 11.2 ie:
ls -Al  /Library/Developer/CommandLineTools/SDKs
total 0
lrwxr-xr-x  1 root  wheel   14 24 Feb 11:08 MacOSX.sdk -> MacOSX11.3.sdk
drwxr-xr-x  8 root  wheel  256 24 Feb 11:09 MacOSX10.15.sdk
lrwxr-xr-x  1 root  wheel   55 24 Feb 14:49 MacOSX11.2.sdk -> /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk
drwxr-xr-x  7 root  wheel  224 24 Feb 11:08 MacOSX11.3.sdk

this link removed the macports warning, not sure if it was correct, but it appears to work.
re-installed all ports
and the error remains.
./phpunit --group Jobs_model
PHPUnit 9.5.2 by Sebastian Bergmann and contributors.

Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

zsh: illegal hardware instruction  ./phpunit --group Jobs_model

sudo port installed | grep -e php -e mysql -e apache
  apache2 @2.4.46_1+preforkmpm (active)
  mysql8 @8.0.23_0 (active)
  mysql8-server @8.0.23_0 (active)
  mysql_select @0.1.2_4 (active)
  php74 @7.4.15_0+libedit (active)
  php74-apache2handler @7.4.15_0 (active)
  php74-calendar @7.4.15_0 (active)
  php74-cgi @7.4.15_0 (active)
  php74-curl @7.4.15_0 (active)
  php74-exif @7.4.15_0 (active)
  php74-fpm @7.4.15_0 (active)
  php74-ftp @7.4.15_0 (active)
  php74-gd @7.4.15_0 (active)
  php74-geoip @1.1.1_0 (active)
  php74-gettext @7.4.15_0 (active)
  php74-gmagick @2.0.5RC1_0 (active)
  php74-iconv @7.4.15_0 (active)
  php74-igbinary @3.2.1_0 (active)
  php74-intl @7.4.15_0 (active)
  php74-ldap @7.4.15_0 (active)
  php74-mbstring @7.4.15_0 (active)
  php74-memcached @3.1.5_0 (active)
  php74-mysql @7.4.15_0+mysqlnd (active)
  php74-opcache @7.4.15_0 (active)
  php74-openssl @7.4.15_0 (active)
  php74-soap @7.4.15_0 (active)
  php74-sodium @7.4.15_0 (active)
  php74-xdebug @3.0.2_0 (active)
  php74-xmlrpc @7.4.15_0 (active)
  php74-zip @1.19.2_0 (active)
  php_select @1.0_0 (active)

my question is, what is recommended to fix this?
I really don't want to wipe the mac, but it is sort of moving in that direction.
here is an example stack trace from the error console.  https://pastebin.com/td7Xi4EL

Here are the important parts:
Exception Codes:       KERN_PROTECTION_FAILURE at 0x00007ffeeccd3ff8

VM Regions Near 0x7ffeeccd3ff8:
    MALLOC_LARGE             7ff27e800000-7ff27f101000 [ 9220K] rw-/rwx SM=PRV
--> STACK GUARD              7ffee94d4000-7ffeeccd4000 [ 56.0M] ---/rwx SM=NUL  stack guard for thread 0
    Stack                    7ffeeccd4000-7ffeed4d4000 [ 8192K] rw-/rwx SM=ALI  thread

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff2035068f __commpage_gettimeofday_internal + 31
1   libsystem_c.dylib               0x00007fff20266b6d gettimeofday + 45
2   libsystem_c.dylib               0x00007fff20282584 time + 48
3   php                             0x000000010292db7c tsrm_realpath_r + 384
    [...]
503 xdebug.so                       0x000000010551e540 xdebug_execute_ex + 1121
504 php                             0x000000010295e495 ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 405
505 php                             0x0000000102942ae7 execute_ex + 35
506 xdebug.so                       0x000000010551e540 xdebug_execute_ex + 1121
507 php                             0x000000010295e495 ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 405
508 php                             0x0000000102942ae7 execute_ex + 35509 xdebug.so                         0x000000010551e540 xdebug_execute_ex + 1121
510 php                             0x000000010295e495 ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 405
511 php                             0x0000000102942ae7 execute_ex + 35

Notice that you're at exactly 512 (= 2^9) stack frames and the parent frames have been truncated. You're getting a KERN_PROTECTION_FAILURE at 0x7ffeeccd3ff8 because you've overflowed the maximum stack size and you're trying to write to a protected region (the illegal address is just above Stack in the STACK GUARD region, which was created expressly to catch situations like this).
This happened because there was a highly recursive function call chain and it simply exceeded the 512 frame (8192 KB) default stack limit (see ulimit -s). From the looks of the recursed frames (ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER() over and over), I'd guess that it's php code (either yours or the unit testing framework) which is recursing, rather than the C code of the interpreter itself.
If you aren't sure where the recursion is occurring, one temporary workaround would be to raise the stack limit of the php process using ulimit(1) and run your command again in the same Terminal window:
ulimit -s 65532
./phpunit --group Jobs_model

This will run your test with a 64 MB stack limit. Note that the kernel specifies a maximum upper stack limit of 64 MB:
#define DFLSSIZ         (8*1024*1024)           /* initial stack size limit */

#define MAXSSIZ         (64*1024*1024)          /* max stack size */

so if your recursion is way huge, you'll still run out of space. At that point, though, you would really want to find out what's recursing so much.


Can't install OS X on MacBook Pro after installing Windows 8 So my hard drive stopped working, water damage I think.
I bought myself a new ssd and straightaway put Windows on it as I use it for work.

This was a few months ago I'm now stuck as I can't figure out how to install OS X whilst Windows is its main OS.

If anyone has a solution that doesn't involve me wiping my ssd I'd be very happy.

Boot with ⌘R, use Disk Utility to partition the disk, then use the OS X Utilities to reinstall OS X, selecting the new partition as the destination.


What scriptable OCR Software exists on OSX for a paperless office I'm planning to get a paperless office and for that, I a need good scriptable piece of OCR for OS X?

I've read a blogpost by Marco Arment about a few programs. Are there any workable ones there that allow me to script things?

OCRKit has both AppleScript support and a CLI. From their help page:

  AppleScript

  You can also script OCRKit to integrate it into your specific workflow.
  For example process incoming files, via shared folder, from MFP copy
   machine, etc. and simply tell OCRKit to open and thus process is via
  AppleScript:

tell application "OCRKit"
   -- the wonders of AppleScript POSIX path handling, ...
   open "Users:admin:Desktop:orderform.pdf"
   open POSIX path of "/Users/Admin/Desktop/orderform.pdf"
end tell

  Command line

  Since OCRKit version 2.5 direct command line scripting is supported.
  This greatly simplifies the use of OCRKit in batch processing, allows
  to set more options and is also more robust and cross-platform than
  AppleSCript.

OCRKit.app/Contents/MacOS/OCRKit \
    --lang en | de | fr | es | ... \
    --format pdf | html | rtf | text \
    --no-progress \
    --output out-file in-file

  Since OCRKit version 16.9 additional command line options are supported:

  -r, --recursive directory

    Scan directory recursively for new files. Skips files from OCRKit, with text layer or vector graphics.

  --pattern "regex"

    Pattern used to match filenames during recursive scans. Defaults to %.pdf$, recommendation for TIFF is %.tiff?$

  --log file

    Write log file information and statistics during recursive scan to file.

  --password secret

    Use secret password to decrypt PDF files during batch processing.

  --test-run [ fast ]

    Only run test batch processing in test mode to test PDF files or to
    obtain page count to estimate total processing time. "fast" will only
    check the first page of each file, instead of going thru all pages for
    image and vector analyzation.

  --tag name

    Use extended attribute name to tag the processing state of files
    during batch processing. macos:OCRKit (%s) will use native macOS
    Finder tags instead, or simply macos:OCRKit not including the state
    attribute. The order of the state attribute are: started, analyzed,
    processed, and can also be encrypted.


Mountain Lion OSX Server One IP Virtual Sites www resolving to wrong Site I am trying to get 2 domains working properly with one static IP on ML OSX Server.

When I set a domain = www.domain2.com- it resolves to domain1.com.
I have dns set for domain 2 at godaddy, where www.domain2.com and domain2.com both resolve to the IP.

I set an additional domain for domain2 in the server control panel as www.domain2.com. Both sites listen on the same IP.

Domain1 has a nameserver setup for the domain on a co-located mac mini.

============================================================================

I have two sites and one ip .I would like for the www subdomain to work for www.mysecondsite.com. after adding the subdomain www.mysecondsite.com in the control panel for osx server-- when I type www.mysecondsite.com the browser loads  www.firstsite.com.

I do not have enough points to post in the comments. All I did was setup the server. left the default site as is . added firstsite. added secondsite. added www.secondsite.com in the subdomain portion of secondsite's preference box.

This is a new install. am i missing something?

here is what I did that messed things up.

I set domain1 as the hostname, when I should have been using an alias like server.domain1.com. Also, i had the static ip selected in both domains. So, I changed the hostname to server.domain1 and then changed both domains to listen on any port.


Changing the resolution of the iPod Touch 4th generation My son was playing with my iPod Touch 4th generation and changed the screen resolution.  I don't know how to fix this.

How do I change the screen resolution back to what it is supposed to be?

Everything on my iPod is way too big and I can't do anything.

I think you may have turned on the Zoom or Large Text feature. Head over to Settings > General > Accessibility. turn zoom off in there, or Large Text.


How can I sync my entire home directory between my MacBook Pro to my Mac Pro Possible Duplicate:
  What is the best option to keep Laptop and Desktop user account in Sync?

I take my MacBook Pro with me to work and meetings. I do most of my design and development work on the Mac Pro. I currently use Google Drive and sync my documents and other things to the cloud.

However, how can I get my applications and entire home directory to sync as well, with or without the use of Google Drive? Is rsync an option to move all of /Applications and ~?

I am running the latest version of OS X Lion.

My MacBook Pro connects via Gigabit Ethernet every night to run a Time Machine backup to my SAN array.

I don't try it except on PC in 2006 but this kind of software do it for you :
http://fullsync.sourceforge.net/index.php

or something like this : http://www.macupdate.com/app/mac/31752/fsync-for-mac-os-x


How do I launch shell applications after changing shell to MacPorts bash? I have installed a current bash version via MacPorts and changed Terminal.app to use /opt/local/bin/bash. Unfortunately shell applications won't launch from Finder and Spotlight anymore. (OSX 10.8.2, Bash 4.2.37)

I've just changed the login shell and left Terminal's settings unchanged.

Set the shells open with setting back to the default login shell in Terminal's preferences
Add /opt/local/bin/bash to /etc/shells
chsh -s /opt/local/bin/bash
Open a new tab and check echo $BASH_VERSION


How do I clear iBooks download queue on OS X? I purchased a book but I don't want to download it on my Mac right now. I want to download it to my iOS device later. I paused the download. How do I delete it from my download queue without downloading the entire book?

I'm using OS X 10.10 " Yosemite" but hopefully someone knows of a generic solution for most OS X installs.

Deleting the iBooks cache in /private/var/folders/randomLettersNumber/C/com.apple.iBooksX did the trick for me.

An easier way at least on OS X 10.11 is to click a book in the download queue, select all, then delete. Unfortunately iBooks will ask you to confirm the deletion of each book download.


OS X 10.11 El Capitan Preview's print preview different from print result I've noticed something strange with printing PDFs via Preview on OS X 10.11 El Capitan. I've been printing PDF slides at 6 slides a page and they have always turned out like Figure 1.

After the upgrade to OSX 10.11, with the exact same print settings, they turn out like Figure 2 instead. I am printing with OSX's Preview, and the odd thing in OSX 10.11 is that the actual printout (Figure 2) looks entirely different from the print preview. (Figure 1)

I have tried printing my PDF on another machine running on 10.10.5 with the same set of print settings and it turned out like Figure 1, leading me to believe that 10.11 changed something.

It is too early to tell if it's really 10.11's fault, so I would like to see if anyone has encountered this rather odd and obscure bug.

Below are the attached print previews (it's a little small but I've labelled the slides with their slide numbers)

Figure 1. How the print preview in OSX 10.10 and 10.11 looks like, and how it is actually printed in OSX 10.10

Figure 2. How the actual printout in OSX 10.11 turned out instead (this is a photoshopped image of the actual printout because I didn't have a scanner to scan my picture in. But be rest assured this is how it looks like in real life)

Not sure if this is the only way to go about doing things, but I have solved this problem by resetting my printers, and then adding them back.

I suspect deleting the printer and adding that specific printer back should solve the problem as well, but this has yet to be tested, so don't take my word for it.


Windows (10) on 3rd Partition of MacBook Pro I think I've trawled the Internet for the last few days and haven't gotten any closer to my goal, to install Windows 10 on the 3rd partition of an old MacBook Pro (15-inch, Mid 2010) that I use for testing.

Problem 1: Windows ISO too big for a DVD
So I first downloaded the Windows 10 from MSDN and proceeded to make an install DVD. Once downloaded, while MS says it's 4.6GB - it's clearly 4.8GB so I can't make a DVD (I don't have any DVD+R DL media).  So I try the ISO to USB. Old Bootcamp Assistant (like from Yosemite) can make a bootable USB from the ISO, but it doesn't work right as BCA is running on different hardware.  New Bootcamp on El Cap or Sierra won't make a bootable USB from an image period. Tried Disk Utility, hdutil and dd of which it just immediately fails when trying to write the USB. I then tried the Windows 7 ISO to USB utility from Microsoft (running inside VMWare) - and it at least got the ISO restored to the USB, however it's not bootable.  The Windows Install USB drive I did make is mountable under Windows in VMWare and macOS 10.9 - 10.12. It's just not showing up as an option to boot to when holding the option key at boot.

Problem 2: Bootcamp can't seem to create a 3rd partition on my drive from the free space to install Windows
Launch BCA, it does its thing by building a driver disk for 20 minutes and then goes to prep a partition. It sees 2 partitions and no free space. Even if I go back and create the partition BCA doesn't see the partition and no other partition is marked usable.

So I'm at the nexus of not quite sure how to proceed.

Has anyone added Windows as a 3rd partition on a Mac? How did you do that?

How are folks creating Mac bootable Windows install media?

Any advice much appreciated.

Here are the two issues you are facing:

Issue #1:

Disk utility shows you only two partitions, but in reality you have four; an EFI partition, and the OS X recovery partition are both hidden. Since Windows XP and Vista didn't support EFI in those days, Apple had to emulate a legacy BIOS to support Windows on that model. A legacy PC BIOS only supports MBR partitions, and MBR disks only have four entries in the partition table. Bootcamp can't create another partition that Windows would be able to see.

Issue #2:

Microsoft didn't officially support installing Windows from USB until Windows 8 came out in 2012. It was totally possible (and even easy) before that, but since Microsoft didn't support it, Apple didn't support it either. After Apple ditched the optical drives in their computers, USB was the only other way to get Windows on there, so finally Apple started supporting it. But they didn't backport the fix to earlier models so you're stuck with installing from DVD.

So here are your options:

You can sacrifice that 2nd partition you have and then Boot Camp will work normally.
You can delete the recovery partition. There are guides online on how to do this. It involves the command line. Also you have to flatten your CoreStorage volumes. Apple definitely doesn't support this but OS X works fine without it as long as you do it correctly.
You can find an older version of the Win10 ISO. The version you likely have is the Anniversary Update (build 1607). If you can find a 1507 or 1511 build, those will fit on a standard DVD. Once installed, you'll be upgraded to 1607 via Windows Update.

One more thing...

There are also guides out there on installing Windows in UEFI mode on a Mac. Don't do this. Your model doesn't support that and it's more trouble that it's worth. You'll run into video and audio issues (if you have dual GPUs).

Hope this helps!


installing windows on external HD I have the problem of installing Windows via bootcamp onto an external Hard drive, I previously installed windows via bootcamp with no problems, Now when I try to do it via online guides to install windows via bootcamp onto my external USB 3 Hard drive, On the select language screen I don't get any function from the track pad or keyboard.

Ive tried to connect USB2 keyboards and mice and it still doesn't work.

If I am to install Windows onto the Hard drive via a Windows machine, and then install bootcamp drivers onto the Hard drive, Will I be able to boot onto the hard drive on my mac?

I'have same problem and I found this solution. I hope useful...

http://twocanoes.com/winclone/support/migrate-windows-8-to-an-external-drive-using-winclone-4.3-and-later


Removing OSX without deleting media files I have two drives on my Mac, Macintosh HDD (Mountain Lion) and Macintosh SSD (Mavericks). I recently installed Mavericks on Macintosh SSD.

I still have Mountain Lion installed on Macintosh HDD along with media files.

What would be a good way to remove Mountain Lion, keeping the media files on that drive.

If you have a spare USB hard drive (or Dropbox/Google Drive/Box.com/iCloud account big enough to hold all your media), I'd just move your media files to that temporarily.

Boot into OS X Mavericks, open Disk Utility, select "Macintosh HDD" from the sidebar, then click the "Erase" tab.  Reformat it to "Mac OS Extended (Journaled)", rename it whatever you like, then put all your media files back on it.


Fix Windows after Ubuntu installation I've followed closely this step-by-step guide: https://apple.stackexchange.com/a/257275/322989
After that my Ubuntu 16.04 LTS and Mac installation work perfectly fine. But my Windows 10 does not. Every time I select the Windows partition in the startup manager, everything freezes.
Here is my diskutil list disk0:

   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         370.0 GB   disk0s2
   3:                 Linux Swap                         3.9 GB     disk0s3
   4:                        EFI NO NAME                 500.2 MB   disk0s4
   5:           Linux Filesystem                         35.3 GB    disk0s5
   6:       Microsoft Basic Data BOOTCAMP                89.9 GB    disk0s6
   7:           Windows Recovery                         509.6 MB   disk0s7

And here my sudo gpt -r show /dev/disk0:

          0          1         MBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  722656248      2  GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC
  723065888    7550352      3  GPT part - 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
  730616240       1616
  730617856   68913152      5  GPT part - 0FC63DAF-8483-4772-8E79-3D69D8477DE4
  799531008     976896      4  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
  800507904  175598678      6  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  976106582        938
  976107520     995328      7  GPT part - DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
  977102848       2179
  977105027         32         Sec GPT table
  977105059          1         Sec GPT header

My disk0s1 looks like this:

When I boot with a Windows 10 installer and run diskpart, list volumes etc. I get:

Do you have any idea how to fix my Windows installation?

Your starting configuration was slightly different than that of the question you posted a link to. So you would have had to adapt the instructions to meet your particular configuration. Step 14 shows the new partitions to be "swap", "ext4" and "ESP" in that order. Your current configuration shows you choose "swap", "ESP" and "ext4" in that order. This change should not have made any difference, but does show one place where you deviated from the original instructions. I assume you made other deviations to the instructions that I can not detect due to lack of information. I also assume this why you can not get Windows to boot. I did a installation using the posted instructions, Ubuntu 16.04.6 and the order of "swap", "ESP" and "ext4". I did not encounter any errors that would prevent Windows from booting.

I know of two possible answers to your question.

You could mount the EFI partition (disk0s1) and post the contents of the following directories (folders).  I could then try to determine if I see something wrong. Be sure to include at least the file names and sizes.

/Volumes/EFI/EFI/Boot
/Volumes/EFI/EFI/Microsoft/Boot

Implement the solution given below. Basically, you will be recreating the Windows boot files.

You will need a Window 10 installer flash drive. If you do not have this flash drive, then you will need to build one. First download the 64-bit Windows 10 iso from this Microsoft web site. This can be done while running macOS. Currently, I would recommend the Windows 10 April 2018 Update. Next you will need 16 GB or larger flash drive. For your model Mac, I believe the Boot Camp Assistant will aid in the creation of the Windows installer flash drive. If not, let me know.
Boot to the flash drive. Hold down the option key at start up. From the Startup Manager, select the external drive icon labeled "EFI Boot".
When the window below appears, press the shift+F10 key combination to open a Windows Command Prompt window.

The Windows Command Prompt window should appear, as shown below.

Use the diskpart command to determine the drive letter for BOOTCAMP partition. In my case, this was drive C:.

diskpart
list volume

Select the volume with the label EFI. In my case, this was volume 5.

select volume 5

Assign this volume the drive letter S:.

assign letter=s

Enter the command below to exit the diskpart command.

exit

Here, I will assume the BOOTCAMP partition is assign the drive letter C. Enter the command shown below to recreate the boot files.

bcdboot C:\windows /s S:

Enter the command shown below, to close the Windows Command Prompt window.

exit

Click on the red button with the X to close the window.

Click on the Yes button to cancel the installation.

Update 1

The output you posted for the commands diskutil list disk0 and list volume seem to contradict each other. One possibility, that would account for this, would be if disk0 is hybrid partitioned. You could check for this condition by entering the following commands after step 4 in my original answer.

list disk
select disk 0
list partition

Post the results to your question.

Update 2

You drive appears to be hybrid partitioned. This would explain why Windows fails to boot. While you do not have to use a third party tool to remove hybrid partitioning, the third party tool named gdisk makes removal easy. Below are instructions for removing the hybrid partitioning.

Download gdisk. I assume this will goto your Downloads folder.
Remove the quarantine from the download by entering the command given below in a Terminal application window.

xattr -d com.apple.quarantine ~/Downloads/gdisk-1.0.4.pkg

Use the Finder application to open gdisk-1.0.4.pkg. This will start the installation of gdisk.
Disable System Integrity Protection (SIP).
Enter the command given below in a Terminal Application window.

sudo gdisk /dev/disk0

This command is interactive. Enter the next four commands when prompted.

x
n
w
y

Below is an example.

Marlin:startup davidanderson$ sudo gdisk /dev/disk0
Password:
GPT fdisk (gdisk) version 1.0.4

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

Found valid GPT with hybrid MBR; using GPT.

Command (? for help): x

Expert command (? for help): n

Expert command (? for help): w

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

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk0.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.
Marlin:startup davidanderson$

Enable SIP. One way to do this would be to enter the command given below, then restart your Mac.

sudo csrutil clear


OS X can't unmount disk My 1TB LaCie Rugged THB decided it was a good idea to stop working all of a sudden.
If I open it in disk util I sometimes see an actual name of a partition, but most likely it's not the real name.

In Terminal I tried:

diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            140.0 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data BOOTCAMP                110.1 GB   disk0s4
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *1.0 TB     disk1
   1:                  Apple_HFS                         150.1 GB   disk1s1
   2:                 DOS_FAT_32 BAK_WIN                 150.0 GB   disk1s2
   3:                  Apple_HFS                         100.0 GB   disk1s3
   4:                 DOS_FAT_32                         120.0 GB   disk1s5
   5:                 DOS_FAT_32                         480.1 GB   disk1s6

And then to unmount this:

$sudo diskutil unmountDisk force disk1

gave this: Forced unmount of disk1 failed: at least one volume could not be unmounted
Than for each disk:

$sudo diskutil unmount force disk1sn

Always: disk1sn was already unmounted

Because I wasn't able to do anything with my external HDD I made a desperate attempt to erase everything on it, including unbackuped files, cause this used to be the backup plan. This was the try:

$ sudo diskutil eraseDisk JHFS+ DISK_VOLUME disk1
Started erase on disk1
Unmounting disk
Error: -69888: Couldn't unmount disk

But it didn't work as well. If you have any idea to get the HDD working or even safe the files, I would be really grateful.

Almost forgot about this from Disk Utility:
Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.

For me, none of the solutions were working: sudo unmount, sudo unmountDisk, unmountDisk force, etc., with /dev/disk4, /dev/disk4s1, /dev/disk4s2, and so on. All failed. The last thing I tried - eraseDisk - gave me the same error: Error: -69888: Couldn't unmount disk

Then I decided to see if there were any processes in my way, so I ran sudo lsof|grep disk4 and found a process working on one of my partitions. I killed the process id and suddenly the disk mounted again! Success!


AntiVirus for Mac running parallels I'm using OS X 10.10.1 on my Mac. I use Parallels Desktop 10 and VMware Fusion 7.1. I do use windows a lot on Parallels and Fusion (Several Virtual machines). Windows 8.1,7 and XP. I've installed Avast free AV on OS X. Do i need to install separate Anti viruses on VMs ?? or do OS X Avast antivirus detect Windows viruses and malware ? Please explain. Thanks :)

Any virtual machine installed will require its own, self-contained antivirus program. For example, I run Parallels Desktop 9 with XP, Windows 7 and Linux CentOS 6 VMs. On XP and Windows 7, I use Microsoft Security Essentials and ClamAV on the Linux VM. On OS X, I am running Kaspersky Internet Security.

The reason that each OS requires its own A/V software is that each VM is a self-contained environment that is essentially sandboxed. Although there is some sharing mechanisms in place, essential services, e.g., antivirus, cannot cross OS boundaries. To allow so would be a serious security vulnerability.


Pages Quit Unexpectedly- using Yosemite 10.10.5 I rely PAGES as my go to graphic software and I'm dead in the water without it. It crashed with the Pages quit unexpectedly. I've rebooted many time, ditched the old iWork's folder and can't get anything to work. The font warnings message box pops but but I get the same crash log page. Anyone have any suggestions that could help?

Create a new user account, and run Pages from there.

If that works, then the problem is localized to your user account.

If that is the case, quit Pages and try deleting the cache file at

~/Library/Caches/com.apple.iWork.Pages

where ~ stands for your user account. Use the Finder’s “Go To Folder” command to get to ~/Library/Caches and then look for the appropriate folder.

If that doesn't work you may have corrupted preferences, which can be found at

~/Library/Preferences/com.apple.iWork.Pages.plist

which you can also delete (or move to your Desktop while Pages is not running).

(These suggestions assume that you are running Pages from the Mac App Store, not the iWork '09 version.)


Why are “Messages in iCloud” still taking up storage on my Mac if they’re supposed to be in the Cloud? I have all of my messages stored in iCloud, but for some reason they’re still taking up SSD storage on my Mac. This behavior doesn’t happen on my iPhone, but it does on my Mac and I’m not sure why. If they’re in iCloud, why are they still taking up the internal storage on my Mac? It seems strange that my iPhone doesn’t store messages on its internal storage, but my Mac does. Is there a way to prevent this from happening on my Mac somehow?

iCloud Messages is a synchronization tool, not a storage tool.  On either platform, it will download messages to the local device, and eject them again, when necessary.


Can't boot from USB or CD/DVD I have an iMac 4,1 running OS X 10.5.8 that I want to install Lubuntu on. I have a USB drive and a DVD, both with the ISO burned to them, but I can't boot from either. They don't show up in Startup Manager at all. Both show up in the rEFInd menu, but when I try to boot either of them it tells me to make sure I have the latest firmware installed. How can I get one of them to boot? Alternatively, is there a way to burn the ISO directly to a partition on my hard drive and boot that way?

I happen to have a 17" iMac 4,1. I burned the lubuntu-16.04.5-desktop-i386.iso image to a RW DVD using a 2011 iMac. I booted from the DVD using the 2011 iMac and ran the software on the DVD to verify the DVD was burned correctly.

  To boot from the DVD, you need start the Mac and immediately hold down the option key until the Startup Manager icons appear. Select the DVD icon labelled Windows.

Booting from the DVD using the iMac 4,1 was problematic. Basically, at some point the boot would fail. At least once the boot succeeded. After some research I learned I needed to hit the F6, then include the nomodeset option before selecting Try Lubuntu without installing. Once booted to Lubuntu, I could select the install icon on the desktop to start the installation process.

My iMac 4,1 has the latest firmware updates which are listed below.

Boot ROM Version: IM41.0055.B08
SMC Version (system): 1.1f5

The firmware information can be found under "Hardware Overview" in the System Information application display. Firmware updates for legacy Intel Macs can be downloaded from the Apple website About EFI and SMC firmware updates for Intel-based Mac computers.

Additionally, my  iMac 4,1 has 2 GB of RAM installed and has a 1.83 GHz Core Duo (32 bit) processor.


How to evolve trade Pokemon on a MacBook Pro? I am playing Pokemon Fire Red on VBA emulator mac.

I can’t seem to find an emulator that I can plug and play and evolve traded Pokemon for MacBook.

I have tried to install 2 versions of VBA on my Mac, however, they fail when trying to trade Pokemon and have connection failures.

Is there an easy way of doing this?

I have managed to find a solution on how to trade pokemon.
Prerequisites:
BACK UP YOUR SAVE FILES FIRST!
I have lost a few saves and sometimes the namespacing can change on a filename, so I would advise you save your files and find out where your saves are stored too so if you need to re name them afterwards, you can do.
See this on how to get your IP address https://www.hellotech.com/guide/for/h...
Here are the key steps in the video:
A - Before trading
1 - Download VBA - M from GitHub
https://github.com/visualboyadvance-m...
Install the right version for your system, I have installed the 64 bit.
2 - Copy VBA - M to Applications folder
3 - Copy VBA - M in the Applications folder so that you have 2 VBAs, in there as shown in the video.
4 - Make sure that the games actively run in the background first before any trading, so that you can have both Fire Red and Leaf Green active at not frozen if not selected.
5 - Always use a keyboard to control the VBA and not a Bluetooth controller - if you use a Bluetooth controller, it also controls the game in the background which is not what you want, so have the keyboard set up first.
B - Starting the trade
6 - Open both VBAs up, do not load the game, just open them
7 - Go to link, select link type as cable (not wireless)
8 - Start network link, set one as server with your IP address, and the other VBA as client.
9 - They should connect
10 - load the games
11 - Complete the trade
12 - Save the game afterward
13 - Check your saves and it should all be there
I have also shown how to achieve this in a YouTube video - https://www.youtube.com/watch?v=AdbJsnWkZVc


Apple ID or password is incorrect when restoring purchases from another Apple ID I am having issues with trying to use software I purchased from the Mac App Store. I have two Apple IDs: one personal Apple ID that I've been using for years (an iCloud account) and a new Apple ID that was created when I set up my company-provided Macbook. The "company" Apple ID is associated with my work email, and is the primary Apple ID for my OS X user on my work laptop.

I was using software on the work laptop which I had purchased under my personal Apple ID (because I had paid for it myself; my work Apple ID does not even have a payment method associated with it) and everything was fine until the App Store updated this application.

After the automatic update, the application was back in "free trial" mode. When I clicked "Restore Purchases" I was asked to sign in:

  Sign in to download from the App Store
  Enter the password for your Apple ID.

However after signing in with my personal Apple ID I was told the password was incorrect. I'm 100% sure the password was correct.

  Your Apple ID or password is incorrect

What's really odd is that *after I click Cancel_ I get a second dialog asking me t sign in, but this time it recognizes that I need to use a second Apple ID.

  Sign in to use this application on this computer
  "App name" was purchased using the app store on another computer.
  To use "app name" on this computer, sign in using the Apple ID and
  password used to purchase it.

But even after signing in (and yes, I am sure the Apple ID and password were typed correctly!) I still get (in red)

  Your Apple ID or password is incorrect

I am using Mac OS X 10.15.2 Catalina. I have signed in and out of the App store using both Apple IDs and even added my personal Apple ID as an iCloud account on the work MacBook, but nothing seems to resolve this issue.

Oddly enough, I was able to resolve this by deleting the application in the Finder (open Finder, Go > Applications menu item, select the App in question, drag to trash) and then allowing the App Store to re-download the application while signed in to my personal Apple ID. So it appears that somehow the Apple ID you are signed in to when you download software is stored or recorded with the actual application package directory inside /Applications, at least under 10.15.


Safari: Can I tab through smart search field options? In Firefox, I can start typing in the search bar and it will bring up options from my history, bookmarks, etc., and I can tab through those options.

Safari's smart search field does something similar. I can type a keyword and see in the list of options it presents me an item I want, but I cannot seem to tab through the options it presents me. When I press tab, it shifts focus off of the search field on to something else. What I can do is  take my hands off the home row, look down at the keyboard, find the arrow keys, and arrow through the options, but this is tedious. This might come across as picky, but despite wanting to try it, this is a non-starter for me for Safari. Is there a way to tab through (or navigate through in some other way) Safari's smart search field options?

Thanks!

As a Tab alternative, you can use ctrl-N (next) and ctrl-P (previous) to move through the smart search field options without having to look down or remove your hands from the home row.


How to bring up a precise Emoji in the iOS QuickType menu In iOS 10, the QuickType menu is a lifesaver whenever the user needs to type a long word and doesn't feel like typing it (and it's also fun to make up silly sentences).

It also randomly suggests Emojis. But finding what to type to make the intended Emoji appear can be quite discouraging. For example if I want to type the "Smiling Face With Horns"  there doesn't seem to be a way to QuickType it without having to go in the Emoji Keyboard. See examples below showing attempts at entering "Demon", "Evil" and "Devil":

My questions:

Can all the Emojis be called through QuickType without having to go into the Emoji Keyboard?
How do I know how what to type to call the right ones?

To answer both of your questions:

No, you cannot type all emoji using QuickType. It's currently not possible to quicktype .
See below.

Examples that can be typed:
 star struck
 Japan
 video game controller

Examples that do not adhere to Unicode descriptions:
 controller ("trackball" does not work)

You can test most matches on macOS using the Emoji & Symbols popup: cmd+control+Space

Examples that can be typed on macOS (10.13.3), but not iOS (11.2.6):
 jockey ("jockey on racing horse")
 zany ("zany face")

On macOS the localised keyword data is inside  /System/Library/PrivateFrameworks/CoreEmoji.framework spread across 4 strings files:

AppleName.strings (descriptive name) [1549 entries in English]
CharacterPicker.strings (for searching) [1505 entries]
FindReplace.strings (for suggestions/predictive) [1060 entries]
Voiceover.strings (for macOS speech) [1764 entries]

Quickly comparing FindReplace.strings with AppleName.strings or any other complete list of Emoji shows that some are missing.

Also, iOS seems to be lagging with regards to its copy of this data.


Delete photos from iCloud Photo Library faster I've disabled the iCloud Photo Library on my iPhone and now have to wait 30 days to remove all photos from the iCloud (I don't need them on any of my Apple devices).

Is there a way to do it faster (without deleting every single photo manually)?

Login in iCloud.com (from a computer) with your Apple ID.
Click on Photos, then click on Albums at the top.
I'm not sure if disabling iCloud Photo Library on all devices causes your photos to be moved to Recently Deleted automatically or not, so if there are still items showing in All Photos, click on that. If not, skip to step 9.
Scroll to the top of the grid of photos.
Click Select Photos at the top toward the right side.
Click the first photo. Scroll to the bottom of the grid of photos. Press and hold the Shift key, and click the last photo.
Click the Delete button in the middle of the blue bar at the top.
Click "< Albums" at the top left.
Click on the Recently Deleted album.
Click Delete All at the top toward the right.


kextload: command not found Strange, I have access to other kext utilities such as kextcache, kextfind, kextlibs, kextstat, kextunload, kextutil but not kextload. Is there any cause for that ?

Edit - 1 : kextload files;

➜ locate 'kextload'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man/man8/kextload.8
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man/man8/logkextloadsd.8
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/share/man/man8/kextload.8
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/share/man/man8/logkextloadsd.8
/System/Library/LaunchDaemons/com.apple.logkextloadsd.plist
/usr/libexec/logkextloadsd
/usr/share/man/man8/kextload.8
/usr/share/man/man8/logkextloadsd.8

Edit - 2 : Context of problem

Was trying to reload kext files of VirtualBox because they were not automatically loaded. To reload them, I had to unload with kextunloadand load with kextload. I was able to run 'kextunload but not kextload because it was unavailable. Access to other kext utilities are available, But not kextload. Why is it unavailable ?

I was able to load kext with kextutil -l, VirtualBox still not working.

Check your ${PATH}. For a reason to investigate, /sbin isn't included in it. And kextload is:

/sbin/kextload

When, for example, kextstat is:

/usr/sbin/kextstat

The difference of location is fully correct (one is an admin command, the other not).


Share internet connection over Wi-Fi I am using MacBook Pro with Snow Leopard, and my system is connected to internet via wired broadband connection.

I want to share internet connection from my MacBook Pro via Wi-Fi, so I can connect other devices to internet.

How can I achieve this?

This all happens inside the "Sharing" pane of "System Preferences":

Select "Internet Sharing" from the list
Select "Ethernet" from the popup menu
Click the checkbox next to "Wi-Fi"
If you wish to secure the wireless network a password, click the "Wi-Fi Options..." button
When you've got it all set up how you like, click the checkbox next to "Internet Sharing"
There is no step 6


Xcode doesn't show up in spotlight results, neither search results I haven't noticed exactly when it happened but previously I was always using spotlight to run Xcode. Now if i'm typing "Xcode" in it, only folders containing this name show up, or some xcode projects, not all though.
I've tried search in finder and even choosing kind of files - Application, still no luck.
Did Anybody face this problem before?

Try Rebuilding Spotlight index.  You can do it from the Terminal:

$ sudo mdutil -i on /


Why do PNGs with embedded HTML links not open on iPhone and only allow to save as image? My company email (sent from outlook pc) signature has social media icons at the bottom - images hyperlinked to facebook, twitter etc. The hyperlinks work perfectly when opened up on PC's and other android and windows based smartphones.

However, when received on an iPhone - tapping an image only allows you to save the image and the hyperlink isn't working.

The files are PNG's and have had nothing different done to them.

The user who created the sig said that it was created through the option within Office 2010.

I'm sure that the datatype of IMAGE:PNG isn't set up to have clicks that have hrefs in them isn't set up to be detected and processed in the viewer on the iPhone.

Certainly appears to be a limitation in the image viewing code.

If you could save that image on your iPhone and send to your desktop over email, you could check if the href was being removed somewhere in the process, but I don't see an easy way to make this work.


osascript Expected end of line but found class name? Not really sure what its expecting here, I assume its around click button though. This used to work on 10.10.3, but seems to have stopped on 10.10.4?

Script

function AcceptSecurity ()
{
osascript <<EOF
  tell application "System Events"
    repeat while exists (processes where name is "SecurityAgent")
      tell process "SecurityAgent"
        click button "Allow" group 1 of window 1
      end tell
      delay 0.2
    end repeat
  end tell
EOF
}

Exact error 165:170: syntax error: Expected end of line but found class name. (-2741)

The line

click button "Allow" group 1 of window 1

is missing an ‘of’

click button "Allow" of group 1 of window 1

If the button isn’t in a group, omit the group completely

click button "Allow" of window 1


Use Cmd as Ctrl key in vim How can I input commands such as <Ctrl-W> and <Ctrl-]> in vim using Cmd instead of Ctrl? The reason why I want to do it is because it's more comfortable. When I need to switch to a different split, for example, it's way more cumbersome to place my fingers on Ctrl than on Cmd. I'm sure many of you have also met with this problem, but I can't seem to find any resolutions online, other than "just use Ctrl".

There is an app called Keymando that I think can do this. Not sure if you can specify to do it only in Vim but you can specify to remap CTRL to CMD in Terminal.

When you've installed Keymando, put this in your config

only /Terminal/ do
    map "<Ctrl>", "<Cmd>"
end


Can repeatedly touching the screen of a Macbook Air damage it? I have a 2011 MacBook Air. Are there technical/physical reasons why it might be harmful to have the screen repeatedly touched or pressed? Why or why not?

Touching your screen shouldn't do any permanent damage (unless you scratch the screen with a nail) any smudges can be wiped off with a microfibre cloth.

Using a shirt or tie to clean your screen however can damage it, so always use a glasses cloth or microfibre cloth to clean it.


Install ffmpeg on iPhone Can I use ffmpeg on my iPhone and edit videos in my camera roll with it?

If your device is jailbroken, you can install the ffmpeg package:

 ffmpeg

This package is open source on GitHub nin9tyfour/FFmpeg-iOS-build-script which you can use to build a more recent version and manually install it yourself if the version of ffmpeg provided by this package is insufficient for your needs.

You can use the package from the command line using a Terminal.

 NewTerm 2

A terminal emulator package, installable with Cydia.

  NewTerm is a continuation of the Mobile Terminal project, a versatile terminal emulator for iOS.

You can also use an SSH app from the App Store, however this requires you to change your SSH port from 22 since iOS prevents localhost access to port 22, so suggestions for apps and instructions are out of scope for this question.


LDAP on non-Server OSX I have read where Apple plans to stop making OSX server.  What does this mean for LDAP services?  Is it possible to install LDAP on a regular mac running High Sierra? Could my own iMac be the LDAP server for my organization in other words?

macOS Server is keeping LDAP with no published plans for it to be removed. See:

Prepare for changes to macOS Server - Apple Support


How can I read the previous edition of a book on iBooks? I accidentally updated my "The Swift Programming Language" book to the Swift 4 edition from Swift 3.1. Can I revert back to 3.1?

In short, yes. It's not actually a "revert" back to the Swift 3.1 ebook. You simply just re-download it side by side the Swift 4 book, as I have done. Just open your Books app and search for the title, and if it's still available it'll show up.


How do I transfer my Disney Digital Copy movie to iTunes using Lion? I want to try this "Digital Copy" to iCloud movie deal but when I pop in the DVD it says:

  You can't open the application Up because PowerPC applications are no longer supported.

Is there any other work around besides using Snow Leopard or a Windows PC?

I just want to watch Disney Pixar's Up on my iPad.

I agree 100% with Adam's answer that DRM is a horrible thing, and "Digital Copy" in particular is a bad joke; see here.
However, I'll point out you can still watch your Up! Digital Copy on your Mac, even if OS X Lion doesn't support the PowerPC-based installer software on Disney's antiquated disc.  I had the same issue and solved it as follows:

Launch iTunes.
Put the disc in your Mac's DVD drive.
In the left navigation area, select the disc.
You should see a page on the right asking you to Enter Code.  Enter the unique activation code that came with your copy of Up!, then click Redeem.
Authenticate with your iTunes credentials, when prompted.  (Assumption: You have an iTunes account, a working Internet connection, and your Digital Copy code is valid, not expired, and not yet redeemed.)
After authenticating with iTunes (the service), iTunes (the program) will proceed to copy the now-authorized movie content from your Up! "Digital Copy" disc to your Mac.
Find the new title in your "Movies" library.  Watch it on your Mac*.

All the details, including screenshots, can be found at:

Apple Support - Transferring or downloading an iTunes Digital Copy.

* Worth mentioning:  Even after you get your "Digital Copy" into iTunes on your Mac, it remains protected and can only be played back on a device authorized to play back purchases from your iTunes account.  Consequently, you may still prefer using another extraction method on the original movie, in order to yield a liberated version of your content unencumbered with such restrictions.
Summary: DRM is still a horrible thing, even with the workaround above.
(p.s. FWIW, this method also worked (for me) for non-Disney titles such as Dr. Seuss' Horton Hears a Who!, from Twentieth Century Fox, and Despicable Me, from Universal Studios.  Mentioning this in case somebody else finds this answer but has a non-Disney disc; i.e. it doesn't seem to matter whether the "Digital Copy" is Disney or not, the above method should work to authorize & copy the content to iTunes.)


Contacts.app crashes on launch My Contacts.app crashed on launch. In the crash report I found, among others, the following excerpt:

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Multiple object mappings were found for AB key AAMkADM2MDFmNGNmLWM3NmMtNGYxOS1iMDg4LWY0YjI1MGYzNjYxYQBGAAAAAABDPkLykrMnSJ1IqQdY8YscBwBYGhW8CcVeTK3joidjOJa9AAAAAAEiAABYGhW8CcVeTK3joidjOJa9AAA10vffAAA= of type itemId'
terminating with uncaught exception of type NSException
abort() called

I specifically noticed this line Multiple object mappings were found for AB key AAMkADM2MDFmNGNmLWM3NmMtNGYxOS1iMDg4LWY0YjI1MGYzNjYxYQBGAAAAAABDPkLykrMnSJ1IqQdY8YscBwBYGhW8CcVeTK3joidjOJa9AAAAAAEiAABYGhW8CcVeTK3joidjOJa9AAA10vffAAA= of type itemId' which I suspected indicated that I had a duplicate somewhere in the contact database

This is how I solved it, in a terminal:

cd ~/Library/ Application\ Support/AddressBook/
grep -r MtNGYxOS1iMDg4LWY0YjI1MGYzNjYxYQBGAAAAAABDPkLykrMnSJ1IqQdY8YscBwBYGhW8CcVeTK3jo *

(this is part of the "long string" above. It was enough for me, since the search just returned one hit, Exchange in Sources/187CB027-195A-4D96-99B2-B8A546A743DC)

This file proved to be an SQLite DB-file. Open it with some SQLite reader. I used sqlitestudio.

In this database there is one table ZMAPPING we are interested in. Find the relevant entries in this table with some SQL

select * from zmapping where zitemid like '%AAMkADM2MDFmNGNmLWM3NmMtNGYxOS1iMDg4LWY0YjI1MGYzNjYxYQBGAAAAAABDPkLykrMnSJ1IqQdY8YscBwBYGhW8CcVeTK3joidjOJa9AAAAAAEiAABYGhW8CcVeTK3joidjOJa9AAA10vffAAA=%'

In my case this query returned two lines. Note the values in Z_PK for all returned lines. Now look in the ZMAPPING table for the rows with these Z_PK values and copy the corresponding values in the column ZADDRESSBOOKUNIQUEID. Using these copied values, go back to the terminal and run a grep

$ grep -r 8F436716-52E6-49A9-AC03-2A120B08 *
…
Binary file Sources/187CB027-195A-4D96-99B2-B8A546A743DC/Metadata/8F436716-52E6-49A9-AC03-2A120B083CF9:ABPerson.abcdp matches

I now did strings on this file to find out whom's address card I was about to delete. If necessary, take note of whatever address, phone number etc you want to keep. Then delete this file.

Repeat this process for all other entries that was found (one more in my case).

Finally, delete the lines in ZMAPPING you found using the sql query. Don't forget to commit/save.

Launch the Contacts.app and recreate the deleted contact.


Is there a way to set the *default* monospace font in Safari? I have a web application that uses the browser's default monospace font. It's set up that way so that the user can pick their own. In Chrome, this works well, as it's easy to set the default fonts, but in Safari, they removed the option.

Is there some way for users to set default fonts in Safari?

The following information was correct when it was posted, but now only applies to obsolete versions of Safari.

There are unexposed preferences for changing the default fonts and font sizes:

defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2StandardFontFamily Georgia
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFontSize 16
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2FixedFontFamily Menlo
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFixedFontSize 14

Another option is to edit the CSS file that defines the default styles (look in
Preferences > Advanced > Stylesheet), adding something like this, for example:

@font-face {
   font-family: monospace;
   src: local('Menlo');
}

That rule makes any element that uses font-family: monospace (as well as elements like <pre> and <code> by default) use Menlo. Just change the font name (being careful to keep the enclosing quotes) to whatever you prefer.


Brand-new MacBook pro shows grey screen with throbber in installation A good friend of mine got a new MacBook. She lives on a remote Spanish island, and I have only Chat contact with her right now.

She unpacked the MacBook (a pro 15-inch from this year) and walked through the first steps of the installation process. Apparently after choosing her installation language, a grey screen with a clock or throbber icon turned up. It's been there for an hour now, with no signs of actual activity (like HDD sounds). I asked her to do a hard reset (Using Ctrl + Command + Power button); this boots the machine up, but leads back to the same grey screen.

I now asked her to do a reboot into Safe Mode, which Apple recommend in their knowledge base as the next step.

It doesn't seem normal for the installation procedure. It also seems terribly unlikely that the HDD would break right at that moment, doesn't it?  She is totally distraught and has nobody to help her there. Does anybody have any idea what to do, short of bringing the machine to an Apple store, which there probably isn't one on the Island.

In verbose mode, I managed to find out that the Macbook's boot process froze at some point in the boot process. We were unable to find out why exactly - the last message logged was a complaint from SSH that it can't create a socket, which according to Apple's support resources is owed to an not yet existing internet connection.

We tried all reset steps (Safe boot; Verbose boot; PRAM/NVRAM reset; SMC reset) without success, but we managed to reinstall OS X from the DVD and it seems to be running fine now.


Should I be worried about 98°C CPU temperature on MacbookAir? I'm a developer and often times I need to compile some packages or maybe even run some codes for couple of hours.

Recently I have noticed that whenever I use Homebrew to install something, it defaults to source, and compilation causes my CPU temp to go around 98 Celsius . Some of the compiles are quite long, couple of minutes, and I'm worried this might harm my MacBookAir.

Should I be worried about this 98°C CPU temperature on MacbookAir?
And if so, how can I fix that?

Michiel's correct in that if the computer gets too hot, it'll shut down automatically. However, if you want to be on the safe side, you can check out smcFanControl and Fan Control.

smcFanControl:

  smcFanControl lets the user set the minimum speed of the build in fans. So you can increase your minimum fan speed to make your Intel Mac run cooler. However in order not to damage your machines smcFanControl doesn't let you set a minimum speed to a value below Apple's defaults (MacUpdate).

Fan Control

  Some MacBooks and MacBook Pros are just to hot for daylong use. Fan Control adjusts the minimum fan speed depending on the current CPU temperature. For safety, it leaves the original automatic fan speed control intact (lobotomo).

And remember, if your computer ever gets to 660.4°C, don't leave it on your lap, unless you want liquid aluminum all over you.

UPDATE:

I found another tool called CoolBook that

  lets you monitor the frequency, voltage and temperature of the CoreDuo / Core2Duo CPU. Registered users can also change the frequency and voltage of the processor.

Here's a list of features that are listed on the site:

Reduce heat (presumably by optimizing fan speed)
Reduce fan speed (presumably by lowering fan speed)
Extend battery life
Improve performance
Fine tune your CPU

This seems like a useful tool, but it does not support Lion and Mountain Lion, and does not work on Intel i3, i5, and i7 processors.


Is there a way to force Safari on my iPad to always display desktop sites? I'm trying to change some of my Gmail settings on the mail.google.com site through my iPad, but Safari is always showing the mobile Gmail site rather than the desktop site.

Is there a way to force Safari to not send the fact that it's a 'mobile' device, or always show the full site?

There is no way to force Safari to do this,

There are browsers on the app store which work around the mobile site to teh non mobile site. One such browser is Atomic ($0.99 or free)

Hope that helps.


Auto Downloaded Emails Marked As Read in Inbox I open up my mac mail and I have a ton of emails downloaded which are marked as read even though I have not clicked on them or viewed them. This started to happen within the last month.

I have missed some really important email because they were marked as read. How do I fix this so that all emails stay UNread until I get to them?

This can occur with some providers if you have another device that receives the E-Mails via IMAP.

Make sure all devices that access the account use IMAP or all use POP.


How to automatically close an OS X apps after not being used for a number of minutes? How to automatically close an OS X apps after not being used for a number of minutes??

I am looking for a way to auto-close apps that are not used (focused at least) for a number of minutes, a number of minutes configured for each one.

Why? While freeing up memory is not so important in my case, decluttering the number of opened windows on OS X it is.

I am currently using ControlPlane to automate starting or stopping of apps based on different profiles and if there is a way to extend it to do that too it would be great.

You could use Quitter by Marco Arment: https://marco.org/apps


File sharing between OS X server and iOS device I was trying to read into the differences between OS X server 3 and 4 (Yosemite) when I stumbled upon this rather interesting page.

  OS X Server File Sharing service lets users store and share folders and files on the server. Users can access file shares from Mac and Windows computers and from iOS devices, with no special software

They specifically say that it should be possible to access file shares from iOS devices without third party software like e.g. Transmit. I can however not for my life find anything, anywhere about how this is actually supposed to work or how one would configure it.

Spontaneously it sounds like it would be handled by the new storage provider API in iOS 8, but as far as I can see, only iCloud drive is included in the system.

Does anyone know anything about this?

Looking at https://jamfnation.jamfsoftware.com/discussion.html?id=16976 the key is to configure a 'mac os x server' account, and then enable iCloud Files. That way you can access files on the server just like iCloud files.

Only downside I've found so far, you need to enable iCloud files too, you can't just use file sharing of OS X Server.


Recover deleted word document Help I Had a word document which I'm unsure where it was stored. It said my desktop but I believe it was also in my icloud somewhere. I saved my work and then emailed it to myself, after emailing the work I turned off the icloud which in turn deleted everything on my desktop.
All I have is a textedit file whenever I attempt to click the document.

I'm unsure on whether the work is completely gone or still able to be recovered.
Time machine was not activated due to the macbook being new. Microsoft word didn't appear to do any backups or recover old files, there's nothing. It does show the file in recent but will not open or allow recovery.
I have checked my icloud in the advanced section to try and recover files.. there is nothing there.
In textedit I have tried to the 'revert' method which did not work.
I've followed multiple youtube tutorials and website searches to see if I can recover the work and still can't it's all dead ends.

Would a piece of software be able to take the short code from textedit and aid my recovery or is the work completely lost? This work has a deadline so I need to know whether it's worth trying to save or just restart.

Thanks in advance

There are data recovery software packages for the Mac. These are not cheap but most offer a free trial. I used Stellar Mac Data Recovery software and it found my file. They have a free trial.

Another one with good reviews is EaseUs. It also has a free trial but recovery limited to 2 GB.  This link also lists several others.

Some of them may find your file and then require you to buy the app in order to recover it. Most of these apps are around $100.

One I'd stay away from is Disk Drill. It maybe works fine but it is very intrusive. Popping open when you do various things.


How can i compare achievements with Game Center in iOS7 I remember i could easily compare my achievements in previous version of iOS/GC, but now i can't.

Am i missing something?

Game Center > Games > select a game > Achievements

or what did you mean by "compare my achievements"?


How can I get DoubleTwist to differentiate between music and podcasts? Since iTunes has no way to sync with my Motorola Droid, and all of my music is on my Macbook Pro, I recently tried out DoubleTwist.  It detected my Droid right away.

The problem is that when I chose to sync all of my music, DoubleTwist also synced all of my podcasts, which quickly filled up my sd card with stuff I don't want on there.  Is there a way to have it only sync my iTunes music library and ignore podcasts?

Judging by the screenshots, doubleTwist allows syncing specific playlists and has smart playlists.

Create a smart playlist that would contain all your library but not podcasts (excluding genre Podcast), and sync it.


How can I disable an Apple laptop's touchpad button (physical click)? I really want to find a way to disable the Apple touchpad physical tap button. My wife does not make use of the software tap functionality that I enabled. She sits next to me every night clicking away. This is very annoying when it goes on for several hours.

There has to be a way to catch / trap the input from the device.

You can configure it using BetterTouchTool. But I'd advice against pissing your wife off.

There's always option of buying an iPad.


Spotlight "Indexing and searching disabled." message in terminal on OSX. Why? My spotlight searching hasn't worked for quite some time and I've tried everything I could find on Google. I can't search for anything on my MacBook.. literally nothing shows up. I'll list the things I've tried and specs:

Early 2011 2.2Ghz MBP
4GB RAM
OSX 10.9.4

disble/enable spotlight via terminal
toggled hidden files and looked for ".metadataneverindex" couldn't find it
repeated the previous, using terminal commands.. file not found
put everything in the preferences/privacy "prevent indexing" then removed
sudo mdutil -i on /

sudo mdutil -E /
sudo mdutil -a -i on
zapping the PRAM

Based on what Trane Francks said in the comment below.. I built the DB and ran the line again. The second line is what it returned:
    locate .metadata_never_index
    /.metadata_never_index

I found .metadata_never_index as a hidden file in my root, so I deleted it and tried reindexing.. but its giving the "Indexing and searching are disabled" message still.

I've tried many of things and every time.. I get "indexing and searching disabled."

I just wanna be able to search my mac again!! Please help! Thanks.

FINALLY!! I got it working again!

Heres what I did:

In terminal I ran:

locate .metadata_never_index

No database existed, so it prompted me to run:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

It ran for a few seconds and I retried the locate command.. it found it in my root. I deleted it and tried turning on spotlight again, but still got the "indexing and searching disabled."

I checked the permissions of my SSD and my account wasn't even listed. I added myself to read/write. Then ran:

sudo mdutil -i on /

terminal returned "Indexing enabled."

Lastly.. I went to system preferences>spotlight>privacy.. dragged my SSD then removed it to reindex. 40 minutes later.. everything is back to normal! It had been a year since spotlight worked on my MBP. Ohhh the struggles I faced trying to find emails/files.

Thanks for the tips and suggestions everyone and Google!


How to convert a Numbers file to .pdf and still have its formula work Is there a pdf creator or something that I can convert my Numbers file with all its formula still working. The file is a price calculator with choice of products.
I dont want the client to change elements so pdf is the way to go (I think).
Please advise.

The Numbers to PDF (whether using Print->Save As or Export to… menu commands) will produce PDFs that do not allow running of formula. So unfortunately, no.


How to extract all pages of a PDF into individual PDF documents I want to be able to extract each sheet of a PDF into a separate PDF file. I have looked high and low, but it seems that there is no automated way to do this without reverting to Automator hacks (which I am open to if someone has an example of a really clean way to do this as a service and save the files to the source directory.)

So, for instance:

 PDF File:[page 1, page 2, page 3]

 PDF File:[page 1], PDF File:[page 2], PDF File:[page 3]

I remember looking to do the same thing a few years ago and lo and behold, I still had the link in deep archive: http://forums.macrumors.com/showthread.php?t=1354754

A MacRumors Forums member named Oligarch put together a bunch of command-line pdf tools, which can be downloaded from this link: http://users.skynet.be/tools/

The pdfburst command is what you need:

NAME
     pdfburst -- burst (split) PDF documents into single pages

SYNOPSIS
     pdfburst file [path]

DESCRIPTION
     The pdfburst utility bursts (splits) the PDF document file into single
     pages which it writes to path, appended by an underscore character and
     zero-padded page numbers.

     If file is a single dash (-), the PDF document is read from the standard
     input.

     If path is omitted, the base name (last path component) of file is used
     and the single page files are created in the current working directory.

     If path ends with a slash (/), it designates a directory and the single
     page files are named with just the page number.

     Missing directories along path are created.


Can you change the name of a network drive? I have a couple of network shares which all have the same name on different servers and I'd like to change the label of the mounted disk to tell me which server its on.

Can mounted network drives be renamed on mac os?

If you mount the share using terminal you can assign the mount point
to a local directory. Source: Macworld Mac OS X Hints: Ten different ways to connect to servers

  create a directory -- the mountpoint -- where the contents of the
  mounted server will appear.

$ mkdir /mnt/music
$ mkdir /mnt/movie

  The mount command should be more or less familar:

mount_smbfs //admin:stevie123@macmediaserver.local/itunesmusic /mnt/music ## for SMB shares ##
mount_afp afp://admin:stevie123@macmediaserver.local/mymovies /mnt/movie ## for AFP shares ##

The man pages for mount provide complete documentation.


Cannot drag and drop files from the Dock folders On the Dock I have two folders, Documents and Downloads.

I was used to drag files from the Downloads folder and drop them on the Desktop or somewhere else.

Now I can't do it anymore. I'm only able to drag and drop files from the Dock folder to the Trash.

How can I fix it?

Relaunching the finder fixed the problem.


How can I read markdown files with QuickLook? I would like to be able to read markdown (.md) files with Quick Look. Unfortunately, it just appears like this:

Is there any way that I can be able to see the contents of this file? I don't care whether it's in rendered or unrendered format, just that I can see it somehow.

There is no setting in macOS to enable markdown support. However, Quick Look does allow for third party plugins to extend the base behavior. The QLMarkdown plugin is one such plugin that allows Markdown files to be read.

You can install it either by:

Download the QLMarkdown.qlgenerator in either ~/Library/QuickLook (current user) or /Library/QuickLook (all users).
Using Homebrew, run brew cask install qlmarkdown in the Terminal

After that, you should be able to view markdown files.

Getting it to work on macOS Catalina - Source

If you got the security warning as shown below, go to System Preferences / Security & Privacy / General and click Allow Anyway at the bottom.

Now try to Quicklook a markdown file again. If it still doesn't work, run the following commands in your terminal.

brew cask install qlmarkdown
xattr -cr ~/Library/QuickLook/QLMarkdown.qlgenerator
qlmanage -r
qlmanage -r cache
killall Finder  # relaunch finder

It should hopefully work now.


How to package a command line software to an Application I have a command line executable (written in C) with some related resources, and I would like to package it as an application (inside the .app folder). I tried appify.sh which could package shell script, but didn't work here. For this command line executable, I would like to open termial to show the STDOUT.
I also found this method using Automator , but didn't find how to package the executable and resources inside the folder. Should I write an Info.plist file? I tried but failed to get the right syntax.
update
As I tested, you cannot run the executable alone, as MacOS will run that without any pop-up window(Termial), and ignore all STDOUT.
We can use Platypus to run sh/bash with -exec executable to do the trick as described here.

Use Platypus to make the app and then add your resources.


My dad keeps getting all my apps that I download. why? My dad and I used to have the same Apple id, but recently I made his own (he didn't know how to work his) and I changed it on his phone. I kept mine on a new device. But he still keeps getting any app that I download. I don't know how to make it stop transferring all my data to him.

There are a few places Apple IDs can be set on a phone. Make sure that you changed his Apple ID in his iTunes & App Store setting on his phone.

You shouldn't have to, but you may want to make sure that Automatic Downloads is not turned on also (in the same settings menu).


Mac mini hard drive recovery w/ encrypted partition My Mac mini failed recently, and after taking it to the Apple store, they said it was the logic board that failed, and it would be $350ish to replace, which was not worth it to me, so I took it back.

I want to recover the data off of the hard drive. I have the drive removed from the computer, and plugged into my laptop running Ubuntu 15.04/Windows 7 (dual boot) via USB3.

I have two partitions on the hard drive:

My Macintosh HD Partition, and
An encrypted partition with some sensitive documents

How can I mount this encrypted partition on my laptop (using Ubuntu or Windows, idc), and get the data off of it (I know the password that it was encrypted with)?

You have two problems: FileVault whole disk encryption and the HFS+ filesystem. HFS+ is not difficult to deal with in Ubuntu, but I've seen no readily accessible tools to access a FileVault encrypted volume even when you know the password.

It'll be far easier to use a Mac to turn off FileVault. Disk Utility can unlock and decrypt the drive. The folks at the Apple Store might let you use one of the computers in the store to decrypt the drive, otherwise you might have to borrow a friends Mac for a while. It'd be best to use the same version of OS X or newer.


Will an iPad mini purchased in the US work well once it returns to live in England? My oldest daughter lives in England and is returning there after the upcoming holidays.

Her Mother and I live in the USA. She desires an iPad Mini as a Christmas gift. She is an iPhone 4S user with O2 as her carrier in England.

Two questions seem tied in my mind:

If we buy her an iPad Mini equipped with a 3G/4G radio and she intends to buy some sort of data plan in England, which one should we buy...the Sprint, the Verizon, or the AT&T model?
Are there advantages/disadvantages to setting up the iTunes account for her new iPad (a) in the US, with a US-based credit card; (b) in the UK (her home), with a US-based credit card; or (c) in the UK, with a UK-based credit card?

I've looked around for an hour or so and cannot find definitive answers to these questions...or maybe I'm not savvy enough to understand what I've read.

The LTE choice seems fairly clear as the Spring and Verizon models match the LTE coverage that EE has in the UK. O2 isn't listed, but you can see the information yourself here:

http://www.apple.com/ipad/LTE/

Further information is available from the iPad specifications page - but the GSM/EDGE and UMTS/HSPA+/DC-HSDPA capabilities of both models are the same. The Verizon/Sprint models have more LTE bands and CDMA as well but in Europe, the LTE situation isn't totally clear yet.

If you get an Apple ID in the US - you will be restricted to the content in the US store. The same for choosing the UK store. Since it's a hassle to juggle accounts and you can't get updates from an old country if you move accounts to a new one - it's better to pick one account unless you intend to maintain and juggle both going forward perpetually.

I would buy from Apple if you can since their holiday return policy is very lenient and you could return things in January if you choose poorly or learned more after buying. Also consider, AppleCare is tied to the country where you buy so if AppleCare plus isn't available in the UK and you are OK shipping it here for service, you might let that affect your buying choice if you want that coverage over the standard AppleCare.

The good news is you can easily use her UK account here in the US and all her apps will work on the US device. The only problems would be radio (not a problem on the mini hardware) and warranty support. Since you live here, you can get her a pay as you go month of data with no commitment or long term contract. She won't need to unlock it and can work with her choice of carriers to serve it in England. No carrier lock, no hassle, no jail breaking needed.


Apple App Store continues to show Xcode 4.1 "Installed" even though I have uninstalled it. Ok, so Xcode 4.1 was working fine and I did the incremental update to 4.1.1 at the App Store when it came out a few days ago.  Nothing has been stable since that update.

So I found on Stackoverflow to use the command:
      sudo /Developer/Library/uninstall-devtools --mode=all
in uninstall the environment.

It seemed to work as expected. After that, I deleted the remaining empty subfolders in the /Developer folder, emptied the Trash, and rebooted.

At this point I have in every real sense uninstalled and revoved Xcode 4.1.x. So I go back to the App Store to re-download the full current 4.11 package.  Yes, I am on Lion. But the Xcode page in the App Store continues to state that I have the package INSTALLED ! And so, does not provide me the ability to re-download it.

Why will the App Store not permit the re-download of a free product in its entirety, as a registered Apple Developer, even if I did have it installed ?  Which I don't.

What to do ? Thank you, I am in a bind here. I need to affect some setting on my Mac that will not indicate a false-positive that I have Xcode installed.  Ideas ?

-Ric

Check your applications folder for the Xcode 4.1 application installer. This is what the Mac App Store actually downloads and is probably reported as installed. Run that again to reinstall.


Combine files by name and zip How can I automatically ZIP files with same file names (different extensions) into one ZIP?

For example I have four files

king.jpg
king.txt
queen.jpg
queen.txt

which would led to

king.zip (containing king.jpg and king.txt)
queen.zip (containing queen.jpg and queen.txt)

You can easily do this with a short bash snippet.

p=SOME.CRAZY.STUFF
for i in *; do
    f="${i%.*}"
    if [[ "$p" != "$f" ]]; then
        zip "$f" "$f".*
    fi
    p="$f"
done

If you are not familiar with Terminal/bash and don't plan to use this too often, you can do the following to use it:

create a folder where you move all your kings and queens to (and nothing else)
open Terminal, type cd followed by a space, drag the folder you've just created into the Terminal window (release the mouse button once a green cross appears) and press Enter
type p=SOME.CRAZY.STUFF followed by Enter
type (or even better copy/paste)

for i in *; do f="${i%.*}"; if [[ "$p" != "$f" ]]; then zip "$f" "$f".*; fi; p="$f"; done

again followed by Enter
(assuming no error message etc was displayed) quit Terminal again


Checklist and tools for confirming a Macbook is working correctly Thinking about buying a used Apple laptop computer, and wondering if there are any manual checklist or tools for confirming an Apple laptop is working correctly via some sort of automated diagnostics.

I'm not concerned about the state of any software on the computer, and the best solution would be me just running the diagnostics on boot from a thumb-drive, since I'd like to avoid having to install software on a computer I would not own at the point it's being tested.

Also, it'd be nice if the diagnostics output a report and any data it was able to discover on the spec of the hardware present.

You should be able to use Apple Hardware Test and selecting the More Info button from the Apple menu > About This Mac to get all the info you need.


Why use the terminal in daily non-programming life Disclaimer: I'm a Windows boy awaiting his first mac. I never bothered learning/using command-line interfaces.

I've been looking at the Terminal Tips and Tricks topic and I don't see how any of those commands would be faster than using the GUI.

For example, someone explained how to search with spotlight, using the terminal. How is this better than just using spotlight?

Could you guys give some real-life examples of situations where you really benefited from your terminal knowledge ?

Many people coming over to Mac OS X come from a Unix-ish environment and prefer terminals, so for them there are command line interfaces to many things. If you prefer to stick with the GUI, no problem.


Can I delete the "remove the drive" menu in menu-bar in Catalina? After upgrading my mac to Catalina beta, there is an added icon on the menu bar. It looks like a "remove the drive" button but I don't need it.

Is it possible to remove it from the menu bar? Tapping it only reveals "no drive" menu and I has not been able to find anything relevant on System Preferences.

Removing icons from the menu bar for several versions of macOS has the same process. Knowing that, I’ll guess you are referring to this eject icon:

This is the Disk Eject Icon.

If you hold the ⌘ Command key down while clicking on the icon you should be able to drag it out of the menu bar and it will be gone.

If that ain't it add your image to the question and we'll go from there.


Disable swapfile encryption on Maverics does anyone know how to disable the default encryption of the swap file ?

i tried this by setting the default preferences

$ sudo defaults write /Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes

but this doesn't work :(

$ sysctl vm.swapusage
vm.swapusage: total = 1024.00M  used = 0.00M  free = 1024.00M  (encrypted)

any ideas ?

The option to disable the encryption was removed in recent versions of dynamic_pager.


how safe is an HDD encrypted with filevault? I have a macbook pro and I want to encrypt the whole system with filevault.

My question is now, how secure are my data for removing hard disk from device and mount it in an external case?

For example someone steal my macbook, while it is in hibernate. Now, he won't shutdown the system clearly, open the case and remove the HDD.

Are the data already encrypted, even it is not shut down correctly?

Yes. FileVault 2 uses 128 bit AES encryption on all the data on your disk. This is why when you turn on FileVault, you will experience a background task grinding through your entire volume, encrypting the data as it goes. Once complete, only someone with your passphrase will be able to decrypt the data, even if they remove the drive from your Mac.


What is the meaning of the "§" symbol (on the upper left corner of the mac keyboard)? The title says it all, but I'll repeat it here:

What is the meaning of the "§" symbol (on the upper left corner of the mac keyboard) as highlighted  in the image here?

Apparently, this is not printed on mac keyboards sold in the US, though it is on models sold in Europe (or Israel, in my case).

"§" is the section sign, as answered by @Lizzan.

Excerpt from Wikipedia:

  The section sign (§) is a typographical character used mainly to refer to a particular section of a document, such as a legal code. It is also called "double S" and "sectional symbol".
  It is also sometimes used to link to a footnote where the asterisk (*) is already in use on a given page.


How to change Artist Name tag from uppercase to capitalized in iTunes? I have set the iTunes media folder location to an external hard drive (with around 10,000 ALAC files, all perfectly tagged, with most common tags), with the consolidating files option by iTunes turned off.

I have Artist Name tags written in uppercase but since I’ll be listening to music more often on mobile devices the uppercase names take more length on the screen and therefore I wish to change them to capitalized (manual custom correction).

When I do that outside of iTunes with the 3rd party tag editor (Tag.app) and open iTunes it still shows the artist name in uppercase.

I tried then to change that tag in iTunes itself in the info. tab (despite the fact that even there it showed the name capitalized), but then it split the album in two with the first song in the 1st and the rest in the 2nd album (which is the same album).

How can I change the artist name tag from uppercase to capitalized (without screwing the iTunes up) and should I do it only from the 3rd party app. or iTunes or both?

Use Doug Adams' free Proper English Title Capitalization AppleScript.


Getting Messages sent to my sister's iPhone on my MacBook Air My sister and I both have iPhones and whenever someone texts her, I get those messages sent to my MacBook Air. It's really annoying and I haven't been able to figure out how to fix it!

If it is not a bug, probably her iPhone and your MacBook are connected with the same Apple ID account. Just log out from her Apple ID in "System Preferences > Internet Accounts" and from "System Preferences > Users & Groups > Your Mac Account > Advanced settings > Change Apple ID".


How to set the percentage at which my MacBook warns about low battery? Mine gives a warning at 5% and I'd be much happier if it could warn me at 10%. I assume there's either a way to do in the System Preferences or I have to set a value to some variable in Terminal.

I've been researching for it for a while, but I couldn't solve it myself. Please tell me how I can set it.

(Operating system: macOS Sierra Version 10.12.1)

Just in case you weren't aware and/or haven't tried this, you can:

click on the battery icon in the menu bar
in the dropdown menu that appears, click "Show"
select whether you want the remaining time or percentage displayed

This will display the remaing time or remaining percentage to the right of the battery icon. It is always visible in the menu bar, making it easy to glance at regularly.

With regard the warning, I'm a little surprised it's only triggering at 5%. However, it is designed to trigger once your MacBook is running on reserve power and perhaps in your case that's at 5% because of the overall battery life.


Growl notifications when a user logs in to Minecraft server? Would love to be able to get a Growl notification when a user logs in to my (locally hosted) Minecraft server.

I took a peek in the Console but it doesn't seem to record the logins, although my server GUI shows activity on the server including logins.

It runs within Java, so maybe that's the issue with it not showing up in the Console, although some of my actions do seem to get recorded, but those seem related to the main Minecraft app and not the server.

Even if I could find the logs, I am at a loss as to how one sets up a Growl notification, although I assume it has to do with growlNotify: http://growl.info/extras.php#growlnotify

The minecraft server writes a log file into the directory minecraft_server.jar is installed in. From there you can use something like

tail -f server.log |
  while read m_date m_time m_type m_user m_ip m_action m_rest; do
    if [[ $m_action == logged ]]; then
      growlnotify -n Minecraft -m "$m_user logged in at $m_date $m_time" Minecraft;
    fi
  done

Starting this automatically together with your Minecraft server is possible but depends on the way you do start it.

To install this (without going too deep into Unix territory, ask an expert if it fails):

open Terminal.app
change to the directory where minecraft_server.jar is installed by typing cd followed by drag&dropping the folder with the server into the terminal window followed by return
nano mc2growl
write #!/bin/bash and press return (twice)
paste the code from above
press ^X and say Y at the prompt
chmod +x mc2growl
./mc2growl &


Problem backing up my iPhone to my Mac, the iPhone icon does not appear in iTunes I have an 2010 iMac running High Sierra. I have iTunes version 12.8.2.3 and iOS version 12.3.1.  I want to backup my iPhone to my computer using iTunes.

In the past I could connect my iPhone to my computer and when I started iTunes the iPhone icon would appear on the left side on the iTunes screen. I would select the iPhone and then back it up to either my computer or to iCloud.

Now, however, the iPhone does not appear in iTunes. How do I backup my iPhone to my computer?

First try a soft reset on the iPhone.

  Restart your iPhone 8 or earlier or iPod touch

  Press and hold the Top (or Side) button until the power off slider appears.
  Drag the slider to turn your device completely off.*
  After your device turns off, press and hold the Top (or Side) button again until you see the Apple logo.

  * With iOS 11 or later, you can turn off your device by going to Settings > General> Shut Down.

 Source: Restart your iPhone, iPad, or iPod touch

Note that restarting the computer may also be necessary if the soft reset doesn't fix the issue.

If a soft reset and restarting the computer doesn't fix it, then you may have to do a hard reset on the device. If so, have a look at: How to erase your iPhone, iPad, or iPod touch


Reminders application does not open in Mountain Lion When I click on the Reminders icon in the dock it will not open.

The console logs only one entry:

12/11/12 11:34:46,016 Reminders[6984]: NSConcreteMutableAttributedString addAttribute:value:range:: nil value

Does anyone have insight to this?  Is it hiding?

I had the same issue.  Try going to system preferences iCloud.  Turn off reminders off, press delete reminders from mac, then turn reminders back on and hit merge reminders from iCloud.  This solved my issue.

Prior to this a did a system restore on the OS and it didn't do a thing still couldn't open reminders.


Mac often perceives left-click on Magic Mouse as right-click The bug:

All of a sudden, my 2013 rMBP often perceives a left-click on my Magic Mouse 2 as a right-click.

Details:

"Often" ≈ every 30 seconds.
I have 2 different mouses: an Apple Magic Mouse 1 and an Apple Magic Mouse 2. The problem persists when using either mouse. (Only one is switched on at a time.)
The right-click still functions properly.
The built-in trackpad does not have this issue. It still functions properly.
I've read that the problem might be somehow related to Google Chrome. But, the problem persists (e.g., in Finder) even when Google Chrome is not running.
I've terminated the keyboard-remapping software, "Karabiner." I do not have the purportedly-problematic apps, "BetterTouchTool" or "Magnet," installed.
No peripherals are plugged into the computer.
As soon as I notice that the left-clicks are right-clicks, I do not touch the mouse for about 5 seconds, and the mouse goes "back to normal"... until it happens again (and the process repeats).
I plugged in a wired USB Dell mouse (model # 0CJ339). The wired mouse does not have the issue.

What I've tried:

I've disconnected and deleted my wireless keyboard as a Bluetooth device (to ensure that no other Bluetooth device is connected to my rMBP other than my mouse).
Turning Bluetooth on and off.
 shift  +  ⌥ option  + left-clicking the Bluetooth menu bar icon → Debug → "Reset the Bluetooth module" & "Factory reset all connected Apple devices" & "Remove all devices"
Switching mouse on and off. Recharging mouse.
System Preferences → Mouse → toggling the "Secondary Click" checkbox and ensuring that "Click on right side" is selected

I've discovered another bug that could be related: When "Secondary click" is set to "Click on left side" in System Preferences → Mouse, the computer never perceives a right-click (no matter whether the mouse is left-clicked or right-clicked). It behaves as if the "Secondary click" checkbox is not even enabled.

Deleting Apple Bluetooth and mouse preference files found in ~/Library/Preferences/
Resetting PRAM & SMC
Booting in Safe Mode. (The issue still manifests in Safe Mode.)
Logging out of the administrator account and logging into the "Guest" user account (where the issue still manifested).
Repeatedly pressing the  ⌃ control  key on the laptop keyboard to ensure that a small piece of foreign matter is not stuck underneath this key. (When I hold down the  ⌃ control  key and left-click, the rMBP perceives this as a right-click 100% of the time.) Also, opening "Keyboard Viewer" to ensure that my computer does not perceive any modifier keys as being pressed when the issue occurs.
I do not have any other lingering Bluetooth devices in the vicinity that might interfere with the mouse.

Is there anything else that I can try, besides reinstalling the OS?

OS X El Capitan, version 10.11.6.

Update:

I randomly noticed that a three-finger-tap on the built-in trackpad would not pull up the dictionary entry for the selected word (like it used to).

I navigated to:

System Preferences → Trackpad → Point & Click tab → and saw that the "Look up & data detectors" checkbox was not enabled.

This was very strange, because this feature has always been enabled, and I never disabled it. I enabled this checkbox, and the "look-up" feature now worked.

But, this immediately made my computer stop perceiving all right-clicks (i.e., right-clicks on my mouse were always perceived as left-clicks).

So, I navigated to:

System Preferences → Mouse → Point & Click tab → and toggled the "Secondary click" checkbox off and back on.

After doing this, my computer has not perceived a left-click as a right-click again.

I still have no clue what caused the issue, or why doing the above solved it, especially considering that, for good measure, I had already previously deleted the com.apple.AppleMultitouchTrackpad.plist and com.apple.driver.AppleBluetoothMultitouch.trackpad.plist preference files.


Mac Pro 3.1 with Yosemite won't boot after GenericUSBXHCI USB 3.0 .kext added I was trying to install drivers for my NEC USB 3.0 PCI card.
( propably http://sourceforge.net/projects/genericusbxhci/files/
or https://github.com/RehabMan/OS-X-Generic-USB3 )

I rebooted my mac into
    kext-dev-mode=1

then i typed:
    sudo kextcache -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions

GenericUSBXHCI .kext was enabled. Two other .kext too.

After restart - my usb 2.0 and usb 3.0 was working fine! Pendrvive was copying files very fast.

But unfortunetally magic mouse won't connect, so i restarted Mac Pro.

Now, booting is frozen. Sometimes at 1/3, sometimes at 1/2
I can't enter the Recovery Mode or Single user mode.

I was trying every possible ctrl+r, windows+r, alt+r, shift combinations on my logitech usb keyboard, but Yosemite just won't boot.

After freeze, computer reboots, and white screen of death appears.
Over and over again.

I have Yosemite installation disk image on my pen drive and Mavericks installator on my external hdd, but i wasn't able to start it.

I don't event know if efi sees my keyboard.

Maybe keybindings are the problem, cause i normally use oldshool DIN-5 mechanical keyboard from 1980' But the shortcuts from this keyboard won't work too.

What can I do to enter command line or repair .kext's ?

I have no other mac/pc to connect the hard drive.

UPDATE:
First success: Linux Mint booted and it's working fine. I can read my Mac SSD drive!
So i assume that hardware is all right. Even magic mouse is working under linux.

I have discovered installer.faliurerequests file on Mac drive. It says:
Operation fsck target CrashAtProgress 0

After rebooting from linux to Os X it was working like 10 minutes, artifacts appeared on the screen, and then crash again.
Next time it was working only 2 minutes... and now i can't boot it again.

The problem was graphic card! GeForce 8800 GTS was making all that problems.
I have replaced it with Radeon 5770, and everything is fine!

Funny thing is, the USB 3.0 really has something to do with wireless magic mouse! USB 3.0 somehow interferes with bluetooth 2.4GHz waves!
It can be repaired with... aluminium foil!
I've covered bt module with aluminium foil, and mouse is working fine again!

Everything solved


Water fried iPhone 4 I dropped my phone into a pool a while ago, and didn't realize until about 30 minutes after. When I try to hook it up to the computer, it doesn't recognize the device, the iPhone wont turn on, it is ruined. But I was wondering if there's a way to get files off of it even with the computer not recognizing the device. Any suggestions?

You have no way to restore data, all gone


What attachment do you need to plug the Apple EarPods that came with the iPhone 8 Plus into a Samsung Galaxy Note 20 Ultra (USB Type-C)? I have the Apple EarPods not AIRpods. I'm trying to find the attachment that would allow me to plug those directly into my Samsung Galaxy Note 20 Ultra which uses the Type C adapter.

You will need a Lightning to USB Type-C adapter, such as

https://www.belkin.com/us/p/P-F2CU070/

This adapter claims to work for connecting EarPods to a MacBook. It doesn’t mention your Samsung phone, but this is the necessary physical conversion required.