Find and replace with grep and perl I'd like to grep and replace specific text in textfiles within a directory and all subdirs.  I try the following:

ls -R | egrep '.*\.txt' | perl -i -p -e 's/one.a/two.a/g'

Although grep spits out a list and this executes, I can't seem to get perl to actually write to the files.  If possible, I'm interested in learning how to do this without the use of find.

Can anyone spot where I'm going wrong?

Thanks,
jml

There are two minor issues:  First, to pipe file names to a perl one-liner in this way, you need to use the xargs command.

Second, you will need to pass the full path to the perl one-liner, because it might be in a subdir, so it would be better to use find.

Here's a working command:

find . -name "*.txt" | xargs perl -i -p -e 's/one.a/two.a/g'


Permission Denied for apropos command I'm trying to list the contents of the whole apropos (makewhatis) database with the following command but I keep getting Permission denied.

sudo -s apropos . > touch thedatabase

-bash: touch: Permission denied

sudo -s apropos . > thedirectory

thedatabase: Permission denied

apropos . > touch thedatabase

All of these result in some form of Permission Denied. How do I get around this or what is the more elegant way of doing this?

I'm not sure how to do what you are asking.  Looking into that now, but I know how to get around the permissions problems you are having with sudo.

Your syntax is wrong for sudo, the shell redirection ">" is happening without elevated privelleges.  Try wrapping in quotes like this:

sudo -s 'apropos . > touch thedatabase'


How to disable Mojave's floating thumbnail screenshot preview? How do I disable this:

after taking screenshot?

Press commandShift5 to bring up the Screenshot menu
Uncheck Options > Show Floating Thumbnail

This will prevent it from showing up.

This will also disable the ~5 second saving delay (screenshots will be saved immediately).


Web Sharing Can't Start It worked before, and I'm not sure when it stopped working, but I'm unable to start Web Sharing at the moment.  Attempting to start it from the Sharing screen results in "Web Sharing Starting..." immediately followed by "Web Sharing: Off".  I've tried reverting to the httpd.conf in /etc/apache2/original, but the result is the same.

What else could I try?

First, take the time to check your httpd.conf with:

sudo apachectl configtest

If it's all ok, then try to restart Apach once or twice (look at the log):

sudo apachectl start (or restart)

It worked for me. If it still doesn't start try finding another default httpd.conf


Change location of macOS Notification Center alerts? Is it possible to change where macOS Notification Center alerts appear on the screen?

They currently appear at the top right of the screen with the menu bar:

Alerts appearing in the top right tend to cover up work I'm doing more often than not. They cover up browser tabs, toolbar icons, and window titles.

I would prefer, say, the bottom right corner of the screen.

If moving the alerts is not possible, is it possible to change the screen on which they appear?

Unfortunately, you can't change the screen position of the Notification Center Alerts and Banners. This is a huge gripe of mine as well, and I highly encourage you to complain about this issue to Apple here:
http://www.apple.com/feedback/macos.html

Hopefully they will one day change this. I also have not been able to find or formulate any hacks.

I, too, am annoyed by it covering up controls in my modeling applications, tabs in my browser, etc.

You can move the Notification Center to another screen, however your entire menu bar goes with it. When you have more than one monitor active, open up System Preferences > Displays > Arrangement. Click and drag the white bar inside one of the squares representing your current primary monitor and drag it to another monitor.

For notifications that don't need immediate attention, consider changing the alert style from Alerts to Banners. Banners are automatically dismissed into the notification center where you can find them later.

Good luck, and keep spreading the word that we need to tell Apple to make this experience better.


Is there any way to install homebrew on iOS (jailbroken) I'd like to install homebrew on my iPhone running iOS 10.3.3, which is jailbroken and has Terminal and NewTerm installed.
When I run /usr/bin/ruby -e "$(curl -k -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" I get:
dyld: Library not loaded: /usr/lib/libruby.1.9.1.dylib
  Referenced from: /usr/bin/ruby
  Reason: no suitable image found.  Did find:
        /usr/lib/libruby.1.9.1.dylib: can't
map segments into 16KB pages
        /usr/lib/libruby.1.9.1.dylib: can't
map segments into 16KB pages
        /usr/lib/libruby.1.9.1.dylib: can't
map segments into 16KB pages
        /usr/lib/libruby.1.9.1.dylib: can't
map segments into 16KB pages
Abort trap: 6

The command that I tried to use is the command that macOS uses to install homebrew.
Is there any way to successfully install homebrew on my iPhone?
This problem could be caused by the fact that my phone is only semi-jailbroken.
Ruby is installed, and my phone is semi-jailbroken (no tweaks, whenever I try to jailbreak with tweaks enabled, it gets stuck springing, respring two times and gets stuck at the same spot both times, and then reboots into regular iOS).

No, this isn't possible.

Homebrew is designed for use on macOS systems. It is not intended for use on iOS, and the packages it downloads will not run on an iOS system. It cannot compile packages for iOS either, as the Xcode toolchain is not available for iOS.

Attempting to install Homebrew will be futile, and may render your device unusable.


Cannot open Mail Preferences in Mountain Lion I have a user that whenever she tries to open mail preferences it consistently locks up with the pinwheel icon and requires her to force quit mail. Mac mail was fine until a gmail account was added to her list of accounts.

Aside from the prefs issue, Mac mail runs fine. She has 10.8.2 installed. When she called Apple, they suggested reinstalling the OS by using the recover option at bootup.

Is there a trick we can do at the terminal, finder or elsewhere to fix mail? The same issue exists in safe boot.

Does mail have a way to easily reset preferences while retaining the accounts configured and rules.

Go to ~/Library/Containers/com.apple.mail/Data/Library/Preferences and move the file com.apple.mail.plist to the Desktop and restart Mail.

Other plist files exist in ~/Library/Mail/V2/MailData/ but I'd start with the above plist first. In this directory you could also manually remove the offending account (particularly if the mail is also stored online) and re-add it.


How to open path in Double Commander from Terminal If I type open $(pwd) or open /anypath/ I will get the path opened in Finder. How I can achieve similar results but with the path opening in Double Commander instead?

By default Double Commander is programmed to open with two Tabs each set to the current location of the Double Commander.app application bundle.  If one then changes to a different location other then the default on one of the Tabs and then closes Double Commander and reopens it, it opens to the last location before being closed.

Here's a way to open Double Commander to a specific path from the command line similar to opening Finder to a specific path using Terminal.  This covers the default of two Tabs.

Use the following syntax in a Terminal:

open -a Double\ Commander --args -path location ...

Example:

open -a Double\ Commander --args -path ~/Documents

This will open Double Commander to your Documents folder in the left Tab and the right Tab will open to the last location opened.

If you want to set the location of the both Tabs use:

open -a Double\ Commander --args -path location location

Example:

open -a Double\ Commander --args -path / ~/Documents

This will open Double Commander to the root of the boot volume, typically Macintosh HD, in the left Tab and your Documents folder in the right Tab.

If there is a way to set just the right Tab while letting the left Tab default to the last saved location I do not know the syntax for it, if it's even doable.  I did try several attempts using different delimiters but none gave the wanted results in testing.

Update to address the comment by s.newave:

I'd add a function to your .bash_profile file as in the following example code:

function odc () {
        pkill doublecmd; open -a Double\ Commander --args --no-splash -path "$1" "$2"
 }

Then from the command line in Terminal you can simply use odc or e.g.: odc / ~Documents

Note that if the Double Commander > Configuration > Behaviors > [] Allow only one copy of DC at a time, check box is not checked, you can use the following variant to open a new occurrence of Double Commander to the desired paths leaving other occurrences of Double Commander running.

function ondc () {
        open -n -a Double\ Commander --args --no-splash -path "$1" "$2"
 }

Then from the command line in Terminal you can simply use ondc or e.g.: ondc / ~Documents

Note that in either case you can also pass a single argument as well, e.g. odc ~Documents or: ondc ~Documents

The function names odc and ondc stand for open double commander and open new double commander, respectively.


Add an up button to the Finder? Is it possible to add a button to the Finder that goes up a directory? I looked at the buttons available under customize and didn't see one, but thought there might be a hack out there.

Would you be willing to just use a keyboard shortcut instead?

⌘ Command↑ Up

Voilà.


How to stop Catalina from contacting Apple servers when executing programs? I'm a software developer and as such I build and run programs hundreds of times per day. I've noticed that since I started using Catalina, after compiling and linking there is a delay (which can be seconds) when the internet is slow or having problems (I have bad internet often). If I disable wifi and rebuild, the delay goes away.
How can I disable this so my builds run faster?

Yes, as a security measure, macOS Catalina sends some small info (can be seen by packet size) about unsigned executables to the Apple servers.
A simple  C program as illustrated in ..

Does macOS phone home to Apple's servers before running an app for the first time?

.. can demonstrate the lag in startup on poor internet connection conditions.

https://lapcatsoftware.com/articles/catalina-executables.html

The article has detailed observations, tests and commentary on the process.
You can block the syspolicyd process from connecting to the internet, and it won't hinder its normal functioning locally, using a firewall.
I use LuLu, since it's free. A lot of people use Little Snitch.

https://github.com/objective-see/LuLu
https://www.obdev.at/products/littlesnitch/index.html

Many other apps also ping their servers on startup or quitting: Firefox,
Adobe,
Sublime Text etc.
Other threads:

Which free alternatives to Little Snitch can I use to block internet traffic per applications?
How can I get the exact URLs/requests that a program is trying to connect to?
Reasons to prefer Little Snitch over the built-in firewall
Firewall for outgoing connections


How to recover file from Trash Windows user here. How am I supposed to recover file without using a command line?
I run Mac OS X 10.8.5

It depends on how you trashed the file. Unfortunately there is no simple restore to original place.  It only works if you trashed the file by using Finder or if the app used the correct API call (although reading the github issues for various command line utilities which try to use this, Apple have broken that API). Just moving the file to trash is not enough which is what a lot of programs do. I suspect this Finder behaviour was added in some version of OSX so old ones won't have it - or else I never trashed anything correctly.)
If you used the Finder to trash it see this other answer
If not :
What you do is copy the file from trash (Copy is on the pop up menu you show) and then navigate in Finder to where you want it to go and then paste it. If you have two Finder windows open you can drag and drop the file from Trash to where you want it.


How do I find the application name to open a file using AppleScript? I find the AppleScript method of opening a file convenient but often cannot guess at the application name to use when I do not want the default options.

As an example, I have installed Foxit PDF Reader to directly annotate a PDF.  I have not been able to guess what to use in the open -a ??? my.pdf command.

How could I find this for any general application?  Perhaps there is some way to get a list of all available options?

You can use -b option and use Bundle Identifier instead of using Application name. For example, to get Bundle Identifier from Safari:

plutil -p /Applications/Safari.app/Contents/Info.plist | grep BundleIdentifier

as a result You'll get "CFBundleIdentifier" => "com.apple.Safari"

Then You use it like this:

open -b com.apple.Safari /path/to/file

Generally, You'll need to get Bundle Indentifier from Info.plist file located inside Application.app/Contents/ directory.

Or if You want, You can get the app name with this:

plutil -p /Applications/PaintCode\ Trial.app/Contents/Info.plist | grep BundleName

output:

"CFBundleName" => "PaintCode Trial"


How do you complete an album using Apple Music? I have an album that I discovered and downloaded with the help of the new Apple Music service.  I deleted one of the tracks in order to see how Apple Music would allow me to complete an album that was missing one or more tracks.  However, I cannot get Apple Music to show me that complete album again, including the song I have deleted.  I can only see the album as it exists locally, and of course is missing the deleted song.

How can I get Apple Music to once again show me the full and complete album, so that I can download the missing song?

Figured it out on my own, but WOW is it unintuitive.  Here's the solution... follow me on this, it gets a little bumpy.

First, the goal again is to have iTunes (with Apple Music active) show you the complete list of songs for an album where you are missing one or more of the songs.

If you right click a song in the album and select "Go To Album", you will be taken to your local copy of the album (specifically you will see My Music in Album view).  Unfortunately this shows you only the songs that you have, and gives no option to display the entire album.

However, if you delete one song from the album (select a track, hit Delete, and confirm that you wish to Delete Item), then the "Show Complete Album" option will suddenly appear.

But, there's a catch.  Deleting the item that is currently selected, means there is no selection once the deletion is completed, and so you will be dumped out of the album you were looking at, and taken to the top of your Albums list.  Whatever album you were looking at, is now down below somewhere... and you're going to have to find it manually.

Once you again open your album, you are presented with all your existing tracks as well as all missing tracks, which will have an "Add" button next to them.  There is also an "Add All Tracks" button.

DO NOT PRESS "ADD ALL TRACKS"!  Doing so will add a second copy of all the album's tracks, in your music library.  You must click the individual Add buttons next to the missing tracks you want to add again.

But there's another catch.  Sometimes - but not always in my case - clicking Add causes the missing tracks to all disappear.  I had to "close" the album by clicking on it, then open it again, and the remaining missing tracks once more appeared.  Rinse & repeat for every click of the Add button.

But sometimes, it just works fine and you can click Add several times in a row for all missing tracks, and you're all set.

So that's it.  Once you see "No additional songs found" and there are no longer any Add buttons, then you've got the complete album once again.

What a huge pain, and very confusing to figure it out.  I pretty much got lucky in connecting the dots to figure this out.


How can I use an Asix AX88179 with Mac OSX 10.8 (Mountain Lion) I'm looking for some one who may have configure the Asix AX88179 to work with OSX 10.8 Mountain Lion.
This chipset (AX88179) is embedded in most of the very new the USB 3.0 Gigabit Ethernet adapters.

I bought one of them coming from Digitus and after one day on it, it is recognised by Mountain Lion on my Macbook Air, it seems that the network diagnostic tool is OK, but I was never able to connect on my mails and run any browsers (Safari, Firefox etc...).
There is something wrong in the network configuration.

I'm using the versions 1.1 and 1.2 of the Asix drivers (dowload from the Asix site and coming from Digitus).

This is fixed in Mac OS 10.8.3.

In MacOS 10.8.2 although I faced an issue:
I have a version from Delock running driver V1.3.0 (but V1.2.0 showed exact same behaviour). Adapter runs fine on first connect. If unplugged and plugged in again it will not work unless I reboot. Best solution I found is to reload the driver by hand. That saves you at least the reboot.

sudo kextunload -b com.asix.driver.ax88179_178a
sudo kextload -b com.asix.driver.ax88179_178a

If your driver has a slightly different name (for whatever reason) you can look it up with:

kextstat |grep asix


Use an external disk shared to Mac via Windows for Time Machine I have an external hard drive with 3 partitions partitions a exFAT connected to a Windows 10 PC. I am able to mount and access the disks on my Mac wirelessly but cannot get TimeMachine to use this partition as a TimeMachine backup disk.

I am mounting it on my Mac using smb://XXX.XXX.XXX.XXX. I have also tried changing the unsafe disk property using the terminal command:

  sudo defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Anyone have any ideas how to get this to work?

Actually you are missing only one thing, TimeMachine will ONLY write to an HFS+ formatted disk so you need to backup to a sparseimage disk image file.

Create the sparseimage disk image with Disk Utility, be sure to select the image type as Sparse Image and the format as HFS+. Make it as big as the partition you are putting it on less a bit. The created disk image will only be a couple hundred MB.

If you are on Mojave even if you select HFS+ as the disk image it may be created as an APFS format. So you will need to mount the image, select it in Disk Utility and reformat it as HFS+.

Now you need to go into terminal and tell TimeMachine about the new backup volume that you have mounted from the SMB share:

sudo tmutil setdestination "/Volumes/TimeMachineBackups/"

Where "TimeMachineBackups" is the name of your mounted Time Machine disk image.

Now just set that volume to mount at startup under System Preferences > Users > Startup Items and you should be good to go.

I recently did this at work and it works great.


Can't find where macOS FUSE is on my system to uninstall and update it I get this error message every time I login (after recently updated to Catalina).

  The installed version of FUSE is too old for the operating system. Please upgrade your FUSE installation to one that is compatible with the currently running version of macOS.

Can't find it to uninstall it. I've done searches everywhere.

It is likely that you normally uninstall applications by dragging and dropping their icons to the Trash. In the case with the FUSE software program, you will not find its icon in the Applications folder, as FUSE is a type of extension. You will find its icon in the System Preferences window. However, it also consists of numerous user-space libraries and tools, which should be removed as well.

Open System Preferences and click on the FUSE icon.
In the window that appears, untick Show Beta Versions to prevent leaving the remaining files of the FUSE preference pane after its deletion. Then, click on the Remove FUSE button.
Within the System Preferences, make a right-click on the FUSE icon and select Remove “FUSE” Preference Pane.
As you know, every application creates plenty of service files.It is very likely that some types of files were not deleted with the Remove FUSE button. Usually, the service files of applications are stored in the user’s Library folder. To get access to this folder, open Finder → in the menu bar, click Go → Go to Folder → in the window that appears, type ~/Library and click Go. Within the user’s Library folder, find and delete unneeded files, related to FUSE in the following directories:

~/Library/Caches
Also, I recommend that you check other subfolders in the Library folder. If you find files related to FUSE, remove them to Trash.

~/Library/Logs

~/Library/Preferences

~/Library/Application Support


Parsing through data from an old mac text editor. (Recovering data from a Mac floppy.) I've been tasked with the job of recovering the text of a book stored on a 3.5'' floppy disk. From what I can tell, the book was stored on the disk using a Mac sometime in the 1990s.

I tried simply reading the disk on my older Windows machine, but I received the error: "The disk is not formatted". I tried using several file recovery programs, but they mostly indicated that the disk was probably corrupt.

However, I was able to create an .IMA disk image file in Windows. I transferred this file to my newer PC and opened it was a text editor. It seems that the text of the book is intact, but it is mixed in with many formatting characters that I think are an artifact of some old Mac word processor. For example I think Ü ┐Ü represents a line break.

Is there any (PC) software I can use to parse out all of theses formatting symbols? Or better yet, is there software that could perhaps understand the original format that the book was written in? Unfortunately I do not have a single file, instead it's trapped in a disk image. (And I am not able to extract the disk image because the disk is "corrupt.") I could manually go through and edit the text, but this would be extremely time consuming, considering that the book is ~1 MB.

Thanks!

Best guess with no additional information would be that it is a ClarisWorks file.

LibreOffice should be able to open it - the translation is apparently not perfect, but might be good enough to work with.

Idea garnered from How to open your ClarisWorks files for a stroll down memory lane

There's also the possibility of extracting the files directly from the floppy to Windows using MacDrive or even MacDisk (though that looks pretty old) rather than trying to pick bits out of a WinImage file.


