Why are some users visible with encrypted system partition on macOS Sierra?

Not sure what the "please fix the library" message means but all of your data is encrypted on the boot partition. You can use a disk password, recovery key or allowed user passwords to unlock a FileVault disk.

When you do it the "normal way" as you mentioned above you won't end up with a disk password. No big deal.

It sounds like User 1 isn't allowed to unlock the disk in this case. You can use the fdesetup command for things like this. For example, to see which users are allowed to unlock the disk:

$ sudo fdesetup list
Password:
macmanager, 51361A22-B6F2-4384-8E0D-F4973BE74957

While logged in as any user you can look in System Preferences > Security & Privacy > FileVault and if some users aren't allowed to unlock the disk there will be a warning with a button to enable users.

You can also use fdesetup to add users to the list, assuming you know their password:

$ sudo fdesetup add -usertoadd davem
Enter a password for '/', or the recovery key:
Enter the password for the added user 'davem':


Best practice: Install for all users or only current user?

It really doesn't make any difference. The vast majority of apps you will ever use will install in a different location (root Library, or user Library), but their configuration will always be user specific.

If you never intend to have other users on the system, the only difference will be remembering where something is installed when you go to delete it.


A similar thing happened to my MacBook Pro - from around the same era.

The only other thing I would suggest is trying a few different wall power outlets and making sure those outlets are working (like with a lamp).

Other than that the unfortunate diagnosis is that your MacBook will most likely have a dead logic board.  On the Airs, I am pretty sure most things are directly integrated to the logic board:, RAM, CPU.  But the SSD is removable and you could take it out and put in into another Mac to get your data from it, if need be.

Here is a guide on how to take apart that model of Mac Air.


tl;dr There does not seem to be anything unusual, or inherently unsafe, with your ARDAgent executable or its permissions. Your proposed fix will in fact make your system a tiny bit safer but might do more harm than good. It’s probably not worth it.

With chmod a-x, the gain in security would be really small; a software update might simply reset the flag, leaving you with a false sense of security; you’ll definitely break ARD; you might also forget to re-enable SIP, or even break future system updates.

What has happened

Let’s first summarize what has happened with respect to ARDAgent in the past.

Back in 2008, the OSA libraries (a part of Mac OS X) had a root privilege escalation issue (CVE-2008-2830), which would allow attackers to execute arbitrary AppleScript using a privileged app.
One popular way to demonstrate CVE-2008-2830 was to use the ARDAgent app as a confused deputy to execute arbitrary AppleScript code with elevated privileges.
That exploit was possible because ARDAgent used the OSA libraries (containing the bug at that time) and because it is designed to run with superuser rights.
The SUID warning message by Disk Utility is very likely caused by a minor oversight introduced with OS X 10.5. The SUID warning used to bother Mac users as early as 2007; first reports appeared on the day 10.5 was released, and CVE-2008-2830 had not even surfaced. So I don’t think the warning has anything to do with the bug, the exploit, or with Apple’s subsequent patch.
At present, CVE-2008-2830 has been fixed for almost a decade. I haven’t seen reports since on any other vulnerability involving ARDAgent.

Your threat model

All that history aside, let’s move on to clarify the threat scenario you most likely have in mind; feel free to edit your question in case I’m wrong.

For the sake of threat modeling, let’s assume that ARDAgent 3.9.2 (the version that ships with El Capitan) has another unrelated vulnerability, one that is not publicly known as of today but might be discovered and exploited by an attacker.
In the worst case, that vulnerability would be a remote code execution (RCE) issue; an attacker might then be able to exploit the bug over the network to gain code execution (due to the bug) and  superuser privileges (due to the setuid bit) in one go. This is a somewhat realistic threat.
If the attacker already has local code execution with normal privileges, escalation can probably be achieved by the same means.
We’re not interested in an attacker that already has superuser privileges in the first place; such an attacker would have complete control over the entire system already, and would not gain anything by attacking ARDAgent.

Risk mitigation

If you run chmod a-x against the executable as per your suggestion (which is only possible with SIP disabled), the attacker loses: launchd will no longer run the agent, and the local attacker won’t either. You have successfully reduced the attack surface – albeit only by a small fraction.

Impact of the fix

On macOS, there are many processes with superuser privileges, be it with or without setuid. The fact that there was a bug in ARDAgent one decade ago does not make it inherently any less secure than the other programs. On average, other processes are just as likely as ARDAgent to have an undiscovered critical vulnerability.

You will lose Apple’s remote desktop features (if you have them enabled). You might also run into a random future macOS update failing because the flags might have become part of a pre-update signature assertion (not unlike the SUID warning a decade ago, but this time Apple might choose to make it an error). Chances are you’ll have forgotten your fix by then so you’d have to reinstall.

Even if the system updates work, they might simply reset the execution bit when shipping the next version of ARDAgent, leaving you with a false sense of security.

There’s also the risk of forgetting to re-enable SIP (which will introduce much more risk than you have just mitigated). And lastly, there’s a small risk of making an inconspicuous little mistake while chmodding, for example rwsrw-rw- – which means every user gains no less than root privileges for free.

Alternatives

A few suggestions to mitigate risk in a safer way:

Reduce the attack surface by disabling services you do not need. While this might not always protect against escalation attacks (an attacker with local code execution might just launch the agent directly), it will help prevent RCE.
Re-enable SIP if it’s disabled, and leave it enabled.
Search for, and remove, non-system files owned by root that have setuid/setgid bits set without good reason. If you absolutely need to leave the bits enabled, make sure the files are never group- or world-writable.


Mac keeps SMB files/session open, locking files

Closing the Finder window is not enough to stop the SMB session. You need to eject the SMB share in the same way you eject external drives or a CD/DVD, that is, select the SMB share icon on the desktop and press ⌘E.

Alternatively, you can right-click the SMB share icon and select Eject :

or, in a Finder window, press the eject button next to the server name:


Yes you can by setting NSAppSleepDisabled globally:

defaults write -g NSAppSleepDisabled -bool true


Problem - 'DNS address could not be found'

From the description of your problem you encounter a generic DNS misbehaviour.

If your Mac and your iPhone are within the same network, the origin of your problem is at your network router level. Either of thrre causes may lead to this no DNS servers:
 - the DNS servers of your ISP have changed and your router configuration
   wasn't upgraded,
 - the DNS servers of your ISOP aren't reachable,
 - your router was hacked and a bad DNS server IP address was provided to
   route all your traffic toward booby trapped web servers.

To analyse further this problem, just check what is the IP address configured at your router level. You might include its complete configuration within your original question, so as to get further help.

If you see that your router configuration was changed without
your knowledge, change its default password ASAP, and
restore its correct configuration.


Disable startup sound when turning on my Macbook M1

There is a checkbox for it in System preferences:
https://www.howtogeek.com/700255/how-to-enable-or-disable-the-startup-sound-on-mac/


Booted to Internet Recovery Mode you have to remove all non-OS X partitions, modify the partition types of your macOS partitions (but keep their sizes!) and then resize your main volume. The reason why you can't boot your Mac is the bogus partition type (FFFF-FFF....) of your main partition (i=2/sda2). Additionally the Recovery HD partition (i=3/sda3) has the wrong type.

Preparation:

Restart to Internet Recovery Mode by pressing alt cmd R at startup.

The prerequisites are the latest firmware update installed, either ethernet or WLAN (WPA/WPA2) and a router with DHCP activated.
On a 50 Mbps-line it takes about 4 min (presenting a small animated globe) to boot into a recovery netboot image which usually is loaded from an Apple/Akamai server.

I recommend ethernet because it's more reliable. If you are restricted to WIFI and the boot process fails, just restart your Mac until you succeed booting.

Alternatively you may start from a bootable installer thumb drive (preferably Yosemite or El Capitan) or a thumb drive containing a full system (preferably Yosemite or El Capitan). If you boot to a full system and login as admin you have to prepend sudo to execute some commands like gpt ... or newfs_hfs ...!

Remove the Linux Swap and main partition

Open in the menubar Utlities->Terminal
Enter diskutil list and gpt -r show /dev/disk0 to get an overview
Remove the Linux partitions:

diskutil umountDisk /dev/disk0
gpt remove -i 4 /dev/disk0
diskutil umountDisk /dev/disk0
gpt remove -i 5 /dev/disk0

Modify the OS X partitions (LVG)

Your main partition may either have the type 53746F72-6167-11AA-AA11-00306543ECAC (CoreStorage) or 48465300-0000-11AA-AA11-00306543ECAC (classical OS X partition). Usually SSD and filevaulted partitions use CoreStorage meanwhile.

First try the CoreStorage type

gpt remove -i 3 /dev/disk0
gpt remove -i 2 /dev/disk0
gpt add -b 409640 -i 2 -s 118430560 -t 53746F72-6167-11AA-AA11-00306543ECAC /dev/disk0
diskutil cs list

Check if you have a CoreStorage LVG. If not, continue with Modify the OS X partitions (Standard). If you have found an LVG, continue with:

diskutil list
diskutil umountDisk /dev/diskX #check for a disk identifier of a volume with the size ~60 GB and replace X with the number of that disk (it may be 2, 3 or ~13)
diskutil umountDisk /dev/disk0
gpt add -b 118840200 -i 3 -s 1269536 -t 426F6F74-0000-11AA-AA11-00306543ECAC /dev/disk0
diskutil verifyDisk /dev/disk0
diskutil verifyVolume /dev/disk0s2

Resize OS X partition

Enter diskutil list and gpt -r show /dev/disk0 again. If you have a CoreStorage LVG your partition listing and the partition map should look like this now:

diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage                          60.6 GB   disk0s2
   3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3
/dev/disk1 Base OS X System
....
/dev/disk2 #this may also have another disk identifier like disk13 or disk3
 #:                       TYPE NAME                      SIZE       IDENTIFIER
 0:                  Apple_HFS Macintosh HD               60.0 GB    disk2
/dev/disk3-disk12 or 13 a lot of small sized disks (512 kb - 8 MB) which are part of the Recovery System

gpt -r show disk0
     start        size  index  contents
         0           1         PMBR
         1           1         Pri GPT header
         2          32         Pri GPT table
        34           6
        40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
    409640   118430560      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
 118840200     1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
 120109736   116868407
 236978143          32         Sec GPT table
 236978175           1         Sec GPT header

Now enter diskutil cs list

You should get a list with 4 UUIDs of the various items of the CoreStorage LVG.
Resize the whole stack to the full size:

diskutil cs resizeStack lvUUID 0g

with lvUUID: UUID of the Logical Volume. It's the last one listed and looks similar to this: 9A7B21AA-F9FE-4E65-8C7E-ED2A73744C15. 0g is a magical size which expands an LV and the superior LVG to the max available size

In your case it's the one starting with 10F16... so your final command is

diskutil cs resizeStack 10F16........ 0g

If your main volume is encrypted you have to unlock it first and enter the  password of your user on the main volume or another proper passphrase.

diskutil cs unlockVolume lvUUID

In your case it's the one starting with 10F16... so your final command is

diskutil cs unlockVolume 10F16........

After successfully expanding your Logical Volume quit Terminal by entering exit and cmdQ and reboot to your main volume.

Modify the OS X partitions (Standard)

remove the CoreStorage partition and re-add it as standard partition:

diskutil umountDisk /dev/disk0
gpt remove -i 2 /dev/disk0
gpt add -b 409640 -i 2 -s 118430560 -t 48465300-0000-11AA-AA11-00306543ECAC /dev/disk0
diskutil umountDisk /dev/disk0
gpt add -b 118840200 -i 3 -s 1269536 -t 426F6F74-0000-11AA-AA11-00306543ECAC /dev/disk0
diskutil verifyDisk /dev/disk0
diskutil verifyVolume /dev/disk0s2

Expand the main partition disk0s2 with the common tools (Disk Utility or diskutil)


How to check for and remove FileVault2 iCloud recovery key

You can run this command from the terminal to verify that your iCloud account has a recovery key:
sudo fdesetup list -verbose -extended

The list should include your OS users as well as a "iCloud Recovery Record".
The easiest way to remove the recovery key from the GUI is simply to disable FileVault 2 and then enable it again afterwards (this time do not store the recovery key in iCloud ofcourse). The process does take considerable time, but you can use the computer while it processes.


Can I insert the page number of a specified bookmark into a Pages document?

Interesting question! I checked the Add bookmarks and cross-references in Pages page and couldn't find anything that would achieve what you want.

I then turned my attention to MS Word, thinking that if I could find a way to do it in MS Word, perhaps then I could adapt it to work with Pages.

The good news is I've found a way to do what you want in MS Word, but the bad news is I haven't been able to replicate this in Pages. So as it currently stands I don't think this is currently possible in Pages.

I would recommend you provide feedback via Apple's Pages feedback page (Note: You can also access this from: Pages > Provide Pages Feedback.

Cross-referencing bookmarks in MS Word

In the interests of perhaps helping someone else come up with a solution for pages, (and in helping users of MS Word), here's how I achieved this in MS Word:

Create your bookmarks as usual
Add your links to your bookmarks throughout your document
Now, let's say you have a bookmark called Diagram7 that's on page 10 and you're linking to that from the words "see Diagram 7" in a paragraph on page 3. To create your cross reference you would do the following:

place your cursor after the words you're linking from
now go to Insert > Cross-reference... to bring up the Cross-reference window
select Bookmark for your Reference type
select Page Number for your Insert reference to
select the Diagram7 bookmark in your list of bookmarks
click on the Insert button

Now the page number will be displayed at the location your cursor was at

NOTE: Just like other fields within MS Word, when the value changes (e.g. the diagram moves to page 12, so the value needs to change from 10 to 12), you will still need to use the Update Field option as normal to update the values displayed.


That message comes from my reattach-to-user-namespace wrapper program that let’s you (e.g.) access the pasteboard inside tmux. You are using an old version of the wrapper (from prior to Mountain Lion).
The old wrapper does work correctly under 10.8; the message just means that you are using a version from before 10.8 was available/verified. So there is nothing to worry about, but it may get annoying seeing the message every time you start a new tmux pane/window.
To get rid of the message, you should upgrade to a newer version of the wrapper. If you previously installed via MacPorts of Homebrew, just upgrade via that package manager. Otherwise, download the latest tagged source (or pull into your previous Git clone), rebuild it (e.g. type make), and copy it to the location that your tmux default-command setting uses.
Both MacPorts and Homebrew currently package the 1.1 version, which suppresses the message when running on Mountain Lion. The 2.0 version also includes the program’s name in such messages so that the source of any future messages will be more obvious.


The "Character Accent Menu" settings can be adjusted under:

System preferences -> Keyboard -> Delay Until Repeat

If you reduce this time, it's the fastest way to insert any accents in my experience. Setting the initial key repeat rate is the same as setting the time for the character accent menu to appear. With this solution, there is no need to change to international keyboards etc (see the other answers). see here.

