Can I submit a new app version to apple without cancelling a pending release? I have an app Pending Release and would like to update it with a newer version that includes some minor bugs fixes.

Can I do so without removing the App pending release? I don't want to risk that we receive green light to go live and the new app is stuck pending Apple review.

Thanks

No, you'll need to cancel the current pending release, upload the new app, go thru the Review process again, and then you can release it.

This way Apple, and the users, can be sure that developers are not putting malware or viruses in code that's already been reviewed and approved for release.


What does this ribbon on the iPhone 5s LCD shield plate do? While opening up my iPhone 5s to replace the screen, I ripped this ribbon that was stuck to the LCD shield plate and I was wondering what it's called and what it's function is?

It's the grounding plane.  Basically it reduces electrical noise and interference. Replacing it would be ideal but, if it's a very small rip, you should be okay.  Very small being 1mm or less.  It may function with a bigger rip but I'm not sure how that will affect the performance of your device.


How do you get ipod nano to display the watch face as the default view Is there way to set the watch face as the default display?

I wear the iPod Nano as a wrist watch and I would like it display the watch face first when I press the power button.

Note: I'm asking this question here mostly because I found this form post so comically high with noise vs signal.

Settings > General > DateTime > Time on Wake (Set this to on)

Thanks comically high signal to noise post!


PF set condition for not equal to a list of ports for MacOS I'd like to set a condition so that a firewall rule will not apply to a list of ports, something along the lines of this:

 table <my_table> persist file "/etc/pf.anchors/entries"
 set skip on lo
 block out quick proto { tcp, udp } from any to ! <my_table> port != { 66 80 }

This gives a syntax error when running 'sudo pfctl -vnf /etc/pf.conf'.

If I put the following, it works (only specify one port).

 block out quick proto { tcp, udp } from any to ! <my_table> port != 80

How can I specify a list of ports with the '!=' operator?

You can make the inverse command logic.

First Block all, then open just the ones you want:

The result is the same you tried by negating all except those chosen to be opened. :)

set skip on lo
port_pass = "{ 80 66 53 22 }"
block all
pass out on en0 proto { tcp, udp } to any port $port_pass keep state


Kensington Trackball Works, how to scroll horizontally with Trackball or Auto Scroll I have a Kensington Expert Mouse on the Mac running the latest 1.3 drivers.

There still is no option to use the trackball to in addition to scroll vertically also scroll horizontally. Similar to the ball on the mighty mouse.

Has anyone found a hidden setting that I could enable with the defaults write command?

The old driver used to have an option to set a button (or button combination) to 'change scroll direction'.  I used to use that all the time and they have since gotten rid of it.

The workaround I've been able to come up with is to program a button to simply type the shift key (I use the two bottom button combination).  It's not as nice, but then you can hold the button(s) and scroll in the opposite direction without using your second hand.


