/etc is a link to /private/etc, so /etc/ssh/sshd_config and /private/etc/ssh/sshd_config are the same file.

The default sshd_config file in macOS 10.12 looks like this:

#   $OpenBSD: sshd_config,v 1.98 2016/02/17 05:29:04 djm Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# The default requires explicit activation of protocol 1
#Protocol 2

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024

# Ciphers and keying
#RekeyLimit default none

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#RSAAuthentication yes
#PubkeyAuthentication yes

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

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation sandbox
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# pass locale information
AcceptEnv LANG LC_*

# no default banner path
#Banner none

# override default of no subsystems
Subsystem   sftp    /usr/libexec/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#   X11Forwarding no
#   AllowTcpForwarding no
#   PermitTTY no
#   ForceCommand cvs server

File permissions:

-rw-r--r--  1 root  wheel


Framerate in command line usage of Compressor

So
Compressor -jobpath file:///path_to_png_directory?frameRate=60

does the trick.


How can I share Photos across multiple users on Apple Photos, without paying for iCloud?

I guess this is what you're looking for:

Enable iCloud's Family Sharing and iCloud Photo Sharing

If you have iCloud's Family Sharing and  iCloud Photo Sharing enabled, you'll see a special album called "Family" in the Shared tab of the Photos for OS X app, as well as the Shared section of the Photos app on iPhone and iPad. This album will automatically sync with all members within your Family Sharing group.
Share your photos

To add photos to the shared stream, select them and click the Share
button. From there, choose iCloud Photo Library, and select the
Family album. The images will then sync over to your family member's
device.

If you need a deeper explanation: http://www.imore.com/how-use-iclouds-family-sharing-photos-os-x


There is no reason why SMS should be tied to your data package.  Turning data roaming off, indeed just turning data off (if you are not currently roaming and merely want to prove this) should still allow you to send and receive SMS messages as these are sent through the voice connection, not the data one - it's exactly how phones have always been able to send a text before anyone ever had data connections.

So the problem is almost certainly something to do with your config or usage, rather than how the SMS systems works.  I would ask you to check who you are sending to and from (are you using email addresses rather than phone numbers in messages, either as recipients or your sent from address?), and whether you have Settings > Messages > Send as SMS *ON*


Make macbook store apps on one hard drive and data on another

Copy your home directory over to the other drive.
Open up System Preferences then the Users & Groups pane.
Click the padlock to unlock it
Right-click on your name
Change the Home Directory to point to your newly copied one on the other drive.

NB. You might want to use a syncing program to do the copy, or create a different user to do the copy as after rebooting so that your original user isn't logged in and running anything. Makes the copy cleaner.

If you want to do this with a brand-new user, so much the better.

Alternatively, you can use your existing home directory and just sym-link everything over...

Select the folders in Finder on the new drive - ctrl-L (File menu -> Create Alias), then drag the aliases to the old drive and remove the old originals. This is less neat, but works just fine.


How to get apps' ranking in ios app store?

App Annie doesn't get all its data from the App Store.  According to recent stories about their funding rounds, they have hundreds of different sources of data, including:

App Store reviews
social media posts
site scraping
VPN applications
marketers
app developers and publishers
mobile advertisers and traffic managers

App Annie doesn't publicly disclose how it gets all its data.  This story states:

App Annie collects the data largely by distributing high-quality free apps, such as VPN software; it’s one of the most-downloaded such apps in the U.S. Each is free but asks for the right to collect data on apps, usage, and other behavior. Combine enough of these and you eventually get massive reach.

Developers allow the company to access their Google and Apple App Store analytic accounts in return for limited access to their data.  This allows them, and similar companies, to know and compare download and usage stats.


Will LG Ultrafine 5k work with 2012 MacBook pro

Firstly, the Ultrafine 5k only has thunderbolt 3 over USB-C inputs, so you'll need a thunderbolt 2 to USB-C cable to even connect. You should be able to run the monitor at a greatly reduced resolution which is then "upscaled" to 5k. For instance, many people run 4K monitors at 1080p, so the 5k should work at 1080p (or other resolutions <5K) as well.

Upscaling is very common on TVs at the moment, since there is a lack of 4k content, and thus those watching 1080p content on 4k TVs must have their content upscaled. I've attached an article on C|Net discussing upscaling.

Thus in principle it should work. I'd contact the manufacturer directly to make sure. That monitor is not cheap.


Are there any low-level settings in local Directory Service that can increase the blocking time after typing wrong password?

Try using pwpolicy

pwpolicy -n /Local/Default -setpolicy "minutesUntilFailedLoginReset=3"

This will set the policy of a failed login for a local account to 3 mins between logins.

pwpolicy -n /Local/Default -setpolicy "maxFailedLoginAttempts=1"

This will set the maximum number of failed login attempts to just 1 (IMO this is way to restrictive to account for innocent typos)


You can assign a different keyboard shortcut to the Emoji & Symbols menu item.

I usually add/remove a cmd, ctrl, alt or shift modifier when remapping menu items like this.

System Preferences > Keyboard > Shortcuts > App Shortcuts > + (plus button)


How to see previews of old quicktime movies (old codec)

Not sure about the Finder preview function. You would have to find a preview handler written for that specific codec (whatever it might be) and compatible with Yosemite. A bit of searching might find that, if it even exists.

If all you want to do is play the video try VLC at videolan.org it's free and well supported and will not try and covert it, just play it as is.


iTerm2 does not kill processes when tab is closed

I think it is supposed to be a feature instead of a problem.

Generally, to kill a process or just exit the current shell session, you should not use "cmd+w" or click the close button of the window. Instead, you should use "ctrl-c" and "ctrl-d" respectively.

Besides, the following facts may help you,

You can use "cmd+z" to fully restore a tab right after it is closed
The attached session and tasks keep run in background right after you close a tab. You can restore the tab at this point. But if you open a new tab using "cmd+t" now, the background session in the previously closed tab will be killed.

So the "restorable tab closing" is a feature of iterm2, though quite confusing.


Instead of starting Emacs with open you can use emacsclient to send files to an already running Emacs. For this to work you need to start the corresponding server inside emacs by including

(server-start)

in your emacs init file.


Keyboard shortcut to decrease playback speed on YouTube doesn't work with Chrome (on german keyboard layout?)

I have exactly the same problem and found a solution:

Go to Preferences > Keyboards > Input Sources
(Systemeinstellungen > Tastatur > Eingabequellen) and add another
keyboard layout, e.g. "English".
Activate the keyboard input in the menu bar (checkbox below called
"Eingabequellen in der Menüleiste anzeigen" in German).
Now you can switch the keyboard layout to English and then
Shift-press "," or "." on YouTube in order to slow down or speed up.

  Background information:

  On US/UK keyboards the < and > symbols are on two different
  physical keys next to the m key and both of them have to be
  shift-pressed.

  On a German keyboard the < and > symbols are both on the same
  physical(!) key (right next to the left shift key).

  Probably this is the cause problem, so the < does not get detected,
  because YouTube thinks both functions (speed up, speed down) need the
  shift qualifier pressed simultaneously.


Will old Apple Watch models work with AirPower?

Yes!

  AirPower works with the new series 3 Apple Watch, as well as the Apple
  Watch Series 2, the original Apple Watch, the Appel Watch Edition,
  Apple Watch Hermes, and the Apple Watch Nike+.

https://www.macworld.com/article/3224389/mobile-accessories/apple-airpower-features-specs-price-faq.html


Where to find the build number INSIDE an install DVD of Mac OS X

Check the SystemVersion.plist file that is on the Install Media.

Within the install media is the file containing the Build number, it is located at /System/Library/CoreServices/SystemVersion.plist

The string value for the Key ProductBuildVersion is the information you are looking for.

Note: This tip is useful for getting the Build versions on any OS X bootable disk, regardless of install ability.


Is it possible to delete a customer review that contains wrong information?

As of January 2015, you can in Itunes Connect:

Sign in to Itunes Connect
Go to "Contact Us"
Choose "App Store Questions"
Choose "Customer Reviews"
Choose "Specific Removal Request"
Click on the 2nd "contact us" link. A form should appear.
Fill in the form and push "Submit"
Wait for Apple to contact you.


Sequential LiveFont display with different text sizes in Motion

After some more tinkering, I found that I could get it to work by selecting the different sections of text and adjusting the "Hold First" attribute in the Format inspector. This is still a little tedious, but not nearly as bad as making multiple text boxes.


No, installing apps 'without asking any permission' is definitely impossible. Attempting to install an enterprise app over the air will prompt upon attempted installation and the first attempted launch of the app. This is un-negotiable.

You can install apps over the air using enterprise distribution. This allows you to set up a 'portal'-like page which people can download the app from. A plist is downloaded to the device informing it of the location of the app bundle and some information about the app itself. For an example of this, see the Stack Exchange iOS app beta. For more information about enterprise distribution, see the guides available in the Member Centre.


Is it possible to install Ubuntu on my iPod Touch 2G?

It's possible, but very impractical for several reasons.

Ubuntu is built for Intel x86/x64 officially, and unofficially for the PowerPC (old Macs and the PS3). iPod/iPhone/iPad is built off the ARM architecture, meaning you'd need to do a full rebuild of every single package.
You'd have to exploit the phone to load Ubuntu on to it, and use an exploited bootloader to load anything but a signed iOS.
You'd have to write custom drivers for everything you expected to work, such as the webcam, virtual keyboard, etc.

I'd look into the progress of Android on iPhone. Last I know, Froyo was running alright on an iPhone 3G. Since the full chain of trust has been compromised on all devices except the Verizon iPhone and the iPad 2, it's possible, but the Android port is suffering all the issues I listed above.

Edit: Ubuntu will also expect much more RAM and a much faster processor than the older iDevices have, but the newer devices are more up to par.


How to map a static external IP to static internal IP on Apple Airport extreme

I use a utility called Port Map to do this. It allows you to manually make the same calls things like Facetime and iChat do to map ports for file transfers, etc. It's free, simple, kid tested, mother approved.


Apple doesn't offer a way to move iWork licenses to the App Store. There isn't much to gain from such a move anyway because new major releases of iWork have (at least til now) always be sold as full versions only (which still was cheaper than e.g. MS Office upgrade versions).


