Can sudo's annoying message be removed from Mountain Lion 10.8.0?

Do you have any other DYLD_ variables set? Run set with no parameters to see all variables and unset anything that comes up with that prefix.

Note that it looks like this is really just a workaround for a bug, those messages shouldn't be printed unless you have DYLD_PRINT_WARNINGS enabled.

Also, the update to 10.8.1 seems to have patched this annoyance.


How to stop maps, photos, and ibooks from loading in dock on startup

This should solve your problem: https://jamfnation.jamfsoftware.com/discussion.html?id=12266

You have to edit the following file: /System/Library/CoreServices/Dock.app/Contents/Resources/com.apple.dockfixup.plist

Right below <key>add-app</key>, you can remove all the <dict>...</dict> related to the apps you don't want to appear in the Dock on startup.

[EDIT]
It looks like this file cannot be edited anymore with El Capitan due to the System Integrity Protection (SIP). See this discussion about it.


Mac OS X Recovery Mode - Headless Access?

Turn the problem upside down. Boot the laptop in target disk mode and use another (working) Mac to access the drive over firewire or thunderbolt. It will behave just like an external drive.


Removing Internet Account without losing old messages in Messages App

Here are the instructions for Messages and Gmail.

Backing up Gmail / Any or All of your Google Products Data

Google Takeout: The simplest of the backup snapshot offerings is the one provided by Google: Google Takeout. From your Google settings, you can export just about all of your Google data, across all your Google applications. Google Takeout dumps the data either into your Google Drive or lets you download a pile of ZIP files. It's easy, comprehensive, and free.

Create an archive with your data from any or all of your Google products.  https://takeout.google.com/settings/takeout

Locate your Messages archive

In the Messages app, go to Messages > Preferences.
Check the "Save history when conversations are closed" box.
In the Finder, head to the Go menu and select Go to Folder.

Type in ~/Library/Messages

You should see two folders: Archive and Attachments along with a file database labeled "chat.db".

Archive holds all your past messages from conversations that you've closed or saved; Attachments holds all the images and video from those conversations. The chat.db holds all the information from your active message history.

Archived conversations are labeled pretty clearly: They're all in folders labeled by date closed, and individual files give you the name of the participant along with the date and time. Open one, and you'll see the conversation pop up in Messages.

You can't edit, search, or export conversations to a different format, but you can copy and paste sentences and load it through the Messages App while having an archive.


AppleScript for locking the screen in Catalina

You can use:

tell application "System Events" to keystroke "q" using {control down, command down}

You could also use the following instead:

tell application "System Events"
    set appName to (name of every application process whose frontmost is true and visible is true) as string
    click menu item "Lock Screen" of menu 1 of menu bar item "Apple" of menu bar 1 of application process appName
end tell

      Hint: Mouse over and horizontal/vertical scroll to see full code.

However, the first mentioned solution is more direct.


How do I sync my photo's from my iPhone to Google Drive?

I have solved it, this is the solution closest to my needs.
On my and my wife's iPhone, I have set the photos to be stored in iCloud.
On my Mac, I open the Photos app and I have it set to load the iCloud Photos.
Now I can drag the photos into the correct folders of Google Drive which will be synchronized via drive sync.


Anytime you make a change to a file Time Machine makes a new copy of the file:

John Siracusa's Mac OS X 10.5 Leopard: the Ars Technica review/Time Machine:

  It's unfortunate that Time Machine's cleverness does not extend just a bit further. The smallest unit of data that Time Machine will backup is an individual file. That means that if you change one byte in a 10GB file, that entire 10GB file needs to be copied to the backup volume. Hard link can't help you here. There's no way to make a hard link to "9.99999GB of the old data, plus this one byte of new data."

The beauty of Time Machine is that it automatically deletes the older copies of files from the backup when it needs to recover the space.


How to search for .zip files instead of all compressed files?

Open a new finder window and type "zip" in the search. Select "Zip archive" in "kinds".

You can also just type out kind:.zip and press enter and you'll get the appropriate filter:

Note - omitting the . after the : results in many compressed files and not just those with .zip extension or literal conformance to that specification.


The sandbox container directories contain symlinks to files the application is allowed read and write access to. For example ~/Library/Containers/com.apple.QuickTimePlayerX/Data/Downloads/ is a symlink to ~/Downloads/.

You'll get the sandboxed directory path when you open the file and QuickTime is already open and the "normal" path when you open the file and QuickTime is not already open yet.


4k vs 5k Monitor as "Retina" on older MacPro

In case anyone comes across this question - here's what I made out of it. Given that the graphics card might get to its limits with 4k anyway, I chose to give the Eizo 3237 a try with the 4k resolution at 140 DPI. Running on native resolution is small but crisp, as expected.

Using HiDPI modes and scaling up works really nice as long as you don't hit your nose onto the screen.

