How to store and retrieve S/MIME certificates in Open Directory (LDAP) of macOS Server?

Found it, and it's fairly easy (as one would expect from macOS). I'll explain step by step.

How to store S/MIME certificates in Open Directory

Launch the Directory Utility app, either directly from Spotlight, or (that's how I found it) by going through System Preferences > Users & Groups > (authenticate if necessary) Network Account Server - Edit (or Connect if you haven't yet) > Open Directory Utility
Select the Directory Editor on the top
Select Viewing: Users, if not selected by default, then click on a user, and the user's set attributes will be shown
To add an attribute, by clicking on the lock above, authenticate to get into edit mode - note that, this time, you must authenticate with the directory admin credentials, because now we want to edit the directory entries
Click on the + sign below the attribute list to add a new attribute
As you will see, the userCertificate and userSMIMECertificate attributes are already available from the dropdown list
Select one of them, then press OK
When you click on the attribute, its data are shown below the attribute list
You can toggle between Text and Data view – to add an S/MIME certificate, either copy paste into the text view or just drop the file in the Data view
That's all!

I believe, the S/MIME certificate data should in PEM format, but I am not sure about it.

How to retrieve S/MIME certificates from Open Directory

In order to enable clients to retrieve S/MIME certificates from Open Directory (or any LDAP actually), here's how to do this on a Mac client:

Use the Directory Utility app, as explained above, to add the LDAP server to the search list on the client Mac (also explained here). Make sure that the LDAP server is added in the Search Policy list under Contacts. The Contacts server in the Server app need not be enabled.

After you have successfully added the LDAP server, open your Contacts app on the client. There should be a new entry Directory Services on the left sidebar. Click on it, then, in the Search field, enter the name of a user in your LDAP directory. The directory entry should then be displayed, and left of the email address, you should see a small certificate symbol  similar to the symbol in Mail app that is displayed for signed emails. When you click on it, the S/MIME certificate retrieved for this user will be displayed.


iPhoto "A photo Has been found in the iPhoto library that was not imported"

Open your iPhoto Library package by Control-clicking on it and selecting "Show Package Contents" from the contextual menu. Look for a folder titled "Importing" or "Import" (NOT Auto Import") and see if it has any photos in it. If it does move it to the Desktop (do not move or rename any other folder/file while in there). Launch iPhoto and the message should be gone.

Check that folder to see if the photos are any you don't have in the library or want. If not, then delete. If so, import again.


Can't reinstall OS on MacBook Pro from 2009

I figured it out. I just created a USB boot drive with Mavericks and that showed up. I waited a while and eventually it worked. From there I just downloaded an upgrade for El Capitan and I was all set.


How can I diagnose an iPad that seems super slow to recharge?

Be sure you are using an iPad charger. If you are using a standard USB charger or an iPhone/iPod charger then it will take a very long time to charge.


MacPort - jslint fails to install due to incompatible spidermonkey installation

If you don't have spidermonkey installed, use sudo port install jslint +fileobject. If you already have it installed, you need to rebuild it with the +fileobject variant: sudo port upgrade --enforce-variants spidermonkey +fileobject and re-try installing jslint.


Cannot restart Mac, Finder issues in El Capitan

My issue turned out to be in an outdated Wacom driver. After removing it, Mac worked fine. I guess formatting would have sorted it out too.


Run the command you mentioned, then delete the plist. That's all there is to it.


The iPhone cannot be backed because there is not enough iCloud Storage for that

You can temporarily increase your iCloud storage ($1 per month) and do your backup. You can then check how big the backup is. I noted you have 128GB on your phone. If only a fraction of that is used it could be a lot. After your backup, you can reduce your icloud storage back to 50 GB to end the $1 per month charge.


Mavericks + Server.app + getmail (oh my!)

Is there an easy(-ish) way to get a similar workflow, having the Server retrieve emails and add them to the local IMAP server?

The key is to use the dovecot-lda program (lda for Local Deliver Agent), which can write messages into the IMAP server.

For example, if using getmail, you could provide a [destination] section which invokes dovecot-lda:

[destination]
type      = MDA_external
path      = /Applications/Server.app/Contents/ServerRoot/usr/libexec/dovecot/dovecot-lda
arguments = ("-d", "USERNAME")
allow_root_commands = True

Note that allow_root_commands is required because getmail will need to be run as root to invoke dovecot-lda.

Aside: The path for dovecot-lda is specified in the postfix configuration file /Library/Server/Mail/Config/postfix/master.cf:

dovecot   unix  -       n       n       -       25      pipe
  flags=DRhu user=_dovecot:mail argv=/Applications/Server.app/Contents/ServerRoot/usr/libexec/dovecot/dovecot-lda -d ${user}

  What about server-side filtering? How can that be setup?

Dovecot is configured to use Sieve (/Library/Server/Mail/Config/dovecot/conf.d/90-sieve.conf). Sieve rules are stored in /Library/Server/Mail/Data/rules/%u/dovecot.sieve (see /Library/Server/Mail/Config/dovecot/conf.d/90-sieve.conf), which unfortunately isn't easily writeable.

To install additional Sieve rules, use a Sieve editor, e.g. Sieve clients. Note that you need to use the correct port (Server.app defaults to port 4190; see /Library/Server/Mail/Config/dovecot/conf.d/20-managesieve.conf).

Unfortunately, after spending far too much time trying to make this work, I've given up on using a Sieve client.

If you're root, create a .sieve file (verify syntax with sievec), then copy to /Library/Server/Mail/Data/rules/%u/dovecot.sieve. Note: %u is the user's GUID, not their user name (i.e. /Library/Server/Mail/Data/mail/%u should exist), and /Library/Server/Mail/Data/rules/%u should have permissions 775 (writable by the mail user).

If you're not root...get root and see above.

When the Sieve rules are in place, /Library/Logs/Mail/mail-info.log will contain a line similar to:

mail-info.log:Feb 13 17:14:52 lda(pid 6108 user USERNAME-NOT-GUID): Info: sieve: msgid=<whatever...>: ...


"The application “%@” can’t be opened." However doing "open with" and selecting default app works

Fixed by uninstalling atom (using appCleaner) and then reinstalling most recent version.


Failed to verify InstallESD.dmg: hdiutil verify failed (Trying to reinstall Mac OS X Lion)

The pulling the RAM out before installing did the trick for me!

When I first bought my MacBook 5 years ago it only came with 4GB of RAM. About a year and a half ago I upgraded this to 8GB. For whatever reason this throws errors and won't let you reinstall Mac OS X again.

So what I did was turned the MacBook off and flipped it over and took off the bottom cover. I then removed one of the sticks of RAM (the one on top) and restarted the computer and tried installing again. This time it installed without any issues and after it was installed I put the other stick of RAM back in again.

Here's an article that will help you locate and remove any RAM that you may have previously installed in case someone else had done it for you or before you.

MacBook Pro: How to remove or install memory


Is it possible to chat with a Facebook group using a desktop app on macOS?

I have not used it, but Current for Facebook claims to support group chats.


Free software for mounting an FTP share as a writeable folder in Finder

You could create a tiny Automator application to do the job.

Inside of Automator, add the following two actions to your workflow

"Get specified servers"
Specify your server/servers in this action as follows: ftp://username:password@yourserver.com
"Connect to servers"

(The names of the steps might not be a little off since I'm not running an English version of OS X)

Save this as an application and start it whenever you need. You can also make it a startup item in System Preferences > Account under the Startup items tab.


Create driverless print queue in Mac OS 10.12+

It's obviously (from the error) having a problem querying the server for the PPD.

As an alternative, you can specify the URL to the generic PostScript PPD:

-m drv:///sample.drv/generic.ppd

Or you can use -m raw, though it's deprecated.

Or if all else fails, leave out the -m flag altogether.


Transfer of Snow Leopard license from broken MacBook Pro

If it is a retail copy of Snow Leopard, then yes. If it is a machine copy, then probably not.

It's unlikely you'll have any problems installing it from a licensing perspective, there is no serialisation in Snow Leopard. You may run into strange problems down to the incorrect build of 10.6 for the hardware though as discs that come with machines are machine specific.

Snow Leopard is cheap though, you should buy it if you think you need to!


Or, use a function instead of an alias:

con() {
  local OPTIND svr
  while getopts ":ab" option; do
    case $option in
      a) svr=server1 ;;
      b) svr=server2 ;;
      ?) echo "invalid option: $OPTARG"; return 1 ;;
    esac
  done
  ssh username@${svr}.domain.com
}

con -a


What are your favorite Mac OS X keyboard shortcuts?

ctrl+F2: Access the menu via the keyboard (Windows alt+space equivalent).


If I replace my MacBook Pro hard drive can I reinstall OS X using Internet Recovery?

I just did this yesterday (I have a slightly older MBP) and wasn't able to boot into Internet Recovery mode without mounting the old drive using a USB sled.

According to Apple your Mac should support Internet Recovery with a firmware update:

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

If for some reason you can't access Internet Recovery the alternative is you can mount the new drive externally and use Internet Recovery to install OSX on the new drive before swapping them but the install process will be a bit slower since the drive is external.

Hopefully you're planning on installing an SSD, I installed one and it made a huge improvement on the speed of my Late 2009 MBP.


Adding song to iTunes Playlist stuck on "in progress" or error 11.444

Heb jij al een oplossing gevonden? Ik heb precies hetzelfde probleem en kom er ook niet uit. Fijne zondag en hartelijke groet, Dees


How can I reinstall Mac OS 10.5.8 without erasing data?

You should be able to reinstall the OS without it deleting any of your personal files (those in your User folder); it's one of the install options available from the OS installer. This option only changes System and other files that belong to the OS).

(Of course, be careful not to select a full erase/reinstall option. And a full time machine backup is still highly recommended. If things go wrong, you can then do a full erase/install, and the installer will prompt you to restore personal files via your time machine backup.)


How can I restore photos from an iCloud backup to a new iPhone?