MacOS Catalina, Disk Utility: "Unable to perform deferred repairs" Upon running Disk Utility against `Macintosh HD - Data", I get the following towards the end of the check:
error: dstream (id 8753874978) does not have an associated dstream id object
Verifying allocated space.
Performing deferred repairs.
error: Unable to perform deferred repairs without full space verification
error: Try running fsck against the entire APFS container instead of a volume
The volume /dev/rdisk1s1 could not be verified completely.
File system check exit code is 0.
Restoring the original state found as mounted.

I've booted into Single User mode, but running fsck -fy tells me that it cannot be run because the /dev/rdisk1s1 drive is mounted in write mode. I've also tried Googling the term "error: Unable to perform deferred repairs without full space verification" and found 1 thread on Apple's forums, with 67 likes and 0 answers.
So, how can I repair my HD? rMBP late 2013 model.

Run Disk Utility in Recovery Mode:

Boot into Recovery mode by holding down ⌘R while powering up
Select Disk Utility
Select the "Container" for Macintosh HD - Data (do not select Macintosh HD - Data itself)
Click "First Aid" and "Run"
If that does not seem to fix the problem, select the Drive that contains the "Container" and run "First Aid" on it.

The above is from memory. You may need to mount or unlock the drive at some point in the above process.


Where can I get the image of the installation disc that came installed (mountain lion)? If I open the App Store, I can see the OS X Mountain Lion with a price and not "installed" or something like that. I don't want to pay for the OS that is already installed by default. Isn't there a way to download the image, an utility to create it or something like that?

There was no DVD for Mountain Lion. Since Lion arrived with the App Store as a digital release, the core OS is not something you re-download from the store. You don't need to pay to re-download, but you do have to go through the Recovery HD to initiate the download.

When you buy an upgrade from Snow Leopard to Lion or an upgrade to Mountain Lion - that installer can be re-downloaded, but when the OS is included with a CPU purchase, you don't need to have an Apple ID or account to re-download the OS. You just enter recovery mode and run the installer. It downloads the package after verifying eligibility by checking the serial number on the Mac hardware.

If you interrupt the process, you can grab the installer from the drive - but it's not something that the system was designed to deliver to you as a downloadable package. It was designed to download and re-install on an "as-needed" basis without needing an account, a password - just an internet connection and some time to wait for the download.


Automatically unlock iPad mini 5 upon pickup I have a recently released iPad mini 5. Is there anyway I can automatically have my iPad unlock when I pick it up, so its ready to use straight away?

Unlike the recent crop of iPhone and iPad Pro, iPad mini 5 doesn't feature Face ID. It comes with a physical Home button with a Touch ID built-in. Neither does it feature Raise to Wake setting, which automatically wakes the screen when you pick up the device.

So there's no way you can configure it to unlock without a physical intervention required from your end.

The best/fastest you can do it to configure it to unlock just by resting your finger on the Home button. Go to Settings → General → Accessibility → Home Button and enable Rest Finger to Open.

This way, you can speed up the process of unlocking your iPad and making it ready for use. Once the setting is enabled:

If your iPad screen is turned off, simply pressing the Home button will both wake and unlock it.
If your iPad screen is awake, just resting the finger will unlock it and get it ready to use.

The aforementioned (picking up the iPad, while keeping your registered finger, generally thumb, on the Home button) is the fastest you can go from picking up your iPad to taking it to the unlocked usable state.

Additionally, with the screen awake, you can swipe left to launch the Camera app. The iPad mini 5 also works with Apple Pencil 1st generation. Thus, tapping on the screen with the Apple Pencil will directly launch the Notes app with a new note.


What do MacBook Pro 2020 model codes mean? I found several codes of current MacBook Pro 16” models. What do these codes mean? I plan to buy a new MB Pro 16” in late 2020-beginning 2021 and I’m in a bit of confusion how to read these codes, what model should I choose. I want as the latest model as possible. Late 2020 or early 2021.
Z0XZ006V9
Z0XZ006WV
Z0XZ006X3
Z0XZ006VC
Z0XZ006WT
Z0XZ008LG
Z0XZ008LE
Z0XZ008LJ

There's no 2020 or 2021 model of the 16" MacBook Pro currently. The 16" MacBook Pro only exists as the Late 2019 model - there are no others.
The codes you have refer to various build-to-order variants. For example you can buy the 16" model with 16 GB RAM, 32 GB or 64 GB RAM, there's 3 different CPU models, 3 GPU variants, 5 SSD sizes, and so on.


Updating OSX in Mac Mini I recently purchased a Mac Mini late 2012 Ivy bridge 2.3ghz i7 quad core and upgraded to 16GB memory.  I understand the pre-installed OS is 10.8.1 (12B2080).
I could update to OS 10.10 but I want to ask the question if I need to.
I am a basic user making the switch from Win XP.  My thoughts are, "if it ain't fixed, don't broke it".  I am mostly concerned with updating for security, but dont wany any system conflicts.

Apple doesn't support its OSes as long as Microsoft supported XP.

Wise advice would be possibly "Don't jump right now, but don't leave it too long"

It's always wise to wait until applications are updated to support a new OS & initial bugs are ironed out, so waiting for 10.10.1 would be a sensible precaution, but you don't really want to hold off until it's so out of date that if you upgrade nothing you currently own will run.


Messages issued by syslog not showing up in system logs I'm having some trouble with <syslog.h> in 10.5. I'm writing a small fork based server for class and I want to use syslog() to print a bunch of debug info. However, I can't find any of the messages I issue via syslog() while using Console (I'm looking in both all messages & system.log).

Here is a code snippet of a plain C:

#include <syslog.h>
#include <stdarg.h>

int main (int argc, const char * argv[])
{
    openlog("Syslog Test", LOG_PID | LOG_NDELAY | LOG_CONS | LOG_PERROR, LOG_USER);
    setlogmask(LOG_UPTO(LOG_DEBUG));
    syslog(LOG_DEBUG, "%s", "Hello, World!");
    syslog(LOG_DEBUG, "%s", "And goodbye!");
    closelog();
    return 0;
}

And I don't see anything in "All Messages", "Console Messages" or system.log. Any advice?

Despite what you pass to setlogmask(), in its default configuration, OS X will only write messages to the system log that have a priority of LOG_NOTICE or higher.

Any of the following will solve your problem...

Enable lower-priority logging in /etc/syslog.conf -- kern.* is not enough, as log messages from Xcode are not coming from the kernel
Change the priority of your messages from LOG_DEBUG to LOG_NOTICE
Simply use the built-in Xcode console -- the output will always appear there regardless of your syslog.conf settings

Here's what it looks like in the built-in Xcode 4 console:

Also, if you're developing exclusively for OS X, you might want to look into ASL (Apple System Log), which was meant to replace syslog().


Automator - Shell Script - ffmpeg: image sequence to video Terminal can generate video from PNG seguence (0001.png, 0002.png, ...) via ffmpeg:

ffmpeg -i %04d.png -r 24 -codec prores output.mov

But how can I tell ffmpeg use for input image sequence in Automator? With this variable it's not working:

for f in "$@"
do
    /opt/local/bin/ffmpeg -i "$f" -r 24 -codec prores ~/Desktop/output.mov
done

Looks like variable is for file than for sequence ... Log list looks like script runs 10 times for sequence of 10 images. Error probably comes from second and all others loops where is asking for overwriting existing. I was able to create video only with full path to image sequence like ~/Desktop/PNG_Folder/%04d.png, but thats not solution. Script was asking 9 times for overwriting anyway (skipping error with -y hides error but keep loop process) and I need of course to use files selected from Finder, not specified in full path written in a script :) Here is a screen of Automator just to be sure other things are set right. Thank you for help.

Plus: original Terminal command lets generate video into image sequence directory. Is this possible also with Automator's Shell? Also variable would be better if can be set for any file name and more formats than PNG (JPEG, EXR, ...?) t be more versatile. Thank you.

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.


unallocated space on disk0 under Mavericks I have the same kind of issue than here :
Create new partition in unallocated space with diskutil

but on disk0 ! I don't know what to do anymore :(

So i can't modify anything with gpt.
I had Ubuntu installed on a partition, deleted it with Disk Utility which got stuck during the process, had to force quit. Reboot the mac, and that's when it became weird :

Recovery HD was no more hidden and mounted as a standard partition on my Desktop, 20GB of the former Ubuntu partition vanished !

I tried the functions activated in the Debug Mode of Disk Utility, resetting PRAM, BootCamp tells me "the startup disk cannot be partitioned or restored to a single partition", and nothing different when booting on Recovery HD to use Disk Utility.

Macbook-Pro-de-Ced:~ Ced$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                  Apple_HFS Mac                     478.2 GB   disk0s1
   2:                  Apple_HFS Recovery HD             650.0 MB   disk0s2
Macbook-Pro-de-Ced:~ Ced$ sudo gpt -r show disk0
Password:
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34     409606
     409640  934013608      1  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  934423248    1269536      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  935692784   41080351
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header

Error while trying to repair disk :

Screens from Disk Utility :

I don't even have the grey zone for the unallocated space like on this post : How can I resize a partition with Disk Utility?

Wasn't exactly feeling like modifying the GPT table via the terminal with all my data on the disk, so I just completely erase the disk after backing up my data and reinstall OS X booting on a USB stick with Mavericks on it :

Everything is back to normal :)


How do I end dictation without using my mouse, and without triggering unintended shortcuts? As far as I know, to terminate hands-free voice dictation mode one must use their hands -- either by clicking 'Done', or by pressing Command + D.

However, pressing Command + D also executes the application shortcut associated with that key combination. (eg, in a web browser you trade your dictation dialog for a bookmark dialog)

How can I end dictation mode using my voice?

Is there an official way to exit dictation without using a mouse?

Is there a way to return to Speech Commands once I've successfully used Speech Commands to start dictation mode? (eg, to get the words 'Computer, open Calendar' to open the calendar like usual instead of merely typing those very words into the document in focus)

It's currently not possible to close dictation using voice command. From Apple page: http://support.apple.com/kb/HT5449?viewlocale=en_US&locale=en_US

  When finished, click Done or press the fn key again. Your spoken words then appear in the text field.

The same is for Enhanced dictation

  Enhanced Dictation automatically stops listening when you switch to another window, or if you press the Fn key again, or when you click Done.


Setting 8-bit/16-bit color depth on macOS without using commercial apps Can I set 8-bit/16-bit color depth system-wide without buying commercial software (e.g. Display Maestro)? I would preferably do this by editing system files, but a free app is OK too.

Check out displayplacer: https://github.com/jakehilborn/displayplacer

It's a command line utility, but it works great and is quite simple to use. Example:

> displaypacer list
> displaypacer id:<UUID> res:3008x1692 hz:60 color_depth:8 scaling:on

And as a CLI utility you can easily script it.  For example: When I switch off of AC power, I have a script which automatically calls displayplacer to switch my resolution to the default retina resolution giving me very slightly improved performance/battery life)


osx cancel startup applications from login window I am positive there is some official Apple documentation and link for a list of different keys one can press during the login window (not the startup) that will do some different action. In particular I am looking for the one that would cancel the reopening of applications, even if at shutdown one said to reopened them. I saw this online the other day, but can't seem to find it again.

Any help is greatly appreacited! Thanks.

Click the account you want to login to, enter the password, hit Enter and immediately press and hold the Shift key. You may also hit Shift+Enter once you’ve typed the password, and you will have similar results.


Revert encryption error I'm trying to revert the encryption on my disk, but Disk Utility gives me an unknown error, and from the command line, using

sudo diskutil corestorage rever UUID

It gives me this error:

  Error: -69741: The target disk isn't eligible for reversion because it wasn't created by conversion or it is not part of a simple setup of exactly one logical and one physical volume

The hard disk is encrypted by me, so I know the passphrase (which is asked soon after the command, before the error). It's the main disk, on which the OS is installed, and encrypted with FileVault 2.
I recently updated to Mountain Lion Developer Preview. I know this could be a bug, since it's a DP, but in my opinion the problem is related to the upgrade itself and it would be present even if I updated from SL to Lion or something similar.

This is part of the output of the diskutil corestorage list:

|   +-> Logical Volume Family UUID
|       ----------------------------------------------------------
|       Encryption Status:       Unlocked
|       Encryption Type:         AES-XTS
|       Conversion Status:       NoConversion
|       Conversion Direction:    -none-
|       Has Encrypted Extents:   Yes
|       Fully Secure:            Yes
|       Passphrase Required:     Yes
|       |
|       +-> Logical Volume UUID
|           ---------------------------------------------------
|           Disk:               disk1
|           Status:             Online
|           Size (Total):       499097100288 B (499.1 GB)
|           Size (Converted):   -none-
|           Revertible:         No
|           LV Name:            Macintosh HD
|           Volume Name:        Macintosh HD
|           Content Hint:       Apple_HFS

As you can see, it also says Revertible: No.

What should I do?

Reversibility of encryption depends on whether you converted volume to encrypted one or created encrypted volume. So if you want the process to be reversible — create disk first, then encrypt it using diskutil. From this it seems that in your case you should copy all data to another disk, erase this one (creating unencrypted partition), encrypt it and move data back.


Can I copy xcode from my applications folder to external hard disk? I downloaded xcode from the Mac App store on my home computer and it installed to around 11 GB on my applications folder. I tried copying the xcode app from the applications folder to my external hard drive where I was stopped mid-way and the error said some items can't be moved to due permission issues (that's not exactly what the error said but something like that). Is there any solution?

Have you reviewed the helpful details in this question?

I have successfully moved Xcode to a different drive (though in my case an internal SSD), but as the answer says a simple move doesn't quite sort everything out, and you need to fix where various Command Line Tools think the install is. The problem with permissions is probably not due to it being an external drive. You need to get enough permissions to move files, which you can do at the command line ('terminal' application). If you don't know how, then look for help on moving and relinking directories in OS X and proceed carefully having practiced on tiny directories first, having taken a backup.

PS I can't comment on the question, wpbut I think your mean move not copy which makes a big difference.


Parallels 9 network establish 2 different network connections I am using Parallels 9 to run Windows on Mac with Mavericks.
and I'd like to connect my Mac and Windows to different networks.

I have connected Windows using ethernet connection but want to connect Mac via WiFi. Can anyone please help me on how to achieve this?

I solved the issue.

Soln:

Open System Preferences, select "Network".
Click "Assist Me".
In drop down menu, select "Diagnostics".
Chose preferred network port configuration.
Click "Continue" to finish.


OS X Server leaves some unwanted open ports after removal I am currently running OS X Version 10.9.5 (Mavericks).
In the past I installed OS X server and had to sign some certificates so that users could authenticate with the VPN function (which is what I mostly used the server for), and later I removed OS X server from the OS.

However, upon further inspection some months later, I noticed that there were still traces of those certificates and/or services were still running unnoticed. I did an nmap scan against my machine to reassure myself that my observations were indeed correct. And correct they were. Here's the scan:
http://pastebin.com/raw.php?i=B3vbG8q6

So I looked around the web for some answers... came across a few that said I should remove the certificates from my Keychain Access, which I tried. That didn't work, got the same exact nmap scan result.

Then I thought that maybe there was a process (or processes) running that related to those open ports. In terminal I did:

  sudo lsof -i :625

and

  sudo lsof -i :636

and same with ports 749 and 3659 to get the processes that were associated with them.

Then I did:

  sudo kill -9 PID

but it became apparent that those were persistent processes after conducting another nmap scan and further lsof -i commands, only to find myself looking at different numbers under PID :/

My desired result is for the mmap scan to not show any traces of there being a server on my system, or even a server installed in the past. I've looked everywhere and the very few clues that I've found didn't get me what I need.

Any help would be appreciated. Thanks in advance.

Just removing the Server.app (3.2.2) for 10.9 Mavericks isn't enough. You also have to unload several launch daemons.

By comparing all "System LaunchDaemons" in a basic Server.app install and an LDAP/VPN environment in two different VMs I assume that the following system launch daemons have to be unloaded permanently:

org.openldap.slapd
com.apple.xscertd-helper
com.apple.xscertd
com.apple.xscertadmin
com.apple.PasswordService
com.apple.odproxyd
org.apache.httpd

The most comfortable tool to do this is probably LaunchControl.

To completely remove all files and folders created by installing, launching and configuring Server.app I have to compile a list of files and folders to delete first (which will take some time).

Here is a list of newly created files and folders after installing and configuring OpenLDAP and VPN in Server.app (3.2.2):

/System/Applications/Server.app/
/System/Applications/Workgroup Manager.app/
/System/Library/LaunchDaemons/com.apple.serverd.plist
/System/Library/Logs/EventMonitor/
/System/Library/Logs/EventMonitor/EventMonitor.error.log
/System/Library/Logs/Mail/
/System/Library/Logs/PasswordService/
/System/Library/Logs/PostgreSQL/
/System/Library/Logs/ProfileManager/
/System/Library/Logs/radiusconfig.log
/System/Library/Logs/Server
/System/Library/Logs/ServerSetup.log
/System/Library/Logs/Setup.log
/System/Library/Logs/slapconfig.log
/System/Library/Logs/WebDAVSharing.log
/System/Library/Logs/WebServer
/System/Library/Preferences/com.apple.AccountsConfigServer.plist
/System/Library/Preferences/com.apple.AppleFileServer.plist
/System/Library/Preferences/com.apple.openldap.plist
/System/Library/Preferences/com.apple.serverd.plist
/System/Library/Preferences/com.apple.servermgr_accounts.plist
/System/Library/Preferences/com.apple.servermgr_info.plist
/System/Library/Preferences/com.apple.servermgrd.plist
/System/Library/Preferences/edu.mit.Kerberos.kadmind.launchd
/System/Library/Preferences/edu.mit.Kerberos.krb5kdc.launchd
/System/Library/Preferences/OpenDirectory/Configurations/LDAPv3/
/System/Library/Preferences/OpenDirectory/DynamicData/…………….plist
/System/Library/Preferences/OpenDirectory/DynamicData/LDAPv3/
/System/Library/Preferences/SystemConfiguration/autodiskmount.plist
/System/Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist
/System/Library/PrivilegedHelperTools/com.apple.serverd
/System/Library/Security/Trust Settings/
/System/Library/Server/
/System/private/etc/af.plist
/System/private/etc/asl/com.apple.server.asl
/System/private/etc/bootpd.plist
/System/private/etc/certificates/Server Fallback SSL Certificate… #several
/System/private/etc/certificates/Code Signing Certificate… #several
/System/private/etc/certificates/fqdn.…………….cert.pem
/System/private/etc/certificates/fqdn.…………….chain.pem
/System/private/etc/certificates/fqdn.…………….concat.pem
/System/private/etc/certificates/fqdn.…………….key.pem
/System/private/etc/emond.d/state/
/System/private/etc/krb5.conf
/System/private/etc/newsyslog.d/com.apple.devicemgr.conf
/System/private/etc/newsyslog.d/com.apple.mailservices.conf
/System/private/etc/newsyslog.d/servermgr_calendar_log.conf
/System/private/etc/openldap/rootDSE.ldif
/System/private/etc/openldap/slapd_macosxserver.conf
/System/private/etc/openldap/slapd.conf
/System/private/etc/openldap/slapd.d.backup/
/System/private/etc/openldap/slapd.d/
/System/private/etc/paths.d/com.apple.server
/System/private/etc/pear.conf
/System/private/etc/php.ini
/System/private/etc/php.ini-5.4-previous
/System/private/etc/postfix/aliases.desktop
/System/private/etc/rc.server
/System/private/etc/rc.server.firewall
/System/private/tftpboot/NetBoot/
/System/private/var/db/.ServerSetupDone
/System/private/var/db/af/
/System/private/var/db/BootCaches/……………/app.com.apple.Server.v3.playlist
/System/private/var/db/dovecot.fts.update/
/System/private/var/db/emondClients/com.apple.server
/System/private/var/db/krb5kdc/
/System/private/var/db/launchd.db/com.apple.launchd.peruser.220/
/System/private/var/db/launchd.db/com.apple.launchd.peruser.70/
/System/private/var/db/launchd.db/com.apple.launchd.peruser.93/
/System/private/var/db/launchd.db/com.apple.launchd.peruser.94/
/System/private/var/db/net-snmp/
/System/private/var/db/ntp-kod
/System/private/var/db/openldap/authdata/
/System/private/var/db/openldap/replication/
/System/private/var/db/receipts/com.apple.WorkgroupManager.bom
/System/private/var/db/receipts/com.apple.WorkgroupManager.plist
/System/private/var/db/ServerPerfLogClients/com.apple.server
/System/private/var/db/systemstats/…………….boot.events.….stats
/System/private/var/db/systemstats/…………….powerd.events.….stats
/System/private/var/db/systemstats/…………….system_events.events.….stats
/System/private/var/db/systemstats/…………….system_events.periodic.….stats
/System/private/var/dovecot/
/System/private/var/folders/zz/
/System/private/var/log/apache2/accept.lock.710
/System/private/var/log/apache2/access_log
/System/private/var/log/apache2/error_log
/System/private/var/log/apache2/rewrite.lock
/System/private/var/log/caldavd/
/System/private/var/log/caldavd/agent.log
/System/private/var/log/caldavd/certupdate.log
/System/private/var/log/caldavd/migration.log
/System/private/var/log/caldavd/postgresql/
/System/private/var/log/caldavd/postgresql/postgresql_1.log
/System/private/var/log/caldavd/servermgr_calendar.log
/System/private/var/log/caldavd/xpg_ctl.log
/System/private/var/log/com.apple.launchd.peruser.220/
/System/private/var/log/com.apple.launchd.peruser.70/
/System/private/var/log/com.apple.launchd.peruser.93/
/System/private/var/log/com.apple.launchd.peruser.94/
/System/private/var/log/com.apple.launchd/…………….launchd.events.….stats
/System/private/var/log/devicemgr
/System/private/var/log/eventmonitor/
/System/private/var/log/eventmonitor/StoreData
/System/private/var/log/getsslpassphrase.log
/System/private/var/log/krb5kdc/
/System/private/var/log/localemanager.log
/System/private/var/log/mail.log
/System/private/var/log/ppp/vpnd.log
/System/private/var/log/radius/
/System/private/var/log/servermgrd.log
/System/private/var/log/slapd.log
/System/private/var/log/swupd/
/System/private/var/log/xscertd.log
/System/private/var/pgsql_socket/
/System/private/var/run/caldavd/
/System/private/var/run/httpd.pid
/System/private/var/run/jabberd/
/System/private/var/run/kadmind.pid
/System/private/var/run/kdc.pid
/System/private/var/run/kpasswdd.pid
/System/private/var/run/ldapi
/System/private/var/run/passwordserver
/System/private/var/run/racoon.pid
/System/private/var/run/racoon/
/System/private/var/run/servermgrd.pid
/System/private/var/run/slapd.args
/System/private/var/run/slapd.pid
/System/private/var/run/vpnd-L2TP.pid
/System/private/var/servermgrd/
/System/Users/username/Library/Caches/com.apple.Server.v3/
/System/Users/username/Library/LaunchAgents/
/System/Users/username/Library/LaunchAgents/com.apple.serveralertproxy.plist
/System/Users/username/Library/Preferences/com.apple.Server.v3.plist
/System/Users/username/Library/Preferences/com.apple.ServerAssistant.plist
/System/usr/bin/pear
/System/usr/bin/peardev
/System/usr/bin/pecl
/System/usr/lib/php/.channels/
/System/usr/lib/php/.depdb
/System/usr/lib/php/.depdblock
/System/usr/lib/php/.filemap
/System/usr/lib/php/.lock
/System/usr/lib/php/.registry/
/System/usr/lib/php/Archive/
/System/usr/lib/php/Console/
/System/usr/lib/php/data/
/System/usr/lib/php/doc/
/System/usr/lib/php/OS/
/System/usr/lib/php/PEAR.php
/System/usr/lib/php/PEAR/
/System/usr/lib/php/pearcmd.php
/System/usr/lib/php/peclcmd.php
/System/usr/lib/php/Structures/
/System/usr/lib/php/System.php
/System/usr/lib/php/test/
/System/usr/lib/php/XML/
/System/usr/lib/sasl2/openldap/digestmd5WebDAV.la
/System/usr/lib/sasl2/openldap/digestmd5WebDAV.so
/System/usr/lib/sasl2/openldap/libcrammd5.2.so
/System/usr/lib/sasl2/openldap/libcrammd5.la
/System/usr/lib/sasl2/openldap/libdigestmd5.2.so
/System/usr/lib/sasl2/openldap/libdigestmd5.la

keys:

/: if a line ends with a / the whole folder or app and its content is newly created
username: your username
……………: some arbitrary UUID or digits/letters > 8
…: some arbitrary digits/letters < 8
fqdn: full qualified domain name

Despite the greatest care taken in the creation of this list I cannot guarantee its accuracy. Delete those files at your own risk.


Lion won't start after EFI update I installed the new EFI update for my MBA Mid 2011 (the software updater said it is recomended). The update went fine and restarted the mac afterwards.

Then while booting the apple logo turns into a grey forbidden sign and nothing happens from there. I turned the mac off and tried again. Same thing.

Then I booted the recovery partition and tried to repair my disk. It says that it can't repair the disk because it is corrupted.

An ideas but erasing the disk?

The only thing that may work for you is this (although, I wouldn't get your hopes up):

  Start your computer and hold the ⌘ + S keys to get into Single User mode.
  Once you're in Single User mode, type in unmount -uw / and press enter.
  Now, type in fsck -fy and press enter. It should go through several stages of checking and repairing the file system.

  It will most likely give you an error stating that it cannot be
  completed for some reason, but it's worth a shot.

Alternatively, if the issue is isolated to the file structure, you can try doing a reinstall of Mac OS X from the recovery partition. Doing just a reinstall should not erase any of your data.

However, you may want to try to back up your computer first. The only way that I can think of to do this on a MacBook Air 2011 is to use Thunderbolt target disk mode. This will require that you have access to another Thunderbolt equipped Mac as well as a Thunderbolt cable.

If you don't, I'd take a trip to the Genius Bar at your nearest Apple Store. They'll have the extra Mac and equipment necessary to do this. If they/you decide to do this while you wait at the Genius Bar, expect to be there for a couple hours just in case. If they/you decide to leave it with the Geniuses, there is a $99 data transfer fee that they'll most likely charge you.

The only other option is to:

  Boot your Mac to the recovery partition
  Open Disk Utility from the Utilities menu
  Follow these steps to erase your SSD
  Reinstall Lion on your MacBook Air


So Apple A7 is “System on chip or” or “CPU”? Very confused, in some websites, they have this line:

iPhone 5s

CPU: Apple A7

other websites saying that:

iPhone 5s
System-on-chip: Apple 7
CPU: 1.3 GHz 64bit dual core

other sources saying that

iPhone 5s
System-on-chip: Apple 7
CPU: 1.3 GHz 64bit dual core Apple 7

in Wiki, it said:

  The Apple A7 is a 64-bit system on a chip (SoC) designed by Apple Inc.
  It first appeared in the iPhone 5S, which was introduced on September
  10, 2013. Apple states that it is up to twice as fast and has up to
  twice the graphics power compared to its predecessor, the Apple
  A6. While not the first 64-bit ARM CPU, it is the first to
  ship in a consumer smartphone or tablet computer.

There are 2 sentences:

The Apple A7 is a 64-bit system on a chip (SoC)

&

  While not the first 64-bit ARM CPU

Wiki also said The A7 features an Apple-designed 64-bit 1.3–1.4 GHz ARMv8-A dual-core CPU, called Cyclone

So System on chip is also CPU? very confused

Then other source compares System on chip and CPU, they said "CPU will not work without other around components" & "System on chip is the combination of CPU & other components into a single chip."

A SOC contains more elements than just the CPU (graphics capabilities, sound, IO controllers etc), but the CPU is by far the largest, most complex component within it.  A SOC can be referred to as the CPU, because that's where it is (the rest of the contents  of a SOC are more variable, but there has to be a CPU), but obviously not all CPU can be classified as a SOC.


How do I copy (or clone or duplicate or make a template) user account? In Mac OS X Lion (10.7.3), is it possible to create a new user account with settings identical to an existing user account?  Or put another way, is it possible to set-up a user account template?  I do not want to duplicate all of my documents, music, and photos.  Rather I would just like to create a new user account that has all / most of the settings and preferences that I have customized and tweaked over many months in my existing account.

My goal is to maintain two separate accounts:  one for personal use and one for work use.  My office shares files over Dropbox, and I'd like to sync all those on my Mac, but I'd rather not intermingle them with my personal documents.

I've seen a few suggestions online that use Terminal to copy my existing account's home folder to a new directory with a different shortname.  But (1) that solution might be outdated, and (2) it seems like it might duplicate documents, music, and photos.

I realise you are not looking to duplicate all of your files, but this method is quick and at the end you can just delete the files you don't want on the new account. To create a duplicate account based on the settings of your current account, try this:

Making a Time Machine backup of the current account.

  No extra disk for backing up? Go to Disk Utility and create a partition on your current disk. Assuming you have space (I will, since you are looking to add an additional user account), you can add a partition to your startup disk without losing any data (you can also remove it or change the size after you are done). Make this new partition your Time Machine backup disk.

Launch the Migration Assistant utility (search for it in Spotlight).
In Migration Assistant, indicate that you want to import settings from a Time Machine backup.
In Migration Assistant, select to import the user account from the backup.
Because the name is the same as your current account, Migration Assistant will prompt you to rename the account.
Continue the migration and your new user account will be made–a duplicate of the current account except for the username.

I'm doing this right now in Lion and it is working a treat. Good luck.


How to display (small) image previews at actual size? After upgrading to Lion, I'm finding that Finder is stretching the preview of smaller images (~100 pixels), which is making them look terrible.

Is there a setting somewhere I can check to have small images show at actual size?

You can press the space bar to open Quicklook; it opens quite fast, and you can still use the arrow buttons to navigate through your images.


macOS isn't using my configured dummynet I would like all UDP traffic on my localhost to have 1% packet loss, 5 ms propagation delay. I thought I could use macOS' built-in dummynet for this.

I ran at the terminal

sudo dnctl pipe 1 config bw 10Mbit/s delay 5 plr 0.01
echo "dummynet out proto udp from any to any pipe 1" | sudo pfctl -f -

sudo pfctl -sa and sudo dnctl list show the expected outputs (the rule seems to have been added).

DUMMYNET RULES:
dummynet out proto udp all pipe 1

00001:  10.000 Mbit/s    5 ms   50 sl.plr 0.010000 0 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000

Now I expect all udp traffic to be slowed.

I am developing a UDP app, testing it on localhost between a client program and a server program. The UDP traffic is clearly not having any dropped packets even though I would like to simulate 1% dropped packets.

By default, pf is not enabled on modern macOS. You'll need to enable it first by running this command:

sudo pfctl -E

If you prefer a graphical interface instead of the command line interfaces for dummynet and pf, you can use Apple's "Network Link Conditioner" instead.

You can find it in the "Additional Tools for Xcode" package. If you have Xcode installed, it can be downloaded from within Xcode - otherwise you can download it directly from Apple's developer page (you do not actually need to have Xcode installed).

After downloading, you'll find it in the Hardware folder as a preference pane you can double click to install.

From the preference pane, you can enable/disable the link conditioner, choose which interface to have an effect on, and specify what you want to simulate (such as limited bandwidth, dropped packets, delays, etc).


Has Apple made any announcements that they will patch Krack on iOS 10-only devices? Has Apple made any announcements that they will patch Krack on iOS 10-only devices?

Has Apple made any announcements that they will not patch Krack on iOS 10-only devices?

The answer to both questions is... probably. :/

There seems to be some speculation as to whether it has or hasn't but there's a very detailed post on Stack Exchange's security site: https://security.stackexchange.com/questions/172721/did-ios-11-1-fix-krack-for-only-iphone-7-and-newer


FireWire to Thunderbolt Adapter I would like to connect a third display to my Mac Mini Late 2012. Since I'm already using the HDMI and Thunderbolt I'll have to use something else. I read in a couple of forums that you can connect another monitor using some kind of external graphics card and a USB slot.
Now, I thought about using the FireWire slot. I found an Apple adapter the other way around but is there an adapter with Thunderbolt input that I can plug into the FireWire?

OR:

I saw that the new Mac Mini has a second Thunderbolt slot, instead of the FireWire. Is there a way to modify my Mac Mini to make it have 2 Thunderbolts as well?

Thanks in advance

You can use a DisplayLink adapter to connect another monitor via USB; see here for the varieties available.

The Apple Thunderbolt to FireWire adapter only works in that direction; it will not convert FireWire to Thunderbolt.

You cannot modify your mini to have another Thunderbolt port. You can get a Thunderbolt dock that will give you a monitor port and another Thunderbolt port on the dock, which might also work, but is more expensive than DisplayLink (make sure to get a dock that will "daisy-chain".


Saving .mp4 file to iCloud drive, saying need more space but drive saying 147GB available! I have Macbook Pro, Sierra, 10.12.6.  I have activated iCloud and it shows I have 147GB available.  I am trying to copy 20GB .mp4 files to the iCloud and it is telling me I am out of space???  How do I get it to download to the iCloud storage I just upgraded to???

If you've just upgraded your iCloud storage you may need to restart your system for it to notice the additional storage.


Dictation bug: variations of 'catch' appear without being spoken anything Strangely, on my iPhone 11 with latest iOS 13 updates, an annoying bug has crept in. If i use dictation, which I do all day, the word “catch” or variations of it will pop into the message. Frequently this occurs even if nothing has been said. And I can’t speak a paragraph without “catch” showing up in there.

A little paranoia creeps in, and it has me wondering if some kind of surveillance monitoring is involved, like someone is initiating a command of “catch” which is causing my text to to recorded lol. I realize that is probably just crazy talk!

Any idea what’s what the problem/solution might be?

A few users over in the Apple support community discussion group have brought up this problem within the past week. It has everybody stumped over there too.
Other than your post here, and the three or four posters over there, I haven’t seen much noise being raised about this bug.
The way it is driving it’s victims crazy, I expect this bug will raise the noise level enough to get even apples attention.
 As for me, it’s making my iPhone nearly unusable. I can’t find any way to make it happen or to make it stop happening. I can barely believe that I have dictated this entire long post without the word catch being inserted somewhere.


Applescript: Help with idle and hiding from finder? I'm trying to get my script that works to do 2 things: run in the background every 60 seconds, and disappear from the finder and the dock.

Original:

tell application "System Events"
    set process_list to the name of every process
    if "QuickLookUIService" is in process_list then
        set ThePID to unix id of process "QuickLookUIService"
        do shell script "kill -KILL " & ThePID

    end if

end tell

When I try the following code for idle, the script stops working.

on idle

    tell application "System Events"
        set process_list to the name of every process
        if "QuickLookUIService" is in process_list then
            set ThePID to unix id of process "QuickLookUIService"
            do shell script "kill -KILL " & ThePID

        end if

    end tell
return 60
end idle

And when I add this code to hide from finder, nothing happens. Ideas?

tell application "Finder"

    set visible of process "killQuickLook" to false

end tell

I stumbled across this link that provides a step-by-step guide to implementing the solution to this problem using launchd.

For convenience, I've copied and formatted the relevant contents of the linked page below.

  How to fix QuickLookUIService memory/CPU issues in High Sierra

  If you're having issues with high memory (or CPU) usage on High Sierra, this is the result of a bug with the QuickLookUIService which appears to have been introduced in that version and which unfortunately has not yet been fixed. The only workaround right now is to repeatedly force quit the quicklookuiservice.

  Create a new file in your favourite text editor (if you use Apple's Text Edit, make sure the file is in plain text format)
  Paste the xml at the end of these steps into the file
  Rename the file to the same as what's within the <string> tags with a .plist extension (in my example, com.zerowidth.launched.killquicklook.plist)
  Copy the file to your library in the LaunchAgents folder (in Finder you can use Go > Go to folder > /Users/[yourusername]/Library/LaunchAgents. You may need to type an administrator password to authorize this action
  After your next login/restart, you should find the memory issues caused by this to be back to normal. If you ever want to remove the service, just delete the plist file

  Some explanation of what this does

  A launch agent is a service that helps manage applications in Mac OS. In this case, we've written our own small launch agent program that kills the quicklook service repeatedly at an interval (the killall -9 -v QuickLookUIService part). The name of the service is within the  tags (you can call it what you like) and the interval is within the <integer> tags (in my case, 5600 seconds). Feel free to change the interval to whatever works best for you (if you set it higher, it will interfere less with your normal use of preview, but also allow the service to use more memory). As a final note, bear in mind that if you are previewing a document when the service restarts, the preview will fail (you can just preview again immediately).

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.zerowidth.launched.killquicklook</string>
        <key>ProgramArguments</key>
        <array>
            <string>sh</string>
            <string>-c</string>
            <string>killall -9 -v QuickLookUIService</string>
        </array>
        <key>StartInterval</key>
        <integer>5600</integer>
    </dict>
</plist>

Note: Expanded to answer from comment dated Dec 10 '18 at 20:29


Enabling/disabling applications based on a "profile" in Mac OS X? Is there a tool built-in or third party that allows me to turn start up or shut down applications based on setting that I choose for a give time? For example, I usually run Dropbox, Google Drive, and a backup manager on start up. However, if I go to a coffee shop to work, I would like to preserve battery and bandwidth, so I would turn off non-essential Dropbox and Google drive.

So instead of manually turn off and on applications, is there a tool that allows me to do that just by selecting a "profile"?

That's a good question - gave me a bit of head scratch. My initial answer (I will come with something else once I contemplate on that a bit)  would be onefor myself. I personally prefer terminal/bash to solve most of my OS X problems and belive me, most of them can be done very efficiently from the terminal ;)

That being said, I would write very short, very basic, bash scripts (re)starting / starting the software running in background you mentioned depending on the need.

You could play around with launchctl and make some jobs for that that will shut down/re-enable jobs for you but after you hit man launchctl you will probably realise that there is nothing wrong about killall -HUP in the end ;) There are very good tools to tame launchctl – one being lingon, which I also use for more resilient (read annoying) software like adobe's updates etc. to turnoff and disable.

Profiles, similar to ehh... Windows profile does not exist in the user space, there is no registry or anything like that - os x user resides in its userspace (and for that i'm eternally thankful) so you can (like I do) have for exampel, 2 different local user accounts, but they share their respective ~/Library (user settings/prefs) together - that is quite a nice thing to have and gives you a clean user without the need to synchronize settings between the two. I have a lot of my ~/Library/Preferences files and most of the ~/. so that might be an option for you, takes time but pays of double after you reinstall and have your old home in seconds after launching an re-link script.

Well, as for now I recommend the #!/bin/bash solution which is maybe not the most elegant but it surely is the fastest one to achieve, and writing a killall script for start/restarting/shutting down processes is a 20 min learn curve procedure.


Sound output device vanished This is the weirdest thing. I have an MBP 9,2 (10.12.3). I detached my headphones, closed the lid and then opened it again after 1h or so. Now I cannot change the system volume, here's what I see:

So I thought maybe this is the old problem where the computer does not realise the headphones have been plugged out, but inserting and detaching them again does not help. However, the red light inside the port is on, as in the case of the aforementioned bug.
The strange part is that in the Sound Preferences, I now see this:

there used to be an item Internal Speakers and clearly, the laptop doesn't have optical sound output.

Can anyone suggest what the cause and fix might be?

What I've tried:

Rebooting (didn't help)

You may be able to troubleshoot this by opening "Audio MIDI Setup" from /Applications/Utilities/Audio MIDI Setup.app, then you should be able to add devices from this location. I suspect that somehow, the Built In Output is removed from the list, and the little + sign in the bottom corner may be able to add the support for the device again.

Best of luck!


How to turn off autocorrect for iPhone 6 Mail? Here's what I've tried:

Open the “Settings” app on the iPhone
Go to “General” and then to “Keyboard”
Locate “Auto-Correction” and flip the switch to OFF

This disables autocorrect for all apps, with the exception of Mail

The emails are still being autocorrected. How should I turn off autocorrect for the iphone 6 default Mail application

My IOS version is 10.3.2

Make sure you’re using the apple keyboard.
Since keyboard setting changes made in the Settings apps only apply to be built-in Apple keyboard, you’ll need to make sure that you’re using it. Touch and hold the globe key on your keyboard to change back to your Apple localized keyboard.
You could also disable autocorrect in the companion app for your custom keyboard, in your case the SwiftKey app.


how can i get iPhoto pictures back after factory reset on MacBook Pro I have done a factory reset on my MacBook Pro because it was slow. Now i have lost my pictures on iPhoto. The pictures were not backed up on iCloud.
How can i get iPhoto pictures back?

If we assume that you do not have a Time Machine backup, you cannot. If you can enter Time Machine, you may be able to restore your iPhoto library in ~/Pictures/iPhoto Library.


Multiprocessing in Mac OS X Would Mac OS X be able to distribute processes to the various cores in an Intel i7 Quad Core processor even if the applications are not multi-threaded?

A thread is what the OS sees and what it schedules on a core to run.

Programs can be single-threaded or multi-threaded. Programs can also spawn other programs and communicate with them via process-level I/O techniques like pipes or file handles, etc. But from the OS' perspective these sub-programs are still just collections of threads. It doesn't really matter if the program is spawning multiple threads or if it's spawning sub-processes -- both approaches represent OS-level threads that the OS  will attempt to schedule and execute as efficiently as possible and possibly in parallel.

If you have multiple cores and a program's threads aren't being explicitly locked to a core, then the OS can try run them at the same time, in parallel, across all the cores it has available to it in the current machine. If you have multiple programs running, the OS will schedule all those underlying threads across all the cores it has available to it in the current machine.

Practically speaking there's some amount of I/O, inter-process or inter-thread communication and synchronization that needs to occur and this can cause OS-level threads to block and keep things from running truly parallel all the time. For example: two threads in a multi-threaded program might be pulling values off a shared stack to do some work, so access to the stack has to be co-ordinated to ensure everything is thread safe and that means only one thread can pop from the stack data structure at time. There's a bottleneck in the program's design that's limiting thread parallelism to one here and the OS can't help with that.

The same is true for programs that spawn sub-processes. There may be I/O or inter-process synchronization issues that prevent all spawned sub-processes from truly running in parallel all the time.


Web Sharing Apache Localhost - Access permissions I want to install phpMyAdmin on the native Apache webserver that is bundled with Mac OS X 10.6. I turned on Web Sharing in System Preferences. Yet, me fear is that my computer is granting access to everyone on the web.

Where are the user access restrictions for the Web Sharing / Apache webserver within Mac?
How to I restrict access for all computers except my own so that I can run applications on the localhost webserver (like phpMyAdmin).

As has been pointed out already, unless you are specifically forwarding http traffic from your router to your machine, your locally hosted stuff will only be available to you and the other computers on your local network.

To answer your question on restricting access to your webserver to just your machine. You can do this a couple of ways.

Remember, anytime you change apache configurations, you need to restart apache for those changes to take effect.

Method 1

If you want to limit everything on your local webserver to just your local machine, edit the file "/etc/apache2/httpd.conf". At approx line 195 you'll find a configuration block that looks similar to:

<Directory "/Library/WebServer/Documents">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks MultiViews

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

You are going to want to comment out the bottom two lines of that block and add in new rules

Deny from all

and

Allow from 127.0.0.1

that block should now look like:

<Directory "/Library/WebServer/Documents">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks MultiViews

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    #Order allow,deny
    #Allow from all
    Deny from all
    Allow from 127.0.0.1

</Directory>

Method 2

You can also use .htaccess files to limit who has access to a directory. In order for .htaccess files to work you first need to enable them. Open the same file I referenced in method 1 (/etc/apache2/httpd.conf) and go to the same configuration block I mentioned before (at approx line 195). You'll need to change (at approx line 215):

AllowOverride None

to

AllowOverride All

Once you have done that you can create a file called .htaccess in any folder on your web server with the following information:

Deny from all
Allow from 127.0.0.1

That will prevent anyone besides your local machine from accessing the contents of that folder or any of it's subfolders.

Conclusion

Method 1 has the benefit of not having to worry about accidentally deleting .htaccess files or worrying about multiple configurations. Method 2 makes it very simple to only restrict access to certain directories of your webserver.

Also note that the .htaccess file must include that period at the beginning of the file name (it's .htaccess not htaccess) and that when you want to view your local webserver you have to do so by going to http://localhost (you can't use [your computer name].local).


How to make Windows 10 run GT120 and GTX 980ti I can't make both cards work properly on Windows 10. Here's what I've tried.

I've got a successful Windows 10 installation over my Mac Pro (mid 2010) over Sierra, installed the boot camp drivers as recommended on this site. Everything is perfect.

My monitor is hooked to the GT 120 (to get access to EFI boot screen), Windows couldn't find the driver for it and found the GTX 980ti automatically. After the reboot request I could notice it wasn't working properly, the resolution screen was ok but you couldn't open any windows, they got stuck on the bottom bar and the icons beside the clock were missing.

Through the device manager, I uninstalled the GTX 980ti, asked for Windows to update the GT120 driver, it worked like a charm. After reboot Windows, it found automatically again GTX 980ti, installed it without asking for permission and requested to boot. Again, after booting we returned to the ground zero, GT120 didn't load the driver, and GTX 980ti remained with the same issue.

I'm not the Windows guy, so I do not even know if that is possible.

Please, any help would be welcome.

I have not used this tool for a while. When I did, the tool worked, but for me I found the tool badly designed and therefore difficult to use. Hopefully, Microsoft has improved this tool and you will have a better experience.

This tool will allow you to prevent an update from installing. See the Microsoft website: How to temporarily prevent a Windows Update from reinstalling in Windows 10. There will be a link to download the "Show or hide updates" troubleshooter package.


How can I find out how much internet data each app has used? There are a number of PC apps that do the trick, I've read trying to find one for mac. But none seem to do it for mac (Mountain Lion).

I have Little Snitch already and tried putting lsof -P -i -n | cut -f 1 -d " " | uniq into the Terminal, but both of these methods only shows what is using internet right at this moment. It doesn't, so to say, sum up all the data usage for the apps.

You can do this with Activity Monitor. You can run this in the background with the window closed and it will track the data usage for the apps and services.

In Mavericks, this is a separate Network tab, but you can add the Sent/Received columns to the view in Mountain Lion too.


Unable to delete the core storage local volume group Currently, I'm trying to delete one of my partitions but for some reason it's giving me this issue:

Does anyone know how I could go about clearing this?

Disk Utility won’t let you erase or repartition an encrypted CoreStorage volume until you unlock or decrypt. This can be an issue for a CoreStorage volume that will not let you either unlock or decrypt.

To help with this, the diskutil tool provides a way to quickly delete CoreStorage volumes. This includes the ability to erase encrypted CoreStorage volumes without first decrypting or unlocking them.

To do this, first run the following command:

diskutil cs list

This will give you with a list of the CoreStorage volumes on your system. Unless you have a Fusion drive or multiple encrypted drives, your encrypted drive should be the only one listed.

In the listing, you will want to select and copy the Logical Volume Group (LVG) alphanumeric UUID for your CoreStorage volume. The LVG should be the first UUID listed and it’s the one we want to delete.

Next, run the following command:

diskutil cs delete UUID_here

This will delete your CoreStorage volume and reformat it as an unencrypted HFS+ volume.


What hardware do you need to buy in order to publish apps to the iTunes/iOS App Store? For a company, in order to be able to publish an app for iPhone/iPad to the App Store what hardware does it need to register?

I know that you need to register your development devices. What is the minimum that you need to register? Is a MacBook Air enough? Or do you also need to register an iPhone, iPad?

I am just starting and I prefer to test it on friends devices, as I don't have the money to buy them now...

Technically, the submission of apps and music and books happens over a web page, so you don't need any Mac hardware to publish the end results of your creative work.

For iOS, the Xcode tools run only on Macs, so you simply need to pick a version of Xcode and find a mac that meets the minimum specs. Pretty much any mac made in the last 5 years is good enough. Do make sure the mac will run Lion as you won't want to be stuck on Xcode 3 for long. You do not need to have any iOS devices to submit an app to the App store.

However, having iOS devices is highly encouraged for testing and development, but you don't need one for publication. Testing on actual devices is very important for a quality app as there's no replacement for getting the gestures and the UI tweaked on a real device. Plus, the simulator isn't quite a perfect simulation, especially when it comes to memory, so you may miss bugs you would otherwise find on an iOS device. Apple will surely run your app on several devices and you will lose time and perhaps not be approved if you ship apps that run fine in the simulator, but not so well on real devices.

The simulator runs Intel Processor code, the devices run ARM code - so your one code project gets built into two apps - you only submit the iOS app for approval / distribution and it's better for you to test that exact build and find the bugs yourself rather then when the app is under review.


Does Silverlight for macOS support 64 bit? Does Silverlight for macOS support 64 bit?
If so, from what version?

If not, when will it?

Development of Silverlight ended back in 2013 except for security and bugfixes. It's been dropped from the major browsers starting in 2015 and will be discontinued entirely by Microsoft in 2021.

So the answer to your first question is "no".


OS X Server 3.0 - DNS & Server Names I have two Mac Mini's running Mavericks Server. The hostnames for them are as follows:

macsvr01.mydomain.com
macsvr02.mydomain.com

I want to be able to access macsvr02 by going to cloud.mydomain.com as it provides cloud services. What do I need to do to be able to access the same server from two different hostnames? I'm assuming it would be an alias?

I want to limit access to specific services based on the host and domain name. For example, macsvr02.mydomain.com should allow access to Profile Manger via www.mydomain.com/profilemanager. But Profile Manager should not be accessible via cloud.mydomain.com/profilemanager. I'd like to use the cloud.mydomain.com FQDN for Contacts/Calendar/Messages service access only.

Domain Name System, or DNS,

  translates easily memorized domain names to the numerical IP addresses

For what you are asking all that is necesary is two DNS records specifying the same IP address. You could make your Mac Mini Mavericks server aware of the multiple domain names, using an alias, but it is not an absolute necessity to have the functionality you seek.

The questions that remain are:

Whom or what is handling your domain names, and translating your public address to the IP of your server? Your ISP?
Did you reserve and purchase your desired domain names?

Possibly of some use to you is this tutorial, How to Configure OS X Mavericks Server App 3.X Basic DNS and Server Settings

You'll find a more advanced an in-depth explanation of DNS here


Pinch to zoom broken in Yosemite I had pinch to zoom working fine after installing Yosemite but after a month or so it's stopped working. The setting is enabled in Trackpad > Scroll & Zoom and it seems none of those gestures are working anymore. I can use 4/5 fingers outwards for Expose though.

How can I get the full functionality back?

Turn off pinch to zoom in preferences, then turn on again. This has worked for me before. If that doesn't work then doing a reboot will usually fix any and all trackpad issues. Problems after a reboot? Check out the above slightely more extreme ways around the problem..


Copying text in vim to the global clipboard On my linux computer I am able to copy text to the clipboard with the command "+y. How do I do the same on Mac?

macOS version of vim is compiled with -clipboard (you can check with vim --version). So there's no shared clipboard available. In this case you can download/recompile new vim or you can use system command pbcopy (man page). Here's how to use it as CTRL ⌃+C shortcut:

map <C-c> y:e ~/clipsongzboard<CR>P:w !pbcopy<CR><CR>:bdelete!<CR>

Add this to your ~/.vimrc file.

Explanation of this command can be found here: vimtips @ quora


Mac Mini 2018 - 3 monitors I've seen this question for older versions of the Mac mini, but I'm struggling to find an answer for the Mac mini 2018.

I want to connect 3 identical monitors (22inch 1080p). I'm currently able to connect 2 monitors using HDMI-Thunderbolt 3 cables, but I'm unable to get the 3rd monitor to detect a signal. I have a 3rd HDMI-Thunderbolt 3 cable, and I also have a VGA to HDMI adapter I can use as well.

If I plug the VGA-HDMI cable into he HDMI port on the Mini, the two functioning monitors begin to flicker. The third monitor is still not detecting a signal.

The monitor is a 1920x1080, 75 Hz

Has anyone successfully configured a 2018 Mac Mini to 3 monitors using one of these configurations?

Thanks!

You can’t use three Thunderbolt 3 ports to drive three displays.   You can accomplish this by connecting two Thunderbolt 3 to HDMI adapters/cables and one HDMI to HDMI/VGA/DVI adapter via the HDMI port.

A couple of things to consider when connecting monitors:

Use native signals rather than convert.  Thunderbolt 3 is also DisplayPort, so it’s better to go from TB3 to mDP/DP
If you must convert video signals, use an active adapter instead as it actually recreate the native video signal


My iphone 3gs won't connect to iTunes I've tried everything.

reinstalling iTunes
restarting Apple Mobile Device
bought a different cable
restarting my laptop
restarting the iphone
checked for iTunes Helper Services
uninstalled and reinstalled Apple Mobile Device USBdriver

and still, my iPhone wont come up in iTunes but it does come up as my iPhone in My Computer as a portable device.

All I get in iTunes is iTunes could not connect to this iPhone. An unknown error occured (0xE8000084)

I've tried Googling for this error and no one else seems to have it.

This issue is because the iPhone 3GS isn't compatible with the newer iTunes software. I've been trying for ages and the only option I have come across so far is to take the phone to an Apple Store. I have tried everything. I have tried calling apple, chatting with them online and I have even tried to download an old version of iTunes but nothing works. Maybe give apple a call and see if they can give you any advice. Probably will tell you to take the phone into the store


How to get Wi-Fi/LAN working in Recovery Mode? I want to reinstall macOS on my MacBook. But when it says "To download and restore macOS, your computer's eligibility will be verified with Apple" it doesn't proceed though I have pressed Continue.

Then I realized that the Mac isn't connected to any Wi-Fi network. Attaching an Ethernet cable doesn't work either.

What can I do now? I have no backup. I need to either restore or proceed installation.

The clue is in your ScreenCap.

The recovery partition does not have your WiFi password stored so you will have to reconnect to WiFi "manually."

Select "Join Other Network..." and pick your WiFi network and enter the correct password. That should get you going.


Caller ID spoofing or change caller ID? Is there a subscription site or iPhone application for changing caller id or caller id spoofing? In other words I want to call someone, but I want to change my number (for example 000000 or 111111). How can I do this?

Most carriers support the *67-prefix when calling a phone number. This does not change caller ID but at least it hides it.


How to increase "tracking speed" beyond the maximum? For a Macbook Pro, I've set trackpad settings for Three Fingers to "Dragging":

However the tracking speed is too slow, and often it's impossible to drag for a larger distance due to the size of the physical trackpad.

How do we increase the tracking speed beyond the maximum allowed?

The value of the preference is stored in ~/Library/Preferences/.GlobalPreferences.plist and can be changed with something like defaults write -g com.apple.trackpad.scaling -float 5.0. The normal maximum value is currently 3.0. Applying the changes requires logging out and back in.


iPhone 6 keyboard help lost emoji's I installed a new keyboard then deleted it now I've lost all my emoji off my standered keyboard just got a-z 0-9 #+=

Someone help please?

You can go to Settings > General > Keyboards > Add New Keyboard ... and select "Emoji" from the list. Then, in order to access the emojis on your keyboard, tab this "globe" icon:


Upgrade RAM or switch to SSD? I have a 2010 MacBook Pro (2.4Ghz) with 4GB of RAM (2x2) and a 250GB hard drive that's about 85% full. It's been running pretty sluggishly lately even for basic tasks. It is 5 years old, but a new laptop isn't really an option for a year or two. I use it primarily for web browsing (lots of tabs) and some Photoshop work.

Would I see more improvement from upgrading to 8GB of RAM or swapping out my hard drive for an SSD? Also what would the cost differential be between the two since I'm planning on only keeping this computer another year or two?

Any insight would be helpful.

Open up activity monitor and check your RAM usage. If it's high pressure (check the graph), or even swapping files, you will benefit from more RAM.

Any computer will benefit heavily from installing an SSD. Expect everything to go 10x faster (not kidding). Also, it will make you not having enough RAM less of a problem, as it will speed up your swap.

So it just depends on your budget and needs.

My personal opinion if you can only buy one? Get an SSD.


What does `brew man` do? I mean brew man, not man brew.

It says:

  Fetching: hpricot-0.8.6.gem (100%) Building native extensions.  This
  could take a while... Successfully installed hpricot-0.8.6 Fetching:
  rdiscount-2.1.8.gem (100%) Building native extensions.  This could
  take a while... Successfully installed rdiscount-2.1.8 Fetching:
  mustache-1.0.1.gem (100%) Successfully installed mustache-1.0.1
  Fetching: ronn-0.7.3.gem (100%) Successfully installed ronn-0.7.3 4
  gems installed Writing manpages to /usr/local/share/man/man1

So what have I installed? What does it do?

From Homebrew issue #40735, what would the command "brew man cask" do? (which can be found by simply googling "brew man")

  brew man generates the Homebrew manpage from markdown, using these gems to do the translation.


Is there any problem I should watch out for in running the Nix package manager alongside Homebrew? I'm starting on a fresh macOS install and so far only have Nix installed. Can Homebrew coexist well with it or do I have to pick one and stick with it?

My experience so far is that yes, you can run both. I also naïvely installed nix thinking I would use that instead of homebrew, but I soon ran into packages that were only found in homebrew. So I installed both and never had any conflicts. And there should be none, as they simply overlay scopes sequentially. If you evaluate nix after homebrew in your path, it will take precedence, and vice-versa. Their stores are completely separate.

However if you want to be super clean, you can do this:

$ <install homebrew>
$ brew tap caskroom/cask
$ brew cask install nix

Yes, nix is currently just another package within cask! Isn't that amazing?


Recover data from broken iPhone 6 An iPhone is bent and broken and does not turn on:

Apple says that it only offers data recovery through software, not hardware, and several Authorized Service Providers say that they don't do it either.
This blog post mentions it's possible:

Jones simply made the broken iPhone functional again — or at least
functional enough to retrieve the photos — by replacing water-damaged
parts.
Once the iPhone could turn on, the iPhone functioned as it normally
did before suffering water damage, and the photos could be extracted
from the iPhone.

How could I, or a tech shop, recover the data from this broken iPhone?
Update: I talked to several repair shops. The one that seem most knowledgeable mentioned that as of now, it's impossible to recover data from the memory of an iPhone 6 because of data flow encryption between the logic board and the NAND memory chip. For the iPhone 4, people had discovered how to reverse engineer it, but no one had done it for the iPhone 6 yet, so no one in the world would be able to recover data. They suggested I call and check again in a few months. Is this true?
Second update: Here is a photograph of the motherboard after dismantling the phone. It seems intact to me:

What matters most is the the motherboard and its components are in a good state, anything around (battery, screen, cameras, etc) can be replaced without touching the encryption chain. If it is broken (solder, contacts, etc), then you'll need to rebuild the chain; which is possible (check with harddrive recovery companies); if components are broken, you still can recover the chain with specialized services (using microscopes, white room and microelectronics) to get the AES key (I think hard coded/stored in the SoC/CPU if not in a security chip), and then I think only the memory chip is needed (which does not store the key).
If you can show a photograph of the motherboard instead of the screen, one might be able to tell more about the actual situation.


What is a good way to protect the home button on my iphone 4 so it doesn't get dust in it? I've already replaced a home button on my iphone 4 and I'd prefer not to have to do it on my iphone 4s coming next week.

I'm looking for a way to protect the home button while obviously still making it usable.  Most screen protectors don't cover the home button.

I'm not interested in a total case (otterbox is too big)
I don't want a screen cover per-se.

I think something like a screen protector that has some elasticity just over the home button/bottom of the front would work.

Does anyone know a good solution?

I really like Gelaskins (http://gelaskins.com/) for this and have them on my 4 and iPad.  They're nothing but removable decals that help avoid scratching the device (no screen protection), so they don't get in the way of cases, sleeves, pockets, or whatever.  You'll see on their product shots the there is a little gap around the home button.  You don't have to take this off, which actually looks better anyway with an artistic skin.

Plus, you can easily tell which phone is yours without doing something that would lower the resale value, such as engraving.


Cmd + Tab showing different windows from a single app? Is there a way for Cmd+Tab to display all of the instances/windows of an app?

An excellent example is here:

Notice how it shows the available instances of that application? That's what I'm looking for.

If you don't care about seeing the window thumbnails, ⌘ - ` (the key above the Tab key) switches between open instances of an app.