If you set it to the minimum value, the delay will be 15 ms, which should be quite fast. However, there seems to be an actual delay of about 300 ms until the menu appears (maybe displaying the menu takes a while? Don't know).

There's people using scripts to set the delay from 15 to 1 ms, but I'm not sure whether this helps: see here: github.com/mathiasbynens/dotfiles/blob/master/.macos, the relevant parameter is InitialKeyRepeat


Cannot comment yet so I will use the answer box (apologies) - the battery isn't flat if the Apple logo is flashing (requires power to do this). If an iPad has a flat battery for a prolonged period, then refuses to boot when the power cable is in, leave it connected to power for 48 hours+ The batteries on early models are slow to recharge if fully flat, and this is a known recovery process.

Your actual condition and circumstances (potentially dodgy seller) sounds like they are hardware related, and it could be that someone has opened the iPad to circumvent the Apple ID or replace the battery and made a mess of it. If you are feeling brave my next steps would be to remove the screen (replace with a new one) and replace the battery then check all wiring, solder and connections. The parts are cheap on eBay and the issue might be obvious once the device is opened up.


MacBook sleeps on changing lid inclination

Usually it comes down to one of a few things. Here are a few based on the info there is to go on.

Reset the System Management Controller

To resolve nearly every power related issue on a Mac you can reset the SMC (or System Management Controller0. This will dump and reset settings for anything power management related, and is long known to resolve problems with things like fans, heat, sleep problems, display issues, etc.

On any modern MacBook Pro or MacBook Air with a built-in battery, which is just about all of them nowadays, this is how you do that:

Shut down the Mac and connect it to your MagSafe adapter and a wall
outlet as usual
Hold down the Shift+Control+Option+Power button at the same time for 5 seconds.
Release all keys at the same time
Boot the Mac as usual

Try a PRAM/NVRAM Reset

If the above trick failed, a PRAM reset can at times do the trick, and this is done upon restarting the Mac similar to an SMC reset:

Reboot the Mac and as soon as you hear the boot chime, hold and keep down the Command+Option+P+R keys together
When you hear the boot sound again, the PRAM has been reset so you can now let go of the keys and let the Mac boot up again as usual

Lastly, it can be hardware that is beginning to fail or failing.

A good way to check is by running Apple Diagnostics located on your computer.
There is a process in which it should be run and you can read the full documentation at Apple's website.


That article is focusing on the possible dangers of starting a fire if not original components are used.

Now you can ignore it and continue using non apple hardware at your own risk (usually small but it can happen), or use OEM hardware that is designed to prevent overheating (over-current) and it will shut down before serious stuff occurs.

Definitely do not put it under your pillow while charging or in any case allowing it to radiate the heat generated.

The points 2, 3, and 4 are correct.


Unable to view uploaded photos/videos on iCloud.com

If you have made a backup of your device and the photos it doesn't work. For synchronisation of your photos you need to use iCloud Photo Library which was introduced with iOS 8.


How can I make multiple directories in Mac OS terminal?

The switch -p allows deep folder creation along a path

mkdir -p  i/like/icecream/too

You don’t need python for this, unless it reminds you of “p” instead of the pattern passed in to create the full path prefix.


How to forcefully open a blocked Java Applet?

Just to be clear, the reason you are getting this error isn't because of a problem with Java on your Mac. The problem is with a certificate that has been used to sign one or more of the JAR files that make up the TopCoder Java application.

The certificate expired on March 25th this year.

If you still want to run the application, even though the certificate has expired, then you need to add it to the Exception Site List within Java Control Panel.

You may want to update Java on your Mac first though. You can get the latest download from Oracle here, Apple don't supply their own Java runtime anymore.

Launch Java Control Panel from System Preferences
Select the Security tab
Click on "Edit Site List..."
Click on "Add"
Enter "http://www.topcoder.com" in the Location field
Click OK
Click Apply

Now when you try to open the JNLP file you'll get a different message. Just check the "I accept the risk and want to run this application" and click Run.

At which point the application should successfully download and run.


How to connect a bluetooth speaker to MacOS and KEEP using the internal speakers

Move you speaker fairly close to your computer and go to the bluetooth icon in your menu bar. Click on the and it should open a pane like the one below.

I use my Amazon Echo as my speaker and the Disconnect button would read Connect if if my Echo wasn't already connected. Your bluetooth speaker should show up in the list. Click on it and select Connect. Once your speaker connects, go to System Preferences and select Sound. You'll get a panel that looks likr so:

You can see if you click on the tab where it lists which speaker to use, you can select the internal speakers of your mac.


How to regain features from Safari 5 that are not found in Safari 6?

Actually, Bonjour is still there, but you have to include it yourself. Just go to Preferences > Bookmarks, and enable what you'd like there.


All default 'Apple' icons disappeared on iPhone 7

As long as you know the AppleID and password for the device, you can restore without needing to get to the settings app:

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

This option is needed for service and if you sell a device and forget to unlock it before it leaves your possession. When multiple apps are broken, a restore is almost always the fix and something you should try once you back up the device as best you can before the erase.


How to run a Shortcut from a web page in iOS

I needed to do 2 things,

Choose "Shortcut Input" as the value for "Run Javascript on"
Click the 3 dots on the top right and enable "Show in Share Sheet"

Also the alert causes it to timeout, no problem. It was just a test.


How can I delete a file marked as backup item?

The root of the cause

Time Machine backups are protected at kernel level -- on a verbose boot it's possible to spot in the first screenful of text a TMSafetyNet.kext extension being loaded.

  This ensures the integrity of your backups. Access control provisions
  are applied via a kernel extension located at
  /System/Library/Extensions/TMSafetyNet.kext

Deleting in Time Machine

The officially sanctioned method for deleting items from a specific backup or all of them is to locate the item in the "in space" Time Machine view and selecting the appropriate delete option from the contextual menu or the Action button in the toolbar.

The ability to move backups to the Trash added in Lion is not only comparatively more buggy, but designed to operate on entire snapshots, i.e. the folders named with the time the backup was created which in turn contain a directory for each included volume.

Deleting from commandline (more flexible, more control)

  There exists a a helper program (commandline binary) at...

/System/Library/Extensions/TMSafetyNet.kext/Contents/MacOS/bypass

  ...which allows you to supply a command and argument to completely
  bypass the access restrictions.

In Lion you run:

sudo /System/Library/Extensions/TMSafetyNet.kext/Contents/MacOS/bypass rm -rfv /Volumes/[disk]/Backups.backupdb/[path]

In Mountain Lion bypass moved to the Helpers directory:

sudo /System/Library/Extensions/TMSafetyNet.kext/Helpers/bypass rm -rfv /Volumes/[disk]/Backups.backupdb/[path]

In OS X 10.10.5 (from a comment by David Anderson), this is now at:

sudo /System/Library/Extensions/TMSafetyNet.kext/Contents/Helpers/bypass rm -rfv /Volumes/[disk]/Backups.backupdb/[path]

Credits:

[1] - Michael Rushanan on TMSafetyNet bypass
 [2] - A brief explanation of the Time Machine Safety Net by Joel Cowgill
 [3] - Similar question on SuperUser


How to use Aquamacs on a non US keyboard?

In Aquamacs check the Options->Option,Commands,Meta keys menu. It allows you to switch the key bindings of the various meta keys. I have the same issue with the Swiss German keyboard and using M-; to toggle Meta/Alt behavior helps a lot.


Optical Character Recognition (OCR) Tool to Convert Pictures or Images to Text

If you use Google Docs, it has OCR built in.

When you're uploading something, just check the Convert text from PDF or image files to Google Docs documentsoption.

You can download Google Docs files as whatever format you want.


Why do my windows go dark when they're on my external monitor?

Check this thread out: https://discussions.apple.com/message/16608477

To quote: "...opening Display in System Settings, and choosing calibrate under Color seems to have fixed the problem."  I don't have my external monitor with me at the moment, but wil check when I'm at work tomorrow.


Continue managing external drive backups on a different computer

A simple solution I found is to switch the new computer's name to the old one through System Preferences > Sharing .

Not quite the solution I'm looking for, but it works.


What to do about recent remote code execution vulnerability in git (on El Capitan)

If you use Homebrew it's pretty easy:

brew upgrade git
which git
=> /usr/local/bin/git
git --version
=> git version 2.7.3

Done.


MacBook Pro displays Apple Logo and Prohibitory Symbol

The Apple website mentions what a prohibitory symbol means:

  Prohibitory symbol

  A circle with a line or slash through it means that the selected startup disk contains a Mac operating system, but it's not a macOS that your Mac can use. You should reinstall macOS on that disk.


Spotlight misses first character after Cmd-Space

Until Apple fixes this you can try unchecking 'Allow Spotlight Suggestions in Spotlight and Look up' in System Preferences > Spotlight. It worked for me!


Startup disk doesn't show my windows partition

A previous answer, which will get Windows 7 installed on your Mac, can be found at Installing Windows 7 or 10 Pro 64 bit without DVD or Flash Drive.

If you have the Windows 7 product key, then you should make sure you have the latest Windows 7 iso download. You can get this from Download Windows 7 Disc Images (ISO Files).

I will point out that the Windows 7 product key can also be used to install Windows 10 for free. The latest Windows 10 can be found at Download Windows 10 Disc Image (ISO File). Instruction for installing Windows 10 can be found at How to install Windows 10 into a 2011 iMac without using the Boot Camp Assistant, an optical (DVD) drive or third party tools?.

Addendum

You could also probably install Windows 7 by first booting from a Windows 10 USB installer. This would then require using the CLI to install Windows 7 to an internal drive. The instructions would be similar to this answer. If interested, I could include updated instructions.


How can I move virtual memory swap files to a different drive or partition?

note: copied from SuperUser:
For older versions of OSX, see this thread on forums.macosxhints.com.
Credit goes to dblu for explaining the use of plutil, ZILjr for introducing the wait4path command, and ekl for simplifying the whole thing by eliminating the need for an intermediate shell script.
Complete solution:
1.  Open Terminal and make a backup copy of Apple's default dynamic_pager.plist:
$ cd /System/Library/LaunchDaemons
$ sudo cp com.apple.dynamic_pager.plist{,_bak}

2.  Convert the plist from binary to plain XML:
$ sudo plutil -convert xml1 com.apple.dynamic_pager.plist

3.  Open the converted plist with your text editor of choice. (I use pico, see dblu's answer for an example using vim):
$ sudo pico -w com.apple.dynamic_pager.plist

It should look as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$
<plist version="1.0">
<dict>
    <key>EnableTransactions</key>
    <true/>
    <key>HopefullyExitsLast</key>
    <true/>
    <key>Label</key>
    <string>com.apple.dynamic_pager</string>
    <key>OnDemand</key>
    <false/>
    <key>ProgramArguments</key>
    <array>
        <string>/sbin/dynamic_pager</string>
        <string>-F</string>
        <string>/private/var/vm/swapfile</string>
    </array>
</dict>
</plist>

4.  Modify the ProgramArguments array (lines 13 through 18) to use the wait4path shell command prior to launching dynamic_pager. See note #1 for details on why this is necessary. In the following example, my partition is called Swap, and I chose to put the swapfiles in a hidden directory on that partition, called .vm be sure that the directory you specify actually exists. The XML should look as follows:
<key>ProgramArguments</key>
<array>
    <string>/bin/bash</string>
    <string>-c</string>
    <string>/bin/wait4path /Volumes/Swap/ &amp;&amp;
/sbin/dynamic_pager -F /Volumes/Swap/.vm/swapfile</string>
</array>

5.  Save the plist, and return to the terminal prompt. Using pico, the commands would be:
<ctrl+o> to save the file
<enter>  to accept the same filename (com.apple.dynamic_pager.plist)
<ctrl+x> to exit

6.  Convert the modified plist back to binary:
$ sudo plutil -convert binary1 com.apple.dynamic_pager.plist

7. Restart your Mac. If you run into trouble, switch to verbose startup mode by holding down Command-v immediately after the startup chime. This will let you see all of the startup messages that appear during startup. If you run into even worse trouble (i.e. you never see the login screen), hold down Command-s instead. This will boot the computer in single-user mode (no graphical UI, just a command prompt) and allow you to restore the backup copy of com.apple.dynamic_pager.plist that you made in step 1.
8. Once the computer boots, fire up Terminal and verify that the swap files have actually been moved:
$ cd /Volumes/Swap/.vm
$ ls -l

You should see something like this:
-rw-------  1 someUser  staff  67108864 18 Sep 12:02 swapfile0

9. Delete the old swapfiles:
$ cd /private/var/vm
$ sudo rm swapfile*

10. Profit!
Note 1
Modifying the arguments to dynamic_pager in the plist without using wait4path does not always work, and when it fails, it does so in a spectacularly silent way. The problem stems from the fact that dynamic_pager is launched very early in the startup process. If your swap partition has not yet been mounted when dynamic_pager is first loaded (in my experience, this happens 99% of the time), then the system will fake its way through. It will create a symbolic link in your /Volumes directory which has the same name as your swap partition, but points back to the default swapfile location (/private/var/vm). Then, when your actual swap partition mounts, it will be given the name Swap 1 (or YourDriveName 1). You can see the problem by opening up Terminal and listing the contents of your /Volumes directory:
$ cd /Volumes
$ ls -l

You will see something like this:
drwxrwxrwx  11 yourUser  staff   442 16 Sep 12:13 Swap -> private/var/vm
drwxrwxrwx  14 yourUser  staff     5 16 Sep 12:13 Swap 1
lrwxr-xr-x   1 root      admin     1 17 Sep 12:01 System -> /

Note that this failure can be very hard to spot. If you were to check for the swapfiles as I show in step 12, you would still see them! The symbolic link would make it seem as though your swapfiles had been moved, even though they were actually being stored in the default location.
Note 2
I was originally unable to get this to work in Snow Leopard because com.apple.dynamic_pager.plist was stored in binary format. I made a copy of the original file and opened it with Apple's Property List Editor (available with Xcode) in order to make changes, but this process added some extended attributes to the plist file which caused the system to ignore it and just use the defaults. As dblu pointed out, using plutil to convert the file to plain XML works like a charm.
Note 3
You can check the Console application to see any messages that dynamic_pager_init echos to the screen. If you see the following lines repeated over and over again, there is a problem with the setup. I ran into these messages because I forgot to create the '.vm' directory that I specified in dynamic_pager_init.
com.apple.launchd[1]  (com.apple.dynamic_pager[176]) Exited with exit code: 1
com.apple.launchd[1]  (com.apple.dynamic_pager) Throttling respawn: Will start in 10 seconds

When everything is working properly, you may see the above message a couple of times only, and then no more of the "Throttling respawn" messages. This means that the system did have to wait for the partition to load, but in the end it was successful.
Exclude the path from Time Machine
In OS X 10.7 and later you can do this with tmutil. Example:
sudo tmutil addexclusion -p /Volumes/Swap/.vm
For that example, to review the result:
tmutil isexcluded /Volumes/Swap && tmutil isexcluded /Volumes/Swap/.vm
If the volume used for swap need not be indexed
Use mdutil. Example, to switch off then erase the store:
sudo mdutil -i off /Volumes/Swap && sudo mdutil -E /Volumes/Swap


Is it possible to replace battery in an old iPad?

Yes it's possible, but it's incredible hard for almost any average or advanced user, so I highly recommend against it, sorry.

Here is a nice step by step guide from the folks of iFixit, if you are (really) adventurous enough...

Best luck!


Is OpenGL deprecated or removed in macOS Catalina 10.15?

OpenGL is officially deprecated by Apple starting with macOS Mojave 10.14. However, Apple is still maintaining the standard.

macOS 10.15 Catalina: The Ars Technica review

OpenGL and OpenCL
OpenGL and OpenCL were officially deprecated in Mojave last year, though that's a little misleading since it implies that Apple had been actively maintaining and updating its support for those standards. In Catalina, as in every macOS version going all the way back to Mavericks, the macOS OpenGL implementation is stuck at version 4.1 (2010), and the OpenCL version is stuck at 1.2 (2011). This means that apps that still rely on those APIs on macOS will continue to run, provided they've been updated to meet the 64-bit-only requirement. But you shouldn't be developing new Mac apps that rely on OpenGL or CL for anything important.

The situation can be misleading for OpenGL developers. But Apple is clearly hinting they will not support the technology moving forward in the future.


macOS Big Sur updates - location of files?

Welcome to the site.
First of all, I can very much empathize with this situation. For years we lived behind a slow satellite connection which had a quota of 20GB per month.
Unfortunately, the bad news is that softwareupdate is no longer supported by Apple for system updates in Big Sur. I am not even sure that it is possible to do what you are trying to do. Apple used to post ‘combo updaters’ to their website, but they have also ceased to do that.
One of Apple’s perpetual blindspots is that not everyone has access to fast and unlimited Internet access.
Your best bet is to set up “Content Caching” on your local network:
What is content caching on Mac? - Apple Support
Set up content cache clients, peers, or parents on Mac - Apple Support
(Note: I have had some trouble loading some pages on Apple’s support page in Safari. It works sometimes and other times says that the page does not exist. If that happens, try another browser. Yeah, I know, absurd.)
Content Caching is not as easy or as precise as combo updaters were (for one thing, I don’t know of any way to force a Mac to only use a content cache… it’s just supposed to happen “automagically” and we know how that goes.
I wish I had a better answer for you. Unfortunately, Apple has chosen to deprecate softwareupdate and discontinue Combo Updaters, which makes this situation extremely difficult to manage, especially with bandwidth restrictions.


Does disabling Background App Refresh disable Push notifications?

No, it does not. This is a separate service and daemon on the device.


Changing Volume Without Waking Display Screen

You can do this with a remote connection to your computer from another computer or phone. Using a Terminal app from your phone, for example, you can remote in and then run a command like:

# Where 50 is a number from 0 to 100
osascript -e 'set volume output volume 50'

If you did this a lot you could create an alias in your .bashrc (or other shell profile file) for a shorter easier command.

I have a remote mouse app on my phone and it wakes up the screen, so you'd need a true remote control otherwise.


Best way to switch magic keyboard and trackpad between work/personal Macs?

I would like to seamlessly switch my Bluetooth devices (headphones, magic keyboard, touch pad) between work / personal Macs without complex repairing.
Has anyone solved this problem?

Yes.
You purchase Bluetooth devices (keyboard, mouse, headset, etc.) that have multiple device support.

The Magic Keyboard, Mouse, and Trackpad are designed to be paired with a single computer (they make no reference to multiple device pairings).  However, products like the Logitech MX series as well as the K380 (typing on it right now) can pair with up to 3 devices and switch with the press of a button.

Sennheiser headphones (my personal choice) can pair with up to 8 devices total and with 2 simultaneously.  There are many other brands (Bose, Apple AirPods, Sony, etc.) that have this functionality.

There’s no software that is going to your initiate your Bluetooth devices to switch from one device to another - you can only imagine the security implications!
Bottom line, to easily switch between devices without complex the re-pairing as you describe, you need devices that support multiple pairings.  If the device doesn’t support it, you’ll need to pair and unpair it each time.


How can I find "Install OS X Mountain Lion" (installESD.dmg) in the applications folder?

It gets removed once you perform the update. You will have to redownload it. It may tell you it's already downloaded, use the Option key and select the 'Downloaded' button and you can download again.


Monitor HTTPS traffic on an ios device or maybe remotely on the Internet

If you set the IP-address where Charles is running as a proxy on your iPad you should be able to catch all traffic going to your iPad.

For HTTPS you need to install the Charles Certificate on your iPad and let Charles decrypt your HTTPS traffic en encrypt it again before sending it to your iPad (man-in-the-middle). In the Charles application it's called SSL-Proxying.

http://www.charlesproxy.com/documentation/proxying/ssl-proxying/


In the current OS, this isn't possible. However, there is a jailbreak mod that will accomplish this functionality called PowerGuard.


In Terminal, enter:

defaults write com.apple.finder QLEnableTextSelection -bool TRUE

You have to restart Finder before the option will be available.

Found this on: http://www.defaults-write.com


Options to Bring Forward/ to Front/ etc are grayed out in Preview

Found it!  The option is hidden in the *Colors* dialog:

Note the Opacity slider !

And here is the result


Did I expose myself to information-theft via possible malware on iPad by opening an e-mail in Safari?

It appears the site is distributing malware. If you opened the page on your computer you should first install a good antivirus/antimalware program, try Sophos which is good and free. If it was on your iPad (as your tag suggests) there's probably a bit less cause for alarm as there is currently no known virus which can infect an iPad.

Next it's probably a good idea to change all of your passwords, most importantly your AppleID as it stores your confidential information and credit card data. You can manage your apple id here.


Is it possible to reset Accessibility Application that have been changed due to learning how things work?

Consider enabling the Guest account (System Preferences > Users & Groups) and switching to that user to test with.

The Guest account can access the Accessibility settings in System Preferences, and when you logout of the Guest account all the changes are deleted.


serveradmin is still available in macOS High Sierra. Server.app has to be installed though and launched at least once to start its set-up.

host:~ $user: which serveradmin
/Applications/Server.app/Contents/ServerRoot/usr/sbin/serveradmin

host:~ $user: sudo serveradmin fullstatus afp
afp:state = "STOPPED"
afp:readWriteSettingsVersion = 1
afp:logging = "NO"
afp:servicePortsRestrictionInfo = _empty_array
afp:startedTime = ""
afp:guestAccess = "NO"
afp:logPaths:errorLog = "/Library/Logs/AppleFileService/AppleFileServiceError.log"
afp:logPaths:accessLog = "/Library/Logs/AppleFileService/AppleFileServiceAccess.log"
afp:failoverState = "NIFailoverNotConfigured"
afp:servicePortsAreRestricted = "NO"
afp:setStateVersion = 2
afp:currentConnections = 0

AFP won't work with shared APFS volumes!


Why does Spotlight in Mavericks not show the location of search results?

Hold down Option and Cmd to get the full path while moving the mouse over the hits. Kinda nice now I know. Hold those two keys while clicking on the preview causes Spotlight to open the Finder at the hit location; very convenient!


iPhone X has a green line on the left of screen. How to fix it?

This issue usually comes together with issues with touch response for which there is a replacement program by Apple in which the display would be replaced free of charge outside of the regular warranty period. (https://support.apple.com/iphone-x-display-module-replacement-program)

Visit your local Apple Store or Service Provider and check to see if it can be fixed under this program.


How to record audio from terminal in macOS Mojave?

They have restricted access to the microphone from the terminal by default after the update.

You need to go to System Preferences > Security & Privacy > Privacy > Microphone and tick the box for the terminal and it should all work again.


There is an app called Exporter that will export each note in Notes to a markdown or html file to any folder you choose. So you could save these to an external drive or another internal drive. Its not blazing fast. i just saved 700 files in about 1.5 minutes. So figure 15 minutes to save 7000 files. Exporter is free from App Store. Go to Exporter/Preferences to change output files from Markdown to HTML if thats the format you want.


Macbook Pro, BenQ GW2765HT, and Displayport cable

I disabled the ddc/ci on my monitor and, while my HDMI cable was connected at the same time, swapped to DisplayPort and the cable started working again somewhat magically.

I'm really not sure what happened, but I'm chalking it up to the ddc/ci thing.


There's no setting to delay the unlock, but what you could do is go to Settings > Touch ID & Passcode, switch off Use Touch ID for iPhone Unlock, and then switch off Simple Passcode.

Switching off Use Touch ID for iPhone Unlock will disable your fingerprint's ability to unlock your phone, and switching off Simple Passcode will make you write a passcode that can be any length you want, with any characters you want. You can make the only way into your phone long/inconvenient enough to not be worth the hassle of typing on such a regular basis.


In Lion can I get the four fingere swipe to do COMMAND+Tab?

BetterTouchTool
can surely do this and a lot more! Enjoy:
http://www.boastr.de/


My Mac Pro boots into recovery mode every time it boots up

The startup disk system preference is the usual method to set this. As the setting is written to NVRAM, you could also just reset that and the mac should prefer the OS over the Recovery HD

If you can't select the Mac OS X, re-run the lion installer.


Contacts and Phone on iPhone think I'm in a different country

When I was writing this question and was in Language & Region, I tried setting the iPhone Language even though I didn't expect it to do anything. It was already set to English but I went ahead and selected "English (US)". It went to a black screen that said "Setting Language" (or something similar) for a while and when it was done all the phone numbers are displaying correctly. So I guess it's possible the language wasn't set to "English (US)" but I can't imagine why. Anyway, since I already went through the effort of editing the screenshots and writing the question I figured I'd leave this here in case it's helpful to someone.


I know your post is from a while back, but if this is still an issue, try my suggestions in this post. If those don't work, D.W. posted some other useful links in his comments.

Hope you get this worked out :)

Vlad


Check your view prefs  Cmd ⌘   J  within the search itself.
It's possible to have the icon preview switched on for the folder you are about to search, yet off in the search itself. Each is remembered separately.


iPhone won't sync with my iTunes account

Run iTunes on your computer
Drag and drop your mp3s to the open iTunes window - this will add the songs to your iTunes library
Connect the iPhone to your PC
Click on the iPhone button once it appears in iTunes
Go to the Music tab once you entered into your iPhone in iTunes
Check the "Sync music" and "Entire music library" options as described in the first section here: http://support.apple.com/kb/HT1351
Click on the "Sync" button - this will transfer all the songs from your iTunes library to your iPhone


Selectively route VPN traffic - how do I determine subnet value?

You don't need to create a new subnet, you just need to figure out what subnet (or subnets) your company's network uses. For example, if the IP addresses on your company's network are in the ranges 10.0.0.1 to 10.0.0.255, then you can use the subnet mask "10.0.0.0/24". If the range is 10.0.0.1 to 10.0.255.255, then you can use the broader range "10.0.0.0/16". You can search for "subnet calculator" to find some tools that can help you figure out the notation for the subnet range you want to capture.

Make sure your local network doesn't overlap with the range, though. Your home network should use a different subnet (like 192.168.0.0/24 for example) that won't conflict with your office's network.


Sorry to answer this question myself. I had commented on a thread in Reddit who had a similar issue, and thanks to atomicshed, he linked me to another thread at Microsoft's site.
This solution worked for me:

Quit all Office 2016 apps
Rename the file /Library/Preferences/com.microsoft.office.licensingV2.plist to something else
Open any Office 2016 application, and sign in again to Activate the Subscription.

Now am able to export it as both MP4 and MOV. Thank you guys!


How to delete multiple podcast episodes from iOS 6 podcast app?

The Podcasts app was updated for iOS 7 on October 22. I don’t think that this was a feature of iOS 6’s Podcast app, but if you are able to update to the latest version, there is an Edit button that can delete/mark-as-read multiple episodes or multiple subscriptions. (Assuming you’re not running an older device that isn’t compatible).

There isn’t a way to so multiple selects before a swipe to delete, though most apps have an “Edit” button to select multiple items before hitting the Delete button (as seen in Mail). In third-party apps, the interface depends on what the designer/developer built.


macOS High Sierra restarting by itself during sleep

You can find the last shutdown cause by examining the logs. Run this command to filter the logs for shutdown causes:

log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h

You can then lookup the shutdown cause code in this table: macOS Shutdown Causes.


How do I play video through a projector without seeing the player buttons?

Both Quicktime Player & VLC will show the cursor & transport if you move the mouse, but both will respond to a simple Spacebar tap to play/pause without showing the interface. VLC has an optional || or > indicator.

If you never need to use playlists or run consecutive movies, then stick with Quicktime Player, otherwise, VLC is a much more comprehensive structure.


As far as I know, your old data does not sync between devices, only new messages from the point which the device was setup.

That being said, with each iOS device you have, you may have to just disable syncing or use different iMessage addresses.

Do this from the iOS device:

Go to Settings
Select Messages
Select "Send and receive"
Select which account you want to use on your device (whether its phone number, or email address).

This would cause it to not sync across all other devices, but would also mean that you can't receive messages at all of your devices either.


This is easy to answer as it will only display as random when you're not connected. If you get connected (using a password for example) the real mac-address will be shown to the router.

It's just a randomize function for unknown networks.


The hard-reset and all that didn't work. I re-synched it to a different computer. It got rid of half of the Other storage, so I guess it worked. I'm not sure it's really a good solution, but whatever.


Disable text message sound when in CarPlay

The easiest solution that includes this silencing of texts is the standard do not disturb while driving.

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

I also generally don’t want text messages to ring so I often just set their alert to be no sound, ever. The third option isn’t automatic, but I often do days with my entire phone in do not disturb. If I see a call, I pick it up, if not, I react when I pick up the phone and look at missed calls, voicemails and texts. Worst case, you would have to manually change either the sound or the DND settings.

Hey Siri, turn on do not disturb.
Hey Siri, turn off do not disturb.


How to get the basic linux ps functionality in mac?

I gather the concern is that the MacOS version of ps follows BSD conventions and displays all your processes associated with any controlling terminal. Linux ps follows System V/POSIX conventions and shows your processes on the current controlling terminal.

To replicate the POSIX behavior, just run ps -T.


AppleScript: move a folder to library (to root) in iTunes

@ArtemG. then I assume that this operation could be done by editing the playlist file that is loaded by iTunes. It should  be located in ~/Music/iTunes/

Information is according to the posts marked as helful over here (https://discussions.apple.com/thread/2439817)


The short answer is stat and ask for permissions field:

stat -f "%p" file

That application or instructions or memory is likely wrong. From the manual page, there are 4 digits in the octal representation for modes on macOS:

 Modes may be absolute or symbolic.  An absolute mode is an octal number
 constructed from the sum of one or more of the following values:

       4000    (the set-user-ID-on-execution bit) Executable files with
               this bit set will run with effective uid set to the uid of
               the file owner.  Directories with the set-user-id bit set
               will force all files and sub-directories created in them to
               be owned by the directory owner and not by the uid of the
               creating process, if the underlying file system supports
               this feature: see chmod(2) and the suiddir option to
               mount(8).
       2000    (the set-group-ID-on-execution bit) Executable files with
               this bit set will run with effective gid set to the gid of
               the file owner.
       1000    (the sticky bit) See chmod(2) and sticky(8).
       0400    Allow read by owner.
       0200    Allow write by owner.
       0100    For files, allow execution by owner.  For directories,
               allow the owner to search in the directory.
       0040    Allow read by group members.
       0020    Allow write by group members.
       0010    For files, allow execution by group members.  For directo-
               ries, allow group members to search in the directory.
       0004    Allow read by others.
       0002    Allow write by others.
       0001    For files, allow execution by others.  For directories
               allow others to search in the directory.

 For example, the absolute mode that permits read, write and execute by
 the owner, read and execute by group members, read and execute by others,
 and no set-uid or set-gid behaviour is 755 (400+200+100+040+010+004+001).

I've made a file conveniently named 040775 and applied permissions - you can see the 040 clears all sticky (as it’s 0775 part that matters), setUID, setGID bits so you get 0775 if you try to set 040775.

mac:foo me$ touch 040775
mac:foo me$ stat -f "%p" 040775
100644
mac:foo me$ chmod 040775 040775
mac:foo me$ stat -f "%p" 040775
100775
mac:foo me$ chmod 4775 040775
mac:foo me$ ls -l
-rwsrwxr-x  1 me  wheel  0 May 10 20:30 040775
mac:foo me$ chmod 040775 040775
mac:foo me$ ls -l
-rwxrwxr-x  1 me  wheel  0 May 10 20:30 040775

I've edited the above a bit and didn't do all the stat and ls but it should help you poke around at existing files and test out whether my experience that only the last 4 digits are interpreted as an octal bit mask to set permissions as documented in the chmod man page.


You might wanna try iMessage on Android which provide a nice soft


"Lost" 300 GB of disk while trying to install Windows via Bootcamp

You didn't lose any storage, the partitioning system simply forgot to put it back into usable form.

/dev/disk1 would be your physical disk.

/dev/disk2 is an APFS disk architecture, which, in laymen terms, is a fake virtual disk within a physical disk. This is where the macOS and your files on macOS are stored.

Bootcamp Assistant encountered an error which caused it to stop creating a Windows volume. After it stopped it didn't reallocate the free space to /dev/disk2.

Use Disk Utility to repartition your physical disk, it can be found in Launchpad > Utilities. Find the physical drive item on the tree view on the left, it should read something like the name of my physical drive, which is highlighted in the image below:

Press the Partition button seen on the top of the Disk Utility window while your physical drive is selected. It should ask you if you want to format the physical drive or the APFS Volume. Choose to format the physical volume. It should show you a pie chart of your volumes like this:

Drag the small white circle that is positioned outside the split between Macintosh HD and Free Space into a position where Macintosh HD completely covers Free Space. Press apply, and it should automatically format your physical drive to fill up the free space that Bootcamp Assistant un-allocated. After the operation completes successfully you can safely quit Disk Utility.


How to troubleshoot apps of which multiple instances can be launched


If I bought someone's Macbook, can he spy on me?

In short:
To be completely sure you would want to go to disk utility when booted with Cmd+R and erase your MacOS partition.

Some more:
At this point (after erase+reinstall), assuming there were no hardware modifications (in theory you could install hardware tracking modules, wireless microphones and such, but it's rather corporate espionage/P.I./high profile legal domain) you should be good to go.

Booting with Cmd+R and doing just reinstall, without erasing partition can - in theory - leave some parts out.

Remote access is then controlled from system settings and remote wipe can be performed, if you are connected to iCloud (or have some 3rd party app running, which after partition erase you would not have).

The most careless would be to just remove user profiles on newly bought Mac, as there might still be some apps running in background, that you would not even see in Applications folder.


Homebrew warning: "No developer tools installed" even though Xcode is installed

Yes, it is perfectly normal for homebrew to prompt you to install Xcode. That happened to me right after I installed Mavericks.

As for your question about git, it depends a lot on your usage. Default git (and almost every other tools) are not of the latest version. If you're OK with that, then of course you can just use the default one.


I got a hint that works from this page

Using the Sidebar, make it Thumbnails view, and Select All pages (Cmd-A)
Select the area to crop using Tools > Rectangular Select
Do the Tools > Crop (Cmd-K)


How can I use a keyboard shortcut to run two or more keyboard shortcuts

Write an AppleScript that launches your shortcut(s), then assign a shortcut to that AppleScript.

These two steps have been asked/answered on here previously.  See:

How can one invoke a keyboard shortcut from within an AppleScript?
How do I assign a keyboard shortcut to an AppleScript I wrote?

It's probably a better idea to write the AppleScript to do exactly what you want it to do rather than just execute shortcuts, but the option is there.


Upgrading from sudo 1.7.4p6 to 1.8.6p7 on OS X 10.7.5

The command sudo tar -C / -zxf sudo-1.8.6p7-1-osx7.tar.gz should be working, assuming you are in the same working dir as the downloaded file.

You could add --overwrite to the command, but this may have unintended effects...

I don't quite understand your desire to replace the stock sudo with this seeming random, and unsupported 'update'. If this goes wrong, you may be left without sudo; or you could break more than sudo.

You could uncompress without the -C /, and manually move the files into position.


How to set a fixed title for a terminal in Mac?

Open the Preferences for terminal app
Select the profile in use
Select "tab" pane on the right
Uncheck everything except Show activity indicator

Repeat the above for Window title if you want that to change in addition to the tab title. Now, you will only get the defaults when you make new tabs/windows and your manual changes will persist and not reflect the variables that endeavor to provide status each time the command line prompt is regenerated.


How can I use an external hard drive as a secondary internal hard drive on OS X

The only way to do this is to move your users home folder over to the firewire drive.

see: http://chris.pirillo.com/how-to-move-the-home-folder-in-os-x-and-why/

Of course, this also means the firewire drive will now always have to remain connected, and you will lose some speed due to the fact you are interfacing with firewire and not sata.


Google Maps app crashes on open for iPad

Deleting a downloaded app does two things:

Jettisons the data (like a reset for that app)
Allows for a clean copy of the app to be downloaded again

You could restore the entire device and test maps before restring your backup or you could back it up and erase all content and settings and then test.

Flip a coin if one of those two options does not seem better to you and feel free to ask a follow on question if you find some more details to add to the question and don't want to edit them into the existing question.


You'll need to put a GUID partition table on the disk first - and then create a single Mac OS X Extended Journaled partition for OS X.


Cannot launch gitk on Mojave: mapped file has no cdhash?

If you move "EyeTV MPEG Support.component" out of the /Library/QuickTime directory (to say your desktop) your Terminal should stop complaining about that component.  I had same issue.


How to keep iPhone photos synced on Mac?

To solve the issue with Photos.app and duplicate photos appearing on your iPhone, follow these steps:

Connect your iPhone to your Mac using a USB cable
Open Photos.app
Select 'Delete items'

This will delete your photos after they've been imported in Photos.app. This will prevent any duplicate photos from appearing in Photos.app on your iPhone.

On you Mac you can set up Image Capture.app so it a) copies all images/videos on your iPhone and b) deletes all images/videos afterwards. The following instructions work without Photos.app.

Step 1.

Make sure to disable Settings > Photos > iCloud Photo Library. This will make your iPhone appear as a 'Camera' so Image Capture.app is able to copy/delete media in your iPhone.

Step 2

To sync your photos in iTunes specify the folder your iPhone's media gets copied to.


Existing bugs in macOS and iOS are valuable and are typically kept secret by those who might want to exploit them.

Apple's Position on Security Issues

Apple does not disclose security issues until they are addressed. This is a deliberate decision and mentioned in security and privacy researchers:

  For the protection of our customers, Apple generally does not disclose, discuss, or confirm security issues until a full investigation is complete and any necessary patches or releases are available. Apple distributes information about security issues in its products through security advisories. You can also receive Apple security advisories through our security-announce mailing list.

Security Update Notes and CVE

Recently fixed issues are listed in Apple's security update notes and in the Common Vulnerabilities and Exposures (CVE) site.

Security Advice and Best Practices

You can find third party guides to securing macOS. Apple's own security page is a good starting point.

Guide to Securing Apple OS

See the NIST Security Configuration Checklist's Guide to Securing Apple OS X 10.10 Systems for IT Professionals for a practical list of steps and advice regarding how to secure your Macs at work.

macOS Security and Privacy Guide

Another useful guide to macOS security best practices and current threat management is drhuh's macOS-Security-and-Privacy-Guide.


Can't install 1.22 Google Drive version on OS X Yosemite 10.10.3

Well, I have found a "solution". First, I guess my problem is that I am among the new testers of the new version of Google Drive.
The solution I have found is brute-force : I copied the application straight from my macbook to my imac, rebooted and I finally able to sync files between my local google drive and the online folder.

It works, but this is not such a clean solution. When you click on the button "download Google drive" from the web interface, the installer script is supposed to determine which version you shall download, and that doesn't take early-adopters into consideration. Hopefully they will soon address this issue.


Code-signing issue. Getting a Build failed, with no specific error

Take a look at the build log. This will show the error causing the build to be marked as failed.

  Xcode > View (menu) > Navigators > Show Log Navigator

Within the log navigator, click on the last build. You will be presented with the build steps; control-click on one of the steps and select Expand All Transcripts.

At this point, you will see everything the build system did and the output from each command. The error will be within this text.


MacBook Pro (Retina, 15-inch, Early 2013) computer dies at 40+%

Sure.  The battery has a bad cell.  Have it replaced.


Problems After iOS 8 upgrade on iPhone 5s

Which version of iOS 8 are you currently running? The lasted update, iOS 8.0.2, fixes some bugs that were introduced in iOS 8.0.1 for some folks. Go to Settings > General > Software Update and make sure you are running the latest iOS version.


The max would be dependent on the amount of physical pixels in the LCD screen. You're going to find the limitation will be the display, and not Mac

Considering the 15" Retina MacBook Peo has a 2880 by 1800 which is internally drawn as 5760 by 3600, and it then supports another 2 external Thunderbolt displays. Of course, this is not a theoretical maximum, just a 'practical maximum' using consumer tech.


Custom icons disappeared from folders in Home directory

A possible reason for this behaviour can be that the Home folder isn't set correctly for the user.

Launch System Preferences app and open Users & Groups pane. Click on the lock icon towards the bottom and enter admin password. Now right click on your user and select Advanced Options... from the context menu. In the pane presented verify if the Home directory is set correctly. You can click on the Choose... button to easily browse to and select the Home directory.

It is recommended to restart the system after making the changes to restore the sanity.


reuse Microsoft Office USB stick with 7.9 GB - Error: -69877: Couldn't open device - dd: /dev/disk9: Permission denied

After doing a little research on this, my conclusions are that you can try:

Restarting your machine. If you haven't restarted your machine since plugging in the USB drive then I would try that. Once you do, try reformatting the USB.
Running as root. In Terminal type in sudo su, press enter and then type in your password. Then issue the commands, being careful to type them in exactly as you need.
Booting into Safe mode. Another method is using Safe Mode, as this should allow you to encounter fewer errors than using terminal as a regular user. To boot into Safe Mode, immediately press and hold the Shift key down after booting up - keep it down until you see the login screen.

Finally, did you ever interrupt the formatting process at any time? Doing that can pose issues, so booting into Safe Mode is a good option.

Resources:

https://origin-discussions-us.apple.com/thread/4806895?start=0&tstart=0
https://apple.stackexchange.com/a/225061/242879
https://askubuntu.com/a/771326


I think what you're trying to do is simply burn the contents of the ISO to a DVD, but what you need is a program like Disk Utility to copy the ISO bit by bit to the DVD maintaining its bootability. Try this:

Open up Disk Utility.app in your /Applications/Utilites folder.

Click "Burn" in the tool bar.

Navigate to the ISO disk image you want to burn.

Click burn to start the process or click the disclosure triangle to select further options for burning your disk. Faster write speeds are faster (d'uh) but make the operation more prone to failure due to vibration. I suggest you click the check box to verify the data of the disk once it's burned, then pick whether you want the disk to be ejected or mounted once the operation completed.


Whats the most efficient way to switch between 2 open windows on OSX ? (OR What am I doing wrong ?)

There are ways to enable "focus follows mouse" discussed here:
How can I make focus follow the mouse cursor?, but that might be more than you want...

Otherwise I second MrMojoRisin, get used to cmd+tab or 4 finger swipe (you need BetterTouchTool on Yosemite to bring this last one back).


NeoOffice extremely slow in Mac OS X 10.6.5

I would also take a look at LibreOffice, which is the more open fork of OpenOffice, having used OpenOffice and NeoOffice, LibreOffice is cleaner on OS X then OpenOffice, and does not suffer from the slowness that seems to plague NeoOffice.


Why does my blutooth output sound bad when input is on?

I'm just going to say it.. the "fix" of switching to the internal mic is not really a fix. It's a workaround, for a broken experience and promise. Lots of people post this as a fix. It's not. Imagine Apple advertising their headphones like this - "Enjoy bluetooth music and talking with your iPhone, iPad, and MacBook*(quality will be significantly degraded when using bluetooth microphone). That would be a joke, but it's actually what is happening. When people buy bluetooth headphones, they want to listen AND talk with them, not switch to a MacBook internal microphone. To be fair, all of my bluetooth headphones have this issue. You can see in the Audio MIDI app that bluetooth input is set in stone to use a lower quality. I even tried a tutorial I found online where the person said that changing the bluetooth plist file would fix it, but I tried it and no fix. For whatever reason, Apple choose to set the bluetooth input to the lowest possible quality on a MacBook.. but that's not the case for iPad and iPhone. So why is it like this on a MacBook? Apple? We are waiting for you to give us a true "fix".

-Here's a link to the fix that worked for someone, but not for me.. maybe it'll work for you. https://discussions.apple.com/thread/6879939


How to print to printer connected to Windows 7 PC from iPad Air?

The L7590 does not provide Airprint capabilities and can 't be added.

If you run Windows you can try to enable AirPrint - like described here (I haven't tried it my self, because I'm running OS X, so I can't comment on how good it is): http://www.airprintactivation.com/ - then the printer(s) setup on your PC will be available in iOS

If you run OS X you can download a more less free AirPrint enabler: http://www.netputing.com/handyprint/ - then the printer(s) setup on your Mac will be available in iOS


Going in for an apple repair, do I need to remove my second hard drive for the superdrive?

Did you install the second hard drive yourself?  If so then your best bet is to swap your SuperDrive back in before taking it in for service.

I cover this scenario in more depth with this answer:

  Apple's warranty (AppleCare) is specific about what components are
  user replaceable/serviceable. The hard drive on an older MacBook for
  instance is user replaceable, AppleCare used to have the option to
  send you a replacement hard drive along with a disposable ESD
  wriststrap for you to install it yourself.

  The difference though is the hard drive in the MacBook was almost as
  easy to access as the RAM in the Mac mini. The Mac mini's hard drive
  is a different story. In order to access it you have to expose the
  logic board which increases the chance of damage from ESD if proper
  precautions aren't taken. Because of this the only user replaceable
  part in the new minis is the RAM, since the logic board is still
  pretty well protected when only removing the RAM.

  The Magnusson Moss act essentially says they can't deny warranty
  unless they can prove damage. It wouldn't be hard for Apple to say
  "The upgrade situation you described to us implies that there was a high risk for ESD damage, which has likely caused such and such
  issue".

  The flip side though is that if an Apple Authorized Service Provider
  (AASP) installs a third party hard drive your AppleCare will remain
  intact because the AASP has proved to Apple that its technicians
  follow all safety rules and procedures when working on Macs,
  essentially the same reason Apple allows them to perform warranty
  work. Apple would then not be involved in the hard drive's warranty
  (though most HDDs have 3-5 year warranties of their own) but the
  remaining components would still be recognized as "in warranty" by
  Apple. The most you would need to do is provide a receipt for the
  service you had done at an AASP.

  source: I was "that guy" at the Genius Bar for several years who had
  to turn people away from warranty coverage for unauthorized upgrades &
  repairs.  As soon as your Mac goes out of warranty I definitely
  encourage a DIY attitude, however I would try to heed the above advice
  while it's under AppleCare.

Basically if it was a user replaceable part (it's not) you wouldn't run much risk of them blaming a failure on your upgrade.  The problem though is that with the optical drive not being considered a user replaceable component, and the replacement being a somewhat major (in their eyes) modification, they have every right to deny coverage since they have no way of knowing if proper ESD precautions and whatnot were followed.

If I were you I'd play it safe.  The Superdrive installation isn't terribly difficult and could save you a lot of arguing if you don't get a Genius who just looks the other way.


iMac 2019 fans rather loud (and at 2850rpm) when only 30% CPU - is this normal?

Without hearing the actual “noise” it’s pretty subjective as to what the actual level is.

However, I did notice that you’re running at least 4 instances of yes that you’ve probably detached from the user so what you’re seeing in that 3rd party “analyzer” is incorrect.  Activity monitor will give you a better view.

That said, yes is designed to max out your CPU and, as stated, you have at least four instances running.  Your CPU fans are going to turn on especially when the CPU is running at 90 degrees (the thermal cut off is usually around 100 depending on the CPU) under load.

So, what you’re seeing is perfectly normal and resetting the SMC won’t “fix” it because nothing is broken.  Why?  The fans come on based on temperature not on load.  And, temperature is more than just CPU temperature.  There are several temp sensors, even ones that measure the ambient air that go into calculating when and at what speed the fans spin up.  So trying to evaluate a malfunction of the SMC or a problem with the fans based on one factor is incorrect methodology.

So, is this expected for Mac computers?

Yes.  It’s no secret Apple has poor cooling and uses undersized heat sinks/pipes, and even uses (IMO) sub-standard thermal paste between the conductive surfaces.  It’s a tradeoff between the super elegant and ultra thin design and efficient thermal performance.

Your Mac is running as expected.


Your frustration with the Finder is a worldwide sport :) Finder does make things harder sometimes.

Finder exhibits different behavior depending upon the context (both the source and destination) of your files.

If you drag files in the same "Volume" (or Drive), it will default to Move.

If you drag files to a different "Volume" (or Drive), it will default to Copy.

However, this behavior can be inverted by pressing ⌥ while dragging. (That's option or alt in non-apple keyboards).

So for instance if you Drag a set of files to another folder in the same drive (say from your Documents to your Desktop), Finder will default to Move those files. If you intend to Copy, you have to press ⌥. This will change the cursor and a green "+" marble will appear, indicating that you will be making a copy.

If, on the other hand you insert a USB Key and want to Move files from there to your Desktop, Finder will default to Copy (when you drag), so you will have to override it by, again, pressing ⌥. This time the Green "+" Marble will disappear.

If you happen to have a two-button mouse, you can always drag with the right mouse button; upon release in the destination folder, a contextual menu will appear, asking you for an action (Copy or Move).

Finder doesn't implement cut, so any "move" operation must be manually performed by using the mouse as I've just described.

There is, albeit for a small price, a very decent Finder "plug-in". I'm talking about Total Finder. It's not a bloated piece of software and has been decently stable since I got it. Among other features (like tabs!) it sports Cut and Paste:

  Use keyboard shortcuts to move files around. Faster than drag & drop.

I do not work for BinaryAge but I do recommend TotalFinder to people who doesn't want to use a full finder replacement (like the excellent PathFinder), but still wants a few details.

All these pieces of software offer trial versions so you can "see for yourself".

Finally, as already suggested, don't ⌘ and click to move or copy files or you will be effectively deselecting the last one.

Hope this helps you a little bit more. As a side note, there are some Finder alternatives or enhancements, some of these topics have been discussed here on Ask Different.


mount NTFS for read/write failed, it worked before upgrading to 10.12.4

I have tried this on 10.12.5 beta 5 and works OK. Beta 4 did not for me


What is the best phonetic app for the iPad?

This is a little left field from the answers you requested, but I would suggest turning on the feature to allow screen reading in the accessibility settings area, which allows any app that uses a standard text area that can be cut/paste to be read aloud.  In this way as she encounters test in any app, she can have portions of it read to her, and the diction is pretty good as a rule, allowing her to learn by real world example.


How to fix apps "waiting.." forever after sync?

The springboard controls the layout of apps on iOS and is confused.

Generally, it's not a deep corruption of the database (which you fix by restoring the phone, setting up as new and installing things again from scratch) so here are some things to try:

Turn on airplane mode in Settings app (tells the download process to chill)
Restart the device (more chilling - starts fresh, frees up RAM)
Connect to iTunes

Then you should be able to deselect the problem app (removing all traces of the attempted download) and then finally put that app on the device. The airplane mode is the most important thing since the device will try to fix itself and lock iTunes out until it realizes it can't. Once you have gotten the stuck app resolved, turn off Airplane mode to resume calls, data and WiFi service. If it doesn't resolve, you may have to erase the phone and restore it from a backup or anew.


I guess I gave up too quickly when I mostly found web pages only talking about how to turn it on.  A few more minutes of searching found https://www.payetteforward.com/why-is-my-iphone-black-and-white-heres-the-real-fix/ and reading all the way to the bottom.

I don't know how it happened, but 'zoom filter' was set to greyscale & invert colors, and the filter was being applied even when things weren't zoomed in.  (and I wouldn't have set it, as I use zoom for lots of things)

But it seems to use a different mechanism than the other accessibility options, so you can't disable it from there, you have to go into the zoom settings.


Do pre-built Little Snitch configurations exist and are they shared?

Yes, there are pre-built rule sets, and someone shares them.

I just stumbled upon this:

Little Snitch rules for blocking ad servers

Here they provide a list of pre-built rules for blocking ad-servers.

It is not related specifically to iCloud, but in general yes, there are shared sets of rules for Little Snitch.

Edit: now I see what Dylan was referring to with "are you going to manually...". A little explanation is in order.

At the time, the only way (I thought) was to copy the list and paste it into Little Snitch ruleset. It was not a difficult process (literally, cmd+c, cmd+v on Mac) but the "Rule Group Subscription" on LS makes it even easier.

The website I posted earlier now provides a link to the subscription: click and be happy.

I guess Dylan's answer and mine provide a couple of alternatives for subscriptions, but I wouldn't know the difference. I admit that I stumbled upon pgl.yoyo.org just by chance.

Further edit: It seems that Steven Black (linked in Dylan's answer) collects a few sources, including yoyo, so I'd say it is more comprehensive (more rules is better?).


The News app and features for iOS 10 are only limited to the USA, UK and Austraila at the moment. http://www.apple.com/ios/feature-availability/#news

In these countries, if you were to ask Siri for example:

  What's the latest in New York City

Sir would respond with a list of articles from the News app.

However, if you are outside these countries. For example, I am in Toronto, Canada and if I ask Siri a similar question:

  What's the latest in Toronto

Siri first asks for confirmation to use a Twitter account to recommend more personalised results if you don't have one signed in or don't allow Siri access to Twitter. Siri will display a list of Tweets related to the location of Toronto.


How can I email a document from iWork without the recipient seeing the intermediate saved versions?

The versions are not embedded in the files, but instead get stored elsewhere.

Due to the nature of how Lion stores versions, small files get saved entirely, but larger files can track only the parts of the file that changed in fairly snazzy ways to reduce the chance that some trivial change to a very large file uses more than a trivial amount of version space.

When you mail any file, you don't send the version, just the last saved copy.

When you delete a file, the system checks and cleans out versions so you are generally never going to see a large amount of space tracking files that no longer exist.

If you are curious - this terminal command will tell you the sum total of the tracking and storage on your main drive: sudo du -sm /.DocumentRevisions-V100/

I have yet to see a mac with more than 200 meg of storage here, but post a new question if you ever find a bug or situation where this storage seems out of line. Lots of good information on this is on the site as well as elsewhere:

Do OS X Lion's Versions and Resume features store the cached data for encrypted .sparsebundle images in a secure way?
John Siracusa's very nice Mac OS X 10.7 Lion: the Ars Technica review : Versioning Internals


Reconnect to Wi-Fi when "Wi-Fi does not have an IP address"

In the Network Preferences, click "Advanced ..." and remove the WiFi network from the 'Preferred Networks'. This will make macOS forget the network, after which you can attempt to connect again. macOS will build up the connection 'from scratch' and won't rely on any cached settings. I have to use the same trick once in a while for our corporate WiFi network.


How long does it take to convert a cdr to an iso?

Adding a large buffer will speed things up significantly.  The default size is small; like 512 bytes. You increase the size by using the bs option. I'm only using sudo because you did.

sudo dd if=/dev/disk bs=4096m | sudo dd of=/Volumes/Path/To.iso bs=4096m

This scary looking command will ask the dd commands to report back their status.  The -s says to signal.

sudo kill -s siginfo $(pgrep ^dd)   # get dd info

I did testing with various buffer sizes, the larger the buffer the faster will be the copy. Don't want to get so big a buffer as the buffer needs to be paged.

If I got the syntax above wrong, these are the actual commands that have worked for me.  I assume you know that you need to unmount the partition/drive before using dd. For some dd commands, I needed to use sudo.

dd if=/dev/disk0s10 bs=4096m | gzip | dd of=~/disk0-s10 bs=4096m
dd if=~/disk0-s10 bs=4096m | gunzip | dd of=/dev/disk0s10 bs=4096m
sudo kill -s siginfo $(pgrep ^dd)   # get dd info

Edit: Jan 18,2019 I did timings using one or two dd commands.  It was a toss-up of which form was faster. The time in my test varied typically by 0.3 of a second between the commands. However, in one case the two dd commands were slower by over a second.  The difference seemed to be which command was run first.  The second test was always faster. I'm guess that the one dd command build a second process to output the data and communicates to the second process via a pipe.  This is about the same as using two dd commands.

dd if=InstallESD.dmg bs=801920k  of="/Volumes/--Mojave--/mojave2.dmg"
5+1 records in
5+1 records out
4719681368 bytes transferred in 28.887363 secs (163382216 bytes/sec)
Show_Time
 date +%s
  Elapsed time in seconds since start of processing: 84    Time of this step: 29

dd if=InstallESD.dmg bs=801920k | dd of="/Volumes/--Mojave--/mojave.dmg" bs=801920k
5+1 records in
5+1 records out
4719681368 bytes transferred in 27.383548 secs (172354633 bytes/sec)
0+72017 records in
0+72017 records out
4719681368 bytes transferred in 27.459524 secs (171877757 bytes/sec)
Show_Time
 date +%s
  Elapsed time in seconds since start of processing: 112    Time of this step: 28

rm  "/Volumes/--Mojave--/mojave.dmg"
rm  "/Volumes/--Mojave--/mojave2.dmg"
Show_Time
 date +%s
  Elapsed time in seconds since start of processing: 112    Time of this step: 0

dd if=InstallESD.dmg bs=801920k  of="/Volumes/--Mojave--/mojave2.dmg"
5+1 records in
5+1 records out
4719681368 bytes transferred in 26.754509 secs (176406950 bytes/sec)
Show_Time
 date +%s
  Elapsed time in seconds since start of processing: 139    Time of this step: 27

dd if=InstallESD.dmg bs=801920k | dd of="/Volumes/--Mojave--/mojave.dmg" bs=801920k
5+1 records in
5+1 records out
4719681368 bytes transferred in 26.210222 secs (180070255 bytes/sec)
0+72017 records in
0+72017 records out
4719681368 bytes transferred in 26.286946 secs (179544682 bytes/sec)
Show_Time
 date +%s
  Elapsed time in seconds since start of processing: 165    Time of this step: 26

... lines at the beginning were trimmed. ...

Here is the bash script I used.

#!/bin/bash -v

function Show_Time () {
  let currentRunTime="$( date +%s ) - ${Seconds_since_the_epoch_start}"
  let stepRunTime=currentRunTime-previousRunTime
  echo "  Elapsed time in seconds since start of processing: ${currentRunTime}" \
     "   Time of this step: ${stepRunTime}"
  echo
  let previousRunTime=currentRunTime
}

savedCommandName="$0"
echo
echo "${savedCommandName} script last revised on $(GetFileInfo -m $0)"
#echo "${savedCommandName} script revised."
echo
# input file name  "/Applications/InstallmacOSHighSierra.app/Contents/SharedSupport/InstallESD.dmg"
inputDir="/Applications/InstallmacOSHighSierra.app/Contents/SharedSupport"
cd ${inputDir}
inputName="InstallESD.dmg"
echo "inputDir is ${inputDir}"
echo "inputName is ${inputName}"
ls -l "${inputDir}/${inputName}"

ls -l "/Volumes/--Mojave--/mojave.dmg"
rm "/Volumes/--Mojave--/mojave.dmg"
ls -l "/Volumes/--Mojave--/mojave.dmg"

ls -l "/Volumes/--Mojave--/mojave2.dmg"
rm "/Volumes/--Mojave--/mojave2.dmg"
ls -l "/Volumes/--Mojave--/mojave2.dmg"
# Set the start time now that the user interaction is done
Seconds_since_the_epoch_start=$( date +%s )
# 80meg buffer

Show_Time
dd if=InstallESD.dmg bs=801920k  of="/Volumes/--Mojave--/mojave2.dmg"
Show_Time
dd if=InstallESD.dmg bs=801920k | dd of="/Volumes/--Mojave--/mojave.dmg" bs=801920k
Show_Time
rm  "/Volumes/--Mojave--/mojave.dmg"
rm  "/Volumes/--Mojave--/mojave2.dmg"
Show_Time
dd if=InstallESD.dmg bs=801920k  of="/Volumes/--Mojave--/mojave2.dmg"
Show_Time
dd if=InstallESD.dmg bs=801920k | dd of="/Volumes/--Mojave--/mojave.dmg" bs=801920k
Show_Time
rm  "/Volumes/--Mojave--/mojave.dmg"
rm  "/Volumes/--Mojave--/mojave2.dmg"
Show_Time
dd if=InstallESD.dmg bs=801920k  of="/Volumes/--Mojave--/mojave2.dmg"
Show_Time
dd if=InstallESD.dmg bs=801920k | dd of="/Volumes/--Mojave--/mojave.dmg" bs=801920k
Show_Time


I can't upgrade my OS until I change my icloud drives settings

Apple provides free support for basic use of the Mac App Store and basic iCloud support, so I would start with them.

https://support.apple.com/en-us/HT201541
https://support.apple.com/icloud

Once you have some expert help on narrowing down what specifically you need to change / opt in / enable on your iCloud / Apple ID - then you will be able to see what / why you can't use the Mac App Store to download a new update. You probably have a few bridges to cross so try to pick apart specific messages and error conditions or specific things you can't find online if you ask a follow on question here.


According to this Apple discussion:

  The problem is that the expose window is stuck. In order to force a
  refresh take these steps:

  launch terminal
  type killall Dock


How do I share sections from the notebook via e-mail in Microsoft OneNote for Mac?

Unfortunately, no. OneNote for Mac does not support local files in any fashion, including saving them. You are expected to use OneDrive and SharePoint instead. Your best bet would be to use File | Share | Email Page | As Message and paste the body into a TextEdit Document.


Google Chrome caused Mac OS X to have High CPU

I had a similar problem. A new MacBook Pro was still (after a couple of weeks) running too damn hot. And Chrome was, seemingly, not using a lot of CPU or RAM. And still there were a number of articles and forum posts about how Chrome is still the root of all of this evil.
Being the skeptical type I left Chrome alone. But the heat issue was still there and nothing else was fixing the issue. So I followed some instructions on some web page, somewhere that had some detailed instructions for removing Chrome and all of its little background processes. Google it, you will find quite a few helpful places with detailed instructions.
In its place I installed Brave, which is based on Chrome but without all the tracking and auto updating and anything else Google could throw at it.
It worked.
So if you can do without Chrome itself and use Brave in its place you just may find that does the trick.


Get messages that were sent in the last 7 days (Applescript)

Yes, that's absolutely possible.  Here's an example using my IMAP mail account, the name of which I've redacted for personal privacy:

    tell application "Mail" to get the subject of ¬
        every message of mailbox "Sent" of ¬
        account "C*************.com" whose ¬
        date sent > ((current date) - days * 3)

This returns a list containing the subjects of each mail message that I sent within the last 3 days.

To apply this to your specific situation, you create a command that resembles this:

    tell application "Mail" to repeat with myMessage in (the ¬
        messages of mailbox MySentMailbox of ¬
        account MyAccount whose ¬
        date sent > ((current date) - days * 7))
            .
            .
            .
    end repeat


You need a Y cable splitter to connect 2 headsets.

Most come with single audio control but there are some with dual audio volume. If you already have audio volume control on each headset then no problem.

Since you have the headsets already with different plugs you will have to get appropriate cable splitter for that.

I did some search for you.

First the USB male to 2x Female splitter like this.

One you use for your USB Head set.

For the second headset you need another adapter like this.

Those do not have Volume adjustment, so hope there is no problem with that :).


Transfering app after membership expired

Contact developer support from the new account and ask if hey can help. I’m guessing a one time transfer if you know exactly what you need and aren’t a pain in the Apple (pita) I could see them handling the transfer or re-activating the old account for a day to effect the transfer.

Seems like you could just scrape together the $100 as you didn’t plan ahead as the worst case scenario, but perhaps work with support if you want to keep your $100 and don’t mind waiting a bit to convince someone to help you out.

The risk is Apple can’t tell you’re who you say you are and then they have to deal with an improper transfer of someone else’s intellectual property and personal information. If they are open to liability in this request, you’ll likely never convince them to transfer and have to walk away from either the renewal fee or the abandoned apps.


Can I permanently lock certain chrome-tabs to the same desktop on Mac?

This is completely untested but just a couple of thoughts.

Launching Apps on Login

For starters you can "pin" specific applications so that they will start on login to your account.

Mission Control Spaces

You can then go into Mission Control and configure your screens so that they each have their own space.

Creating Spaces

Now access Mission Control (4 finger swipe up) and create a separate space for each screen. Now drag your applications to the corresponding space for a given screen.

NOTE: See here for reference: Use Mission Control on your Mac.

Pinning Chrome Tabs

Doing the above should get you most of the way to what you want. Pinning tabs in Chrome is possible as well. For example, you can right click on a given tab, and then pin it. Chrome will reopen these tabs each time you launch it and keep them in the order.

Creating Multiple Chrome Windows

With Chrome, you can open up multiple windows with the pinned tabs in each, and then put each of these windows on a space for a given screen.

To open up multiple windows in Chrome:

References

Yosemite - Open App On Particular Screen


unistalling el capitan and installing yosemite issue

If the Mac in question shipped with OS X 10.11.x on it, it likely will not be able to run a previous version of OS X (like OS X Yosemite.) This is because as Apple updates hardware, they build the drivers for the new hardware into the OS that the Mac comes with and also into later versions of OS X.

A version of OS X which was released before that Mac model won't have the correct hardware drivers for that Mac. Apple's pretty upfront about it and states Avoid using versions of OS X that are older than what came with your Mac.

Apple maintains a knowledgebase article that shows which versions of OS X shipped with which hardware. It's available via the link below:

OS X versions and builds included with Mac computers

For more information on this issue, please see the link below:

Use the version of OS X that came with your Mac, or a compatible newer version


iOS 8 - Apps other than Safari won't accept Cyberoam certificate

I found this: Certificate error when using Chrome for iOS with company CA

  There is no way to add Certificate Authorities to Chrome.app on iOS.
  The only way to manage them is in Settings > General > Profiles.

  It seems like this is an issue with Chrome.app that's not resolved
  yet. See Chrome for iOS ignores trusted root CA certificate. You may
  get additional help by posting to the Google Chrome Forum (linked
  before).


Can a Macbook dual boot Snow Leopard and Lion?

Yes, it can dual boot, and no, you don't need Boot Camp. Back up your system first, in case anything goes wrong. Create a second partition. When you download Lion, you'll need to download it without installing, then follow instructions on the web to create an install DVD or USB drive. Then, run the installer, and select the blank partition as the target for the install. When you boot, hold down option, and you can select which partition you want.


tl;dr Run: killall 'System Preferences' > /dev/null 2>&1 && rm '~/Library/Application Support/Dock/desktoppicture.db' && killall Dock

For anyone who may experience this issue in the future, my issue was with the file located at ~/Library/Application Support/Dock/desktoppicture.db.

After doing some googling, I cam across the following two threads, here and here. Both of which suggest removing the desktoppicture.db with rm '~/Library/Application Support/Dock/desktoppicture.db' && killall Dock which solved the issue for me. You can read in more detail about the issue and proposed solution on the second of the two linked threads above


To see battery usage by app go to Settings -> Battery and you can see the battery usage by  app for last 24 hours of last 10 days. Then you can see what is using the battery.

About the battery usage on your iPhone, iPad, and iPod touch

You can click battery health to check the battery health to see if it needs replacing.

Alternatively you can try updating to the latest software. Later software updates improve battery life performance.

From this Apple Support article:

  Plug your device into power and connect to the Internet with Wi-Fi.
  Tap Settings > General > Software Update.
  Tap Download and Install. If a message asks to temporarily remove apps because iOS needs more space for the update, tap Continue or
  Cancel. Later, iOS will reinstall apps that it removed.
  To update now, tap Install. Or you can tap Later and choose Install Tonight or Remind Me Later. If you tap Install Tonight, just plug your
  iOS device into power before you go to sleep. Your device will update
  automatically overnight.

If your phone is low in battery you can preserve is by turning on low power mode in battery settings which turn off some features.

Use Low Power Mode to save battery life on your iPhone