Finder can't authenticate even though I am the admin

Based on the list of accounts, it appears to be that you're not an admin and there is no admin account on your computer. You'll need to create an admin account by running Setup Assistant again.

  Boot into Single User Mode ⌘ + S.
  Mount the drive by typing /sbin/mount -uw / then ↩ enter.
  Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ enter.
  Reboot by typing reboot then ↩ enter.
  Complete the setup process, creating a new admin account.


What's the point of airplane mode on a wifi-only iPad?

It's a feature kept on iOS so that you can quickly turn off both Wifi and Bluetooth.


You can export your movie to a format of your wishes (.avi, .dv, ...) and then you can burn this on a disk with a suitable software suite (Roxio Toast or with the built in software of Lion/Mac OS)

EDIT: for free, software, I would recommend you use Burn


Lion - automatic file versioning - details

The only information has released to non-Mac Developer Program members is the following.

  If you have a document-based application, Lion offers an efficient, built-in auto save feature that stores changes to the working document instead of creating additional copies on a disk. Versions automatically records a history of changes made to your documents and lets your app display a Time Machine like interface so users can browse through previous versions. ADC

There is more information available for Mac Developer Program subscribers. The information, however, is currently restricted by a non-disclosure agreement . The information will most likely be made available for everyone once the final version of Lion is released. This is how Apple have done it in the past.

Personally I am a bit disappointed that Apple chose to go with ‘something else’ instead of the native handling of this offered by the ZFS file system. (As rumored as far back as Leopard.)


Anyone else have problems with "share my location" accuracy

Location accuracy uses (from best to worst) gps, wifi, and cellular triangulation.     Your question would take a lot of text and links to completely answer so I'm just going to try and give it a high-level approach.

Many things have to happen correctly for your husband to get your exact location: you need to have a clear signal from the gps satellite, the cell signal on your iPhone needs to be good with a low latency (delay) sending your coordinates, and if the gps signal isn't very good but there's wifi available to you, the wifi location lookups need to happen quickly (again, over the cell signal).  Now, if you move, this entire thing needs to start all over again.

Cell signals can only triangulate your approximate location between the 3 cell towers.  They can't get an exact location, like a gps signal.  If the cell towers are miles apart, like they usually are, it can report your location as far away from where you actually are.  If the cell signal is bad, it's guessing at your location (based on where you were in that triangle) from the last time it 'saw' you.

Like I said, this is very high-level and it's very easy to go into more detail (and really confuse you!) with a simple Google search.  Why it didn't report your exact location when you were at home, with wifi, I'm not sure.  Maybe it did report your exact location but your husband's cell or wifi signal was poor so he was sent a 'guess' based on the last time his iPhone saw your iPhone.

It's very difficult to troubleshoot these types of issues online.  If you notice this type of inaccuracy happening more often, it could be indicative of a deeper problem with your iPhone so a trip to Apple might help solve the problem.


Update after discussion with bmike (see below)

During an actual Time Machine Backup, backupd mounts two shares. /Volumes/Whatever and /Volumes/Time Machine Backups. While the former cannot be access by a non-root user, the latter can. It is indeed possible to clear ACLs of files and overwrite them subsequently. So the security issue is wide open.

Original answer

Thinking a little more about the underlying mounting system, I came to the view that my original question contained a misguided assumption, the removal of which perhaps makes the question obsolete. I decided to write an answer instead of removing the question for the benefit of the equally misguided.

When I checked the permissions of my sparsebundle files, I manually mounted the Time Capsule disk. Because I mounted the disk as a normal user, this user became the owner of the mount-point (checking in the terminal, I can see that my useraccount is the owner of the mount-point, "staff" being the group).

Now my assumption (which was not transparent to me) was that if Time Machine mounts the disk during a backup session, it would be present in the system just as if I mounted it manually. But this is wrong. For since backupd runs as root, the mount-point belongs to root (checking in the terminal, the owner is "root", the group is "wheel", group and world having no rights.) and thus a process belonging to a normal user would not be able to encrypt files on a Time Machine Disk mounted by backupd.

Thus, in a Time Capsule setup there does not seem to be, for the moment, a danger of a ransomware to encrypt the backup. However, it might be different with a locally connected external harddrive. I vaguely remember that when I still used an external harddrive, I could see the Time Machine partition as mounted in Finder (something I do not now) and thus it might be mounted with user rights. I cannot test this, as I don't have an external time machine harddrive, but maybe someone else can say something about this.


Click on a button (that is not a button ?) with Applescript or Javascript

I found my own answer by digging a little deeper into this.

tell application "Safari"

do JavaScript "document.getElementsByName('files[]')[0].click();" in document 1

end tell

Using getElementsByName and the name attribute 'files[]' was all it took (and by the way was the ONLY way out many, many that worked in this case).


Create a symlink pointing to a variable filepath

Just symlink to /usr/local/opt/macvim/MacVim.app instead, this path remains stable (/usr/local/opt/macvim is a symlink maintained by HomeBrew which points to the currently installed version within /usr/local/Cellar/macvim).


How do I switch first/last name order in the iOS address book?

Go to Settings.
Scroll down and click the Mail, Contacts, and Calenders preference.
Now, scroll until you are under Contacts heading.
Select the Sort Order option.
Choose which way you want to sort your contacts.


What services on macOS might leak identifiable information?

I recently began researching issues related to hardening macOS 10.12. Fortunately I found a thorough "practical guide to securing macOS" on Github. The macOS Security and Privacy Guide (a 56-Page PDF) covers multiple macOS security topics, including application level firewalls; kernel level packet filtering (pfctl); background services (managed by launchd); system daemons; DNS variables; and many, many others.

With regard to your specific question, this "hardening guide" should be a useful resource for an evaluation of background services that might leak PII or other sensitive data. (The section on Spotlight Suggestions was certainly an eye-opener for me). Finally: the guide concludes with links to dozens of "Additional Resources" and "Related Software" involved in hardening macOS.


No, it will complete the purchase request regardless. It just won't run on your device.

If you did make a purchase that doesn't run on your current device, you will have to contact the iTunes team and request a refund.


Location Services not working on Mac Book

I have nearly the same issue!
The Longitude/Latitude is correct, but the Background Picture/Maps/Satellite isn't loaded?
On my iPhone & iPad, in the same WLAN, it works correct, so it can't be an issue of the Router/AccessPoint, it must something wrong in the MacBook
I refused to do an CleanInstall only for this "one" issue. A CleanInstall gives me Dozens of new and other issues!


On iPhone, don't backup videos in a video app to iTunes

On your iPhone go to Settings -> General -> Storage & iCloud Usage -> Manage Storage -> . Here you have Backup Options and you can select which apps to include in the backup.


Re-formatting a external Western Digital My Book drive

With the limited information you have presented, formatting drives with Mac OS 10.0 (2001) to the newest version 10.13 (Dec 2017) has always been the same. I recommend you try mounting any partitions first. If there is data on the drive but your Mac device cannot read it even after attempting to manually mount the drive partitions, then I recommend plugging the drive into a computer with support for the file system being used on those partitions. Ext 1-2-3-4 are all read and writeable by the majority of Linux operating systems, FAT32-ExFAT-NTFS-ReFHS are all read and writeable by most Microsoft Windows operating systems.

Mounting

Open the Disk Utility app located in /EXAMPLE-HDD/Applications/Utilities/Disk Utility.app or by pressing CMD+SpaceBar and typing "Disk Utility" or by manually clicking on the Spotlight Icon in the top right (magnifying glass icon) and typing "Disk Utility", or by opening your LaunchPad and locating Disk Utility.
Expand the Western Digital My Book drive on the left side and right click on the partition you wish to mount, select Mount. (Or Unmount and then try remounting it).

First Aid

Some logical volumes (partitions (file systems)) become corrupt during plug and play or electrostatic phenomena. However if there's enough data left the operating system can correct these errors.

Open Disk Utility (yes again, if you want other recovery software you may choose to use Disk Warrior or a deleted data recovery application).
Located your Western Digital My Book and right click it.
Select Run First Aid...
Click Run or press Enter.
Consider doing the same for any partitions you can access.

Formatting

Open Disk Utility, an application you can find by typing "Disk Utility" after pressing CMD+SpaceBar (or br clicking on your spotlight icon, a magnifying glass in the top right of the screen).
Right click on the drive or any of the partitions and select erase. Choose the appropriate file system format: If you only plan to use to drive on Mac Computers then select one of the Apple Journaling options, if you plan to read and write the drive using anything other than Mac OS devices, I suggest ExFAT.
Name the drive and erase it.

Please Note that there are GUI differences between Mac OS 10.0-10.10 and 10.11-Current (10.13 as of writing this).


Firewall with application rules for iPad

Firewall iP

Firewall iP lets you block connections from apps on your jailbroken iOS device. You can set up custom rules to block/allow certain TCP & UDP connections.

iOS 7

In response to your comment about 3G data, in iOS 7 you can specifically set certain apps/services through your 3G data connection:


Why might my mac be running extremely slowly at times?

There are a lot of possibilities, but worst thing first:

Run /Applications/Utilities/Console.app and check system.log.

Look especially for entries that say something like disk4s3: I/O error.
If you see that, see this: Hard Drive Recovery

Also look at Console Messages.  There are usually a lot of weird messages in there, but look for repeated things occurring at the same time as the slowdowns.

If the app is completely unresponsive for several seconds at a time, particularly if it is giving you the spinning ball cursor, then it is likely a disk I/O issue.  If the app is just slow, particularly if other apps are fine, then it may be trying to do something in the background that happens to involve a lot of time dependent operations (like network chatter) which don't show up in activity monitor because they mostly involve idle waiting.

Graphics issues can also cause weird slowdowns, but that should be something obvious like having a 3D shooter (or iTunes visualization) running in the background, a second display hooked up, or custom graphics drivers installed.

Clear all browser caches, quit all unnecessary apps.

Another possibility to consider is overheating.  Make sure all vents are clear, get a Fan or temperature utility.  But now I'm really reaching.  The answer is likely in the logs somewhere.


