Most probably you did not do anything harmful. It would be easier to tell if you can remember which CPAN commands, you've entered.

It is perfectly normal that the first run of CPAN creates the directories mentioned, downloads various files containing package indexes, etc. It potentially also updates various packages that forms the basis of CPAN itself, as well as packages that are depended on by the Lchown package, you're trying to install.

All in all - you're most probably completely fine.


Commands not found in Terminal except echo

The issue is that your PATH is messed up. The reason why echo works is because it is a builtin command in the shell so the shell does not use your path to find the executable.

You need to see what script file had an export PATH in it which set it to “users/ZILLURRAHMAN/desktop/bioinformatics/bow-tie/bowtie2-2.2.3/BT2_HOME:?? which has many error in it.

The usual files are ~/.profile ~/.bashrc or ~/.bash_profile for more see many question on bash


How to set VirtualBox in order to access external hard drives in guest Win7?

Once I ejected the hard drive from mac os, it was instantly recognized by the guest windows virtual machine.


You could make new CFBundleDocumentTypes entries in  /Applications/TextWrangler.app/Contents/Info.plist. Many extensions are currently defined under a single entry with the CFBundleTypeName TextWrangler text document:

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeExtensions</key>
        <array>
            <string>a</string>
            <string>as</string>
            <string>asm</string>
            <string>asp</string>
            <string>bashrc</string>
            <string>c</string>
            <string>c++</string>
            <string>cc</string>
            <string>cfm</string>
            <string>conf</string>
            <string>cp</string>
            <string>cpp</string>
            <string>cshrc</string>
            <string>css</string>
            <string>cxx</string>
            <string>equ</string>
            <string>erb</string>
            <string>f</string>
            <string>f77</string>
            <string>for</string>
            <string>ftn</string>
            <string>h</string>
            <string>h++</string>
            <string>hpp</string>
            <string>htm</string>
            <string>html</string>
            <string>inc</string>
            <string>j</string>
            <string>java</string>
            <string>js</string>
            <string>json</string>
            <string>jsp</string>
            <string>log</string>
            <string>m</string>
            <string>mm</string>
            <string>p</string>
            <string>pas</string>
            <string>pch</string>
            <string>pch++</string>
            <string>php</string>
            <string>php3</string>
            <string>pl</string>
            <string>plist</string>
            <string>plx</string>
            <string>pm</string>
            <string>ppu</string>
            <string>profile</string>
            <string>r</string>
            <string>rb</string>
            <string>rez</string>
            <string>rhtml</string>
            <string>rss</string>
            <string>s</string>
            <string>sql</string>
            <string>shtm</string>
            <string>shtml</string>
            <string>tcl</string>
            <string>tcshrc</string>
            <string>text</string>
            <string>txt</string>
            <string>wml</string>
            <string>xhtml</string>
            <string>xml</string>
            <string>xsl</string>
            <string>xslt</string>
            <string>yaml</string>
        </array>
        <key>CFBundleTypeIconFile</key>
        <string>TextWranglerTextDoc.icns</string>
        <key>CFBundleTypeName</key>
        <string>TextWrangler text document</string>
        <key>CFBundleTypeOSTypes</key>
        <array>
            <string>TEXT</string>
        </array>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
    </dict>

As usual, making changes inside the bundle invalidates the code signature. A new certificate can be assigned with codesign -f -s - /Applications/TextWrangler.app.


You can try one of the many utilities for removing applications.

For example the free AppCleaner.


Unix commands to overrun OS X Finder shortcut cmd-opt-esc

To get this to work you have to use a third party tool: Karabiner.

In the example below the key combination cmdoptesc darkens the monitor.

Download, install and open Karabiner
Open in the menulet Karabiner -> Preferences
Open the tab Misc & Uninstall
Hit the button Open private.xml
Open the file private.xml with an appropriate editor
Enter the customized keycode

<?xml version="1.0"?>
<root>
    <item>
        <name>Disable Command Option Escape</name>
        <identifier>disable_cmd_alt_esc</identifier>
        <autogen>__KeyToKey__ KeyCode::ESCAPE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, ConsumerKeyCode::BRIGHTNESS_DOWN</autogen>
   </item>
</root>

Save the file
Open in the menulet Karabiner -> Preferences the tab Change Key
Hit the ReloadXML button
Enable the remapping. It should be listed at the beginning.

You may refine the customized key code by adding a shortcut to brighten the monitor again to avoid a totally darkened screen and a helpless student sitting in front of it - unable to continue the test:

<?xml version="1.0"?>
<root>
    <item>
        <name>Disable Command Option Escape</name>
        <identifier>disable_cmd_alt_esc</identifier>
        <autogen>__KeyToKey__ KeyCode::ESCAPE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION, ModifierFlag::COMMAND_L, ConsumerKeyCode::BRIGHTNESS_DOWN</autogen>
        <autogen>__KeyToKey__ KeyCode::ESCAPE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION, ModifierFlag::COMMAND_R, ConsumerKeyCode::BRIGHTNESS_UP</autogen>
   </item>
</root>

In the first configuration each key combination (cmd_l/ralt_l/resc) darkens the screen. In the second configuration cmd_lalt_l/resc darkens and cmd_ralt_l/resc brightens the screen.

Karabiner also allows you to define application-only key codes. By adding your app to /Applications/Karabiner.app/Contents/Resources/appdef.xml or to private.xml you can restrict the customized key code to your app's realm. Below the <identifier> tag you have to add a line <only>Your_App's_Name</only> then.

Depending on your app you probably have to disable some other shortcuts too: e.g. cmdQ. Additionally you may have to hide Karabiner in the menubar.


studentd manages the Apple Classroom experience for students and teachers that use MDM and the Apple School Manager service.

https://support.apple.com/guide/classroom/classroom-infrastructure-requirements-classes-apdd491bf924/mac
https://school.apple.com

The manual page also says it is designed to run without classes configured, so I would allow the traffic so that it knows you aren’t needing management and then sits idle.

https://eclecticlight.co/2019/07/24/studentd-and-its-self-signed-certificate-are-permanent-fixtures-in-mojave/

Unless there’s a resource issue, you have thousands of processes that run, self configure and then sleep or wait for a task. Blocking the traffic might make the daemon keep trying to connect and finish it’s run-once (or perhaps a regular check in) setup process.

On a larger stage, this design is how Unix and all of the Apple os work. They design small hardened daemons to serve narrow purposes, and often make a user account to run these behind the scenes to isolate permissions and sandbox everything cleanly. For us using the OS, I only try to manage these processes if there is a resource or usage issue.
In your case, this process will connect to very specific servers, so you can know it’s talking to Apple or to your MDM server in all likelihood. We would need details to dig into that deeper.


Is it technically possible to install Android on an iPhone X?

No its not, iOS is locked to the iPhone software.


Can't find or use San Francisco in apps like Sketch

Initially, you had to have a developer account. Now anyone can download the font at https://developer.apple.com/fonts/ and install them on your system (using the font book app).

Now Sketch is satisfied and it won't give you any warnings about the missing San Francisco font.


Winclone is the OS X software to backup and restore the Windows OS on a BootCamp partition.  http://twocanoes.com/winclone/

It lets you escape Apple's restriction to only have two OS partitions on a drive. You still might have to delete bootcamp, but you can then restore it in working form after you've re-done the boot drive partitioning to your liking.

Also see this question for core storage complications:

Can't reduce size of OSX partition in bootcamp


Possible to have separate shortcuts for different text-to-speech voices?

While I couldn't find a way to assign keyboard shortcut directly, an acceptable solution turned out to be much simpler than one might think.

Create a new Service in Automator. By default it takes selected text in any Application and lets you to do something to it. Choose Speak Text from the Text category and select any active voice from the drop-down. Now save the new Service under some descriptive name and you will be able to assign a desired keyboard shortcut to it from: Preferences > Keyboard > Shortcuts > Services > Text > "Name of the Service".

Done.


Which keyboard can plug into an iPhone 5s?

Both options are possible.

1) You can get for example the "Logitech Wired Keyboard for iPad with Lightning Connector" 1 or the "Griffin Wired Keyboard" 2 with Lightning connector.

2) The Lightning to USB Camera Adapter will work for most, if not all, USB keyboards - even though it says it is intended for cameras.


Safest way to activate a "backup" iPhone, to be kept on a lower version of iOS

Don't worry , you can use the SIM card to activate the iPhone SE.

You can always make backup copies, regardless of the iOS version you have. An important fact is that in order to restore an old version, the version you are going to restore must still be signed by Apple. Normally they leave the 2 most recent versions available, in these moments iOS 12.2 and iOS 12.1.5.

You do not have to worry, they will not remove the Jailbreak or anything like that by activating another iPhone.


Unable to set DYLD_FALLBACK_LIBRARY_PATH in shell on OSX 10.11.1

This is System Integrity Protection introduced in El Capitan

Documentation is in this from Apple

Basically any Apple supplied OS X executables are protected. and (from an earlier document)

  Spawning children processes of processes restricted by System Integrity Protection, such as by launching a helper process in a bundle with NSTask or calling the exec(2) command, resets the Mach special ports of that child process. Any dynamic linker (dyld) environment variables, such as DYLD_LIBRARY_PATH, are purged when launching protected processes.

In this case sh is protected


Automatically move files when inserting SD card?

From this question on SuperUser, try MarcoPolo

Or, you could use folder actions.

From this tutorial:

  Go to File > Save As Plug-in.
  Choose Folder Action from the pop-up menu.
  In the Attach to Folder pop-up, select Other…
  In the resultant open dialog, hit cmnd-shift-g. This will bring up a small sheet labeled Go to the folder:.
  In this sheet, type /Volumes/, and hit the Go button, then hit Open.
  Hit the Save button in the Plug-in sheet.


iMac with 8GB RAM -- memory always almost full

Because OSX manages memory (as does Windows) it is often difficult to tell if performance issues are caused by memory limits. Technically, you really want the OS to capture all the available memory and allocate as needed, in which case, you would see all of the memory being 'used', even though there may be memory available but not allocated by the OS.

This is somewhat analogous to what is happening in OSX and Win7+. However, Apple has made it confusing in the past with many memory classifications, like Wired, Swap, Real, etc.

Luckily, you are running Mavericks, and a new feature of Mavericks is the Memory Pressure graph, described in the Apple support document here: http://support.apple.com/kb/HT5890