Is there a way to have the Mac App Store check for updates automatically? So a bit of an annoyance with the Mac App Store: if it isn't running, it doesn't seem to check for updates. 2 apps I use quite a bit, Evernote and Twitter have both had recent updates and it's taken me a few days, or in the case of one Evernote update, a week to find out about the update (and Evernote included a fix I wanted).

Is there a way to have the App Store check for update on a schedule and notify me somehow, ie dock icon badge or a bounce or through the OSX software update?

The App Store doesn't offer that functionality by default, and you can't configure or script it to check for updates. So...

The closest you're going to get is automatically opening the App Store so you can look at the icon to check for updates. Here's how to make the App Store open automatically at an interval:

Open iCal and add a new event. Call it something like Check App Store for Updates. Double-click it on the calendar and click the Edit button. Set the repeat menu to Every day or Every week.
You can get it to check at some interval in between (say, every 3 days), by using the Custom... option.

Set the alarm menu to Open File. In the newly-showing second menu under alarm, choose Other... and select the App Store in your Applications folder. Set the last menu under alarm to on date.

This way, iCal will automatically open the App Store at the interval you specified under the repeat menu. Its window will pop up to remind you to look at its icon. When you do, you'll see the number of available updates.


Convert .png image icon to .icns file (MacOS) What command can I type in my BASH shell to convert a given icon in png format into the icns image format required by Apple .app directories?