Photo Stream and iCloud Backup are separate — your photos are stored in your iCloud Backup and many of them are duplicated and stored in Photo Stream (unless you deleted them from your camera roll in which case they're not duplicates).

The iCloud backup can be restored whole to your device. You can't restore parts of it — it's all or nothing.

However, there is a workaround:

Make a backup of your new device to iTunes.
Reset your device to factory settings and restore the iCloud backup.
Use Image Capture or iPhoto/Aperture to import the photos.
Reset your device to factory settings and restore the iTunes backup.
Copy the photos back to your device.


How does one interpret Load Average in iStat menus?

Load average is CPU based, not GPU based. The numbers represent one, five, and fifteen minute averages of the load on the CPU.

  A single-core CPU is like a single lane of traffic. Imagine you are a bridge operator ... sometimes your bridge is so busy there are cars lined up to cross. You want to let folks know how traffic is moving on your bridge. A decent metric would be how many cars are waiting at a particular time. If no cars are waiting, incoming drivers know they can drive across right away. If cars are backed up, drivers know they're in for delays.

Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages

1 core with a load of 1 means that core is 100% busy. But you can add loads when heaving more cores. 4 cpu's with a load of 1 means the total of the 4 cores is 25% busy, a load of 4 means 100%. A load higher than the number of cores means that the cores can not handle the load an the cpu is running 100% per core (and is the bottleneck of your system)


Is there a limit to how many iOS devices I can synch with iTunes?

There is no limit to how many iOS devices you can sync with iTunes.

The 5 computer limit is how many computers you can have authorized simultaneously with iTunes.


Upgrade to final release of Yosemite from gold master?

All the coverage I've seen says to run what you have and 10.10.1 will convert all pre-release versions of OS X - including the latest GM candidates to the full production version.

You are free of course to go through the work to download the free version of the installer and see if it runs on your specific version of OS X but without knowing your exact build and source of the pre-release software, it's hard to be more specific.


Which ebook format do books from the iBooks Store use?

Books sold by the iBookstore are in ePub format with a FairPlay DRM wrapper.


Apple support can quote you a repair. Since they have batteries and several processors inside each, immersion and agitation for tens of minutes likely caused an overload / short circuit which will be followed by rapid corrosion of metal in the device.


Extensions are disabled in `php.ini` and they still show up on `phpinfo.php`... why?

The enabled extensions are listed in a different section of phpinfo.


How make Safari download PDF files instead of opening them in-page?

Open up a terminal window: ⌘space and type Terminal. Hit enter when its highlighted. When you get to the terminal prompt, type the following command:

defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES

You won't get a response at the command line, but once you restart Safari it will no longer open them in the browser.

To take it a step further while you're there, you can keep it from opening them once they are downloaded with this one:

defaults write com.apple.Safari AutoOpenSafeDownloads -bool NO

This last command achieves what the other answer suggests.


Is there any way to globally or -- at least persistently -- kill OnSwipe for iPad browsing?

I asked OnSwipe for a solution as a global cookie on assets.onswipe.com could be used to do the trick.
Sadly they are unwilling to help in any way.


I want a pop up notification when a file has certain info written to it

I don't think a network filesystem is going to give you enough state information to do this quite as simply as you asked.  One solution would be this:

On the server side, run a script that looks for your 'successful' string as you described.  When it finds the string, have it write a new file into the shared directory.

On the remote side, run a script that checks for this new file, e.g.:

test -f newfilename && echo 'Success!' && rm newfilename

Once you've been notified, you can delete this new file and loop around for the next time.  The file creation and deletes should be reliably communicated across the network.


VLC 2.1.5 (all versions and 2.2.0) plays only audio not video

I've experienced something similar with VLC. Typically, I play vids in full screen on my second display connected to my MacBook. When I am not connected to the external display and I play a vid, VLC seems to want to still play in this dual display mode. So it's like it's playing on a ghost second display.

If this is your situation, the easiest solution is to simply press 'Escape'. That pulls the vid out of full screen mode (on the ghost second monitor) and displays it in windowed mode.

From there you should be good.

(P.S. I just wrote this same thing in another similar VLC post earlier today... Must be something in the air.)


How to get a list of the installed app on my Mac?

system_profiler

To list all the applications on a Mac, use the system_profiler command:

system_profiler SPApplicationsDataType

This will output the command in human readable format:

   Power Manager:

      Version: 4.6.1
      Obtained from: Identified Developer
      Last Modified: 20/01/2018, 6:42 pm
      Kind: Intel
      64-Bit (Intel): Yes
      Signed by: Developer ID Application: Dragon Systems Software Limited, Developer ID Certification Authority, Apple Root CA
      Location: /Applications/Power Manager.app

This will include every application on the Mac, including many that are hidden within folders.

XML Formatted List

Add the -xml option to the command for a format that can be parsed and analysed by other tools:

system_profiler -xml SPApplicationsDataType

This will output a Property List (XML), such as:

        ...
        <dict>
            <key>_name</key>
            <string>Safari</string>
            <key>has64BitIntelCode</key>
            <string>yes</string>
            <key>info</key>
            <string>11.0.3, Copyright © 2003-2017 Apple Inc.</string>
            <key>lastModified</key>
            <date>2018-01-31T08:33:08Z</date>
            <key>obtained_from</key>
            <string>apple</string>
            <key>path</key>
            <string>/Applications/Safari.app</string>
            <key>runtime_environment</key>
            <string>arch_x86</string>
            <key>signed_by</key>
            <array>
                <string>Software Signing</string>
                <string>Apple Code Signing Certification Authority</string>
                <string>Apple Root CA</string>
            </array>
            <key>version</key>
            <string>11.0.3</string>
        </dict>
        ...


OS will not mount the VM partition. Virtual memory must be forced to work

Solved. Cobbled together a workaround with information from interwebs.

Created this plist named “local.mountdisk1s4.plist” containing:

             Label
             local.mountdisk1s4.plist
             ProgramArguments

                  /sbin/mount_apfs
                  disk1s4
                  /private/var/vm

             KeepAlive

            SuccessfulExit

Placed it in /Library/launchdaemons

Swapping now works as it should. Still not sure how this all broke in the first place, or if there's a more elegant solution.


Apple Watch locked when restarting after long powered-down state

To troubleshoot, I would follow the restore steps:

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

It mentions that bluetooth should be on on the phone and you should be connected to WiFi so if you can turn both of those on on both devices (might be hard on watch unless it prompts you) but if you can get the same WiFi router as the last time it booted, it might reconnect automatically.
Once that’s done, you might end up down the “watch won’t restart” article which has a few more things to try before you contact Apple Support. Even though force restarting the watch isn’t ideal, you might try that as well one time once WiFi and Bluetooth are enabled to the max extent you can manage.

force restart - https://support.apple.com/en-us/HT204510
reset and restore - https://support.apple.com/en-us/HT204567


iPhone 4s can't use office internet (Squid Proxy)

On the phone, go to advanced WiFi network settings and put the HTTP Proxy settings there.

It can happen quite often for the iOS to not be able to detect the proxy.


Can I glue a MagSafe connector broken at the "computer" end?

This can be fixed with an application of Super Glue or other adhesive for metals.

First, clean it with acetone - use a cotton swab (like a Q-Tip) to ensure that the metal is clean.  This will help the adhesive bond properly

Using a small amount of adhesive that is made for bonding metals like Super Glue, place it around the edges of the part to be repaired.  Hold for at least a minute (the set time for the adhesive) and you should be good.  For best results, allow to cure for an hour before use.  You should be good to go


Cursed black box following cursor, on multiple Macs

I have yosemite, and i found a setting that does what you're describing but does not look quite like yours, for me it creates a box AROUND the mouse.
So hopefully you dont have yosemite and thats why. Anyways you can find the setting in:

System preferences -> Accesibility -> Zoom -> More Options

Then when you're here you should uncheck 'Show preview rectangle when zoomed out'. If its not checked, check and uncheck it for good measure.
Found here


Install Mountain Lion to another drive without rebooting

Not really, but once you install a clean Mountain Lion system, you can image it to a DMG file and the clone it to your heart's content without rebooting the system doing the copying.


System won't boot after attempting 10.13.4 update

I had a similar problem with the 10.13.4 update. It failed to install and booted into Recovery Mode where the Console showed a file not found error in the logs and a menu to shutdown or restart. If restarted the system would again try to install the update and then fail the same way, resulting in a loop. Here is how I managed to fix it.

First I booted into Safe Mode (hold shift while booting) and started the update again from the Mac App Store. But this didn't succeed and the same problem appeared. I then booted again into Safe Mode, but this time deleted the folders which contained the update files which caused macOS to attempt to install the update every startup. These are the two folders I deleted

/macOS Install Data
/Library/Updates

This requires admin privileges. The easiest way is via the Terminal command sudo rm -rf /path/to/folder (Warning: Be sure that the path is right, otherwise you might delete your files. In any case make a backup of your drive first!). And even then it will tell you it can't delete all files in those folders because some are system protected but this is enough to solve the problem.

After deleting these folders I was able to boot up normally again although the system showed it was still on 10.13.3. I restarted the update in MAS again which then installed properly.


It was bound to Cmd-Opt-Shft-Ctrl-W or (Q not sure which)
I was using them to power a Keyboard Maestro macro, using a different shortcut has resolved the issue.
Credit to @anki for point this out


How to properly sync Gmail with Apple products - OS X and iOS, via iCloud or Exchange?

Using iCloud doesn't really add new features for a Gmail user.
Contacts
Contacts on iOS are perfectly synced when using Google via Exchange.
Contacts on Mac OS X are synced using Address Book "Sync with Google" feature.
Calendar
Calendar is a bit more tricky.
On iOS, you have to activate each calendar individually in http://m.google.com/sync. But then, it syncs perfectly.
On Mac OS X, it can also be added to iCal, except it's via "Delegates".
It works but doesn't feel as just work as iCould does.
Mail
Mail has it's quirks, too.
On iOS, via Exchange, it doesn't bring all the Gmail goodness (archiving, etc.). And it miss push via the Gmail template.
On Mac OS X, via Mail, it's the same, archiving puts the mail in an "Archive" folder instead of the "All Mails" one.
Using an app like Sparrow resolve this issue.

To conclude, iCloud, like using the iWork suite instead of say Office, doesn't add value, but it feels more integrated with the OS (whether it's Mac OS or iOS).


Normally, to shut down an iPod touch:

Hold down the Sleep/Wake button on top of the device. (NOT the Home button on the front.) Use the manuals link below to find the manual for your device.
Then "slide to power off" when prompted.

I suspect you may be holding down the Home button, which invokes the Voice Command.
From Apple Support:

How to restart

Press and hold the Sleep/Wake button until the red slider appears.
Drag the slider to turn your device completely off.
After the device turns off, press and hold the Sleep/Wake button again until you see the Apple logo.

You can download manuals for iPod touch.


iPads can send and receive iMessages through your phone number because your iPhone associates its number to your iCloud account. According to Apple's troubleshooting steps and support forums, the first thing to try is to repeat the association process in case that's somehow come undone:

Toggle iMessage off (Settings -> Messages) on both your iPad and iPhone.
Wait a few minutes. Some guides say restart your iPhone, which can't hurt.
On your iPhone, toggle iMessage on. If you see blue text below the toggle that says "Use your Apple ID for iMessage", tap it to sign in.
Once your iPhone has activated iMessage and lists both your phone number and email addresses in (Settings -> Messages -> Send & Receive), toggle iMessage on in your iPad's Settings. Your phone number should now be one of the "Send & Receive" options on your iPad.

Note that receiving and sending non-iMessage SMS texts on your iPad is set up separately.


How to unlock my new iPad by just sliding to the right?

This isn't possible. Enabling Touch ID enables a passcode, which must be entered on the lock screen. If you do not wish to have a passcode, then you must disable Touch ID too. Also, because you have Touch ID enabled, you are unable to adjust the Require Passcode time in Settings → Touch ID & Passcode → Require Passcode.

The only workaround is to go to Settings → Touch ID & Passcode, disable iPhone Unlock, then set Require Passcode to After 1 hour. This means that you won't be prompted for a passcode if you use your device less than an hour after you last used it.

Video demonstration of workaround: Touch ID Require Passcode Timer


Which version of Windows will run on an iMac 24" early 2009 model?

I managed to install Windows 8.1 Pro on my early 2009 24 inch iMac yesterday. Just a disclaimer: I DID NOT USE BOOT CAMP ASSISTANT TO INSTALL. For 2 days straight I troubleshooted boot camp assistant to try to get it to take my Windows 8.1 Pro to no avail. Out of frustration I googled 'how to run windows on a mac WITHOUT boot camp.' After finding a guide online, in a matter of about 30 minutes I had successfully installed Windows 8.1 Pro on my 2009 iMac. Here is the link to the guide....you can ask me any questions regarding this.
See "How To Install Windows 8.1 On Mac Without Boot Camp".


How to connect to the switch console port?

Taking into account your other three posts today, on similar subject, I think you need the free application CoolTerm, and do the configurations there. It is similar with putty from Windows.

FYI: Apple computers are way different in terms of drivers compared with Windows, PL2303 driver is already part of Apple drivers, so no need to install such ones.

A similar question/answer is here


How to convert two columns of text in a pdf into one column in a new file?

There is an app named k2pdfopt that, according to the website: "K2pdfopt optimizes PDF/DJVU files for mobile e-readers (e.g. the Kindle) and smartphones. It works well on multi-column PDF/DJVU files ".  This app supposedly converts 2-column PDFs into 1 column. I haven't used it so I can't vouch for it. The app is free though so it should be worth a try.


Unfortunately, the fault t is a bad design concerning the heat dissipation of the laptop. Especially if you use the display with an external monitor it gets very noisy and hot. Maybe they can solve it with a software update by reducing the voltage of the cpu and gpu. Please report this problem to Apple. If you look on google there is really a lot of people complaining about it.
(Tip: you should charge your laptop on the right side).


Why are my iTunes factory equalizer presets all flat?

If you have your iTunes audio output set to go to an AppleTV, it will display all presets as flat. Change it to another setting, and the currently-selected equalizer preset will still display as flat. Choose a new equalizer preset, and it will look fine.

Our ATV is called "Living Room". So in the example here, I would choose "Computer", then choose a new equalizer preset, and it will work fine.


Is there a good automatic time tracking tool for Mac OS X

Not sure it'll do everything you've asked for, but Time Sink is pretty powerful and can generate a variety of reports. Its almost free at $5 and you can try it for 14-days. It can also run in a menu bar only mode so its out of the way.


On my MacBook Pro, how can I open a picture in Photoshop that is in my iPhoto library?

You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically.

This is the only way that edits made in another application will be displayed in iPhoto.


How do I force a partition and format on a USB key in OS X Mountain Lion Disk Utility or from CLI diskutil?

You need to use /dev/disk4 in place of just disk 4 in your command. It should read like this

diskutil partitionDisk /dev/disk4 1 GPT HFS+ newdisk R


Why CMD+N opened new popup Terminal window doesn't follow the default preference?

If I understand the question correctly, this is an easily doable through normal terminal preferences.
Go to terminal>preferences>startup
Here you can set the default behavior regarding window color scheme, including what color scheme new windows use.


Your iPad has been released in March of 2012 and is now eight years
old. It is normal that Apps and Apple will drop software support at some point.

iOS updates and App updates are different.

iOS is the Operating systems from Apple for their mobile devices and the newest version usually supports devices up to ~5 years old.
App updates (in this case YouTube) are released from the developer (in this case Google). They may require a certain iOS version (which includes certain libraries and features that the App can use).

You are experiencing the second problem, where the App needs a newer version of iOS to run. However, your iPad is not being supported by Apple anymore.
That means in your case that there is nothing you can do about the App update.
What you could try though, is to open YouTube in your browser. Usually this works but I can only confirm this for newer devices.


Sudo command no longer functions properly

You should be able to get round this by rebooting into single user mode...

Reboot the computer holding CommandS
The command line should come up showing something about how to mount the drive in write mode mount -uw /, follow these steps.
Now you should be a root user able to edit the /etc/sudoers file.
Issue reboot now to exit and reboot into normal mode.

I don't have a second Mac to test these instructions are step-by-step complete and obviously can't write on the machine while it's rebooting, so please let me know if you get stuck on any steps.


This is your battery capacity indicator. The number of lit dots indicates how much battery you have left.


How to remove non-essential files from Leopard

You can use Monolingual to trim the locales you don't require. This should trim at least a couple of GB.

The printer drivers are located in /Library/Printers. You can delete everything within the Printers directory (note, do not touch the /System/Library/Printers/ directory).

Additionally, if it's a default install, it may have come with iLife. GarageBand loops also take up a few GB and are located in /Library/Application Support/Garageband/Apple Loops/.

There are other areas you can trim space, but those will net the biggest gains. You can also give programs like DaisyDisk a shot (or free equivalent). They'll show you how data is distributed on your hard drive, and allow you to further pinpoint cruft that can be removed.


Clean up old iCloud videos without breaking iOS iMovies

The feature I'm looking for exists but was hard for me to find initially.

The Share menu will, for some destinations, allow you to choose between an iMovie Project and a Video File. The iMovie Project option, as a side effect, embeds all referenced video clips.

The ideal for me is to share to iTunes. This is a poorly-labeled choice, but what it actually does is make an archived copy of the project on local iPad storage. That archived copy can be restored later (no use of iTunes necessary).

So, my workflow:

For each iMovie project, Share to iTunes as an iMovie Project
Delete the unwanted older videos from iCloud Photos
If an iMovie is now broken, delete it and restore from the archived copy in the iTunes tab of the Project Import menu

The ideal would be a one-click embed videos command, but as a workaround, this isn't too bad.


6GB of "System Storage" on iPhone 6 - Reset Doesn't Clear It

This is completely normal.

You can try clear unused files by restoring your iPhone from a backup.

You can also store your other files on iCloud to not take up space on the device. Some cases also offer additional storage. See here on how to clear up storage space.

Additionally, see iPhone System taking up Storage space.


Can't add or change custom images of address book entries

Type in terminal:

chmod -R 777 /private/var/mobile/Library/AddressBook

chown -R mobile /private/var/mobile/Library/AddressBook

It worked for me

from: http://www.hackint0sh.org/f126/33674.htm


Macbook pro with windows 10 audio driver install

I had the same problem, I fixed it using the drivers from boot camp 4.xxxx.


How can I add mp3 files as podcasts to my iPhone using iTunes?

First connect your device to your computer and open iTunes.  Go to the iTunes Library.  If you don't see the Library option in iTunes, you can get there by clicking on the 'Done' button in the lower right corner (if it's there).
In Library, click on the File menu, then select Add File to Library...  Browse to the .mp3 file you want to import as a podcast, and choose it.  This file will now show up in iTunes Library under Music.  Right-click on the "song" and choose Get Info or Album Info.  Make sure the file has a "song" title and an album name.  (Optional: change the genre to 'Podcast'. Also optional, add artwork if you want.)  Under the Options tab, change the media kind from Music to Podcast.  Now click OK at the bottom.
The "song" will now have disappeared from Music.  Change the Library over to Podcasts, and you should now see the file there.

The final step is to right click on the (now podcast) file and choose Add to Device (your device is connected, right?) and select your device.  Voilà!  The .mp3 file is now a podcast that shows up both in iTunes for your device, and also in the Podcasts app on your device.


What happens when I close the lid on my MacBook Pro running OS X?

Short Answer
MacOSX uses Hybrid Sleep. When closing the lid, the desktop state is written to both RAM and disk.
Then, while the computer still has enough power for the RAM, it wakes from RAM (sleep). However, in case the power gets cut, the computer wakes from the disk (safe sleep).
Keep in mind, that the battery isn't actually at it's lowest charge when switching to safe sleep. It still keeps some charge left. Therefore, if you want to fully drain your battery, the computer must stay in safe sleep for several hours until the white led stops 'breathing'.
Long Answer
Here is an excerpt of the official Apple Documentation:
On all Macs:

The microprocessor goes into a low-power mode
Video output is turned off, and a connected display may turn off as well, or enter its own idle state
Apple-supplied hard disks spin down; third-party hard disks may spin down

On portable Macs:

The Ethernet port turns off, if applicable

Expansion card slots turn off

The built-in modem, if present, turns off

An AirPort card, if present, turns off

The USB connection only responds to the power key on an external keyboard

The optical media drive spins down

Audio input and output turns off

Keyboard illumination, if a feature of your portable computer, turns off


Well I've managed to replicate it myself, seems like a bug.

If you start to edit a filename, right click, click "look up "File name here"", then quickly click off, the yellow look up box will stay floating on the screen.

Screenshot here:


In Wiki Server 4 on OS X Server the first page includes four images that link to other pages. How do i add more?

Apparently you can...

Upload any image using the Add image (not the attachment) button in edit mode.
Once uploaded. While still in edit mode. Click on the same line right "before" the image, not on the image itself... in the white space.

A new button will appear in the edit toolbar at the top it will say Link (down arrow).

Click that... it works just like normal links, and you can link that photo anywhere.

Click Save... now when you click the image... instead of getting another window with the preview... you get redirected to the URL you provided.


Use Apple Script to open Chrome with specific profile

If you're trying to open multiple windows in Google Chrome with each set to a different profile and open a bunch of tabs in each one, then the following example AppleScript code demonstrates the concept:

set myURLs to {"https://www.google.com", ¬
    "https://www.news.google.com", ¬
    "https://apple.stackexchange.com"}

set myProfiles to {"Default", "Profile 1"}

repeat with aProfile in myProfiles
    do shell script "open -na 'Google Chrome' --args --profile-directory=" & aProfile's quoted form
    delay 1
    tell application "Google Chrome"
        activate
        tell front window
            set URL of active tab to first item of myURLs
            delay 0.5
            repeat with i from 2 to count of myURLs
                make new tab at after (get active tab) with properties {URL:item i of myURLs}
                delay 0.5
            end repeat
            set active tab index to 1
        end tell
    end tell
    delay 1
end repeat

Note: The value for --profile-directory= is that of the name of the folders in $HOME/Library/Application Support/Google/Chrome that corresponds to each profile, not your name.

Note: The example AppleScript code is just that and does not contain any error handling as may be appropriate. The onus is upon the user to add any error handling as may be appropriate, needed or wanted. Have a look at the try statement and error statement in the AppleScript Language Guide. See also, Working with Errors. Additionally, the use of the delay command may be necessary between events where appropriate, e.g. delay 0.5, with the value of the delay set appropriately.


It should be installed and linked from the gcc formula:

~ » readlink `which gfortran`
../Cellar/gcc/5.1.0/bin/gfortran


The Podcasts app appears to store its data inside a sqlite database. Using the information inside we can create an OPML file that Overcast (or any good podcast app) will accept.

Here's a script that I made that will create the OPML file:

#!/bin/bash

sql() {
    sqlite3 "${HOME}/Library/Group Containers/"*.groups.com.apple.podcasts/Documents/MTLibrary.sqlite "select ${1} from ZMTPODCAST ${2:+"where ${2} = '${3}'"};" |\
        sed -e 's/&/\&amp;/g' \
            -e 's/</\&lt;/g' \
            -e 's/>/\&lgt;/g' \
            -e "s/'/\&apos;/g"
}

opml_export=${HOME}/Desktop/podcasts.opml
cat > ${opml_export} << HEAD
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
  <head><title>Podcast Subscriptions</title></head>
  <body>
    <outline text="feeds">
HEAD

sql ZUUID | while read -r uuid ; do
    feed_url=$(sql ZFEEDURL ZUUID "${uuid}")
    home_url=$(sql ZWEBPAGEURL ZUUID "${uuid}")
    title=$(sql ZTITLE ZUUID "${uuid}")
    cat <<EOT
<outline type="rss" text="${title}" title="${title}" xmlUrl="${feed_url}" htmlUrl="${home_url}" />
EOT
done >> ${opml_export}

cat >> ${opml_export} << TAIL
    </outline>
  </body>
</opml>
TAIL

This will create podcasts.opml on your desktop.


Does keyboard maestro have a trace/verbose log?

There is a Keyboard Maestro debugger. Look under start for start debugging. You can single step through your script.


After updating to iOS 6, iPhone will not charge from Mac Pro USB ports

This is a rather peculiar problem, and I have not found any more widespread reports of this problem.

Try rebooting everything; that often helps.


How do I report content errors in an iBook?

You can somehow try and contact the book publisher or you can try contacting iTunes support.

As you say the issue is persistent I would recommend getting in touch with the book publisher by email.


AppleScript: Tell Google Chrome to activate/deactivate extension

Try this code instead.

tell application "Google Chrome" to activate
tell application "System Events" to keystroke "u" using {option down, shift down}
delay(1)
tell application "System Events" to keystroke "r" using command down

I actually ran this applescript along with yours. First time I did not test yours seeing you called for a key code but gave it a keystroke value. When I ran your code, it gave me syntax errors(even with proper key code and keystroke values). When I ran my code, it compiles properly and runs the script as intended.


Problems with duplicate photos on Photos app

By default PhotoSweeper shows library-based paths in the path control. You need to change Preferences to show file-based paths (the menu PhotoSweeper > Preferences; the General page, Path Bar: Show file path).


Possibility of viruses from opening dmg file?

If you just opened the .dmg image and didn't manually open any file or run any program located inside it, you're fine: as far as I know, there's no "autorun" functionality on DMG images in macOS.


iOS app to download YouTube videos to video library?

It's always a bit tricky to download anything on iOS devices..

When I want to download a youtube video I open the YouTube video in my browser and add "dlv" in front of youtube so that it reads www.dlvyoutube.com and there download it.. Then I transfer it over to the device with iTunes.


What is the best application to run Windows on a Mac?

Your question is like that old Sesame Street song, "Which one of these things doesn't belong?".  Bootcamp is a way to run Windows via dual booting, which means that when you are running Windows you are not running OS X.  This is good for when you need maximum performance (e.g. Windows gaming) but very inconvenient when what you need is to be able to run Windows and OS X applications at the same time.

The other solutions you mentioned are all virtualization solutions that run Windows on top of OS X, letting you run a mix of applications.  Of these, I agree with Wheat that Parallels and Fusion are both very good, and it's really hard to say one is better than another.  Try them out (there are trial versions) and see which you prefer.  Or just go with pricing; I run Parallels because I got a good price on it as part of a software bundle.

Virtualbox, on the other hand, is free and good at the basics, but it is MUCH less integrated into OS X.  For example, it does not map your OS X documents folder into the Windows document folder to enable seamless sharing of data between the two environments.  My take is that Virtualbox is good if you simply want to play around with Windows on a Mac, but if you have a real-world need for doing so, you're much better off spending the money for Fusion or Parallels.


Press ⌘ CMD+: to open Spelling and Grammar and change your language there (or go to Edit -> Spelling and Grammar -> Show Spelling and Grammar).


For some reason, your mac cannot find the startup partition. You have tried disk utility.  You can try resetting the machine.

Sometimes if volumes don't appear in Startup Manager (what you get when you hold down the Option key at startup), you need to reset the Mac's PRAM, NVRAM, and Open Firmware. Shut down the Mac, then power it up, and before the screen lights up, quickly hold down the Command, Option, P, and R keys, until the Mac has chimed twice more after the powerup chime.
https://support.apple.com/en-us/HT204063

Your next step is to take it in for repair or replace the drive.   The simplest solution would be to buy an external drive.  I like OWC external drives.


Is Final Cut Pro's video stabilization any different and/or better than iMovie's? (both version X)

Yes, they are different, at least a little bit. I just did a quick test using a rocky beach scene I shot handheld. I tested Final Cut Pro X (v.10.0.6) and iMovie (v.9.0.9) and used their default stabilizer settings (which in iMovie are basically all you have). Looking at the results, FCPX does look a little bit better, but not by a significant amount in my opinion. Where FCPX really makes itself useful is in the ability to adjust parameters of the stabilization. With iMovie, if you don't like what the app did, you're pretty much stuck. With FCPX, you can do more tweaking and testing to help get things right.

Another, smaller note: iMovie seems to lock you out of using the app while it is calculating and applying the stabilization, whereas FCPX will do it in the background and will allow you to still work as it computes.


Suppressing "reopen windows" dialog when restarting a crashed program in Mountain Lion

defaults write com.apple.CrashReporter DialogType none (or the option in Secrets) disables crash report dialogs but not the dialogs shown when reopening crashed applications.

Disabling Resume would remove them though. You can either check "Close windows when quitting an application" in the General preference pane or disable it in individual applications with defaults write -app "Application Name" NSQuitAlwaysKeepsWindows -bool false.


How to switch Karabiner profile via shortcut?

Yes, there is, using Karabiner's command-line tool. Paste this into your private.xml:

<vkopenurldef>
    <name>KeyCode::VK_OPEN_URL_SHELL_switchprofile_newitem</name>
    <url type="shell">
        <![CDATA[    /Applications/Karabiner.app/Contents/Library/bin/karabiner select_by_name NewItem    ]]>
    </url>
</vkopenurldef>
<item>
    <name>Switch Profile to NewItem with F4</name>
    <identifier>private.switch1</identifier>
    <autogen>
        __KeyToKey__
        KeyCode::F4,
        KeyCode::VK_OPEN_URL_SHELL_switchprofile_newitem
    </autogen>
</item>

Obviously, you will need to change the name of the profile (here it is NewItem).

If you want to toggle between them with a single hotkey, paste it twice and change the name, then check the box for the profile you want to switch to on each one.


AppleMail can not remove specific emails

One big change since El Capitan - Mail is now in V3
Earlier OSes used the V2 folder.

Try clearing the saved state, rebuilding & reindexing the database...

Clear Saved State

Switch to Finder,  Cmd ⌘   N  for a new window, then  Cmd ⌘   Shift ⇧   G  for Go To...
copy/paste ~/Library/Saved Application State/com.apple.mail.savedState then  Enter ⌅
This is an alias to the real location, so Right-click & Show Original
Delete the entire com.apple.mail.savedState folder.

Rebuild; Re-index

Source: How to fix Apple Mail by rebuilding and reindexing the Mailbox

  Step 1: Rebuild
  Rebuilding a Mailbox in Mail sounds daunting but it really isn't.

  Launch Mail, select one of your mailboxes and click on the Mailbox menu. At the bottom of the pane choose the Rebuild option. If you have a large mailbox, you can expect the process to take a few hours.
  You must repeat this step for each one of your Mailboxes.
  While the process takes place, you may experience system performance lag, as it can consume a lot of system resources and memory.

  Another caveat, if you use IMAP or Exchange with any of the accounts, the process will redownload every message from the server, so you'll use a lot of bandwidth.

  Now that you've completed these steps, work with Mail a little longer. If you are still having issues, or Mail fails to launch, you should try a manual reindex.

  Step 2: Re-index

  Manual reindexing of Mail messages is the only way to go if the  application has become so unresponsive it barely works at all, search is not functioning correctly or the app won't launch.

  Mail will automatically attempt to reindex your messages if it detects problems with the mailboxes, but sometimes a manual reindex is the best option. If you are still having problems with Mail after following step one, try manual reindexing.

  Quit Mail if it’s open.
  To get to your home Library folder, hold down the Option key, then in the Finder choose Go > Library.
  In ~/Library/Mail/V3/MailData, delete any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm. (Before you actually delete the files, it makes sense to copy them to a folder on your desktop.)
  Launch Mail and the app will build new Envelope Index files -- this can take a long time if there are numerous messages to go through.
  If everything seems to be working correctly, you can now delete the copies of the "Envelope Index" files from your desktop.

  In most cases, these two tips should solve most Mail problems

 My own answer copied from Mail.app crashes constantly, even after deleting mail profile and cache as they are not really duplicates