Basically, if the memory graph shows Red, you need more RAM, if its Green, you are good. I suggest reading the article for more details, but the Red, Yellow, Green is a great visual tool to help guide where you might be seeing problems.

Depending on your model, I have personally found Macs suffer more from hard drive access speed than memory limits, so an SSD, if your iMac does not have one, has a huge impact (and unfortunately quite a bit of work to put into your iMac)


Software Update command (on Mac) not listing all the updates

softwareupdate only handles updates to the OS and bundled software, not purchased (/free) apps. The distinction isn't always obvious; the clearest way I have to describe it is that if an app is tied to (/owned by) a particular Apple ID, then softwareupdate won't handle it. Safari and iTunes are examples of apps that just come with the OS, therefore aren't owned by any specific Apple ID, and therefore are handled by softwareupdate. On the other hand, Slack is an app you "purchase" (it's free, but it's still technically a purchase) under your Apple ID in the App Store, therefore softwareupdate does not handle it.

Andrew Naylor has written a CLI interface to deal with App Store purchases (including updates), available from https://github.com/mas-cli/mas.

Update: in macOS Mojave, the distinction is clear in the GUI as well as at the command line. In Mojave, the App Store interface only handles updates to "purchased" apps, while OS and bundled software updates are handled by the Software Update pane in System Preferences. So "Software Update" preferences == softwareupdate command, and "App Store" application == Andrew Naylor's mas command.


Trying to re-format via internet recovery, no entry sign

The fastest method around a sticky recovery partition is to just boot your Mac in target disk mode and connect it to another Mac and have that OS run Disk Utility to erase / zero the drive.

At that point, you should have far less issues reinstalling the OS in recovery mode. Depending on the agreement you had with the buyer, you could just send the Mac to them with a wiped drive and let them sort out the reinstall since then their Apple ID will be associated with the upgrade / app store instead of yours.

To diagnose why your Mac isn't starting will likely require access to the install logs and/or system logs.

Can you boot the Mac into single user mode and get a usable prompt?
Can you boot holding the option key and then select your Recovery HD to get Disk Utility to run and zero the main partition/volume?


Bonjour networked printer with Time Capsule in bridge mode

I'm not positive this answer will work, but these are the first things I'd try.

To answer your questions:

1) Yes, that configuration should work.

2) You can see it because it is a Bonjour device - just because you can't connect to it doesn't mean that it doesn't exist.

3) Check the settings on the printer. You can either do this on the screen of the printer (assuming it has one) or by opening a web browser and typing the internal IP address into the address bar. Make sure that the printer is configured to get its IP address using DHCP and is not self (manually) assigned.


Can Apple TV AirPlay mirroring use a "secondary" screen/display?

iPad 2 + Air Display. http://avatron.com/apps/air-display

Use Air Display to turn your iPad into a second monitor (totally cool in itself!), and then mirror your iPad to your apple tv.

OR, if you, like me, only have an iPad 1, then you can use your iPad as the main monitor and mirror your laptop screen.

Either way, you end up with three screens going, two of them the same.

That's the only way I know. Seems crazy that Apple can't come out with an update that allows the apple tv to be a second, rather than mirrored, screen.


Is it safe to use a drive that previously had bad sectors (since reallocated via a Secure Erase)

This question could be considered 'opinion-based' however, in my opinion...

No hard drive is ever going to 'heal' over time; it can only degrade.
If it's developed bad blocks before, it will likely develop more as time goes on.

Unless you have a Time Machine constantly connected & working, giving you an hourly safety-net, I'd bit the bullet & swap it out now.

Better safe than sorry.

You'll also love the speed the SSD gives you. It will feel like a new machine... or actually faster than new.


So the answer to this question involves 8th grade science. So brace yourself. The answer has to do with the change of medium for the sound waves to travel through. Solids can conduct sound much better than air in truth but the transition between the two states of matter requires a decent amount of energy to switch so by covering it you are trying to make it change not once but twice as it hits the outside and changes to move through the solid then hits the air and thus you expend much of the energy. This reduces the volume and can even negate it all together. (Ever heard of sound proofing? This is the concept of it they just find a substance that absorbs the energy rather than allowing it to pass) So now knowing this you may just want to remove the case or get an external mic. like the rest of us. Sorry for the lengthy answer.


Youtube's HTML 5 player freezes all the time, how do I disable that and force flash on Safari

Just download YouTube App from App store. It runs better when you watch videos on YouTube official App.


What is analogous to the Windows registry in Mac OS X?

For typical macOS applications the place for this kind of information is one of

/System/Library (for OS specific stuff)
/Library (for system-wide preferences/settings valid for all users)
~/Library (for user-specific preferences/settings)

and the folders beneath them (e.g. Application Support and Preferences).

They are saved as individual files, usually named so you can identify them and with a structure which is (at least most of the time) understandable by mere humans. Most of these files are Property List files ending in .plist which can be pretty-printed into a human-readable form by running plutil -p NAME-OF-FILE.plist in Terminal.

For applications and binaries coming from the Unix world you‘ll also find the typical dot files and directories in the home directory of all users using them, e.g. .bashrc or .ssh/. The names and purpose of these files is usually listed in the corresponding man page.


Terminal freezes with beach ball on High Sierra

You are likely being hit by a macOS 10.13.2 kernel bug, described here, and exposed pretty regularly by htop, described here.

Supposedly, macOS 10.13.4 beta has a kernel fix, and version 2.10.0 of htop was released to work around this bug.


How to sync videos between a PC and an iPad?

Use iCloud Drive for windows on the PC and sign in with the same account on iPad. Then save the exported video to the iCloud Drive. It will sync on all devices that have iCloud Drive enabled.
Cross platform apps like OneDrive, Google Drive, Dropbox etc can help too.
Also install Files app  on iPad for easy navigation.


For 2.4GHz/5GHz wifi which is best for Apple devices: different SSIDs or same?

I have a similar set up (not same router).

While using the same SSID, I noticed instability, probably due to randomness  of who gets what.

So now I have separate SSID for 2.4 and 5 GHz and I decide who connects to what.


Submitting iOS app with password protected content

In iTunes Connect, you can provide a username and password for Apple to use to test your application:

  The user name and password for a full-access account for your app. This account is used during the review process and must not expire. Include details for additional accounts in the Notes field.

However, if your intentions are to not let Apple have access to this content your app will be rejected, plain and simple.


iPhone Contact Reverts to Old Data After Edit

Hmmm... In general when I run into syncing problems like this I'll log in on icloud.com with my Mac to see what's in the cloud (versus what my devices show).

For problematic devices it's recommended to remove the account (or just disable Contacts from iCloud in this case). When prompted, choose to delete the local data. After a few minutes enable it again and then be patient everything syncs.


When shutting down, how to re-open apps on their respective desktops?

If apps don't obey OS X's default windowing (which is to put apps back where they were before you logged out), then you can lock them to specific desktops which forces them to obey:

Right-click on the app in the Dock, then choose Options → This Desktop.


Sound and heat when lid is closed - MacBook Air

Playing loud music? I doubt it. The sound probably won't sound as good (as it'll be muffled), but it'll work.

Heat? Maybe. I have an older MacBook Pro that gets its airflow in through the speaker grilles and out through the hinge. I don't run it when closed for that reason, but that is supported (it wasn't on my even older iBook G4). If you can wake it up with the lid closed, it'll probably work fine. Try it a few times and see if the screen is uncomfortably hot after a half hour or 45 minutes.


Is there a way to control ringer volume with siri?

Siri can't change the phone's ringer volume.

Here's a good list of commands you can use with Siri.


Strange icon in all system password boxes on Mojave 10.14.6

This seems to be a "Numlock" icon. Rebooting the machine made it disappear. What made it appear in the first place remains a mystery...


Copy window between multiple Spaces in Mission Control?

You can't get one window of an app to follow you to all Spaces - but you can, if you have shortcut keys setup to swap Spaces, grab the menu bar of the required window, hit the shortcut & 'take it with you' to the new Space.

If you don't have it set up already, System Prefs > Keyboard > Shortcuts…

One thing to note - if you do that with Finder windows, it can break the 'click desktop to go back to Space 1' functionality, til you relaunch the Finder.


Simple remote access to another Mac or PC

You could look at TeamViewer and it is free for non-commercial users.


Is it safe to use a MacBook in a slightly tilted position?

It shouldn't harm your mac in any way so. At my workplace my Macbook is tilted. The only problem I can foresee is that since it's a wood base and there's no holes it may cause the macbook to overheat ( this is the worst case scenario). My workplace has a titled setup that tilts the mac to keep it cool. Tilting your laptop is good because it prevents overheating and its better posture for your hands.


User home *apparently* scracthed after Big Sur update

The key point of the problem is that my user profile (fritz) is located on a separate encrypted volume Users, so its actually home path is /Volumes/Users/fritz. When I login after a reboot I use another account to enter into the system (administrator) that is regularly located on the root volume (/Users/administrator): then I enter the encryption password for the Users volume and at last I log into my main account.
This setup (which has been working for years) probably messed up the latest system update tool, because it basically recreated a new user fritz from scratch (when I logged in after the system update I was not only asked for enabling Siri - it always does it - but also other preferences, such as the light/dark theme, a thing that happens for users that have just been created). The path of the new bogus account was /Volumes/Users/fritz as it should be but it was not a mount point: it was just a plain directory of the root volume. The Users volume was mounted at /Volumes/Users 1 and everything was still there, but no more associated to the fritz account.
The obvious solution was to remove the bogus /Volume/Users directory, but the system wouldn't let me do that, even from sudo - typical security restrictions of the latest macOS's I suppose. I rebooted in Recovery mode just to find - to my surprise - that the bogus directory had not been created in that mode; so it was impossible to remove in that way.
At last the solution was:

Log in as administrator as usual, without entering the password for the Users volume.
Remove the user fritz.
At this point I was able to remove with sudo the bogus directory /Volume/Users.
Open the Disk Utility and mount Users. Now the volume was mounted in the right place.
Re-create the fritz user with all the previous settings (UID and home folder path).


First of all, to get the UUIDs of your network sets, use PlistBuddy and perl:

 /usr/libexec/PlistBuddy -c "print :Sets" /Library/Preferences/SystemConfiguration/preferences.plist | perl -lne 'print $1 if /^    (\S*) =/'

this should return the IDs of the network sets. For each set you can then get the name with