You can achieve this using the sips command.
First, store your icon as follows:

In an image file of size 1024 x 1024 pixels
In png format
In a file named Icon1024.png

Then execute the following commands
mkdir MyIcon.iconset
sips -z 16 16     Icon1024.png --out MyIcon.iconset/icon_16x16.png
sips -z 32 32     Icon1024.png --out MyIcon.iconset/icon_16x16@2x.png
sips -z 32 32     Icon1024.png --out MyIcon.iconset/icon_32x32.png
sips -z 64 64     Icon1024.png --out MyIcon.iconset/icon_32x32@2x.png
sips -z 128 128   Icon1024.png --out MyIcon.iconset/icon_128x128.png
sips -z 256 256   Icon1024.png --out MyIcon.iconset/icon_128x128@2x.png
sips -z 256 256   Icon1024.png --out MyIcon.iconset/icon_256x256.png
sips -z 512 512   Icon1024.png --out MyIcon.iconset/icon_256x256@2x.png
sips -z 512 512   Icon1024.png --out MyIcon.iconset/icon_512x512.png
cp Icon1024.png MyIcon.iconset/icon_512x512@2x.png
iconutil -c icns MyIcon.iconset
rm -R MyIcon.iconset

The result will be a file named MyIcon.icns that you can use to add to your .app directory.
Source: https://stackoverflow.com/questions/12306223/how-to-manually-create-icns-files-using-iconutil