FileVault2 boot volume corrupt after partition deletion A client has a MacBook Pro Retina with a FileVault2 encrypted boot drive, and the Mac used to dual boot with Linux. Disk Utility apparently showed 4 partitions [Mac HD, Linux, and other 2 small partitions, likely used by Linux as it too was full disk encrypted.

He managed somehow to delete one of the small partitions, and now all disk utility shows are disk0s1, disk0s2, and so on, without even the containing physical drive above in the list.

The os was 12.12.4 [likely, definitely 12.12.x].

This is an image from Recovery > Disk Utility:

      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  813902408      2  GPT part - FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF
  814312048    1269536      3  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  815581584       1648
  815583232   80498047      4  GPT part - 0FC63DAF-8483-4772-8E79-3D69D8477DE4
  896081279        641
  896081920    2244608      5  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  898326528     262144
  898588672   78516224      6  GPT part - 0FC63DAF-8483-4772-8E79-3D69D8477DE4
  977104896        131
  977105027         32         Sec GPT table
  977105059          1         Sec GPT header

Of course he doesn't have a backup. He has the recovery key for FileVault2. Any ideas?

The partition map seems valid and no important small partition has been deleted (maybe one less important EFI or Apple_Boot partition between partition 5 and 6 - the other gaps of unallocated disk space are too small to contain a useful partition e.g. 1648 blocks = ~844 kB).

Partition 2 and 3 of disk0 got the wrong partition type though - the encrypted partition/data shouldn't be lost. Partition 3 has the typical size of a pre-APFS recovery partition (1269536 blocks) and partition 2 probably is the FV2 partition. The proper type of a recovery partition is 426F6F74-0000-11AA-AA11-00306543ECAC and the proper type of a CoreStorage partition (the base of FV2) is 53746F72-6167-11AA-AA11-00306543ECAC (instead of FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF).

Boot to Internet Recovery Mode or another external boot drive and modify the partition types with gpt.

Boot to Internet Recovery Mode
Get the details:

diskutil list

Below I assume the internal 500 GB SSD has the device identifier disk0

gpt -r show disk0

Remove partition 2 and 3:

diskutil umountDisk disk0
gpt remove -i 3 disk0
diskutil umountDisk disk0
gpt remove -i 2 disk0

Re-add partition 2 and 3 with proper types:

diskutil umountDisk disk0
gpt add -i 3 -b 814312048 -s 1269536 -t 426F6F74-0000-11AA-AA11-00306543ECAC disk0
diskutil umountDisk disk0
gpt add -i 2 -b 409640 -s 813902408 -t 53746F72-6167-11AA-AA11-00306543ECAC disk0

After adding partition 2 with gpt you will probably be asked to enter a passphrase
If not unlock the FV2 volume with:

diskutil cs list
diskutil cs unlockVolume lvUUID #lvUUID: the UUID of the Logical Volume

Verify disk and volume

diskutil verifyDisk disk0
diskutil list #get the device identifier of the mounted FV volume (probably in the upper tens: disk17 or disk18)
diskutil verifyVolume diskX #with diskX: the device identifier of the mounted FV volume


Unable to sign into Messages on Mavericks I'm unable to log into iMessage on my account in Mavericks.

Here's what Console.log shows:

5/23/14 9:50:15.996 AM identityservicesd[343]: [Warning]  *** Bad Request From Server ***
5/23/14 9:50:16.102 AM identityservicesd[343]: [Warning] Registration failed for Registration info (0x7fc19630fa80): [Registered: NO] [Type: AppleID] [Device Name: (null)] [Service Type: iMessage] [Env: (null)] [Main ID: n***@*******k.com] [Phone Number: n***@*******k.com] [AppleID: n***@*******k.com] [UserID: E:n***@*******k.com] [C2K: NO] [Push Token: <3fcb7834 a######2 0######6 4######5 c######0 9c0941f6 fe61af4a 3954a0fc>] [Region ID: R:US] [Base Number: +12*******17] [URIs: (null)] [Candidates: (null)] [Auth Cert: 0x0] [Reg Cert: 0x0] [Profile ID: D:120333617] [Auth Token: (null)]  [Auth User ID: (null)] [Heartbeat Date: (null)]   (Error: 9)
5/23/14 9:50:16.125 AM identityservicesd[343]: [Warning] Registration failed for Registration info (0x7fc19630fa80): [Registered: NO] [Type: AppleID] [Device Name: (null)] [Service Type: iMessage] [Env: (null)] [Main ID: n***@*******k.com] [Phone Number: n***@*******k.com] [AppleID: n***@*******k.com] [UserID: E:n***@*******k.com] [C2K: NO] [Push Token: <3fcb7834 a######2 0######6 4######5 c######0 9c0941f6 fe61af4a 3954a0fc>] [Region ID: R:US] [Base Number: +12*******17] [URIs: (null)] [Candidates: (null)] [Auth Cert: 0x0] [Reg Cert: 0x0] [Profile ID: D:120333617] [Auth Token: (null)]  [Auth User ID: (null)] [Heartbeat Date: (null)]   (Error: 9)
5/23/14 9:50:16.125 AM identityservicesd[343]: [Warning] Failed, server error => Disabling service
5/23/14 9:50:16.126 AM identityservicesd[343]: [Warning] Failed, server error => Disabling service
5/23/14 9:50:16.148 AM identityservicesd[343]: [Warning] Needs deletion: NO (Registration info (0x7fc19630fa80): [Registered: NO] [Type: AppleID] [Device Name: (null)] [Service Type: iMessage] [Env: (null)] [Main ID: n***@*******k.com] [Phone Number: n***@*******k.com] [AppleID: n***@*******k.com] [UserID: E:n***@*******k.com] [C2K: NO] [Push Token: <3fcb7834 a######2 0######6 4######5 c######0 9c0941f6 fe61af4a 3954a0fc>] [Region ID: R:US] [Base Number: +12*******17] [URIs: (null)] [Candidates: (null)] [Auth Cert: 0x0] [Reg Cert: 0x0] [Profile ID: D:120333617] [Auth Token: (null)]  [Auth User ID: (null)] [Heartbeat Date: (null)])
5/23/14 9:50:16.171 AM identityservicesd[343]: [Warning] Needs deletion: NO (Registration info (0x7fc19630fa80): [Registered: NO] [Type: AppleID] [Device Name: (null)] [Service Type: iMessage] [Env: (null)] [Main ID: n***@*******k.com] [Phone Number: n***@*******k.com] [AppleID: n***@*******k.com] [UserID: E:n***@*******k.com] [C2K: NO] [Push Token: <3fcb7834 a######2 0######6 4######5 c######0 9c0941f6 fe61af4a 3954a0fc>] [Region ID: R:US] [Base Number: +12*******17] [URIs: (null)] [Candidates: (null)] [Auth Cert: 0x0] [Reg Cert: 0x0] [Profile ID: D:120333617] [Auth Token: (null)]  [Auth User ID: (null)] [Heartbeat Date: (null)])

Here is what I've tried:

Repair Permissions & Repair Disk
Deleting what appears to be appropriate out of my Keychain (iMessage & iCloud Keys, etc.)
Logging into a guest account makes iCloud/Messages work just fine (can send and receive messages).
All of my other iCloud services just work fine.
iMessages on my phone works fine as well.
Run Keychain First Aid.
Deleted some files from that pertain to identifyservicesd / soagent

~/Library/Containers/com.apple.soagent/Data/Library/Preferences/com.apple.messageshelper.AccountInfoController.plist
~/Library/Containers/com.apple.soagent/Data/Library/Preferences/com.apple.soagent.plist

I'm using a MBP 15" Retina (not a mackintosh).
Changing Apple ID Password. (on appleid.apple.com)

Context: I have two login keychains, one from an old MBP and the new one from this machine.

After deleting anything that had to do with Messages/Apple ID (including encryption keys, certificates, etc.) and killing the imagent and identityservicesd processes, Messages finally let me log in:

Apple ID n**@*****.com key (multiple of both public and private keys)
A bunch of old @me.com stuff (anything)
iMessage Encryption / Decryption Keys


iCloud storage doesn't add up on in iPhone's "Manage Storage" panel I'm looking at the "Manage Storage" panel, (accessible from Settings > iCloud > Storage & Backup > Manage Storage) which shows a list of all the items being backed up along with a total. Or at least that's what it appears to be... the problem is that the total shown is about 50 times greater than the sum of its parts. Like this:

All the listed apps together add up to less than 60 MB, but it insists that is using (and will continue to use) 3.3 GB.

Is this normal? Is there 3.2 GB of unlisted overhead? Is anyone else experiencing this issue?

Several days after I posted this question my phone started having problems (apps opening slowly and crashing) and I erased the phone and attempted to restore from the iCloud backup. The restore screen gave me a time estimate of 11 hours for a process that (for most people) takes about 10 minutes. It ran for about an hour and then failed with an error message that the wifi connection had failed (it hadn't).

After numerous unsuccessful attempts and several days of escalating phone support from Apple, a senior tech told me that my backup was "corrupted" and forwarded the request on to an engineer to see if my data could be retrieved.

So I believe the correct answer here is that this was not normal and was a sign that the phone contained some sort of corrupted data, which was being passed on to iCloud every time I backed up.


Updating iOS, Storage Mystery Math I'd like to update my iPhone Operating System.  I plug the iPhone into my desktop computer, sync up to itunes, then press the Update button, right below where it says

  A newer version of the iPhone software is available... To update your
  iPhone with the latest software, click Update.

I then get a popup that says

  Updating to iOS 10.3.2 requires at least 770 MB of free space on your iPhone.
  Please change your media sync options to make more storage available.

Huh?  I'm looking at the data storage summary at the bottom of itunes.  It says quite clearly that I have 2.48 GB free in the little color bar describing the iPhone.  I need 770 MB, and I have 2.48 GB available, then why, for goodness sake, am I getting that mystery message?

When I learned math, I thought that 770 MB was a heck of a lot smaller than 2.48 GB.

Note: There is some other odd stuff going on with this phone's memory display.  I've deleted all the photos from the photo gallery on the phone, yet the data summary bar shows 1.49 GB, 1760 photos.  It should show near zero memory / zero images.

Note:  Its possible that Dropbox is messing things up.  I would have thought that the Dropbox memory usage would be accurately reported out on the data usage summary in iTunes. My Dropbox storage capacity is 10GB, of which I typically use 8GB.  (In fact is there a DropboxIgnore for the iPhone?  I really only need access to photo backup and my password vault from the iPhone...)  On the phone data summary color bar, there is an Other category, sized at 4.84 GB, which I assume to be Dropbox.

I've clicked Synch, Done and rebooted the entire computer numerous times trying to get stuff to update.  There are minor variations to the storage usage display, but the photo segment doesn't seem to update, nor will the OS update, and utilize that empty space.

Anybody know what's going on here?

ref: windows 10, itunes v12.6.1.25, iphone 6 with 16GB memory, sync via USB cable.

Try restarting the iPhone, worked for me, maybe some temporary files get deleted on reboot.


iChat call forces in-call status bar in iOS simulator Is there a way I can disassociate the iOS Simulator from my iChat calls, currently I am working on my app and I am using iChat for a video call and the in-call status bar comes and I can't toggle it off.

It actually says that it's a FaceTime call.

More:

I am developing an iPhone application and I am using he iOS Simulator application to test it. However I am also using iChat to speak to someone on a video call at the same time on my mac.

Consequently in my iOS simulator, the green in-call status bar is appearing. This is stopping me working on some things in my app and I am trying to find a way to switch it off.

I don't know about the iPhone simulator, but if this was happening on an actual iPhone, I would associate the phone with a different Apple ID.

Can you do that in the simulator?


Keyboard shortcut to change the behavior of function keys? Is there a shortcut for toggling the behavior of the function keys between standard and the media functions printed on them?

I know I can do this in the Preferences, but it would be great to achieve this quickly from the keyboard.

You can use a private.xml like this with KeyRemap4MacBook:

<?xml version="1.0"?>
<root>
  <item>
    <name>test</name>
    <identifier>test</identifier>
    <autogen>__DoublePressModifier__ KeyCode::FN, KeyCode::FN, KeyCode::VK_CONFIG_TOGGLE_flipfkeys</autogen>
  </item>
  <item>
    <name>flipfkeys</name>
    <identifier vk_config="true">flipfkeys</identifier>
    <autogen>__KeyToKey__ KeyCode::BRIGHTNESS_DOWN, KeyCode::F1</autogen>
    <autogen>__KeyToKey__ KeyCode::BRIGHTNESS_UP, KeyCode::F2</autogen>
    <autogen>__KeyToKey__ KeyCode::EXPOSE_ALL, KeyCode::F3</autogen>
    <autogen>__KeyToKey__ KeyCode::LAUNCHPAD, KeyCode::F4</autogen>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::KEYBOARDLIGHT_LOW, KeyCode::F5</autogen>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::KEYBOARDLIGHT_HIGH, KeyCode::F6</autogen>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::MUSIC_PREV, KeyCode::F7</autogen>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::MUSIC_PLAY, KeyCode::F8</autogen>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::MUSIC_NEXT, KeyCode::F9</autogen>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::VOLUME_MUTE, KeyCode::F10</autogen>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::VOLUME_DOWN, KeyCode::F11</autogen>
    <autogen>__ConsumerToKey__ ConsumerKeyCode::VOLUME_UP, KeyCode::F12</autogen>
    <autogen>__KeyToKey__ KeyCode::F1, KeyCode::BRIGHTNESS_DOWN</autogen>
    <autogen>__KeyToKey__ KeyCode::F2, KeyCode::BRIGHTNESS_UP</autogen>
    <autogen>__KeyToKey__ KeyCode::F3, KeyCode::EXPOSE_ALL</autogen>
    <autogen>__KeyToKey__ KeyCode::F4, KeyCode::LAUNCHPAD</autogen>
    <autogen>__KeyToConsumer__ KeyCode::F5, ConsumerKeyCode::KEYBOARDLIGHT_LOW</autogen>
    <autogen>__KeyToConsumer__ KeyCode::F6, ConsumerKeyCode::KEYBOARDLIGHT_HIGH</autogen>
    <autogen>__KeyToConsumer__ KeyCode::F7, ConsumerKeyCode::MUSIC_PREV</autogen>
    <autogen>__KeyToConsumer__ KeyCode::F8, ConsumerKeyCode::MUSIC_PLAY</autogen>
    <autogen>__KeyToConsumer__ KeyCode::F9, ConsumerKeyCode::MUSIC_NEXT</autogen>
    <autogen>__KeyToConsumer__ KeyCode::F10, ConsumerKeyCode::VOLUME_MUTE</autogen>
    <autogen>__KeyToConsumer__ KeyCode::F11, ConsumerKeyCode::VOLUME_DOWN</autogen>
    <autogen>__KeyToConsumer__ KeyCode::F12, ConsumerKeyCode::VOLUME_UP</autogen>
  </item>
</root>

It makes pressing fn twice toggle between using the F-keys as normal function keys.


Can't boot mac or fix it with disk utility I can't boot my Mac in any way, not even from my backup HD. Disk Utility and fsck says

Missing directory record (id = 33496403)

What can I do now?
El Capitan on MacBook Pro late 2008.

If you have a backup I'd recommend formatting the drive, reinstalling macOS and restoring from backup.
If you don't have a backup you could try 3rd party tools like Alsoft DiskWarrior or Micromat TechTool to repair the volume. Alternatively you could manually back up data via Terminal or by booting from an external drive (and using Finder) if the volume still mounts.


Where are OS-level crash reports stored? I have a machine that has some intermittent rebooting. When it restarts, I get the familiar dialog to report this to Apple. I don't always remember to save the details of the crash. I'm sure that those logs are stored in the FS somewhere. Does anyone know where?
To be 100% clear, I'm not talking about application crashes, which are easily viewable in Console, I mean OS-level panics.

They live in /Library/Logs/CrashReporter.


Change security question without calling apple I just submitted a gift card on my apple id and wanted to purchase an app. After pressing buy it asked me to enter my security questions because it's my first time and I have forgot them. I have forgot my security questions and I couldn't find a way to reset it online, apple's page says I can reset it online but it seems recently they have removed the option to reset it online and they only give you the option to call them . I wanted to ask if you guys know any way to reset security questions without calling apple.
Or if you know any way to purchase an app without answering security questions
Thanks

appleid.apple.com has all the tools you need to manage your Apple ID, including changing security questions.

Go there and log on. You will be presented with a screen that has a your Apple ID info on it. Select "Change Questions..."

You will then be prompted with the answers to your current questions. Enter them. You should now be able to change your questions.


Where to change websites settings on Safari, IPadOS 14 I am trying to make a video online on this website https://spark.adobe.com/. And I got this error.

I don’t know how to make the requested change. I cannot find the mentioned path on my iPad. In the Settings>Safari I cannot find Preferences. In fact, there is no such option.
I am working with iPadOS betta 14.7

What seems to be happening is that the website thinks you are using Safari for macOS and in reality you are using Safari for iOS which uses the same rendering engine but is entirely different in the way it lets you set the media handing.
In fact I didn't see any setting for auto play here:
Settings > Safari
Settings for iOS apps are almost always in the Settings app. The Apple (built-in) apps all have their settings there.
What I did see what an option for "Request Desktop Website."
It might be that is on and it may need to be off for this particular website to work properly. If it is on turn it off and the website will then realize that you are on an iPhone and switch the content around to be optimized for a mobile device.
It is also possible that you ran into a bug in the beta software you have installed on your phone, that there is no fix for until (maybe) the next beta release.


Does Time Machine save TextEdit drafts? Imagine you have Time Machine running with Yosemite.

You open TextEdit, create a new text document in which you actually write stuff.
You can turn off your computer, restart it, the document will still be there.
But you never saved it once, never. It's just a draft that gets saved as a draft (where?) - when you log out.

Then if you close the window, and lose this document, I assume there's a copy of it somewhere since every time you turned your computer off and on again, the document was there!

But... where would you now look for it in Time Machine?

Time Machine does back them up.

They are kept in
~/Library/Containers/com.apple.TextEdit/Data/Library/Autosave Information/
File named Unsaved TextEdit Document

so, for Time Machine, it would be
/Volumes/[TMvolume]/Backups.backupdb/[computer]/Latest/[drive name]/Users/[user]/Library/Autosave Information
or use the first path & Enter Time Machine, which would probably be simpler.


Mix mic audio and system audio and simultaneously record using Audacity I want to play an instrumental track that a friend uploaded to YouTube and simultaneously sing into the Mac's mic. And I want to record the mix of these two sounds using Audacity.

I've tried using various solutions for similar (but not exact) situations that are described on Ask Different. I've tried various combinations of "Aggregate Device" in "Audio Midi Setup." Nothing has worked so far.

I have the following installed on my computer: Line In, WavTap, SoundFlower.

Thoughts?

(I have a MacBook Air with a built-in mic, with OS X Yosemite.)

I'd approach the problem from the opposite end...

Get the YouTube audio track into Audacity first.

You can use iTunes to extract audio from video

In prefs > General, click Import Settings... & change 'Import Using' to WAV [remember to set it back to your preferred audio format afterwards]
Drag your video into iTunes, then go to the Movies tab
Select the movie, then File menu > Create New version. Hold the  Alt ⌥  key & the 3rd option will ungrey, allowing you to save the audio separately.
Import this to Audacity.

Then you have all day to record your vocal track separately; add reverb etc & export the finished mix from Audacity.

This approach not only gives you the  time to go back & edit mistakes etc in the vocal track, it also avoids the essential difficulty of trying to live-record 2 audio streams to separate tracks without professional audio equipment.


Using an iPad as a car entertainment system I am thinking about using iPads with headrest mounts to allow my toddlers to watch videos while we drive. I'd really like to be able to control the iPad from the front seat if at all possible, so that we don't have to get into the back seat and do things like slide to unlock, press play/pause, adjust the volume, etc.

Are there any devices that could be used to remotely control the iPad from the front seat in this fashion?

There is nothing that steps into the iPad at a low enough level as to simulate a swipe to unlock. Even the external keyboard connector could be extended, but that won't allow total control of the device even if you could operate things without seeing the display. There is no concept of a mouse or pointing device in the iOS or the iPad hardware.

You might want to consider a generic LCD panel / speaker system and an iPod touch or iPad with a cable that will reach to the front seats. You could queue up the entertainment and use the video out to present it to the passengers in the back until such time as they can learn iOS and be trusted to hold the iPad. It won't take long for that to happen or for them to show you every hidden feature you never knew existed or could be enabled in the iPad.

This use case screams for an AirPlay video receiver but those aren't shipping yet even in the living room.


Apps Icons not appearing Some of my Apps Icons are changing to a generic app icon, and I have no idea why. Tried to restart the system and nothing. 3 days ago i updated my Skype and then the icon is gone.

I can think of three (well, sort of) potential solutions to this. You do not need to try these in any particular order - try one first and if the issue returns, then try the other. Option 1 requires entering commands in Terminal, Option 2 doesn't but sometimes only works temporarily. And the third option is doing both Option 1 and 2.

Option 1: Reset icon cache

If you tried the second solution first and it doesn't work (or it only works temporarily), you can try resetting the icon cache.

Launch Terminal (usually found in the Applications > Utilities folder)
Enter the following commands, one at a time:

sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;
sudo rm -rf /Library/Caches/com.apple.iconservices.store
killall Dock

Option 2: Reset and restart the Dock

This remedy is to reset and restart the Dock. However, in doing so, you will need to re-add any non-default icons to your Dock. (I usually find it's a good opportunity for people to start afresh and only add things as they actually use them).

So, if your solution doesn't pan out, you can reset and restart the Dock as follows:

Go to Finder
Press and hold the option key down
Now go to the Go menu
Select the Library option to open the User's Library folder. You can let go of the option key now.
Go to the Preferences folder (i.e. within the Library folder)
Find and move the com.apple.dock.plist file to the Trash
Now open Terminal (usually located in Applications > Utilities)
Enter this command killall -KILL Dock
Press enter

This should resolve the issue - but remember you'll need to re-add some apps back to the Dock.

Option 3

You may find you need to do both options 1 and 2.

Let me know how you go.


Restore Recovery HD partition from Yosemite downgrade I recently got back to Mavericks from Yosemite, everything went fine. As I normally do, I checked my HDD with the Disk Utility and found some trouble, then I boot on recovery mode to fix my HDD. I realize that the recovery partition was the Yosemite one (It's easy to see since the UI is different)

I want to get back my Mavericks recovery partition, so I followed along this instructions.

But my diskutil list output is a little different:

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage                         499.2 GB   disk0s2
   3:                  Apple_HFS EraseRecoveryHD         650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           *496.1 GB   disk1

I deleted my recovery partition successfully with the command:

diskutil eraseVolume HFS+ EraseRecoveryHD disk0s3

But when trying to merge using this command:

diskutil mergePartitions HFS+ "Untitled 1" disk0s2 disk0s3

I get the following:

The chosen disk does not support resizing.

I don't know why my disk0s2 does not have a name and why do I have a disk1

BTW, I tried to avoid this trouble just by using the recovery partition I have (from Yosemite), I ran the repair disk option on recovery mode, then I booted on Mavericks and the disk utility says my HDD has the same problem as when I first checked.

The simple solution is to reformat the whole disk and reinstall Mavericks from scratch.  Doing so will get your Mavericks recovery partition back and you can migrate your data back from time machine.  I get the feeling you don't want to do that however?


Is there a native way to keep a window always on top in Snow Leopard? How can you keep one window always on top? I saw that there are several third party solutions, but is there absolutely no way to do it natively?

There is no "native" way to do this. Your existing solution, Afloat, is the only one I've ever heard of (and works quite well).


Can I improve network speed with VirtualBox between host and guest? I use a VirtualBox machine with Arch Linux as development web server. I want to improve rsync transfer speed via smb://. What kind of configuration is best to improve file transfer/synchronization?

Which network configuration is best for speed between the host and the guest?

My config:
Intel PRO/1000 MT Desktop (Adaptador em ponte (bridged), en1: Wi-Fi (AirPort))

This is not directly the answer you are looking for, but an alternative approach that works wonders for my development environments.

Vagrant (vagrantup.com) is a tool built on VirtualBox which facilitates using virtual machines for development environments. Once you installed it, you can navigate to a local folder with your source files in the terminal, and initialize your virtual machine. Vagrant will map the current folder by default to "/vagrant" inside the virtual machine with read-write access, through VirtualBox's shared folder support. You could then point the webroot inside your virtual machine to a folder below there, for example.

Have a look at the Get Started guide for more info on Vagrant. If you prefer Arch Linux, you can also find prebuilt boxes at www.vagrantbox.es. You can even build your own box from scratch, in which case you might want to look at this chapter in the manual.

As for portability, I believe it is not such a good idea to distribute your sources inside a virtual machine this way (even for a single developer). You should put those in a version control system like Git or SVN, and have a check-out on every machine where you want to develop on.


Military CAC access no longer works after OS 10.13.2 upgrade I use an external Common Access Card reader to access secure websites for work. This CAC has ID certificates loaded onto it for security purposes and allows access to secure sites. There are different certificates for different sites.

Prior to macOS v10.13.2 it worked flawlessly. Right after upgrading I attempted to use Safari like I normally do, and while I was banging away on buttons, a window popped up asking me something. In my haste, I just clicked clicked yes, and there starts my issue.

I immediately realized that I had never seen that message before. Even the window it was in was a different gold color than I've seen before. I don't know exactly what it asked me, but I'm assuming that it was asking something about using one of those certificates as a default for accessing sites as a feature new to 10.13.2 as opposed to the previous version where I would have to choose from a list of certificates each time I attempted to access a site.

Now, each time I try to access one of those sites, I get a window that says

  <com.apple.webkit.networking is attempting to authenticate the user>

and asks for a passcode. Regardless of what I enter for the password, after pressing Enter, the window disappears and then reappears shortly thereafter asking the same question. It will do this as many times as I attempt to press Enter, all while not loading the page.

I have tried deleting all of the certs and websites in Keychain and reloading the certs, but nothing changes. I have searched the web and the computer help search box for this com.apple.webkit.networking thing (I don't even know what to call it) but cant find anything helpful.

How can I find the setting within the computer that is defaulting to this one certificate and remove that action so I can go back to choosing the certificate I need?

Have you tried trusting the certificates explicitly? Sometimes, this will help override the macOS system settings.

I also use this site for help: http://www.militarycaccard.us. It has good tips to get CACs and PIV cards working.


I can't see all the events for one day on the El Capitan calendar In the Month view, the El Capitan calendar now includes the first week of the next month.  So the blocks for each day are smaller, and not all events can be shown.  Instead it says "3 more" or whatever.  But there is no way to see the additional events.  Clicking on the day opens a Create New Event default that can't be closed or deleted.  I need to see all my events/appointments when I open the calendar in the Month view. It also doesn't help that national holidays are listed twice.

If you don't see all of your events (instead you see "2 more", etc., then the blocks are too small. Simply enlarge the calendar (by pulling on the right-hand bottom corner), and you will see all of your events.


How do I troubleshoot WiFi networking issues with my iOS 12.2 iPhone 8? Can't load apple.com How do I troubleshoot networking issues with my iPhone 8 plus with iOS 12.2? I can't even load web pages like apple.com or status.twitter.com. The progress bar is stuck at 10%. It seemed to work OK with the previous iOS, but I only had it for a while.

Problem occurs with Podcast, YouTube, Safari.
I don't have any issues with my desktop connected via Ethernet cable.
I turned the phone off and on. It helps for a while.
An app called Ping Lite shows pings to 10.0.0.1, my router/cable modem, has 0% packet loss and about 10ms. Pings to google.com shows 0% packet loss and about 30ms average. Pings to apple.com times out 100%.
An app called Speedtest shows 12-17.8Mbs down and 2.4Mbs up, with ping 14ms.
I kill the app and start it again, but that doesn't seem to help.
When I turn on airplane mode and off again, then it works for a bit. After a while, the WiFi stops. YouTube will say "Not connected to the internet. Tap to retry."
Doesn't seem to help to rest my phone on the router.
My old iPhone 5/iOS 10.3.3 never had these problems.

There are chances where your Wifi router doesn't support the Apple or in the wifi network there can be chances where you need to do make some changes.

But before that try to go to Settings -> General -> Reset and choose Reset Network Settings.

You’ll have to reconnect to all your Wi-Fi networks and enter their passwords again, so make sure you know the important ones before you begin. Try reconnecting to your wireless router after your iPhone reboots. If it still won’t connect, it’s time to take a look at your wireless router.


.internetconnect Modification My network has a .internetconnect file which allows iDevices to connect to the network. However, they also have a really irritating rule which means we have to passcode our devices to get on, which is the last thing I'd like to do.

I've got the file open in the   or   display, but I'm unclear which one defines the passcode as on - can someone help me out?

It's a work network so I can't easily share the file but there is nothing that obviously defines the passcode as on.

Thanks!

The file can be found here.

Delete the entire passcode policy:

    <dict>
        <key>PayloadDescription</key>
        <string>Configures security-related items.</string>
        <key>PayloadDisplayName</key>
        <string>Passcode Policy</string>
        <key>PayloadIdentifier</key>
        <string>uk.ac.cardiff.insrv.eduroam.iphone3.7.passcodepolicy</string>
        <key>PayloadOrganization</key>
        <string>Cardiff University</string>
        <key>PayloadType</key>
        <string>com.apple.mobiledevice.passwordpolicy</string>
        <key>PayloadUUID</key>
        <string>215E70FE-858E-48A8-9F34-7BD7BEE495C4</string>
        <key>PayloadVersion</key>
        <integer>1</integer>
        <key>allowSimple</key>
        <true/>
        <key>forcePIN</key>
        <true/>
        <key>maxGracePeriod</key>
        <integer>5</integer>
        <key>maxInactivity</key>
        <integer>5</integer>
        <key>minLength</key>
        <integer>4</integer>
        <key>pinHistory</key>
        <integer>0</integer>
    </dict>


Unable to reactivate cancelled MobileMe trial account I tried MobileMe a while back but never subscribed.  I have since used the same Apple ID to enable Find My iPhone and this works fine.  I log in at me.com and get redirected to me.com/find.  However, no matter what I try there doesn't seem to be a way to reactivate a paid-for MobileMe account.  Am I missing something?

The support sites tell me to go to me.com/renew, but if I do this I get redirected to me.com/find.  I've checked https://appleid.apple.com and there doesn't seem to be any option for viewing or upgrading my MobileMe details.

Can anyone help?

That account shouldn't be burned since Apple explicitly allows for renewal of expired trials as part of the normal upgrade process. You will very likely lose your data if it has been expired past 15 days but you shouldn't lose the account if you still know the password and can answer security questions or account history questions if you get to a human for support.

The system is in the middle of a change where they are phasing out physical box with activation codes and moving to all online activations.

If you can't renew it following this link then hop on the Express Lane and ask for help with Mobile Me billing. You should get connected to someone that can look up your account and see why it might be blocked.

I have had success adding these accounts as a sub-account on a family pack as well, but that involves more money or finding a friend to "resuscitate" your account long enough to renew it as a stand-alone account.


Project screencast of a Mac on remote controlled second computer I have 2 Macs (which I'll call A and B) and a video-projector. Mac B is connected to the video-projector. I want to show on the video-projector the screen of Mac A but the video-projector is too far to be connected to Mac A. So I was looking for a way to connect Mac A to Mac B (via Wifi or such, no cables) which gives the information to the video-projector. I want anyway that the files to show and all the commands are given to Mac A because nobody will have the access to Mac B.

So the question is the following, if I use Mac B as a screen for Mac A, is Mac B going to give the information to video-projector?

Are there better ways for doing this? Does it work also with the sound?

I hope the question is clear, thanks a lot.

P.s. If anybody has a good solution that works on Windows or Linux I would be happy too.

If you are happy to have content on the Mac projecting the image, you can use remote access via VNC or ARD. This approach has Mac A acting as a gateway to view and control Mac B.
Virtual Network Computing / VNC
You can use VNC to remotely connect to and control another computer. VNC is free and built into OS X.
VNC has the benefit that you can use two different types of computers. VNC is not specific to OS X. You could have a Linux computer could control a Mac, or a Mac control a Windows computer.
Apple Remote Desktop / ARD
Apple sell a product that builds upon VNC called Apple Remote Desktop. ARD allows you to more fully manage and control a Mac computer across a wired or wireless network.


How to disable Self Control application? I use SelfControl quite frequently for completing homework and such, but at school, while I was away from my keyboard at the white board, my friend thought it would be funny to set the timer to 10 hours.  I am currently using a proxy to ask this question.  Is there any way to disable this useful, but inflexible application?

Have you tried opening Terminal (Applications -> Utilities -> Terminal) and using the commands:

killall SelfControl

or

sudo killall SelfControl

As it is not working try the hosts file:

sudo nano /etc/hosts

And look for something like this

# BEGIN SELFCONTROL BLOCK
127.0.0.1   www.nasa.gov
127.0.0.1   nasa.gov
# END SELFCONTROL BLOCK

delete the entire block and hit CTRL + O to save the file and CTRL + X to exit.
Everything you put at hosts file like:

127.0.0.1 facebook.com
127.0.0.1 nasa.gov
127.0.0.1 stackoverflow.com

Those addresses will be blocked, you will not be able to access them while they are inside the hosts file

To stop and delete SelfControl running as a background process:

sudo su -
cd /Library/PrivilegedHelperTools/
rm org.eyebeam.SelfControl

To delete the firewall rules that have been introduced by SelfControl, read this blog article by Joshua Kehn:

http://joshuakehn.com/2010/10/25/Defeating-SelfControl.html


Where can I find the unicode symbols for Mac functional keys? (Command, Shift, etc.) Is there a list of key-symbols that I could reference?

If you are talking about something like this: &#8984; (the ⌘ key), then you are looking for this chart:
HTML Entity     GLYPH  NAME
&#63743;              Apple
&#8984;         ⌘      Command, Cmd, Clover, (formerly) Apple
&#8963;         ⌃      Control, Ctl, Ctrl
&#8997;         ⌥      Option, Opt, (Windows) Alt
&#8679;         ⇧      Shift
&#8682;         ⇪      Caps lock
&#9167;         ⏏      Eject
&#8617;         ↩      Return, Carriage Return
&#8629; &crarr; ↵      Return, Carriage Return
&#9166;         ⏎      Return, Carriage Return
&#8996;         ⌤      Enter
&#9003;         ⌫      Delete, Backspace
&#8998;         ⌦      Forward Delete
&#9099;         ⎋      Escape, Esc
&#8594; &rarr;  →      Right arrow
&#8592; &larr;  ←      Left arrow
&#8593; &uarr;  ↑      Up arrow
&#8595; &darr;  ↓      Down arrow
&#8670;         ⇞      Page Up, PgUp
&#8671;         ⇟      Page Down, PgDn
&#8598;         ↖      Home
&#8600;         ↘      End
&#8999;         ⌧      Clear
&#8677;         ⇥      Tab, Tab Right, Horizontal Tab
&#8676;         ⇤      Shift Tab, Tab Left, Back-tab
&#9250;         ␢      Space, Blank
&#9251;         ␣      Space, Blank

You also can copy the glyphs directly!


Unable to see my contacts I am unable to see my contacts since few days. It has been working fine since I changed from iphone 6s to iphone 7. However since last two days I do not see any contacts. Can someone please help me to get this back? I have tried to sync my Gmail and icloud but it does not help.

Have you checked your contacts groups? If you click the groups button on the top left you can check which contact groups you want to see (such as google or iCloud contacts). You may have accidentally disabled some.


How to click a focused button via keyboard on mac? For example, when I press "tab" to focus a button(to close something etc) and try to click it by press "return", however I can't.

Press the Space bar. This should "click" the button that currently has focus.

I find the combination Alt+Space act the same too, a "click".


Looking for USB-over-ethernet solution I'm doing development with the Windows phones, but I'd really like to ditch my Windows box.  I have access to a virtual Windows installation in the cloud, but I need to be able to deploy to, and debug on, my phone which is most decidedly not in the cloud.

I'm looking for software which provides virtual USB ports with client/server TCP/IP support, which supports intercommunication with OS X and Windows.  Anyone heard of anything like that?

I've not found anything that supports OS X as a the server, and Windows as the client.  The best solution I can suggest would be Belkins network USB hub or digi's AnyWhereUSB product.

http://www.belkin.com/networkusbhub/ - hardware share to win or os x
http://www.digi.com/products/usb/anywhereusb.jsp#overview - Hardware share to Win
http://www.virtualserialport.com/products/usb-over-network/ - Win/Linux - OS X coming soon
http://communities.vmware.com/thread/77230 - Reviews
http://www.intellidriver.com/products_1.16.html - Win
http://www.usb-over-network.com/usb-over-network.html - Win
http://www.fabulatech.com/ - Win/Linux
http://usbip.sourceforge.net/#about - Linux/Win


Phone data security when plugged in to hotel power supply is it true that only Apple chargers are secure from data theft from your phone through electrical systems such as in a hotel or coffee shop? I was told that you should never use a non-Apple phone or iPad charger because only Apple is proven to keep you secure from information being stolen while you are plugged in to a large non-residential power supply.

Generally no that is not true. However it is possible that bad actors have installed devices in some chargers to do nefarious things. The chances of you actually running across one of these? Probably slim but it depends on what kind of places you try to charge your phone. So no way of telling.

You can, however, protect yourself from such attacks by using a charging only USB/Lightning cable. Finding such cables is left up to your clever use of Google.


How do I unset an IP address set with ifconfig? I recently used ifconfig en1 1.2.3.4 to set the IP address of a network interface (specifically, the wireless card) on a Mac… How can I remove/unset it?

Using the graphical network configuration tool doesn't seem to change (or even be aware of) this address - when I use it to manually set an address, a second address is added to the device.

For example, right now ifconfig shows:

en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:23:xx:xx:xx:xx
    inet 192.168.141.99 netmask 0xffffff00 broadcast 192.168.141.255
    inet 192.168.1.112 netmask 0xffffff00 broadcast 192.168.1.255
    media: autoselect
    status: active

The first address -  141.99 - is the address I manually set. The second address — 1.112 — is the address assigned by my network's DHCP server.

Use delete:

ifconfig en1 delete 192.168.141.99


Why does Chrome prevent my Mac from sleeping? I don't mean browsing the Internet is preventing us from sleeping, that's obvious. I've disabled Safe Sleep to reduce sleep times from 20 seconds to 2, but Chrome doesn't want to play nicely.

Here's the log with Chrome:

15/07/12 1:19:07.975 PM LogMeInGUI[350]: String:WEBSVC|OFFLINE
15/07/12 1:19:13.992 PM WindowServer[75]: Created shield window 0x478 for display 0x04272e80
15/07/12 1:19:13.993 PM WindowServer[75]: device_generate_desktop_screenshot: authw 0x0(0), shield 0x0(0)
15/07/12 1:19:13.000 PM kernel[0]: PM notification timeout (pid 3469, Google Chrome He)
15/07/12 1:19:13.000 PM kernel[0]: PM notification timeout (pid 3474, Google Chrome He)
15/07/12 1:19:14.025 PM WindowServer[75]: device_generate_lock_screen_screenshot: authw 0x0(0), shield 0x0(0)
15/07/12 1:19:14.000 PM kernel[0]: AirPort_Brcm43xx::powerChange: System Sleep
15/07/12 1:19:20.346 PM WindowServer[75]: handle_will_sleep_auth_and_shield_windows: no action for lock state 1
15/07/12 1:19:20.000 PM kernel[0]: Wake reason: EC LID0
15/07/12 1:19:20.000 PM kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
15/07/12 1:19:20.000 PM kernel[0]: AirPort_Brcm43xx::checkInterfacePowerState: Check _pwrOffThreadCall!
15/07/12 1:19:20.000 PM kernel[0]: HID tickle 1 ms
15/07/12 1:19:20.000 PM kernel[0]: Previous Sleep Cause: 5

And without:

15/07/12 1:20:39.514 PM WindowServer[75]: Created shield window 0x48d for display 0x04272e80
15/07/12 1:20:39.514 PM WindowServer[75]: device_generate_desktop_screenshot: authw 0x0(0), shield 0x0(0)
15/07/12 1:20:39.545 PM WindowServer[75]: device_generate_lock_screen_screenshot: authw 0x0(0), shield 0x0(0)
15/07/12 1:20:40.000 PM kernel[0]: AirPort_Brcm43xx::powerChange: System Sleep
15/07/12 1:20:47.351 PM WindowServer[75]: handle_will_sleep_auth_and_shield_windows: no action for lock state 1
15/07/12 1:20:47.000 PM kernel[0]: Wake reason: EC LID0
15/07/12 1:20:47.000 PM kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
15/07/12 1:20:47.000 PM kernel[0]: AirPort_Brcm43xx::checkInterfacePowerState: Check _pwrOffThreadCall!
15/07/12 1:20:47.000 PM kernel[0]: HID tickle 1 ms
15/07/12 1:20:47.000 PM kernel[0]: Previous Sleep Cause: 5

These lines from the Google Chrome Helper are the reason:

15/07/12 1:19:13.000 PM kernel[0]: PM notification timeout (pid 3469, Google Chrome He)
15/07/12 1:19:13.000 PM kernel[0]: PM notification timeout (pid 3474, Google Chrome He)

What does that mean?

This is a relevant question: Why does my MacBook Pro take so long to go to sleep?

Deja vu: http://forums.macrumors.com/showthread.php?t=1112715


Update from OS X Lion 10.7.5 to macOS Mojave 10.14 I have recently got a mid 2012 Macbook Air which I installed Lion on. I am trying to update it to Mojave, but even though it is compatible, when downloading it in the App Store I get this error message:

How can I upgrade my Mac to Mojave? Do I need to upgrade to OS X 10.8 first?

Refer to this macOS upgrade instructions webpage, (currently it refers to macOS Mojave):

macOS - How to Upgrade

  Upgrading from OS X Snow Leopard or Lion

  If you’re running Snow Leopard (10.6.8) or Lion (10.7) and your Mac supports macOS Mojave, you will need to upgrade to El Capitan (10.11) first. Click here for instructions.


My iPhone settings are not showing Siri I have an iPhone SE with iOS 10.3.1. The Settings app does not show the Siri option. I want to enable Hey Siri and I have restrictions disabled.

Here are some screenshots:

Settings View

Inside General Settings

Inside General Settings Scrolled

Inside General Settings bottom

How do I enable Hey Siri?

This works for iOS 11 and earlier (Restrictions were changed in iOS 12):

The easiest way to get Siri back (without doing a Soft Reset or Reset All Settings), do this:

Go to Settings→General→Restrictions
Enable Restrictions; give it a password.
Disallow Siri & Dictation.
Return back to General settings.
Go back to Restrictions, putting in the password.
Allow Siri & Dictation.  Go back to Settings and Siri & Search should now be available.
Disable Restrictions.

This worked on an iPhone 6s Plus on iOS 11.2.5.


Location of services created in Automator Long-time ago i created a service in Automator, which still works.
But i want to change the code and it isn't located in either /Library/Services/ nor ~/Library/Services/ as they are both empty

Have i lost the source code or can i restore it otherwise?

As others have said, services are normally in one of the Library/Services folders (~/Library/Services, /Library/Services, and /System/Library/Services).  If just looking there doesn't turn it up, another option is to spy on what files are being opened when you invoke the service, with something like:

sudo opensnoop -n WorkflowService

... and then running the service, and looking through the results to see if you can spot the relevant file.  If it isn't an Automator-based service, you might have to leave off the -n WorkflowService (although you'll have a lot more irrelevant files to sort through because you'll be seeing every file anything in the entire OS opens).


Applications on macbook pro close waking computer up after 1 hour lunch It's lunch time at work and I put my macbook in screen saver mode by using a hot corner. I return back to wake my computer up, and type in my password to resume work (I have the require password immediately after sleep or screen saver begins option checked.)
I then realise none of my applications are active whatsoever and it looks like a fresh restart has occurred.

I can confirm that: System Preferences > Security >> General >>> Log out after ... minutes of activity is not checked.

This is what my pmset -g look like:

System-wide power settings:
Currently in use:
 standbydelay         10800
 standby              1
 womp                 1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 powernap             1
 gpuswitch            2
 networkoversleep     0
 disksleep            0
 sleep                1
 autopoweroffdelay    28800
 hibernatemode        3
 autopoweroff         1
 ttyskeepawake        1
 displaysleep         10
 tcpkeepalive         1
 acwake               0
 lidwake              1

Can someone please help me fix this unwanted applications closing after my macbook pro goes to sleep when I return from lunch?

Additional information:
I can confirm that I also have two external monitors connected to my laptop via mini display ports, as well as an Anker usb host.

I have macOS High Sierra installed version: 10.13.4 (17E199)

I have a macbook pro Retina, 15 inch Mid 2015.

Not in clamshell mode.

Not sure what's going on with your settings, but I think you will find that caffeinate can prevent this behavior. At a terminal screen, type man caffeinate to learn about the utility. An option that may work for you is this:

  caffeinate -s

Alternatively, if you have an application you wish to run while you are away from your Mac, you can use this form:

  caffeinate -w PID &

where PID is the process ID of the app that's running (available via Activity Monitor, or ps -la), and & for running in background.


How to reset spaces assignments after upgrading to Lion? On Snow Leopard I used to have 9 spaces organised just for my needs. Unfortunately new Mission Control approach broke it completely and I'm still feeling a bit lost with the new horizontal approach.

Anyway, it seemed that the the settings for number of spaces and apps assignments have been kept after the upgrade. I'd like to reset this to the default state. Reducing number of spaces is quite trivial, but what about app assignments?

Is the preferences pane for this long gone now?

I was just looking into this myself. The settings are still accessible via the Dock, when you have more than one space set up:

As far as removing these associations entirely, try removing ~/Library/Preferences/com.apple.spaces.plist.


How does an iOS device keep time when it is out of power? My iPhone is always running out of battery.  However, when I power it back up, the time is still in perfect synchronization.  This begs the question: "How does it keep time when it is out of battery?"

There must be some sort of 'ticking' mechanism in the phone while it is out of battery and, thus, not entirely out of battery.

The iPhone is not completely depleted when the battery "dies."  If you'll notice, when you try to turn it on when the battery is dead, the screen will come on briefly to tell you the battery is dead -- i.e., there is still some energy left in the battery.  The clock continues to run off of the battery, and takes such a small amount of energy that Apple decided to keep the clock going.

Eventually, the battery will completely die (probably after many days or weeks), and the clock will eventually stop keeping time.  As Ian C. mentioned, the clock will synchronize when the phone does get plugged in and turned on again, if a network is available.


Change Finder folder view for only one folder? Is it possible to, for example, set icon view to be the view for just one specific folder in Finder? It seems as though if I set a folder to icon view (currently the default is list view), opening folders inside that folder cause the opened folder to change to icon view as well. However, I don't want this to happen – I only want to affect the folder that I changed it for.

Go into the folder and choose the view you want the folder to display as. Press cmd+J, then check the "Always open in [type] view" box at the top of the small window and make sure that the "Browse in [type] view" option is unchecked. Close that window. Now the Finder should switch the view to the one you chose whenever you enter that folder.


MacBook Pro won’t connect to the Internet I have been using my MacBook Pro for about 5 years with zero problems (running OS X El Capitan 10.11.6).

I was using my iPhone XR as a Wi-Fi hotspot (as I’ve done millions of times before) two days ago and when I was done, I shut down my machine while it was still connected to the Wi-Fi hotspot from my iPhone (this is the only thing that I can think of that was out of the ordinary, as I always disconnect/turn off the hotspot off before shutting down).

Yesterday, I tried to connect to a neighbour’s Wi-Fi router (which I’ve connected to a million times before as it usually remembers the password), but it wouldn’t connect and it kept telling me the password was incorrect even though I was looking right at the router and typing the same password I always do. Eventually I gave up and decided my neighbour’s Wi-Fi was the problem.

Today I’ve turned on my laptop and it connected to the Wi-Fi in my apartment fine at first (as per usual) but then I realised that my browser wasn’t allowing me to access websites other than Google/Gmail, Facebook and YouTube. I was trying to log onto my utilities company website (as I’ve done a hundred times before) and it kept returning an error saying  the website could not be reached (even though it exists because I can access it on my phone using my apartment Wi-Fi which clearly works fine). I cleared my cache and deleted all known Wi-Fi networks and restarted my machine.

Now I can’t connect to my own Wi-Fi network (that I’ve never had a problem with in the two years I’ve had it) - it won’t recognise my password. I tried connecting to my iPhone’s Wi-Fi hotspot (as I did 2 days ago as normal) and it won’t recognise that password which I’m looking right at on my phone.

I have no clue what’s going on or how to fix it? My laptop is rejecting all Wi-Fi connections ever since that day I shut it down while still connected to my hotspot (I did nothing else differently since it was last working fine).

Does this sound like something anyone else has figured out in the past?? I’m a super basic Mac user, the built in diagnostics keep telling me I’m not connected to the Internet (i.e., useless), and I have no idea where to even start looking for solutions other than hoping to click my needle in a haystack solution out of the millions of hits on Google.

There can be many reasons for this and I am not aware of any single silver-bullet.  You'll need to try several things to chip away at the issue until you resolve it.

You can boot a mac into safe-mode to test (how you get there depends on the version of macOS).

See:  https://support.apple.com/en-us/HT201262

You can also create a new (temporary) user account, then log into that account to see if it has the same issues as your primary account.  If it does not have the same issues, then it usually indicates that something in your account may be causing the problem.  This could be a corrupt .plist file.  It could be something that starts up at login (System Preferences -> User & Groups -> (select your user) -> Login Items.  It could also be something that launches via launchctl (check the contents of ~/Library/LaunchDaemons).

You may need to do a bit of network sleuthing ... do you get an IP address (and what is it).  Home routers will generally issue an IP address in one of the RFC-1918 blocks (see: https://tools.ietf.org/html/rfc1918).  These typically begin with 192.168.x.x or 10.x.x.x but could include 172.16.x.x through 172.31.x.x (although I have never seen a home router use that 172 range).

If the address begins with 169.254.x.x then this is a self-assigned IP (meaning the DHCP server did not issue an address.)

From here (assuming you have a valid IP address) you would want to check the value of /etc/resolv.conf (which lists the DNS servers your mac will try to use to resolve servers) and also check your default router using the command (in Terminal) netstat -rf inet (look for the row that begins "default").  (netstat -rf inet will only look for IPv4 addresses.  IPv6 is excluded.)

Make sure you can ping the IP address of the default router.


Entering title on a photo or a series of photos on IOS Until Google or Adobe come up with something, finding personal photos is currently like finding a needle in a haystack.

To overcome this issue, I'm thinking of starting a new regime of writing a title/short description on all / a series of photo that I just took on the iPhone. The ideal use case would be:

upon taking a photo (not a separate workflow), I will be able to enter a short snippet before posting photos on instagram
instead of posting the title on a social network, I'd like it to be written to the EXIF of the photo file so that it's still intact wherever it goes (iPhoto, Lightroom, etc.).

Is there a photo app that allows me to do this? or do I need to use a separate EXIF editor to do this (which will be annoying really)

Ron

You might be interested in the 500px app.

Here is information from them how to modify the EXIF in photos.

  If your photo has EXIF data included in the file, it should be
  automatically added when you upload it. If this does not work for you,
  please email help@500px.com and include the photo that you're having
  troubles with.

  If your photo does not include EXIF data or you wish to manually edit
  it, follow these directions:

  Login to 500px.com
  Go to your Organizer.
  Hover over the thumbnail of the photo you’d like to adjust and press Edit.
  On the right hand side of the edit screen, there are fields for the Meta/EXIF data. These fields are automatically filled if the
  information is available.
  Edit this data, and then press Save at the bottom of the page.

  Step by step visual guide:


mac crashed while installing mountain lion - cable disconnect I downloaded mountain lion on my mbp which is run by snow leopard atm. I started to install it and waited for the installation to end. When it came down to the last 12-11 minutes, I ended my distraction and pulled the computer a bit in my direction to keep track of the status bar. With this movement I managed to rip off the charging cable! (I mean, I completely broke it) The monitor turned black instantly and the computer was shut down. When I started it again, the installation wizard shows up again and asks me to press the continue button. However it shows no reaction to any of the buttons available and thus I cannot continue installing.

I thought ok, lets install the old snow leopard again and try booting from CD, but by doing that, the good old mac os greyscreen appears after a few seconds.

That means:
I can not continue installing and I can not install snow leopard again either. I am simply not able to finish booting at all.

Any suggestions how to proceed?

Try to hold down command+R, this should boot the Mac from your recovery partition. You should be able to reinstall from there.


SSD lifetime, hibernation, and mobile TM I've recently gotten a 2012 MacBook Air 13". It is wonderful, however, I've been stressing about the life of the SSD. I understand that Apple probably would not sell an SSD machine with defaults that would ruin the SSD; however, I have some concerns.

Like all Mac laptops, by default it uses a hybrid sleep mode, so every time I close it, it writes up to 8 GB to the SSD. This is many, many times a day -- I'm in college, and I am always going to various places on campus, and the laptop almost always comes with me.

In addition, the default Time Machine configuration stores snapshots locally, and eventually, is allowed to fill 80% of the drive.

Both of these seem somewhat problematic to me -- sleeping and waking 10 times a day might write around 25% of the SSD capacity a day, and if I do let the mobile snapshots take up 80% of the drive, the static data on the drive will increase write amplification due to the SSD's wear leveling.

Am I worrying over nothing, or do I have a legitimate concern? If yes for the latter, what can I do to improve the life of the SSD?

Since OS X has TRIM support, the wear from writing 8 GB of sleepimage data would be spread out evenly across the drive by the controller in the SSD. Assuming 10,000 write cycles per cell and your estimate of 25% of drive capacity per day, you will be fine for 40,000 days (110 years) if you don't do anything else with the SSD.

That number could be completely wrong due to write amplification, but if the data is actually being written sequentially it shouldn't be a problem.


How to rescue my lost APFS partitions My Disk is 500 GB, and APFS Physical Storage and AppleAPFSMedia are 300GB, can't run First Aid on both.

Currently I can login to macOS High Serria(199GB partition) on which I post this.

There was a system(macOS high serria) and a lot data on that 300GB partition, I can't just erase it, How can I rescue that partition ?

details as below:

.
.
.
.

$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                     SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         *500.3 GB   disk0
   1:                        EFI EFI                      209.7 MB   disk0s1
   2:                 Apple_APFS Container disk2          301.0 GB   disk0s2
   3:                 Apple_APFS Container disk1          199.0 GB   disk0s3

/dev/disk1 (synthesized):
   #:                       TYPE NAME                     SIZE       IDENTIFIER
   0:      APFS Container Scheme -                       +199.0 GB   disk1
                                 Physical Store disk0s3
   1:                APFS Volume High Sierra              51.8 GB    disk1s1
   2:                APFS Volume Preboot                  42.1 MB    disk1s2
   3:                APFS Volume Recovery                 1.0 GB     disk1s3
   4:                APFS Volume VM                       4.3 GB     disk1s4

/dev/disk2 (synthesized):
   #:                       TYPE NAME                     SIZE       IDENTIFIER
   0:      APFS Container Scheme -                       +ERROR      disk2
                                 Physical Store disk0s2

Thanks !

Run Disk Utility from Recovery Mode
On Reboot, press Cmd-R
Open Disk Utility.
Select your partition one by one and hit repair a couple of times.

If you have another Mac, you can mount your MacBook partition using Target Disk Mode. Connect both Macs with Thunderbolt/USB-C cable. Reboot your MacBook, then immediately press and hold T while it starts up. Hopefully your APFS partition will show up. Note: Both Macs should be using APFS volume.


Difference between an https proxy and a VPN as far as I know, both proxy and VPN forwards traffic under their IP-Adresses and not yours. Also, a vpn is more secure than a proxy, because in a vpn the connection
is end-to-end secured. Using a proxy, the message can by easily read.

But now, if I use the https protocol and a proxy, it should have the same security level as using a vpn, right? Because even if I log the traffic on the proxy server, I cannot read the messages, because they are encrypted.

So my final question:
Why shouldn't I use a proxy with https (which is cheaper or free) rather than using an expensive vpn solution?

King regards and thank you for all your inputs!

In your example it is not possible to say whether the HTTPS protocol + Proxy has the same security level as a VPN. It really depends a lot on the specifics - i.e. which VPN software, what settings, etc.

However, in general you could say that it is possible to configure an SSL/TLS encrypted proxy and a VPN software to do the same kind of encryption with the same key sizes etc. so that they are "on level".

When you visit a web site that is by itself encrypted (i.e. using SSL/TLS) many encrypted proxies works by essentially being a "man in the middle". Often this means that you install the proxy server's certificate as a trusted certificate in your operating system or browser, and all traffic from the web site is really decrypted on the proxy server and then re-encrypted for transmission to the client. This allows the operator of the proxy server to read all traffic in clear. Obviously this is a negative.

However some proxy servers work by essentially just passing the raw date to and from the same way a VPN would do - thus keeping the SSL/TLS encrypted connection to the website all the way from browser to web site.

So it depends a lot on the actual chosen proxy server software, its configuration, the circumstances, etc.

Your other question about whether to use free/cheap proxy or expensive VPN is also impossible to answer without knowing the specific. A free system might be really good, and an expensive system might be rubbish. It could also be the other way around.

In general the main difference is that it is easier to configure VPN to handle all traffic coming out from your PC - no matter the application or service. With proxy servers it is really on an application to application basis - so you risk "leaking" information that is not sent via the proxy server.


Connecting to the Internet with an iPad or iPod Touch, via public wifi I was thrilled when the cafe at our local sport center started to provide free wifi. Everything was great for awhile, but a few weeks ago something changed, and now my devices cannot browse or check email etc. Despite being able to detect the wifi network with full bars, my devices tell me they cannot connect to the Internet. The staff do not think they have changed anything. What could be happening, or what could be different? Is there anything I can do about it?

When your iOS device doesn't get an IP address from the router that will route packets to web sites like www.apple.com or some of the other under the hood servers like the iCloud servers and APN (Apple Push Notification) servers it will let you know it's not connected to the internet.

In this case, it's almost always a problem with the wireless router or the internet service in the shop. Even if other people are surfing, the router could be out of new addresses and need a reboot. If no-one in the shop has access, then the causes could be lots of other things and not a temporary outage of DHCP addresses.


Ridiculously slow MacBook Pro 15'' 2011 with low battery and El Capitan Problem solved: see "Update 2" section.

I have a MacBook Pro 15'', A1286, Early 2011 which was running OS X Lion and became extremely slow few weeks after an upgrade to El Capitan.
The upgrade itself took very long. After the upgrade, the laptop was running smoothly during about 1 week.

Then, performance suddenly dropped and all menus now take a while to open.
The mouse cursor is very jerky. The one of the touchpad is also jerky, altough to a slightly less extent. Practically, it is impossible to use the laptop.

The battery is no longer charging and the time (date/hour) is no longer remembered, so that I have to reset it after each start of the OS.

(skip)
Specifications : Processor i7 @ 2,3 GHz with 4 GB RAM
(skip)

Update 1

Upgraded to 8 GB RAM.
Shrinked OS partition.
Cloned to SSD.
Checked SMART values.
Checked file system.

Problem not solved.

(skip)

Update 2

Short version:

The culprit is the low battery
After thorough tests, I came to the conclusion that the jerky cursor movements and the MacBook coming slower and slower was caused by the battery with "replace now" status.

Long version or how the problem has been identified.

I first followed this procedure in the comments of a video showing how to fix battery issue on a MacBook:

Power off computer
Remove battery
Disconnect magsafe
Connect magsafe
Connect batte
Power on

This had the positive effect that afterwards, the date/time were remembered, although the battery was in very poor ("replace now") condition.

Then, I reset SMC and NVRAM, following the procedures linked by users Nimesh Neema and Amey. The problem remained. The MacBook was fast during the first seconds and then went slower and slower. This happened even when using softwares from Apple only and not from third-parties.

Lastly, I tested the MacBook with the battery from a 13'' inch (A1278) MacBook Pro. Both batteries operates at the same voltage (although thus of the 15'' has higher capacity). The battery connector is not a the same location, but is same, so that I could insert it and hold the battery with my hand.
This battery was in better condition (with "must be checked" status, but didn't had yet the "replace now" status. This totally solved the problem. The MacBook remained fast and the cursor movements, from the touchpad or mouse were still smooth after several minutes.

Conclusion: If the battery has the "replace now" status, some artifacts totally paralyze the MacBook Pro, although it appears working correctly during the first seconds. This is a purely hardware problem and system reinstall or upgrade is NOT necessary.

Perform Apple Hardware Test to check for any hardware failures. To do so, power up your Mac, then immediately press and hold the D key. Keep holding the key until you see the Apple Hardware Test icon. Thereafter follow the steps as mentioned in the support article, How to use Apple Hardware Test on your Mac.
Reset SMC and NVRAM.
If the hardware test passes, try reinstalling OS X El Capitan. If the problem persists, fallback to Mac OS X Lion.


Mac server MDM profile manager enrollment problem I use mac os server to active the Profile Manager and Open Directory.
And I want to enroll our devices to the server

Why My ipad and iphone always get the error:

Profile Installation Failed
The SCEP server configuration is not supported!

[
If I use the server to enroll

Profile installation failed.
Could not be installed due to an unexpected error.
<NSOSStatusErrorDomain:-1096>

Could anyone  help me !  Thank you very much !

I just remove the pow app as following steps:

https://stackoverflow.com/questions/30229773/how-to-uninstall-pow-node-on-mac-osx

 curl get.pow.cx/uninstall.sh | sh

Now It works without any problem.


Is there a problem with GeForce 750M performance on gaming? I play games on my Mid-2014 retina MBP, which has both Iris Pro and GeForce 750M 2GB. One of the games that I play (League of Legends, which has a 'beta' OS X client, but I highly doubt that this is the reason) sometimes runs slow on graphics-intensive scenes. Today, I forgot my GPU on 'Integrated only' (I use gfxCardStatus) and entered the game. Interestingly, the game almost never slowed down at all, even on graphics intensive scenes, running smoothly on 60FPS. I've upped the settings and it was still running smoothly at settings which severely affected GT750M's performance. I've doubled checked the active GPU and yes it is Intel Iris Pro. How can this happen? How can integrated graphics perform better than a GT750M on gaming? I know Iris Pro is a great 'integrated' card (compared to other integrated cards), but I highly doubt that it does better than 750M. If it really did, then why would it co-exist with 750M anyway?

Why would this be happening?

Intel is making big improvements in the Integrated Graphics performances.

They are actually taking a portion of the Nvida market in doing that.

To Intel, the Nvidia is just a parasite, so if they can do better with the iGPU performance, ppl wont need it.

Intel will be introducing next gen CPU with some powerful iGPU in 2015.

There is no official benchmarking for the Iris Pro vs G750 but as usual the performance is highly game type dependent.

As you have discovered for the League of Legends it looks like the Iris is actually doing better then G750.

There are some games where the G750 is doing better, like Startcraf2 and Heaven.

see this report for more.


Is there a way to sync music between a PowerPC Mac and an iOS 7 device? My friend has a G5 running 10.5 Leopard (the last supported version of OS X on PowerPC). However, after updating to iOS 7, syncing is no longer supported, as iOS 7 requires iTunes 11, which in turn requires 10.6 Snow Leopard.

Is there any way to get music sync functionality back on a PowerPC Mac without reverting to iOS 6, whether through some version of iTunes, or a 3rd-party tool, and without jailbreaking?

There are many apps that can move data on and off an iDevice, albeit not in the same "sync" model that iTunes uses. Try the trial of iExplorer, for example.


How do the audio controls work on "The Daily"? The Daily, Rupert Murdoch's new iPad-only app, has a narration feature where a professional actor reads the stories.

I can't for the life of me figure out how it works. There is a headphones icon that starts it, and then you get a fast-forward arrow and a stop square. But the fast forward arrow just seems to activate the carousel, not jump to the next story. And the story you get when you press play seems random.

And I think there's only narration for some of the stories, but I'm not sure, since I can't find a controlled way to navigate.

Can anyone help to explain how this feature works in detail, so I'll stop feeling like my mom and cursing at the "broken machine"?

The part starting at about 3:30 of this YouTube video might help.


How to auto-indent code in Coda 2? I just installed Coda 2 but can't find how to auto-format / auto-indent the code.
In Dreamweaver there is this useful function called "Apply Source Formatting" which basically removes white space and auto indents the code, I can't find how to do this in Coda.
The only thing I found is a plugin called "White Out", but it doesn't seem to work.
Thanks!

Select all text or code of your document and press CMD + Shift + F12


How do I enable Intel Virtualization in a MacBook Pro? I tried booting into EFI by holding ⌥ Option⌘ CommandFO
My end goal is to enable nested VT-x in VirtualBox.

It's not mentioned which MacBook Pro is being used, but it's a safe bet that the CPU is capable of VT-x but it may be disabled.  I've checked a 2012 iMac, a 2017 MacBook Pro and a 2014 Mac mini and all had VT-x supported and enabled.
Check if supported:
To check if your Mac supports VT-X, issue the following command:
% sysctl -a | grep machdep.cpu.features

You should get output similar to below.  If you see VMX, your CPU is capable of VT-x.
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA
CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ
DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC POPCNT
AES PCID XSAVE OSXSAVE TSCTMR AVX1.0 RDRAND F16C

Supported but Disabled/Locked
Apple provides a support document, If VT-x virtualization technology is locked or disabled on your Mac to address this issue.  Basically, you need to ensure your software is updated to latest version.
VT-x is enabled by default, but there's no "setting" or command that can be issued to turn it on.  Try resetting the NVRAM by holding  ⌘ Command⌥ OptionPR while booting.
You can issue the command nvram -xp to dump the NVRAM contents.  If you parse through it, you won't find any variable related to virtualization.
Possible Solutions
I've read (can't remember source) that installing either Parallels or VMware Fusion could enable locked virtualization features.  There's a community version of Fusion and a Trial of Parallels.  You could give either/both a shot - if it doesn't work, no harm no foul.
In the end, if it's not enabled, it would be best to file a bug report with Apple at https://www.apple.com/feedback/macbook.html because this feature should be enabled by default.