/usr/libexec/PlistBuddy -c "print :Sets:698F419D-326E-45E3-8BE2-B0742334DD62:UserDefinedName" /Library/Preferences/SystemConfiguration/preferences.plist

where, of course, you have to change the UUID accordingly.
Now, you can print the ServiceOrder with:

/usr/libexec/PlistBuddy -c "print :Sets:698F419D-326E-45E3-8BE2-B0742334DD62:Network:Global:IPv4:ServiceOrder" /Library/Preferences/SystemConfiguration/preferences.plist

If you want to read the value for "ExcludeSimpleHostnames", you should be able to use

/usr/libexec/PlistBuddy -c "print :NetworkServices:69F7441B-BA1E-4DC3-B7DA-8D6302986F20:Proxies:ExcludeSimpleHostnames" /Library/Preferences/SystemConfiguration/preferences.plist

while of course replacing this UUID with a valid one from the "ServiceOrder".

Update:

don't miss that you can set values with PlistBuddy, too:

/usr/libexec/PlistBuddy -c "Set :NetworkServices:$serviceid:Proxies:ExcludeSimpleHostnames 1" /Library/Preferences/SystemConfiguration/preferences.plist


Software to synchronize two directories (local/remote)

rsync is definitely the right tool for this job. It exists to keep directories in synch and can do it with a fair bit of smarts. For example: it'll transfer only deltas whenever it can and it can work over ssh tunnels.

Let's say you have machine source that hosts your live version of the directory tree /my/tree and machine sink that you want to keep in close synchronization with it. If you had an ssh account on sink you could, from source use rsync as follows:

rsync -avz --delete -e ssh /my/tree/ remoteuser@sink:/my/tree

This assumes you want /my/tree in the exact same spot on sink as you have it on source. Of course, you don't need to keep it in the exact same spot.

Breaking down the command line:

-avz: archive mode, verbose out, use compression during transfer
--delete: delete files on sync that aren't present on source
-e ssh: Use ssh as the connection method

This call will, of course, ask you for your password when you make it. If you want to do this in some automated fashion you're going to need to share some keys between the accounts on the machines and use public-private key encryption to make the ssh connection.

To set up your key pair for this rysnc, run the following command on your source machine:

> ssh-keygen -t rsa -b 2048 -f ~/.ssh/my-rsync-key
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): [press enter here]
Enter same passphrase again: [press enter here]
Your identification has been saved in ~/.ssh/my-rsync-key.
Your public key has been saved in ~/.ssh/my-rsync-key.pub.
The key fingerprint is:
2e:28:d9:ec:85:21:e7:ff:73:df:2e:07:78:f0:d0:a0 root@source

> chmod 600 ~/.ssh/my-rsync-key

For this keypair to work we need to add the contents of ~/.ssh/my-rsync-key.pub to the ~<remoteuser>/.ssh/authorized_keys file on the sink machine.

First copy the file over to the sink machine:

scp ~/.ssh/my-rsync-key.pub remoteuser@sink:~

Then ssh to the sink machine and import the key by running the following as remoteuser on the machine:

> if [ ! -d ~/.ssh ]; then mkdir ~/.ssh ; chmod 700 ~/.ssh ; fi
cd ~/.ssh/
if [ ! -f authorized_keys ]; then touch authorized_keys ; chmod 600 authorized_keys ; fi
cat ~/my-rsync-key.pub >> authorized_keys
rm ~/my-rsync-key.pub

For additional tips on locking down the ssh connection between your source and sink machines I recommend taking a look at this page.

From your source machine you can test that this setup works by running:

rsync -avz --dry-run -e "ssh -i ~/.ssh/my-rsync-key" /my/tree/ remoteuser@sink:/my/tree

That will do a dry run of an rsync. If you see the rsync command connecting and comparing the files you know things are setup properly.

Now we need an easy way to call this rsync command from a LaunchD config file as shown in this helpful answer on this site. Since you want this call to happen in a tight loop you'll need to make certain you don't have multiple copies of the rsync running at the same time. You can use flock to create a mutex that ensures a bash script is singleton: only one instance of it every runs at one time on a machine. So we're going to create the following script on disk:

#!/bin/sh
SINK_INSTANCE=remoteuser@sink
DIR=/my/tree
KEY=~/.ssh/my-rsync-key
LOG = ~/my_rsync.log
LOCK = ~/my_rsync.lock
SOURCE=/my/tree

exec 9>${LOCK}
if ! flock -n 9  ; then
    echo "Another instance of your rsync is already running";
    exit 1
fi

echo "----------" >> ${LOG}
echo `date` >> ${LOG}

rsync -avz --delete -e "ssh -i ${KEY}" \
    ${SOURCE}/ {SINK_INSTANCE}:${SOURCE} 2>&1 >> ${LOG}

Save that as ~/my_rsync.sh.

That script will take care of doing the rsync for you. All you need to do now is set it up via LaunchD and have it run in a tight loop. Following the directions from here and modifying it to meet our needs, we're going to create ~/Library/LaunchAgents/my-rsync.plist in a text editor and make the contents:

<?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>My Rsync</string>
    <key>Program</key>
    <string>/bin/sh</string>
    <key>ProgramArguments</key>
    <array>
        <string>sh</string>
        <string>-c</string>
        <string>while sleep 5s; /Users/my/my_rsync.sh; done</string>
    </array>
    <key>ServiceDescription</key>
    <string>Keep /my/tree synchronized with the machine sink</string>
    <key>KeepAlive</key>
    <true/>
</dict>
</plist>

That should take care of things.

The usual caveats apply: I wrote this from memory and didn't test it. So don't follow along blindly. Test carefully along the way. Whenever you're in doubt use the --dry-run option on rsync. It'll print out what it would have done without actually doing anything.


How to open iPhone 5c locked with an iCloud account?

As other posts have mentioned - there is no known workaround to the lock and you will not be able to use that device until the account holding it locked releases the hold.

However, knowing that it's not stolen and having gotten the seller's word that they will unlock it - you do have a little leverage over the seller. You can identify them and hopefully you have some idea of their contact information.

Their Apple ID is likely their email address, so have you tried mustering as much kindness and sending a polite email reminding them how you are eager to make use of the phone they sold you. See if the phone will show you their Apple ID - unfortunately for you (and fortunately for people who have their phone stolen) - on most screens you can't get to the full text of the Apple ID without knowing the passcode.

If you've exhausted the gentle ways, you could try checking with a local lawyer to see if they in any way violated local laws for sale of goods under a false description. Your costs for a quick consult and how to take them to small claims court might result in eventual repayment of your costs and the purchase price.

The local police might also be able to think of ways to convince the seller to do the correct thing at this point.

It's hard to say, but you are really at the seller's mercy if you hand over money before verifying the phone is really unlocked and free of their hold. For others, this article has the steps Apple recommends before buying a used phone.

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

You could try appealing to them, but I would start locally rather than try to get Apple to break into someone's phone when they don't really know you or the seller.


Time Machine : Can't find deleted files in Time machine

Can you see the files if you just browse the backup volume directly in /Volumes/?

If a file is deleted, it won't be included in new snapshots, but there will probably still be older snapshots that have it.

The folders for backups only contain files that have changed. Other files and folders are just hard links. If a file has been modified after the last snapshot, the whole file is copied instead of storing a delta. See the Wikipedia article for more information.


On macOS, why is the output of log stream different to log show?

By default debug messages are not persisted on disk, but rather only stored in memory.

Therefore you can have the situation where you can stream the debug log messages live using the "log stream" command, but when you later want to find it using "log show" it is not there simply because it is not logged to disk and has been erased from memory.


How to rename formula installed via Homebrew?

I don't think what you want can be done directly without hacking Homebrew formulas, er, I mean formulae.

What I do is put

export CC=gcc-4.9

in my shell profile.  That works in almost all scenarios I'm interested in.

An alternative is that you create your own "bin" directory, say ~/bin/, put that first in the path, and symlink ~/bin/gcc to /usr/local/bin/gcc-4.9.

Both of these methods will survive package upgrades.


Terminal (bash) - copy files from Windows (SMB) shares without mounting

You cannot do that without first mounting the share.
For mounting it from the command-line, whether through Terminal or from an SSH session, there are several methods with different advantages and disadvantages.
A few variables, to make it easier to copy/paste the rest :
user=my_username; pass=my_password; server=my_server; share=my_share

Method 1
Create a temporary folder, mount into that, then unmount and remove the temporary folder.
This is the only method that also works without a user being logged in, like through a SSH session opened right after boot. But if a user is actually logged in there is still an icon on the desktop to access the share through the Finder.
dir=$(mktemp -d)
mount -t smbfs //$user:$pass@$server/$share $dir

# ls -l $dir
# ...

umount $dir && rmdir $dir

Method 2
This one only works if a user is logged in. But it has the advantage to mount into the standard /Volumes/$share folder.
open "smb://$user:$pass@$server/$share"

# ls -l /Volumes/$share
# ...

diskutil unmount /Volumes/$share

This method opens a Finder Window in the GUI, showing the mounted share.
Method 3
Like method 2, this only works if a user is logged in, and also mounts into the standard /Volumes/$share folder.
However, unlike method 2, it does not open a Finder window to the mounted share. (But it does also create the icon on the Desktop).
It needs cumbersome quoting if using variables, because one cannot use single quotes.
osascript -e "mount volume \"smb://$user:$pass@$server/$share\""

# ls -l  /Volumes/$share
# ...

diskutil unmount /Volumes/$share


Why does the Network icon in the Finder sidebar in Lion have no function on my Mac?

~/Library/Preferences/com.apple.sidebarlists.plist

In Terminal, run the following command. You should find the word Network mentioned at least once in your .plist preference file:

defaults read com.apple.sidebarlists | grep Network

Applicability

As I can't drag Network to my Finder sidebar — and as sidebar takes a different approach to showing shared items — I guess that:

in Lion, Network is no longer applicable in the FAVORITES part of the sidebar
maybe for you, Network was amongst sidebar favourites in a previous version of the operating system.

Removing unwanted items from the property list

Probably easiest with Xcode.

If you don't have Xcode, then use TextWrangler or anything that's capable of editing this type of property list.

Identifying items in the .plist

Xcode views of the property list:

A TextWrangler view:

To view Network, with or without the sidebar

⇧⌘K

In the sidebar

show SHARED
click All…