How to evenly space table cells in Pages document? I would like to create a “grid” in a Pages document by creating a table whose cells are a certain size. Instead of manually dragging the walls of each cell, I would like to tell the program directly to, perhaps, divide the space into thirds, or to make each cell a specific measurement wide. Is there any way to do this?

In Pages you are able to enter the sizing/spacing for cells in a table in Pages. You are limited to entering specific measurements that is applied to all cells.

To do so go to the Tool Bar and select the Format Tab > Table Tab (have the table selected) then look to the bottom right corner of the window for where it says Row &  Column Size and it will let you enter the with Height and Width. I have included a screenshot as well to help.


No text alert for one person only - iPhone 8 My wife bought a new iPhone 8 and her text alerts work for everyone in her contacts except me. I've checked the phone, and hide alerts is not activated, and do not disturb is not turned on. There are no moon icon's anywhere to disable. When I text her, the little dot next to the message in her message list isn't there to signify a new text. We've tried switching on the DND and then turning it off, switching on hide alerts for that conversation only and then turning it off. Powered the phone off and on, deleted and re-added my contact to her contacts - nothing works. Any suggestions?

Did you add yourself as a new contact then choose what ringtone you want and text tone? Alert tones is on, and vibration?


Is there any software like 'Network Magic' for Mac? I really like Cisco's 'Network Magic' software; but the site says they no longer support Mac.. Does anyone know of any software like it, that is supported on Mac?