Quality-wise this thing is an instant buy - although I might be biased as Eizo monitors have never failed to make me happy in the past (had a couple of good other ones as well - though I'd rank them a bit below in terms of perceived quality).


What does repeating beeps mean during charging?

No, its not notifications beeping.
I have a dropped iPhone 4S here, that has a cracked screen.
Plugging it into a charger results in a constant beeping every 6 seconds exactly with no display. I have no idea if it's because the display/touchscreen is damaged or if the phone has crashed and is displaying a blank screen as i have no idea of the extent of the damage.
I'd say it's related to a serious hardware failure that the beeping occurs.
It's not a notification issue as the phone doesn't have time to boot up iOS before the beeping starts. Beeps way too soon and notifications wouldn't roll in regular as 6 seconds exactly for over an hour.


How to Get a Similar color as LightSteelBlue3 in El Capitan?

I assume you are referring to this answer. Just install xcolor (and any other missing packages) via TeX Live Utility (or manually) and run latex as usual.


How to get the content of a Resource Fork?

The icon encoded within the resource fork is not in a format PHP's imagecreatefromstring can understand.

PHP's imagecreatefromstring requires:

JPEG
PNG
GIF
WBMP
GD2

Use sips

Investigate the Mac OS X command sips for working with icons on the command line. See Manipulate Mac OS X file icons from Automator or command-line for examples.

DeRez

The DeRez command will output the raw resource fork data. The manual for DeRez provides options for filtering the output data and requesting specific encoding; be aware that the encoding options are limited to how the hexadecimal is escaped. Rather than allowing for graphic format conversion.


I can no longer see the url from where I have downloaded a file in Get Info, can I get that back?

I'd start by rebuilding the Spotlight Index on your Mac.

  Choose Apple menu () > System Preferences, then click Spotlight.
  Click the Privacy tab.
  Drag the folder or disk that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the
  Add (+) button and select the folder or disk to add.

  To add an item to the Privacy tab, you must have ownership
  permissions for that item. To learn about permissions, choose Help
  from the Finder menu bar, then search for “permissions.”
  From the same list of locations, select the folder or disk that you just added. Then click the Remove (–) button to remove it from the
  list.
  Quit System Preferences. Spotlight will reindex the contents of the folder or disk.

From: How to rebuild the Spotlight index on your Mac


Macbook pro evolution between 2011 and 2013 models

I would download the Mactracker app (runs on Mac and/or iOS) to compare the specs.  I've compared them briefly and those two models seem pretty similar to me, retina graphics aside.  I'm happily using a mid 2009 MacBook Pro for iOS development, although I've upgraded it with 8GB of RAM and an SSD.


Can I stop music on MacBook Pro with TouchBar directly?

You can choose to always show your media keys on the Touch Bar as follows:

Go to Apple > System Preferences...
Click on the Keyboard preference pane
Select the Keyboard tab
From the “Touch Bar shows” drop-down menu choose the option “F1, F2, etc. keys”
From the “Press Fn key to” drop-down menu choose the option “Show Control Strip”
Untick the box “Use F1, F2, etc. keys as standard function keys on external keyboards”

Now your Touch Bar should always show your media control keys. When you want to see the F1 - F12 keys just hold down the fn key.


it sounds like you never get a logon screen, correct? If so there is likely a problem with the disk, Mac OS or something installed.

First thing to do is to boot up holding the Shift key. When you see the Apple logo you can release it. Now wait for it to boot fully. Safe Mode takes quite a bit longer as it also does some thorough disk checking so be patient.

If you can log in, then do so and start turning off startup items as something that was installed is interfering with the boot process.

If it still does not boot, reboot and hold CommandR to get into recovery mode. run disk utility and reapir the disk, paying attention to any messages that Disk Utility gives you. If it can't repair the disk you can do one of 3 things: erase the HD (losing all files and settings) and reinstall Mac OS. Reinstall Mac OS right over top of what you already have (if it will let you without reformatting the HD) or get another disk repair utility like DiskWarrior and hope that can fix the issue.

If it can repair the disk try booting again. If it finds no problems the Mac OS is likely hosed and needs to be re-installed.


You can access them from the bezel window (shown by control-option-V by default) by holding the right arrow key.


Why I can still access Internet after I set the the HTTP proxy to a unknow address?

The fallback behavior when the proxy server is unreachable depends on which browser you're using.
For example Chrome caches information about proxy servers, so that if it detects the proxy server is unavailable - it remembers that for up to 5 minutes - and bypasses it during that time.
Some browsers will fallback to a direct connection to the web site host when the proxy server is unavailable, others only do so if you have included direct connection in the proxy list or otherwise configured the browser to do so. How to do that exactly depends on the specific browser you're using.
The linked video shows using Chrome in 2015. In older versions of Chrome, it would always fall back to a direct connection to the web site host if all proxy servers are unavailable. That behavior was changed, and it is not how modern Chrome versions work by default.


The last few times I had issues like you describe, I emptied trash and rebooted. I found that certain video apps left a cache that was gone after rebooting.


It's true to a certain extent.

$HOME is an expression for expansion of the environment variable HOME
~ (tilde) is a separate shell expansion component
see footnote

When used as a command argument and in separation from other strings, $HOME and ~ are usually equivalent.

But there are cases where they differ:

if the string containing either is quoted, for example:

# echo "My home directory is $HOME"
My home directory is /Users/techraf
# echo "My home directory is ~"
My home directory is ~

if they are concatenated to a string, for example:

dd if=${HOME}/source_file of=${HOME}/destination_file will work.

Shell will pass arguments if=/Users/techraf/source_file and of=/Users/techraf/destination_file containing a valid path to the dd command.
dd if=~/source_file of=~/destination_file won't work

Shell will pass arguments if=~/source_file and of=~/destination_file to the dd command and it will report an error as it does not interpret ~.

footnote:

In fact ~ is by default replaced with the value of HOME, but if HOME is empty, it is resolved to a home directory:

# echo $HOME
/Users/techraf
# export HOME=/dummy
# echo $HOME
/dummy
# echo ~
/dummy

# unset HOME
# echo $HOME

# echo ~
/Users/techraf

From man bash:

  Tilde Expansion

  If a word begins with an unquoted tilde character (`~'), all of the characters preceding the first unquoted slash (or all  characters,  if  there  is  no unquoted  slash)  are  considered a tilde-prefix.  If none of the characters in the tilde-prefix are quoted, the characters in the tilde-prefix following the tilde are treated as a possible login name.  If this login name is the null string, the tilde is replaced with the value of the shell parameter HOME.

  If  HOME  is  unset,  the  home  directory of the user executing the shell is substituted instead.  Otherwise, the tilde-prefix is replaced with the home directory associated with the specified login name.


The iPhone 4s, and the most recent iPhone 4 (Verizon) don't use a discrete GPS chip, as it's integrated into the baseband (Qualcomm MDM 6600). I believe the GPS chip in the iPhone 3GS used the Hammerhead II PMB 2540, or 2525 GPS chip. By integrating the GPS with the baseband it allows a smaller phone, less energy consumption, and cost less to produce.

iPhone 4s GPS [Qualcomm MDM 6600 Gobi]

The main improvements should be:

Integration with Siri
Updated antenna switching (spatial diversity)
Improved TTFF and TTSF (fixes)
Longer battery life (more energy efficient)


iPhone graph of - Average sleep per week or month

Autosleep works for me really well the last 6 months.

AutoSleep Tracker for Watch by Tantsissa https://itunes.apple.com/us/app/autosleep-tracker-for-watch/id1164801111?mt=8

I’m much more inclined to get the best data wearing my watch at night, but it does work well if you use charging your phone as proxy for when you lie down and when you get up. Of course you can manually start and stop your rest periods, but for me that is the last hint I want to do before and after resting.


You can use PlistBuddy and defaults:

/usr/libexec/PlistBuddy -c 'Delete NSServicesStatus:"(null) - test2 - runWorkflowAsService"' ~/Library/Preferences/pbs.plist 2>/dev/null;defaults write pbs NSServicesStatus -dict-add '"(null) - test2 - runWorkflowAsService"' '{key_equivalent = "^~@2";}'

The PlistBuddy command is not needed if there is not an existing entry for the service. Replace test2 with the name of the service. Quit and reopen applications to apply the changes.

^~@2 is control-option-command-2. See https://web.archive.org/web/20161220060333/http://osxnotes.net/keybindings.html.


Why does my iPhoto masters file taking up a lot of storage?

The Masters Folder also contains some Pictures you already deleted. So you can empty the Trash (also a Comment to you Question).

This will clean up some storage. I had the problem that iPhoto created some duplicats, because i importet form my old Mac the iPhotoLib. If the Images on have other names but if the Data is the same you can find them with Tools like Gemini.

I hope this will solve your Problems ;)


MacBook not recognizing Wireless N USB Adapter

It might be an alteration in the USB ports. Try checking them out first.


iOS: How to set language of app independent of iphone/ipad language

Starting with iOS 13, there is now a way to set an individual language for each app. In the Apple Settings app, open the settings of the specific app, and select the language under "Preferred Language". You can select from the languages that the app supports.


iWork 08 no longer updating in Mavericks

iWork '08 was released for OS 10.4 originally from 2007. Whilst it would have free upgrades within its cycle e.g. 8.1, .2, .3 effectively this does not mean you get a free upgrade to a significantly new version 3 years later e.g. iWork 09.

In your case, its likely there was a temporary offer for a free upgrade initially to encourage customers to port to the Apple Store (for software download) rather than traditional disc installation. After a period Apple withdraw software these upgrades.

In terms of your re-install, have you signed in with the same Apple Store account used previously? If you haven't, it wont recognise your previous status and upgrades may be un-available. This is true of the 10.8 OS update - if it is on your Apple Store account as installed previously, you can download it again, if you come into the Store clean, you wont even see it as a download.


Can I copy a file to iCloud drive from the command line?

iCloud Drive directory is located here:

~/Library/Mobile Documents/com~apple~CloudDocs

There are some other directories listed inside Mobile Documents, their names depend on the app which owns them. For example: com~apple~Pages/.


iPad - type pinyin-ized Chinese with diacritics?

On the standard Chinese Simplified - Pinyin keyboard on the iPad, if you hold down a letter key for about 1 second, it will popup a panel with the 4 diacritics for that letter, letting you pick between them.

If you type pinyin with diacritic marks, it will not transform the pinyin into actual Chinese characters.


How do I change which characters OS X considers ‘a word’, for ⌥-arrow-key skipping?

The Word Break option has been removed in Mavericks.
Instead:

defaults write .GlobalPreferences AppleTextBreakLocale en_US_POSIX

Sources: https://twitter.com/jaydisc/status/393157866812502016 and http://lri.me/osx.txt


There is a several hundred word long tutorial,

Full Step-by-Step Tutorial  taken from here, that I have used to solve this problem so in addition to the author testing it, I too have things fully working.

Here are the steps from the article as well as details from the two key steps.

Step 1: Configure Apple Mail preferences

Step 2: Assign mailbox functions

Step 3: Set the [Gmail]/ prefix on custom labels

Step 4: Designate which labels show in IMAP

Since this is the most important step, here are the details

  While you’re in the Labels tab, uncheck the “Show in IMAP” box for All
  Mail because you don’t want that showing up in Apple Mail anymore.
  This is important to ensure the delete button sends messages to the
  Trash in Mail.app. The “Show in IMAP” box will determine which labels
  appear in Apple Mail. Feel free to uncheck the “Show in IMAP” box for
  any other labels while you’re at it. Changes are saved automatically.

Step 5: Forwarding and POP/IMAP

This also is a key step where google allows you to delete a message once it's removed from tha “last visible IMAP folder.” By hiding the All Mail label in IMAP, there should only be one “visible” copy of your message, so when you delete the message in Mail, it will now move the message to the Trash.

Step 6: Restart Apple Mail

Step 7: Test it out

I've tested this on Lion 10.7.5 and works perfectly.
All images are from Jeff Schuette as is the quoted text explaining how google can be set up to work like all the rest of the Mail servers to delete messages when you trash them.


Сheck for duplicate photos on Apple devices

Try interPhotos app. It may work for you. But you have to download both versions for Mac and iOS


How to flash img on Mac for Raspberry Pi

Download the latest Linux OS from Raspberry Pi’s Downloads Page.
Use Etcher to write the OS image to your SD card.


It didn't work for me too. And looking for options I found this which works better with VMWare Fusion 8 on Mac.

It is a shell script which with just one command create a Bootable DMG file and then you can create a Virtual Machine from that DMG and that's it.

https://github.com/rtrouton/create_os_x_vm_install_dmg

What I did is to uncompress the file found at create_os_x_vm_install_dmg-master/support/First_Boot_Package_Install.zip
The correct command that works for me was sudo ./create_vmware_osx_install_dmg.sh "/Applications/Install OS X El Capitan.app" /Users/[your_user]/Desktop/

I hope it could be useful for you like me!
Any question ask me at @Lexynux


Swipe between apps but continue to see the menu bar

Try placing applications in "maximized mode" in their own seperate desktop. Do this by OPT+Clicking the green button to make the window maximized (or resize the window), then drag the window, pushing it against the top of the screen. This will trigger Mission Control. Still holding the window, drag it to the "new desktop" icon in the upper-right corner to place the window in it's own desktop.

Screen recording of this: https://youtu.be/8QI-UkKmMPw

It may be slow to set up, but you'll still be able to use the two-finger swipe to move between applications, while still having the menu bar and dock.

To close desktops (which moves windows from that desktop into the next available desktop), enter Mission Control (F3), move the cursor to the top of the window, and hover your cursor over the desktop. A close icon should appear in the upper-left corner of the icon.

Hopefully this will be helpful.


Does the "Find my iPad" service work without WiFi when you aren't paying for cellular service?

No, you can get an app like NetStat and see the ports that open when WiFi is connected as well as when data is available, but not connected.

The carriers would know where it was since their cell towers would have a fix on the IMEI (or equivalent for non GSM carriers) - but that database isn't integrated into the Find My Phone service in any way we can see.

You are correct that the hardware talks with base stations that are near by and it would be nice (kind of like 911 service is permitted even when a line is inactive) for consumers to have this work without respect to billing status.


Network issues since upgrading to Yosemite - Unable to find local systems

This is very common problem in split-horizon DNS and heterogenous but Windows-dominated company networks. A lot of Windows sysadmins are used to the .local TLD as a valid private TLD name since at least a decade though it's not RFC-compliant anymore.

When your local area network has been configured with a domain name ending in .local, then all LAN hostname resolutions queried by a Mac will be passed to mDNS first - bypassing unicast DNS!

So hostname resolutions for .local often fail in Mac OS X applications (Safari, Chrome etc and often ping).

In contrary dig and nslookup are unicast DNS utilities, so they will both bypass the system hostname resolution order (files->mDNS->DNS) and query unicast DNS directly.

Some workarounds exist (your mileage will vary):

flush DNS cache frequently
add prod.local as search domain (to add local additionally is sometimes advised as well)

IMHO the only proper and RFC-compliant way to fix this is changing the local domain names to use a TLD other than .local in your Windows corporate network.


Why aren't 2 external monitors working with MBP (mid 2014)?

According to Apple, your MBP supports dual monitors plus the native display:
https://support.apple.com/kb/sp703?locale=en_US
You may have a bad HDMI>DP adapter, but my bigger question is why are you doing that in the first place? Why take Thunderbolt and convert to HDMI, when you have a HDMI port on the Macbook?
I recommend that you connect the HDMI port to the HDMI port on one monitor, and you connect the Thunderbolt to DP on the other monitor. Thunderbolt outputs DP 'natively' so its a better fit for DP.


How to uninstall Samsung SmartStation display driver from Mac OS X?

Get the DMG file you used to install

I personally used this one:
http://downloadcenter.samsung.com/content/SW/201206/20120626165207619/Samsung_Smart_Station_CA650_x.dmg

Mount it

A double click in the finder should do it

Extract the setup package

This will create a temp folder on your desktop that you may remove at the end of the procedure.

cd ~/Desktop/
mkdir tmp
cd tmp/
tar xf /Volumes/Samsung_Smart_Station_CA750/Setup.app/Contents/Resources/Installers/Samsung_Smart_Station_Lion_10_7.pkg

You can/should replace the pkg file with the latest that matches your OS (tested here with the "Lion 10.7" package on Yosemite 10.10, it worked).

Unpack the display driver setup package

cd sgfx1072.pkg
cat Payload | gunzip -dc |cpio -i

It replied 20340 blocks on my setup.

Uninstall the Display Driver

Now we're done, you can either browse with the finder or run this:

open Applications/SMSC/SGFX\ Uninstaller.app

Your machine will reboot free of this driver.
You may now remove the tmp folder that lays on your desktop.

Special thanks to this answer that helped me unpack the pkg files: https://stackoverflow.com/questions/11298855/how-unpack-and-pack-pkg-file


You'll have far better luck doing this on Android as opposed to iOS due to restrictions on sending SMS from applications is something that's not even kosher for App Store apps AFAIK.

There are SMS providers that allow voice and SMS from the numbers - you can check out Twilio for that. Also Google Voice offers SMS to email, so your business could switch to using that and use an email program to queue the SMS for bulk delivery as required.

Sorry to give you a no answer, but there just isn't a market for this sort of app to run natively on iOS.


I think my HD is failing. Can't backup files from recovery mode. How can I preserve my data?

I had this problem too, the best thing you can do is replace the harddrive since it will eventually break beyond repair.
Macs are quite sensitive to faulty hdd's so there is a good chance you can still use the drive as external drive and get your data from it.

so:
Replace the drive yourself if you can (ifixit) or have it replaced
Get a hard drive enclosure for your old drive
plug it in your imac and drag back the files you still need

Once you've removed the failing/failed drive, you can then use an inexpensive USB to SATA adapter and see if any of the off-the-shelf file recovery software can read some of your data from the drive. Data Rescue might be a good tool to start with since the free demo will tell you what it might be able to recover before you have to spend $$ on the software.

Lastly, sending the failed drive into a professional will cost $$$ but if you really need the files or pictures back, that's often the best chance of success.


How do I have my iPhone rotate the homescreen?


BBEdit - Have the Sidebar closed by default

Goto Menu View/Hide Sidebar

Goto Menu Window/Save Default Text Window

After that, each new window will use this settings.


Living with notifications in a many-tabbed world

I would use IFTTT + Pushbullet/iOS/other push notifications.

Add every channel you need to IFTTT.
Make if %message% then send a note to Pushbullet OR to IF Notifications.
Enjoy!


iPhone XS: s/mime signature doesn't contain the issuer (intermediate) certificate in signed emails

You need to manually install the intermediate certificate itself on the iOS devices. I.e. it is not enough to just install your own S/MIME signing certificate on the device - you also need to seperate install the intermediate certificate.

A way to install the intermediate certificate is to have it as a P12 file in for example an email. Then you can tap on the P12 attachment and choose to install it.


Is there any way an iOS app can access the mic/camera without the user's knowledge?

The first attempt by any app to access the microphone or camera will cause an OS-level confirmation dialog to grant permission. This adds the app to that list with the ability to grant/revoke the permission.
There are no exceptions to this; these are the only APIs that Apple makes available.
Also note that there is a ‘speech recognition’ category in Privacy which you may consider access to the microphone, albeit just what words are spoken as text if any. iOS does the speech recognition on behalf of the app; if the app does the recognition, that’s the generic Microphone category of access.


How do you boot verbosely when booting off an alternate device?

Before rebooting, open Terminal and enter sudo nvram boot-args="-v". This will mean every future boot will be verbose and no keyboard shortcuts are needed. To disable, simply reverse by setting sudo nvram boot-args="".

Further, from https://support.apple.com/en-us/HT201573:

If you're using FileVault, release the keys when you see the login window. Then log in to continue startup in single-user or verbose mode.
If you're using a firmware password, you must turn off the password before you can start up in single-user or verbose mode.


I had a similar problem, with the culprit being that iCloud got confused, and continued to send text messages as iMessages, so that my new phone (non-iphone) never got them.

Turns out, in order to turn off iMessages settings, you must disable iMessage EVERYWHERE. If you turn off iMessages on a phone, and leave it on your iPad, it won't reset (this was my issue).

So, I suggest you try this: iDevices (all of them): Settings>Messages. Turn off Messages. (on your iPhone, you can turn on sms message so at least you still get texts).  On Macs, remove any accounts in iMessages by clicking '-' by them in the account preferences.

Make sure you have de-registered on ALL your devices. Give it an hour or so. Then create accounts on messages on the devices using your Apple ID. See if it works.

If this does not work, call AppleCare.  I found that if you go to the AppleCare link in the website, it warns that it will charge you $$ per min for help if you don't have an AppleCare plan. Call the number anyway, agree to whatever. When I called, Apple did not charge me for the iMessages issue, as it is a known issue. (mine was slightly different, I will admit).


Following the advice in this forum thread, I've deleted the files (after backing up to the computer):

/User/Media/PhotoData/com.apple.photos.caches_metadata.plist
/User/Media/PhotoData/Photos.sqlite
/User/Media/PhotoData/PhotosAux.sqlite

After opening the Photos app again, it rebuilds the Library:

It's important to use the pattern IMG_0000.ext for the pictures file names:

0000 being numeric ID of our choosing
.ext is a JPG or PNG extension
we can add letters after the numeric ID to prevent conflicts with the device ID counter, ie, IMG_0041b.png, IMG_0041c.png, IMG_0041d.png.


Windows won't maximize on multiple monitor setup

I was able to resolve this by killing the Dock process (it will restart on its own):

sudo killall Dock


Client certificate required after installing certificate

You are looking for a client certificate.  It would seem if you are trying to obtain it from the URL that you are actually getting the server certificate to place in your keychain.

Normally a client certificate is a certificate that identifies the user, or at times the machine, that the request is coming from (ie. not the server you are accessing via Safari).

A client certificate would normally reside in your Login keychain and not the system keychain as it identifies you.

The client certificate is normally provided from the server by some other means rather than accessing the browser, as that is an insecure delivery method.

You need to talk to the owner of the internal server and ask them to provide a client certificate, or if two-way certificate identification is not required then have it turned off in the internal server instead.


VMWare Fusion and moving between monitors

With the help of Autofit command of view menu you can resize the guest display resolution. There are four commands listed below:

Fit Guest Now - Guest operating system display size to match current Workstation console.
Fit Window Now - The Workstation console to match the current display size of the guest operating system.
Autofit Window - Workstation console to maintain the size of the virtual machine's display resolution.
Autofit Guest - Virtual machine to resize the guest display resolution to match the size of the Workstation console.

As per your requirement, Fit Guest Now command will remain the best.

You should also refer this: https://www.vmware.com/support/ws5/doc/ws_running_display_fitting_host.html


Go with:

802.11g/n

That setting covers the first generation iPad through to the latest iPad that got announced yesterday as well as the first generation iPhone through to the latest iPhone 4S. Your devices should pick the faster protocol (N) if they support it. If not, they'll use the slower protocol (G).

But between G and N you've got just about all modern wireless devices covered so your network should be friendly to everything WiFi you bring in to it.


WiFi accessory connectivity issue with iOS 12

It is hard to say what was changed in iOS 12 as the list of changes is very long, and you haven't specified which equipment, you're using, nor which app you're running.

However, I can say that behaving apps have no problems with WiFi and cellular on iOS 12. As long as the app is written to standard, you can access both at the same time without any issues - on iOS 12 as well as earlier.

The issues you're seeing are most often caused by incorrect network settings on the WiFi accessory. Specifically if the WiFi accessory sends out DHCP replies with a default gateway set, it is doing so incorrectly, and that can and will give problems with using cellular at the same time.


Lots of Finder windows opening all at once

Try this:

Select all with CMDA in your home directory.
Hit CMD+ALT+O and have fun. :)


Is it a MacOS normal behavior to switch between desktops slower while in Mission Control mode?

This is more of a performance issue than anything else.

Bringing up Mission Control is already a pretty complex split-second animation for your Mac to handle, especially if you have several windows open in your current desktop.

And if you have multiple desktops with several windows open, it has to render all the windows, grouped by application per desktop, and give them a different effect than usual (drop shadows are applied on the window group rather than individual windows in Mission Control) and so on.

Basically, it's a more complex task for your Mac to do, and since you're on Mojave, system UI is largely Metal, so if you have an nVidia chip or older intel graphics with no Metal 2 support, unfortunately it will feel like molasses.

The only solution would be to upgrade your hardware, or turn off the special effects by going to System Preferences -> Accessibility -> Display then checking reduce motion, reduce transparency, either one or both, depending on what you are willing to give up and how much of an improvement checking the options yield.


Will the 3G SIM card from my original 2010 iPad work in the new 2012 iPad, or will I need a new SIM card?

This will depend largely on your carrier. If they're offering 4G/LTE service with the iPad 3, you may need a new SIM card. If they're not offering that service in your area, it shouldn't matter if you have a new SIM card or not. Your best bet is to ask your carrier.


I think you are confusing this with the requirement for Bluetooth LE to be able to do Handoff.

SMS Relay uses Wi-Fi or, if available, your phone's 3G/4G connection.

From How to Enable SMS Relay on Your Mac, iPad and iPhone - point 3 might be the salient one...

  Make sure your Mac, iPad and iPhone are all connected to the same Wi-Fi connection.
  Make sure all of the devices are logged-in to the same iCloud account.
  You don’t want to be receiving your father’s phone calls, do you?
  Starting with your iPhone first – and this is important, because I did it backwards and messed everything up – open Settings > Messages and tap “Text Message Forwarding.”
  Choose the devices on your home network that you’d like to receive SMS messages on – in this case, I chose my MacBook Air and my iPad.
  You should receive a code on your iMac and iPad.
  Enter that code into the prompt on your iPhone.

This might also be useful - FYI...SMS Forwarding does not require WiFi to work


Include icon in manually created .app bundle

I believe you can change the icon by simply dragging and dropping the icns file onto the icon displayed in the upper left corner of the Get Info window. For example, if I right click on the test.app shown in the Finder on my Mac and select Get Info, I will get the following popup window.

Below is a folder with some icns files.

Dragging the os_centos.icns icon and dropping over the icon shown in the upper left corner of the Get Info window, will produce the following change.

You can convert files to .icns by visiting the website https://iconverticons.com/online/. Online conversion is free.


How can I triage a MacBook Pro that won't charge with the LED dimly lit green?

Please stop resetting your SMC. You can totally screw up your Mac by resetting it too many times in a row. But yes, it seems through what you tried, your logic board is likely the issue.


Press option+delete or option+← to delete an email and not select the next email.

If you use an international keyboard: United states option key may be labelled alt and/or ⌥.


Processes in Activity Monitor with gray lettering

Your screenshot is heavily cropped, but I presume you're on the Energy tab instead of CPU or Memory. The Energy tab shows recent applications (not all processes) and displays their Average Energy Impact. Simply being in the list on the Energy tab does not mean the application/process is running — the opposite in fact when looking at greyed out applications.


I have an iPhone whose screen turns on but doesn't respond to touch. Could this be a software issue?

The only software "issue" that I can think of is the guided access, which e.g. parents can use to restrict their children while using the iPhone. However, I am quiet sure that it is disabled by default, once you restart the iPhone by forced reset (press lock-button and volume-down-button simultaneously for a couple seconds).
In addition, you could delete everything and make a factory reset with iTunes. But could not help at all, if it is not a software issue.
Furthermore, the guys at the apple store are really helpful and have special tools for diagnosing problems. As far as I know, as long as they just diagnosing the problem, the consulting is free.


Uninstall non-loaded extension from Safari

That doesn't look like an extension, but a SIMBL Plugin.

These can be found in the directiory /Library/Application Support/SIMBL/Plugins, and you should be able to remove the SafariOmnibar.bundle from there.


I want to update my iPhone 5s from iOS 9 to iOS 10, not iOS 11. Is it possible?

No, this is no longer possible. While you may have previously downloaded iOS 10, or may be able to download it through other online sources, installing it is no longer possible as Apple has stopped signing installations of iOS 10.

Typically, when a new version of iOS launches, the window for installing the previous version of iOS is about two weeks.


Cant fully slide to answer call IPhone 4

Almost a month after doing the reset, the issue has not appeared, so I believe this has been solved. Dirt on the screen did not apply on my case but I guess it can cause this issue in some cases.


iOS6 has loaded someone totally different's details

Sign out, all areas (including Game Center) turn off iCloud an soft reboot, an sign back in


Locating the iBooks folder in iCloud Drive (on Windows)

Summing up the answer in advance: the folder simply might not exist on Windows.
And the workaround in advance:
If I cannot locate the folder, the only solution is via extraction from the iTunes backup, see:
https://stackoverflow.com/questions/62434692/iphone-move-in-one-go-all-pdfs-generated-from-safari-page-prints-which-i-fr/62701384#62701384

I found a description that explains the equivalent Windows and Mac folders at https://deciphertools.com/blog/how-to-backup-ibooks-pdfs/.

Where are My iBooks PDFs Stored on my Computer?

On Windows, the iBooks PDF files copied to your iTunes by doing
Transfer Purchases are stored in your computer user's account folder,
alongside your iTunes music. Here's how to find your iBooks PDFs on
your Windows computer: Go into your user account's Music folder. (On
Windows 10, this would show up under This PC -> Music.) Open the
folders iTunes -> iTunes Media -> Books. You should see your PDFs in
this folder.

On Mac, the iBooks PDFs copied by doing Transfer Purchases are tucked
away in data for the iBooks Mac App. Here's how to find your iBooks
PDFs on your Mac: Open Finder, and select the "Go" menu at the top of
the screen. Hold the Option key (or Shift + Option on latest Sierra
builds), and select the "Library" menu option from the Go menu. (On
OSX Lion and above, Library will only appear with the Option key
held.) From Library, navigate to Containers ->
com.apple.BKAgentService -> Data -> Documents -> iBooks -> Books. You
should see your PDFs in this folder.

Then there comes an explanation of how to use iBooks for iCloud, but only on Mac:

First, we need to make sure you've got iBooks turned on for your
iCloud drive documents on your Mac.

From the Apple menu at the top of the screen, select System Preferences.
Select iCloud in System Preferences.
Next to iCloud Drive, press the "Options..." button.
Ensure the iBooks checkbox is checked.

The checkbox "iBooks" does not exist in my iCloud > iCloud Drive settings. This could mean that it is simply not possible to sync iBooks with iCloud on Windows, as @MatthewBarclay commented above. This is also plausible, because my iBooks are backed up, and Apple does only one thing of the both, either sync or backup. And then, to answer the question, there simply is no such folder.
I have also tried opening it in terminal, as it could be hidden like the answer stated at Locating the iBooks folder in iCloud Drive, and I could not find it:
C:\Users\USER\Music\iTunes\iTunes Media>dir /a
does not have it, showing both hidden and unhidden items with /a (for /a see https://www.computerhope.com/issues/ch001039.htm).
Perhaps my sync settings are corrupt or wrong. Because I marked iBooks to be included in iCloud, but they are in my iTunes backup instead (proven), and they can only be in the backup OR in the iCloud (not in both, thus, they seem to be ONLY in the backup), if I am not mistaken. Settings > scroll down to Books > iCloud Drive is switched on, that cannot be the issue, following https://www.topmobiletech.com/how-to-sync-ibooks-to-all-your-ios-devices/.
I will not test this anymore, please test yourself and set a different answer which I will accept in case you find more.
If I cannot locate the folder, the only solution is via extraction from the iTunes backup, see:
https://stackoverflow.com/questions/62434692/iphone-move-in-one-go-all-pdfs-generated-from-safari-page-prints-which-i-fr/62701384#62701384


macOS cannot boot. How can I add trailing loader space?

I nearly had this nightmare after installing MacOS Mojave, then playing around with the partitions with Paragon (the only good disk editor left for MacOS).
Unfortunately it shows the trailing partition as “free” approx 180M.
So not knowing that this was the other GPT partition table reference I cleared it out.

Every time I came to run first aid on the whole disk I got the same error.
Also it says run first aid from recovery which I didn’t have...

So stumbled on the MBR patch from these guys:
https://www.insanelymac.com/forum/files/file/944-mojave-mbr-hfs-firmware-check-patch/

This was brilliant and allows one to install easily to USB without having to use the APFS.
Then you need to disable SIP
So boot the Recovery on the USB
Then choose terminal.
Issue the following command:

csrutil disable
[see https://amp.reddit.com/r/osx/comments/3hv3kk/update_on_rootless_the_configuration_mechanism/#ampf=undefined
For more details]

Then type:

reboot

Hold down Alt key and then boot back into OS on main disk.
Then using Paragon Hard disk Manager (well worth it!)

https://www.paragon-software.com/home/hdm-mac/

Check your recovery partition (you can use diskutil list),
Delete it (make sure you back it up in case!)

I had to add another “empty” or “free space” after my main os (800MB)

I.e :
EFI:
Macintosh HD:
Free Space:
Other MacOS:

Then Copy the Recovery Volume from your USBstick using Diskutil or Paragon.

Now even if you select the Apple_Boot GUID in Paragon you still need to issue the following command: (replace TargetVolume with the volume you have (or have just created at the end of the main OS, ie I my case /dev/disk0s3)

[See the following website for more info on this command.
https://www.lifewire.com/create-os-x-recovery-hd-on-any-drive-2260909]
sudo asr adjust --target /dev/TargetVolume -settype Apple_Boot

Then this makes the volume dissapear from disk Utility (but not from Paragon HDM).

Then reboot into the recovery volume and run the following:

Diskutil umountDisk /dev/disk0
[allows disk to be verified]

DiskUtil verifyDisk /dev/disk0
[verify main disk]

Diskutil repairDisk /dev/disk0
[repair Disk0]

Then issue the final command to restore SIP back to normal

Issue the following command:

csrutil enable

Then type:

reboot

Hold down Alt key and then boot back into OS on main disk.

You can now run the first aid on the main disk as well as the volumes and it should be fine.

Also CMD -R should now now bring up the Recovery HD.

Good luck to anyone else, just glad I have Paragon and Carbon Copy Cloner, but cmd line options are still needed.


Can I detach the QuickLook window from the Finder?

Yes Thilo, there is a way. It will require a bit of command line wizardry though. As long as you're not allergic you can do the following:

Open Terminal.app
Change directories to the location of the file you want to view using QuickLook.

For example, if the file you want to view using QuickLook is on your desktop you would type: "cd ~/Desktop" (no quotes, caps matter, and ~ is a shortcut to your home directory).

Now type: "qlmanage -p filename.pdf" (replacing filename with the name of your file and pdf with the extension of your file).

A new icon will appear in your Dock called "qlmanage". This is the helper application that is usually launched headlessly by the Finder. By launching it from the command line it becomes accessible via the Dock, Command-Tab etc.

Just for the record (and the curios) this little application is stored deep in the OS where mortals are not meant to tread at this location:

/System/Library/Frameworks/QuickLook.framework/Versions/A/Resources/quicklookd.app/Contents/MacOS


A simplified answer to SSD lifetime would be:
SSD is a Semiconductor devices build to last minimum 10 Years. Some of us still have computers from year 2000 or even before, thus older than 14 years.

With that said, looking closer at the SSD, it is a flash memory type semiconductor device and could develop leaking currents (means the cells loose they charge (memory).

There is difference in life (quality) of SSD's depending on manufacturer (Intel, Samsung ect.). To my knowledge, Intel is still the front runner on quality = life time, but Samsung is chasing them. It is really difficult to say who is the best, but one can use the warranty as a guide. For example Samsung gives 5 Years on the 840 model. That means it will last minimum 7-10 years, otherwise they would be out of business replacing all dead SSD's.

Just to clarify, I am talking about the most common type of SSD (using the Single layer memory cells), the dual layer lasts even longer but it is much more expensive.

Apple, Crucial, OWC ect. do NOT make the actual memory chips. The buy them from Semiconductor manufacturer like Samsung or Intel ect. and make the SSD boards with they name on it.

However, do not panic, the drives have a self repair capability!

They do that by simply replacing the dead cells.

The problem is there is limited supply (reserve) of new cells.

One of the biggest life limiting factor is the amount of data stored. Let's say when the SSD is 90% full, it will become a problem soon, since the drive tries to rotate the cells to preserve/avoid memory leakage.

Second life factor is the daily usage (read/write). Again, do not panic, a "normal" user will never see that problem.

All in all the SSD should last you longer than your computer screen or keyboard!

SSD are sensitive to heat (as any Semiconductor device) and will loose life if operated at elevate environment temperatures, means they love cold environment. Does not mean you have to move to Alaska :).

Just to give you an idea. Why do you think Intel invented the so called "I" processors they call it Intelligent CPU. Great Marketing by the way. The actual reason is the CPU becomes too hot if it operates at 100% all the time.
Same applies to the SSD chips, so keep them cool and do not overload your drive and it will last and last.

And!, try not to use to much of the SSD health test softwares.
That just stresses you SSD unnecessary.

It would be the same if you would constantly go to a doctor to verify if you healthy and he would give you a xray scan each time, just to tell you you are fine (but to much xray exposure will kill you).


Just installed Mail Notifr - $2.99 on AppStore, or free if you download the previous version here: http://ashchan.com/projects/gmail-notifr

At least the paid version looks nice, clean, and in terms of functionality it's pretty similar to Google's Notifier, less Calendar notifications. Mail check frequency can be set in Preferences (Google's was a hidden undocumented feature); multiple GMail accounts are supported. I just hope it's stable and reliable enough. We'll see.

Update: so far so good. One little nice thing about this app is that when the system wakes up from sleep it checks for email immediately, whereas with Google Notifier you had to wait another 5 minutes or force mail check manually.

Update 2: one other thing missing compared to Google Notifier is handling of mailto: links and in general, redirecting to GMail when trying to send mail from any desktop app. Mail Notifr doesn't do this. Would be nice to have actually.


Paragon HFS for Windows (or similar) might be your only hope, plus some good disk recovery software on the PC - there is a whole slew of freebies for Windows, but I don't know how good they are. Try http://pcsupport.about.com/od/filerecovery/tp/free-file-recovery-programs.htm The list of available software is constantly changing.

Even if you manage to recover any data, the file names will be gone, so you will then have to dredge through & try to add appropriate names to everything you can recognise.

Then invest in a backup solution & remember the adage
"Any data stored in less than three separate locations ought to be considered temporary.


Chrome 69 on Mac fullscreen. Toolbar pushes page content down

Go to chrome://flags/#views-browser-windows and select Disabled on the dropdown for the "Use Views browser windows instead of Cocoa" flag. Relaunch Chrome.

This should bring the old behavior back, with one caveat: it will bring the old design back too.

This flag has been removed in chrome 71 so there is no way to change the behavior from 71 onwards


Prevent facetime from asking for password in Mavericks

Found the solution:

Open FaceTime,
Open "FaceTime" menu,
Choose "Turn FaceTime off" option.


Apple changed this default behavior in 10.8 Mountain Lion.

To re-enable the behavior you're accustomed to:

Open System Preferences
Click on Accessibility
Click on Zoom
Check the box next to "Use scroll gesture with modifier keys to zoom"
optional - You can change the modifier key (control by default) that is used in the dropdown box below

From a support perspective I can understand why Apple disabled this.  I've personally helped probably upwards of 20 people who have inadvertently zoomed in and have not known what they did or how to undo it.  I can only imagine that AppleCare phone support gets many calls about this, which I'm sure is difficult to figure out based on the descriptions people give.

Changing the default behavior would kill off the majority of those calls for new 10.8 users who have no idea what the feature is for while leaving the option there for those of us that use it from time to time.

Hope that helps!


On my El Capitan Mac, I use BetterSnapTool. It’s a very good program for managing multiple side-by-side windows.

I even used it to to create a custom resizing command so my windows will not extend into the Notifications Area.

Available on the Mac App Store. Also see the developer’s web site: https://www.folivora.ai/bettersnaptool


GarageBand 10.1.1 Removed MainStage Instruments

To restore all your MainStage3 instruments do this trick which will add new root folder "User patches" in the Instrument selector:

Quit Garageband
Open Terminal
Type these three commands (all are one lines):

mkdir "$HOME/Music/Audio Music Apps/Patches/Instrument"
ln -s "/Applications/MainStage 3.app/Contents/Resources/Patches/Instrument" "$HOME/Music/Audio Music Apps/Patches/Instrument/Mainstage"
exit

Close Terminal and start GarageBand
Locate Mainstage3 instruments in the "User patches" area or use search box

Downside is some patches are now showed twice, but this does not mean your instruments occupy more space or disk or anything. In the steps above, you actually made a symlink from user patch directory into MainStage3 program patch directory, so GarageBand can always access it. This will alway work not matter how many times you update any of the two programs.

Extra trick: You can edit any patch and save it into Patches/Instrument directory and it will also show up (only first strip channel). This works with all Logic Pro X instruments, including Alchemy and others!


How to fix delayed typing on certain websites?

Without a list of sites that work and a list of sites that don't - here are some tips.

Open Activity Monitor and look at CPU and choose View menu -> All Processes (and then sort by CPU use descending). Watch this for apps that are slowing things down.
Open text edit and type there. - make note of what process are using CPU when you type and how fast it responds.
Open your webmail (or a slow forum) and repeat.
If there are programs taking CPU when you see the slowness, quit them.
If you have quit everything but Safari, restart the Mac and repeat the fast/slow.

Over time you will begin to see if the slowness is CPU - which is things you can control on the computer or if it's not the CPU that's waiting. In that case, it's the web site or network.

The pragmatic solution is to type in a local word processor and then copy/paste into the slow web application if you find the web application interface slowing you down.


copying data from a removed mac book pro hard drive to another working mac book pro.

That's a good plan. You can inspect the drive and see if it got wet, allow surface wetness to fry thoroughly before attempting to power it up.

As long as it spins, you'll likely be successful in recovery and might not even need something like Data Rescue to perform an undelete or partial recovery if the catalog is damaged.


Can a webpage appear in iOS Safari without any Safari UI even if someone visits the URL in the browser?

When you launch a web app by entering the URL in Safari it runs in the Safari app. But when you launch a web app from the springboard (home screen), it runs in different Safari app. Hence the lack of Safari UI in the that case. What you want isn't possible. And it's actually a good thing because the Safari UI offers option you might need to use ('mail link to this page', 'Tweet', 'Print', ...).

What you want to do may be possible through some kind of hack if you jailbreak, although I doubt it.


The issue is that it starts to charge for like 1 second, disconnects for 5 seconds, and then loops like that.

Dirt or another containment in the port isn't going to cause a loop that cycles in a regular intervals.   When you connect an iPhone to a MacBook, there is a charging negotiation - normally, the USB spec is for 5V @ .5A, but the MacBook can "boost" the available charge up to 2.5A - it has to "ask" for it, however.  That "loop" that you're seeing is a connection, an ask and a disconnect and then the device trying again.
It could be a couple of things...

You have an issue with your port not being able to supply enough power to the phone
You don't have sufficient power on your USB bus
There could be a hardware issue - either with the MacBook or the iPhone

If you can charge your phone correctly otherwise (i.e. with a regular USB power adapter) and your USB port functions normally, start with an SMC Reset.  If that doesn't fix it, try Safe Mode by holding ⇧ Shift while booting.  But, to be candid, I don't see that having much effect, if any at all.  Charging is not handled by the OS, but by the firmware on the SMC chip.  In this case, ensuring your firmware and software is fully updated would be the next best thing.
Lastly, you want to ensure that your connectivity is good - avoid cheap, knock off cables and connectors.  I assisted someone just yesterday who insisted against my advice on using one of those 5-way USB spider things that has all the different USB connectors on one cable she picked up at a trade show;  It fried her Dell XPS' charging ports.  Use good quality cables from trusted brands (I like Anker personally). Saving $5-10 on a cable simply isn't worth it.
If it is the hardware (either phone or Mac) you might just want to avoid charging with your Mac and stick to the wall adapter.  To fix it would require replacing logic board(s) and it may not be worth the expense.  If it's under AppleCare...well, that's a different story altogether.  You'll have to make the call to see if it's worth the AppleCare incident for this issue.


What is the macOS equivalent of Windows certificate store names?

The equivalent on macOS is the Keychain name.
On Windows you have for example the "Current User Certificate Store". The corresponding on macOS would be the user's login keychain: ~/Library/Keychains/login.keychain-db. There's one for each user on the system, and stores the certificates relevant to that user only.
On Windows you have the "Local Machine Certificate Store" that holds certificates added by users to be accessed by all users on the local computer. The corresponding on macOS would be the System keychain: /Library/Keychains/System.keychain
On Windows you have the "Trusted Root Certification Authorities Certificate Store" that holds CA certificates trusted by the operating system in general. The corresponding on macOS is the System Root Certificates keychain: /System/Library/Keychains/SystemRootCertificates.keychain
You can list the certificates in each of those keychains by using the built-in security command. For example to get an overview list:
security find-certificate -a ~/Library/Keychains/login.keychain-db
security find-certificate -a /Library/Keychains/System.keychain
security find-certificate -a /System/Library/Keychains/SystemRootCertificates.keychain

or to export the actual certificates in PEM format:
security find-certificate -a -p ~/Library/Keychains/login.keychain-db
security find-certificate -a -p /Library/Keychains/System.keychain
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain

The exception to the rule above is what is known as the "Trusted Publishers Certificate Store" in Windows - this is not stored in a Keychain on macOS, but instead in a system assessment rule database. The name of that is: /var/db/SystemPolicy
You can create a list of those with the following command:
sudo spctl --list --type execute

The output is a list of assessment rules, which besides a few generic, Apple specific rules, is basically a list of the hashes of the certificates of the trusted publishers.
The actual certificate information cannot be exported from the SystemPolicy database, as they're not contained there. You can however get to that data by traversing the installed applications (for example in /Applications) and running:
codesign -d -r- -vvvv /Applications/AnApp.app

This allows you to gather information such as the publisher's name, subject organisational unit, CA name (Apple Root CA) and timestamps.


How can I remove songs from the Music app on my iPhone?

iOS 7 has changed the face of the Music app somewhat. The biggest thing that was introduced is that now, all of you iTunes store music purchases show up automatically in the Music.app. This allows you to stream those songs without actually storing them on your device (an excellent option).

As a result you have two options:

You can manage music the old way by opening Settings.app -> Music -> and disabling "Show All Music". This will prevent your purchases from displaying in the music app. To delete any songs that you have on there, you can swipe (from right to left) and select Delete (on the actual songs themselves - this doesn't work on albums).
When "Show All Music" is enabled, I don't believe there is any way to remove songs that were purchased through iTunes. If you are not on wifi, you can go to Settings.app -> Cellular -> disable "Music", which will prevent any songs that haven't been downloaded from streaming over cellular data (and which would prevent those songs from playing if that's your desire).

The following is is for iOS 6

Yes, you can.

To delete single songs in Music.app slide from one direction towards the other on a particular song and select "Delete". You can also use this approach with Playlists, Albums, Artists, etc.

If you seeking to delete or edit playlists you can see those buttons at the top of each playlist.

Keep in mind, unless you make the needed changes on your computer, these deleted songs/artists/albums/playlists with sync back to your iPhone.


iPhone 6 keyboard freezing when typing on iOS 8 (com.apple.TextInput.kbd)

With a little more digging I found that the problem was with the kbd process using tons of memory when I tried to write something. Google search with "kbd process" bring me a lot of useful links:

iOS & iCloud: Broken iCloud data causes kbd process to crash constantly and drains battery

https://discussions.apple.com/thread/5521035

http://forums.macrumors.com/showthread.php?t=1615584

What did worked for me was turning iCloud drive off and on again.

EDIT:
So it turned out I was dumb enough to turn iCloud Drive off and don't turn it on again!
Been using it this way for some 2 months.

But I've got the solution! (Mac only) I was digging through my iCloud files at ~/Library/Mobile Documents/ and found that there is a folder with the same name of the evil process.

~/Library/Mobile Documents/com~apple~TextInput

I opened it up and decided to read some files, unzip here, convert plist there (see https://stackoverflow.com/questions/15179410/how-to-open-icloud-cdt-file) and voilá: in just one file, the process kbd tried to insert a word 147 thousand times. This entry was a correction from "mongolao" to "mongolão" (southern Brazilian idiom in Portuguese for a vulgar use of the word "retarded"), ironic. As there were lots of these files, I think with myself that the problem is that somehow the kbd process fell into a loophole, and I decided to delete all the content of the com~apple~TextInput folder.

Waited a few minutes for my mac to upload the changes, turned iCloud Drive off and on again on my iPhone and...... working! If I don't come back here to edit this answer it means this was it! (or I forgot something really stupid again)

Oh, and don't even try to boot up Finder to do this, be a good stackExchange user and only use Terminal. (Pro tip: Yosemite breaks the iCloud folder in Finder)

EDIT 3 (3 months later):

tldr: run the following on your Mac's terminal:

cd ~/Library/Mobile\ Documents/com~apple~TextInput
rm -rf *


Only iOS links the keyboard and the spellcheck, OS X has never done that.  Most people find "automatic" unreliable.  To activate czech spellcheck, you should set the spell check to czech, either in system prefs/language & text/text/spelling or in Edit > Spelling and Grammar > Show Spelling and Grammar.  In Pages 4 and earlier and iBooks Author, you need to set Inspector > Text > More > Language.  MS Word and some other apps do their own thing.

The app Nisus Writer has preference settings that let you link keyboard and spellcheck dictionary.


Check your bash aliases - is something aliasing pbcopy/pbpaste to use one of the other pasteboards?

The manpage for these commands mentions four possible pasteboards that they can use - general, ruler, find, and font. Try pbcopy -pboard general to force it to use the general pasteboard.


How Many Different Ways Are There To Force Quit An Application?

There are many ways to force quit an OS X application:

Press and hold Command-Option-Shift-Escape for a few seconds. This will force quit the active application.
Press Command-Option-Escape to bring up the Force Quit window, where you can select the application you want to force quit.
Option + Right click on the Dock icon of the application and select Force Quit.
Click on the Force Quit menu option in the Apple menu to open the Force Quit dialog.
Hold shift and click on the Force Quit menu option in the Apple menu to force quit the active application
Use the Activity Monitor to force quit applications
Use the terminal to kill the process: killall safari will kill all Safari processes.

Source: OSXDaily


Password protected partitions on mac os x

simply format the second partion as Mac OS journaled encrypted via Disk Utility


is it safe to delete /private/tmp vs /private/var/tmp?

No.

No no no no no no no.

No.

Generally /tmp is cleared out upon reboot, but you should never just delete stuff without knowing for absolutely sure that you don't need it.

If you can't replace your hard drive with something larger and you're running that low on space, use a reputable tool that is specifically developed for the job, like Clean My Mac.


How to ensure a stolen MacBook Pro Retina is useless to a thief?

The security you’ve enabled probably won’t deter the theft of your laptop.  Most criminals who get the opportunity to snatch a laptop will take it no matter how useless you can make it with encryption and firmware locks.

Why?

Ignorance of the criminal.  No matter how much Apple advertises it, the common thief won’t know until they get it back home only to find they got a brick.  Then it will probably become a frizbee.
Salvage value.  Although useless as a computer, the machine becomes a “donor” for the parts including the screen, trackpad, keyboard etc.  even the logic board can supply someone with a ton of components to be used in logic board repair

Your strategy should be data protection, ensuring that no matter where your computer ends up, you have quick, secure access to your work product.  Enabling remote wipe is invaluable in making sure your data stays secure.

I would also look at insurance coverage for that expensive device.  Many credit cards cover theft.  There are also 3rd party insurance coverage from companies like Safeware


How to change iCloud storage size for Emails?

iCloud mail space should be dynamically increased as you go. There is nothing users can do to manually expand that size. If it is stuck for you, I recommend contacting Apple at their support web page for iCloud, as you are a paying customer, you sure are entitled to great service.


Using an iPad Pro and an Apple Pencil as a "tablet"

There is an app called Astropad that allows this. http://www.macworld.com/article/2885834/first-look-astropad-turns-your-ipad-into-a-graphics-tablet-for-your-mac.html


Cannot change IPv6 Mode on my Airport Extreme (5th generation) using Ariport Utility 6

Seems like the problem is that Airport Extreme still does not support delegating IPv6 prefixes over PPPoE.


How to change the default text editing app in Quick Look?

Extension-less files are tricky ones for OS to figure out if it is an executable or a text file. I have two README files, one of which is unix executable for some reason and I get a warning if I open it. Another is text file but still recognised as public.data as opposed to public.plain-text.

mdls path/to/file

gives you its kMDItemContentType. public.data files' QuickLook  are generated by

/Users/me/Library/QuickLook/QLStephen.qlgenerator

Run qlmanage -m to get a list.

Unless you can find a QuickLook generator by VSCode, which can preview public.data files, you don't have much to do.

I haven't used it, but this seems promising:
https://github.com/whomwah/qlstephen

OP's response

This worked: duti -s com.microsoft.VSCode public.data all

Replace Text Edit as the default text editor


How to deal with "Your Apple ID currently has two-step verification turned on, but two-factor authentication is required." on developer.apple.com?

Two-step authentication is an older method of authentication for your Apple-ID. This is no longer "good enough" to be used with developer accounts.

You MUST upgrade to two-factor authentication as a developer. There's no way to login as a develop with two-step authentication anymore.

Apple has a detailed guide on enabling two-factor authentication here:

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

Basically you take your iOS device, open Settings and click your name at the top. Choose "Password & Security" and then tap "Turn On Two-Factor Authentication". You'll then be guided through how to verify your phone number.

If you want to do the same from a Mac, you have to open System Preferences and click "Apple ID". Choose "Password & Security" from the menu on the left and then click the "Turn On..." button alongside "Two-Factor Authentication".


Apple Script help - how do I tell OS X to not launch a specific app during a specific time period?

How about the following? It can be used as an app launcher. It doesn't stop the user of launching the app but for a child it should do. You could also easily convert it to a background script to continuously monitor for desired app and kill it once usage goes beyond allowed time block.

Hope it helped.

# The times to check. Use HH:MM:SS 24HR format or AM/PM
set sTime to "19:00:00" # 7PM
set eTime to "20:00:00" # 8PM

# Get just the date from shell; quicker
set tDate to getShortDate()

# Setup Date & Time vars for start and end
set sDateTime to tDate & " " & (sTime)
set eDateTime to tDate & " " & (eTime)

# Convert dates to Epoch
set sEpoch to toEpoch(sDateTime)
set eEpoch to toEpoch(eDateTime)

set epochNow to getEpoch()

if epochNow > sEpoch and epochNow < eEpoch then
    tell application "Finder" to set tProcesses to name of processes
    if (tProcesses contains "Firefox") then
        display dialog "Firefox is currently banned"
        #Kill Firefox app
    end if
else
    #log "Launching Firefox..."
    activate application "Firefox"
end if

on getEpoch()
    return do shell script "date \"+%s\""
end getEpoch

on toEpoch(aDateTime)
    return do shell script "date -j -f '%Y-%m-%d %T' '" & aDateTime & "' +'%s'"
end toEpoch

on getShortDate()
    return do shell script "date \"+%Y-%m-%d\""
end getShortDate


How do I send an image via Bluetooth from my Mac to my iPhone?

Bluetooth transfer is only available to jailbreakers. If you want to go that route, AirBlue Sharing claims to be able to send/receive files over Bluetooth.

Non-jailbreak options include the $1.99 app Photosync, which uses Wifi and requires a free desktop app to receive/transfer files to it:

  PhotoSync will transform your photo handling forever. It‘s the first
  app that makes wireless transfer of your photos/videos from or to your
  computer and other i-Devices - a breeze.

  Supported transfer
  directions: Device to Computer (Wi-Fi), Computer to Device (Wi-Fi),
  Device to Device (Wi-Fi & Bluetooth)

Or you could use Dropbox, drop a picture in the Dropbox folder on your desktop then use the iOS client to access the picture and save it to the device if you want.


Formatted an NTFS partition to Mac extended Journaled by mistake

The best software for this problem in my opinion has been EaseUS Data Recovery. It almost even maintained the folder and file structure as before. I think this was because macOS did not successfully complete the reformatting of the partition and gave an error, anybody looking at this in the future, your mileage may vary. In my case ~200GB of data is a mess while ~500GB has been preserved.


iPad mini and MacBook Pro 2011 Remote control over Keynote?

Connect your iPad and your MacBook to the same Network and install iDisplay. iDisplay is a software especially designed for your needs. with this software your iPad turns into a external monitor for your MacBook. I use this software since good 2 years and it never failed me!


How do I send a group email on my iPad Air?

The tick mark doesn't mean that you've added them to the To field — it just means that you've narrowed down the list of contacts to that group.

When you tap the + button to add to the To field, by default it shows All Contacts. Pressing Groups lets you narrow down this list to that specific group, but you still need to select the people that you want to send the email to. Tap them in the list (and select their email if necessary) to add them to the To field.


Launch the AirPort Utility.
Select the Time Capsule whose disk you want to erase.
Hit the "Manual Setup" button.
Click the "Disks" icon button.
Click the "Disks" tab.
Select the disk (not a subvolume, the disk itself).
Click "Erase...".
Follow the dialogs from there.


USB-C to HDMI adapter connect with DisplayPort

To get the best results I would recommend using the following :

Thunderbolt 3 (USB-C) to Thunderbolt 2 adapter Link
Mini-DP to DisplayPort Cable to the monitor Link

Probably this one might work https://www.amazon.com/Plugable-DisplayPort-1-8m-Chromebook-Thunderbolt/dp/B01EXKDRAC

Hope it helps!


Turn off MacBook Air screen rendering but maintain running applications?

I could be missing something in your post, but you should be able to set your Energy Saver preferences so that your display goes to sleep, but your computer doesn't.

Since you haven't specified the exact version of macOS you're running I can't give you step by step instructions or include a screenshot, but essentially you need to go to Apple > System Preferences > Energy Saver.

If you take a look there you should see you can set your display to go to sleep at a certain point and your computer to go to sleep at another point in time (or never, if that's what you need).

Doing so will save you on battery power as your display is asleep, but of course your MBA is still running otherwise.

If you're going to have your MBA plugged into an AC power source when you need the processes to run you'll need to ensure your settings are configured on the Power Adapter tab (as opposed to the Battery tab). Likewise, you'll need to set your Battery tab settings appropriately if you're also going to be running these process while running off the battery.

You'll also see other settings here (depending on your Mac and version of macOS), so you may want to familiarise yourself with the Use the Energy Saver settings on your Mac page on Apple's website.


A single app showing retina-ready and not windows

The reason behind this is that TortoiseHg is not really written for macOS in the first place - it is really foremost a Windows application written using a cross-platform GUI toolkit called Qt.

When porting the program to macOS, the programmers behind TortoiseHg have not used native macOS APIs for implementing their user interface. Instead they have saved a lot of time reusing their existing code benefiting from the cross-platform features of Qt.

Unfortunately this also means that features like Retina do not freely right away. On Windows the support for Hi-DPI displays have just recently begun to improve, so the focus for Windows applications on supporting Hi-DPI displays (Retina) haven't really been there.

For some components used by the programmers the Retina-functionality came "for free" by the virtue of the Qt library using native macOS APIs for rendering. For other components, the pixels are drawn (rendered) by the Qt code itself, and thus without Retina-functionality from macOS.

Therefore you experience programs that exhibit odd behaviours where for example the text is crisp and "Retina", but the icons are out of proportions and "low-resolution".


Update Preferences Panel after using default write

Depends on whether you want to stick with shell, or use applescript. This applescript script gives you a popup for password:

do shell script "defaults write /Library/Preferences/com.apple.alf globalstate -int SomeInteger" with administrator privileges
tell application "System Events" to if (first application process whose name is "System Preferences") exists then
    tell application "System Preferences"
        quit
        delay 1
        activate
        set current pane to pane "com.apple.preference.security"
    end tell
    tell application process "System Preferences" to tell window 1 to tell tab group 1 to tell radio button "Firewall" to perform action "AXPress"
end if

In Terminal, it looks messy:

sudo defaults write /Library/Preferences/com.apple.alf globalstate -int SomeInteger; osascript -e 'tell application "System Events" to if (first application process whose name is "System Preferences") exists then' -e 'tell application "System Preferences"' -e 'quit' -e 'delay 1' -e 'activate' -e 'set current pane to pane "com.apple.preference.security"' -e 'end tell' -e 'tell application process "System Preferences" to tell window 1 to tell tab group 1 to tell radio button "Firewall" to perform action "AXPress"' -e 'end if'

Replace SomeInteger with a value.

Update:

set firewallState to do shell script "defaults read /Library/Preferences/com.apple.alf globalstate"

if firewallState is "1" then
    tell application "System Events" to display notification with title "Switching Firewall from This to That"
    set newState to "2"
end if

if firewallState is "2" then
    tell application "System Events" to display notification with title "Switching Firewall from That to This"
    set newState to "1"
end if

do shell script ("defaults write /Library/Preferences/com.apple.alf globalstate -int " & newState) with administrator privileges

tell application "System Events" to if (first application process whose name is "System Preferences") exists then
    tell application "System Preferences"
        quit
        delay 1
        activate
        set current pane to pane "com.apple.preference.security"
    end tell
    tell application process "System Preferences" to tell window 1 to tell tab group 1 to tell radio button "Firewall" to perform action "AXPress"
end if


Is it possible to set my Mac to hide all windows on waking up?

You have two options, maybe more :

Automator:

Make an Application document
Add the following action:

  Library -> Utilities -> Hide All Applications

Save the App
Add it to your login items

  System Preferences -> Users & Groups -> Choose your User -> Login Items

Voilà!, on next login all open apps will be hidden. Note that with this option, if the automator app have a window, that window will not hide, because this action is for Hide All Other apps

AppleScript: You can use this script, i found it on LiveJournal:

tell application "System Events" to set all_apps to the name of every process whose visible is true

repeat with a in all_apps
    tell application a to try
        repeat with w in (get every window)
            set miniaturized of w to true
        end repeat
    on error
        activate
        tell application "System Events" to repeat (count windows of process a) times
            keystroke "m" using command down
            delay 0.1
        end repeat
    end try
end repeat

Similarly you need to make this script runs on start of your session, maybe you could make an App with Automator but instead using "Hide All Application" Action, you add "Run AppleScript" Action.

In both options, maybe some applications will not be hidden because at the time this runs, not all windows are yet opened.


Is office for the mac the only way I can open and save as word documents?

There are various solutions for dealing with Word documents on the Mac:

Quick Look, built into all versions of OS X since Leopard, can preview Word documents. It doesn’t always get the formatting right, but it’s good for a quick inspection.
Pages, part of the iWork suite, can open (in .doc and .docx) and save (in .doc) Word documents. This isn’t perfect either. One useful feature is that it shows you a list of warnings when you open a document, highlighting Word features used in the document that aren’t supported in Pages. Pages costs $19.99 in the Mac App Store.
NeoOffice is an open-source port of OpenOffice to the Mac, which can open and save to a wide variety of formats, including Word documents. NeoOffice can be downloaded for free from their website.

There are a handful of other word processors on the Mac that can handle Microsoft Word documents (Nisus Writer Pro and Write both spring to mind), but I don’t have enough experience with any of them to say how good they are at handling Word’s formatting.

If you’re using advanced features of Word, or very complicated formatting, then your best experience will be using the native Microsoft apps. But for simple formatting, any of the apps I just mentioned will probably be sufficient. It really depends on what sort of documents you’re likely to be dealing with.


Is it possible to have a shortcut to create bookmarks in Pages?

The shortcut for creating Bookmarks in Pages is: ⌥+⌘+B

See the Insert menu list for details.


iPhone 'My Number' is missing in the settings app - can I get it reinstated?

I can’t reproduce this, but here is how I would troubleshoot it and why:

Put the device in AirPlane mode and then power off.
Start up and then go to settings (still in AirPlane mode) and look at the cellular data information / carrier information / phone information. Perhaps record/screen shot the MEID/IMEI and SIM information.
Open and re-seat your SIM card while in AirPlane mode still.
Connect to WiFi and check for updates, update the iOS to the latest and then disable AirPlane mode.
Power down and back up one more time while cellular and WiFi are enabled.
In the settings app - reset network settings - this should restart one last time.

At this point, you can be sure the SIM isn’t trivially failing and the iOS had a chance to talk to the cellular carriers. At this point, I would back up the device and then erase all content and settings. Now make a tea or coffee and get ready to call/engage tech support for your cellular carrier and explain you’re needing help knowing why your device isn’t working with their service. They can’t really say there’s a bug with iOS or your apps if you’re willing to repeat the reset network settings / power cycle / erase all content and settings. They might say - check with Apple and Apple would say, restore the device and if it still doesn’t work go back to the carrier.

At that point, the carrier is really on the hook for providing you a reason why your service isn’t working. Similarly, Apple support will be a breeze to erase / restore / rule out trivial failures and fix this in almost all cases without waiting hours on either call.


Two way sync a single folder between two Macs via local network

I was in a very similar situation a few years ago. I had a Mac mini and a MacBook. While the Mac mini contained all the tracks I wanted to use the MacBook like a giant iPod (sync star ratings, renamed songs, etc.).

Solution: iTunes Match (music only)

Subscribe to iTunes Match on your main iTunes Library.
Wait for iTunes to upload/verify all unmatched songs in your library.
On you other Mac, turn on iTunes Match.
As soon as both libraries are updated, you can change a songs Metadata and it will sync over the internet.

Note:

It's a bit of a pain in the neck to wait for iTunes to upload all unmatched songs. But once that's achieved, it works like magic.


Is there a way I can take pictures and videos out of iCloud without losing metadata?

If you have Photos set to keep the originals on your Mac you already should have everything in your Photos library. Nevertheless syncing may fail sometimes so to be on the safe side you can request the content of your iCloud library directly from Apple:

Go to https://privacy.apple.com/
Log in with the Apple ID used for iCloud
Select the option to request a copy of your data
Scroll down to request your photos (and other iCloud content if applicable)
You can select the size of the ZIP files Apple creates. As you will have to select each file individually afterwards, go with the largest size (if your Internet connection is stable)

It will take up to seven days for Apple to prepare your downloads, you will get a mail with a link.


My question is: what is protecting ~/Pictures from deletion, and how can I turn it off?

In macOS Catalina the Users > $USER > Pictures folder, aside from ACL's set on it, it is being protected by System Integrity Protection (SIP).
Even using sudo chmod -N Pictures, while in the Home directory in Terminal, the directory can not be deleted unless done from macOS Recovery using Terminal without turning off SIP.

Caution: This will remove the Pictures directory and everything in it!

Example:
rm -r "/Volumes/Macintosh HD - Data/Users/name/Pictures"

Replacing name in /name/ with your short name, the name of your Home directory.
Replacing Macintosh HD as appropriate if you've modified the default name.

If you want to be able to delete if from a normal running occurrence of macOS Catalina, not macOS Recovery, then you will need to turn off SIP from macOS Recovery using Terminal from the Utilities menu.
csrutil disable

You could then immediately use:
csrutil enable --without fs

This way, except for the filesystem, the other protections offered by SIP are still in play.
Personally, I do not recommend doing this and would opt for deleting it from macOS Recovery without turning off SIP and then once booted back to normal mode macOS Catalina... I'd create the directory from Terminal while setting it hidden with SetFile, applying ACL's to prevent any modifications while also removing all normal privileges (rwx), all in the hope that Apple doesn't mess with it until the next upgrade.
That said, if your are the type that always shows all files including the hidden ones, then what's mentioned in the paragraph above is a moot point.

Notes:
To boot to macOS Recovery from a running occurrence, normal mode boot, of macOS, you can use the following compound command from Terminal:
sudo nvram "recovery-boot-mode=unused"; sleep 2; sudo reboot

Then before rebooting from macOS Recovery, in Terminal from the Utilities menu, run:
nvram -d recovery-boot-mode

The latter is not necessary in some versions of macOS, however, it doesn't hurt either way.


Why does SystemUIServer try to talk to my router via UDP port 192?

UDP port 192 is used for Apple’s AirPort base station discovery and configuration.
SystemUIServer is responsible for the menu bar icons, including the AirPort Wi-Fi icon and its information about the wireless connection.

According to http://hints.macworld.com/article.php?story=20110105044728511, this menu bar item requests information about wireless connections to display that information in the menu bar item, and that disabling this icon stops the connections on port 192 while not actively inspecting network configuration otherwise.


If I store music in CloudDrive, can I play it in somehow?

No. Unless you use a specific third-party app that allows this (I don't know of any) then synchronisation of music from a computer to an iOS device with iCloud Drive is not possible.

However, you may find that iTunes Wi-Fi syncing sufficiently solves the problem you describe of having to physically connect your iOS device to your computer in order to synchronise media.


Apple TV YouTube "Error occured loading this content"

Start the YouTube application on your Apple TV
scroll to the right to "settings" in your menu
click "settings" and go to "clear cookies"
choose "clear cookies" and start playing your videos again.


How to use terminal to copy a file to the clipboard?

If I'm understanding the question right, what you're after is pbcopy and pbpaste.
Open a terminal and run:
cat ~/Desktop/ded.html | pbcopy

The file is now in your clipboard.
To put it somewhere else (i.e. paste it) run:
pbpaste > ~/Documents/ded.html

Now you should have a copy of ded.html sitting in ~/Documents.


ZSH issue with colorized prompt and double slash, i.e "//" appearing when I am into root

How to make path prompt easier to read by color-coding each `/` (forward slash)?

Change the for loop from

for (i=1; i<=NF; i++) \
 printf blue $i pink "/"; \
printf "\n"

to

for (i=1; i<NF; i++) \
 printf blue $i pink "/"; \
printf blue $NF pink; \
printf "\n"

notice the change in <= → <
Take care of semi-colons.

or use some help from searching to get an if else condition for which the pseudocode (not correct bash syntax) is:

for all i<=NF:
 if (i<NF):
   printf blue $i pink "/" ;
 else:
   printf blue $i pink ;
printf "\n";


Started receiving copies of text messages sent on other phone after upgrading to iOS 7

You need to look in Settings > Messages > Send & Receive > You can be received by iMessage at... and also Start new conversations from.

It looks as though your Apple ID has become set to receive messages on both (all) devices.  Ensure that only the phones unique phone numbers and non-shared email address for Apple ID/iCloud accounts are included on each device.

For future consideration, note that iCloud/Apple ID accounts are free, and that on each device you log into iCloud services (like mail, calendars, imessage etc) separately from the App Store, so if you share an account for the purpose of sharing downloads (and I see no other reason to do so) then you should consider using that account for App Store usage only, and each have an individual iCloud account for all other functions, that way you won't ever cross contaminate each others stuff.


AppleScript to connect Magic Mouse on iMac

It sounds like you know how to create a systemwide Service or Quick Action, and just need a script to open the actual bluetooth connection.  Test the script below initially in Script Editor, which requires any device you wish to connect to have already been paired (it sounds like this is the case).  All being well, you can be reasonably confident it will work if you transplant it into an Automator workflow (if you first get rid of any sample code that appears, i.e. on run {input, parameters} etc.

use framework "Foundation"
use framework "IOBluetooth"

property this : a reference to the current application
property nil : a reference to missing value
property _1 : a reference to reference

property IOBluetoothDevice : a reference to IOBluetoothDevice of this
property NSPredicate : a reference to NSPredicate of this

property pairedDevices : a reference to IOBluetoothDevice's pairedDevices
property text item delimiters : linefeed & tab & "- "

to deviceWithName(name as text)
    local name
    NSPredicate's predicateWithFormat:"name==[c]%@" argumentArray:[name]
    tell filteredArrayUsingPredicate_(result) of pairedDevices
        if |count|() > 0 then return its firstObject()
        error {"No device by that name. Available devices:", ¬
            getDeviceNames() of me} as text
    end tell
end deviceWithName

to getDeviceNames()
    (pairedDevices's valueForKey:"name") as list
end getDeviceNames

try
    if deviceWithName("Magic Mouse 2")'s openConnection() ≠ 0 ¬
        then error "Could not open connection."
on error E
    return E
end try

true

NB. This script has only been tested in High Sierra

I'm afraid the error messages are not especially forthcoming with information should something not work as expected.  But, if the device can connect, the script should be manage it.  If it fails to connect, test that you are able to establish a connection manually.


Looks like you're trying all the right things.  I do this with a Drobo for a small number of Macs now.  I have a 2TB volume, but I don't want that to fill up with old TM backups so I just use the sparseimage trick and it works great.

It is unclear why this is getting reset for you.  Perhaps you should try this again.

I found these instructions useful: http://www.somelifeblog.com/2009/02/fixed-time-machine-backup-to-network.html


How do I know on which devices I can use a purchased app?

It's not a question of licensing, it's that the architecture of the Mac & an iDevice are totally different.

The Mac runs on an Intel processor, OS X is based on a unix kernel.

iDevices run on an ARM processor, iOS is [actually idk, but proprietary]
(All iDevices run on the same 'family' of processors, so that is why if you purchase an iApp, you can use it on any iDevice you own.)

Apps for one simply cannot run on the other.

Some apps are made in 2 or more versions, for Mac, iPhone, iPad, even Windows or Android etc, each available from their respective Store.

The App Store 'app' on the Mac is only for Mac Apps. iApps can be purchased either from the App Store on the iDevice, or through iTunes on a Mac/PC.

The licensing model for Apple is that the Apple ID used to purchase an app from the App Store is allowed to use it on any device they own using that Apple ID  [1] [so long as it will physically run, as explained above]
This makes moving from machine to machine easy, but not from ID to ID.
It's pretty much the opposite of the Microsoft model, where an app, or even the OS itself is tied to one machine, using a serial number etc.

 [1]with some exceptions which you can see noted in the Purchases tab in the App Store app.
An example…

Interestingly, the only apps I have that are not shareable are all Freeware anyway, so I could simply re-"purchase" if I needed them on another machine.

Family Sharing extends that licensing model to other members of your family, so all can access the same songs, albums, movies, TV shows, books, and apps on both Mac and iDevices, if they wish, from a single 'purchase'.


Mount and repair disk not recognized (Timed out waiting)

A "time out" means that a command was sent and the system is waiting for a response but didn't get one. Instead of waiting forever, a period of time is hard coded into the utility (diskutil) to wait and once it's reached, it generates the error.
Also, when you see "invalid request" as a response from your disk it means that the controller didn't understand what was supposed to be very much valid.  These two conditions are indicative of a failing (or failed) hardware.
If you have a failing component like the SATA controller on the drive (it's what bridges the SATA interface on the logic board to memory modules in the SSD), you'll never get it working. It may be intermittent where it works for a while but then fails again.  It's like having transmission where all gears but one have some broken teeth on them. You can change the fluid all you want and reprogram the transmission computer, but it won't fix the broken part(s). You might get it working (the unbroken teeth on the gears line up), but hardware failures are pretty much permanent; it'll fail again.
What will happen is you'll have a nice clean "fixed" drive ready to fail at the worst moment. It's better to just spend the $40-60USD and get a new drive and have the piece of mind your data is not at risk.
Possible Recovery
You might still be able to recover the data, but I don't advise doing it on the device itself.  Instead, make an image of the drive and work off of that.   You will need:

A working MacBook that one with a new SSD and clean install is fine.  You can also use a friends.  One that you can leave alone for a while to do recovery operations

A USB3 to SATA cable. This will allow you interface with the drive without having to open up a Mac to connect it to the SATA bus.  Ideally, you want USB3 for the higher transfer speeds.  You can use USB2, but it will take considerably longer.

Recovery Software like DiskDrill (I've used this personally with very good success) or Disk Warrior (other have reported success).  The diagnostic features of these utilities are free so you can use them to see if the data is recoverable. If you want to recover the data, you can purchase a license key that will unlock it.  If you're data isn't recoverable then you're not out any money.

You want to work on an image instead of the device itself.  Stressing out the drive can only compound the problem. It's like our transmission with broken teeth on the gears - continuing to run it will only make it worse, not better.  Same with electronic components - there may be no more spinning drives, but passing electric current, which generates heat through failing components isn't doing them any favors.
You can use the built-in dd command to make an image.
$ sudo dd if=rdiskX of=/path/to/disk.img bs=4M

This will make an image of your drive wherever you decide to put it (i.e. your Desktop - ~/Destktop/disk.image).  Then run your recovery software on the image.  Note:  This is a "set it and forget it" type of operation so, it's going to take some time.  But, once you have the file, you'll be able to copy it and move it and do your operations on it without running the risk of further data loss.


I found a little tool called customdisplayprofiles, which lets you switch profiles by running a command like customdisplayprofiles set /path/to/profile.icc. I put that into a shell script in ~/Library/Scripts/, and now I can switch profiles from the menu bar again. You can find the .icc files in /Library/ColorSync/Profiles/ and ~/Library/ColorSync/Profiles/.


KeyRemap4MacBook

A preference pane with currently about 1500 remapping options. Includes Backquote(`) to Escape and Escape to Backquote(`).

Ukelele

You could create a custom .keylayout like this:

Esc on the layout above worked with all of the things I tested:

OS X UI actions like canceling a dialog and exiting full screen
On some websites with keyboard navigation like Google Search
As a meta key in Terminal.app

Modifying special keys from a .keylayout usually results in some unexpected issues though.


(reposting my answer from your Stack Overflow question in case you don't check that one)

If you have Apple's Boot Camp utility installed in the Windows installation, you should be able to choose the startup volume from its' control panel. Insert your OS X install disc, choose that as your startup volume, and reboot.


Calendar cannot be updated on iPhone 6sPlus

Go into Settings then Mail, Contacts, Calendars. Scroll down to Contacts, open Default Account. Select iCloud.
Done.