If the option 'All…' does not appear

First try removing, from the property list, unwanted or redundant items relating to Network.

A guess: it may be necessary to quit Finder, or log out, before some types of change become effective.

If following removals and a log out you find that SHARED is still without All…, consider asking a separate question.


Once the alert is answered it wont pop up again. You have to go to: Settings -> Privacy -> Microphone Then check the state of your app.


Is the phone jailbroken? If so, try running it not jailbroken for a while to see if the problem reoccurs.

Other than that, try an OS restore - just make sure you do a backup first.


If you put the HD from another machine into this mac it may have kexts for the wrong model installed. Erase the drive and reinstall Lion. During the install process it should download the specific components needed for that exact model.


Issue with iSight on MacBook updated to 10.11 El Capitan

Turn off the computer. Press shift, control, option, and the power button at the same time for 15 seconds. Then turn on your computer. This resets the hardware.


Why does iphoto say "Image Cannot Be Edited. This photo or container may be read only"?

I just imported some photos from my iphone ... they were ... already on my Mac anyway.

I like you already.

No one answered for 15 hours, so I'll take a shot... and bump your question to the top of the queue, and maybe you'll get some answers. I'm willing to take the risk of losing some points to do that for you. That's the kind of guy I am :)

The thing about data is that sometimes it gets corrupt. I don't think that's what's happening here, I'm just saying that sometimes data gets corrupt, whether its cosmic rays or eddies in the space-time continuum. There's nothing you can do about it other than have backups. And in this case, iCloud backed up the photo you can't edit in at least 2 places, if not more. So why bother with this photo you can't edit and save, when you just said that you had another copy of it?

That being said, usually the reason you get a message like that means that the file is open somewhere else.

Try quitting and relaunching the application. ;-)

If that doesn't work, try rebooting.

If possible, import the duplicate photo that was already synced from iCloud on your Mac into iPhoto, and see if you can now edit and save the photo.

If that doesn't work, try identifying the location of the photo file in question. Once you have the path to its containing folder, open Terminal, type cd and a space, and drop the folder in the terminal, and hit return. Then type:

   ls -a

and look for an invisible lock file with a file name that begins with a period. If you discover one, delete it with this command:

  rm <.name.of.lockfile>

then check and see if you can open, edit and save the photo in question.

  also iphoto won't allow me to reveal the file, the reveal options are greyed out

Does iPhoto tell you the file name of the photo when you hover over it, select it, or select it and click the info button in the toolbar? Perhaps using the filename you can search for it directly with Spotlight in the Finder.

More ideas

Do you see an exclamation (!) mark?

iPhoto Library Manager


Unfortunately, this is not possible.   It has been requested of apple for more than a decade, and they still do not allow this.   Sorry!


Will the Logitech Bluetooth Keyboard Case "for ipad2" work with the new ipad?

Yes, it fits. I bought the iPad 2 case and it fits my third gen iPad...$20 cheaper too :)

The latest generation iPad is slightly thicker then the iPad 2.

The iPad "2" is 0.34" (8.6 mm) depth
The iPad "3" is 0.37" (9.4 mm) depth

Otherwise they are precisely the same width/height.

While I don't have the case/keyboard you mentioned, it looks like it may fit in there. If the case has a solid nook for the iPad to fit into, it likely will get (noticably) tighter - but it entirely depends on how much gap is provided. Obviously since the new iPad hasn't been physically sold yet, there wouldn't be a way to actually test - other then measure with something like a micrometer.


Solution for me was to just use the Apple remote one time to get it back on track. Harmony works properly now.


This version of macOS 10.12.6 cannot be installed on this computer

For the release of macOS Sierra, support for various Mac models was dropped. Macs which supported macOS El Capitan 10.11 and not macOS Sierra 10.12 were:

MacBook from 2008 and early 2009
MacBook Air from 2008 and 2009
MacBook Pro from 2007, 2008 and 2009
iMac from 2007, 2008 and early 2009
Mac Mini from 2009
Mac Pro from 2008 and 2009

https://www.cnet.com/how-to/see-which-macs-will-and-wont-work-with-macos/
These Macs do not officially support Sierra and the installer will refuse to install Sierra.
There exists an unofficial patcher which adds support for older Macs to the Sierra installer, with caveats. You can download the patcher from http://dosdude1.com/sierrapatch.html.


As a developer, how to display notifications on MacOS

If you are using Node.js and want to create notifications on multiple platforms including Apple, this library probably has what you want:

https://github.com/mikaelbr/node-notifier

disclaimer: I am not the author


Mobile Safari is HTML5 capable since v1.0, so since 2007. The exact implementation details for various specs changed over time obviously.

At the moment there is no browser on the planet supporting everything mentioned in the HTML5 spec. That's because it's a working draft, not a finalized specification.

There're a lot of components forming what we call HTML5 and the site you're mentioning needs a specific feature which Mobile Safari doesn't support. So the error message is a bit misleading and user unfriendly. You can see an overview about support for all HTML5 features here.


Can I stop Dropbox from automatically updating itself on OS X?

Your may try moving it from /Applications/ to /Applications/Utilities. Dropbox does not automatically updates when I keep it in Utilities folder.


How can I tell when the iPhone is actively using GPS versus only using region monitoring?

In Settings --> Location Services each application that uses location services is listed.  In that list any apps that are currently using locations services or have used location services in the last 24 hours includes a little arrow icon.

The icons differ based on whether they are currently or recently used location services, and if currently then whether it's a geofence or regular updates.

The icons and description for each icon are included in that settings panel.


How can I download a PDF document that is embedded on a webpage in iOS?

Use Google Chrome.  Chrome will have the disk save option icon at the bottom.  Chrome Web browser also has built-in print to PDF file.


Where can I find the phone number of the SIM card that I have in an iPad?

Settings → General → About → Celluar Data Number


To clear the cache you need to delete the dock's plist.

Go to ~/Library/Preferences and delete com.apple.dock.plist.  Restart your Mac.  That should rebuild the icons.  I'm not sure why this is happening, maybe someone else here can help with that.


iPhone 4 - Camera flash stays lit even when the phone is off

This is definitely a hardware problem. It comes from the flash not being properly connected or the connectors on the board being damaged. Normally reseating the connection fixes the issue. He was probably a little heavy handed when he put the phone back together or the board has suffered ESD damage.

As well as this being annoying, it will drain the battery.


Does "gpt remove" command delete files along with partition? Trying to recover a Mac OS partition Vol Type FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF

The man page for the gpt clearly states the gpt remove command  does the following.

Partitions are removed by clearing the partition type.  No other information is changed.

In other words, the partition type is change to 00000000-0000-0000-0000-000000000000.
Although, a change in a partition type will also cause the 3 CRC32 values to change in 4 places in the GPT.
The “gpt remove” command does not delete files along with partition. In other words, the volume stored in the partition remains unchanged by the the command.  Therefore, your files will not be deleted when your run the "gpt remove..." command. Entering gpt remove -i 2 disk0 will not delete your files when it removes that partition. The command does not removing any partition info / header / metadata, etc.
How the GPT Uses CRC32 Values
A 32 bit cyclic redundancy check (CRC32) computation is done by passing data through an algorithm that produces a 32 bit integer. The algorithm is designed to have a high probability of detecting any corruption that may exist in the data. This is accomplished by computing and storing the CRC32 value when the data can be assumed to be free of corruption. Later, if the data is run through the same algorithm and returns the same value, then the data is assumed to be error free.
The algorithm to compute CRC32 values for the GPT is the same as used by the command cksum -o 3. More information on this algorithm can be found in the man page for cksum. The man page can be viewed by entering the command given below.
man cksum

The GUID Partition Table (GPT) scheme consists of a header and table stored at the beginning and end of a drive. Each header contains offsets indicating where the other header resides. Therefore, both headers can not contain exactly the same values. On the other hand, the table stored at the beginning is exactly the same as the table stored at the end. After any desired changes are made to the GPT, new CRC32 values need to be computed for the tables and headers. Since the tables are identical, a new CRC32 value only needs to be computed for one table, however this value is stored in both headers. Since the headers are different, a new CRC32 value needs to be computed and stored for each header. Here, each header has a location to store its own CRC32 value. Therefore, 3 new CRC32 values are computed and used to update 2 places in each header for a total of 4 places.
References
GUID Partition Table
man gpt
man cksum


What type of connection does a Macbook Pro DVD Drive use?

There's one here for a hefty $28.95, though you might find a cheaper one by shopping around.


Mac Notes App Sync Containers Having Mac Applications

Somehow icloud had backup data of old notes plus apps. So after backing my current notes, I deleted the backed up data from icloud. After resyncing the notes, the problem was fixed.


Here's my github repo trying to solve the problem by patching the openssh in homebrew/dupes. It's far from perfect but works.

Basically you have to:

brew tap homebrew/dupes
curl -fsSL https://github.com/boltomli/MyMacScripts/raw/master/homebrew/homebrew-dupes.openssh.diff | patch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes/openssh.rb
brew install openssh --with-ssh1


How do I remove the iCloud-first behavior in Mountain Lion?

To change the default to local just write in a terminal:

defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false

To change back to iCloud first, type:

defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool true


I believe nohillside and fsb are indeed correct.

Monitoring the status of a website is something that iOS was never intended to do, except manually. By actually visiting the website and seeing if it is up or not. Using a phone to do such tasks (assuming it is even possible) will likely eat up battery power and might even fail depending on how strong your local WiFi or cellular signal is. Remember you are running a background task that is always running in the background. A service that needs to use the WiFi/cellular radio. All of which have a cost in battery life.

So it is likely your best bet is an internet service that monitors websites. On my Wordpress blog there is a feature built in to one of the standard plugins to notify me if it goes down. There are other services like Pingdom (no doubt you can find a free one) that do exactly what you want and will notify you of downtime.


iMessage and FaceTime from complete stranger

First, the best advice for dealing with a hungry troll: don't feed him.

Ignore this guy, and he will quickly get bored and move on.

If your device runs iOS 7, you can block FaceTime and messages from known addresses that disturb you.

However, if unknown individuals are bothering you with frequent iMessage text messages, you can adjust your Notification settings to ensure that you are not interrupted with alerts when messages from unknown contacts are received (the messages will still be waiting for you in the Messages app, but you will not receive pop-up or banner notifications about them).

