Making all application windows stay fullscreen on relaunch

I haven't tried this yet, but did a quick search and there is a free add-on called Maximizer available.

It may not be build into Lion yet (as far as I know) but this will get you close for what you want :-)

http://chpwn.com/apps/maximizer.html


Is there a way to reverse changes done to a txt file in Documents by Readdle?

Generally, file management applications have the ability to handle any type of file.
From the iCloud drive, for instance, you can make it open the specific file in a specific application by holding your finger on the file icon you desire to open. You then select and by selecting the "More..." option from the menu that will hopefully appear, and then selecting "Share Item... " and finally selecting an application from the list.
Reversing the actions might be undone by simply opening back to the default application it was made to be opened with.
A similar question was answered here, you might need a specific application to handle text files.
Reference:
https://discussions.apple.com/thread/7652455


Cannot connect to App Store via iPhone - Wrong Password although password is right

If the servers are broken or the network isn't working between you and the servers, your password isn't actually wrong. Even when all lights are green at http://www.apple.com/support/systemstatus/ it could be an issue that'e exclusively server side, and you'll need Apple Support to get to that conclusion.

Barring that, you can certainly to go through "the usual troubleshooting steps" on iOS since you're unlikely continuing to type the password incorrectly.

You should start with the support article below:

https://support.apple.com/en-gb/HT203005