Well, there are some network monitoring & management tools for Mac OS X you may want to have a look at (although I haven't found a direct hit I guess). For example,
Casper Suite, InterMapper, IPNetMonitorX, Lithium 5.0, AutoScan-Network,
DeployStudio, ...

To see who is on your network you may use Ntop.

Since Mac OS X is a Unix-based operating system, there are also command line tools that allow you to manage other Macs remotely via SSH. For example, systemsetup, networksetup and screencapture.

And, last but not least (as already pointed out by mrbitch), there is quite some 'Network Magic' functionality that ships with Mac OS X by default (see, for example, the 'Sharing' system preference pane).


Why can't I copy a drive in full to another drive? I am trying to copy one drive to another (both external) - from a 1TB to an empty 4TB drive.

I reformatted the 4TB drive, and here is its information:

$ sudo newfs_exfat -N /dev/disk3
Reformatting existing ExFAT volume
Partition offset : 0 sectors (0 bytes)
Volume size      : 7813969920 sectors (4000752599040 bytes)
Bytes per sector : 512
Bytes per cluster: 16384
FAT offset       : 32768 sectors (16777216 bytes)
# FAT sectors    : 1933312
Number of FATs   : 1
Cluster offset   : 1966080 sectors (1006632960 bytes)
# Clusters       : 244125120
Volume Serial #  : 5d2afd28
Bitmap start     : 2
Bitmap file size : 30515640
Upcase start     : 1865
Upcase file size : 5836
Root start       : 1866

Here is the information from the 1TB drive:

$ sudo newfs_exfat -N /dev/disk4
Partition offset : 0 sectors (0 bytes)
Volume size      : 1953458176 sectors (1000170586112 bytes)
Bytes per sector : 512
Bytes per cluster: 131072
FAT offset       : 2048 sectors (1048576 bytes)
# FAT sectors    : 61440
Number of FATs   : 1
Cluster offset   : 63488 sectors (32505856 bytes)
# Clusters       : 7630448
Volume Serial #  : 5d406cb7
Bitmap start     : 2
Bitmap file size : 953806
Upcase start     : 10
Upcase file size : 5836
Root start       : 11

It seems like the cluster size is smaller in the 4TB drive (after my reformatting), yet, the contents from the 1TB drive do not fit into the 4TB drive, and I get "disk out of space" on a Terminal where I copy the files with cp -r.

Any ideas why?

and I get "disk out of space" on a Terminal where I copy the files with cp -r.

I suggest using the ditto command.  You can use ditto to copy directory to directory. It includes all nested directory. No idea how links would work.

Would the source disk be timemachine disk?  It uses hardlinks which result in a copy of the data being made for each hardlink.

Same would go for another disk with lots of links. fyi: The Unix link command is ln.


Lost my MacBook Air two weeks ago and it still says offline on Find My iPhone! Two weeks ago around 12 AM I lost my MacBook Air at the airport. At 9 AM I requested a lock on it using the Find My iPhone app but until now it is still pending.

I'm not entirely sure if I turned the location serves on my MacBook. I really want to find it but I don't know what to do. I have the serial number and everything but I heard that that won't help.

Can I still find it even if my Mac's location services isn't connected and is it possible that the thief could've restored my macbook using the guest user only?

Find My iPhone on OS X doesn't require location services for locking/erasing the Mac, only to obtain its location. Therefore, next time the machine connects to the internet, it will lock. There's nothing you can do but wait until the device connects to the internet.


Disable Safari autofill for one website Is it possible to disable Safari autofill for just one website? I use a website often where this is a hindrance.

It seems like in High Sierra there are "website preferences," but disabling autofill is not included.

Click on Safari from the top menu and then click on Preferences from the drop-down.

Next click on the AutoFill tab and then click on the Edit button beside the Other forms option.

Now from the pop-up, select the website you do not want to autofill data for and then click on the Remove button.


Shortcut to quickly enter .com in browser on Mac OS In Windows, we can use Ctrl+Enter to quickly input .com in browsers. I wonder if there is any equivalent shortcut in Mac OS?

You can define shortcuts using the system preferences (Apple menu Top left) and select keyboard as per :

Then add what you want, such as:


Move large files to iPad through Lighting cable Is there a simple / clever method to move large video files from a NAS => Mac => Firewire => iPad?  The goal is speed: preference is to avoid Wifi.   Assume that I would like to transfer a 600MB home video of a wedding.
As I understand it, the choices for transferring files are:

lightning (fastest)
wifi
bluetooth

If you have iCloud, Dropbox, or Box you can use these services to copy the files to your ipad. You can move the video clip to icloud, for example and move it from icloud to ipad or just use it while its stored in iCloud.


Is OS X on VirtualBox on Windows suitable for iOS app development using Xcode? I am trying to install OS X on VirtualBox VM on Windows 7, but it is giving me a message that "hardware acceleration" is missing on my PC.

How can I deal with this problem? …and is this suitable for iOS app development using Xcode?

The OS X license does only allow to install a virtual copy on Apple hardware.

  Due to Apple licensing restrictions, you may only create and run this virtual machine on Apple-labeled hardware. For more information, see Apple's Hardware & Software Product Agreements.


How to fix apps "waiting.." forever after sync? I've got roughly 5 apps on my iPhone.

Then I went to iTunes and downloaded 15+ apps. After that, I synced them to the phone and it says "Sync Complete", but the apps on my phone are showing "Waiting..".

I've waited for over a day and the apps are still showing "Waiting..".

What may be the problem here, and how can it be fixed?

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

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

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

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


Is there a way to shutdown mac when screen is turned off? I have a mac mini, which is connected to a TV using HDMI cable. TV & mini are connected to separate power source, so that I can shutdown TV and mini independently as required.

Primary use of mini is a media center and i watch lot of online videos over it.

The problem is sometime, if i switch off the TV, online videos continue to play in the computer and thus consuming bandwidth. So i'm looking for a way to shutdown (close my video player application etc.) mini if the TV display goes off.

Control + ⏏ followed by Return will shut down your computer. No monitor necessary.


How can I break a persistent association between .xcodeproj files and Xcode 4.2 beta? I've got Xcode 4.0.2 installed in /Developer, and the Xcode 4.2 beta in /XcodeBeta. My problem is that the .xcodeproj file type is now associated with Xcode 4.2 and I can't change it to Xcode 4.0.2.

I've tried the usual thing of doing Get Info on an .xcodeproj file, selecting Xcode (4.0.2) in the Open with: drop down then clicking Change All..., but at that point the version of Xcode selected in the Open with: dropdown just flips back to Xcode 4.2 and the file type association remains with Xcode 4.2.

If I rebuild my Launch Services DB using lsregister -kill -domain local -domain system -domain user this removes any reference to /XcodeBeta/Applications/Xcode.app in the Launch Services DB (as reported by lsregister -dump), but the next time I start up that version of Xcode it re-registers itself with Launch Services and re-hijacks all my file associations. It's driving me potty!!

(Incidentally, this also affects other file types associated with Xcode, e.g. .plist, but it's .xcodeproj that's really causing my pain.)

Any ideas?

Use RCDefaultApp prefpane. You can get it from http://www.rubicode.com/Software/RCDefaultApp/

Open it, select UTIs and scroll down to com.apple.xcode.project.

On the right you can change which filetype is associated to which application or disable the association completely.

Edit: another alternative is Magic Launch, which allows the same kind of file association overrides.

Open it, drag an Xcode project file into the pane on the left, set the Default Application on the right to the appropriate version of Xcode.


Create a Smart Folder based on an EXIF keyword? How can I create a Finder Smart Folder based on an EXIF keyword?

I confirm that the EXIF keyword exists using exiftool. For example, I added the keyword "Mango" to an image and created the Smart Folder like so:

Open a Finder window
New Smart Folder
Click the Plus icon
Change Name to Keywords
Next to Matches I type Mango
Click Save
Save it in the default location (~/Library/Saved Searches)
Click the Mango Smart Folder in my Sidebar but it returns no results

How can I create a Finder Smart Folder that searches the files' EXIF keywords?

Note this works for .jpg images (not .png).

Open a Finder window
New Smart Folder
Click the Plus icon
Change Name to Other
Search Raw
Click Raw query and OK
Next to Raw Query type "kMDItemKeywords = Mango"
Click Save
Name the saved search and save it in the default location (~/Library/Saved Searches)
Click the Mango Smart Folder in the Sidebar and see your result

Thanks @patrix


Trying to find out what is draining the battery on my MacBook Pro I am trying to figure out what is draining battery on my Early-2015 Retina MacBook Pro overnight. I close the lid and leave it in sleep state overnight. The next morning, quite often I find that almost 70-80% of the battery has drained. What is surprising is that on some mornings, I find that only 10-20% of the battery has drained.

I have the same model MacBook Pro at home too. Both have the same issue.

OS: macOS Mojave (10.14.2)

Battery cycle count (or work machine): 217
Battery condition: Normal.

I use an external mechanical keyboard while working, but unplug it before I leave. I do have a USB wireless mouse. The receiver for the mouse remains plugging in, but I turn off the power switch for the mouse.

In energy save preferences, I do not have power nap enabled.

How can I go about finding out what often drains the battery?

Thank you.

If you have "Find My Mac" enabled, macOS will keep persistent TCP connections even when it "sleeps" (not really sleeps then). This draws battery, sometimes a lot. You can check if it is on with terminal:

pmset -g | grep -i tcp

See if you have:

  tcpkeepalive         1

If it is so, you cannot really do much unles you turn off "Find My Mac" (with all risks that it involves).

Also it is possible that something on your mac prevents it from sleeping. Typically you can find it with pmset -g assertions. It will tell you what keeps your mac awake. Mine, for example, is kept awake by bluetooth keyboard and touchpad all the time. Sometimes there are also processes stuck and keeping my mac awake for no reason. Then I just kill them.

In general, you may keep your macbook on power adapter for most of the time despite people telling you that you should not. I had a number of macbooks in my household since 2007 and almost always kept them on power adapter. In the end they were too old or failed for any reason but never due to battery. The worst battery performance I had was about 75%. Most of them were > 80% capacity after several years.


Differences between Snow Leopard Server and Desktop? I have a friend who is wanting to get a Mac Mini to do iPad development.  He says the server version is cheaper than the desktop version.  I've only ever used the desktop version.  Is there any reason not to get the server version?  What are the main differences between Server and Desktop?

First off he's wrong on all levels.

The Desktop Version is $29, the Server Version is $500.
A standard Mac Mini is $700 base. Mac Mini Server is $1000 base.

Second, the distributions are pretty much identical. The difference is that the Server Version ships the server applications, tools, and processes. Postfix, Dovecot, Jabberd2, OpenLDAP, the entirety of the /Applications/Server directory, and some of the things in /Applications/Utilites like XSan management and the RAID Utility.

If he's looking to do development for iOS, getting the server version makes no sense. If he's looking to do development for Web Services, it's still easier and cheaper to run it on the Desktop version.

If he's looking to run a server, trivially, for mail services, chat and calendaring services, MORE than just web services (web services are trivially easy on the Desktop Version), then he should get a MacMini Server.

Use a Server for a Server for the features it provides, otherwise, use a standard version.

[edit]
We have two versions of XServes, and two Mac Mini Servers (classic style body), I'd be glad to answer any additional questions you or your friend has.