To disable notifications for iMessages from unknown contacts, go to the Settings app, then Notifications, then Messages, then scroll down to the "Show iMessage Alerts From" and select My Contacts Only.

Then, ensure that the person who is harassing you via iMessages is NOT in your Contacts.  You should no longer receive alerts about his messages (but they will still be received in the Messages app).

Note that this also means that you will not receive notifications about messages received from ANY unknown contacts - you will only receive notifications about messages received from phone numbers or email addresses that are stored in your Contacts.  So, be sure to check your Messages app regularly to see if you've received any messages from people not in your Contacts list that you WANT to hear from.


Recommendations for USB 3 ExpressCard/34

You'll need a power supply.
The express card slot has a gross transfer speed of 2.5Gbit/s.
3rd party hardware kernel extensions (drivers) are horrible (expect kernel panics and maybe even data loss).
The LaCie adapter will only work with LaCie drives. Use of any other drive will cause a crash.

It's simply not worth it.


It is not possible. Once it is set in the AirPort Utility to one MAC address, it won't allow you to assign it to another MAC address. You'll get an error.

This makes sense because you can have the Ethernet and Wi-Fi enabled at the same time.


Is it possible to identify who deleted my shared folder?

Regrettably Mac OS X does not log file access and changes by default. The user responsible for deleting the two folders is unlikely to be identifiable through your Mac's log files.

There are records kept of file changes in .fseventsd but these are at a block level, rather than the folder and file level.

Third party file recovery tools may still be able to recover your two lost folders.


Open arbitary file from Finder in TextMate

Select the file in Finder.
Press ⌘I to Get Info.
Set None to Other… in the Open With section of the inspector:

Enable All Applications, then find and choose TextMate.
Select Change All… to change the association for all .rel files.


When locking screen on OS X Chrome cancels downloads

Instead of cmd+alt+eject, use the Login Window instead as this does not interrupt your download or streaming.

To use Login Window, go to:

System Preferences -> Users > Login Options > Show fast user switching menu as 'Icon'

You will see a "user icon" top right bar left of Spotlight icon. Click on this then click on Login Window.

Hope this helps, if it doesn't, it is most probably that your drive is encrypted. Check System Preferences > Security & Privacy > FileVault.


Can I push notify based on geo-fencing without an iOS App?

No. Apple includes find my phone and friends which lets the owner of the device set up geo fences with notification when those devices a device has permission to track cross a geofence. There is no hook to automate what you contemplate as the device just receives a notification.

Similarly, the workflow automation let’s you get a location but not set up geofence push notifications.

You need to make or use a third party app to use location notifications and APNS as you requested on iOS 12 and below.

To achieve your goal without an app, convince Apple this needs to be added to the OS and to the workflow app to have geolocation triggers.


Get GNU Tar from Rudix.

You don't need to use Rudix's command-line tool. Just download a pkg from GNU Tar and open it. This will install GNU Tar in /usr/local.


Did something wrong with partitioning my SSD

I once had a simillar problem, the disk verification in disk util shown minors errors, but it wasn't able to fix them. As such, I couldn't delete a fat32 partition.
Here is what I did :

first i booted into safemode. The startup was long as it was fixing errors. (On boot, before startup chime, press and hold Shift)
after that i booted in recorvery mode (the same: on boot cmd+r)
when the recovery mode shown up, i did load the disk utility and deleted the partition.
It worked this way.

However, You Should always do backups of your data, especially if you are messing with partitions


Do Macs come with any programming language available from the Terminal?

You have good old bash (or csh, or whatever). You can use it to write shell scripts.


Restoring past purchases from different country

Apple contacted me back, I changed my country, and all my purchases have been restored.


SysPref > Keyboard > Text auto-spell-correct is OFF but persists in Numbers

Have you unchecked "Show suggestions when editing table cells" in the Numbers Preferences panel? ( ⌘+, )


Cannot sync with iTunes: This computer is no longer authorized for apps that are installed on the iPhone

Try this :

Open iTunes
From the Store menu, select "View my Account..."
Sign in with your Apple ID and password.
Under "Computer Authorizations" select "Deauthorize All".
Authorize each computer you still have, as you may require.

Then restart iTunes, and try again to autorize your computer with your Apple ID


How to make and transfer secure (encrypted) ZIP files from Mac to PC

The encyrption was still valid, you just saw the file names within the archive.

Sometimes, though I do not know if this is the reason in your case, the hidden files within Mac folders will confuse Windows OS. The fact that it even mentions ".DS Store" suggests that these files are part of the package you made, and my not be compatible with Windows, which does not know what to do with .DS Store folders and other Mac metadata.

As for zip products, you could try the free trial of WinZip, which also supports Mac. The file will be compatible with WinZip on the windows side for sure. (I am not affiliated with WinZip).


Can an .ipsw firmware restore image's origin be verified?

All IPSW SHA1 hashes can be found on The iPhone Wiki - Firmware.

You can get the SHA1 of your downloaded IPSW by running the following Terminal command:

openssl sha1 <path-to-ipsw>

The output can be compared to the relevant SHA1 provided on the wiki.


how to re-enable services in an app (Microsoft Remote Desktop in particular)

Some (perhaps all) services are context specific. They will only be offered/enabled when they can be used.

For example, a service that is meant to act on a piece of text will only offer itself when text is selected.

You can try this yourself in Safari. Select a piece of text in Safari and check the Services menu, you should see numerous options including "Add to iTunes as a spoken track" and "Make New Sticky Note". However if you visit the Services menu in Safari when nothing is selected you will see "No Services Apply".


How do I delete photos from JUST my iPhone 6s when using iCloud Photo Library?

iCloud Photo Library's purpose is to unify the photo libraries across your devices. If you wish your devices to maintain separate libraries, you need to disable iCloud Photo Library.


Should I use a network-attached Time Capsule or a USB external drive with my MacBook Air?

it generally depends on being constantly connected (be it ethernet, wifi or some sort of 3g dongle) or not.

ultramobile and having the data everywhere where you have an internet connection: I personally have tried to host my 80gb itunes collection on a jungledisk (powered by amazon s3) and I can only say it's cumbersome. e.g.: you download new podcasts and end up re-uploading them to your s3 storage.

ultramobile and all your data at home on your network (e.g. time capsule or some sort of network attached storage): also did this for a while, no hickups, works great via 802.11g although I'd recommend 802.11n if you're likely to watch HD videos straight from your NAS/Time capsule.

ultramobile and all your data always with you: that's the approach I'm currently using, I have a 500g usb2 drive I carry in my notebook bag containing my itunes library and assorted other data (iphoto library and what not) that doesn't fit on the internal drive.
It's my favorite solution as I have my data on me even if there is no internet connection available.

cheers
florian


Retina MacBook Pro Running 10.13.5 Can't Connect to Windows Fileshare Servers

I solved a similar problem on my computer a while ago.
I created a file /etc/nsmb.conf with the following contents:

[default]
signing_required=no

Be aware that you disable some security features with this procedure.
You can find more details in an apple support article.


Is it possible to sync two iPhones with different service providers via iCloud?

This is exactly what iCloud (and MobileMe did in the past) does for contacts.

Unless your company phone uses a company supplied directory (in which case just connect your personal phone to the company directory) you can sign up for a free iCloud account and store your contacts on both the devices in the cloud.

You could also sync from iCloud to a computer (PC or Mac) as well to an iPad, but you don't have to and can simply use it to sync the address book contents between the two iPhones.


How to redirect MacBook Pro audio to my TV?

Hold the Option key and click on the Volume/Sound icon on your Menu Bar.  When you're connected via HDMI, you should have an option show in the local menu to select that connection to feed the audio through rather than the standard audio output.


How can I set up my iPad so I don't have to type in my password every time I try to download an app?

You can only remove password authorization for free apps. You can set it so it only asks for it after 15 minutes on paid apps, that is, if you purchased one, it will only ask you for your password if more than 15 minutes have passed when you try to buy a second one.

This restriction does not apply for Apple TV.

Check this Apple Support document for further information: Manage your iTunes Store and App Store password preferences


How can I enable and/or disable OS X's power nap feature from within Terminal?

Use pmset to change the darkwakes parameter:

sudo pmset -c darkwakes 1

The darkwakes parameter is not mentioned in the man page, but it is shown by pmset -g if your Mac supports Power Nap and is operating on an AC power.

-c is AC power (or charger or wall power), -b is battery power, -u is UPS, and -a is all.

You can also edit the plist directly, but you have to restart to apply the changes:

sudo /usr/libexec/PlistBuddy -c 'Set "Custom Profile":"AC Power":DarkWakeBackgroundTasks 1' \
    /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

Or using sed:

sudo sed -i '' '/DarkWakeBackgroundTasks/{N;s/false/true/;}' \
    /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist


I Would Like To Host an HTML Website Without Using Server.app

Apache is there by default, you just need to turn it on:

sudo apachectl start

To tweak it to do what you want you may need to adjust the .conf files located at /etc/apache2/ These behave like any other apache configuration (though there are a few OS X specific modules installed).


fsck_hfs keeps crashing when trying to repair my Time Machine volume

Sorry to say it, but I think that Time Machine filesystem is broken beyond repair. You could try DiskWarrior, but it might not work either.

The fastest solution is to delete the USB volume from your Time Machine settings, then erase it and start a fresh Time Machine on it.


You can change the profile of an active window by doing the following:

Right click in the open space of the Terminal window (or cmd+I)
Choose "Show Inspector"
Click on the "Settings" header in the Inspector window
Choose a new profile for the current window

EDIT:

In macOS 10.14.6 the Terminal.app Inspector profile-selection list looks like this:


Use One User Account for Snow Leopard and Lion (Partitioned)

Unfortunately, at the moment Lion is still in pre-release phase, so I would not deem it to be safe nor trustworthy (until its officially released).   Even Apple's own guidelines for installing pre-release operating systems to testers/developers say to install it on a non-critical hard drive in case there are problems.

If you want to test it out, I would install it on a completely separate hard drive.  And without any critical data.


What can I use for multi-person, single conversation, instant messaging in a serverless local network?

You don't need the iChat service. Any Jabber (aka XMPP) server will do (the iChat server in OS X Server is also one, basically), and it can run on virtually any machine in your network.
I'm afraid I can't recommend one, but Google should be able to help you.


Used my external hard drive as backup and now I can't see files that were previously there