How to remap a few keys for chrome/google docs?

The only option I can think of would be to change the default shortcuts to something like ⌃⌥⇧⌘+numbers and save this as private.xml in KeyRemap4MacBook.

<?xml version="1.0"?>
<root>
<item>
<name>test</name>
<identifier>private.test</identifier>
<autogen>--KeyToKey-- KeyCode::KEY_1, VK_OPTION | VK_COMMAND, KeyCode::KEY_1, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_2, VK_OPTION | VK_COMMAND, KeyCode::KEY_2, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_3, VK_OPTION | VK_COMMAND, KeyCode::KEY_3, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_4, VK_OPTION | VK_COMMAND, KeyCode::KEY_4, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_5, VK_OPTION | VK_COMMAND, KeyCode::KEY_5, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_6, VK_OPTION | VK_COMMAND, KeyCode::KEY_6, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_7, VK_OPTION | VK_COMMAND, KeyCode::KEY_7, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_8, VK_OPTION | VK_COMMAND, KeyCode::KEY_8, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_9, VK_OPTION | VK_COMMAND, KeyCode::KEY_9, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_0, VK_OPTION | VK_COMMAND, KeyCode::KEY_0, VK_CONTROL | VK_OPTION | VK_SHIFT | VK_COMMAND</autogen>
</item>
<item>
<name>test2</name>
<identifier>private.test2</identifier>
<only>GOOGLE_CHROME</only>
<autogen>--KeyToKey-- KeyCode::KEY_1, VK_CONTROL | VK_OPTION, KeyCode::KEY_1, VK_OPTION | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_2, VK_CONTROL | VK_OPTION, KeyCode::KEY_2, VK_OPTION | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_3, VK_CONTROL | VK_OPTION, KeyCode::KEY_3, VK_OPTION | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_4, VK_CONTROL | VK_OPTION, KeyCode::KEY_4, VK_OPTION | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_5, VK_CONTROL | VK_OPTION, KeyCode::KEY_5, VK_OPTION | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_6, VK_CONTROL | VK_OPTION, KeyCode::KEY_6, VK_OPTION | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_7, VK_CONTROL | VK_OPTION, KeyCode::KEY_7, VK_OPTION | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_8, VK_CONTROL | VK_OPTION, KeyCode::KEY_8, VK_OPTION | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_9, VK_CONTROL | VK_OPTION, KeyCode::KEY_9, VK_OPTION | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_0, VK_CONTROL | VK_OPTION, KeyCode::KEY_0, VK_OPTION | VK_COMMAND</autogen>
</item>
</root>

See the source for the keycode constants and predefined settings.


Operation could not be completed when I try to play a video on my camera roll

I like to use a VideoLan application.

It does not look like much but it works like charm and it is very easy to use.

You can download a Mac version here.

Or in your case the iOS version here.

It is a Video player that plays anything, it's safe to use, and I had it for years and play all my videos on it.

Since the Video was send to you it might be in a format that your iPod can not play. So use the VideoLan.

Feel free to Donate, to those hard working programers.


I installed the XQuartz application. It was in /Application/Utilities/XQuartz.app. I just renamed it from XQuartz.app to X11.app and everything works fine, so far.

Update: don't install XQuartz for use with No Machine. I opened a text editor and started typing, all the keys were screwy. For instance, the Delete key was now comma, all the letters were transposed, general chaos. I replaced XQuartz with the official X11User.dmg package and this keyboard problem went away. One more step I had to take: when on the remote desktop I tried to cd into a different directory, and hitting the "d" key kept showing me the desktop. If you want to cd, you will need to go into System->Preferences->Keyboard shortcuts. Scroll down, and notice an entry "Hide all windows and show desktop" which is mapped to "D". Change this to Alt+D or Ctrl+D and cd away!


It appears you have swapped the local address and the remote server address around. For example this site explains it should be:

Create an SSH tunnel from you client to the server:
ssh -g -L 3307:server-ip:3306 user@server-ip
Now port 3306 of the server is exposed on 3307 on the client.
On the client connect MySQL to the 3307 port:
mysql -u user -p -h 127.0.01 -P 3307
Note that you have to connect to the local loopback address 127.0.0.1 as the SSH tunnel already forwarded the connection to the client.


I had more luck using the latest Jumbro version (1.8.0.6).

To retrieve and compile:

git clone https://github.com/magnumripper/JohnTheRipper jumbo
cd jumbo/src
./configure --enable-mpi

Note there is no need to edit the Makefile to enable the MPI any more - the above command will get everything ready for building.

make clean

Boom - everything now working.


How can I ditch iTunes and find a suitable audio player?

I suggested you try SongBird.

also you can choose:

PicoPlay
VoxApp
Banshee


How do I get automator to act on multiple folders?

As you were not too clear on the type of Automator workflow you've created, I'm going to focus primarily on the code you're using in the Run Shell Script action.

The following example Automator workflow was created by File > New > Workflow in Automator with a Get Selected Finder Items action and a Run Shell Script action added to it, with the settings as shown in the image farther below.

Testing was done with a selection containing both files and folders which included both the real targets of the Automator workflow's Run Shell Script action, and others as if accidentally selected if you will. With the following files and folders selected in Finder:

.
├── Archive.zip
├── Folder_Name_1
├── Folder_Name_2
├── Folder_Name_3
├── Foobar
└── Foobar.txt

The following expanded tree view, of the selected files and folders shown above, obviously contains both files which are not the real targets of the workflow as well as a folder not containing the expected contents. This was done to test that the example bash code works as expected.

.
├── Archive.zip
├── Folder_Name_1
│   └── Converted_Files
│       ├── file1.aiff
│       └── file2.aiff
├── Folder_Name_2
│   └── Converted_Files
│       ├── file1.aiff
│       └── file2.aiff
├── Folder_Name_3
│   └── Converted_Files
│       ├── file1.aiff
│       └── file2.aiff
├── Foobar
│   └── Barfoo
│       └── More Foobar.txt
└── Foobar.txt

8 directories, 9 files

After running the workflow from Automator on the selected files and folders in Finder, the following shows the new expanded tree view of the original selection expanded tree view:

.
├── Archive.zip
├── Folder_Name_1
│   ├── file1.aiff
│   └── file2.aiff
├── Folder_Name_2
│   ├── file1.aiff
│   └── file2.aiff
├── Folder_Name_3
│   ├── file1.aiff
│   └── file2.aiff
├── Foobar
│   └── Barfoo
│       └── More Foobar.txt
└── Foobar.txt

5 directories, 9 files

As you can see in the image below, and in conjunction with the information presented above, the Automator workflow completed without error and only processed the appropriate target folders even though additional non-targets were sent to the Run Shell Script action as shown above.

Also note that additional testing was done with the target folders /Folder_Name_N/Converted_Files/ containing non .aiff content to insure that other then the moved .aiff content did not have to be explicitly deleted, e.g. rm .DS_Store was not necessary, as the -r option of the rm command will attempt to remove the file hierarchy rooted in each file argument. You might also consider using the -f option too. (I've already added it to my example bash code, so remove it if you don't want to use that option.)

Example bash code for the Run Shell Script action:

for d in "$@"; do
    [ -d "$d" ] || continue
    if [ -d "$d/Converted_Files" ]; then
        cd "$d/Converted_Files" || exit
        for f in *.aiff; do
            mv "$f" ..
        done
    fi
    cd ..
    rm -rf "Converted_Files"
done

Note that the example bash code is just that, and may not contain all error handling as may be appropriate/needed/wanted. The onus is always upon the user to implement any appropriate/needed/wanted error handling with whatever code one chooses to use.

Testing was preformed under macOS High Sierra 10.13.6.


I'm not sure how to make a live environment from a DVD, but it is relatively easy to do it with an USB flash drive or an external HDD.

To install it to your HDD or flash drive do the following:

connect your drive
open the "Disk Utility" and click on the corresponding drive on the left hand side
click on the partition tab and select 1 partition from the drop-down menu
click on options and make sure you'll format it with the GUID Partition Table in order to make the drive bootable

BE VERY SURE ABOUT THIS, YOU'LL ERASE EVERYTHING ON THE HARDDRIVE

now mount your install image and proceed with the installation, be sure to select the proper harddrive

Also, note that you already have a recovery partition.


Does the Mini DisplayPort to DVI Adapter work with 2048x1152 resolution?

http://www.apple.com/macbookair/specs.html

  Dual display and video mirroring: Simultaneously supports full native
  resolution on the built-in display and up to 2560 by 1600 pixels on an
  external display, both at millions of colors

I don't think the adapter has any impact on what resolutions are supported.


How to install a fresh copy of Mojave on a Macbook Air?

After booting into Internet Recovery with the following key combination at startup:

Option+Command+R

...navigate to 'Disk Utility' and erase the disk

After erasing the disk you may then proceed to install macOS using the 'Reinstall macOS' option.


My Automator Workflow fails because it fails to find the git command within the 'Run Shell Script' command? Need help

Scripts run via Automator use the default search path which usually does not include /usr/local/bin. In your case an easy fix would be to put

export PATH=/usr/local/bin:$PATH

somewhere at the beginning of the script.


I think I found one app which could do the job on the app store, it's called "Today - Daily Calendar & Task Manager"


How to stop Xcode downloading iOS support package of my iPhone?

Looks like it wasn't downloading the thing, I checked in activity monitor after deleting the folder. It copies it from somewhere else, most likely

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/

Xcode simulator constantly download something

I removed all the listed items from Xcode's Window Menu → devices and simulators, which listed iOS 12 as their OS version.
Went to iOS settings → Developer and cleared paired devices.
Connected iPhone, unlocked it and chose "Don't Trust" upon prompt.

No more unnecessary folders.

Since  it causes problem for iTunes backup and network sharing, Go to /Users/ankitkumar/Library/Developer/Xcode/iOS DeviceSupport/12.4 right click on it > get info > Check locked.


Copy/Paste from documents (PDF, docx) - weird behaviour of diacritics

Regarding copy/paste from pdf, treatment of non-ascii characters can be botched by the particular pdf creation process.  Without info on how your pdf files were generated, such as the encoding and the fonts used, it's hard to determine why the results are not correct.


How do I save offline a PDF from the browser?

load the PDF in Safari
tap once
tap on "Open in iBooks…" on top right

The PDF will be opened (and stored) in iBooks then


How can I add an Apple email address to an email client such as Evolution?