Before you contact support (the link at the bottom of the page - the next step if that doesn't work) is to maybe try a restart. Since the app store needs an accurate time and date:

Sign out of the store from preferences
Turn off "automatically set time" in the settings app, General, Date & Time
Put the device in Airplane mode
power off the device and maybe go make some tea while it powers itself off
When you start it up again, set the clock manually to within 10 seconds of a good time source and then enable WiFi or cellular data as you please.
Try to sign in to the Settings App - iTunes & App Stores section
After one failure, turn on automatic time setting
Try to sign in to the App Store


How do I make Chrome the default browser in the OSX Guest Account?

The crucial point to realize with the Guest account is that the User homefolder it creates, with preferences set in its /Library/Preferences folder, are wiped upon logout.

To effect changes, you need to make the changes (add the specific preference files) in the /System/Library/User Template/English.lproj folder. This folder contains the generic template User Homefolder structure used when creating a new user or the Guest User.

This page has details about how it is done in Snow Leopard, but it is applicable to Mavericks.


How can I transfer my Google Chrome bookmarks to my iPad?

Google Chrome

....is now available for iOS.

Just activate (bookmarks) synchronisation on your PC and iPad. Go to New Tab > Favorites > Computer Favorites.

  From the App Store description:

  Sign in to Chrome to sync your open tabs, bookmarks, passwords, and omnibox data from your computer to your iPhone, iPod touch, or iPad. Pick up right where you left off.
  Send pages from Chrome on your computer to your iPhone, iPod touch, or iPad with one click and read them on the go, even if you’re offline.


Will Apple replace my broken Lightning cable for free?

I have had the same situation happen to me with 2 phones actually.  Apple did replace them under warranty.

If you have access to an Apple Store:

Either walk in or make a Genius Bar appointment
Be sure to have your iPhone with you
Apple will need your IMEI number from your device

To get the IMEI number go to Settings > General > About (The Apple rep can assist you)

They will then provide you with a new cable after verifying your eligibility.

If you do not have an Apple Store that you can get to, call AppleCare for instructions.


L2TP error sending Hello (Can't assign requested address)

It appears other users are also noticing the issue https://discussions.apple.com/thread/6605525

  When using a static IP address and manual entries for subnet and
  router in the network settings, Yosemite VPN fails to stay connected.
  This is probably a bug or an error that Apple needs to fix.

  When having the client computer (the one you are using) network settings
  configured to either just use DHCP or DHCP with manual address, the
  VPN connections (both L2TP and PPTP) work.  If using ARD to access
  computers on the local network, the results are better if you select
  "Send all traffic over VPN connection" under advanced options for the
  VPN connection.

I just switched to OpenVPN to work around this issue.


Create Wi-Fi access point in macOS without Internet connection

This sounds like your iPhone deciding not to use the Wifi network it is connected to - perhaps it is instead directing all traffic to the Cellular data connection, since that does have internet access.

Perhaps try Disabling Cellular Data in addition to what you've already done above, so the iPhone has only one available network to send data to.


You should switch to using IMAP protocol instead or POP. IMAP has better support for multiple devices, and leaves the messages on the server by default. For more info on POP vs. IMAP here's a good link.

Note that you shouldn't just change the protocol, since a part of your messages has been downloaded to your device and deleted from the server. If you change the protocol, you may experience data loss. Instead, create a new account with IMAP and the same logins, and move the missing emails to the new account. After this, it's safe to get rid of the POP account and start using the IMAP version. For mote info, check this guide.


Xcode delete subword/word forward/backword eating empty space

If I understand your question correctly given the two lines

abc^
xyz

with the cursor as the ^.
You would like to know how to delete forward to achieve the following with one shortcut

abc^xyz

Again the ^ here symbolizes the text cursor.

The forward delete in xcode is mapped to both the forward delete key ("del" absent on most mac keyboards) but "fn delete" is a forward delete, "control d" also functions as delete forward.
This can be changed in the xcode preferences -> keymap

Now to the aspect of deleting white space and newline... This is harder, it seems like xcodes subword (which selects or deletes to a capitalized section in a word), word, and expression deletes do not include whitespace.

To select just white space and newline and delete it you can do the following three commands
option shift ->, option shift <-, delete
I have an app called betterTouchTool that allows me to map those three commands to one single one.
Not my softwware but been using it for years. It's amazing.


High Sierra doesn't boot after ubuntu partition deletion (which was dual booted)

I know it's while I opened this thread but I finally understand what is the problem and how to fix it.

The problem is that after merging the partitions the Disk Utility somehow destroyed the partition type (APFS partition), and changed it to 'FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFF'. There was similar questions related to my issue here and here.

I imaged the whole disk and installed the OS from scratch and with the instructions mentioned in the links I managed to mount the image and access my data. But it was possible to fix the problem without reinstalling and imaging.

Anyway here is the commands I used after installing new OS to solve the issue on the disk image.

First mount the raw image (I imaged the disk with dd).

sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount hard.dmg

here is my output, as you can see the third partition type is invalid.

/dev/disk3              GUID_partition_scheme
/dev/disk3s1            EFI
/dev/disk3s2            FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFF

Get information about disk layout and start and size of each partitions.

sudo gpt -r show /dev/disk3

here is the output

      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  927867256      2  GPT part - FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF
  928276896   48828131
  977105027         32         Sec GPT table
  977105059          1         Sec GPT header

So I just need to remove the third partition and add it again with the right GUID, I also used the start and size from previous command. the GUID for APFS partition is 7C3457EF-0000-11AA-AA11-00306543ECAC.

gpt  remove  -i  2  /dev/disk3
gpt  add -i 2 -b 409640 -s 927867256 -t 7C3457EF-0000-11AA-AA11-00306543ECAC disk3


That's not possible. You should borrow someone's mac to make a backup and restore it after you factory reset it. Or simply fo to an apple store.

That said, I don't really see why adding a SIM card to an iPhone would reset it. Could you source that ?


Download and install the  iTunes to android Sync-Windows
 on your your computer.

Description

Requires: iTunes+Windows not for mac users
Synctunes wireless syncs an iTunes libray from Windows to android.

It allows you to sync your iTunes music, podcasts and videos from your iTunes library on windows to to your android device over WiFi.

Features:

From iTunes computer it Syncs to android like below

Syncs to internal or external SDCARD

Syncs Podcasts from your iTunes library to android.

Syncs Music tracks from iTunes to android.

Syncs Playlists.

Syncs tracks from iTunes store downloaded on your computer

Syncs album art

Organizes songs in android by artist/albums

You can filter your tracks to be synced (by size, length , date etc)


Is a Thunderbolt cable usable between a MacBook and a non-Apple external display?

No.  You cannot use a Thunderbolt cable to connect to a mini Display Port (mDP) monitor.

The reason you are seeing the monitor shut off is because you are sending it Thunderbolt AND Display Port signaling.  Remember, Display Port is, for a lack of a better word, embedded within the Thunderbolt signal.

Just using pin 1 for example, the Display is expecting ground while TB is sending HV Input.

This is why you need a mini Display port cable when hooking up a monitor and a Thunderbolt cable when hooking up a Thunderbolt device.


Apple's Java 6 JRE will support HiDPI, however it is not currently supported by Oracle's Java 7 JRE. It also doesn't work under the latest dev builds of Java 8. Swing and JavaFX apps are blurry on a Retinia MacBook. This is why IntelliJ still runs under Java 6. Eclipse applications will require the PList mode that Jurriaan Mous mentioned. The milestone builds of Eclipse 4.3 don't require the edit.


Change duration of still frames in iMovie 10.0.7

Open the app and search for Freeze Frame in the help menu.

Select the help topic named:

- Add a freeze frame

It explains how to freeze a frame and at the bottom of the page, it describes how to modify the 4 second default.


How to really exclude Time Machine Backups from Spotlight-indexing?

According to Apple, at https://web.archive.org/web/20180101183140/https://support.apple.com/kb/PH21902?locale=en_US

If you add a Time Machine backup disk to the privacy list, you will
continue to see messages that Spotlight is indexing your backup disk.
This indexing is necessary for Time Machine to function properly and
can’t be disabled. Spotlight does exclude from searches any items you
store on your backup disk that are not part of a Time Machine backup.


if you have a small vacuum cleaner, like the portable ones for cars or furniture I would suggest you try that. Or even a regular vac if your careful.


Take screenshot of window on Mac without using spacebar then mouse click

Here's my solution, which I named Window-Snapshot, base on a very simple AppleScript, either saved as an application from within the Script Editor and or used as part of an Automator Service with keyboard shortcut assigned. Although as a Service it uses the third-party utility used in the Window-Snapshot AppleScript application's one* mouse-click solution detailed below.

Note: Automator used as a Service is, by itself, a nice feature however when used with a global keyboard shortcut it can be problematic unless the keyboard shortcut used, is both usable and not in use elsewhere in OS X or any opened Applications whose window is to be captured. Which is why I've included using the AppleScript both as an AppleScript Application and or an Automator Service with keyboard shortcut assigned. While some keyboard shortcuts assigned to an Automator Service will work with most application windows nonetheless it may not work with some, even if that keyboard shortcut isn't assigned to that application of the window being captured. In such cases the Window-Snapshot AppleScript application can be used over the Automator Service.

As an AppleScript Application

This can be setup to be either a two mouse-click solution (the default) or a one* mouse-click solution.

* Note: As a one* mouse-click solution it requires the use of a third party utility called CLICLICK. As far as I know, there is no direct mouse/left mouse down event in AppleScript and thus the use of either a third party utility or otherwise the use of additional code then what's already being presented to employ methods that use other resources, native and or third-party.

As a two mouse-click solution the AppleScript it's saved as an application, I saved it as Window-Snapshot in Applications, and then placed it in the Dock by dragging and dropping the application bundle onto the Dock where I wanted it to be.

What I like about the two mouse-click solution is when the Dock Tile of the Window-Snapshot application is clicked, it's literally like I had manually pressed shift-command-4 then Space bar on the keyboard and now all I have to do is mouse-over the target window I want to capture and then mouse-click it. Thus a two mouse-click solution! This method allows pressing the esc key to abort, just as the manually pressed keyboard shortcut would have.  Also it doesn't rely on using a third party utility and a second delay command as a timer to allow positioning the mouse pointer before it times out and automatically takes the snapshot used in the one* mouse-click solution. By itself the two mouse-click solution is the easiest solution presented herein.

As a one* mouse-click solution the AppleScript is saved as an application and the third party utility CLICLICK is added to the application bundle and corresponding code is uncommented in the script.

Note: The one* mouse-click solution uses a second delay command to allow time in positioning the mouse pointer anywhere over the target window to be captured and doesn't matter whether or not the window is the top-most window, when the second delay command times out whichever window the mouse is over that's the one captured in the snapshot. The capture can be aborted by pressing the esc key before the second delay command times out.

As an Automator Service with keyboard shortcut

As Automator Service it's created using the ApplesScript code, modified slightly, and a keyboard shortcut is assigned to the Service in: System Preferences > Keyboard Shortcuts > Services

Note: The keyboard shortcut I assigned is shift-command-5 or ⇧⌘5, which seemed a logical one to use, and whichever window the mouse is over is the window that will be captured by the snapshot. The window does not need to be totally visible to be captured or be the top-most window.

Window-Snapshot AppleScript Code

tell application "System Events"

    (* Note: If used as the default two mouse-click solution then use as is, nothing else needs to be done. *)

    keystroke "$" using {command down}
    delay 0.25
    keystroke space

    (* Note: If using as the one mouse-click solution or Automator Service, uncomment the
    two lines below having double-dashes in front by removing the double-dashes.
    Also when using as the one mouse-click solution, set a value on the 'delay' command
    below to an appropriate value which allows you the time necessary to move the mouse
    over the target window before that delay command times out and the snapshot is taken.
    The default of '1.5' is in this use case is a somewhat arbitrary value, set it to suite.

    Note: When using as an Automator Service set the 'delay' command below to '0.25',
    the same as in the first 'delay' command. *)

    -- delay 1.5
    -- do shell script "/Applications/Window-Snapshot.app/Contents/Resources/cliclick c:."

end tell

Note: As you can see there is a 0.25 second value, delay 0.25, on the first delay command, this short delay is necessary as there needs to be a delay between the two keystroke commands.  If using the one* mouse-click solution the second delay command needs to be something more realistic.  Set a value that allows you the time necessary to move the mouse over the target window before the delay command expires, e.g. 1.5 etc.

Creating the Window-Snapshot Application

Open Script Editor (or AppleScript Editor if applicable).
Copy and paste the Window-Snapshot AppleScript Code, from above, into the Untitled document window and then press Compile.
Press ⌘S to save and set the File Format: to Application saving it in the Applications folder.
Give the Window-Snapshot application bundle a custom icon.  I used an icon of a camera found at Find Icons and used this one in particular clicking the 'Download ICNS' button.  I opened the downloaded "scanners_cameras.icns" file in Preview and copied it and then pasted it into the Get Info sheet of the Window-Snapshot.app by first selecting the little icon in the upper left corner of the Window-Snapshot Info sheet. (In Applications select the Window-Snapshot.app and press: ⌘I)
Now drag and drop the Window-Snapshot application bundle from the Applications folder onto the Dock where you would like it to be.

It's now ready to be used, click the Window-Snapshot Dock Tile and then click the target window to be captured.

Note: The snapshots are saved with the same naming and location settings as if ⇧⌘3 was pressed only saving just the target windows.  The default is on the Desktop using Screen Shot yyyy-mm-dd at hh.mm.ss AM|PM or if the default has been changed it will be to however it's currently set.

Setting up the Window-Snapshot.app to be a one* mouse-click solution using CLICLICK

Download CLICLICK and mount the cliclick.dmg file and place a copy of the cliclick executable inside the Window-Snapshot.app application bundle at the path show in the script.  Ctrl-Click the Window-Snapshot app selecting Show Package Contents and navigate to the Resources folder placing a copy of the cliclick executable there.
Uncomment the two lines below the (* Note: If using as the one mouse-click solution or Automator Service, comments by removing the double-dashes, --, in front of the code.
Save the changes made to the AppleScript.

It's now ready to be used as a one* mouse-click solution.

Creating the Window-Snapshot Automator Service

Open Automator selecting Service.
Set Service receives selected to no input leaving in any application as is.
Add a Run AppleScript and then copy and paste the Window-Snapshot AppleScript Code above into the Run AppleScript window overwriting the default code.
Uncomment the two lines below the (* Note: If using as the one mouse-click solution or Automator Service, comments by removing the double-dashes, --, in front of the code and set the value of the second delay command to 0.25.
Save the Service pressing ⌘S naming it as Window-Snapshot.
Open System Preferences and navigate to Keyboard  > Keyboard Shortcuts > Services and scroll to the bottom, then under General you'll see Window-Snapshot and select it.  Now click on add shortcut and press shift-command-5 or: ⇧⌘5

It's now ready to be use as a Service using the keyboard shortcut: ⇧⌘5

Note: If you only want to use it as a Service you'll need to adjust the pathname to the cliclick executable to wherever you installed it. You could try putting it in the Services bundle at, e.g. /Users/$USER/Library/Services/Window-Snapshot.workflow/Contents, although I did not try this as I like having it as both an AppleScript application using it as a two mouse-click solution and an Automator Service with keyboard shortcut assigned.

In closing, I'd like to say that this very simple AppleScript certainly can be expounded upon to add additional functionality both as an application or a service, i.e. adding code to save the snapshot with different names and locations etc., however I'll leave that to you to modify if you so choose.


MacBook Pro (Retina, 13-inch, Early 2015) high temperature

As a starting point I would reset both your NVRAM and your SMC. See below for instructions.

Reset your NVRAM

Newer Macs use Non-Volatile Random-Access Memory (NVRAM). It may be worth you resetting this. Here’s how to:

Shut down your machine. Yes, a full shut down, not just logging out.
Press the power button and then press the commandoptionpr keys. You have to make sure you press these keys before the gray screen appears or it won’t work.
Hold those keys down until your Mac reboots again and you here the startup chime.
Let go of the keys and let your Mac reboot normally.

Note: When you log back in you may need to readjust some of your system preferences (e.g. mouse speed, time and date/timezone, etc).

Reset the SMC

Your computer's System Management Controller (SMC) can also be reset. To reset this on your particular MacBook Pro, here’s what you do:

Shut down your computer
Keep the power cable plugged in.
Press at the same time shiftoptioncontrol (on the left side of the keyboard) and the power button
Let go
Turn your computer back on with the power button.

After doing both these, let us know how you go.

Compare CPU temperatures

Also, as a point of reference, this resource (which can be filtered) will give you an idea of the wide range of temperatures that Macs can work with. However, after you've reset both the NVRAM and SMC you can monitor your CPU temperature and then use this resource to compare your temps to other comparable models.


Why does Calendar.app offer these addresses when I type "at home" in the location field?

At Home is actually the name of a store (and so is At Home Inn & Suites).

If you want to set the location of an event to your home, either your name, or the first few digits of your street address. Your home address should bubble up to the top.


Is is possible that a software issue could be causing spotty USB-C connections on 2017 MacBook Pro?

It's not a software fix, but a "hardware" one, that will address this issue.

The problem lies in the fact that the multi-function hub most likely doesn't supply an active HDMI adapter.  You can usually get around this limitation with a reboot, but that can become burdensome especially if you go from a desktop setup to a mobile setup multiple times per day.

Why is it a hardware issue?

Clock signals.  HDMI has one and DisplayPort (what you're converting from) doesn't.  So, when you plug in your HDMI monitor, there's no signal to sync up to.  Rebooting usually resolves this and gets everything "synced up again."  A passive adapter (what is in the hub) just rearranges the signal whereas an active adapter actually recreates the signal making it much more reliable.


Windows Get Stuck in Top Left corner after upgrading to Mavericks

There is a way to get the windows back to normal without quitting the app, but it's not ideal.

If you move the dock, the applications will move back into place, the easiest way is to click the  and go to dock, then change the position, then repeat to put it back to where you had it originally.

https://discussions.apple.com/message/23766770#23766770


How long are text messages saved in the iCloud server?

As of the last update of Apple's iOS Security Guide, May 2016:

  iMessage messages are queued for delivery to offline devices. Messages are currently stored for up to 30 days.

(emphasis mine)

Note this time period has increased from a prior version of this guide, which stated that messages were queued for up to seven days.

If, by "text message", you actually mean SMS messages, those do not cross onto Apple's servers at all unless you have SMS Forwarding enabled, to have messages from your iPhone forwarded to other devices such as a Mac or iPad. Forwarded SMS messages are encrypted in the same method as iMessage messages (elaborated in the guide). It appears that the 30-day timeframe also applies to forwarded SMS messages.


How do I take a screenshot and paste it in a file?

⌘ cmd + ⇧ shift + 3 will screenshot the entire screen and save it to your desktop. (You should hear a camera sound when you do this.)
⌘ cmd + ⇧ shift + 4 will give you crosshairs to use to select an area for copying. Move the crosshairs to the location that you want to copy and click the upper left, dragging the crosshairs to the lower right of the area you want. When you release, you will hear the same camera sound, and the screenshot will save to your desktop.

Also, ⌘ cmd + ⇧ shift + 4, then Space, then clicking any window will save that window to a screenshot.

To change the location of the saved screenshot, launch Terminal and use the following command:

defaults write com.apple.screencapture location /path/ && killall -HUP SystemUIServer

Make sure you change /path/ to be the location where you want your screenshots to go.


Need Help Fixing Partitioning after Deleting Core Storage Booter and Windows

You deleted too many partitions. You deleted the booter partition used to boot Yosemite.

Normally, the command given below would be used to reclaim the missing space.

diskutil cs resizestack 84A33FDC-BA63-43B5-A43F-E4BF61D0830A 0

However, if you issue this command, I would assume you would get an error message similar to what is shown below. The error is due to the missing booter partition and is not due to the target partition being too small.

Error: -69722: You can't perform this resize unless it has a booter (target partition is probably too small)

I am not sure if you can revert the Core Storage volume. You would have had to include the output from the command disktuil cs list in order for me to determine this.

You could try entering the command given below. This attempts to change the Yosemite volume to "Mac OS Extended (Journaled)". If successfully, you should be able to view Yosemite in the Startup Manager.

diskutil cs revert 84A33FDC-BA63-43B5-A43F-E4BF61D0830A

If unsuccessful, you will probably need to reinstall Yosemite. If successful, you can post a new question asking how to proceed.


booting an iBook from a live linux usb drive

A quick search for Lenovo ThinkPad shows these machines use Intel processors. I believe your iBook uses a PowerPC processor. So one would expect the USB flash drive to fail to work with your iBook, if you can boot using the ThinkPad.

Appendix

Ubuntu PowerPC FAQ

Lubuntu 16.04.3 LTS (Xenial Xerus)

Ubuntu MATE 16.04.3 LTS (Xenial Xerus)

  Note: iBook (Model A1007) shipped with 256 MB of RAM. This is expandable to a maximum of 640 MB.


How do I download Youtube videos for offline viewing on an iOS device?

YouTube currently offers this within their app if you pay the premium of $9.99 USD per month for what they call YouTube Red

Key Features according to their marketing is:

YouTube Music
Ad free & offline video
Orginal Shows


Trying to replace volume sound in OS X to what was present before. Encountering permissions problems even as root. Help?

The article[1] you have referenced will not work on OS X 10.11 El Capitan (beta versions included). This is due to the new System Integrity Protection (SIP) feature. SIP is intended to protect operating-level system files (in /System and other filesystem locations) from modification, even by a user with root-level privileges.

If you are committed to doing this task, you could try turning SIP off, following the article, then turning SIP back on. Instructions for disabling/enabling SIP are easily found online.

[1] Note that the article does not give any 'date posted' information, but appears to have been posted around Sept-Oct 2014?


User required in Profile Manager Exchange settings

You can use %short_name% and %long_name% to autofill some fields (such as email address, username, full name) in Profile Manager, and they will pull that information from your user directory.

If you're using Google Apps via Exchange ActiveSync, then that will only work if your on demand user accounts have the same short name as your Google Apps user accounts, or if you are syncing the two together.


Can I purchase from other sites using my Apple ID?

Short answer is: no. iTunes accounts are meant for purchasing products from Apple, and Apple only.

Apple might decide at some point to partner with other companies to allow you to reuse your account on other websites, but I don't think it has done so so far. Besides, iTunes is an online store, not a payment service like Paypal.


Completely clean reset of Mac—does Internet Recovery reset Recovery partition

The whole point of Internet Recovery is to allow reinstallation of the OS when all data on the internal storage is lost, including the Recovery partition.
However, some people have had trouble with some models of Macs not connecting to Apple servers. It's certainly worthwhile making sure you've got an external bootable install media for emergencies.
Also, there's not really any point in 'resetting' the Recovery partition and the entire disk itself: erasing the system/user volume and reinstalling using the Recovery partition will suffice to put the Mac back to a 'brand new' state.


Why yes, it can, as a matter of fact. Follow these steps to hear some high quality jokes on your Mac.

Open up Speech Recognition in your system settings.
Enable "Speakable Items"
Enable "Speak Command Acknowledgement"

Set up the rest however you like (in regards to key press or keyword for input). When you're ready, say "Tell me a joke." (Or, if you have a keyword " tell me a joke".)

Enjoy! (Tested in Lion, although this has been around for quite some time.)


How do I share my Wi-Fi connection through USB to my MacBook Pro without using cellular data or hotspot?

First, turn tethering on. Then, plug your phone via USB. Open system preferences on your Mac. Click network, then check the left side for your iPhone. If it's there, you're good to go. Else, click the '+' button. Set the name to whatever you want and set Interface to iPhone USB. The, restart tethering on your phone.


Why do I get different Available/Used spaces with Disk Info and df?

Do you have Time Machine backups turned on? If so, the difference may be due to space used for "local snapshots" (essentially, backups to the local disk when your real backup disk is not available). Local snapshots are automatically deleted when the space is needed for something else (actually, it starts purging them when the volume reaches 80% full), so the Finder treats them as free space. du, on the other hand, sees them as used space (as do Disk Utility and System Information).

To find out if this is what's going on, take a look in System Information: From the Apple Menu, choose "About This Mac", then click "More Info", then select the Storage tab, and look for a light purple ("Backups") band on the usage chart. If it's around 47GB, this is the source of the difference.

If you want to disable this feature, you can use the Terminal command sudo tmutil disablelocal -- but I recommend leaving it enabled, as it does provide some useful protection against accidental deletion/file damage/etc when your real backup is not available.

EDIT: As @chillin pointed out, there's an additional source of confusion: df and the Finder are using different units to report the sizes. df is using Gibibytes (=1,073,741,824 bytes), while the Finder is using Gigabytes (=1,000,000,000 bytes). If the Finder had reported in GiB, it would've said Capacity: 232.96 GiB, Available: 166.41 GiB, Used: 66.55 GiB. So there was actually about 52 GiB used for the local snapshots.


Running launchd agent not preventing macbook from sleeping

@nohillside gave me what to lookup. Updated to use caffeinate to prevent disk and system from sleeping.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
        <dict>
                <key>Label</key>
                <string>backup.restic.username</string>
                <key>Program</key>
                <string>/usr/bin/caffeinate</string>
                <key>ProgramArguments</key>
                <array>
                        <string>-im</string>
                        <string>/Users/username/Documents/scripts/backup.sh</string>
                </array>
                <key>StartCalendarInterval</key>
                <dict>
                        <key>Minute</key>
                        <integer>5</integer>
                        <key>Hour</key>
                        <integer>4</integer>
                </dict>
        </dict>
</plist>


Any Way To Find An iPhone That Isn't Signed Into iCloud?

The only way would be the old-fashioned - go look for it, ask others if they've seen it, etc.

You don't specify what you mean by "signing into the phone" except that it is not iCloud, you've signed into. If the service you did sign into (for example Facebook Messenger?) does have some kind of location tracking, it might give you a last known position.

If you have just misplaced the phone, you can't really report it as stolen with Apple to get it blocked on cell networks.


As I had backups of everything I decided to play fast & loose with copies of the two .plist files.
I dropped both files into BBEdit & tried to make sense of the reams of data.
The sidebar file looked at a glance more promising so I started with that.
I realised it had several thousand aliases to disk drives, SD Cards, CDs, RAMDisks & disk images permanent & temporary, dating back over perhaps a decade.

Carefully selecting sections from <dict> to </dict> in each case, I deleted all aliases except the one that contained SeenAsBootVolume. Saved & relogged.
Success. The current list rebuilt itself, the myriad 'spares' were gone & the drive no longer duplicates if I move/drag items in the list.
As a hint as to just how many old drive aliases I did actually delete -  the file was 82MB… it is now 9KB.

 …and, no, the date modified on the older one doesn't make any sense to me either;)


You almost had it.  This works for me.

tell application "System Events" to tell process "SystemUIServer"
    tell (menu bar item 1 of menu bar 1 where description is "system sound volume")
        click
        delay 1
        key code 53
    end tell
end tell


Lion OS install for new SSD. Do I need to install Leopard first?

No, you can install Lion directly if you want. This will save you a lot of time, as you would otherwise have to upgrade from Leopard to Snow Leopard first, only to upgrade to Lion afterwards.

Buy a bootable OS X Lion USB stick

You can buy a bootable OS X Lion USB Thumb Drive from the Apple Store: http://store.apple.com/us/product/MD256Z/A

Create a bootable OS X Lion USB stick or DVD based on the Mac App Store download

Buy and download Lion from the Mac App Store. The installer should show up in your Applications folder.
Right-click on the installer and hit “Show Package Contents”. Navigate to Contents/SharedSupport and look for a file called InstallESD.dmg.
Open up Disk Utility and drag the DMG file into the left-hand sidebar. If you’re burning it to a DVD, insert your DVD, select the disk image in the sidebar, and hit the “Burn” button. Skip down to the last step to use it.
If you want to burn Lion to a USB flash drive, plug it in and click on it in the left-hand sidebar in Disk Utility. Go to the Partition tab and select “1 Partition” from the dropdown menu. Choose “Mac OS Extended (Journaled)” on the left.
Hit the “Options” button under the partition table and choose “GUID Partition Table”. You’ll need this to make the drive bootable on a Mac. Hit the “Apply” button when you’re done to format your drive (note: it will erase everything on the drive).
Click on the “Restore” tab, choose the InstallESD.dmg file as the source and your flash drive as the destination. Hit the “Apply” button and it will create your bootable USB drive.

Reboot into OS X and hold the option key when you hear the startup chime. You can boot into your DVD or flash drive from there.


2016 Macbook Pro can no longer use recovery partition

Make sure you have a working backup of your data.

Your first option is to simply reinstall macOS from internet recovery (press cmd+option+R at startup) or an external (USB) drive.

Alternatively, this article describes the process of recreating the recovery partition.

  Download a copy of the “Install OS X” or “Install Mac OS X” from the Mac App Store under the “Purchases” tab which matches the version of system software on your Mac (for example, the “Install OS X Mavericks” app, or “Install macOS Sierra” app)
  Go to the developers website here and download the latest version of Recovery Partition Creator, it’s an AppleScript that will handle the recreation of the recovery drive
  After the app has downloaded, right-click on “Recovery Partition Creator.app” and choose “Open” to bypass Gatekeeper
  Follow the onscreen instructions, and select the primary drive you want to restore a recovery partition onto (typically Macintosh HD unless you named the drive differently, or are using a separate disk)
  Make Recovery Partition on Mac
  Point to the Mac OS X installer application you downloaded in the first step and let the AppleScript do it’s work
  When the Recovery Partition Creator app is finished running, reboot the Mac and hold down Command+R to boot into Recovery and confirm the recovery partition now exists and works as intended


How do I view a webcam image on OS X 10.11

If you just want to see what your webcam is showing:

Open QuickTime Player --> File --> New Movie Recording

It will give the option to record what your webcam is seeing but you don't have to. It will show a video feed from your webcam.

As an alternative to QuickTime Player you can use VLC.  You'll have to download it from VLC's website.

Once installed:

Open VLC --> File --> Open Capture Device --> Tick Video --> Choose your camera for the drop down list --> Click Open


A posible solution is to Reset DNS Cache.

You can do it with dscacheutil -flushcache. For more info type man dscacheutil on the terminal.


Effects of Current Fluctuations on Charging

Connecting directly the solar panel to your iPhone will have negative influence on your battery.

Solar system that are design to charge the phone/GPS/what so ever, use a second battery as buffer. Do you use a system that has not one.


iMac with a dead internal drive being used as a second monitor - booting and power efficiency

What is the best way to ensure that the 2012 iMac is running at lowest
  power usage and optimal efficiency while in Target Display Mode?

Buy a monitor.

Yes, that's a little tounge-in-cheek, but to run Target Display Mode, you need boot macOS.  When you boot macOS, you're using the CPU and GPU and everything in between (you can use the volume up/down and screen brightness keys on the keyboard so you know Bluetooth is up and running).

  When it turns on, it automatically tries to boot off the dead internal
  hard drive, which makes the computer crash.

You need to set the startup volume in System Preferences >> Startup Disk

  Once it is booted, is there a way to get it to automatically enter
  target display mode when it is booted?

No.  This is not what Target Display Mode was intended for.  It was intended to be a temporary display option.  If you need something to be a monitor every time you turn it on, buy an actual monitor.

Fix your iMac

It's not economical nor efficient to to use an entire computer as just a screen. An iMac, being an AiO, doesn't change the fact it's very little different than a Mac mini with an external monitor or even a desktop PC.  It wouldn't make sense to fire up an entire desktop setup just to use Target Mode (besides the fact that it already has an external monitor you can disconnect).

You have a failed hard drive in an iMac, which is not an uncommon problem.  Replacing it is very easy and much more economical because you would be getting the full use out of your iMac once again.


2010 2.66 GHz 12 core Mac Pro not utilizing all 24 threads?

It could be as simple as the application you used to test had a resource constraint other than CPU that prevented it from saturating the CPUs. For example, perhaps handbrake was limited in how quickly it could stream data to or from disk. That would limit how much work the CPUs could be given to do. Given that your CPUs will be faster and more plentiful than the older Mac, it isn't a surprised to not saturate the CPUs with the same workload.

I/O contention is used as an example. Without analysis, I don't know what would prevent the CPUs from being the bottleneck. It could be synchronization between that many threads, I/O, a lack of work that can be done in parallel, etc.

Here is a quick test you can use to give the system independent tasks. Open terminal and run the following command. Change the 8 to double the number of CPU cores you have. (double to allow for hyper threading)

for ((g=1;g<=8;g++)); do ( dd if=/dev/zero bs=100m count=10 | bzip2 -c > /dev/null & ); done

Running that was enough to keep my CPU busy for 10-15 seconds. I have a quad core i7 macbook pro. Your CPUs may need more work, so you can change "count=10" to some larger number as well.


Midi keyboard sustains note after key is depressed

According to my research of your problem (and I do not have have your set up to confirm).

Not sure what did you do to break something else aside of the cable, but following instructions might help.

Since the Yamaha is wrongly identified as VIEWCON lets hope it is just the Driver (software)

Follow the instructions here to remedy the problem.

Pay attention to the section how to remove and reinstall. (page 7)


Harmful to never put to sleep / shut down a mac?

You can safely leave your Mac powered on all the time.

Safe and Harmless

There is no practical damage or harm that will occur because the Mac is constantly running. Use your Mac as best suits your needs.

Restarting is helpful every so often – if only to install updates and clear out caches or temporary files.

Environment

As 1lann mentions, environmental factors like dust and heat build-up should be considered. Keep your Mac away from sources of dust, like limestone or sandstone walls, where the fans can draw in surprising amounts of particulate matter.


How to prevent the "-1" suffix in network drive paths?

I have seen this happen when there is already a volume with the given name and the OS needs to create a new name to mount the volume as you can't have a duplicate name -- thus the suffix.

The first thing to do is, make sure that you don't have any other volumes with the same name. If you do, perhaps you can rename one or only use one at a time.

I've also seen some applications that use a path for an external volume will create a folder under /Volumes/ if the volume has been disconnected and the path doesn't exist. This causes the suffix the next time the volume is reconnected. To fix this you will need to disconnect the volume, remove the extraneous folder, and then reconnect the volume. It should mount without the suffix.


How can I use an existing Time Machine backup with my new computer?

I found the following solution here:

sudo tmutil associatedisk -a "/Volumes/Macintosh HD" "/Volumes/Time Machine Disk/Backups.backupdb/John Doe's MacBook/Latest/Macintosh HD"


Keyboard Shortcuts for "Compress" or "New Folder with Selection"?

For compressing i found simple solution.
I'm using OS X Yosemite 10.10.2 and It's worked for me.

Open system preferences and follow the screenshots:

--> Step1:

--> Step2:

--> Step3:

--> Step4(It's Done):

That's It.

I know it's been long time since you asked the Question but i'm posting the answers for those who are still looking for solution.


How to install Windows 8 with BootCamp 5 Assistant via USB?

This doesn't exactly answer your question but may help solve your problem: create a bootable Windows DVD from the Windows 8 setup files, as explained  here.

I did it myself some months ago when upgrading Windows XP to Windows 8, and it worked without a hitch.

You will need:

Access to a Windows computer.
oscdimg.exe, a command-line tool for creating bootable Windows ISO files. This file is part of a larger download:

For Windows XP SP2 with KB926044/2003 SP1 with KB926044/2003 SP2 you'll need the Automated Installation Kit at http://www.microsoft.com/en-us/download/details.aspx?id=10333
For Windows 8/7/2012/2008 R2/Vista/2008 you'll need the Assessment and Deployment Kit at http://www.microsoft.com/en-us/download/details.aspx?id=30652

Windows 8 setup files.

The steps are:

Download and install oscdimg.exe.
Put the Windows 8 setup files in a folder. While any name will do I found C:\WIN8AIO to be a popular choice, so I'll use it.
Open a command prompt as administrator and create the ISO image C:\WIN8DVD.ISO like this:

\path\to\oscdimg.exe -lWIN8DVD -t10/26/2012:00:00 -m -u2 -bC:\WIN8AIO\boot\etfsboot.com C:\WIN8AIO C:\WIN8DVD.ISO

For more information on oscdimg.exe and its command line options see this article at Microsoft.
Burn C:\WIN8DVD.ISO and use it with Boot Camp Assistant on your Mac.


iPhone 4S: how to set up multiple phone numbers under text messages send/receive option

This question covers the procedure you will follow to re-enroll your children's phone numbers under your new Apple ID.

On their two phones, go to settings app, tap iMessage and sign out of e old account. Sign in on your account and set their "Caller ID" for sending iMessage to be their phone number. Repeat for any/all devices that use your new Apple ID.

However, there are problems with this approach.  Just be aware that when you get your children's messages, you only get their iMessages (message sent from an Apple computer or an iOS device only). SMS from non-Apple phones still go directly to their phone without you seeing them.

Your children will receive a copy of all of your iMessages as well and they could send messages as you (but not your SMS).


Is upgrading an iMac to an SSD over USB 2/FireWire an upgrade?

There would be a major speed bump. Not as fast as having the drive on an internal SATA interface but noticably fast all the same.

I ran a four and a half year old iMac 24 inch on a Crucial M4 SSD via a Firewire 800 enclosure for about 5 months to get a major boost over the internal SATA HD.

You'll notice an immediate improvement to random read/write speeds, day-to-day things like app launch and system boot times. Sustained rates will only be as fast as the interface you pick and may not be any better than your internal drive. However since most OS and app disk activity is random this isn't too important.

With Thunderbolt available on your system a future SATA 6Gbps enclosure to Thunderbolt interface will remove the sustained transfer rate  limitation.

Avoid USB 2 as you will never reach the theoretical 60 MB/s due to USB protocol overheads. I have only ever seen a maximum of 35-40 MB/s over USB 2 hence my choice of a Firewire 800 enclosure.


How to get a "modern" emacs that runs in a terminal on os x lion?

As far as I know, every emacs under the sun can run in a terminal:

/Applications/Emacs.app/Contents/MacOS/Emacs -nw

Change the path, of course, if your emacs resides elsewhere. If this is too long to type, even with tab completion, you can create a symlink to the Emacs executable, or make an alias for your shell.

Look to http://emacsformacosx.com/ for a precompiled modern Emacs for OS X.


Is it safe to delete these 4 files in the folder called dyld (/System/Library/dyld/)?

Short answer
No, in Big Sur it's not safe to delete them (from the screenshot in your question, I see you are on Big Sur).
Long answer
In previous macOS versions (at least in macOS 10.15 Catalina, from first-hand experience), these files were located in /var/db/dyld/ and could be recreated with this command (see for example Trying to force update_dyld_shared_cache but having some errors):
sudo update_dyld_shared_cache -root / -force

but update_dyld_shared_cache is deprecated in Big Sur (running the command has as only output This tool is deprecated.).
Furthermore, the files in /System/Library/dyld/ no longer seem to be cache files in the sense that they store commonly used shared libraries (from man update_dyld_shared_cache):

When loading [an executable file], dyld will first check if is in the share cache, and if it is will use that pre-bound version instead of opening, mapping, and binding the original file. This results in significant performance improvements to launch time.

Instead, in Big Sur, the cache files contain most of the macOS libraries.
Let me expand on this: the contents of /var/db/dyld/ (Catalina and earlier macOS versions) and /System/Library/dyld/ (Big Sur) are essentially the same. They both store pairs of files: a text map file (with a .map extension) and a binary shared cache file (without extension), for example:
dyld_shared_cache_x86_64h.map
dyld_shared_cache_x86_64h

The text map file contains information about the shared cache file, and looks like this:
mapping  EX 1331MB 0x7FFF20000000 -> 0x7FFF73398000
mapping  RW  224MB 0x7FFF80000000 -> 0x7FFF8E0C6000
mapping  RO  432MB 0x7FFFC0000000 -> 0x7FFFDB0E0000

/Library/Apple/System/Library/Accounts/Notification/CloudBookmarksAccountsNotifier.bundle/Contents/MacOS/CloudBookmarksAccountsNotifier
                  __TEXT 0x7FFF20040000 -> 0x7FFF20042000
                  __DATA 0x7FFF81B6B108 -> 0x7FFF81B6B8F0
              __LINKEDIT 0x7FFFC05C0000 -> 0x7FFFD8A4A538

/System/Library/AccessibilityBundles/AXSpeechImplementation.bundle/Versions/A/AXSpeechImplementation
                  __TEXT 0x7FFF20042000 -> 0x7FFF20048000
                  __DATA 0x7FFF81B6B8F0 -> 0x7FFF81B6CF70
              __LINKEDIT 0x7FFFC05C0000 -> 0x7FFFD8A4A538

/System/Library/Accounts/Access/CloudKitAccessPlugin.bundle/Contents/MacOS/CloudKitAccessPlugin
                  __TEXT 0x7FFF20048000 -> 0x7FFF2004C000
                  __DATA 0x7FFF81B6CF70 -> 0x7FFF81B6D840
              __LINKEDIT 0x7FFFC05C0000 -> 0x7FFFD8A4A538
(...)

The format of the map file (which is unchanged in Big Sur) is pretty straighforward:

It contains a 3-line header
It contains several hundreds of entries, one for every file included in the shared cache file, that specify where relevant sections of the specified shared library can be found in the shared cache file

Prior to Big Sur, all shared libraries listed in the map file (that's 1809 in Catalina) were also located in the file system.
In Big Sur, most are not. In fact, in Big Sur 11.2.3, only 12 out of 1956 of the listed libraries can be found in the file system:
(for file in $(grep / /System/Library/dyld/dyld_shared_cache_x86_64.map); do ls $file; done) 2>&1 | grep "No such file or directory" | wc -l
1944
grep / /System/Library/dyld/dyld_shared_cache_x86_64.map | wc -l
1956

That's most probably the reason why the cache files were moved from /var/db/dyld to a SIP-protected folder, namely /System: to make it clear that you shouldn't mess around with them.
If you delete the shared cache files in /System/Library/dyld/, I'm afraid your system won't be able to boot or run.
Further reading
How to fix an extracted dyld from dyld_shared_cache_x86_64? Stack Exchange/Reverse Engineering question on extracting dylib files from the shared cache (mentions a utility named dyld_shared_cache_util from this open source project: dyld-shared-cache-big-sur)
https://www.exploit-database.net/?id=102279 Information about an exploit on how to get privilege escalation via update_dyld_shared_cache on macOS 10.14 Mojave.
https://blog.lse.epita.fr/2017/03/14/playing-with-mach-os-and-dyld.html#the-shared-cache Overview of the shared cache format on OS X 10.10 Yosemite
https://www.theiphonewiki.com/wiki/Dyld_shared_cache Shared cache differences between iOS and macOS prior to Big Sur


Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you

so the problem was Apple's after all.  they never admitted there was a problem but the latest firmware upgrade for the Time Capsule fixed the problem.  it hasn't failed to back up even once since the upgrade


You have to be very careful in this situation.
Any one of the participants in the group can have an address book entry that is wrong and send the messages incorrectly when adjusting group membership.
There is zero need for foul play here. First apply Hanlon's razor (Occam’s razor applied to people and technology) and substitute “stupidity” with “people are busy and don’t meticulously track which AppleID they use to sign in to their devices. People want to share purchases and don’t set up proper family sharing and separate their accounts between Messages and the App Store or effectively and regularly audit who logs in to their accounts.”
Compound that confusion on three to six devices per person and three to six people, and you can end up with an intractable mess when one name maps to a different AppleID that has multiple SMS and emails attached for delivery.
Back to your specific situation, are you sure the name of your sister’s children maps to a Message account or SMS number they access?


Can Apple MDM see what youtube videos I have watched?

Page 10

MDM can see:

Device name
Phone number
Serial number
Model name and number
Capacity and space available
iOS version number
Installed apps

MDM cannot see personal data such as:

Personal or work mail, calendars, contacts, SMSes or iMessages
Safari browser history
FaceTime or phone call logs
Personal reminders and notes Frequency of app use
Device location


Is there an app/solution to quickly send text snippets/links/images from Windows pc (clipboard) to your iPhone?

Modern Macs and macOS have a feature built called AirDrop which lets you push said content from a Mac directly to your iPhone. No such feature exist for Windows PCs.

There is no straightforward and native mechanism build into Windows to push Text Snippets, Links and Images from Windows PC to an iPhone. The only resort is to indirectly use an app which can be accessed on both platforms.

To keep things simple, you can login to iCloud using a Web browser on Windows PC and paste links, text snippets and images into Notes app. The pasted content can be instantly accessed in Notes app on your iPhone.

Both Windows PC and iPhone need to be connected to Internet, not necessarily to the same Wi-Fi. (both of them can be technically anywhere in the world)


Disk Utility cannot detect a good portion of my storage space

If you want find the free space, there is a third party utility that will show you were it went. This utility does not require installation or your password to use. You can find more information on this utility from the driveinfo website.

Assume your downloads go to the default download folder. You and find the free space by downloading and entering the command given below.

~/Downloads/driveinfo-1.0.3/driveinfo -r disk0

An alternative to driveinfo command would be the macOS command given below.

sudo gpt -r show /dev/disk0

To use the gpt command, you would need to disable System Integrity Protection (SIP).

If you can post the output from either of these commands, then help could be provided on how to recover the missing space.


El Captian not showing user account after creating second one

You most probably have Automatic login turned on. Try to turn it off from the same window where you set login option to name and password.


Is Firefox Private Network available in iOS

According to the webpage:

  This extension is currently available to US desktop users only.

This means that it is only available for desktop Firefox.

However, the extension is allegedly based on the same infrastructure as CloudFlare's Warp VPN service, which is currently being rolled out to the "1.1.1.1" app if you have it installed.

The Warp VPN appears to be available on iOS and in all countries.


iOS 7 Phone app interface doesn't show "Decline" button when it's asleep

Simple press the power button once to decline the call. Notification center will keep a reminder for you about the missed call.

EDIT: Pressing the power button once registers as an ignore. Pressing it twice will drop the call to voicemail.


"The iTunes library file cannot be saved. A folder was specified instead of a file." ...what?

This is a possible solution that I came across and (initially) it seems to have worked for me:

Quoted from Apple Support Communities:

  I assume the problem is gone now and here's what I did to get rid of it:

  stop iTunes
  alt-start iTunes, so it offers 'Create Library' and 'Choose Library'
  choose 'Create Library' to create a new library (iTunes 1)
  stop iTunes
  alt-start iTunes, so it offers 'Create Library' and 'Choose Library'
  choose 'Choose Library' and chose my main library, which caused me so much pain

  since then no more tmp files are left over in the iTunes folder and I hope it stays like this


iMovie is a little weird about exporting individual video clips. Here's a great workaround:

Select a clip you want to export, then copy it with Command-C.
Open another window of iMovie, and in that new window, create a new project. Paste this clip into that new project.
Then export that new project with Command-E.

Now you've got that clip alone!


Mac OS X Yosemite Facebook photo posts to OSX Album only

Photos on Facebook are classified as a album. Every album contains a bunch of pictures. You cannot post images separately to your timeline without having it part of a album.

When you try to post on facebook.com as a timeline photo, the images are put into a album called "Timeline Images".

When you post pictures from OS X from the share tab it puts the images in the OS X Photos album. You can manually select another album to post to from the toggle beside the text Timeline.


Toggle Bluetooth AppleScript not Working in Yosemite

Simple toggle on or off that does not need to check state first.

property thePane : "com.apple.preferences.bluetooth"

tell application "System Preferences"
    activate
    set the current pane to pane id thePane
    --delay 1
end tell

tell application "System Events"
    tell application process "System Preferences"
        try
            click button "Turn Bluetooth Off" of window "Bluetooth"
        on error
            click button "Turn Bluetooth On" of window "Bluetooth"
        end try
    end tell
end tell

tell application "System Preferences" to quit


Answer a phone call from iPhone screen with airpods in without disconnection from airpods

Apple assumes that wherever you answer from is where you want to hear the audio.

The fact that your AirPods are unresponsive to your taps is a separate issue (maybe Apple will address in future updates). The expected behavior is that if you want to answer on your AirPods, you'll tap on them.


Ctrl key on Microsoft keyboard does not map to Mac's command

The Control key on your PC keyboard maps to your Mac's Control key.  The Windows key on your PC keyboard maps to your Mac's Command key.
When using a PC keyboard you would use windows keyC to copy and windows keyV to paste, etc.
You can set universal keyboard shortcuts in System Preferences > Keyboard > Keyboard Shortcuts > Application Shortcuts > All Applications, you can enter menu values (Save, Copy, Paste, etc) and then assign new key combinations to them.  In the example below I've set controlC to copy and controlU to paste.


I also had problems with running out of disk space due to Time Machine/APFS local snapshots and the macOS disk purging system not working quickly enough -- I didn't find a way of disabling local snapshots, but I did find the following commands can help, if making management a little more manual.

If you want to delete all local snapshots, the following command will work -- but it's possible the next Time Machine update will take longer as it will have to work out the differences between the last Time Machine backup and the current state of the drive.

sudo tmutil deletelocalsnapshots /

If you just want to delete some local snapshots, you can try the following command, the numbers I've used are completely arbitrary, I was just trying to force it to free up some space:

 sudo tmutil thinLocalSnapshots / 1000000000 3

The first value is the purge amount (1 GB in this case) you'd like tmutil to try and reclaim, the second value is the urgency, which can be from 1 to 4.  I've no idea which is more urgent, 1 or 4, it doesn't seem to be documented.  If you use this command repeatedly it will delete more snapshots each time, until they're all deleted.


Recommended disk format for external SSD running as system drive for a 2019 iMac

Only APFS is supported for running Catalina. There may be some weird workaround for running Catalina on HFS+, but I don't know of any.


What commands can be issued to Excel for Mac from the terminal?

Excel is primarily a GUI application, there isn't much more you can do from the Terminal than using open to have it opening a file.

Excel has a little AppleScript interface you can use via osascript, but it only supports a minimal set of commands.


2009 Mac Mini HDD as an External Drive for a 2011 Mac Mini HDD

Intel Macs can boot to a USB volume, but in this case it will not work. The reason is because the new Mid 2011 macs ship with 10.7, as you mentioned. Macs ship with a minimum supported OS, and will not boot or allow installation of any OS prior to that. Therefore, a Mac that shipped with 10.7 will not boot to a 10.6 install. You'll probably be able to see in when holding option at startup, but if you select it it will likely show an Apple logo and hang there.


Using External Monitor. Want Mouse to move Up/Down, not Left/Right?

You don't need to worry about Spaces for this.  What you need to do is go into:

System Preferences --> Displays --> Arrangement

Drag the icon representing your external monitor to the top of the icon representing your macbook monitor:

You can also drag the bar representing your menubar/dock to whichever monitor you want to be your "main" display.


How to create a playlist in Quicktime Player for many files in separate subfolders?

If you create your own movie player using the QuickTime Framework it's possible to add whatever functionality you want. QuickTime Player itself does not appear to offer playlist capability on Mac OS X. Here's a few screen captures of my movie player using a playlist:


Could anybody tell me the steps to install Tomboy notes on Mac?

There is a new version in beta now, but if you want the old version to work you have to install an older version of Mono, like 2.6.7 from http://download.mono-project.com/archive/2.6.7/download/.


possible to run Dell monitors as a single monitor with a MBA 2013

The MacBook Air will require a Dual-link DVI output using Mini DisplayPort to Dual-Link DVI Adapter to connect to the two monitors (so the monitors need DVI cables/connectors) and as long as the combined resolution of the displays is no more than 2500 x 1600 then it will work as that is the max resolution of an external display with this Mac.

If the combined Max resolution of these displays is higher than 2500 x 1600 it may well support both but you won't get the maximum resolution out of the displays.


Is it safe to install a deprecated Java version?

I don’t consider java a safe tool to install period. Unless you have a very compelling reason, or some specific threat model, don’t install java if you want security in your Mac.  It’s worse to install older versions that don’t get current security patches in general.

I’d look at something like Pixelmator or Acorn or even a newer Photoshop since your photoshop won’t get security patches anymore either.

https://www.engadget.com/2013/05/14/pixelmator-and-acorn-economic-practical-image-editors/

Your mitigation steps in additional details are all solid and well reasoned and each reduces your risk to security. so I can’t say the risk wouldn’t be worth it to you once you evaluate the alternatives I’ve mentioned.

I can say, I’d choose to not use photoshop CS 5.1 and java in my case.


Numbers has some limitations when compared with Excel.

You can't reference sheets in a different Numbers file, for example.

The best you can do is to reference a cell withing the same file but on a different worksheet.  This works the same in Numbers as it does in Excel.

You can request this feature by using the Numbers Feedback form.


How to I delete a song from ITunes and re-download

You should be able to right click on the song in iTunes and "Delete" - it will then ask you if you want to delete the song from your computer as well, which you will allow. Then sync your device, which will remove the song that is on it (or just open up the music on your device and delete that individual song) - redownload the song, and put it back on your iPhone.


Binding an AppleScript to a button in OS X

You can drag and drop an AppleScript (script and application) to the Finder toolbar, which places the icon for the AppleScript in the toolbar just like any other button (though I prefer the menu bar's AppleScript menu for such things because I can have more scripts available in a smaller space). I don't think you can create a button out of nothing and bind an AppleScript to it, however.


Disable suggestions as you type on Numbers

Go to Preferences in Numbers,

and disable the

  Show suggestions when EDITING..

.

it is enabled by default.


Macs cannot format NTFS drives because they can only read NTFS formatted drives. But if you badly want to format it to Exfat you could use a windows computer to format it to Exfat or install a third party app to format you NTFS drive.


I think you're trying to set up port forwarding, to allow yourself to ssh in from outside, and changing the port to keep it slightly more secure? You don't need to change the port used internally (inside your network) - you just need to change the port used from outside of your network. Then, set up a rule that passes connections on the desired port to the internal. You would for example tell the router that incoming connections on port 1234 should be redirected inside your network to the machine at 10.0.1.123 on port 22. There are some instructions here that might help. (I don't have an AirPort but have set up port forwarding for multiple routers - the basic idea is the same for all)

Asking your computer to accept incoming ssh on another port is more complicated, and (as of El Capitan) apparently requires deactivation of SIP, which is why it may simply be easier to set the AirPort to forward to port 22 by default.


I would reset both your PRAM/NVRAM and your SMC. See below for instructions.

Reset your PRAM/NVRAM

Older Macs had what's called Parameter RAM (PRAM), newer Macs use Non-Volatile Random-Access Memory (NVRAM). It may be worth you also resetting this. Here’s how to:

Shut down your machine. Yes, a full shut down, not just logging out.
Press the power button and then press the commandoptionpr keys. You have to make sure you press these keys before the gray screen appears or it won’t work.
Hold those keys down until your Mac reboots again and you here the startup chime.
Let go of the keys and let your Mac reboot normally.

Note: When you log back in you may need to readjust some of your system preferences (e.g. mouse speed, time and date/timezone, etc).

Reset the SMC

Your computer's System Management Controller (SMC) can also be reset. The instructions for doing this on an iMac are:

Shut down your computer
Unplug it from the power
Press and hold the power button for 5 seconds
Plug it back in and turn it on.


The Trash contains files from different volumes. Try running…

rm -rfv /Volumes/BOOTCAMP/.Trashes/*

Depending on drive permissions, this may have to be run using sudo.


That's perfectly normal. The wheel group is a default group and basically means the group of people who are allowed to use sudo or su to become root.


How to stream music from a Mac to an iOS device?

Airfoil from Rogue Amoeba can stream audio from the Mac to many other devices, including iOS. It will capture any audio running on your system, either from a specific input (e.g. Mic), application, or the entire system audio.

  Airfoil Speakers Touch

  Airfoil Speakers Touch runs on iPhones, iPods
  Touch, and iPads running iOS 4.0 or higher. Use it to send audio to
  your iOS device when connected to your local network! Airfoil Speakers
  Touch works exclusively with Airfoil for Mac and Airfoil for Windows.


iPod touch 3rd-gen won't play videos in Safari

THat circle with a line cross through it means that the format is not supported on the iPod Touch, or any other iOS device.

It is usually related to flash video's.
If you are looking at a youtube video go check out m.youtube.com. It should load most videos to play just fine.

However if the source of your video is not a youtube (or other big site) then you may be out of luck.


Is there a way to reroute files downloaded from a specific domain to a new folder?

I haven't used it myself, but I've heard good things about Hazel. From their website:

  Hazel watches whatever folders you tell it to, automatically organizing your files according to the rules you create. Have Hazel move files around based on name, date, type, what site it came from and much more.


MacBook not asking for password after sleep

Not sure if you set it in the correct place, but the setting should be at:

  Choose Apple menu > System Preferences, click Security & Privacy, then click General.
  Select “Require password… after sleep or screen saver begins.”
  Click the pop-up menu and choose the time that passes before a password is required.

Source: OS X Yosemite: Require a password after waking your Mac


Does taking a screen capture and screen recording on the iPhone X include the "extra 2 small regions (notches)" at the top?

The screenshot will include whatever is supposed to be there.

For example if you're on your home screen it will show the part of your wallpaper you cannot physically see when looking at the device.

If you're watching a video horizontally on YouTube for example, it will show whatever is supposed to be displayed in the notch too.

While watching videos horizontally you actually lose out on what is supposed to be displayed in the notch, rather than scaling the video size down to accommodate what would be a smaller res video.
If something vital was displayed in the non-visible notch part of the video, you could take a screenshot of the frame, view the part you needed, then delete the screenshot without saving it for example.

You can see an example of a screenshot on an iPhone X here.


Backup entire mac hard drive to a usb drive and later restore

If I'm understanding you correctly you want to backup the MacBook before you use it, then restore it a few months later so that anything you do over the next few months is wiped out and you can return it to your friend in the same condition you received it.

If this was me, what I'd do is just create a new dust2098 account for myself in the "Users & Groups" panel of System Preferences, and log into that account for the next few months and then before giving the MacBook back, log into your friend's account and delete that new dust2098 account I'd created for myself.

I'm assuming you are coming from a Windows background. Macs are quite different from Windows and don't accumulate quite as much cruft as they are being used. For example, where application store their settings in the Registry in Windows, they are stored in individual plist files within your own account on a Mac. Also where random applications will regularly try to install or make changes to the c:\Windows folder (less so in more recent versions of Windows), on a Mac the /System folder and other critical locations are locked down by the System Integrity Protection (SIP) feature.


How to configure Automator to log into a website, each time generating a new random UID and email address?

Try running a script like this in AppleScript Editor:

do shell script "jot -r -c 24 a z | rs -g 0 8"
tell result to set {user, mail} to {paragraph 1, paragraph 2 & "@" & paragraph 3 & ".com"}

open location "https://accounts.google.com/ServiceLogin"
delay 1
tell application "Safari" to tell document 1
    do JavaScript "document.getElementById('Email').value = '" & mail & "'
    document.getElementById('Passwd').value = 'password'
    document.querySelectorAll('#gaia_loginform input[type=submit]')[0].click()"
end tell

For Chrome, replace document 1 with active tab of window 1 and do JavaScript with execute javascript.


No,
Mountain Lion only boots using a 64-bit kernel which does not support loading 32-bit kernel extensions.
via Arstechnica


Does iPhoto need to be open in order to download Photo Stream photos?

iPhoto doesn't have to be open. There's a background process running called iCloud Photos in Mavericks that runs as a system daemon that's taking care of bringing down your Photostream photos.

The photos are downloaded to ~/Library/Application Support/iLifeAssetManagement/assets/sub on your Mac. You can press Cmd-Shift-G in Finder and enter that path to browse the location. You'll see a lot of funny named sub-directories and in them: your Photostream photos. I don't recommend messing with this structure though.

What doesn't happen without iPhoto running is your photos getting imported in to iPhoto and organized in to events. So when you open iPhoto it's discovering new Photostream photos that have downloaded since the last time it ran and then importing those photos to bring them in to your iPhoto library. This is where the delay is coming from.

If you just want to view your Photostream without having to endure iPhoto you can try MyPhotostream which gives you a simple, read-only way to see your Photostream photos without having to launch iPhoto. It doesn't make iPhoto any faster on start, but if you need to get at your Photostream photos often it can make the process a little less cumbersome.


Keyboard shortcut for stopping and restarting a command line application

You mean in a single keystroke?  No.

Depending on whether the daemon supports restarting itself/reloading its configuration, you might be able to restart it with a HUP, e.g.

sudo killall -HUP httpd

but A. that's not a keystroke, and B. it requires the daemon to have code to support doing that.


How can I script moving files up one directory level with Terminal (or BBEdit worksheet)

This is untested: remove the echo if it looks right:
find ./Export -name '*.jpg' -print0 |
  xargs -0 sh -c 'for file; do echo mv "$file" "${file%/*}"/..; done' sh

The odd-looking trailing sh is required because it gets set as $0 in the shell body, so the rest of the arguments fed to it by xargs can be easily iterated.
This will leave the empty directories. To list empty directories:
find . -type d -empty -print

To delete empty directories:
find . -type d -empty -print -delete

To not rely on the file extension:
find ./Export -type f -print0 |
  xargs -0 sh -c '
    for file; do
      case "$(file "$file")" in
        *"JPEG image data"*) echo mv "$file" "${file%/*}"/..;;
      esac
    done
  ' sh


Identify iPad generation by box pictures

That's an iPad 4 box. You can tell it by the ios5 wallapaper. The ipad 2 has a iOS 4 wallpaper.

Your 3rd point is true : Only the iPad 3 have the iCloud logo.
Your 4th point if false. iPad 2 have also a silver Apple logo on their boxes.


One solutios is to edit /etc/hosts file and add:

127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 media.fastclick.net
127.0.0.1 cpxinteractive.com
127.0.0.1 adserving.cpxinteractive.com

If you know more addresses let me know.


Frontmost USB port stopped working properly on a MacBook Pro 13" Late 2011

Just reset PRAM and it will start working again. It has done it for me many times.


First Aid found corruption for repair but First Aid from Recovery did not solve the issue

When repeated attempts to repair the filesystem fail, your next step is to back up all the files that you need and erase the partition.

Set up a new filesystem and then re-test the repair in recovery. If that fails - your hardware needs repair. If that succeeds with a clean check - you can set up a new account and/or restore from backup.

Live repair is not to be trusted, but live errors are of concern. I would try a verify in live mode to be sure you have issues before going to the erase / re-partition step as that can take some time so you'd rather be sure before starting down that path.


iCloud Drive taking up space on local drive?

No, I don't believe this can be done. This is how the service works - copies of everything in the drive is copied to all devices that have the drive enabled.

You can choose to disable iCloud drive entirely, but you can't pick and choose what files arrive on which device.

Other cloud storage service like Dropbox and Google Drive behave in this way as well.


Why can't I add artwork to my music in iTunes?

One reason the Add Artwork button can be grayed out when selecting a song in iTunes and then Get Info, is the file does not have write permissions set.

Select the song in iTunes and then right-click it, then select Show in Finder.

In Finder select the file and then right-click it, then select Get Info.

Under the Sharing & Permissions: does it show Read only for you?  If yes change the permissions so you have Read & Write permissions.

The image below shows Add Artwork grayed out when the file permissions are set to Read only.

The image below shows Add Artwork active when the file permissions are set to Read & Write.

If it shows Read only for you, then click the Lock icon on the Get Info sheet and enter your password and then click the arrow next to the permission for Your Name (Me) and select Read & Write, then click the Lock icon.

Another reason can be the file type is not one that supports manually embedding artwork, such as a .wav file. That said, artwork should be able to be added through the iTunes Store which will save it separately if it's not a file type that supports embedded art work.


To upgrade from 10.8.5 to 10.9 or 10.10 you had to "purchase" Mavericks or Yosemite in the Apple App Store previously. Purchase is overstated because it was free then. After launching the final El Capitan 10.11.0 in the public the possibility to get the former systems in the store is gone if they don't populate your purchase list.

The Combo Updaters only update a system to a later or the latest point release:

10.9.1 -> 10.9.5 or
10.0.0 -> 10.10.5


Can I delete the .dmg files on my Mac once I install the app?

Yes.
You can safely delete .dmg files.
A disk image file (.dmg) is simply an easy, portable structure to transfer an app to you without falling afoul of any internet 'oddities' such as compression, splitting etc. So long as the .dmg arrives intact [& it is self-checking in this regard] then you can be sure it arrived "as sent" & can copy it to your Applications folder. Once you have done that, the .dmg itself is no longer required & can just be deleted.
The only two reasons to keep them would be for:

archival purposes - just in case the original becomes unavailable for any reason & you might one day need to reinstall on a new Mac (if you have it backed up to Time Machine you can delete it sooner of course).
Incomplete installation - some people run apps out of a DMG and don’t install the app drag and drop. In this case, put the dmg in the trash but don’t empty it. Reboot and if you can run the app, it’s safe to empty the trash.


stdlib.h file not found and macOS SDK package installer also not found

Apple has an installer for C++ libraries you can install.

xcode-select --install

If you have Xcode installed (or don't mind downloading it from the App Store) run it to validate all the command line tools are installed as well as additional tools. Lastly, once these are installed, check for normal software updates to ensure the command line updates are applied.

You might need to look at the output of the build script to see if you just need to reset the default location of the compile tools:

xcode-select --reset


OS X Terminal displaying ö when typing |

It probably has something to do with the "Automatically switch to a document's input source" option in System Preferences -> Keyboard -> Input Sources, which allows you to have different output sources for different applications/tabs/documents. Simply uncheck that to only use one keyboard layout for all applications


Why are iPhone X photos higher quality than iPhone 7?

In addition to the answer offered by Nimesh, there's also the issue of how you compared the photos.

My assumption is that you were just checking them out on your iPhones, and this probably explains a lot of what you noticed because the display on an iPhone X is leaps and bounds above that used in an iPhone 7. More specifically:

the iPhone 7 incorporates a Retina HD LED-backlit LCD display with a resolution of 1334 x 750 pixels
the iPhone X uses a Super Retina HD OLED display with a resolution of 2436 x 1125 pixels

Not only is the iPhone X's resolution much higher, but it uses an OLED screen as opposed to an LCD one. Photos viewed on this will appear to look significantly better than those displayed on an LCD.

In other words, while the iPhone X is definitely taking better photos, how much better they're looking is exaggerated if you're viewing them on an OLED display, as opposed to viewing the photos on the same display.

So, for a valid comparison you'd need to view the photos from both devices on the same display (e.g. on the same computer) to get a better sense of how much difference there was in the quality.


Routing traffic back and forth through a Mac mini server with 2 network interfaces

It should be possible to create a bridge with en0 and en2 and enable net.inet.ip.forwarding to get rid of all routing problems. The bridge acts more or less as another switch between en0 and en2.

Disable Internet Sharing
remove the gateway in the en2 settings of the Mac mini and change the IP-address to an available one in 192.168.88.0/24 (e.g. 192.168.88.11)
remove all additional static routes
Check for bridge interfaces with ifconfig
On the server create a file bridge:

sudo mkdir -p /usr/local/bin/ #only if the folder is missing
sudo nano /usr/local/bin/bridge

with the content

#!/bin/bash

sysctl -w net.inet.ip.forwarding=1
ifconfig bridge create
ifconfig bridge0 addm en0 addm en2 up #use the first available bridge number here and the proper interface device names

enter sudo chmod +x nano /usr/local/bin/bridge
Create a launch daemon usr.bridge.plist:

sudo nano /Library/LaunchDaemons/usr.bridge.plist

with the content

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>usr.bridge</string>
    <key>ProgramArguments</key>
    <array>
        <string>/bin/sh</string>
        <string>-c</string>
        <string>/usr/local/bin/bridge</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/tmp/usr.bridge.err</string>
    <key>StandardOutPath</key>
    <string>/tmp/usr.bridge.out</string>
</dict>
</plist>

Load the plist

sudo launchctl load /Library/LaunchDaemons/usr.bridge.plist

Change the IP-addresses of node_1 and node_10 to available ones in 192.168.88.0/24 (e.g. 192.168.88.101 and 192.168.88.110). Change their default gateways to 192.168.88.1 and the DNS server to 192.168.88.10.


How to buy and/or download OS X Server 4

I would suggest trying to purchase Server 3.2.2 if you did not already have that since running Mavericks. Then look under purchases and if you can see the option to install macOS Server do that. On Yosemite it will ask you to install the latest compatible version Server 5.0.15. (I just installed Yosemite 10.10.5 and Server 5.0.15 on it). Server 4 however seems gone forever.

Reference:
https://support.apple.com/en-us/HT203137


How can I see all formulae available in a specific tap using Brew?

From this Stack Overflow article:

List of formulae in a tap can be found by running brew tap-info $TAP --json
To turn this into a proper readable format we can run brew tap-info $TAP --json | jq -r '.[]|(.cask_tokens[])'
Example: To find all formulae in homebrew/cask-fonts we can do: brew tap-info homebrew/cask-fonts --json | jq -r '.[]|(.cask_tokens[])'

Break down of the command:

brew tap-info homebrew/cask-fonts --json lists JSON info of the taps and some other stuff (output)
jq -r '.[] removes the outside square bracket (output)
|(.cask_tokens[])' gets the JSON value of the key cask_tokens

TL;DR: Running brew tap-info <tap-here> --json | jq -r '.[]|(.cask_tokens[])' will give you the formulae from that tap.
Note If this fails to list all try running brew tap-info <tap-here> --json | jq -r '.[]|(.formula_names[],.cask_tokens[])'


How can I see where Photos.app thinks the System Photo Library is?

In Photos if you go to preferences (⌘ + ,) under General there are some library location settings:

In order to find out where System Photo Library is and to change it just hold ⌥ while opening Photos. You will be presented window with needed controls:

Refer to Apple documentation for needed steps: Designate a System Photo Library in Photos


Cannot reject a binary on the new iTunesConnect UI

If you cannot reject an app after a day or two of trying, the best thing would be a call to Apple Developer support.

https://developer.apple.com/support/


MacBook Air Early 2015 SSD > MacBook Pro Early 2013?

Have you tried reverting to the original macOS that was shipped with this system? If you can reproduce the same behavior with Mavericks/Yosemite then you could very well confirm that this behavior is rooted in an SSD failure vs file system issue.

This blog post lists a number of issues as to why Mojave cannot find your hard disk, I would perform a systematic check before trying to swap out the hard disk.


OSX Mail how to mark message as not junk

It seems iCloud is marking the message as junk using its algorithm. I don't believe you can adjust this from within the Mail.app. You will need to log into iCloud.com, enter Mail, find the particular message in your Junk Mail folder and then with the message selected, select the gear menu and you should be able to Mark as Not Junk.

To recap, as iCloud is flagging message as junk you must unflag message within iCloud.


How do I send C-/ (that is, control-slash) to the terminal?

Control-/ is not a part of the set of standard control codes. It is not directly representable as a keystroke in many terminal emulations. Such a keystroke is only properly detectable in certain platform-specific “scancode modes” or “GUI mode” (where the API tells you exactly which keys and modifiers are being used). Your terminal emulator is beeping because it is effectively an invalid keystroke.

The standard control codes only cover “Control” versions of

@ A–Z [\]^_ (ASCII 0 - 31), and
? (ASCII 127)

In most terminal emulator programs running with most US key layouts you may need to press Shift to generate some of the “Control codes”:

C-@ is ControlShift2 (since @ is Shift2)
C-^ is ControlShift6 (since ^ is Shift6)
C-_ is ControlShift- (since _ is Shift-)
However, C-? may not always be ControlShift/ (since ? is Shift/); C-? is usually generated by either Backspace (on Apple keyboards, the key labeled just “delete” without the additional symbol ⌦) or Delete (the one with ⌦ on Apple keyboards).

In tty-based Emacs, you can usually use C-_ for undo instead of C-/.


MacBook Air: Close lid and lock features

No. What you want is not possible.

When the screen is closed the behavior is the same to the user as if it went into sleep from another reason such as pressing the power button. There isn't any way to have closing screen sleep (called clamshell sleep) set to have a different effect than any other kind of sleep through user-accessible preferences. If you have your mac set to require a password after waking in the security preferences then the mac will ask in both cases upon waking.

However, the mac internally codes the reasons for sleep differently. So the computer can tell clamshell from idle sleep, and also can tell if the mac went to sleep for another reason such as power button press, low power or high temperature. Therefore it is possible that a third party hack can use these codes to enable different behavior. I could not find one, though.

When the mac wakes up there are similar codes generated by the OS so that it knows if the computer was woken by opening the clamshell, wiggling the mouse, pressing the power button, waking for network access and so on. This seems to create another opening for a third party solution.


How to remove EPSON Projector Audio driver?

Go to /Library/Extensions and delete the "EPSONProjectorAudio.kext" kernel extension. The pesky EPSON Projector Audio driver should be gone after reboot.

(If you can't see the Library folder on your hard drive, try Finder > Go > Go to folder… and paste /Library/Extensions)


How to make bluetooth headphones and keyboard play nicely?

What if you go away from Wi-Fi noise? The 39 bluetooth channels are splattered by the same spectrum as Wi-Fi - particularly the >=300Mbit/s 802.11n stuff and later will trip you up. It is definitely not bluetooth noise, however, as it runs the gamut from 1mW to 20mW, with most devices using 5-10mW.

Resetting PRAM will not help you.

I have used several discreet bluetooth dongles to each handle bluetooth connections. With my macbook pro, bluetooth was weak, despite not being behind alu-casing (IIRC its antenna is at the top of the screen), so I used a few in USB ports. Problem went away forever.


iPhone 6 & iOS 9 - ad hoc app will not install

I've been working with this problem the whole day now and I've cleared few things up. First, ad-hoc deployment method is not what I'm actually looking for, in my case correct method is enterprise deployment. I'll get back to it later.

I think my problem was in provisioning profiles, because when I added iPhone 6 to devices list (in apple developer center) and included it in provisioning profile, the app installs just fine. Although, when I disabled iPad from devices list it still worked, weird.

I needed to distribute the app outside of the App Store but I wasn't really sure what deployment method to use. Now I think I finally made some sense in them.

Ad-hoc deployment

meant to use for testing and in-house apps
distributed outside the app store
devices on which the app is used must be added to devices list in apple developer center and selected in provisioning profile
maximum of 100 devices

Enterprise deployment

meant for in-house, private apps (eg. intranet)
distributed outside the app store
unlimited devices

Difference between them is that ad-hoc is available for everyone while enterprise is only available to developer or team which is under enterprise account. Enterprise should be registered by the company which will be using the private app (eg. intranet app) and add developer (or agency) under it. This way they don't depend on each other and can keep finances separate.

I'm sure I've still misunderstood something, so if you find any incorrect information here, please do tell.


Is there an iPhone dock with a headset jack?

I wonder what is that for, if it's to connect to a stereo, the jack on the Universal Dock is more than enough.

If the idea is to use the phone to answer calls while in the dock, I would strongly suggest a Bluetooth set as that's what they are made for. You will find plenty on the Apple Store as well.


iPad 1st generation, using as full screen browser (kiosk mode)

Yes, there's a possibility of full screen mode by adding the web site to the Home Screen.

You do that by opening the web site in the Safari browser. Then click the "arrow out of the box" icon just to left of the address line. In the menu that pops up, click "Add to Home Screen".

Now'll you see an icon on the home screen for the web site. Click that and it should open up in full screen!

If it opens up, but still showing the bar at the top, you might need to add the following meta tag to your web site's code:

<meta name="apple-mobile-web-app-capable" content="yes">


I believe this is all possible. In my answer on TeX.SE, I give the MathUnicode.keylayout file that I made. Essentially, my advice is: go ahead and play around with this file.

A couple of thoughts:

The XML specification for .keylayout files is available from Apple.
On line 22 you can see that I refer to the anyOption modifier. This refers to the left or right option key. But you can also write option or rightOption if you wish to distinguish between the two.
I'm not sure whether caps can be treated as a "hold down" key, as you want it, rather than a "press on / press off" key.


How to change the password of a local admin user that has never being logged in using a bash script

I would just make new accounts with the credentials you need and worry about deleting the broken ones later.

https://www.jamf.com/jamf-nation/discussions/6438/best-way-to-create-hidden-admin-account

If your MDM is JAMF, use their tool to automate hidden admin account creation and push the script out. If not, look for the github / Mac App Store tool CreateUserPkg

https://itunes.apple.com/us/app/createuserpkg/id540673598?mt=12
http://magervalp.github.io/CreateUserPkg/

I wouldn’t reinvent the wheel here and instead, stand on the shoulders of these giants above.


Is it possible to install App in iPhone directly without iTunes or Appstore?

It's been possible to install (or 'sideload') apps onto iOS devices without a jailbreak or iTunes (though iTunes may need to be installed) for a year or two now. There's a few applications (e.g. Saurik's Impactor, CopyTrans, Appandora) around to do this, and one can also use Xcode (see here).

This is something that will be of inccreasing interest now since Apple has recently removed the app store from iTunes 12.7, although it seems that Apple says it will still be possible to use iTunes to transfer apps.


How can I play local multiplayer games on Apple TV

I've reached out to Vector Unit Support. Here is what they had to say:

  Currently you need any combination of up to 1 Siri remote and up to 3
  MFi gamepads. You can't use the iPhone or iPad as a second controller
  at this time.

I would note that it is possible to use an iPhone as remote, using the Apple TV Remote app, but that will go instead of the Siri remote.

I will also add that the scenario of coupling a Siri remote with an iPhone controller is possible in Crossy Road, but not using the Apple TV Remote app. Instead they've created a feature inside their iPhone app that allows the iPhone to control a player in the TV app.

And finally, it seems the answer to the limitation of two MFi game controllers has been lifted by Apple at some point after the above statement was made back in 2015.


Use USB webcam instead of built in FaceTime webcam

You could give CamTwist a try. It lets you take video inputs and remap them to virtual video sources that most apps can access.

I’ve used it to remap a Firewire video camera connected to my laptop (via a Firewire to Thunderbolt connector) as my main video chat camera when doing a google hangout. It also let me overlay graphics into the camera video before sending it out to google.


Massive Amount of Random Files appearing in Documents

This looks like an application is using that directory as a location for storing cached items. Typically you'll see this type of directory structure when caching files on a filesystem. It helps to optimize performance when read/writing the files to the filesystem and standardizes the interaction for the application that's doing it. Hence the regularity to the naming structure.

You could try analyzing what files all your applications have open to see if you can identify who the offending application is. To do this type of analysis you can use the UNIX CLI tool called lsof.

$ sudo lsof | grep '/Documents/'

Example

$ sudo lsof | grep '/Documents/'
DiskSpace  6071        joeuser    3r      REG                1,5     106496 11534741 /Users/joeuser/Library/Containers/com.apple.iBooksX/Data/Documents/BKLibrary/BKLibrary-1-091020131601.sqlite
DiskSpace  6071        joeuser    4r      REG                1,5     762232 11534745 /Users/joeuser/Library/Containers/com.apple.iBooksX/Data/Documents/BKLibrary/BKLibrary-1-091020131601.sqlite-wal
DiskSpace  6071        joeuser    5r      REG                1,5      32768 11534746 /Users/joeuser/Library/Containers/com.apple.iBooksX/Data/Documents/BKLibrary/BKLibrary-1-091020131601.sqlite-shm

These items that lsof found aren't offending applications, these simply happened to have the string /Documents/ in their paths. But are still examples of how lsof can identify files that processes have open.

In this made up scenario, the process that's using these files is this process:

$ pgrep -fl DiskSpace
6071 /Applications/Books.app/Contents/PlugIns/DiskSpaceEfficiency.appex/Contents/MacOS/DiskSpaceEfficiency

So this process, DiskSpace is utilizing files which happen to have /Documents/ in their location on the filesystem.

NOTE: You should be able to adapt this same method to troubleshoot what process is using the /Documents/ on your system.

How to fix it?

If it truly is Safari that's putting these files here then I'd direct my attention to setting pertaining to Safari that dictate where it should be putting its cached files. It's likely that one of these settings has been accidentally changed so that Safari is now writing its cached files into your /Documents/ directory.

Safari typically points to these directories as described in this AD Q&A: Which folder can I find cache files for Safari?.