Carbon Copy Cloner makes a clone of one entire disk volume on another disk volume. In other words, it duplicates the source disk on another volume, replacing whatever was already there.

A safer method would have been to use the drive as a Time Machine disk, which would then backup everything to the external drive, but keeping existing files in place.

If you can indeed recover all your files using Data recovery software, then you should go ahead with that. It is 'not easy' for you to do it yourself, as you would have to write code to read entire disk data blocks and work out where files begin and end (because they lack the catalog entry that the Finder can use to display files).

It is essential to have a second copy of every file that you want to keep, on another device, exactly to prevent situations like this.


Resolving Time Capsule Problem Broke IPv6 Tunnel

It appears that my Client IPv4 (as configured on the TunnelBroker website) had gone out of date. I was unaware my IP address had changed since after changing ISPs some time ago.

But I figured it out. Bring on the v6!


Macbook Pro late 2011 + Windows 10+ High Sierra

I was able to successfully install Windows 10 on my Late 2008 MacBook running macOS Sierra. I created a bootable Windows 10 USB key on another PC and performed a normal install on my MacBook.

As per official guidelines, Late 2008 MacBook does not support installing versions of Windows later than Windows 7 using Boot Camp. But I was able to find a workaround, thereby doing a normal PC installation.

The installer must be created on a pen-drive and not on a external hard-disk as it can create troubles.

I first created a Windows partition on macOS by resizing, plugged in the bootable pen-drive, restarted my MacBook, pressed Alt + r key till the boot device selection screen appeared. Then I performed a normal Windows installation.

Windows can overwrite the boot loader which can be repaired with the recovery partition.


Using AppleScript to open Mail by MessageID

Mail is not smart enough to just tell it to open a document by just its message id in the manner you're trying to do it. You need to tell Mail where to look for it, as in what mailbox it's in.

The following example worked for me when MessageID was set to one in my Inbox using its proper message id however in this example I'm using the message id shown in your OP.

set MessageID to "DB43DAF1-7B87-4DE5-99DB-EC11CB0F6FF7@gmail.com"

tell application "Mail"
    activate
    open (first message of inbox whose message id = MessageID)
end tell

Note that the example code above is limited in that it doesn't gracefully trap an error, so the example code below adds a try statement  with an error statement to handle an error gracefully.

set MessageID to "DB43DAF1-7B87-4DE5-99DB-EC11CB0F6FF7@gmail.com"

tell application "Mail"
    activate
    try
        open (first message of inbox whose message id = MessageID)
    on error eStr number eNum
        display dialog eStr & " Number: " & eNum buttons {"OK"} default button 1
        return
    end try
end tell


How to enable search when using Emoji keyboard on iPhone?

You can't use search when looking for emoji in the stock iOS keyboard.

iOS uses predictive text to determine what emoji to offer you based on the words you're typing.  While this isn't what you're asking for, you can see this iPhoneLife article for more info.

To search by emoji, you need to install and use a 3rd-party keyboard.  Many developers offer keyboards that incorporate emoji search.  I use SwiftKey (not associated with the software or developer) for typing on all my iOS devices.

Apple has indicated that the upcoming iOS 13 will offer:

  Word and emoji suggestions

  If you need to correct a word, simply ask and you’ll be presented with a list of suggested replacements.


Looking for workflow or script for saving Kindle documents

My solution requires you to have an ifttt and Dropbox accounts :

Sign in to http://ifthisthenthat.com/
create a Dump Kindle doc recipe as follow :

Gmail trigger : New email from
Enter your foo.baz@free.kindle.com email adress
Dropbox action : Add file from url
File URL : {{Body plain}} (use the + Addins listbox)
Dropbox folder path : whatever...

Then url of the .azw file will be automatically extracted from the mail (I tested it because was not clear for me) and corresponding file will be downloaded to your Dropbox folder!


How can I export drawing from Notes to an image with background on an iPad?

A third, more crude method, which you can use if a certain part of your doodle requires background lines/grids is taking  screenshot of the doodle.

Step 1;
Expand the note using the button in the top right of the screen.

Step 2;
Hide the panel showing pens and colors using the “x” at the bottom right of the panel.

Step 3;
Take a screenshot by pressing the home and power buttons at the same time.

Step 4; Crop the screenshot to show only the desired result.

The end result is something like this;


You could use iTunes DJ. Select the playlist that you want from the list in the left-hand corner.

Then, you can right click on a song, and select "Play next in iTunes DJ"


How do I get iPad (iOS 7) to use the email aliases I have set up on gmail

Try this in iOS 7: This works when you have an authenticated alias set up as your default in Gmail.

Settings → Mail, Contacts, Calendars → Add Account → Other

On "Account" Page:

Email: you@personaldomain.com
Password: Your personal domain password
Incoming Server: imap.gmail.com
Username: Your Gmail username
Password: Your Gmail password
Outgoing Server: pop.gmail.com
Username: Your Gmail username
Password: Your Gmail password


Rather than going via Get Info, you can get the path more directly…

Right click, then hold  Opt ⌥ , Copy [xyz] as Pathname

which pastes as
/Users/[me]/Documents/SE Reviews.rtf


Can I use my iPhone as a "remote" for my iPad?

It's possible to get your actual iPad screen and control it on your iPhone, but the iPad needs to be jailbroken. There's an always up to date guide of how to jailbreak at Lifehacker.

Once Cydia's been set up, tap Search and enter Veency. Choose the first option, then press Install and Confirm. When it's done, press Restart SpringBoard.

After the restart, unlock your iPad and go to Settings. A new section called “Extensions” will appear in the list on the left; tap Veency under it.

Turn on the Enabled switch if it isn't already, then enter a password in the box. If you don't enter a password, you will need to accept or decline every request to connect to your iPad.

Now connect both the iPhone and iPad to the same Wi-Fi network. This is important because your connection will be slow over 3G.

On the iPad, open the Wi-Fi settings and then the arrow next to your Wi-Fi. Write down the IP address.

Get your iPhone and download Mocha VNC from the App Store. Open it and set it up for your iPad's IP address and connect. Refer to its help page for more information.

The free version of Mocha VNC will let you type using the keyboard and tap the screen, but only the paid version will let you scroll up and down.

When you're done, press the menu button at the bottom of your iPhone's screen, followed by Disconnect. On your iPad, go back to Settings and turn Veency off. This will prevent anyone from using your iPad over VNC without you knowing, as well as save a bit of battery life.


Mountain Lion - Flash sluggish, spinning beachballs etc

In general, newer versions of operating systems (Mac OS, Windows, et al) tend to require more RAM than older versions. If you have less RAM than the OS needs, the computer will use virtual memory paging, which is very slow.

The 2010 Mac mini came with 2GB of RAM. OS 10.8 prefers 4GB or more. You should buy an 8GB RAM upgrade (2x 4GB).

http://eshop.macsales.com/shop/memory/Apple_Mac_mini/DDR3
http://www.crucial.com/store/listparts.aspx?model=Mac%20mini%20%28Intel%20Core%202%20Duo%202.66GHz%29%20DDR3%20-%20Mid%202010&pl=Apple&cat=RAM


It was a Marketing campaign by Apple in 2003, giving it for free for Test Drive of they Power Mac G5 called Test Drive (G5TestDrive.ca), a limited edition Apple-branded stopwatch.

  Apple has sent at least some of its apple canada customers a special
  promotion postcards in the mail.the promotion offers a g5 test drive
  (g5testdrive.ca) along with a limited edition apple-branded stopwatch
  (photo) as well as an entry to win a new 1.8ghz g5 powermac and a
  20inch apple cinema display.for a limited time, apple is also offering
  invitees a $200 discount on a g5/display/applecare bundle.again, the
  offer is only open to direct-mail postcard recipients.

http://www.macrumors.com/mac/?sid=20040317155502


Encrypt external HDD without erasing data on High Sierra?

Normally the option to encrypt the drive can be found by right clicking the drive's icon in finder and selecting 'Encrypt "DISKNAME"'. You will not see the encryption option if the disk is using Master Boot Record or Apple Partition Map as the partition scheme.

This is because High Sierra encryption actually converts the Mac OS Extended (Journaled) to Apple File System (APFS), and this cannot be done on a Master Boot Record or Apple Partition Map partitioned drive.

You can check the disk partition type in Disk Utility.


How to turn on Hardware Virtualization on Late 2013 MacBook Pro (for Windows 8.1 using Boot Camp)?

It sounds like you're running into the same issue I did, where after booting into Windows the VT-x shows as 'Disabled' in Task Manager.

Not sure how or why, but after going into

OS X
System Preferences
Target Disk
Select the BOOTCAMP disk as the
startup disk

Everything was well after that and I could happily use Hyper-V, even from a cold boot.

If I cold booted using the Options-key, and then selecting Windows, VT-x was disabled in Task Manager.

Go figure. Could some Mac genius out there explain this one?


How can I gain the 'true' space on this micro sd?

I recommend you insert it directly into a sd card reader attached to your Mac and backup the part of the drive you can access to your Mac's drive. Then open Disk Utility.app select the SD card reader in the left bar on the top level of the hierarchy (not the volume itself on the second level!), switch to the partition tab on the right hand, choose "1 Partition" from the "Partition Layout:" menu and click on "Options" beneath it. Choose "Master Boot Record", confirm the dialog with "OK" and click "Apply". Wait until it's finished, then check if the size of the volume has increased and if it has you can copy your files back.


Currently you can't restore an APFS container to a "fusioned" Fusion Drive.

A Fusion Drive consists at least of two physical devices - one of them should be an SSD or you wouldn't benefit from its speed. The other one is an HDD to benefit from the price-to-size ratio.

A "fusioned" Fusion Drive combines one partition of the SSD drive and one partition of the HDD with the help of a logical volume manger (CoreStorage) to a contiguous logical volume group which can be divided into several logical volumes. Usually it's only one though.

Example:

3.1 TB Fusion Drive:

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage                         121.0 GB   disk0s2
   3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *3.0 TB     disk1
   1:                        EFI EFI                     209.7 MB   disk1s1
   2:          Apple_CoreStorage                         3.0 TB     disk1s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk1s3

Disk0 is an SSD, disk1 is an HDD. Each disk contains three partitions: diskXs1, diskXs2 and diskXs3. By default diskXs1 is an ~200 MB or ~300 MB EFI partition (depends on the block size). DiskXs3 is an Apple_Boot partition with various sizes. Usually the 3rd partition of the HDD is the recovery partition  with 650 MB though.