You can find the IMAP settings to use for your mail client at this support article.

Incoming mail server

Server name: imap.mail.me.com
SSL Required: Yes
Port: 993
Username: example@me.com (use your @me.com address from your iCloud account)
Password: Your iCloud password

Outgoing mail server

Server name: smtp.mail.me.com
SSL Required: Yes
Port: 587
SMTP Authentication Required: Yes
Username: example@me.com (use your @me.com address from your iCloud account)
Password: Your iCloud password


Does Safari's history eventually get deleted?

Your history is cleared automatically per your setting in (Safari) Preferences → General:

To clear your history manually, go to Safari → Clear History….


Have you tried doing it the iTunes way?

iTunes -> iPhone -> Applications -> HiCalculator -> Remove


Unable to install software using brew install

The problem is that gnu have moved the file so you do not get the source of automake when homebrew downloads it.

If you download the file http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz you get

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<title>302 Found</title>

Found

The document has moved here.

<address>Apache/2.2.16 (Debian) Server at ftpmirror.gnu.org Port 80</address>


Where can I find ALL of the memory specs for the Mac Pro?

Aha! A quick google search with the alpha-numeric code on the sticker of my RAM led me to the manufacturer's (SK hynix) website, where they have complete details on this particular make of RAM.

https://www.skhynix.com/products/computing/view.jsp?info.ramKind=20&info.serialNo=HMT325U7CFR8C

However, I still wonder if there is software that could have told me all this information.


What extra features does the iOS YouTube application have over the HTML one?

I use YouTube for the simplest case - watching movies that have been sent to me. I don't do much posting or browsing.

To my knowledge, the iOS YouTube app hasn't seen a lot of changes since the 1.0.

I think the biggest "feature" of the native app is the improved responsiveness. I've found the webapp to be slower doing things like full screen or changing screen orientation, and in the initial loading speed. However I wasn't aware of the decreased quality. I think it should however load the higher bitrate videos when you're on Wifi.

As for uploading, on iOS that's usually handled by the app that's recording/editing the video.


What is the difference among the various event schedulers for OS X / Darwin?

Use launchd instead of cron, at, or other legacy UNIX tools for Mac OS X.

pmset

pmset is a built-in command line tool for getting and setting power related values on Mac OS X. One of pmset's abilities is to add and remove entries from the IOPMQueue; the IOPMQueue is the IOKit level queue that allows your Mac to power on and wake up at a specific time. IOPMQueue also supports scheduling of shut downs and restarts.

Arbitrary code can not be scheduled using pmset or through the IOPMQueue.

cron

cron is a stalwart of the task scheduling world. However on Mac OS X, using cron is not recommended. Use launchd.

cron is implemented by checking each minute for tasks that are due. This allows for a powerful and expressive scheduling format but at the cost of needing to wake the processor up every minute.

cron does not know about your Mac sleeping. If a task is due while your Mac is asleep or powered off, the task will not occur. When your Mac powers back on, the task will not be performed because the minute in which it should have run has passed.

There are other tools that build upon cron and can run missed tasks upon waking. None are included by default with Mac OS X.

launchd

launchd (launch daemon) is Apple's system starter, scheduling tool, and process watchdog. launchd is written for the needs of the operating system first and users second. It is a powerful and capable process used to manage or launch almost every other process on your Mac.

launchd is an improvement on cron for scheduling because it does not need to poll to perform tasks. Instead launchd can remain inactive until the moment a task needs performing. In an era of energy aware and mobile computing, this is important.

launchd will not wake a sleeping Mac to perform tasks.

launchd job tickets are property list (plist) files. These files can be edited with a text editor or with a number of third party applications.

launchd is recommended for, and is suitable for, most scheduling situations.

Third Party

There are number of third party scheduling tools available on Mac OS X. They often provide a graphical interface or offer more features than are included in the standard Mac OS X command line tools. The tool I am associated with is Power Manager.


Nope, not currently. JavaScript/HTML can't directly control App Nap in Safari or any other browser on OS X.


OS X provides launchctl to control which daemons are started at boot time.

To stop and disable Apache:

Open Terminal
Type the following command (type your login password when sudo requests it):

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

A few words on launchctl's -w option

The -w option is the silver bullet for stopping/disabling Apache. It tells launchctl to do its job regardless of any configuration settings that would otherwise prevent it from unloading the service, as explained in man launchctl:

-w       Overrides the Disabled key and sets it to false or true for the load and
         unload subcommands respectively. In previous versions, this option would
         modify the configuration file. Now the state of the Disabled key is stored
         elsewhere on- disk in a location that may not be directly manipulated by any
         process other than launchd.

(It turns out that, in OS X Mavericks (10.9), "elsewhere on-disk" is /private/var/db/launchd.db/com.apple.launchd/overrides.plist.)

The -w option is indispensable if you started Apache with apachectl start: as explained in this Superuser answer. apachectl not only starts Apache but also modifies /private/var/db/launchd.db/com.apple.launchd/overrides.plist like this:

<key>org.apache.httpd</key>
<dict>
        <key>Disabled</key>
        <false/>
</dict>

In this particular case you can also use apachectl:

sudo apachectl stop

to stop Apache and to set Disabled to true.


Is AFP slated to be removed from future versions of macOS?

Apple Filing Protocol is deprecated1, not "dead".  There's a big distinction and that is being deprecated, it's still included and still works at the time of last development but it has been superseded by something else - in this case SMB2.  It also means there will be no further development.

  Will it stop working in future versions of macOS?

There will come a point in which Apple no longer includes support for a particular protocol or service.  Only Apple will know this for certain.

  Can I safely use AFP without worrying about it "dying" on me?

AFP is not going to die the same way cron didn't die when Apple went to launchd.  If you are running AFP today, you will have AFP tomorrow.  It won't be "upgraded out".  That said, Apple can decide tomorrow that future versions of macOS will no longer come with AFP; that won't break your existing macOS installation.

What all this means is that as a deprecated protocol, manufacturers are going to stop including support for AFP in new products (like NAS devices) and systems admins should begin making plans to switch over to newer technologies.  Also, being deprecated, it's no longer the default file sharing protocol meaning you will (eventually) have to take explicit steps to enable/connect to AFP shares.

It's important to note that AFP does not support the new APFS (Apple File System) so newer versions of macOS (Sierra going forward) will not have the ability to serve AFP shares.2

  You can share APFS formatted volumes using the SMB network file sharing protocol. The AFP protocol is deprecated and cannot be used to share APFS formatted volumes.

Though, they will probably include the AFP client so it can continue to connect to legacy devices/systems.

1 Deprecated refers to a software or programming language feature that is tolerated or supported but not recommended. A deprecated attribute or feature is one that may eventually be phased out, but continues to be used in the meantime. Deprecation also helps to ward off backward compatibility issues, giving users time to migrate and begin using the newer recommended feature. The deprecated feature will continue to work in the current environment, but will show a warning message that the feature being used may be removed in future releases.  Source:
  Techopedia.

2 Source:  9to5mac.com - Apple File System (APFS) announced for 2017, scales ‘from Apple Watch to Mac Pro’ and focuses on encryption


How copy text into Terminal command line zsh?

I discovered that the problem arose from an error in my .profile, which is loaded by .zshrc. With .profile fixed, copy/paste into Terminal works normally, whether with usual Cmd-C/Cmd-V keyboard cominations or Edit menu selections.


Where is "Convert to AAC…" in iTunes 11 (and 12)?

It does, but it's a little hard to find. It's under File -> Create New Version. You still need to hold the Option key. But the difference in iTunes 11 (and 12) is that you have to make sure no songs are selected when you perform the menu selection. If a song is selected iTunes will attempt to create an AAC version of the selected song. If nothing is selected you can select audio files to convert to AAC.


What are the direct download links for iOS 7.0?

I found the direct download links for .ipsw files from  Redmond Pie's very helpful post.

The links below are for build 11A465 of iOS 7.0:

iPad (4th generation CDMA)
iPad (4th generation GSM)
iPad (4th generation Wi-Fi)
iPad mini (CDMA)
iPad mini (GSM)
iPad mini (Wi-Fi)
iPad 3 Wi-Fi (3rd generation)
iPad 3 Wi-Fi + Cellular (CDMA)
iPad 3 Wi-Fi + Cellular (GSM)
iPad 2 Wi-Fi (Rev A)
iPad 2 Wi-Fi
iPad 2 Wi-Fi + 3G (GSM)
iPad 2 Wi-Fi + 3G (CDMA)
iPhone 5 (CDMA)
iPhone 5 (GSM)
iPhone 4s
iPhone 4 (GSM Rev A)
iPhone 4 (GSM)
iPhone 4 (CDMA)
iPod touch (5th generation)

Should you be a reviewer or get lucky with an early delivery, the 5c and 5s firmware update - build 11A470a of iOS 7.0.1 are below courtesy of an article by Mike Webb on mobilespie:

iPhone 5c (?CDMA)
iPhone 5c (?GSM)
iPhone 5s (?CDMA)
iPhone 5s (?GSM)

Also, I'd kindly remind people to not be greedy - downloading all the builds means someone else looking for one build might be prevented from getting a download.


Boot Into Recovery Partition After Installing Linux

Short answer:
It will be possible.

More elaborate answer:
If you leave the Recovery HD intact, you can still boot from it later on as the boot process Linux uses (usually GRUB these days) will not touch the ability to use the Alt key to boot from any attached bootable partition.

So, pressing Alt at computer startup will then present you with two options:

Windows (even though Linux is installed; some distributions may show their name though)
Recovery HD-<version> (<version> is the version of OS X at the time you installed OS X, which created the Recovery partition)

Additional:
You have a MacBook Pro (Mid 2014).  So, you can always reinstall the original version of OS X (which may be either OS X 10.9 Mavericks or OS X 10.10 Yosemite), which came with your computer as you can use the Internet Recovery even if your internal Recovery HD is gone entirely.

To start the recovery process, hold down Cmd+R at computer startup.  If a Recovery HD is found, it will be used.  Otherwise, the Internet Recovery is used.  To specifically force the Internet Recovery, hold down Cmd+Alt+R at computer startup until you see a spinning (or blinking) globe.

More information can be obtained here: OS X: About OS X Recovery


New version of Keynote won't open old versions

This solution requires using Terminal. Do the following:

Make a backup copy of your file
Open Terminal.app
In the Terminal window, type cd (that's with a space after the cd) then drag your file to the window. It should insert the full path of your file (e.g. /Users/me/Documents/My\ Great\ File.pages).
Copy and paste the following command as a single line and press Return: gunzip --stdout index.apxl.gz | sed 's-:version="72007061400"-:version="92008102400"-g' > index.apxl
If you don't see any errors (such as No such file or directory), now type rm index.apxl.gz and press Return
Type exit and press Return and try to open your file. It may give you a compatibility problem report but should open.

Explanation

The file index.apxl.gz is a compressed XML file that holds information about your document. The command in step 4 uncompresses the file and runs it through a search-and-replace program which looks for the version 72007061400 and replaces it with the version 92008102400 (I don't know what these versions mean but it appears to work). It outputs to an uncompressed version of the file, which is why in step 5 you remove the original, compressed file (iWork will used compressed or uncompressed files).

Notes

If step 4 gives you a No such file or directory error, it's possible the index.apxl or index.apxl file is uncompressed, in which case you can replace the step 4 command with sed 's-:version="72007061400"-:version="92008102400"-g' index.apxl | gzip > index.apxl.gz, and step 5 with rm index.apxl.

This solution could be adapted to an Automator action by someone motivated.

Source

This method is adapted from a comment on this Google+ post.


If you don't want to unpair the device, but just want to disconnect from it, Apple have 3 methods:

Turn the device off and hope it doesn't reconnect back to your iOS device when you turn it back on again.
Turn Bluetooth off on your iOS device, you obviously don't need to stay connected to more than one Bluetooth device.
A very natural and simple process Apple have thought about carefully is that you simply walk your iOS device away from the device, about 5-20 metres, until it is out of range. You don't even need to unlock you iOS device to perform this step! Once out of range your iOS device will disconnect and you can walk safely back into range again.

I hope this helps, Apple have clearly thought these processes through and have delivered easy to understand and intuitive methods for disconnecting iOS from your Bluetooth device.


What do I need to do to sell my iPhone 3GS?

One easy option, if you can use the store credit, is to sell them to Radio Shack for $200 [1].

If you prefer cold hard cash, or think you can do better than $200, there's a market for them on eBay, and it's easy to search for the going rate.  The phones will be easier to sell for more if you can jailbreak and/or unlock them in advance.  (How to do that is best left for another question.)

As for how a conscientious buyer activates your old phone through the proper channels, it's my understanding that once you've upgraded your line, your old phone can simply be brought into any AT&T store and associated with a new account.  I.e., you can & should sell the phone without a SIM.

Once it's been wiped and no longer has your SIM, the phone is no longer linked to you.

[1] http://reviews.cnet.com/8301-19512_7-20008186-233.html


How to remove Java 10? Or revert to the previous version?

I believe the problem is navigating to the correct directory... Once you are where you are supposed to be you can run the sudo commands to remove whichever versions of java you want to remove.

First, run the command in the terminal to determine which version of Java you are running,

java -version

then you can navigate to pesky version of java that you intend to delete by using the following command:

cd /Library/Java/JavaVirtualMachines

then once you see are in the JavaVirtualMachines path, type in ls to see what versions of Java you have installed,

ls

and finally when you know which version or versions of Java you want to uninstall:

sudo rm -rf jdk-10.0.1.jdk #or whichever version you want to delete


mac mini multi-display reconfiguring repeatedly

Had similar issues for awhile, resolved via...

Changing combination of adapters / cables / ports as underlying ASICs (Application-specific Integrated Circuits) seemed to have different preferences / properties / thresholds.
Disabling 'Energy Saving' / 'Eco' / Etc. mode on connected displays.
Connecting displays to non-'eco controlled' (master / slave) outlets on surge protector / UPS (if using one).

My assumptions are (and flag if you wish to, anyone ; ) a combination of utilized ASICs in active / passive adapters & cables ± the state of software / hardware development and compatibility across vendors.

Some references which outline the spec as well as some of the same / similar issues below but, essentially, getting Apple, VESA / DisplayPort, DisplayLink, third-party vendors, etc. all on the same page and playing perfectly nice with each other can be… 'tough'.

(Apparently I can't actually share all the links to the references so… workaround = shared Evernote here.)

P.S. Since my case did involve (1) actual USB DisplayLink device [USB w/ DVI-I Dual Link-to-HDMI adapter then HDMI cable to display] in addition to (1) Mini DisplayPort-to-HDMI cable + (1) pure HDMI male/male cable, that’s a lot ICs and muxing in the mix there, only one of which was declared DisplayLink, so who knows what’s inside the others? Perhaps installing the newest DisplayLink drivers resolved multiple issues, therefore might suggest as a potential #4 scenario. (Driver download link is the last one listed above. : )

https://www.evernote.com/l/AASmqLZN5kZFsLnjD1VoDbLASs0i0w4O29U


repaired disk/permissions, now imac won't boot into login

There's a free app called AppleJack that's good for ths kind of thing. If you don't have that, Apple Hardware Test may help.


How do I remove underlining of contact elements (address, telephone number, email, URL, etc.)?

UIDataDetectorTypes recognize phone numbers, links, and calendar events embedded within the contents of a UITextView. The dataDetectorTypes property can be set on your UITextView instance to selectively recognize all, non, or some of these data types. It can be set programatically or in InterfaceBuilder by clicking checkboxes for the data types you want to be recognized.


Can I be signed into iTunes with a different account than iCloud on same iPhone at same time?

Yes that is what I have.

I have this because my iTunes account predates apple mail and backup which are the predecessors of iCloud. The latter had to be a @me.com address and my iTunes account was not. The usual problem is that Apple has not provided a way to combine these accounts for those who want to.

Your could have a third email with Apple for development membership. And your iTunes login could differ from your Mac apps store login but that gets too confusing.


Automate Mouse and Keyboard interactions similiar to OneClick for MacOS 9?

Have you tried to use automator and its record actions feature? Described here


System Management Controller (SMC)

Reset the SMC by following the instructions below, that should restore the power to the port:

1.Shut down the computer.
2.Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
3.On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
4.Release all the keys and the power button at the same time.
5.Press the power button to turn on the computer.

Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.


Is it true that the text-to-speech functionality would make my mac run slower?

I have never heard of the "text-to-speech" feature causing a slow down. But other things certainly can. Here is a link to what one Apple user has suggested. There are a number of things to try!

https://discussions.apple.com/docs/DOC-6921


Well I do not have E-Z Pass and it sent me to the left and I couldn't get out of it and I had to pay a $60 fine instead of an $8 toll fee.


Will restore from iCloud backup erase podcast.app queue (iOS)?

Just restored my iPhone (from backup) using iTunes and my Podcasts queue WAS restored!

Restore will NOT remove Podcast Queue.


Listen to music while watching videos on the browser

Two apps can't play media at the same time. It's not that Safari is preventing the music from being played but that the media player playing the video from Safari is the front-most media player, overriding any background music. Thus, you can't 'turn off' audio from Safari because it's not from Safari.


Right, the way iOS generates ZDATEADDED appears to be dependent on indexing order, and hence naming (correct me if I am wrong).
So if you want the Camera Roll to be ordered correctly by EXIF/file data, you'd need to bulk rename pre-sorted files in order, and then import.
Thank you iOS Photos.app for being such a delight


Turn off Smart Folders display ".savedSearch" extension in Finder sidebar

You will have to recreate your searches since the option to hide the extension is not present if "Show all extensions" is enabled.

Disable "Show all extensions" in Finder preferences (which you have done)
Create a new Search in Finder
Check the box "Hide Extension" in the resulting dialog

See the original author's explanation here for more information


Is it possible to set restrictions on any iOS app?

iOS only allows you to block built in applications and features, and age-rated apps from the App Store.

If you jailbreak, there is a tool for specifically locking apps individually called iProtect on the Cydia Store. However, it costs $8.99.


Restoring <= 10.6.8 lid-open Clamshell Mode in Mountain Lion?

You can get pre-lion behavior with:

sudo nvram boot-args="iog=0x0"

If it screws up your system, just zap the PRAM next boot (cmd+opt+p+r) and you'll be back to the default state.

Or from terminal, this command will get you back to Lion's default state as well:

sudo nvram -d boot-args


If you open the link in Safari, you can do a Save As and the pdf is copied wherever you tell it to copy. You can then reopen the file with Preview and it worked fine for me.

If you can't get it to save as a pdf, go to the print command and when the print window opens there is an option on the bottom left to print file to a pdf. This will create a new pdf file.


How can I wipe an encrypted volume when the password is forgotten?

To delete encrypted volume disk (not your main boot disk)

Open Terminal.app
Unmount disk using

diskutil unmountDisk force /Volumes/disk2 (substitute /Volumes/disk2 with your disk)
Find disk UUID

diskutil coreStorage list
Delete disk/volume

diskutil coreStorage delete [UUID] (substitute [UUID] with your disk's UUID obtained from the previous command)


Keyboard shortcuts such as the "Print Document" shortcut are baked into each application, so unfortunately it isn't something that is system-wide and can be disabled in one place.

Here's an excerpt from Apple's Keyboard Shortcut page:

  To learn more shortcuts, check the menus of the app you're using.
  Every app can have its own shortcuts, and shortcuts that work in one
  app may not work in another.

However there is still a workaround to get shortcuts from working, and that would be by using another application that binds shortcuts. By binding Command+P to do nothing on another application you would essentially block it from being able to do anything else. To learn more on how to do this, check out this very similar question: How to disable keyboard shortcuts in mac os x


Touch ID lock screen functionality in iOS 10

Everything you've described is exactly how it works in iOS 10, with one exception (noted in the third paragraph).

Pressing the home button once goes to the lock screen. Note that if you're using a 6s or later, the Touch ID sensor is so sensitive that pressing the home button with a registered Touch ID finger generally leads to the device going directly to the home screen. This has been the case since the 6s (and iOS 9) came out.

The new Raise to Wake feature in iOS 10 allows you to raise the device towards you to turn on the lock screen without pressing any buttons. I've noticed that it will turn the screen back off rather quickly if you don't start interacting with it nearly immediately.

Resting your finger on the home button unlocks the phone. The only change is that instead of going to the home screen, unlocking now stays on the lock screen but provides additional functionality since it's unlocked. You can override it staying on the lock screen by toggling Settings > General > Accessibility > Home Button > Rest for Unlock.

Pressing the home button twice does take you to the passcode screen where you can use Touch ID or enter your passcode. Again, if you use a Touch ID registered finger, it will likely unlock the device by accident, and this has been the case since the iPhone 6s debuted.


How to completely reinstall an app such as Google Chrome on the Mac?

AppZapper allows you to remove all of the files associated with an application. The free version allows you to remove an app only 5 times, but check it out and see if it solves your issue.


/private/var/run is the place for system/root level pid files to live on OSX (Darwin)

Locking is more complicated (or simple depending on your POV) with the system/API arbitrating device locks rather than writing them to the filesystem.

Do consider the implications of fast user switching and the documentation on Multiple User Environments or simply calling NSTemporaryDirectory if your locking happens in user space or the application can be fired up more than one at a time.


How to create recursive download and rename bash script

I would change two things to make it work

the variable need to be put in {} to separate it from the other text (how should bash know that the variable isn't called ilatest otherwise?
sleep expects the sleep time in seconds

This gives you

#!/bin/bash
i=0
while true
do
    curl -O link.com/latest.jpg
    let "i++"
    mv latest.jpg latest-${i}.jpg
    sleep $((5*60))
done

In addition, having the sleep as part of the loop code will require that you press ^C twice to terminate the loop. You might want to try the following instead

#!/bin/bash
i=0
s=0
while sleep $s
do
    curl -O link.com/latest.jpg
    let "i++"
    mv latest.jpg latest-${i}.jpg
    let 's=5*60'
done


"Accountsd wants to use the 'iCloud' keychain"

A reboot solved this issue for me.

I had this same pesky popup with no apparent source. There were actually two of them:

acountsd wants to use the "iCloud" keychain.
Address Book Source Sync wants to use the "Local Items" keychain.

Clicking 'cancel' on the first one would cause it to reload instantly, so there was no way to opt out of responding.

I closed all open applications and restarted, apparently resolving the issue. Several things make me nervous about this: (a) The persistent behavior of the modal, (b) the lack of clear source and reference,  and (c) the request for password on keychain which I never use. Is this a new virus?

Here is a screenshot:


finder menu "Services>>New Terminal at Folder" doesn't work

I tried it and it does work but on directories (folders) only. I know that you said you selected a folder and it refuses to work but I don't have enough knowledge to understand the files in the System responsible for the correct activity.
I might recommend turning the option off and back on again. Create a new folder and immediately right click.

To those of you who said you are still not able to achieve the goal of adding the final step, a keyboard shortcut, this second screenshot should do it.


How should you say an app is coming to the app store prior to being approved?

You could state that your game is under development for iOS, and if you are waiting for approval you can state it is submitted to the App Store or that it is Waiting approval for the App Store.

In Apples documentation it is known as 'Submitting Your App to the Store'


is everything (files, programs, internet passwords) stored on the Hard Drive?

No, the buyer will not have access to any of your files, programs or passwords. These are all stored on the hard drive itself. The only thing that will be left behind is the firmware, but that doesn't store any personal information or any records of what programs you may have had installed. If you'd like more information on firmware, you can check the wiki here: Firmware Wiki


Does a macbook SMC reset if you disconnect the battery?

This answer is based on the datasheet from a similar power management controller unit, or PMU (what Apple calls SMC - they're the same thing) as datasheets for those chips are not available.

I am using the datasheet from the TM4C1231C3PM which is approximate to the (Apple SMC) LM4FS1AH5BB  which are both made by Texas Instruments.

There are 6 conditions which will cause a reset:

Power on reset (POR)
Brown out detection
Software initiated reset
A Watchdog timer reset
MSOC (system clock) failure

The POR will reset the SMC

Wait....but I turn on/off my laptop all the time.

This is the power on state of the chip, not the machine.  As long as power is applied, it will hold the settings which is why disconnecting the the battery resets the SMC.  This is the initial power up of the chip.

  The internal POR is only active on the initial power-up of the
  microcontroller and when the microcontroller wakes from hibernation.

So, to answer the questions...

  Will the SMC reset if you disconnect the battery and press power for 5
  seconds in newer Macbooks?

Yes.  Removing the power and discharging any residual charge will reset the SMC.

  Will the SMC reset if you press the keyboard combination
  Shift-Ctrl-Alt and Power in older Macbooks with user-removable
  batteries?

It's impossible to know without actually testing them as datasheets for older SMC chips are even more difficult to source.  (IMO) it's unlikely since the desktops of that vintage didn't use the keypress and relied solely on removing power, the laptops did as well since they had removable batteries.  It wouldn't hurt to test this.


Problems exporting PDF from Pages and uploading to Jobvite

I would recommend NOT to use the Pages "Export as PDF" file, since there might be inconsistencies with Adobe PDF format.

I would recommend you use the Pages- Print- PostScript.

Now open that file in Preview and save as PDF.


How can I rename screenshot files added to my Screenshot folder?

I used Cocktail to specify that screenshots are saved to a folder called "Screenshots" on my Mac. I use an app called "Hazel" to watch that folder and to automatically run an AppleScript that shows a dialog box asking if I want to rename the screenshot.

Here is the dialog box that pops up automatically:

Here is a screenshot of Hazel, with my "Name it" rule:

Clicking the edit (pencil) button in that window shows you the conditions under which the rule will run. As you can see, Hazel will run the AppleScript if the file is an image, added today, whose comment does NOT contain the word "Hazel." Since newly-made screenshots do not have comments with the word "Hazel" in them, these are the right conditions. (When the script runs, it adds a comment with the word "Hazel" in it to the file.)

Here is my AppleScript.

tell application "System Events"
    set the_apps to every process whose frontmost is true
    set the_app to item 1 of the_apps
    set the_app_name to name of the_app
    set old_name to name of theFile
    set the_choice to display dialog "If you want to rename this file, do it" buttons {"Rename", "No thanks"} default button "Rename" default answer old_name
end tell

if the button returned of the_choice is "Rename" then
    set the_date_string to do shell script "date '+%Y.%m.%d'"
    tell application "Finder"
        set the comment of theFile to "Name changed with Hazel"
        set the_name to text returned of the_choice
        set cleaned_name to change " " into "_" in the_name
        set cleaned_name to the_date_string & "_" & cleaned_name
        if (characters 12 thru 13 of cleaned_name as string) is "wm" then
            move theFile to (POSIX file "/Users/cboyce/Dropbox/Screenshots/Webmaster Screenshots")
        else
            move theFile to (POSIX file "/Users/cboyce/Dropbox/Screenshots/Renamed Screenshots")
        end if
        set the name of theFile to cleaned_name & ".png"
    end tell
end if
tell application the_app_name to activate

The first part of the script records the name of the frontmost app at the time of the screenshot's creation. It also has the "Display Dialog" step.

The second part of the script renames the screenshot and moves it to a "Renamed Screenshots" folder. If I put "wm" at the beginning of the file's new name, the script puts the renamed screenshot into a special "Webmaster Screenshots" folder. The script also replaces spaces with underscores, but you would not have to include that part. Notice also that the script sets the comment of the screenshot to "Name changed with Hazel." You of course can make your own conditions but this works for me.

You will have to change the username in the script, in the two lines that start with "move theFile." Replace "cboyce" (my username) with whatever yours is. If you're not sure what yours is, find the Users folder at the top level of your Mac's hard drive, open that up, and look for the folder with the house icon. The name of that folder is the username. Actually, you have to change the entire path. I'm saving my renamed screenshots into folders stored in my Dropbox folder but you of course can put them where you like. So change the path in those "move theFile" lines to point to YOUR folders.

Hazel is commercial software but you can use it in Demo mode for free. Demo mode allows you to watch only a single folder, which in your case is all you need. You can download Hazel from Noodlesoft.com.


What is the difference between console.log and system.log?

Console.log is usually written to by calls to Apple's NSLog() function call. (I can't find any other way to write to it so might be the only way) This writes to the log of the user that the app is running as

system.log is written to by the unix call syslog. syslog can be configured to write to different files and machines. system.log is a central file written to by all users.

Thus only code written specifically for OSX will write to console.log and only by the current user.

syslog is used by pure unix apps and if you want central logging.

OSX since 10.4 actually writes the logs to a database using asl


Disable Airplay on Mac because of too many Airplay devices

Try Disable AirPlay Mirroring in your terminal

sudo chmod 000

/System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent

To turn it back on

sudo chmod 755

/System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent

Here is the list of Ports used by Airplay

source


Is there any way to broadcast a part of your screen as webcam on OSX (for twitch, omegle etc)?

You can use OBS, also known as Open Broadcaster Software.

Here's the official site's description of OBS:

  Open Broadcaster Software is free and open source software for video recording and live streaming. Supported features include:

  Encoding using H264 (x264) and AAC.
  Support for Intel Quick Sync Video (QSV) and NVENC.
  Unlimited number of scenes and sources.
  Live RTMP streaming to Twitch, YouTube, DailyMotion, Hitbox and more.
  File output to MP4 or FLV.
  GPU-based game capture for high performance game streaming.
  DirectShow capture device support (webcams, capture cards, etc).
  Windows 8 high speed monitor capture support.
  Bilinear or lanczos3 resampling.

You can download OBS for macOS 10.8+ from the official website. It also supports Windows 7/8/10 and Linux.


Can't download apps after changing Apple ID password

Go to AppStore > Store (top menu) > View my account and check your payment info - you might have a link there that will help you reauthenticate payment info. If that won't help - change something in payment info, that should trigger reauthenticate process.


There is a proprietary micro-controller in the Applebuds, so you won't be able to simulate it.

Maybe you could try a jack extension cord. (beware, you'll need a jack with 4 connectors).


iPhone 5S gets very hot and drains battery

I would connect to a fast WiFi and re-enable iCloud. The WiFi will drain the battery far less than the cellular modem for transferring 1 GB of data since it will finish much faster in most cases. Also, you might need to plug into power to let however much data you have sync.

Some big items you can turn off temporarily are:

iCloud Photo Stream
iCloud Backup
Any other large users of data from the settings app, iCloud and settings app, usage

Another thing you could try is to disable all iCloud settings, and enable them one by one.

Once the device is caught up, you can test the device on LTE/3G data without the power cord and WiFi to see that the battery usage isn't due to downloading a lot of data from the cloud or putting that data up in the cloud.


How to wirelessly mirror a MacBook onto a smart tv without Apple TV?

After I did upgrade to Catalina, I can use AirPlay button in the menu bar.

The only requirement is that TV and MBP are on the same network. Picture quality on Macbook will be lower than on TV actually.
Tested with MBP Late 2016 (10.15.3) and LG 43um7500pla (4K TV).


How do I get Web Sharing back on Mountain Lion?

You could look into using MAMP, as it's just as easy as Web Sharing was before.