iMessage: How do I search for keywords in an individual message thread?

The archive of all the messages is in ~/Library/Messages/chat.db. It's a SQLite database. There are some SQLite viewers that will make it fairly easy to sort this data and either allow you to search it or selectively export some of it to CSV. Alternately if you search for "sqlite to csv" you'll find some more information on exporting it. Unfortunately this is a big weakness of iMessage.


How to script Network Preferences using the CLI

Try networksetup ...  From man networksetup .. NOTE must be an admin to run it.

DESCRIPTION
The networksetup command is used to configure network settings typically configured in
the System Preferences application. The networksetup command requires at least admin
privileges to change network settings. If the "Require an administrator password to
access system-wide preferences" option is selected in System Preferences > Security &
Privacy, then root privileges are required to change network settings.

You can make changes to many OSX network settings using similar tools to linux platforms, using networksetup ensures everything running is properly informed, settings are saved, and upon reboot those saved values are still usable (exactly as if you had used System Preferences) - see this answer to another networking questions that talks about how that works.

The basic reason is that macOS has two different levels of network configuration: the live state (which ifconfig en0 down changes) and the "configuration database" which corresponds to the settings created in the Network pane of System Preferences and/or the networksetup command.

In this particular case the -setwebproxy and -setsecurewebproxy options change the proxy settings for a particular network service - e.g. HT user3439894 - these set the proxy on the Wi-Fi network service.
networksetup -setwebproxy "Wi-Fi" localhost 8080
networksetup -setsecurewebproxy "Wi-Fi" localhost 8080

Depending on the actual network configuration will need to choose the appropriate service..

-setwebproxy networkservice domain portnumber authenticated username
password

Set Web proxy for networkservice with domain and port number. Turns proxy on. Optionally, specify on or off for
authenticated to enable and disable authenticated proxy support.
Specify username and password if you turn authenticated proxy
support on.

AND to turn off then look for

-setwebproxystate networkservice on | off

You can also use locations to quickly switch between network configurations - these are much easier to setup in the GUI.  System Preferences -> Network  (Edit Locations on the Locations dropdown).  However, once setup, network setup has an easy way of switching (assuming you had a location named viaProxy or _to revert standard -
networksetup -switchtolocation viaProxy
networksetup -switchtolocation standard


Change background of terminal based on host

I believe this is exactly what you want:

https://stackoverflow.com/questions/157959/how-do-i-make-the-apple-terminal-window-auto-change-colour-scheme-when-i-ssh-to

All credit goes to Yurii Soldak:

Put following script in ~/bin/ssh (ensure ~/bin/ looked before /usr/bin/ in your PATH):

#!/bin/sh

HOSTNAME=`echo $@ | sed s/.*@//`

set_bg () {
  osascript -e "tell application \"Terminal\" to set background color of window 1 to $1"
}

on_exit () {
  set_bg "{0, 0, 0, 50000}"
}
trap on_exit EXIT

case $HOSTNAME in
  production1|production2|production3) set_bg "{45000, 0, 0, 50000}" ;;
  *) set_bg "{0, 45000, 0, 50000}" ;;
esac

/usr/bin/ssh "$@"

The script above extracts host name from line "username@host" (it assumes you login to remote hosts with "ssh user@host").

Then depending on host name it either sets red background (for production servers) or green background (for all other). As a result all your ssh windows will be with colored background.

I assume here your default background is black, so script reverts the background color back to black when you logout from remote server (see "trap on_exit").

Please, note however this script does not track chain of ssh logins from one host to another. As a result the background will be green in case you login to testing server first, then login to production from it.

In the same post, Chris Page writes:

A lesser-known feature of Terminal is that you can set the name of a settings profile to a command name and it will select that profile when you create a new terminal via either Shell > New Command… or Shell > New Remote Connection….

For example, duplicate your default profile, name it “ssh” and set its background color to red. Then use New Command… to run ssh host.example.com.

It also matches on arguments, so you can have it choose different settings for different remote hosts, for example.


What can you tell applications to do using AppleScript?

There is a feature in the Applescript editor called the Library. it can be accessed through Window > Library on the top navbar, or with the shortcut Shift+Command+L. You can double click on the applications there, and you will see all functions, variables, etc.

The windows looks like this. Double clicking shows a new window with all possible functions, vars, etc for Applescript, and even Javascript and Objective-C. You can select those in a dropdown.

Data Types

In the window explaining possible actions, you will see a tag and an icon next to it. The icons represent the type. S stands for Suite, E stands for element, blue C stands for Class, purple C stands for class or collection, and purple P stands for property.

Say we have this example:

tell application "Safari"
set a to URL of current tab of first window
end tell

URL is a property of the type tab, current tab is also a property, but of the window. This is one way to use classes. The other way would be something like:

open n
From the standard suite, this would open the object n.

AFAIK, Suites and elements do not have special treatment in Applescript

as @user3439894 mentioned in the comment section: If the application you are looking for is not in the library, you can open it's dictionary with Shift+Command+O, and selecting the app.

There is also a search for a certain keyword.

Let's say we want to learn how to use System Events to do press a key. If we search, we see that there is something called keystroke in the Processes Suite, and shows a description of:

keystroke v : cause the target process to behave as if keystrokes were entered
keystroke text : The keystrokes to be sent.
[using command down/control down/option down/shift down or list of command down/control down/option down/shift down] : modifiers with which the keystrokes are to be entered


"XXX can't be opened. You should move it to trash." for flash projector applications on mac os sierra

This is actually a macOS Gatekeeper issue try these steps:

To resolute Gatekeeper issues on macOS Sierra you might have to partially or completely disable Gatekeeper checks.

Option I
For a certain application run in Terminal:

sudo xattr -rd com.apple.quarantine /Applications/[LockedApp].app

Option II
To disable checks globally run in Terminal:

sudo spctl --master-disable


Have you checked that Auto Brightness is on?

Go to settings>brightness you then have a slider to change the brigntness of the screen and the auto brightness switch.

If this is on, it uses the light sensor by the camera to adjust the brightness with the ambiant light.


Capturing text with a bookmarklet in IOS7

AFAIK it's no longer possible.

Tried looking at the contents of window.getSelection() by remote debugging my iPhone through Safari. Text is indeed deselected. But even visually, I'm able to see that text is deselected when you tap a link or open the bookmarks menu.

In regards to describing this as "broken", I suppose it's a matter of how you look at it. It could be argued that deselecting is the correct behavior and therefore I doubt it's something that'll get "fixed".


How to print from Google Docs in Safari?

I have not found a way to get the print dialog box to appear in Safari.  Instead I have created a script that will check when something is downloaded and see if it is from Google Docs. If it is then the document will be opened in Preview with the print dialog box. Basically giving you similar functionality you have in Chrome. You can then print it as you normally would.

Here's the script. Save it to /Library/Scripts/Folder Actions Scripts/:

on adding folder items to this_folder after receiving added_items
    repeat with i in added_items
        set myPath to the POSIX path of i
        if myPath ends with ".pdf" then
            set myLocation to (do shell script "mdls -name kMDItemWhereFroms " & the quoted form of myPath)
            if myLocation contains ".google.com" then
                tell application "Preview"
                    activate
                    print i with print dialog
                end tell
            end if
        end if
    end repeat
end adding folder items to

The script will need to be added as a Folder Action. Follow instructions below:

Navigate to the Downloads folder
Right click on the Downloads folder and select Services>Folder Actions Setup

Select the script that saved and click Attach
Make sure Enable Folder Actions is checked in the upper left
Test a Google Doc


Is there a way to Reindex/"Reinstall" AirPlay Devices in OS X?

Typically when I see issues with AirPlay, particularly when you've taken the troubleshooting steps that you have already, it is a network issue and not a software issue.

So here are a few things to try/verify:

Can you AirPlay from this Mac to other AirPlay receivers?
Are you on the same physical network as the AirFoil receiver (including same Wi-Fi network—and the same frequency band (2.4 GHz vs. 5 GHz)?
Is Bonjour working?
Are all multicast filtering options disabled on your switch/router (or conversely, is multicast traffic permitted)? Note that if your router autoupdates, a setting or default may have changed.
Have you tried temporarily disabling all firewalls on both machines?


Disable Growl Notification When a Certain App is Running

Full credit to @ghoppe over at Super User for this excellent answer.  I'm only duplicating it here because a moderator on Meta suggested that it would be appropriate to do so.
Please note that this solution will suppress Growl when VLC (media player) is running.  To make it work for another application (e.g. QuickTime), you'll have to modify the Applescript.  If you've tried yourself but still need help, I would suggest posting a question about it over at Stack Overflow.
Original answer follows:

Enter in Applescript Editor, save as application, when saving check the box "Stay Open". Use this new applescript application to launch the VLC application.
Description: It will launch VLC, turn off growl notifications, check every 2s to see if VLC has quit, if so it will turn growl notifications back on and then quit. As a bonus, it will use growl notifications to notify you when growl notifications will be turned on or off.

global Growl_was_Loaded
global VLC_is_Loaded

on run
    set Growl_was_Loaded to isAppLoaded("GrowlHelperApp")
    set VLC_is_Loaded to isAppLoaded("VLC")
    launchVLC()
    idle
end run

on idle
    set x to isAppLoaded("VLC")
    if x and not VLC_is_Loaded then
        launchVLC()
    else if VLC_is_Loaded and not x then
        set VLC_is_Loaded to false
        if Growl_was_Loaded then
            tell application "GrowlHelperApp" to launch
            growl_notify("Growl notifications have been turned ON")
        end if
        tell me to quit
    end if
    return 2 -- wait 2 seconds
end idle

on launchVLC()
    tell application "VLC" to launch
    if Growl_was_Loaded then
        growl_notify("Launching VLC… Growl notifications have been turned OFF")
        delay 1
        tell application "GrowlHelperApp" to quit
    end if
    set VLC_is_Loaded to true
end launchVLC

on isAppLoaded(app_name)
    tell application "System Events"
        set app_list to every application process whose name is app_name
        if the (count of app_list) > 0 then
            set x to true
        else
            set x to false
        end if
    end tell
    return x
end isAppLoaded

on growl_notify(msg)
    tell application "GrowlHelperApp"
        set the allNotificationsList to {"Growl Toggler"}
        register as application "Growl Toggler" all notifications allNotificationsList default notifications allNotificationsList
        notify with name "Growl Toggler" title msg description "" application name "Growl Toggler" icon of application "Automator"
    end tell
end growl_notify


Multiple apple account on the same mac wait 90 days to download?

it all has to de with media rights. some things that are available in 1 country do not necessarily have to be available in another country


iCloud two-factor authentication on OS X Yosemite

As outlined in the Apple support document, Availability of two-factor authentication for Apple ID:

  Two-factor authentication is available to iCloud users with at least one device that's using iOS 9 or OS X El Capitan or later.

Since your iOS devices are running iOS 11, you should be covered.


I want to sign into a different App Store account but keep the same Account in FaceTime

The account signed in to iTunes & App Store is independent to FaceTime and iMessage. You can freely log out of one without affecting the other.


I've resolved the problem myself. Here is the guide :

In Alfred ( make sure you have Powerpack ), make a shellscript in extensions:

/usr/bin/open -a "/Applications/Google Chrome.app" {query}

Create an extensions in hotkeys which use our created extension with the argument is selected text in OS X.

Set your keyboard shortcut. And now, when you want to open selected url, just select the url then press your keyboard shortcut.


If you install Emacs via homebrew it installs both to /usr/local/bin and to /Applications.

$ ll -d /usr/local/bin/emacs /Applications/Emacs.app
lrwxr-xr-x  1 root     admin  34 Jan 12  2019 /Applications/Emacs.app@ -> /usr/local/opt/emacs-mac/Emacs.app
lrwxr-xr-x  1 verence  admin  50 Mar 27 20:02 /usr/local/bin/emacs@ -> ../Cellar/emacs-mac/emacs-26.3-z-mac-7.9/bin/emacs


Why can't I add new m4v videos to my iTunes library?

Are you sure you're looking in the right Media section of your library?  Try looking in Music Videos, TV, etc, in case iTunes is putting it in the "wrong" section.


Is there a way to capture the current cursor image in OS X

You can use the CLI:

screencapture -T 5 -C /path/to/file.png

-T <seconds> is the delay before taking the screenshot. -C captures the cursor in the screenshot.

Related: Taking a screenshot of a tooltip


Why does OS X require admin privileges to unmount a drive from the terminal using `umount` but not when using Finder?

umount is a UNIX command that adheres to the traditional UNIX perspective that unmounting a filesystem is a system administration task.

The rationale behind is that unmounting a filesystem, if poorly planned or executed, could be disruptive, even destructive, especially on a multiuser system. So regular users are protected from this potentially dangerous command and only root or a privileged user is allowed to execute it.

This makes a lot of sense when UNIX is used as a server operating system, but a UNIX-based desktop OS (for example, OS X or Ubuntu) has other needs: any user should be able to unmount flash drives, removable harddrives, etc.

The Finder and diskutil (see man diskutil for more information) work this way. For example, I can open Terminal and successfully run:

$ diskutil unmount /Volumes/Untitled
Volume Untitled on disk2s2 unmounted

whereas umount fails:

$ umount /Volumes/Untitled
umount: unmount(/Volumes/Untitled): Operation not permitted

What is the Finder or diskutil doing differently? Behind the scenes, they send a request to a daemon called com.apple.SecurityServer (see man page for more information), which grants the right to unmount the filesystem:

$ tail -f /var/log/system.log
Feb  6 16:57:37 avallone.local com.apple.SecurityServer[17]: Succeeded authorizing right 'system.volume.removable.unmount' by client '/System/Library/CoreServices/Finder.app' [171] for authorization created by '/System/Library/CoreServices/Finder.app' [171] (100013,0)
Feb  6 16:57:37 avallone.local com.apple.SecurityServer[17]: Succeeded authorizing right 'system.volume.removable.unmount' by client '/usr/sbin/diskarbitrationd' [18] for authorization created by '/System/Library/CoreServices/Finder.app' [171] (100002,0)
Feb  6 17:01:46 avallone.local com.apple.SecurityServer[17]: Succeeded authorizing right 'system.volume.removable.unmount' by client '/usr/sbin/diskutil' [646] for authorization created by '/usr/sbin/diskutil' [646] (100013,0)
Feb  6 17:01:46 avallone.local com.apple.SecurityServer[17]: Succeeded authorizing right 'system.volume.removable.unmount' by client '/usr/sbin/diskarbitrationd' [18] for authorization created by '/usr/sbin/diskutil' [646] (100002,0)

This allows any user to unmount a drive without requiring additional authentication. (Ubuntu has a similar philosophy. If you are interested, take a look at this answer on AskUbuntu.)

To support the behavior explained above the Finder and diskutil use several Apple frameworks:

$ otool -L $(which diskutil) | grep Disk
/System/Library/PrivateFrameworks/DiskManagement.framework/Versions/A/DiskManagement (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
$ otool -L /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder | grep Disk
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages (compatibility version 1.0.8, current version 344.0.0)
/System/Library/PrivateFrameworks/DiskManagement.framework/Versions/A/DiskManagement (compatibility version 1.0.0, current version 1.0.0)

umount, on the other side, is only linked to this dynamic library:

$ otool -L $(which umount)
/sbin/umount:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)

(/usr/lib/libSystem.B.dylib uses several other libraries, but isn't linked to any framework.)


Mavericks input source is set to US keyboard in login screen

I always got the french layout instead of canadian french at logon screen.
Here's the solution that worked for me:

I found that Logon keyboard layout (i.e. french) correspond to:

defaults read /Library/Preferences/com.apple.HIToolbox.plist
The desired keyboard layout (i.e. canadian french) is saved here:

defaults read ~/Library/Preferences/com.apple.HIToolbox.plist
(Notice the ~ !)
To resolve this I changed the logon keyboard to the desired one by overwriting the .plist file (after ensuring that the source plist doesn't contain any occurrence of the unwanted layout):

View the file with plutil -convert json ~/Library/Preferences/com.apple.HIToolbox.plist; vi ~/Library/Preferences/com.apple.HIToolbox.plist; plutil -convert binary1 ~/Library/Preferences/com.apple.HIToolbox.plist and ensure that there is no occurrence of the unwanted layout (even in the History).
sudo cp ~/Library/Preferences/com.apple.HIToolbox.plist /Library/Preferences/
sudo chmod 644 /Library/Preferences/com.apple.HIToolbox.plist

Log off and it's OK. :)


MacBook has 2 guest accounts, one with a password that I never set

If I purchased a open box computer, The first thing I would do is erase the entire internal drive and reinstall the operating system.

My preferred method, for erasing and reinstalling, is to use a flash drive. The instructions are given at How to create a bootable installer for macOS.

Once booted from the flash drive, I usually erase all previous partitions and create a single partition for the installation of macOS. This can be done by using Disk Utility application included on the flash drive. More information can be found at How to reinstall macOS. Look for the section "Decide whether to erase your startup disk".


How to add characters (accents) to the press and hold character picker in macOS Big Sur?

This is to address productivity and not specific question.
If I am not mistaken then czech language includes letters like á, č, ď, é, ě, í, ň, ó, ř, š, ť, ú, ů, ý, ž. So ě is small subset of root problem: need to write in czech (or any other language with special characters).
Keeping this in mind there are several approaches which one can pursue to address the root problem.

I found switching layouts for each language is somewhat unpractical.

There is built-in shortcut (which may or may not need to enabled/set up): System Preferences > Keyboard > Shortcuts > Input Sources > 'Select the previous input source', 'Select next source in input menu'
After adding needed layout(s) and enabling shortcut it is very simple to switch layouts without need to raise your hand from keyboard. If one is familiar with language specific layout IMHO it is by far the simplest solution.
There is also selection under 'Input Sources' labeled 'Automatically switch to a document's input source' which can be used to automate switching.
Alternatively, there is keyboard layout in input sources called 'ABC extended'. If one uses this then there are handy shortcuts for different accents. NB! these shortcuts may or may not conflict with 'personal' shortcuts set up.
Hachek caron:

⌥ + V,  followed by letter (like c, e, n, r, s, z or special cases l and d) -> č, ě, ň, ř, š, ž, ľ, ď

Acute:

⌥ + E followed by letter (like a, e, i, o, u, y) -> á, é, í, ó, ú, ý

U-ring:

⌥ + K, followed by letter (like u) -> ů

Alternatively, there is 'Character viewer' which pop-up window can be invoked with  ⌃ + ⌘ + SPACE. After adding characters needed to 'Favorites' one can use use arrow keys for navigation to needed letter and enter it to the text.


Locating an app by its bundle identifier from the command line

The magic command is:

mdfind kMDItemCFBundleIdentifier = "com.zerotier.ZeroTierOne"

You can determine this by working backwards from mdls foo | grep kMDItemCF

So if you didn't know iPhoto's CF Bundle Identifier:

Mac:~ me$ mdls /Applications/iPhoto.app | grep kMDItemCF
kMDItemCFBundleIdentifier           = "com.apple.iPhoto"


How to solve "User is not in sudoers file, incident reported"

sudo exclusively uses account names, not the user's full name. As a hint, account names don't contain spaces, so "Syammala Naidu" is not correct.
To find out a user's account name:

Open Terminal and run:
id -un

or, alternatively:

Open System Preferences.

Select Users & Groups.

If necessary, click the lock on the bottom left corner of the window and type an administrator's name and password to unlock the preference pane.

Right-click the account and select Advanced Options....

Locate the Account name property:

Use that account name in /etc/sudoers. To edit the file, use visudo. For more information, check man visudo and man sudoers.


Turning on FileVault fails on MacBook Pro with 'disk in use by driver' error

You can try using the command line version, fdesetup. The simplest method of doing so is opening Terminal (in /Applications/Utilities) and typing

  sudo fdesetup enable

Once you put in your username(type it exactly as shown in the terminal window before the ":~" ) and password, it will give you a recovery key. Write it down and double check it! This is your only way back into the system if you forget your password.

Reboot the computer and the process should begin.

If that gives you the same error, you can try doing a deferred process.

NOTE TO ALL:

Do not do this method if you have a mac with a Fusion Drive in it.

To do so, open Terminal and type:

  sudo fdesetup -defer ~/Desktop/recovery.plist

This will run full disk encryption at reboot, so everything will be closed. The user you are logged in as will be the default username/password used to unlock your encrypted drive.  Since this method will not display the recovery key, it will be saved on your Desktop as "recovery.plist". Treat this as your password, it is just as powerful. Once you reboot, write this down somewhere safe.

Hopefully this works out for you, and as always, be sure to make an unencrypted backup before you do this, just to prevent any data loss.


How to uninstall completely "Blackberry Device Manager"?

You may want to try getting rid of the related files in /Library/LaunchDaemons and /Library/LaunchAgents.

Those will all start with com.rim.*, so you can run:

sudo rm /Library/LaunchDaemons/com.rim.*
sudo rm /Library/LaunchAgents/com.rim.*


Stopping iMessage from displaying texts and iMessages on my MacBook screen

Have you tried the following from Apple's website:

  OS X Yosemite: Turn off notifications

  If you don’t want to see notifications in the top-right corner of your
  screen, you can turn them off. You can turn off notifications for
  certain apps, or turn off all notifications during specified times by
  setting Do Not Disturb. For example, you can turn off notifications
  sent from the Calendar app, or turn off all notifications for when
  you’re asleep.

  Turn off notifications for an app

  Choose Apple menu > System Preferences, then click Notifications.
  Select the app on the left, then choose None below “[App] alert style” on the right.

  The app’s notifications won’t appear on your screen. If you also don’t
  want to see the app’s notifications listed in Notification Center,
  drag the app down, to the Not in Notification Center list on the left.


Different keyboard for different programs?

For Vim case, you could use Option+[ key combination, which is essentially equal to Escape. This is the default behaviour. True, it is two-key combination, but with little practice, you won't need to move your hands off the keyboard.

For the other applications you could use Karabiner problably.


I have 2 mailboxes in mail, but only 1 combined inbox

Click the little disclosure triangle beside "Inbox" and Mail will show you the separate Inboxes.


Everything must first be on iTunes before it can be put on the iPhone. If the playlists and songs are not on iTunes on this new computer, it won't work, and syncing will only erase what you have on the iPhone, as it apparently has.

In this case, all you can do to recover is:

Restore from a backup previous to trying to sync music to this new computer, recovering the previous, imperfect iPhone state, or
Ideally, get the playlists and songs all loaded and working in iTunes first, then you can sync them to the iPhone.


Automatically make QuickTime fullscreen when opened

QuickTime Player doesn't have a Preferences... menu command like other applications do, nor does it have a com.apple.quicktime.plist file to manipulate. Therefore there isn't anything you can do directly, however here is a workaround of sorts.

Note that this workaround requires changing the default application for file types, e.g. .mov, you'd normally open directly with QuickTime Player to the application created herein, called: QTP Full Screen.app

Using Automator create a new Application and add a Run Shell Script Action.

Change: Pass input: [to stdin] to [as argument]

Add the following code:

if [[ ! -z $1 ]]; then

    open -a "QuickTime Player" "$1"

    osascript -e 'tell application "QuickTime Player" to activate' \
              -e 'delay 1.5' \
              -e 'tell application "System Events" to keystroke "f" using command down' \
              -e 'delay 1.5' \
              -e 'tell application "QuickTime Player" to play front document'
fi

Save it as an Application named: QTP Full Screen

In order for QTP Full Screen to be the global default app for, e.g. .mov, files you'd open in QuickTime Player you'll have to use the Default Apps Preference Pane, RCDefaultApp by Rubicode to change which application opens a given Extension.

Install RCDefaultApp and then in System Preferences > Default Apps select the Extensions tab and scroll down to mov and then change the Default Application: to: QTP Full Screen

Now then you double-click .mov files in Finder or accessing them from Spotlight the QTP Full Screen application will open the target file in Quick Time Player, set View to Full Screen and start playing the file.

Note: If you do not want it to automatically start playing the file then remove the line of code, the one that has "play front document" in it.

If you need modify other default methods of file types, Apps, URLs, UTIs, etc. the Default Apps Preference Pane, RCDefaultApp by Rubicode, is a great utility for it.

To make the QTP Full Screen.app application bundle look better in the Applications folder you can copy and paste the QuickTime Player.app application icon from its Get Info sheet to the icon of the Get Info sheet for QTP Full Screen.app.

Note:  The value of the delay statements can be adjusted in seconds and or decimal fractions thereof, as might be necessary on any given system to account for its processing speed.


After I jailbreak my iOS device, is it still able to get updates?

A jailbreak is specific to a single iOS version or group of versions. You can always update your iOS device, but if you update to a version without a jailbreak available, you won't be able to jailbreak.

For example, the latest unc0ver jailbreak at the time of writing supports iOS 11.0 to 12.4. When iOS 13 is released, you will still be able to update your device to this version, but the jailbreak will not be available, since the system partition is reset. Then when a jailbreak is released for iOS 13 you can jailbreak once again.


Security & Privacy

You can control which applications have access to the computer's microphone using the Security & Privacy panel:

System Preferences.app > Security & Privacy > Privacy (tab)

To modify the list, select Click the lock to make changes.


Simple deletion of files using text file list won't work

That error is expected. There is no full path leading to the directory containing the files within remove.txt. Thus, when you run rm $(cat /Volumes/space1/remove.txt) outside of the directory these files reside in, you get that error.

Simply run:

cd /Volumes/space1; rm `cat remove.txt`

Or modify the remove.txt file to include the full path.


Obtaining 2560 x 1600 on a 3840 x 2160 with surrounding bands

You cannot request this from the computer, as it would have to support the full resolution in order to do that. This is a feature that would have to be provided by the monitor.

You’ll have to check the manual for your monitor to see if it can do this. Most monitors cannot.

On the other hand you’re not stuck with that one specific setting. You can choose to use the full 2560x1600 resolution, but it will typically fill up the entire display.


On iOS, how do I explicitly download a photo or video that's in iCloud while using iCloud Photo Library?

If your device is not set to Optimize Storage, it will not remove a download, meaning you can then go open the photo in Photos and it will be there permanently.

Additionally, if it's a short time frame this will work even with Optimize Storage.


ZSH terminal displaying characters and cursor in the wrong place

I've just added

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

to the file

~/.zshrc

and solved the issue


From Check Download Progress on the Mac App Store:

  How to See Download Progress of Apps Coming from the Mac App Store

  Want a general idea of an app downloads progress? Here’s what to do:

  From the Mac App Store, click on the “Purchases” tab to see the active list
  Locate the app(s) you are downloading that you want to check

Also if Launchpad is in your Dock it typically shows some information too.


Automatically move files to a parent folder + delete subfolder

The following solution will move all (and only) ".avi" files within subfolders (one level deep) to the parent folder and delete the subfolders. It may not be the most optimal solution since there are many different ways in which shell scripts can be written to solve a problem.

Assumptions and restrictions:

Only ".avi" files will be moved. Other files will be ignored and deleted without warning.
The (updated) script works only three levels below the parent folder. If there are subfolders within the subfolders containing ".avi" files, they will be deleted like any other file (including those ".avi" files).
This script can handle ".avi" files that have spaces in the filename.

Caution:
This uses a shell script that moves files and deletes directories/files completely. Have a backup before attempting to use it (even minor changes in the script can cause serious and irrecoverable issues). There is no way to recover from any issues except for restoring from a backup.

Solution:

In Hazel, setup a watch for the parent folder in the Folders pane on the left.
Add a rule by clicking the "+" button and name it as you wish.
Set the conditions criteria as follows

If <any> of the following conditions are met for <any of its sub-files or folders>

<Any File>

Set the Do the following to the matched file or folder: as follows

<Run shell script> <embedded script>

Click on the Edit script button next to the  dropdown.
Leave the Shell: option to the default ('/bin/sh).
In the textbox below, copy and paste this shell script (I have included comments starting with # - they're just to make it easy to understand or modify)

# Get the directory name and go into it - this should be the parent directory
dir=`dirname $1`
cd $dir

# Find all directories one level below
# For each subdirectory, move all ".avi" files to its parent directory,
# then remove the subdirectory and its contents (change avi to any other extension if necessary)
find . ! -path . -type d -maxdepth 1 -exec sh -c '
dir="$0"
mv $dir/*/*/*.avi $dir/..
rm -rf $dir
' {} ';'


Your PATH is hosed!

First check your .bash_profile file with:

/usr/bin/nano ~/.bash_profile

Prepend lines containing something like export PATH="/... " with a # to comment them out. Save the file with ctrlO and exit nano with ctrlX

Then check /etc/paths with: /bin/cat /etc/paths.

It should look like this:

/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin

You can edit the file with /usr/bin/sudo /usr/bin/nano /etc/paths if required.

If everything is fine enter source ~/.bash_profile or close the Terminal window and open a new one.

Now sudo should work again. Then check all #export PATH=... lines in your .bash_profile for potential errors. You may add them to your question to get help here.


How can I add standard users to the print managers group?

You can grant users partial admin rights (printers only) by making them members of the _lpadmin group.  This is a hidden system group, so it doesn't appear in the Accounts preference pane; you have to grant membership from the command line (as a real admin).  You can do this for an individual user:

sudo dseditgroup -o edit -a fred _lpadmin

or just add everyone:

sudo dseditgroup -o edit -t group -a everyone _lpadmin

BTW, membership in _lpadmin grants both the ability to manage queues, and also configure printer settings; if you just want to grant queue management (e.g. resuming queues), I believe you can do that by adding people to _lpoperator instead.


Unable to set up lan in macbook pro ( with retina display)

There's a add button at the bottom right portion of that screenshot. Click it.

It will present you with options to add a new interface, and if wired Ethernet is available on your Mac, it will appear there.


what is the difference between UDID & advertising identifier?

UDID, which stands for Unique Device Identifier, is an alphanumeric string associated to Apple's iOS running Devices. Due to it's potential for abuse and privacy issues, Apple replaced it with the Advertising Identifier which is a:

  non-permanent, non-personal, device identifier, that advertising networks will use to give you more control over advertisers’ ability to use tracking methods. If you choose to limit ad tracking, advertising networks using the Advertising Identifier may no longer gather information to serve you targeted ads.

This AdID is used for advertising purposes and does not changes the functionality of the App in any way. It can even be disabled. Reseting it, though, may mean that you'll be receiving less accurate ads.

With iOS 6.1 a button was added to reset the Advertising Identifier, so that future requests will return a different value.


External Drive showing only in system profiler

If disk utility does not even see it the electronics in the drive may have failed. System Profiler may show a drive there but if disk utility cant access it, well... "Houston we have a problem."

If it IS an external you could try unplugging any other USB devices and/or trying another USB port and possibly even a different USB cable. If you can easily open the case without voiding the warranty you could check cabling there as well. But that might be a waste of time. Drive enclosures are pretty reliable these days.

Failing that you might try a 3rd party disk utility. But I am not sanguine about the prospects. If Disk Utility doesn't even see the drive there is a good possibility nothing else will. It may be time for a new drive.


I accidentally used CMD+drag to remove my fast switching icon. How can I restore it?

Open System Preferences / Users & Groups
click lock to make changes
click Login Options
Check "Show fast user switching menu as ..." (in Mountain Lion)

Account name should now appear on the menubar again.


Is iOS 4.2 faster than 4.1 (iPod Touch)?

Having used 4.2 GM on my iPhone 4 for a couple of weeks now I personally find it much much better at managing and minimising memory usage (regular checks using iStat). This should translate to better performance on older devices with limited RAM as less RAM to flash swapping will be required.


Preview is not responding since OS X Mavericks update

The first thing to try when encountering something like this is to move the preferences files to a new folder. I usually put them on the Desktop.

First, Quit Preview and then go to the Finder and move these files to the Desktop:

/Users/<short user name>/Library/Containers/com.apple.Preview
/Users/<short user name>/Library/com.apple.preview.*

Run Preview and see if it is fixed.

In the case of Preview, there probably isn't any information in these files that you will really miss, It should be stuff like the previously viewed files, and whatever is in the "Preferences" dialog.


can i turn off ask to buy for my 13 year old daughter?

Did you create an account for your daughter in the 'Family Sharing' settings on iCloud?
There, you'll have the possibility to change some settings for her account.


It could be either a driver issue or a hardware problem. If you are still under AppleCare, I would just take it to a Genius Bar so they can do a diagnosis and see if it's a hardware problem (the easier fix). Otherwise, I'd recommend doing a full backup and installing a fresh copy of OSX.


How to enroll developer.apple program for multiple years

You can't enroll for multiple years at one time.  You can only enroll 1 year at a time.  You can read more about renewing your membership here.

You can sign-up for automatic renewal, if you're worried about forgetting to renew.  Just go to your Membership page and check the box for Auto-Renew Membership.


Snow Leopard Server in Fusion VM: installation keeps failing

I found a link that might help: https://communities.vmware.com/thread/457351

You have Server, so that should be OK, try ripping it into a disk image (if you haven't already done so) and see if it will work with that instead.

I only have personal experience with Parallels, so I can't try it myself.


Can the iSight camera perform facial recognition at the lock/login screen?

KeyLemon looks like what you want: http://www.keylemon.com/product/

It has a free version, but I don't believe it will replace the login screen.


Information missing from Safari location bar

I would recommend that you uninstall SafariStand and use GLIMS which is a better Safari enhancement app.


Remapping keys in KeyRemap4MacBook, how do I find keycodes?

Based on this answer, key codes which you are looking for are:

kVK_Tab                       = 0x30,
  kVK_Space                     = 0x31,

See lines 269, 270.

Also there is an application which can show you key codes in a more friendly way.


iTunes Match - This item is not eligible for iCloud

I've got that same CD and iTunes was able to download that track via Match.

It looks like your problem is due to the file's bit rate. Match requires bit rates greater than 96kbps, yours shows 84kbps:

http://support.apple.com/kb/TS4124

I found this tip for reencoding from within iTunes:

http://www.mac-forums.com/forums/ipod-hardware-accessories/58137-change-encoding-itunes-possible.html#post361408

  You can change the encoding quality by changing the quality settings in iTunes ->
  Preferences -> Advanced -> Importing. Reselecting the songs that are
  at 320, right clicking and hitting Convert to MP3 (Or AAC whatever you
  use) will reencode them to the lower rates

I believe when you do this, it preserves the original file, but make a backup, anyway - better safe than sorry.


AppleTV sees my Mac Mini but It can't access its information

From the Apple Discussion forum:

In iTunes, Edit>Preferences>Sharing>Share my library on my local
network.
I saw this was unchecked, and checked it.

And maybe more meaningful:

"Once Home Sharing has been turned on, Apple TV will automatically
find iTunes libraries on your local network that have Home Sharing
turned on using the account name you entered. The shared libraries
will appear in Computers on the main menu of Apple TV."
The implication is that a "shared library" must exist on the computer
that has Home Sharing turned on in order to be found.

And to conclude:

First things first, unplug the ethernet cable from your apple TV and
check your settings under Setting > General > Network. Note the IP
address.
Secondly, plug the ethernet cable back in and check your
settings. Setting > General > Network - are they the same or totally
different? If they are different you most likely have an issue where
your iTunes Homeshared Library is running off of a different IP
Address than your Apple TV.

Also, make sure you have your ports right!


How can I make an app think it's running on iOS 5?

Even if you could fool the app, it would crash as soon as it called on a part of the system that exists in iOS 5 but not in iOS 4. Your editing of the file would both have to be the main version requirements check as well as any internal checks that the app makes to determine the capabilities and API present on that device as the program runs. I don't know any developer that just said they need iOS 5 out of spite against people running 4, 3, 2 versions of iOS. It's always been because they need features and code frameworks added in iOS 5 and couldn't code around it in the program. When a developer can do that, they change their app to work on multiple os versions and let you know feature X is disabled or works differently when running on iOS 4. For developers that want to use the latest tools in iOS, it is actually more work for them to keep the older OS support in each build so there needs to be a good financial reason to keep doing that work in many cases.

Think of the iOS version test as sealing a door to nowhere opening up on the third floor of a building when the fire escape stairs (or balcony or whatever) is not yet built. When the program you deceive into thinking it's running on iOS 5.x calls on code that doesn't exist, the app will crash.

Apple designed the version check to "lock the door or perhaps the entire wing of that building" in a very visible way. By bypassing this check, it's like removing the "danger / hazard" signs and nailed wood braces covering the opening and letting someone walk out into thin air from that third-floor door to nowhere.


A Mac, especially one running Snow Leopard or Lion, requires at least 2 GB of RAM for decent system performance.

Even through the system requirements for Snow Leopard are 1 GB, it doesn't perform well with 1 GB. Lion requires 2 GB of RAM just to be able to run. If you plan on running a virtual machine setup and expect decent performance from both machines, I'd have 8 GB of RAM in my machine. You can get 8 GB of ram for less than $50 from OWC.

Also, If you're not doing anything major in Windows, I'd lose the 64 bit installation, bump it down to 1 GB of RAM and try again. I use 32 bit Win7 Enterprise for work through a Parallels VM and only allocate 1 GB of RAM for it and it runs great, especially in coherence mode.


Data on an iOS device [3GS & later] is protected by hardware encryption.

Wiping the device using Apple's guide at What to do before selling or giving away your iPhone, iPad, or iPod touch is quite sufficient.

Extract :

  If you paired an Apple Watch with your iPhone, unpair your Apple Watch.
  Back up your iOS device.
  Tap Settings > iCloud. Scroll down and tap Sign Out. In iOS 7 or earlier, tap Delete Account.
  Tap Sign Out again, then tap Delete from My iPhone and enter your password.
  Go back to Settings and tap General > Reset > Erase All Content and Settings. * If you turned on Find My iPhone, you might need to enter your Apple ID and password.
  If asked for your device passcode or Restrictions passcode, enter it. Then tap Erase [device].
  Contact your carrier for help transferring service to a new owner. If you aren't using a SIM card with your device, you can contact them to get help transferring service to the new owner.

See also : Apple KB - iOS: Understanding data protection
On recent iOS the setting is under Touch ID & Passcode.


List and define SMB shares from command-line

On macOS open Terminal and type man sharing to review the manual page. You can use sharing -l to list AFP/SMB share info. You can add and remove shares using this command line tool.
You can use the df -h command or mount command to list externally mounted volumes & shares.


How can I fix my built in Mac Screen Sharing App?

On your Linux computer you will need a to run a VNC server of some sort.

There may be one already installed that you need to start. How to do this depends on the Linux distro you have. Try man vncserver at the command line on the Linux box and see what you get.

VNC is a screen sharing protocol and SMB is a file sharing protocol so you can't get screen sharing using SMB.


Why did the 10.8.3 update disappear from the App Store after I restarted my new Mac?

I had exactly the same issue: Brand new out of the box MacBook Pro 13" 10.8.2 preinstalled. Went through exactly the same process outlined by the OP.

Resolved by:

Closing the App Store
Restarting App Store
I then went to Store > Check For Unfinished Downloads

The 10.8.3 update then reappeared and I was able to redownload and install.

Hope this helps


How to make a cheatsheet/crib sheet using Pages

I would use Numbers.app and it's tables.

You get better control over tables in Numbers. With simple things like resizing and not having to change setting to make the table stick in place like tables in Pages.

For this example I simply pasted the info from the site you provided straight into a blank sheet because they use tables. Which means the data will past as a Numbers table.

I then added a row for the title header.

I could easily make the table from scratch and also coping a whole table is as easy as selecting the table, copy, paste.


Moving an application window to another desktop or screen using the keyboard?

Spectacle supports assigning a shortcut for resizing a window to fill the left or right half of a screen and for moving a window to another screen:

As does Slate:

bind left:ctrl;alt;cmd move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
bind right:ctrl;alt;cmd move screenOriginX+screenSizeX/2;screenOriginY screenSizeX;screenSizeY
alias monitor-macbook 1280x800
alias monitor-dell 1440x900
bind up:ctrl;alt;cmd move screenOriginX;screenOriginY screenSizeX;screenSizeY ${monitor-macbook}
bind down:ctrl;alt;cmd move screenOriginX;screenOriginY screenSizeX;screenSizeY ${monitor-dell}

Amethyst also supports assigning a shortcut for moving a window to another space. throw-screen-2 (control-option-shift-e) moves a window to the second screen and throw-space-2 (control-option-shift-2) moves a window to the second space.


Short answer

I think the problem here is that a lot of homebrew packages don't include X11 support by default if there is a more relevant (i.e. OS X specific) backend available. But PDFPC is looking for the X11 backend for GDK.

Long answer

GDK is distributed as part of GTK+ and if you look at the formula for GTK+3 it explicitly disables the X11 backend.

args = %W[
  --disable-debug
  --disable-dependency-tracking
  --prefix=#{prefix}
  --disable-glibtest
  --enable-introspection=yes
  --disable-schemas-compile
  --enable-quartz-backend
  --disable-x11-backend
]

You could edit the formula to include the x11 backend and then run brew install --build-from-source --verbose gtk+3, but then the build fails before it even gets to the compile stage.

configure: error: Package requirements (atk atk-bridge-2.0) were not met:

No package 'atk-bridge-2.0' found

So you can then add `depends_on "at-spi2-atk" to the GTK+3 formula to get homebrew to install that package, and now GTK+3 gets through the configure stage and starts build. Unfortunately it then fails with errors because by default Cairo isn't installed with the X11 backend.

In file included from gdkapplaunchcontext-x11.c:27:
../../gdk/x11/gdkprivate-x11.h:46:10: fatal errorIn file included from gdkdevice-core-x11.c:In file included from 26gdkasync.c::
47:
../../gdk/x11/gdkprivate-x11.h:../../gdk/x11/gdkprivate-x11.h46::4610::10 :fatal error : fatal error'cairo-xlib.h' file not found
In file included from gdkcursor-x11.c:33:
../../gdk/x11/gdkprivate-x11.h:46:10: fatal error: 'cairo-xlib.h' file not found
#include <cairo-xlib.h>
         ^
#include <cairo-xlib.h>
         ^
: 'cairo-xlib.h' file not found
#include <cairo-xlib.h>
         ^
: 'cairo-xlib.h' file not found
#include <cairo-xlib.h>
         ^
1 error1 error generated.
1 error generated.

So then you can remove cairo and reinstall it with the X11 backend option.

brew remove cairo
brew install --with-x11 cairo

But now it fails with problems in libepoxy.

In file included from gdkdisplay-x11.c:40:
./gdkglcontext-x11.h:28:10: fatal error: 'epoxy/glx.h' file not found
#include <epoxy/glx.h>
         ^
  CC       gdkglcontext-x11.lo
1 error generated.
make[3]: *** [gdkdisplay-x11.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from gdkglcontext-x11.c:23:
./gdkglcontext-x11.h:28:10: fatal error: 'epoxy/glx.h' file not found
#include <epoxy/glx.h>
         ^
1 error generated.
make[3]: *** [gdkglcontext-x11.lo] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1

This is because the author of libepoxy dropped support for GLX on OS X back a few months ago.

  Another big change is that OSX drops GLX support. I had had
  near-universal complaints about including it, and its seems like X on
  OSX is really not used these days (The lack of activity on its X
  server makes that pretty obvious).

And this is where I throw in the towel. :)


After updating to Big Sur the process "opendirectoryd" is using 70% cpu

It looks like that I have found a way to fix it.
I've edited /etc/auto_master, commented out the line starting with /home  and then executed sudo automount -vc.
I've found this solution here: https://superuser.com/a/426719/117432.


Is there an App for Browsing on iOS and watching on OS X?

This is the sort of thing that Handoff (part of Continuity) would ideally be used for, but third-parties have been very slow to adopt it. And you presumably want something better than pasting URLs into the built-in Notes app, with iCloud syncing turned on.

If it's always URLs you want to send, your best bet is possibly a third-party tool for sharing and syncing clipboard items between iOS and Mac, such as Cloud Clip.


How to install vim8 without effecting the built-in vim?

Homebrew will not overwrite any Apple supplied executables. It installs everything in /usr/local which is empty by default.

I think Homebrew will install vin to /usr/local/vim

However if you installed python3 from python.org then that will conflict with Homebrew python as they are both installed in /usr/local


cannot find iTunes Connect Mobile app when searching iTunes store

Open this on your device:

http://itunes.com/apps/iTunesConnectMobile


Disable Spotlight for Non-Current Boot Volume

I currently don't have a multi-boot system to try this on, but I would expect
System prefs > Spotlight > Privacy
on each OS to respect the setting if you dropped each of the other 5 partitions in there; effectively repeating the process for each of the 6 boot partitions as you boot from it.


With iOS you are not able to do so as of today.

If your carrier provides support for conference calls (you can speak to two people simulataneously), you can call do the following:

Call your voicemail so it picks up your call and starts recording.
On the iPhone keypad press "+ add call" and select the person you want to call.
As soon as the other line rings press the "merge" button.
Inform the person that you are recording him/her.
After the call hang up on both calls.

If you have enabled Visual Voice Mail (VVM) the recorded conversation will be available as a recording in "Phone > Voicemail".

Let me know if this works for you.


There are a variety of ways you can do this. I'll cover the two cleanest ways here.

Restoring the disk from the source or image

This will require that you have simultaneous access to at least two disks.

If you can't access the HDD and SSD simultaneously, Image the HDD to another disk you can access via Disk Utility.

Boot via Internet Recovery (recommended) or an external bootable volume/installer.
Select your HDD in Disk Utility.
Click "Image" in the menu bar (if it's not there, add it by right clicking and dragging it in.)
Save your image to an external volume.

Install the SSD.
Boot via Internet Recovery (recommended) or an external bootable volume/installer.
Open Disk Utility.
Restore the SSD from the HDD or image of the HDD.

Select your SSD in the sidebar of Disk Utility.
Click "Restore" in the menu bar (if it's not there, add it by right clicking and dragging it in).
Select the proper volume/image.
Restore

Using Migration Assistant

This will require you have simultaneous access to the two disks from two separate Macs or a Time Machine backup of your HDD.

Follow the instructions from here.


Macbook7.1 (Macbook mid-2010 ) White unibody bottom rubber falling off

There is a replacement program for this issue that still seems to be active. My wife's Macbook was also affected, and Apple mailed us out a free replacement replacement kit (comprising replacement part, screws and screwdriver) a couple of years ago.


How to quickly reduce video file size of iPad and iPhone videos

I would use Handbrake which is a free encode/recode program.  You can batch files up, and choose various presets or your own choice of everything from resolution/bit rate/frames per second etc to decrease (you can never increase, obviously) the quality and therefore file sizes for your videos.  My top tip would be to simply reduce resolution but keeping the smaller size dividable by the larger size, so if your videos are in iPhone 4 640x960 then try 320x480 for optimal conversion.

Many many other encoders are available, but most are paid solutions, and none are as fully featured in my opinion as Handbrake is.  Speed depends on your CPU as it is all done in software, but recent versions of the software have included support for either Intel Quick Sync (If you have a Sandy Bridge or above Core iX CPU) and also OpenCL for using your GPU as extra processing resources - however I have never tested these, so I can't say how fast they may or may not be, or even if you have access to them.

Certainly for small phone videos even just using non hardware accelerated encoding you should see it take no more than 1/4 to 1/2 of the normal playtime of the file to convert, and likely a lot less than that.


Cannot ping between OS X on wireless LAN

First, it seems your wireless router seems to have some firewall part preventing ICMP messages (ping is one part of this protocol suite) going over the wireless lan to prevent a ping flood. To verify this, try out these tests:

Disable any VPN software you may run (VPN software mostly includes Desktop policies preventing "unwanted" protocols to be executed and they insert special routes).
ping -c2 192.168.0.255

A usual behaviour for that command would be to get an answer from all your machines in the same network. If this doesn't work, something else is preventing that. As you wrote you disabled all the OS X firewalls, this command should be successful.

To verify this, go to step 2:

Take two MBP and connect them with one CAT6 Gigabit Ethernetcable and assign IP adresses to the LAN ports:

MBP1: en0: 172.16.42.5 netmask 255.255.255.0

MBP2: en0: 172.16.42.6 netmask 255.255.255.0

MBP3: en0: 172.16.42.7 netmask 255.255.255.0

Now try to ping MBP2 from MBP1 and vice versa and take notes:

MBP1 -> MBP2: 1->2 yes / no, 2->1 yes / no

MBP1 -> MBP3: 1->3 yes / no, 3->1 yes / no

MBP2 -> MBP3: 2->3 yes / no, 3->2 yes / no

If all of these connections are working, then you know the router is the bad guy. Take a closer look in your router configuration and look there for terms like "broadcast storm", "ping flood" or "ICMP broadcast prevention". Switch that feature off and try it again.

Hope this helps in analysing your annoying trouble. :-)


How can I customize the right click menu?

You can't change what the Context menu item does in so far that it is fixed to look up a word in the macOS dictionary.
You can't even change it to use a specific dictionary.
You can, however, make some changes. The look up that is done is according to the preferences of the Dictionary app and it is possible to change the dictionary used to another that Apple makes available, such as switching from British to American dictionaries.
To do this open the Dictionary app and select Preferences... in the 'Dictionary' menu and you will see a list of dictionaries that can be enabled or disabled as you wish.


Starting a call from MacBook - Your iPhone needs to use the same iCloud and Facetime

To see devices attached to an account:

Sign into the Apple iCloud via a browser as the account you want to check
Drop down the arrow next to your name (top right)
Choose 'Settings'

The screen will then show you devices that are attached to that account.
The device MUST be running iOS 8, macOS Yosemite, or watchOS 1 or above (not an issue in your case).


How to install macOS back after installing Fedora?

Since you don’t have a recovery partition, the first thing I’d recommend is trying to install macOS from Internet Recovery.

Your model of MacBook Air should be able to boot directly from an internet connection. First you need to be somewhere where you will be able to access the internet - however this works best with Wi-Fi networks using WEP and WPA security.

Follow these steps:

Ensure your MacBook Air is fully powered off
Hold down the CommandOptionR keys and press the Power button
Keep holding down the keys until you see a spinning globe with the message Starting Internet Recovery
Soon you’ll see a progress bar - be patient as this may take a while
Eventually the OS X Utilities screen will appear
Click Reinstall OS X
Follow the prompts

If for some reason this doesn’t work, let me know.


The only one that matters if running via /usr/bin/java is the value of JAVA_HOME and can be set for all terminals etc e.g. to get latest 1.7 add to your startup shell script (e.g. ~/.bashrc)

export JAVA_HOME=`/usr/libexec/java_home -v '1.7*'

Unfortunately apps (ie GUI installed as OS X Application bundles e.g. Eclipse) access the java that is set up in their package information (Which can be a fullpath to one in /Library or /System/Library or could be /usr/bin/java) so they need to be looked at at a case by case basis.

The difference between installing a JDK in /Library/Java/JavaVirtualMachines vs /System/Library/Java/JavaVirtualMachines/ is that the latter is installed by Apple as part of the OS and the other is by a third party

The CurrentJDK is the way Apple versions OS X frameworks - in Java's case I don't think it matters now (in pre 1.7 days it might have been how the old Java preference tab worked but that is a guess)


Mirroring content/photos between devices — Tripple the iCloud backup?

No, it doesn't.  iCloud is a syncing solution.  That means it will sync everything to all devices signed-in with the same Apple ID.

You can read more about setting up iCloud from this Apple support page.

The amount of storage will be same on all your iOS devices.  It might different on macOS because of optimized storage.  It will never be more space (or tripled).


Higher resolution on Macbook air - simulated?

SwitchResX provides functionality for this.
When you have installed it, open it from System Preferences, go to the Color LCD tab at the side, and go to the second tab (I believe). From there you should be able to set 1920x1080 without being connected to your TV.


How to export Moom settings (especially keyboard shortcuts) to external file?

You can find Moom app preferences on the following file:

~/Library/Preferences/com.manytricks.Moom.plist

That file is not in clear text. But you can use plutil to convert and read it in the following way:

plutil -convert xml1 -o - com.manytricks.Moom.plist


Can I sort finder results by multiple criteria at the same time?

Yes for some categories. At the top of the finder window, towards the middle, is an icon that lets you choose how to sort window. If you choose date added it will sort on that and divide the window into groups based on date added. You can then go to the column headers and click on the size, for example. Finder maintains the groupings but sorts on the size within each group.


Can't enter Apple Hardware Test Mode on my macbook pro

You can use the following terminal commands to determine the model and board ID of your computer:

sysctl hw.model | awk '{ print $2 }'
ioreg -l | awk -F\" '/board-id/ { print $4 }'

Then download the proper AHT from this link

https://github.com/upekkha/AppleHardwareTest


How to prevent mail app from marking e-mails from VIP as spam

First, make sure this person is in your Contacts, including the email address you want to mark as not being spam.  This is important because Mail checks there when determining what's spam.

Then, go to the Mail → Preferences, ‘Junk Mail’ tab, and make sure the following options are checked:

Enable Junk Mail Filtering
Choose ‘Mark as junk mail, but leave it in my Inbox’
The Following Types of Messages are exempt from Junk Mail Filtering:

Sender of message is in my Contacts
Sender of message is in my Previous Recipients
Message is addressed using my full name
Also select Trust junk mail headers in messages

After you do all this, Mail might still put some email in Spam/Junk.  Just right-click on the email and select ‘Not junk mail’.  It's not perfect but eventually it should learn.


Why is finder asking to authenticate when copying to my external hard drive?

@bret7600 correctly pointed out in a comment that this is not an external hard drive. The external drive showed up in the Finder when I originally installed it but it went away after I clicked what I thought was a dropdown menu. I then proceeded under the assumption that the object that remained was what I was really looking for.

I had to reinstall the external drive by plugging it in to my USB. I could work on it successfully after reinstallation.


Why is Photo Stream content different on each of my devices?

As the Apple website reports, iCloud stores your pictures in Photo Stream for 30 days.

  iCloud manages your Photo Stream efficiently so you don’t run out of
  storage space on your iPhone, iPad, or iPod touch. If you have Photo
  Stream enabled on your iOS device, every single photo you take appears
  in a special Photo Stream album that holds your last 1000 photos. You
  can delete any photos you don’t want from the Photo Stream (Photo Stream photos downloaded to an iOS device with iOS 5.0.1 or earlier must be deleted manually after updating to iOS 5.1 or later.). To touch
  up a photo or keep a favorite shot permanently, simply save it to your
  Camera Roll. iCloud stores new photos for 30 days, so you have plenty
  of time to connect your iOS device to Wi-Fi and make sure you always
  have your most recent shots handy.

After 30 days pictures are removed from iCloud but not from the Photo Stream album on your devices.

If you remove a picture stored in the Photo Stream album from one of your devices

Before 30 days, the picture will be removed from all your devices
After 30 days, the picture will be removed only from  that device, because the picture is not anymore on iCloud.

You should also consider that pictures are removed from your Photo Stream albums on your devices when they reach the 1000th picture.

  iCloud pushes all your photos to the My Photo Stream album on your
  devices and computers, and manages them efficiently, so you don’t run
  out of storage space.

  Your iOS devices keep a rolling collection of your last 1000 photos in
  the My Photo Stream album. From there, you can browse your recent
  photos or move the ones you like to your Camera Roll or another album
  to keep them on your device forever.

  Since your Mac and PC have more storage than your iOS devices, you can
  choose to have all of your My Photo Stream photos automatically
  downloaded. In iPhoto or Aperture preferences on your Mac, be sure to
  select Photo Stream > My Photo Stream > Automatic Import. All of your
  photo stream photos will be imported into your Events, Projects,
  Photos, Faces, and Places folders in iPhoto or Aperture. On your PC
  with Photo Stream enabled in the Control Panel, all of your photos
  will be imported into C:\Users\\Pictures\Photo Stream\My
  Photo Stream.

N.B.1 You can always reset you Photo Straem from www.icloud.com.

N.B.2 You should satisfy the following requirements

  Deleting individual photos from Photo Stream is supported by iOS
  5.1 or later, iPhoto 9.2.2 or later, Aperture 3.2.3 or later, and Apple TV Software Update 5.0 or later. You will need to manually
  delete photos you downloaded to iOS devices using iOS 5.0.1 or earlier
  after updating to iOS 5.1.


A Search Domain is simply a convenience that allows the system to convert host names to Fully Qualified Domain Names (FQDN).  Anyplace you might use a FQDN, such as in the location bar of Safari or as an argument to ssh, you can use a simple host name.  If the system can resolve that host name to an IP address (e.g. localhost -> 127.0.0.1) then it will use that.  If that doesn't work, then the system will try appending the search domain to the host name and try again. If you specified more than one search domain, it will try them each in order.

If you are typically connecting to other Mac's on your LAN, then setting the search domain to local will make it easier to use just the other computer's names everywhere.  If you are in a corporate environment and all your servers are available at name.example.com, then setting a search domain of example.com will allow you to access them by just using name.

Those are the two most typical use cases.  When using a public Wi-Fi network, you should leave the Search Domain blank/empty to avoid accidentally connecting to some computer you didn't mean to connect to.


What are good warranty coverage options for a pre-owned Mac?

Your best bet is probably to look for a third party insurance company that offers policies for used computers. I ran a Google search for "third party insurance for used computers" and come up with one example insurance company, Safeware.

Whether such a warranty or insurance policy is worth the cost depends on how much you acquired your used Mac for and how much you value "peace of mind", since these policies are likely to be expensive and come with fairly strict limitations in coverage.


iPhoto gets stuck on finishing last import

What worked for me was a permissions repair. Go to /Applications/Utilities, and open Disk Utility. Select your boot drive/partition, go to the First Aid tab, and click Verify Disk Permissions. Let it work, and see what it says. If it says you should, click Repair Permissions.


Keynote, numbers and pages not available on El Capitan after reinstalling

If it was associated with your Apple ID before the OS X reinstallation the reason is that you are haven't logged into the Mac App Store with your Apple ID.

Go to 'Store > Sign In…' and enter your Apple ID credentials. After that you will see "Download" instead of the price for Pages.


Install automator service via command line

If Automator is closed then open Automator and select Application under Choose a type for your document, then click the Choose button. If it's already open the choose File > New and select Application under Choose a type for your document.

Add a Run Shell Script Action to it.

Copy and paste the shell code you presently have into the Run Shell Script Action.

Add the following lines of code after: open $filename

sleep 1
osascript -e 'tell application "System Events" to click button "Install" of window "Service Installer" of process "Automator"'
sleep 1
osascript -e 'tell application "System Events" to click button "Done" of window "Service Installer" of process "Automator"'

Note: You should also add an appropriate cd line above the rm -rf ./tempWorkflows line you presently have in your code, e.g. cd /some/directory/path where it's the pathname of the location your .workflow files are located for processing by your script.

Save the Automator Application as Install Automator Service.

Next:

Open System Preferences > Security & Privacy > Accessibility > Privacy

Click the Lock icon to make changes and type in your password, then click the Unlock button.

User the [+] to add the Install Automator Service or drag and drop the application bundle into the window.

This will now allow the Install Automator Service application to run your shell code and use the AppleScript code to click the Install button and subsequent Done button on the Service Installer dialog box in the process of installing your Services.


Copy the protected music file as you would normally.  When you play for the first time any protected files from a specific iTunes account, it will prompt you to authorize the machine.  I believe the current limit is 5 machines, and you'll have to be connected to the internet when you enter your credentials, but after that it will be able to play any song from that account.

You can also look into iTunes Match, though honestly I've encountered so many issues, I can't recommend it outright.


Can I use two 27" Cinema Displays from a 15" MacBook Pro?

If you are talking about a Thunderbolt equipped 15-inch MacBook Pro then yes according to this:

Apple Thunderbolt Display (27-inch): Connection options for Thunderbolt Macs

Interestingly you can also drive two from a 13-inch MacBook Pro, it will disable the built in display.