Both diskXs2s are managed by the logical volume manager:

+-- Logical Volume Group A783F70E-04C1-49C1-80F8-D6E9B43DDC71
    =========================================================
    Name:         Macintosh HD
    Status:       Online
    Size:         3120722075648 B (3.1 TB)
    Free Space:   114688 B (114.7 KB)
    |
    +-< Physical Volume 00F83435-0AD3-4E21-B884-6B26D1664028
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk0s2
    |   Status:   Online
    |   Size:     120988852224 B (121.0 GB)
    |
    +-< Physical Volume CE0BE70D-9502-4C6E-A0F9-994F887A7BC1
    |   ----------------------------------------------------
    |   Index:    1
    |   Disk:     disk1s2
    |   Status:   Online
    |   Size:     2999733223424 B (3.0 TB)
    |
    +-> Logical Volume Family 63FFE3F6-E787-48A6-923A-2A62CDBB948C
        ----------------------------------------------------------
        Encryption Status:       Unlocked
        Encryption Type:         None
        Conversion Status:       NoConversion
        Conversion Direction:    -none-
        Has Encrypted Extents:   No
        Fully Secure:            No
        Passphrase Required:     No
        |
        +-> Logical Volume 9A7B21AA-F9FE-4E65-8C7E-ED2A73744C15
            ---------------------------------------------------
            Disk:                  disk2
            Status:                Online
            Size (Total):          3106191572992 B (3.1 TB)
            Conversion Progress:   -none-
            Revertible:            No
            LV Name:               Macintosh HD
            Volume Name:           Macintosh HD
            Content Hint:          Apple_HFS

Disk0s2 and disk1s2 are united to one large (logical) volume disk2 with the name Macintosh HD and HFS+ formatted.

A pretty undocumented algorithm/process allocates system files, app files and user files often accessed to the SSD part of the logical volume to increase read/write speed.

Your Fusion Drive is "defusioned". It neither contains a Logical Volume Group nor Logical Volumes. Finally they are two simple disks only. Their contents (i.e. partitions) are a mess. One is a giant OS X Base System (which usually is the label of a disk image containing a recovery system with a size of ~1.2-2.0 GB). The SSD contains a defunct APFS partition.

APFS currently doesn't support the combination of two partitions into one superior container/volume properly. Creating an APFS Fusion Drive isn't possible yet.

Though possible APFS on HDDs isn't really recommended.

If you insist on restoring the MB SSD to the HDD I recommend the following:

Format the HDD and install macOS High Sierra
Open Migration Assistant and try to migrate the content of the SSD disk image to the HDD

If you want to restore the image one-to-one use the following steps which depend on how you created the image.

You can either image the container or your mounted main macOS boot volume.

 [

If you have imaged the main macOS boot volume only, most APFS volumes (i.e. Preboot, Recovery and VM) won't be added to the image file and they will be missing in the destination container. A restore will finish successfully; the APFS system volume will probably be bootable. To get full functionality you have to reinstall macOS High Sierra.

If you have imaged the whole container, all APFS volumes (including Preboot, Recovery and VM) will be restored.

If your source volume was encrypted and you didn't image the whole container, I doubt that you will successfully restore the image and boot to the result - it's worth a try though. I haven't tested this variant.

In either case you have to "Scan to Restore" the image which requires free space of a similar size as the original image on the same volume!

This can be done in the GUI (Disk Utility) with "Images -> Scan Image for Restore..."

To restore the image, partition the destination drive (your HDD - your SSD is much too small to host the content of the 512 GB SSD) to one APFS container with Disk Utility.

Get the partition details: diskutil list.

Then open Terminal and restore the image (assuming the destination partition is disk0s2):

sudo asr restore -s /path/to/image.dmg -t /dev/disk0s2 --erase

Reboot to the restored main macOS volume.

As mentioned previously reinstall the latest macOS High Sierra version if you didn't image the whole container in the first place.


Siri on Volkswagen RCD 310 using Bluetooth

Found a reliable yet cumbersome workaround to have Siri play over the RCD 310 stereo using Bluetooth...

Using your car's steering wheel control, disconnect the Bluetooth link to your phone.
Open Siri by holding your iPhone's home button.
Re-activate the Bluetooth connection from your car to your phone.

Voilà, after a few seconds you can have a dialog with Siri in your car... at least until you leave the Siri screen.


Rather than give geoff sudo privileges, consider adding the account to the admin group so that it inherits the admin group sudoer privileges. This would be the more correct way to do things.

To add geoff to the admin group you'll need to run the following as the admin account:

sudo dseditgroup -o edit -a geoff -t user admin

You may also want to consider putting geoff in the wheel group too:

sudo dseditgroup -o edit -a geoff -t user wheel

The wheel group is a BSD-ism, where OS X has its roots. In traditional BSD systems the wheel group was used to keep a collection of users who were allowed to become superusers using the su command. It's not strictly necessary to be in both admin and wheel but anyone setup as as "Administrator" on the machine through the UI for adding a user is in both so it can't hurt to replicate that setup.


How do I check if an app is going through system proxy?

You can try to run a proxy server locally, and change your Network preferences to point to that proxy, and check in the proxy logs to see if the app sends its request through it.

I would suggest using Charles.
It's quite easy to use: just change our proxy settings in Network preferences to either HTTP proxy localhost:8888 or SOCKS proxy localhost:8889, and you should start seeing outgoing requests if you use your browser.

Once you do, try using your custom app to see if it sends its request through the proxy or not.

Best of luck.


Why don’t events created in iCal show up in my iCloud calendar?

It turns out I had to:

Add my iCloud account to iCal, in iCal > Preferences > Accounts.
Set my default calendar to one of my iCloud calendars, in iCal > Preferences > General.

See e.g.

http://www.mac-forums.com/forums/os-x-operating-system/253324-lion-ical-not-syncing-icloud-calendar.html
http://forums.macrumors.com/showthread.php?t=1249011

It seems a bit strange that I had to do this manually — you’d think just turning on Calendar syncing in the iCloud preference pane would do it.


Permission denied when editing files in /Library/WebServer/Documents

Have you checked ACL's? Try ls -ale to see if there are any.


for what should I use fn key by default on mac book pro

It swaps the function of the function keys between the OS X function and the actual F1-F12 key. For example, pressing F1 normally will lower the brightness, but pressing fn+F1 will pass an actual F1. You can see these mappings by looking at the icon on the key itself.

This can be swapped in System Preferences → Keyboard so that fn+F1 will lower brightness and F1 will pass an actual F1.

Alternatively you can swap it by running the following Terminal command, then logging out:

defaults write -g com.apple.keyboard.fnState -bool true

Also, fn+fn is used by default to start OS X Dictation.

Perhaps the most common usage though, is using FN+Backspace to get a delete key.

You can learn this by using help from Finder (⌘?), search for "fn" and read the article titled "Use keyboard function keys"


Multi-selection of text in text areas (Chrome, Sparrow) will switch keyboard to "Insert mode" and overwrite too much text

I think this behaviour can be attributed to Mac OS X's momentum scrolling. While you select the text the text is still being selected (due to the initial momentum of the mouse you used to select it). I can't be sure but this same thing keeps happening to me


How much mA does an iPad need to be charged?

The original Apple charger has an output limited to 2.1 A at 5.1 V.

I occasionally charge my iPad 2 Wifi with the old charger of my passed Palm Pre. It provides an amperage of 1 A at standard 5 V USB voltage.

I don't know if you can go even lower than 1 A, but the standard USB amperage of .5 A is not enough to charge it. It shouldn't be a problem to get a car charger that is capable of handling 1 A, more is better.
Make sure you buy one, that is capable of charging an iPhone as Apple devices tend to observe the USB standards and try to communicate with the charger. Some dumb China elcheapo chargers may not have USB logic inside and your iDevices could refuse to charge.


Automator - Shell Script - ffmpeg: image sequence to video

After doing a bit of research, it turns out that the -i option for ffmpeg takes a single filename and when converting a number of image files to a .mov file, it has to be in the form of e.g. %05d.png. Obviously the padding of the sequential numbering can be a different number of digits and the image type extension can vary as well.

Then to that end, the following example bash code works for me:

Method 1:

The following assumes the sequential numbered files are four digits, starting at 0001, add all files have the same extension.

It will process all four digit sequential numbered files in the same directory while overwriting the output.mov file, if it already exists.

Change Service receives selected files or folders inFinder to:

Service receives selected folders in Finder

Remove the Get Selected Finder Items action,

Set Pass input: to as arguments in the Run Shell Script action.

Replace the default code with the following example bash code:

cd "$1" || exit
ext="$(file="$(ls 0001.*)"; echo "${file##*.}")"
/opt/local/bin/ffmpeg -y -i %04d.${ext} -r 24 -codec prores output.mov

The example bash code above assumes you are selecting only one folder in Finder.  For multiple folder selections, use the following example bash code:

for f in "$@"; do
    cd "$f" || exit
    ext="$(file="$(ls 0001.*)"; echo "${file##*.}")"
    /opt/local/bin/ffmpeg -y -i %04d.${ext} -r 24 -codec prores output.mov
done

Note: The example bash code contains limited error handling. The onus is upon the user to add any error handling as may be appropriate, needed or wanted.

Method 2:

Service receives selected files or folders in Finder

Remove the Get Selected Finder Items action,

Set Pass input: to as arguments in the Run Shell Script action.

Assuming the selected image files in Finder are all the same type, in the same folder and the e.g. output.mov file will be created in the same folder of the selected image files...

Then to that end, the following example bash code works for me:

o="output"
e="mov"

d="$(dirname "$1")"
cd "$d" || exit

if [[ ! -e "${o}.${e}" ]]; then
    o="${o}.${e}"
else
    n=2
    for f in ${o} *.${e}; do
        if [[ "${o} ${n}.${e}" == "$f" ]]; then
            n="$(( n + 1 ))"
        fi
    done
    o="${o} ${n}.${e}"
fi

foo="$(date +%s)"
mkdir "/tmp/${foo}" || exit
cd "/tmp/${foo}" || exit

i=1
for f in "$@"; do
    ln -s "$f" "$(printf "%05d" $i).${f##*.}"
    (( i++ ))
done

/opt/local/bin/ffmpeg -i %05d."${f##*.}" -r 24 -codec prores "${d}/${o}"

rm -r "/tmp/${foo}"

Note: The example bash code contains limited error handling. The onus is upon the user to add any error handling as may be appropriate, needed or wanted.

Method 2 Notes:

If the e.g. output.mov file already exists, an incremented filename is used, starting at, e.g. output 2.mov and continuing to increment as needed so the Automator Service doesn't fail because the output file already exists. This is primarily handled in the if...else...then block; however, the lines of code prior to it are a part of it as well.
In order to accomplish the goal, a temporary directory is created in /tmp, named for the number of seconds since the Unix epoch, e.g. /tmp/1574058046 and is handle by foo="$(date +%s)" and mkdir "/tmp/${foo}".
Within this temporary directory a sequential numbered symlink is created for each of the selected image files, and is handled primarily by the for f in "$@"; do ... done loop.
ffmpeg then creates the e.g. output.mov file.
The temporary directory, e.g, /tmp/1574058046 is removed.
Note that the selected image files must all be of the same type per run, however, each run can use a different supported image file type as long as all are the same type per run. As currently coded you can not mix different image file types per each run of the service.

Note: The Get Specified Finder Items action is just for testing purposes and would be deleted before saving the Automator Service.


It is possible to share Internet from Ethernet to Thunderbolt!

Your gateway (iMac) Internet Sharing settings are ok:
Share your connection from: Ethernet > to computers using: Thunderbolt bridge

Choose the Thunderbolt Bridge device in the network preferences of the  client and set Configure IPv4 to Using DHCP.

Open Terminal on both Macs and enter ifconfig respectively.
The gateway (your iMac) should show a bridge device bridge0 crowded with the Thunderbolt devices (probably en2 & en3) with the IP-address 192.168.2.1:
...
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=63<RXCSUM,TXCSUM,TSO4,TSO6>
    ether 6a:aa:ca:11:23:00
    inet6 fe80::68aa:caff:fe11:2300%bridge0 prefixlen 64 scopeid 0x8
    inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
    Configuration:
        id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
        maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
        root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
        ipfilter disabled flags 0x2
    member: en2 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 6 priority 0 path cost 0
    member: en3 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 7 priority 0 path cost 0
    nd6 options=1<PERFORMNUD>
    media: autoselect
    status: active
...

The client (your MacBook Pro) should also show a bridge device bridge0 probably containing en1 (a MBP without Ethernet) or en2 (a MBP with Ethernet) and maybe another en device. Usually its IP-address is 192.168.2.2.
...
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=63<RXCSUM,TXCSUM,TSO4,TSO6>
    ether 6a:aa:ca:22:11:00
    inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
    inet6 fe80::68aa:ca22:fe11:e000%bridge0 prefixlen 64 scopeid 0x8
    Configuration:
        id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
        maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
        root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
        ipfilter disabled flags 0x2
    member: en1 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 6 priority 0 path cost 0
    nd6 options=1<PERFORMNUD>
    media: autoselect
    status: active
...

If the network 192.168.2.0/24 is already occupied by the Ethernet network, the next network 192.168.3.0/24 will be used.

If Ethernet to Thunderbolt Internet Sharing is enabled, the Target Display Mode doesn't work reliably here!


Apple may occasionally approve additions to new Root CAs e.g. Verisign, who can then sign certificates for individual sites you visit.

The root certificates for OS X El Capitan are here https://support.apple.com/en-us/HT205204

I assume these are done in software updates via the App Store, but I don't know for sure.

Also your company may add additional self signed certificates for internal reasons or installing development software.

But AFAIK keychain won't bloat over time as you visit new sites, so the list should be fairly static.


A simple question but there is no simple answer.

You'll need to know the frequencies and protocols used by your carrier and ensure they are supported on your iPad. 3G is highly likely to be OK but it's not 100% (for exampled, much of T-Mobile's 3G network runs on a frequency that's not compatible with the current iPad/iPhone
As noted, you'll need to cut the card down to nano-SIM size.  If you screw it up, the SIM is toast and will need to be replaced. You'll also need an adapter if you want to put it back into the phone.
The iPad needs to be configured with the proper data/APN settings for your carrier.
Your carrier has to not care that you are doing it.  I've heard stories about carriers detecting that a phone SIM is being used in a tablet and disabling the SIM.


Safari: search producing unpredictable results

I've just discovered a hidden feature in Safari search that solves my problem. The attached picture shows the solution.

Safari can search both for instances 'containing' the query or those that 'start with' the query. I imagine the default is 'starts with', which is why I raised the above question.


How to disable/always allow assistive access on Mavericks?

I don't know any way to always allow access for assistive devices, but you can add multiple applications to the list in System Preferences by drag and drop:


App subscription confusion leads to billing

You didn’t say which App Store you purchased, but just go to the Apple Support app on iOS or web page - https://support.apple.com/ , select billing issues and refund.

Explain your situation and see what can be done. The sooner you ask for help, the more likely you will get a result you like.


How can i delete the 13.2gb photo library off of my phone?

Try going to iCloud settings on the phone and turn off the Photos Sync setting. Then delete the photos from the phone.


Pause podcast on iPhone via Bluetooth with keyboard shortcut on Macbook Pro

Someone else may be able to provide a better solution, but nothing I can think of avoids having to play the podcast directly from the MacBook Pro. That is, you play the file on your MBP and stream it to your iPhone for listening to (with or without your headphones). But, unless you need to listen to your podcast as you walk around the office, there's really no advantage of this over just plugging the headphones in directly to the MBP.

Nevertheless, if this is something you're interested in, you can check out the following software:

Airfoil
AirPhones

Undoubtedly there will be other options out there too. My understanding is you can try Airfoil for free (not sure about AirPhones). But as I mentioned above, these options require you to play your podcasts from the MacBook Pro, so unless you want the freedom to get up / walk around, you would be better off just plugging your headphones into your Mac.

Note: I have no affiliation with either Airfoil or AirPhones.


How can I set external display as primary and turn off internal display without connected MagSafe power cable?

Unfortunately, according to the Apple support website, this is intended behavior. MacBooks do not support video output to external displays when running on battery power - you'll need to plug in the MagSafe cable.


you might can use this hint: http://osxdaily.com/2012/08/27/enable-save-as-os-x-mountain-lion/ It worked for me.


How to view high-res images in iPad 3 without downsampling?

There are a handful of workarounds for saving images without being downsampled, use what works for you:

Tap and hold the image to save it to Photos app as high resolution, despite being downsampled in Safari
Save the image to iPhoto
When publishing images, use PNG or progressive JPG
Email images to the iPad

This is a well documented quirk in Safari on the retina iPad, it could be a bug or just a way to make the web browsing experience more fluid given current limitations of hardware. Who knows, but it’s easy to get around for now.

Source: OSXDaily

You can also report issue to Apple.


Try something like this:

set csv to "name@example.com,7/14
name2@example.com,7/15"
--set csv to read "/Users/username/Documents/file.csv" as «class utf8»

set text item delimiters to ","
set y to year of (current date)
repeat with l in paragraphs of csv
    set d to (date (text item 2 of l & "/" & y))
    if date string of (current date) is date string of (d - 1 * days) then
        tell application "Mail"
            tell (make new outgoing message)
                set subject to "subject"
                set content to "content"
                make new to recipient at end of to recipients with properties {address:text item 1 of l}
                send
            end tell
        end tell
    end if
end repeat

You can run the script every day after midnight (if the computer is awake) by running EDITOR=nano crontab -e and adding a line like 1 0 * * * osascript ~/Scripts/some\ script.scpt.

The recognized date formats depend on the settings selected in System Preferences. I don't know how to get an email address for a first name and last name.


How to link multiple key events in AppleScript?

tell application "System Events" to repeat 2310 times
    tell application process "Mail" to set frontmost to true
    keystroke "s" using {shift down, command down}
    delay 1.5
    keystroke return
    delay 1
    key code 125
end repeat


Artist and Album name does not update on iTunes

I'm led to believe it's Apple's fault as they have discovered that various sources throughout the world download their music via an illegal source (i.e. YouTube to MP3 converters).

If this is the method you use, then no matter how many times you right-click on a song in "My Music", click 'Get Song Info' and enter in the correct song information, iTunes refuses to re-hash the information for your selected song.
Ever since Apple's iTunes 12 overhaul, users who condone third-party download sites have been affected.

The only way people such as you and I can fix this problem is to either purchase our music from the iTunes Store or subscribe to Apple's "Music Genius" promotion -- at a cost of $34.99 annually.

I'll pass, thanks. As for now, I prefer to use my older mobile device to 'drag and drop' .mp3 files -- back when it was oh so much easier!


What causes Time Machine to perform a non-manual verification?

I have not witnessed a Time Machine verify process in many years. If you have your Time Machine icon showing in the menu bar, you can click it while holding the Option key and there's a Verify Backups option.  I've never had this run on its own unless the disk I was using for Time Machine backups was potentially faulty.  In which case, I would run Disk Utility Verify/Repair on it and watch out for any S.M.A.R.T errors being reported. Then I would manually kick off the Time Machine verification. If the disk reports errors in S.M.A.R.T then the disk is dying and urgently needs to be replaced.
The only other time I have seen verifications is when you mount a DMG or Sparse Image the Finder will attempt to verify the integrity of the image(s).  This can take a long time because it has to scan every bit of the file and these backups can be quite large.
I have been using Time Machine over a network to a NAS where the Time Machine data is stored within a disk image called a sparse image.  That means it's one large directory where the data within is split into bands with binary chunks of 134MB each.  If it wasn't a sparse image it would be very similar to a DMG disk image single file with a large fixed size.
One way to bypass the verification step is to mount the disk from the Terminal command line instead of using Finder. If the file resides on network volume, you need to mount the share first either via Finder or command line. You can eject the disk from Finder as normal after mounting from the command line.
hdiutil attach path/to/image/filename.sparsebundle

It should then be mounted under /Volumes and otherwise accessible in the Finder.
If you are mounting from an Apple Time Capsule, then the disk might be failing. If you are sharing this Time Machine backup on a NAS the file might have been damaged in some way. Causing Time Machine to detect a problem that needs to be repaired.  If it's a soft error then it can be repaired. If it's hardware failure like bad sectors on the disk then you need to replace the disk.
It would be strongly recommended that you check the integrity of the storage medium. i.e. Disk and that it's not having problems indicating an imminent failure.