How can I switch to an open tab in Safari using osascript? Trying to switch tabs in Safari with osascript. I have tried multiple versions of the following:

osascript -e 'tell Application "Safari"' -e 'keystroke "2" using command down' -e 'end tell

Tried replacing "Safari" with "System Events and "2" with "-2". But nothing I do is working. Can someone tell me what I'm doing wrong?

It's System Events that handles the keystrokes.

In normal AppleScript the code would look like:

tell application "Safari"
    activate
    delay 0.5
    tell application "System Events"
        key code 19 using command down
    end tell
end tell

As an osascript command line, it would be:

osascript -e 'tell application "Safari" to activate' -e 'delay 0.5' -e 'tell application "System Events" to key code 19 using command down'

The osascript command line from above shown below as multiple lines for clarity:

osascript -e 'tell application "Safari" to activate' \
          -e 'delay 0.5' \
          -e 'tell application "System Events" to key code 19 using command down'

Notes: Before telling System Events to keystroke, the target of the keystroke must have focus. So first, Safari must be made the frontmost window with activate. You must then allow a moment for it to have focus before the keypress and that is done with delay 0.5 and the value of delay may need to be adjusted in seconds and or decimal fractions thereof. So once Safari is the frontmost window, then System Events can issue the keystrokes.

This of course assumes Safari is already open with at least one window having two tabs!

The keystroke used herein with Safari is a Safari 9 (El Capitan) keyboard shortcut as shown in: Safari 9 (El Capitan): Safari keyboard and other shortcuts

  Select one of your first nine tabs      Command-1 to Command-9


How to Reset Full-Screen Terminal.app Preferences to Factory Defaults On an iMac running Mac OS X version 10.7.5 I have accidentally resized Terminal.app to full-screen (272 x 76) and am unable to resize Terminal.app to a smaller size.  How do I resize Terminal.app to the factory default size or a size where I can use the mouse to resize Terminal.app?

You have (at least) wo possibilities:

1)
You could click on the zoom button to revert the zoom effect (the green circle in the upper left corner in the image below:

2) You can enter smaller values for the window size under "Preferences":


Adjusting graphics cards settings in Mojoave to reduce overheating with external monitor (MacBookPro2018) It seems common for MacBookPros2018 overheating when connected to external display (see other info about the general problem here, or here).

Despite there is no risk for HW, it's quite uncomfortable for who works on them.

I noticed that if I connect my MBP to an external display when it runs with battery, it does not get (so) hot.

I suppose that the MBP uses another configuration of its graphics framework when it is not connected to power adapter. Therefore, I hypothesize that if it used the same graphics configuration when it's plugged to the power, then the overheating would be reduced.

Is there a way to make the MPB use the same graphics configuration for external displays also when it is connected to the power?

The 2018 15" MacBook Pros all have dual-GPUs. The AMD GPU is required to be active when an external screen is connected. There is no way to use the internal (Intel) GPU for external screens.

Fan noise is one of the main nuisances of the recent MacBook Pros in my opinion. When I get too frustrated, I sometimes use Turbo Boost Switcher, which helps a bit. Volta is a similar App, but does not seem to work with 2018 MacBooks. Both Apps deactivate the CPU's Turbo Boost mode, which means less speed, but also less power consumption and less noise.

Update: I forgot to mention AppTamer; another tool which often saves me some noise.


iPhone (iOS) mistakes my router (mifi) as needing a login page When using my iOS 8 iPhone 6 with a cellular mifi, it sometimes thinks this device has some sort of webpage login page, the way public wifi does (I guess sometimes called a landing page).  However, it does not.  Is there a way in iOS I can mark a SSID as never needing a login page?

I suspect the reason it does this is this:

The mifi gives out DHCP before it has connected to the internet via cellular
iOS sees that it has a local IP address but can't reach the interent via some sort of test
Thus iOS assumes this is a scenario where you have to login, and tries to bring up a landing page - its blank but has the domain name that the router uses a shortcut to get to its web interface

Thanks!

When you log into any wifi router, immediately thereafter the OS (iOS or MacOS) tries to resolve the DNS for www.apple.com, and then attempts to navigate to this page:

apple.com/library/test/success.html

(Or one of a handful of similar ones distributed around the 'net.) The page is very simple and basically just responds with the word "Success". If they do not get that, or it times out, they assume that you're on a captive router that needs a login. In that case they navigate to the IP of your router/gateway, which in your case brings up the settings, but in a captive system brings up the login page.

Fixing it seems to be a bit of a dark art. Try this solution first and see if it helps.


How can I send emails with Mail.app as text/markdown explicitly? I write all my emails in plain text, not rich text or HTML, but I do use punctuation markup as has been popularized by Markdown and others (which were inspired by prior customs in plain-text email). There’s RFC 7763 now, which registers the text/markdown media type with mandatory charset and optional variant parameters.
Can I change Apple Mail to always send a respective MIME header?

Content-Type: text/markdown; charset=UTF-8; variant=pandoc; extensions=-raw_html

I hope for some defaults write magic since there doesn’t seem to be a respective plugin available (yet). Something like this:

defaults write com.apple.mail UserHeaders \
  '{"Content-Type: text/markdown; charset=UTF-8; variant=pandoc; extensions=-raw_html"; }'

Would Brett Terpstra’s Markdown Service Tools provide what you need? Here's a nice blog-post explaining how to it up and running, also en Mail.


Can't play audio to Denon DA-300USB DAC I just got a Denon DA-300USB DAC, which requires drivers on the PC side but claims to work on the Mac without them (not unusual).  This of course also means the user guide is useless, and seems to think things will Just Work(tm), but when the DAC is configured for USB input (using the little picker on the front-panel) it says "Unlock" when there is no audio, and "Unsupported" any time I try to play audio.

I don't think this is just a DRM issue with iTunes audio, but I can't find anything on google to suggest what I should tweak (it shows up fine in the sound control panel, like my previous BitHead DAC).

It turns out the answer is reasonably simple, and completely obtuse.

You need to open the "Audio MIDI Setup" application (in /Applications/Utilities, if you haven't moved it), show the "Audio Devices" window (if it isn't open already), and choose the USB High Speed Audio device (hopefully there's only one - it should show '0 in / 2 out' for the DA-300).

The default format for output is 352800 Hz, but the DA-300 only supports 192000Hz.  Simply change the format popup for Hz to 192000 and you should be in business.  Both 2ch-24bit and 2ch-32bit sound work, although depending on your source data you may be happier with 24bit.


How to block senders in Messages app on Mac OS X? How to mark as spam? Getting many junk texts during election season.

Messages come to both my iPhone and MacBook Pro (connected via my iCloud account).

I'm not seeing any way to mark messages as spam, nor to block senders.

Opening app prefs, and trying to copy–paste the number into the blocked list isn't taking either.

Able to set conversation as do-not-disturb. This disables notifications, but isn't really all I want.

I'll leave the iOS version below,. as that actually works - but for OS X it's nowhere near as efficient.

Messages > Prefs > Accounts > Blocked
Click +
You can type the phone number but nothing will happen unless the number is already recognised as a Contact [which is frankly infuriating].

One workaround might be to make a Contact called "zzz spam" & keep adding bad actors to that contact, which may also immediately add them to the banlist anyway.

tbh, I'd prefer a better answer than this, if anybody has one

[Previous answer, mistakenly for iOS]
From Apple KB : Block phone numbers and contacts or filter messages on your iPhone, iPad or iPod Touch

  Messages

  If you're in Messages, open the conversation, tap ,
  then tap the name or phone number. Scroll to the bottom of the Info
  screen, then tap Block this Caller.


Can I still use time machine if I encrypt my drive with file vault? I read somewhere that there are some problems with the time capsule if you encrypt your mac, so I would like to know those before I do that.

Yes, you can still use Time Machine backups even if you encrypt the boot drive with FileVault.

Note that when setting up Time Machine backups, you'll have to select that the backup should be encrypted as well, otherwise your data will be stored unencrypted in the Time Machine backup.


Unable to copy OSX Installer from external drive to Mac As usual I wanted to prepare bootable USB with OSX. Some time ago I've made a copy of my Mavericks, Yosemite and El Capitan to external drive.

I wanted simply to drag & drop El Capitan to prepare USB drive.

After dragging El Capitan app file to desktop I get

The point is, that my Desktop does not contain this file. What's wrong? The same happens to all 3 files. I cannot copy them. Are those files corrupted? In a meanwhile I'm downloading new file form App store...

This disk was plugged into Windows multiple times. Is it possible that Windows damaged app files? I've noticed that Windows treats app files as folders so maybe it changed the content?

This is a known bug in the Finder app of OSX. Options you can try :

Instead of drag-dropping you can try right click -> Copy Item and
then paste it on the desktop
Try copying the files through terminal command.
Try making a folder on the desktop, and then copy the files in the newly created folder.

Reference : Apple Discussions.


Can't reformat SD card (Yosemite) I have a 2 GB SD card that I can't reformat. It seems pretty corrupted.

If I go into Disk Utility, I get these various error messages for each option:

Repair Disk:

  Disk Utility can’t repair this disk.

Erase (with Format "MS-DOS (FAT)"):

  Volume Erase failed with the error: Couldn’t modify partition map.

Set number of partitions to 1 and Apply:

  Partition failed with the error: Couldn’t open device.

According to Finder, I have permission to both read and write, and almost 100% of the space is available. However, if I try to copy any files on, I get an error message claiming there is not enough free space.

Any advice on how to fix this disk?

Get drive name
diskutil list

then try
diskutil unmountDisk force /dev/DRIVENAME

Then format
diskutil eraseDisk JHFS+ Emptied /dev/DRIVENAME

or
diskutil eraseDisk FAT32 NEWNAME /dev/DRIVENAME


Constant flickering on my external display I've recorded a 7 second video of it here: http://youtu.be/2k9P59Z32wE. Basically, the screen will alternate between a fuzzy picture, color bars, and then black every ~2 seconds or so.

Technical details: I'm using a mini-DP to dual-DVI adapter with a dell 3007 wfp with a late 2013 macbook pro (with nvidia graphics). I've been using this setup for several months now. I've confirmed it's an OSX issue because my display works with my bootcamp partition, and another windows machine.

This started happening yesterday after my mac froze when I attached it to my display. I had to do a hard reboot, and I suspect this may have corrupted some system files. I've tried doing PRAM/SMC resets, and also following suggestions to delete com.apple.windowserver.* files (http://foliovision.com/2009/12/apple-dual-dvi-mini-displayport-adapter-mb571z). No luck so far.

I'm thinking about just doing a fresh install and then migrating my data to fix this. Any better solutions?

edit:
Looks like my adapter is broken. I only tested lower resolutions, not 2560x1600, when on my window machine/bootcamp! Thanks for all the help.

If the issue potentially has to do with corrupt files, you can try booting from the OS X disk and running disk repair to see if that fixes the problem.


App or script to monitor/log processes starting and stopping? I want to be able to start an app or script, leave it running for a few hours, then come back and see a log of what processes started and stopped in that time. This is not the same as Activity Monitor or Top which will only show me a "live" view.

E.g. something like this:

<timestamp> <pid> Safari started
<timestamp> <pid> ssh started
<timestamp> <pid> ssh stopped
<timestamp> <pid> Safari stopped

Any recommendations?

Edit to clarify - I don't already know the names of the processes I want to monitor - I want to find out what processes are starting/stopping.

The following script builds an array of Applications/Processes dynamically. This is an advantage in the sense that you do not need to "know" every process prior to its launch. However, it is important to note that due to this design as the number of processes grow the longer it will take to add a new process to the array. To compensate for this the script keeps the contents of the array cached so as to use them later preventing the need to re-add them to the array.

ALSO: If the Application/Process has not been dynamically loaded into the array prior to the process stopping the logger will leave the "Command" column empty. This will become less and less likely as your dynamically built array builds upon its cached information. Adding to the previous point. At times a "Command" may not be shown in the column yet it has already been added to the array. This is likely caused by the fact that certain process's like "sort" have been removed as they are used in the script and would be constantly starting and stopping (adding false positives to the logger). Currently the data will be put into the file /command_logger. This of course can be changed as you see fit. The config file /tmp/command_logger.plist can also be renamed/moved but remember that it holds the data to the growing App/Process array.

Please feel free to use and modify the following script as you see fit. Please remember to utilize a testing environment prior to running on your primary environment. Enjoy.

Tested on:

•   10.5.x
•   10.6.x
•   10.7.4

The output will include the following:

STARTED/STOPPED
Epoch (timestamp)
Date/Time
PID
Application/Process

NOTE: The following script includes an internal loop.

DYNAMIC APP/PROCESS LOGGER

#!/bin/bash

On="true"

TMP="/tmp/command_logger"
LOG_CONFIG="/command_logger.plist"
LOG="/command_logger"

if [[ ! -e ${TMP} ]]; then

    mkdir ${TMP}

    if [[ ! -e ${TMP}${LOG_CONFIG} ]]; then
        /usr/libexec/PlistBuddy -c "Add:Commands Dict" ${TMP}${LOG_CONFIG} > /dev/null 2>&1
    fi

elif [[ -e ${TMP} ]]; then

    if [[ ! -e ${TMP}${LOG_CONFIG} ]]; then
        /usr/libexec/PlistBuddy -c "Add:Commands Dict" ${TMP}${LOG_CONFIG} > /dev/null 2>&1
        find ${TMP} -type f ! -name '*.plist' -exec rm -f {} \;
    elif [[ -e ${TMP}${LOG_CONFIG} ]]; then
        find ${TMP} -type f ! -name '*.plist' -exec rm -f {} \;
    fi

fi

if [[ ! -e ${LOG} ]]; then
    echo -e "Status\tTimestamp\tDate/Time\t\tPID\tCommand\n" > ${LOG}
elif [[ -e ${LOG} ]]; then

    TITLE=$(head -1 ${LOG} | awk '{print $1}')

    if [[ ${TITLE} != "Status" ]]; then
        echo -e "Status\tTimestamp\tDate/Time\t\tPID\tCommand\n" > ${LOG}
    fi

fi

while [[ ${On} == "true" ]]; do
    IFS=""

    Live_Array=$(ps -Ac | sed 's/  /|/g' | sed 's/ /_/g' | sed 's/[[:digit:]]_.*[[:digit:]]_/ /g' | sed 's/:/!/' | sed 's/$/.comm/' | sed 's/^_//g' | sed 's/^|//g' | sed 's/^_//g' | sed 's/^|.*//g' | sed 's/ $//g' | sed 's/_$//g' | sed 's/|$//g' | sed 's/PID_TTY||.*//g' | awk '{print $2}' | sed 's/.*-sh.*//' | sed 's/.*CMD.*//' | sed 's/.*PID.*//' | sort -u | grep "[[:graph:]]" | tr -s "[\n]" "[,]")
    Live_Array=$(echo ${Live_Array%\,})
    IFS=","
    Live_Array_2=( $Live_Array )
    livarray=${#Live_Array_2[@]}
    for (( liv=0; liv<${livarray}; liv++ ));
    do

        /usr/libexec/PlistBuddy -c "Add:Commands:${Live_Array_2[$liv]} bool true" ${TMP}${LOG_CONFIG} 2> /dev/null

        Config_Array=$(/usr/libexec/PlistBuddy -c "Print:Commands" ${TMP}${LOG_CONFIG} | grep "=" | sed 's/=.*//' | sed 's/  //g' | sed 's/^.comm//' | sed 's/ $//g' | grep "[[:graph:]]" | tr -s "[\n]" "[,]")
        Config_Array_2=( $Config_Array )
        conarray=${#Config_Array_2[@]}

        for (( con=0; con<${conarray}; con++ ));
        do

            STRING=$(ps -Ac | sed 's/  /|/g' | sed 's/ /_/g' | sed 's/[[:digit:]]_.*[[:digit:]]_/ /g' | sed 's/:/!/'  | sed 's/$/.comm/' | sed 's/^_//g' | sed 's/^|//g' | sed 's/^_//g' | sed 's/^|.*//g' | sed 's/|_.comm/.comm/g' | sed 's/PID_TTY||.*//g' | awk '{print $2,$1}' | sed 's/.*-sh.*//' | sed 's/.*CMD.*//' | sed 's/.*PID.*//' | sort -u)
            Launched_Command=$(echo ${STRING} | awk '{print $1}' | sort -u | awk "/${Config_Array_2[$con]}/")
            PID=$(echo ${STRING} | sort -u | awk '{print $2,$1}' | awk "/${Config_Array_2[$con]}/" | sed 's/ .*//')

            if [[ ${Launched_Command} != "" ]] && [[ ${PID} != "" ]]; then

                DATE=$(date "+%m-%d-%Y %T")
                EPOCH=$(date "+%s")

                if [[ ${Launched_Command} == ${Config_Array_2[$con]} ]] && [[ ! -e ${TMP}/${Config_Array_2[$con]}-RUNNING ]]; then
                    echo -e "STARTED\t${EPOCH}\t${DATE}\t${PID}\t${Config_Array_2[$con]}" | sed 's/.comm$//g' | sed 's/_/ /g' | sed 's/.*sort.*//g' | sed 's/.*sed.*//g' | sed 's/awk//g'| awk '/STARTED/' >> ${LOG}
                    rm -f ${TMP}/${Config_Array_2[$con]}-STOPPED
                    touch ${TMP}/${Config_Array_2[$con]}-RUNNING
                elif [[ ${Launched_Command} == ${Config_Array_2[$con]} ]] && [[ -e ${TMP}/${Config_Array_2[$con]}-RUNNING ]]; then
                    :
                elif [[ ${Launched_Command} == ${Config_Array_2[$con]} ]] && [[ -e ${TMP}/${Config_Array_2[$con]}-RUNNING ]]; then

                    if [[ -e ${TMP}/${Config_Array_2[$con]}-STOPPED ]]; then
                        :
                    elif [[ ! -e ${TMP}/${Config_Array_2[$con]}-STOPPED ]]; then
                        echo -e "STOPPED\t${EPOCH}\t${DATE}\t${PID}\t${Config_Array_2[$con]}" | sed 's/.comm$//g' | sed 's/_/ /g' | sed 's/.*sort.*//g' | sed 's/.*sed.*//g' | sed 's/awk//g' | awk '/STOPPED/' >> ${LOG}
                        rm -f ${TMP}/${Config_Array_2[$con]}-RUNNING
                        touch ${TMP}/${Config_Array_2[$con]}-STOPPED
                    fi

                fi

            elif [[ ${Launched_Command} == "" ]] && [[ -e ${TMP}/${Config_Array_2[$con]}-RUNNING ]]; then

                if [[ -e ${TMP}/${Config_Array_2[$con]}-STOPPED ]]; then
                    :
                elif [[ ! -e ${TMP}/${Config_Array_2[$con]}-STOPPED ]]; then
                    echo -e "STOPPED\t${EPOCH}\t${DATE}\t${PID}\t${Config_Array_2[$con]}" | sed 's/.comm$//g' | sed 's/_/ /g' | sed 's/.*sort.*//g' | sed 's/.*sed.*//g' | sed 's/awk//g' | awk '/STOPPED/' >> ${LOG}
                    rm -f ${TMP}/${Config_Array_2[$con]}-RUNNING
                    touch ${TMP}/${Config_Array_2[$con]}-STOPPED
                fi
            fi
        done
    done
done


Photos taking up storage on iPhone when I have no photos Problem from iOS 10.1.1 to 10.2.1.

I have no photos at all on my iPhone yet in settings it says my photo library is taking up ~200MB of space. The number of space being taken up keeps changing constantly(in the settings app on my phone). In iTunes, the storage bar at the bottom does(when in the sync menu) not show photos.

What is taking up this storage, and how can I reduce it?

Troubleshooting:

I disabled iCloud photo library and iCloud photo stream, still showing the same thing.
Tried doing what @User9125 said, didn't work. I had set the date all the way back when I first got my phone, nothing showed up.
Rebooting
I had hundreds of photos in Whatsapp, I deleted them but I didn't get the storage back. It didn't even make a dent in the amount of storage being used by Photos so I don't think a third-party app could be taking up this storage.
I don't think a system app is taking this space either, because I cleared the pictures in mail and messages.
I tried using iCleaner(through sideloading) in Secure Mode and Fast Mode, but it did not clear up the photos.

There might be phantom photos still in your Photos app. Just do these things and it will solve your problem.

Go to Settings
Date & Time
Untoggle "Set Automatically"
Manually change the date back. For example, today is December 10, 2016, choose something ex: like March 21, 2015. (You can change it back once we're done)
Close out of that
Open "Photos"
Select "Albums" you had already cleared out everything from the Camera Roll and "Recently Deleted" folder, But now you'll see that your "Recently Deleted" folder now has thousands of images back. Those are your phantom photos
Open it, "Select" and start deleting
Now, go back into Settings - General - Usage - Storage - Manage Storage - and you'll notice your Photo & Camera is empty if you deleted everything.


Showing previously scanned page when scanning several pages The scanner window allows us to combine multiple pages in a single PDF document. However, unless one clicks the Overview button before every scanning, the last scanned page is not displayed on the left hand side (the blank area in the image below).

When scanning a big document, say 40 or 50 pages, it's easy to lose track of the progress (in that case, the solution is opening the PDF in Finder and checking its last page).
My question is: is there any settings or any way to show the last scanned page, or is this a limitation of the program? As an additional info I'm using Catalina and AirPrint (but using the scanner's drivers gives the same behaviour, no difference).

Use Preview>File>Import from [name of scanner]. You get the exact same scanning window; it's also a Mac OS built-in program; and you can see the thumbnails of the few most recent scans along with the full size of any page you like with the page-up or page-down buttons.


OS X Safari keeps forgetting cookies My Safari constantly keeps forgetting cookies, even during a session. I.e. I might log into this Stack Exchange, and a few minutes later I am logged out again (without even restarting Safari). This also affects other sites (e.g. Google).

However, when looking at "Manage Website Data..." in Safari's privacy settings, it looks like the cookies are there (although I'm not 100% sure about this).

Possibly related messages in Console.app:

08/11/16 16:29:23,214 com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.pid.WebContent.99118) Path not allowed in target domain: type = pid, path = /System/Library/StagedFrameworks/Safari/SafariShared.framework/Versions/A/XPCServices/com.apple.Safari.History.xpc/Contents/MacOS/com.apple.Safari.History error = 147: The specified service did not ship in the requestor's bundle, origin = /System/Library/StagedFrameworks/Safari/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc
08/11/16 16:29:24,329 Safari[73815]: tcp_connection_tls_session_error_callback_imp 474 __tcp_connection_tls_session_callback_write_block_invoke.434 error 22
08/11/16 16:29:24,357 Safari[73815]: ***cachedResponseDictionaryForRequest:key:handler failed: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.nsurlstorage-cache was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; {
NSDebugDescription = "The connection to service named com.apple.nsurlstorage-cache was invalidated."; }
08/11/16 16:30:42,284 Safari[73815]: KeychainGetICDPStatus: keychain: -25300
08/11/16 16:30:42,284 Safari[73815]: KeychainGetICDPStatus: status: off

I have already run "Repair Permissions", to no avail. I have also deleted all cookies and started from scratch, however Safari still forgets newly added cookies.

Also, until a few weeks ago, everything ran just fine. Installed extensions are NoMoreiTunes, Save to Pocket, Ghostery and SaveFrom.net helper.

Any ideas on what could be the culprit or something else I could try?

I am running Safari 10.0.1 on OS X 10.11.6 (although the issue already occurred with Safari 9).

Edit: Screenshot of Safari's privacy settings, as requested in the comments:

Something you can attempt:

Enter Recovery mode (⌘ + R on startup)
Go to Utilities -> Terminal
Enter this command resetpassword and hit enter.
At the bottom of the window that appears, you will see "Reset Home Directory Permissions and ACLs". Click "Reset" and reboot.

This will hopefully resolve the permissions issue you're encountering, assuming it is rooted in a permissions issue- perhaps you manually migrated your user folder at some point?


How to fix 403 in Mac OS X built-in Apache? I'm trying to set a local environment on my new MacBook Air 13": built-in Apache with my own DocumentRoot, PHP, and MySQL. I usually update /etc/hosts just to run my local websites with a pretty permalink: local/example. For references, I usually check:

How to turn Mac OS X Lion into a web server?
Enabling Apache in Mac OS X Mountaion Lion
Apache permissions

This time I'm simply getting a 403 Forbidden error every time I hit 127.0.0.1, localhost, or local. First I saw through the terminal that both Apache and PHP are running (even though I can't view PHP pages); then I updated all permissions according to Apache permissions; now I'm just desperate. Here are the relevant Apache configs:

/etc/hosts (view file — added one line)
/etc/apache2/httpd.conf (view file — updated the DocumentRoot)
/etc/apache2/users/joao.conf (view file — created this file)
/etc/apache2/extra/httpd-vhosts.conf (view file — updated VirtualHost)

It looks like Apache is somehow denying me access to my DocumentRoot (which by the way is ~/Sites). Because ~/Sites is actually a symlink, I then tried to update DocumentRoot with the following paths (all pointing to the same directory):

~/Sites
/Users/joao/Sites
/Users/joao/Dropbox/Workflow/Sites (the original directory)

Still throwing 403. Any ideas how to fix/debug this?

Quick update — here's what my /var/log/apache2/joao.pt-error_log looks like:

[Sun Jul 07 12:50:45 2013] [error] [client 127.0.0.1] (13)Permission denied: access to / denied
[Sun Jul 07 12:50:45 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /favicon.ico denied
[Sun Jul 07 12:50:45 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /favicon.ico denied
[Sun Jul 07 12:50:45 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /favicon.ico denied
[Sun Jul 07 12:50:47 2013] [error] [client ::1] (13)Permission denied: access to / denied
[Sun Jul 07 12:50:47 2013] [error] [client ::1] (13)Permission denied: access to / denied
[Sun Jul 07 12:50:48 2013] [error] [client ::1] (13)Permission denied: access to /favicon.ico denied
[Sun Jul 07 12:50:48 2013] [error] [client ::1] (13)Permission denied: access to /favicon.ico denied

I have an alias specified in OSX server pointing to a user directory.
I spent a long while chmodding and messing with _www user, adding executable permissions recursively, uninstalling macports and all sorts of stuff trying to get this to work. No idea why it wasn't working.

Eventually, I just checked the "shared folder" checkbox in the Finder for that folder, and it worked, on the specified domain, with php active, the way I wanted it to. :/
...so that was easy.


Turn off iPad on-screen keyboard using Microsoft Designer Bluetooth Desktop Keyboard I'm using Microsoft Designer Bluetooth Desktop Keyboard with an iPad. This works great, except I'm not able to turn off the onscreen keyboard.  I understand that there is an eject button on the Apple Bluetooth keyboard that allows turning on and off the onscreen keyboard.  Is there a key combination that I can use to do the same on the Microsoft Designer Bluetooth Desktop Keyboard?

Microsoft doesn't officially support iOS with the Designer Keyboard. They actually list it on their website as non-functional with iOS. This strikes me as a very inconvenient step seeing as I am using it right now on the iPad Pro and it is hands down better than any other iPad keyboard I have used... other that that idiotic refusal to dismiss the virtual keyboard when in use!


Calendar on Yosemite I updated to Maverick and found that CALENDAR no longer could integrate "To Do" Items with events. Will Yosemite have this needed capabiity?

The "To Do" list on Mavericks and Yosemite is now separate app and it is called Reminders.

You will find it in your Applications folders.


In my ~/Library folder there is Caches folder. Can this be emptied? My ~/Library folder has gotten very large. Inside this ~/Library folder is a folder name Caches. This folder 5.5 GB. Can this Caches folder be trashed.

Yes.  Enjoy this sweet release.

Is it safe to delete ~/Library/Caches?

and savor the sensation when the next program to write to that folder finds the folder misssing. Usually the slow down to rebuild all the cached files isn’t worse than whatever you are experiencing now to cause you to want to purge.


New iMac freezing every click I bought this iMac 6 months ago, model late2019, with 64gb RAM and fusion HD 3TB
I ran all the utility tool and I get a lot of MT mapping warnings when i run the First Aid, but they don't seem to be critical error
I feel my computer started to get slower/freeze after a message about Adobe Creative cloud file being corrupted or what not... was an unusual message but i just ignored it until the mac was impossible to use, literally freezing for a minute every click.
I wonder if installing bigSur will fix everything or should I simply erase everything and reinstall the original OS, then upgrade to bigsur and reinstall all the apps (pain in the butt:))
thanks

First things first: Always backup your files!

I would start narrowing down the issue, i.e. trying to find the actual cause.

Run First Aid multiple times on your hard drive and see if it is able to repair the disk. You should also try running it in recovery mode.
Save your data before doing this: Uninstall the Adobe Creative cloud completely and delete all Adobe files. If this solves the problem, copy one file at a time back onto your iMac. By doing so, you should be able to tell which file may be causing issues.
Not clear from the question Check if certain programs slow down the machine, e.g. the Adobe Creative Cloud or something else in the background. You can check current processes in the Activity Monitor app.
Reset SMC and NVRAM/PRAM
Check if the problems persist in safe mode
(run Apple hardware test)

Check the different startup modes.
Making a clean install (preferably with an USB installer) is always an option, but will only solve software issues and should not be needed after 6 months.


How can I keep Safari from re-opening my tabs from my last session? When I re-open Safari on my Mac Mini, it keeps opening the same tabs that were open before it was quit (or before the Mac OS X was switched off). The result is that it takes too much time to be operative, especially when I restart my Mac.

In the preference panel, the "Restore windows when quitting and re-opening apps" option is already disabled, but Safari keeps opening the tabs open in the last session. I checked also in my MacBook, which is running Mac OS X 10.7.2, and that option doesn't change the Safari's behavior I describe in this question.

Is there any way to force it not to open all the tabs? I looked at its preferences, but I have not found anything that could help me. Is there any other way to disable this feature?

Quit it with ⌥⌘Q or run in the Terminal

defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -bool false


Lion Boot from a Flash Drive Mac So I'm trying to load a Lion DMG onto a 16GB flash drive according to this tutorial, but I only get as far as step 9. The data starts to restore to the flash drive, but right as it gets to the end, when it's only initializing, it gives me the following error:

What do I do?

If you have not tried it yet the free Lion Disk Maker can create a bootable USB drive from the .app.


Inspect the content of Time Machine single backup Every time I make a backup with Time Machine, the size of the data backed up is always 2Gb+.
I don't understand where all these data are coming from.
Is there a way to inspect the content of the single backup?

TimeTracker - this allows you to see the individual files backed up to Time Machine.
(It's a little down on the website.)


Changing the name of app containers in the iCloud Drive on OS X? I am using the iCloud Drive, and sometimes the name of an app folder is too clumsy and too long to own a place on the Finder sidebar. Per the previous attempts by others, the Finder sidebar uses only the original folder name, but ignore the alias name for all its items. So using alias isn't a viable approach to workaround the name of app containers.

As known from the iCloud Programming Guide, the name of the app containers is actually specified by a key in the app-provided plist. The file hierarchy of the iCloud Drive does prove this, but the plist doesn't seem storing together with the Documents folder for each app. Is there a way to change it?

After doing some searches in the Library folder, the plists and the app icons of the app containers are located in:

~/Library/Application Support/CloudDocs/session/containers/

Change the BRContainerName property in the plist of an app container, and restart the Mac. The iCloud Drive in the Finder will then display the changed name. As shown in the following screenshot, the app folder "Documents" was supposed to have a longer name "Documents by Readdle".

Without locking the plist, the name still hasn't been reverted after a restart. So it is still unknown in what circumstance the plist will be reverted back to the original version by the bird daemon. But given the fact that the plist specifies the corresponding app version, it will probably be reverted on an version update to the container-owner app.

P.S. Document Picker on iOS and the iCloud Drive web app are not affected by this.


I updated my iphone to version 9.2 and I no longer get calls on my other devices It doesn't ring through to my ipod touch, and attempting to call out says it is disabled on my iphone. When I go back to the settings for which devices to allow, and message forwarding, its all enabled and set to forward.

In the settings, updating to IOS 9 adds the new redundant setting "Calls on other devices" and turns that and WiFi calling back to "Off"

Settings -> Phone -> you will find Wi-Fi Calling and Calls on Other Devices to turn these features back on.


MacBook Pro 13" Touch bar permanently blank I'm on a new 2019 MacBook pro 13”. The TouchID fingerprint sensor is working. But my touch bar has gone completely blank. I tried restarting my MacBook Pro but it did not help.

I've also done a factory reset, SMC, NVRAM/PRAM and an Apple diagnostics, hoping to fix the problem but it did not work.

After re-install macOs, I was able to see touch bar configuration on System Preferences -> Keyboard menu:

I am not able to see touch bar option and it is completely dark black.

I tried resetting the touchbar through the terminal by using the below syntax:

sudo pkill “TouchBarServer”
sudo pkill "Touch Bar Agent"
sudo pkill ControlStripAgent

I have tried to verify whether they are running by using below command and could not find any process running.

ps -A | grep -i "touch bar agent"
ps -A | grep -i "controlstrip”

I can see the control strip and touch bar server is running in activity monitor:

I could see this is a common issues across mac book pro and customer don’t have any proper fix for it.

Your Touch Bar has failed and you need to have it serviced.

  The TouchID fingerprint sensor is working. But my touch bar has gone completely blank.

This very statement has come up a lot, even here on Ask Different. The touch bar and the fingerprint sensor are two completely different things - a very thin display and a fingerprint sensor - covered by a single pane of glass.  It’s a very common misconception to believe that the whole thing must be working because the fingerprint sensor is functional.

Think of the Touch Bar as a display, not unlike the display on an iPhone with the fingerprint sensor (i.e. iPhone 7+).  Many times the LCD would malfunction in someway, but you were still able to unlock it with the fingerprint reader.  The same thing is happening here.

You’ve done all the proper steps to diagnose it, but unfortunately, you’ve arrived at the only conclusion left - it’s dead.


OS X El Capitan partial download issue? (125kb file) I am having trouble downloading El Capitan.

I go to the app store and click download button for El Capitan.
Pinwheel spins for 5-10 sec then "download" button turns to "downloading" (this doesnt go away unless computer is restarted)
File appears in applications folder as "OS X El Capitan" with only 125kb downloaded.  File won't open when double clicked.

I've tried the following...
- check storage, i have 86 GB free

checked for unfinished downloads
cleared download folder in app store debug mode
deleted 125KB file and restarted
restarted in safe mode
ran disk utility (no errors found)

None of these have worked...  has anyone experienced this, know what's happening, or have any tips for next steps?  Internet board thus far have been dead ends.  Thanks!

note: i have 10.10.5

This happened to me, I eventually got it working though. I would suggest leaving the update running overnight, that should fix it.


How to reset the Finder to its default settings? Can the Finder be reset to all original Default Settings?
Note there is a specific motivation:  I no longer can view external DVD/CD drives from Finder even though they both can play movies/music CD's: see DVD/CD Drive no longer shows in Finder .  Resetting to Defaults would just be another thing to try.

To restore the Finder to its original state, you should enter this command.
rm ~/Library/Preferences/com.apple.finder.plist; killall Finder


Quickly view the monthly/yearly calendar Before mac os catalina, we could press F12 and see the dashboard including the monthly calendar.

On mac os catalina, dashboard has been removed. Any tips on quickly viewing the current month's/year's calendar in catalina.

Thank you.

Open Terminal and type command cal. What you get is calendar of current month, e.g.
   November 2020
Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

You can choose to display whole year, for example cal 2021. For more options open calendar manual by typing command man cal.
This solution is available on all versions of MacOS (and Linux). Another advantage is you can copy and paste calendar as text to other apps.


The path /System/Installation/Packages/OSInstall.mpkg appears to be missing or damaged - OSX 10.13.1 - High Sierra This is not a duplicate of this question. The situation is a bit different. In my case, I have already installed High Sierra on a MacBook Pro 15inch 2017. I encountered this issue when updating the Security Update 2017-001. It got stuck in a boot loop where upon entering my password, it would send me to install High Sierra. (I've installed it over a month ago). Then it would show this error.

My solution which has not been mentioned in the locked thread, is to hold the option key upon startup to use the Startup Manager to select out of the OSInstall route. Hope this helps anyone else running into this issue, as I've spend too many hours trying to fix this.


Migrate Photos projects to a new Mac How to migrate Projects from Photos to a new MacBook?

Photos projects are stored in the Photos library, which you can copy to another computer. By default, the Photos library is located in ~/Pictures, i.e. the Pictures folder in your home folder. Copy this to your new computer in the same place, then open the Photos app.


'sudo ifcong en0 down' - does not stay down in OS X? My goal is to terminate all ethernet traffic through en0 until I bring it back up with ifconfig en0 up.

When I run ifconfig en0 down through terminal, and then confirm ifconfig and all interfaces are inactive.

However, the next day, I find that en0 is back up automatically. How can I find out what brought it up, and is there a better way to ensure it stays down?

Use the networksetup command instead. On my system en0 is Wi-Fi, so I use networksetup -setairportpower en0 off. I actually use a little AppleScript that sits in my Dock and toggles the state. See the networksetup manual page for additional information using networksetup.

Save the AppleScript code as an application named Toggle Wi-Fi and then you can run it as needed/wanted. If you run it and Wi-Fi is on, it turns it off, and if it's off, it turns it on.

on run
    set interface to "en0"
    set status to do shell script "ifconfig " & interface & " | awk '/status:/{print $2}'"

    if status is "inactive" then
        do shell script "networksetup -setairportpower " & interface & "  on"
        display dialog "The Wi-Fi Network Adapter is turned: ON" with title "Wi-Fi Network Adapter Status" buttons {"OK"} default button 1 giving up after 3
    else
        do shell script "networksetup -setairportpower " & interface & "  off"
        display dialog "The Wi-Fi Network Adapter is turned: OFF" with title "Wi-Fi Network Adapter Status" buttons {"OK"} default button 1 giving up after 3
    end if
end run

Updated to address Ethernet Adapter usage:

on run
    set interfaceNumber to "en0"
    set interfaceName to "Display Ethernet"
    set status to do shell script "ifconfig " & interfaceNumber & " | awk '/status:/{print $2}'"

    if status is "inactive" then
        do shell script "networksetup -setnetworkserviceenabled " & quoted form of interfaceName & " on with administrator privileges"
        display dialog "Network Adapter " & interfaceNumber & " is turned: ON" with title interfaceName & " Network Adapter Status" buttons {"OK"} default button 1 giving up after 3
    else
        do shell script "networksetup -setnetworkserviceenabled " & quoted form of interfaceName & " off with administrator privileges"
        display dialog "Network Adapter " & interfaceNumber & " is turned: OFF" with title interfaceName & " Network Adapter Status" buttons {"OK"} default button 1 giving up after 3
    end if
end run

Note: In the code above the name of my Ethernet Adapter is "Display Ethernet" and you'll need to change it to whatever the name of your Ethernet Adapter is. You can ascertain it in System Preferences > Network.


Dock crashes on network aliases to offline server I have several shortcuts to network folders in my dock. Since I'm running El Capitan, the Dock crashes and will not restart properly after killing it when those network connections are not available (the server is either off, or I'm on another netowork).

Is this a known issue? Are there any workarounds? I can't find any related topics.

In my case, I removed the passwords and the servers from the Keychain access.

And El Capitan doesn't try anymore to auto-connect to the servers.

This in not the perfect solution because I have to tape the password each time, but for now, it's better.


I cannot type the letter "c" on my iMac G5 I have an iMac G5 running Mac OS X 10.5.8. Unfortunately I cannot type c. I have tried both wired and wireless keyboard, and both bluetooth and USB-dongle wireless. Even over VNC from my (somewhat more current) iMac, I cannot type the c key.

Each time I press the c key it plays the "Funk" error noise (sometimes after a delay of a few seconds).

I am able to copy and paste the letter "c" from a file which already contained the letter "c".

This article from Mac World (for macOS 10.12.5, not Mac OS X 10.5.8) suggests that the key could have been set up to speak the selected text.

This would consistent with the "Funk" error noise each time I pressed the c key, because there was no text selected for it to read out! I tested this by selecting some text and, lo and behold, it read the text out.

The interface in macOS 10.12.5 is different enough that it's not clear where to find the settings from the article.

Open System Preferences and click "Speech".

Click "Text to Speech" in the tab bar and then, next to the "Speak selected text when the key is pressed" click the "Set Key..." button.

Chose a new key combination (mine was set to c1). I changed it to Option + Esc.

I can now type the c key!

1 It was actually set to Caps Lock + c. Why this was being triggered without Caps Lock being turned on or depressed I am unsure.


15" MacBook Pro freezes My 15" MacBook Pro, running macOS Sierra freezes frequently. This happens randomly, it freezes and only a force-shutdown (hold the power button) works. First, the Beachball just spins, then sometimes a black screen appears without any description or explanation. At this point, other buttons do not respond.

I tried DiskUtil, CleanMyMac and OnyX to check the SSD, tried reparing permissions and other decisions. But my MacBook continues to hang, although now a little less.

Please recommend me other programs for testing and troubleshooting. Is my MacBook dying? Which devices can cause this problem?

First, back up all the data on your Mac with Time Machine, SuperDuper!, etc.

Second, create an installer of macOS Sierra (latest version) with DiskMaker X or other tools.

Third, reinstall macOS Sierra with the installer, but don't erase the hard disk your Mac. All settings and data will still be there as before.

Just to see if the issue occurs again or not. Try to erase your hard disk and reinstall macOS Sierra, if it happens again. Remember to back up all your files before the operation.


Removing items from Reading List in OS X/Safari How do I delete items from the Reading List in OS X/Safari? Little grey X does not show up, which is what it says to click on?

To delete a single item from Safari's Reading List, Control + Click  (or right click) the item and select Remove Item:


How can I remove geolocation info from a picture on an iPhone? Since geolocation info is usually preserved when I share a photo from my iPhone, I was wondering what the simplest way is to remove this geolocation info from an existing picture.

To be clear: I don't want to take a new photo, and I don't want to disable the option that geotags my photos. I just want to take an existing photo, remove the location info (e.g. by duplicating it, while retaining the original size), and then send it to a friend.

There's an App called GeoZapper ($1-$2) (or a free, limited Lite version), which will remove geolocation info from pictures.

If you know of any other apps or alternative methods to remove this info, please post them.


Increasing available RAM on Bootcamp under Win7 First the good news - I've successfully used WinClone/Sysprep to migrate a Windows 7 x32 bit VM from an old iMac (running 10.6.8) to a new late 2013 iMac w/ 32GB RAM / OSX 10.9.1.

Now the bad news - Windows only shows 2.2GB RAM available (on the old iMac there was 2.98GB RAM available). This Windows machine is running a custom piece of software, and I'm running into trouble with the limited available memory.

Is there a way to increase the RAM available for BootCamp and/or Windows 7?

I may try to start over with a x64 Windows 7 installation, but I'm hesitant to do so because the custom program doesn't have any documentation, and I'm not sure how the compiler would react to the 64 bit environment.

First, let me explain the problem a little: in 32-bit mode, the processor can only address 4GB of stuff. The problem is that "stuff" doesn't just include RAM, it includes RAM and memory-mapped I/O, most notably the video card. Since your new iMac has a bigger, better video card (with more video memory), it takes up more of the 4GB address space and there's less left for actual RAM.

There are several ways to make more RAM accessible to your program:

Switch to 64-bit Windows. This allows the OS to address all of your RAM, and is really the right way to solve the problem. If you can't recompile your custom program for 64-bit mode, it should be able to run in 32-bit mode thanks to the WoW64 compatibility layer.

Downsides: you'll have to do a custom install of the OS (meaning you basically start from scratch). There's also still a possibility that the program won't work (most likely if it includes 32-bit device drivers), and in this case you'd have to do another custom install to get back to 32-bit Windows. So, while this is really the best solution, you might want to try the other options first.
Enable physical address extension (PAE). If the driver supports it, this'll allow the video memory to be mapped above the usual 4GB limit, allowing you to use more of that 4GB for RAM. I haven't used this, but it looks pretty easy to enable and disable, so I'd be tempted to try this first.
Enable 4-Gigabyte tuning. This shifts how the address space is allocated, giving applications more and the kernel less. I'm not sure how this'd work (or even if it would work at all) in your situation, but it is another possibility. It can also be used together with PAE, so you can try different combinations to see what works.


Specification of mid-2010 15" MacBook Pro LCD panel? I've been enjoying my mid-2010 15" MacBook Pro for almost two years now, and am quite satisfied.

However, I never knew what the computer's display's exact specifications are (other than it is LED backlit and has resolution of 1680x1050).

Does anyone have such information? I.e. static contrast ratio, response time, panel technology, etc. etc...

Thanks!

Using information from the iFixit Team, I managed to get the part number of the display.

Apple Part #:      661-5483
Product code:      IF161-053-1 glossy, standard resolution
                   IF161-053-3 glossy, high resolution
                   IF161-053-5 anti-glare, high resolution

You can use this information for further research. I was not able get more than this:

Size:           15.4"
Resolution:     1440 x 900 WXGA+
Backlight:      LED
Surface:        Glossy
Aspect Ratio:   16:10 wide
Screen Type:    Thin-film transistor (TFT), Active-matrix Liquid Crystal Display (LCD)

[source 1,2]


Contact name suddenly missing I recently deleted my Exchange email account (old work email) and now some of my contacts are "missing". When I search for them to send a text message they are there but their names disappear. They are not, however, in my contacts list. Anyone know how to fix?  I've done a reboot but it didn't help.

Not much you can do if they were exchange contacts. The messages will still be there because they were created before you removed the account that stored all your contacts. You could probably re-add the exchange account, and see if you can mass-move the contacts to your iCloud group in contacts - probably best to try this on a mac if you have one.


iphone 4s< update and find my iphone An iphone 4s at iOS 9.0.2 is asking to upgrade to iOS 9.1

The problem is that we know it's activation locked and we don't have control of that Apple ID.

Since I cant disable it if I can't remember a password. So if i update my iphone this will not block it or leave the phone bricked?

(The back story if it matters is problem when iphone was buyed from second hand user forget remove his accaunt, all was disabled but i make stupid thing i enable Find my iphone and now i cant nothing to do.)

If you update the phone, you might be prompted to reenter the password that you do not know.

However, if the update goes bad due to file system corruption on the device you will not have the option to erase the device and start over.

For that reason I would recommend not doing anything until you can get control of the device or you have a budget to replace it should you lose control of the secondhand and activation locked phone.


Keyboard rubber spacer broken I bought a wired aluminum keyboard in May this year. Today one of the rubber spacers pressed into the case and I can't get it out. As the keyboard is now extremely loud while typing and not even anymore, I'd like to have it replaced/repaired by Apple. Does anybody have experience with that problem? Is it a pain to get it repaired?

I don’t have experience with Apple Keyboard problems specifically, but this seems like a problem which Apple would fix by simply replacing your keyboard. Assuming that the spacer broke during normal usage, and that you are still within the original warranty period for the hardware, it’s far easier for Apple to replace the keyboard than to attempt to repair it.


How can I dismiss the App Store banner in Notification Center without taking an action? This is the notification that pops up from the App Store on Mountain Lion:

As you can see, the only options are Details and Update. Most of these banners have a 'close' button, to dismiss the notification without taking an action. On this one though, it seems like the only action I can take is opening the App Store with it.

Just clicking the x in the Notification Center list doesn't get rid of this actual notification.

How can I close this without taking the time to open up the App Store?

To dismiss the notification temporarily:

Click and hold the banner and flick it to the right to put that notification in Notification Center. If you are using a Trackpad, You can hover over the alert and use two fingers to flick it to the left.

The notification will still remain in the Notification Center until you update.

Unfortunately, there is currently no way to dismiss the notification permanently.


How to know if Drive is SSD or HDD through Terminal? I would like to know if there is a way through Terminal commands in Mac OS X to find out if an external drive is SSD or HDD.

A very dirty solution ;-) : Enter system_profiler | grep "Media Type: SSD" in Terminal.app.

A more detailed approach is system_profiler SPSerialATADataType and you'll get all devices attached to your SATA interfaces with - beyond other informations - the Medium Type which may be Rotational or SSD.
By adding -xml > ~/Desktop/MyReport.spx you will get a XML-file on your desktop which can be opened by System Information.app.


How can I get Gmail Chat to run in background on my iPhone? For my iPhone, is there anyway to have gmail chat ping me, when a new chat occurs, and I am on another app?  Unlike Android or Blackberry, I am amazed that I have yet not found anything that works well on the iphone for chatting with friends.  Am I missing something here?  Or is this just one of the greatest overlooked features that my iPhone does not have.

And any solution offered can be either from the app store or cydia.  Thanks.

Trillian for iPhone works great for this.  Supports push notifications and multiple other IM networks besides Google Chat.


Mail downloads immediately visible when I read appended docs in Mail, it saves each one of them automatically Mail Downloads in separate obscurely named folders. The same docs can be saved so numerous times. Can I get rid of these folders so that I see immediately what files were downloaded?

In Mail Preferences, you can specify where the attachments are saved.

Check this settings and decide what you want:

If you want it the old way

Use Automator that will save all Attachments in a Folder of your choice. Then you can decide what to keep and what to delete.


MacBook Pro 3.1 internal (replacement) LCD not detected by graphics card; external monitor OK My MacBook Pro (2.4 Ghz, Santa Rosa with infamous nVidia card) acts strange. I replaced a cracked screen with a new and since then I have been loosing my mind over this problem:It shows the normal gray screen with Apple logo and animation flawlessly during start up but the internal display goes black without any rendering at all when all is loaded. (shining a light on display show nothing) If an external monitor is connected through the DVI port it will remain black during start up and then show the desktop as the internal display goes black. This happens both while booting to Mountain Lion and Windows XP. I have checked "About my Mac" and only the external display is listed. The same is the case if I use the nVidia Control panel in Windows XP. The mirroring works in Windows XP although with distortion.

My questions: Is this a hardware problem or is it related to software maybe even firmware? What controls the display during start up, graphics card or something else?

This sounds like a hardware issue, but there might be a few things you can try.

I would boot the mac with the cmd+v keys to show a verbose output. If this doesn't work, you could try resetting the NVRAM/PRAM (docs can be easily found on the apple site)

If you don't see the Internal Display in the about my mac app, the Display Data cable might be improperly seated. There is a fairly good tutorial on iFixit.com http://www.ifixit.com/Guide/Installing-MacBook-Pro-15-Inch-Core-2-Duo-Models-A1226-and-A1260-Display-Data-Cable/1312/1


drop of water on mousepad of macbook pro and now the mouse is being odd? I had wet hair and some drops of water landed on my trackpad. It happened on last friday or thursday, so like 4 or so days ago. And basically now my mouse will just randomly click on stuff and right click too and for the first couple hours I couldn't use it and I wasn't able to get it to work except for the top portion of the mousepad. and now It's no longer that bad, but it still randomly clicks and moves around. should I take it to a genius bar or do you think it'll just eventually stop? any help would be really appreciated and sorry I know this has probably been asked a hundred times.

This sounds like you may have liquid damage to the system. If this is the case, the issues won't just go away. Water-based liquids are very corrosive to electronics and the damage cannot undo itself. However, you can certainly take it to the Genius Bar. However, I wouldn't mention the water droplets to them. If they can't visibly see the liquid damage and can confirm the issue (and provided you are under warranty), they may replace the trackpad piece free of charge.


Snap/Maximize function has stopped working. What could be wrong and how can I fix it? Forgive the poor title.  I don't know what this feature is called.  I'm using OS X Lion, and there is a feature that I use all the time with my Thunderbolt display.

Specifically, if I grab the title bar and drag it to the top-center of my display, it expands the window size to the full size of my display.  If I drag the title bar to either the left or right of the screen, it fills 50% of the display, on that side.

All of a sudden, this functionality has disappeared.  I haven't been playing around with my computer preferences, either.

Is there a chance that I've hit some type of keyboard shortcut and accidentally cut it off?  Or, is there some preference setting (which I've tried my hardest to find) that I can check to see if this functionality has been cut off?

UPDATE

This is my first Mac.  It was purchased by my company for an iOS project that I've been given to complete.  My boss had setup some aspects of the machine before he passed it off to me-- I doubt he would have installed a third-party app because that's not how he works.

I did, however, install a third-party app that I used to make a few minor sensitivity tweaks to my magic mouse.  I know that app was a bit of over-kill for me, but I may have set some feature in it.

The odd thing is, I don't recall keeping that application, nor can I find it in my app folder.  Oh well.  Thanks for the helpful tips.  I'll restart and see if that helps.

It's unbelievable how much you can miss such a simple feature until it's gone.

This is not a feature provided by OSX.

You must have an extension installed  which adds this feature. e.g. BetterSnapTool or BetterTouchTool.

Maybe everything is fine and the applications just crashed. Then I'd try to log out and back in.

Also see this list of window mangement tools to check if you have such an application installed.

check for such an application in /Applications and ~/Applications
check System Preferences → Other


How to correctly download WWDC videos from iTunes U? I am trying to download WWDC videos from iTunes U. When I click on "Get" it starts downloading but after the download completes it disappears from iTunes U collection.

I tried to download it from my new MacBook Pro, OSX Lion and iTunes 10.5 .

When I downloaded the same video from my office mac running OSX Snow Leopard 10.6.7 and iTunes 10.4 everything worked.

What could be wrong in this case? Should I wait for new iTunes update?

I had the same problem and setting iTunes to run in 32-bit mode fixed it for me. There might be an issue with the video encoding on some of the older WWDC videos like the "Working with Core Data" video that can be found at the Apple developer video site under iOS.

To set iTunes to run in 32-bit mode:

Quit iTunes.
Open your applications folder and control-click or right-click on the iTunes icon.
Select "Get Info".
Click the checkbox next to "Open in 32-bit mode".
Open iTunes again and you should be able to download the videos to your collection.

When you are done with your videos, you can always reverse these steps to set iTunes back to 64-bit mode.


Prevent iPhone "Trust this computer" on work PC I would like to charge my iPhone using a USB plug on my Windows PC at work.
However, any time I begin charging with the phone unlocked, it prompts me:

  Trust This Computer
  Your settings and data will be accessible from this computer when connected.
  Trust Don't Trust

In my case, I never want to trust this PC, and I never want to accidentally click "Trust".
Is there a way to keep the phone from prompting me?

You can buy "charge only" cables.  For examples open Amazon and type "usb charge only cable" in search.

Electrically a "charge only" just connects the power pins, and not the serial date pins between the computer and device.


Can't download or update Mac App Store apps I can't seem to download or update any apps purchased in the Mac App Store.  So far I've tried most of the usual troubleshooting tips found by googling the issue (deleting caches & preferences, signing out & back in, rebooting).  Nothing's helped at this point.  I've deleted the app from the Applications folder to try to re-install it but when I click Install, the wheel on the top left just spins for a few seconds then nothing happens & the install button reappears.  I don't have any problems on a different Mac.  I do have the same issue if I create another account on this Mac, so it must be a system setting somewhere...

I'm not sure why this worked, but I just downloaded the apps through the app store on a different Mac, then copied them over to the problematic Mac.  Since then, there have been other updates applied with no problem.  I'm not sure what the problem here was.


Failing to send Wake-On-LAN UDP packet with netcat I'm trying send a WOL packet from a bash script under Mojave, much like https://stackoverflow.com/a/31588036/9370650, without any third-party utilities, such as the nifty https://github.com/jpoliv/wakeonlan.

I don't, however, seem to be able to successfully broadcast anything at all to 255.255.255.255 on port 9 using netcat.

If I listen to UDP port 9 like this:

$ nc -uv -l 9 -w0

netcat then reports the WOL packet when I run the perl-based wakeonlan script I mentioned above.

But, if I try to do my own UDP broadcast to 255.255.255.255:9, like this:

$ echo "hello" | nc -vu 255.255.255.255 9

it isn't seen by my listening instance of netcat.

For the record, the output from my attempt to broadcast looks like this:

found 0 associations
found 1 connections:
     1: flags=82<CONNECTED,PREFERRED>
    outif (null)
    src 192.168.1.7 port 51674
    dst 255.255.255.255 port 9
    rank info not available

I'm not a networking expert, so I'm likely misunderstanding something here.

Any thoughts on what I'm doing wrong?

I've likely answered my own question:

The BSD version of netcat included with macOS lacks the -b (broadcast) flag.

And even though 255.255.255.255 is a special global address for broadcasting to the entire subnet, simply sending to it apparently isn't enough to imply/accomplish a broadcast without that missing -b flag.

So, my impression is that the macOS version of netcat simply won't do what I'm trying to do.

If I were to install an alternate netcat implementation using homebrew or some other source, it might accomplish it--but at that point, I'd rather just depend on having wakeonlan installed.

I'll leave this answer here, but unaccepted, hoping that someone with more low-level networking know-how provides a better answer at some point.

Edit: Also, if one were going to install other software due to netcat limitations, it looks like socat (described as "netcat on steroids") would likely be something to seriously consider, instead of just an alternate version of netcat.


How to import iPhone pictures directly to Flickr to save space? I don't like to keep pictures on my small Macbook Air SSD nor on my iPhone, so I am wondering is there a way to upload iPhone pictures directly to my Flickr account without having to import them on my hard drive, and by doing so automatically removing the pictures from my phone to save space?
I tried to do it with iPhoto, but it looks like it always has to import those pictures on my hard drive...
Thanks!

Assuming you have a Flicker on your iPhone!!

Click the camera button.

This will take you to the camera screen.

To the left of the camera shutter button is a symbol that looks like 4 layered squares, click that.

This opens up your photo albums, depending on how many albums you have, but usually 'camera roll' will be listed at the top, click and open.

Click on the image you want to upload and hit the 'done' button to the top right - you now be sent to the filter page, from here you can add filters or crop. To access the editing click the pencil symbol, when you finished click done and you'll be brought back to the filters page, add filter or not, then click 'next.

Now you should be at the 'Details' page, here you can add title, description, change privacy levels, share to fb, twitter, tumblr, add location data.

If you want to add tags, add to sets or groups you need to click on 'Advanced'.

When you've finished adding at the info you need to click 'upload'. Job done :)


In my iPad settings there is an app called null what is it? When I go to settings on my iPad it shows an app called null what is this? What do I do about it? Is it bad or nothing to worry about?

It's not obvious where this app came from. According to the answer to this question, it probably is an app that was incompletely synced with iTunes.

There's nothing to worry about, and you don't need to do anything about it.


Macbook Air Mid 2013 screen flickering after using in clamshell mode I've been using my MBA in clamshell mode connected to a Samsung B2330 LCD monitor for about 2 days, using an Apple Mini Thunderbolt to DVI adapter. After taking it out of clamshell mode yesterday to use as a laptop, there was a heavy flicker on the screen. It seemed to affect mostly the startup screen and background image. Panicking, I started googling for solutions, people reportedly fixed it by resetting the SMC and PRAM. I tried that a few times and I don't think that it worked. But after a few minutes the flickering started to gradually go away, until it eventually became normal again. I'd say it took about 10 minutes to become normal again.

My procedure for taking the MBA out of clamshell mode is:

Put MBA to sleep from the Apple menu.
Switch off external screen.
Unplug peripherals from MBA.
Open up MBA and use as laptop.

My question is, does anyone know why this is happening, and what the fix is?

Putting MBA in to Sleep mode will make it write a Sleep image, that is a file that contains your last settings ect.

Now when it wakes up it tries to load that file just to find out all is different now, no monitor ?

Then it goes in to switching the display modes that creates the flickering.

My advice, skip the Sleep mode and just open the clamshell, then turn off the monitor and unplug it.


Water spots on screen after liquid got in iPhone 6, fixable? Issue: The ringer on/off switch on my iPhone 6 was stuck/gummed up so I sprayed it with contact cleaner. I didn't think liquid could get in through that opening, but I was extremely dumb. iPhone was off, waited overnight before powering on. Major waterspotting on screen. Rice trick got rid of most of it, but some spots remain. iPhone works 100%, except my battery life took a nose dive after, surely related. I'm about to replace the battery (which I've done before; iPhone is way past warranty).

While I'm in there replacing the battery, how do I also fix this waterspot issue?

I was thinking I might be able to wipe the liquid spots off with alcohol after reaching steps 37-41 in this iFixit guide: https://www.ifixit.com/Guide/iPhone+6s+Front+Panel+Replacement/56283

Two pictures of current state here on GDrive. I could live with it:
https://drive.google.com/file/d/1OnUqyyuLHVz2ahBBqVt2TLEsM13_VhyH/view?usp=sharing

https://drive.google.com/file/d/1ahYU2YGUUUepffWd47mwV32_fmFd1Rtd/view?usp=sharing

Sure, you can swap the LCD and battery while you’re in there. Up to you if you want to replace more like the digitizer.

I’d live with it for as long as you can until you determine if the contact fluid will corrode anything else or if you won’t use the phone for another 13 months.


brew installed software (keg-only) which includes /usr/local/Cellar/*/share/man/ - No manual entry for readline I installed the keg-only readline

> brew info readline
readline: stable 7.0.1 (bottled) [keg-only]
Library for command-line editing
https://tiswww.case.edu/php/chet/readline/rltop.html
/usr/local/Cellar/readline/7.0 (45 files, 2M)
  Poured from bottle on 2016-11-22 at 22:40:10
/usr/local/Cellar/readline/7.0.1 (46 files, 2M)
  Poured from bottle on 2016-12-03 at 22:44:53
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/readline.rb
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/readline/lib
    CPPFLAGS: -I/usr/local/opt/readline/include

This package installs manpages:

> brew ls -v readline | grep man
/usr/local/Cellar/readline/7.0.1/share/info/rluserman.info
/usr/local/Cellar/readline/7.0.1/share/man/man3/history.3
/usr/local/Cellar/readline/7.0.1/share/man/man3/readline.3
/usr/local/Cellar/readline/7.0.1/share/readline/fileman.c
/usr/local/Cellar/readline/7.0.1/share/readline/manexamp.c

I can't see the manual. I get No manual entry for readline.

Howto view the manual with man readline?

The -M option for man allows you to specify a path. The exact command you're looking for is:

man -M 3 /usr/local/Cellar/readline/7.0.1/share/man/man3/readline.3

Note that the number after the -M specifies the "man page section", which is the last character in the file path. For example, I have two versions of sshd installed and I read can both their man pages with the following commands:

man -M 8 /usr/share/man/man8/sshd.8
man -M 8 /usr/local/Cellar/openssh/7.3p1/share/man/man8/sshd.8

I'm curious why brew didn't symlink readline, since brew's readline is the only one installed - presumably past versions (I'm on Sierra) of macOS did have readline? I'd tend to be conservative here, and honour brew's decision as far as possible - just in case Apple decide to install readline again with a future OS upgrade. That being said, you could manually symlink readline:

ln -s /usr/local/Cellar/readline/7.0.1/share/man/man3/readline.3 /usr/local/share/man/man3/readline.3

The risk with this is that - if Apple do install readline in the future - you'll end up with Apple's readline in your $PATH (and not brew's, since it's keg-only and hasn't been linked), but brew's readline will occur first in your $MANPATH, before the man page for Apple's readline.


Boot from different drive without using Alt/Option My 2011 27 inch iMac will not boot, it plays the startup sound and then freezes on a white screen. I am fairly confident I could fix it myself if I could get it to boot from a USB drive or external disk but holding Option ⌥ during boot does not bring up the boot selector.

Is there another way to get it to boot from a different drive without using Option ⌥?

For example, if I attach an external drive with OS X installed will it automatically boot from it?

edit: I found this page which sounds exactly like what the problem is. So I am looking for another way to replicate what they are accomplishing, by disconnecting the cable, without having to remove the glass.

If you could boot OS X, you could use the Startup Disk preference pane to select an alternate boot disk.

There are a few other boot-time options you can try: hold C to boot from an optical disk or hold T to boot into Target Disk mode so you can read the hard drive from another computer (over FireWire or Thunderbolt).


How can I use a custom .klc Microsoft keyboard configuration file on macOS? I have a keyboard defined as a .klc file by Microsoft Keyboard Layout Creator for the underrepresented language Fulfulde (fub) in Arabic-style script. I would like to use it on Mac. How can I convert it?

I know about SIL's Ukelele keyboard layout for macOS, but I can't figure out how to import the .klc file. I don't even know how to interpret the contents of the .klc file so that I can manually enter them into Ukelele.

Here's the .klc keyboard definition.

I have never heard of any way to convert windows layouts like this to OS X. You probably have to create it from scratch or just modify an existing Arabic layout.  If you could find one already made for Hausa Ajami, it might be similar.

You could also ask on the Ukelele list:

https://groups.google.com/forum/#!forum/ukelele-users

Converters do exist to go the other way, from .keylayout to .klc

One (perhaps tedious) possibility would be to edit/redo the list contained in the .klc and try to use it in KeyLayoutMaker.  But I suspect drag/drop from Character Viewer into Ukelele's graphic interface, using Apple's Arabic Qwerty layout as a basis,  would be easier.

If you do create such a keyboard, I would be grateful for a copy.


Network interface fallback? I have 2 internet interfaces: Ethernet and Wifi.
Ethernet is the office network (read: completely closed) and Wifi is way more permissive.

The ethernet is used for back-office systems (internal access only. addresses are not public) and the wifi for everything else. Now, what i do is:
1.Set Wifi as default network.
2.Server not found? Set Ethernet as default network
3.Content blocked? go back to 1.

Is there a way to make this auto?

Edit1:
Clarification: the back-office systems are not accessible via regular web, only via intranet

Sure, since all networks are active, you simply have to set up network ranges so that each destination is routed to the correct network.

If you can manage the DNS locally, you can have your system point to your local DNS server that can look up all the local host names and then get you an external DNS as well.

Or you could just use IP addresses locally and then your computer knows how to get to all the machines over all of the adapters.

You could even have the wired network have two IP addresses on one connection, so it’s really flexible on the macOS end to match whatever network setup you choose to set up.

In your case, set the WiFi to be the default network setting - drag it higher in the list in the network setup, and have the ethernet lower than the WiFi and then the default route is to WiFi

you don’t need network locations to set this up unless you want to have a simpler setup when you leave the office. Here is the guide on setting service order and location setup if you wish to automate switching from a split network to a unified one:

https://support.apple.com/en-us/HT202480#serviceorder


Yosemite freeze at boot - no safe boot + I/O error Yesterday everything was fine but today my macbook freeze/stuck during the boot.

I've done this:

check + repair permission (nothing changed)
check + repair disk (nothing changed)
tried safemode (doesn't boot)
resetting pram with cmd+opt+p+r (nothing changed)
boot in verbose mode, shift+cmd+v and after "waiting for DSMOS" appear disk0s2: I/O error. (now 6 times, but it will continue I think )
tried to use fsck in single user mode and it says that the disk is ok
tried to reinstall the OS (nothing changed )

Any idea how to solve it?

I/O problems are a good indicator that your drive is past its best. Replace the drive or do the following...

Back up everything of value via Target Disk Mode (if possible) then boot your MacBook from a USB or DVD installer. Run Disk Utility, selecting the secure erase/zero fill option and wipe your drive.

This will issue an ATA secure erase command that will fill every allocation block with a zero, automatically mapping out any bad blocks/sectors that will be causing your I/O problem. This is the modern equivalent of the old low-level format, and while there is some debate on the subject I use this method regularly and it works well - assuming the drive isn't riddled with bad blocks.

All FSCK does is check the file structure, it doesn't scan the drive surface to determine if the drive has any damaged sectors. Even the drive's internal SMART diagnostics may indicate all is well when in actual fact the drive is on its way out.


Pandora app icon missing on Verizon iPhone 4 I am trying to help my friend get his Pandora app back on his iPhone, I don't use iPhones (Android guy) so I have no clue how to add the app back to his home screen, I have searched everywhere. I reset settings and made sure there were no restrictions set. I can search the iPhone and launch Pandora that way. I don't know how to uninstall it since I think you need an icon for that.

Any way I can get the icon back so he can just press it and launch Pandora?

Are you absolutely certain it's not there? There are a few reasons why you might not be seeing it, only one of which is due to the icon actually not being visible.

The obvious one, you're simply overlooking it in an obvious place. Unlikely I know.
The almost as obvious one, it's in a folder and you haven't looked inside the folder. Also unlikely, but less so.
There are so many apps installed that it doesn't fit on the 11 Springboard pages. This is the most likely, because you can have as many apps installed as you want (flash memory permitting) and they'll always be available via Spotlight search, but you can still only display 180 icons. If you use folders then each folder can contain 12 (or 16?) icons, but if you've hit that 180 icon maximum (11 pages x 16 icons + 4 icons in the permanent bottom row) then additional apps simply won't appear.

If the problem is that there are too many apps, put some in folders (or delete some apps) and then sync with iTunes and the rest will reappear. Alternately you can use the iTunes app organizer to rearrange things; in that organizer you can see all of the pages of apps past page 11, which are kind of grayed-out so you know they won't actually appear on the device.

Even if you don't have 11 pages of apps, try the iTunes app organizer anyway and see if you can find the app icon then, and try moving it to a more conspicuous place.


Are there any AirPrint compatible print servers? We have several printers here at home, and I am thinking about enabling AirPrint. I'm not interested in driver hacks, since they often require a computer to be running with a shared printer.

I am under the impression that there are devices that can be attached to a regular parallel or USB printer which will enable network printing. With this in mind:

Are there any such devices that enable AirPrint? Are there even such wireless devices?

Lantronix xPrintServer is a hardware device which can be plugged into your network to offer AirPrint services to iOS devices. I haven't used it myself, see ArsTechnica for a brief description:

  Simply plug it in to your home or office network, and every printer accessible on your local subnet—be it wired or wireless—will now show as an option when using AirPrint. There's no configuration necessary; any printer that supports JetDirect, LPD, or IPP printing will work, and that includes pretty much every printer with network support.


Changing the icon on the "window bar" Mac OS X I was wondering how I could change the icon in the "window bar" of my Mac app
I've also added a picture of the icon I want to change since i believe window bar isn't the correct term.

Thank you in advance! :)

You'll want to use -setRepresentedFilename:or the other similar methods. I don't think you can just change the icon to anything, it has to be associated with a file.


iOS: Sounds when Headphones Are Plugged in but Silent Otherwise? Is it possible to set up an iOS 6 device (for example, specifically the iPhone 5, or 3rd generation iPad) such that all the usual sounds from apps and the system sounds like typing or message notifications play when the headphones are plugged in, but when headphones are not plugged in the device is silent?

The silent switch on the left of the device allows one to completely mute (orange in picture below) or unmute all sounds when no headphones are plugged in.

However, when headphones are plugged in, third-party app sounds (e.g.: game music/sfx, video sounds, etc.) will still play through the headphones whether the switch is activated or not.

Unfortunately, there is currently no way to achieve the same behavior for system sounds and Apple apps.


Safari showing website in different language than what's set in Preferences Surfing around found a web site I needed info. from. It's in Japanese Language.  Whats w/ that? Safari is browser, an it's set with English as language, in Region Setting preferences.

Is there no changing the Web page language and shouldn't all language on this Mac be in English if Regional options have been set U.S.A.?

Regional Settings in Preferences sets your "localization" preferences.  In other words, it sets the language, the decimal notation, the date format, etc. for your local computer.

It does not force remote computers to conform to the standard you selected.

Whether or not a website displays in your preferred language has to do with the website/web developer and whether or not they chose to implement a translation mechanism or alternate websites based on country of the visitor (this is usually done by a combination of location and browser agent string).

If the website you visit doesn't provide either an English version or an automatic translation feature, there are online translators available.  I prefer to use Bing Translator


Spotlight Date calculator Do you know the way (system pref., additional app etc.) to enable Date calculator inside Spotlight app?
I'm using regular calculator a lot but I would like to have there an option to add one time duration to another like: '30m + 20m' or '0:30 + 0:20' and get from spotlight 50m or 0:50.

Basically format of time doesn't matter, I'm asking about functionality.

Thanks in advance.

I couldn't find a way to do it in Spotlight, but if you use Alfred app, you can add the behavior with Workflows. I found this Workflow helpful, https://github.com/LeEnno/alfred-date-calculator.


Does MacPorts keep a log for actions like install and upgrade? After I ran sudo port upgrade outdated I’d like to know what was upgraded. The output was longer than my scrollback buffer.
I checked /opt/local/var/macports/logs/ but it seems to only contain logs for some of the compilations, not installation. For example, a copy of the output of sudo port upgrade outdated would be nice. Right now I simply tee the output to a file, but this kills the nice progress bar since port doesn’t see a TTY at the stdout.

I will be semi helpful here. I can show you where the data is and an SQL query but you might need more for a clean solution.
Macports keeps a registry in an SQLite database in /opt/local/var/macports/registry/registry.db This includes a date which looks like to me the time the package was last installed on your machine
An SQL query returns the data
SELECT
  ports.name,
  datetime(ports.date, 'unixepoch')
FROM
  ports
ORDER BY
  ports.date

You will need to modify the query for your exact use case to only show a subset (e.g. add a where clause) and something to run it in
A crude way to do this is use sqlite3.
sqlite3 /opt/local/var/macports/registry/registry.db

Then you get a prompt - at that paste in the SQL above - then type in ; and hit return
At the bottom I get
iTerm2|2021-05-10 09:48:10
openjdk16-zulu|2021-05-10 09:49:00
rust|2021-05-16 09:47:44

I have only upgraded rust today


Is there a way to make some application have different resolution on a Retina Macbook Pro? I use "Best for Retina display" in my settings. It's suitable for my eyes:)

But I'd like to get more spaces in some applications by using the highest resolution. So is there a way to do so?

The OS doesn't have any sort of procedure to tell app A to use one screen size and app B another.

Unless the apps you use have a preference to change layout, icon size or other aspects of layout and zoom (like a spreadsheet tool can zoom in and out regardless of the overall resolution), you'll have to pick the best resolution and then change it up as needed based on your workflow.


El Capitan and Daisy Chaining Will El Capitan allow me to daisy chain two Dell 2713H monitors from my 2015 13" MBP? Both monitors support DisplayPort 1.2. Currently if I attempt this my monitors become a new desktop, but they are mirrored. Unable to get the 2nd monitor detected by OS X. Previous research on this topic shows that my MBP technically supports the technology by OS X does not. Anyone know if El Capitan will enable this?

I have a 2015 15" running the El Capitan Gold Master and it still mirrors the displays. I wish they'd sort this out, I'm wasting a Thunderbolt port by having to connect both displays independently.


Is it possible to have bash escape spaces in pwd? I'd like to copy the current directory to the clipboard, something like: pwd | pbcopy. However, pwd does not escape the space, so something in "Application Support", for example, doesn't copy correctly. I don't seem to remember this always being the case, so I could have boffed something. Using iTerm2.

Is there bash setting to escape everything? having trouble searching, too many questions/topics about Spaces.app or esc.

Current:

$ pwd
/Library/Application Support/Google Earth/

Preferred:

$ pwd
/Library/Application\ Support/Google\ Earth/

Already seen posts: Copying the current directory's path to the clipboard and How to cd to a directory with a name containing spaces in bash?, which do not address this. I would have made a comment in the former, but I don't have the privileges.

This command will escape spaces properly:

printf "%q\n" "$(pwd)" | pbcopy

You can alias it using something with history like cwd if you don't mind re-defining a different cwd

alias cwd='printf "%q\n" "$(pwd)" | pbcopy'

Ditch the pipe to pbcopy if you want it to work more like pwd and just print out the escaped path.

Or, to print the pwd while also copying it to the clipboard, use tee and an output process substitution:

alias cwd='printf "%q\n" "$(pwd)" | tee >(pbcopy)'


Time Machine on Time Capsule backup verification never seems to complete I have a MacPro running Mac OS X 10.7.4 with a Time Capsule connected by Ethernet.  When Time Machine runs a verify of the backups it seems to stall at 72%, and if I let it run a LONG time I think I have seen it jump up to something like 92% done.  But I am not at all sure I have seen it actually complete the verify (I typically end up doing Skip Verification.)  Right now I have a verify running that has been stuck at 72% for maybe an hour, and I have waited 12 hours and a good bit more without getting to completion.

Granted there a pretty good number of files and folders, and the backups go back over a year and half - Time Machine prefs shows 193 GB out of 998 GB available on the Time Capsule

My question is if I just don't have sufficient patience, or if there is a problem.  If there is a problem how do I attack it?

Since the verification process is akin to running fsck the filesystem check utility, this is the thing that will repair the backup or pronounce it dead.

If it fails too many times, you will then be left with a read-only Time Machine directory that you could clone somewhere else, restore the files you care, or wipe and start over.

Sadly, you are seeing all the progress that is normally available without running the tmdiagnose tool to collect detailed status and log when you ask Apple or a technician to help with time machine problems.

In most cases, I would say pick a time you can afford to be without backups (a day, a long weekend, a week) and set the Mac to not sleep and let it chug and see if it finishes. At the end of the period, you can decide to clone off the data to an attached USB drive just in case you need to retrieve something or just wipe the disk and start over.

Have you rebooted your Mac and run a filesystem check (or safe boot) to make sure your Mac doesn't have any directory damage?


Where is my login picture saved? Where is my login picture saved? I would like to use it for other apps but cannot find it under pictures or in any other document folders.

It is encoded in a plist file at the location /private/var/db/dslocal/nodes/Default/users

For more information on this, see another Q&A here:

Where does OS X store the profile photo it takes when you first create an account?


How can I get my iPhone to consistently apply or ignore auto-corrections based on my response? I have an iPhone 4S (Black, 32 GB, AT&T) running iOS 5.0.1, but I previously saw this issue on my jail-broken iPhone 3GS while it was running 5.0 and 4.3.3. This iPhone 4S is not jail-broken, nor has it been jail-broken in the past.

This occurs only sometimes. While I am typing and an auto-correction pops up, if I click on the auto-correction, it substitutes the text immediately instead of disabling that particular correction.

Is this a bug, or is it possible that I have a setting somewhere that causes it to act in this fashion? Is there a work-around?

Non-jailbroken iOS doesn't give much room for auto-corrections adjustment. Settings > General > Keyboard, is about all there is.

It is possible that it is a bug on your system, but on my 4S (5.1), I duplicated your problem only when I didn't tap the balloon itself.


Custom keyboard shortcuts to change active Spaces desktop I'm a mostly Unix user that are starting to user OS X for iPhone development. Since I won't (and can't) quit my Linux environment I'm trying out the 'Spaces' functionallity for virtual desktops. But the built-in settings for changing keyboard shortcuts are quite limited. Is there some alternative way to change those keybindings to any combination I'd like? (I want Ctrl-Alt- arrow keys to change to next left/right desktop).

Hacky methods OK, too, even very hacky ones.

The built in methods for changing shortcuts are less limited than you think.

Go to the Exposé & Spaces preference pane in System Preferences, and check out the bottom section of the preference pane. Note especially the text just above it:

  Keyboard and Mouse Shortcuts (for additional choices press Shift, Control, Option, or Command)

Here's me pressing ⌃⇧⌘ (Control + Shift + Command) while the shortcut drop-down is active:

The shortcuts have the keys I'm pressing added to them (well, sort of, it avoids redundant combinations but its very easy to see how it works and choose exactly what you want).

So for ctrl+alt+arrow keys, open the drop-down, press ⌃⌥ (Control + Option) and you'll note the top item becomes the shortcut you're after.

You can also do the same for the shortcuts to switch directly to numbered spaces or for the Spaces activation shortcut.


Can I upload an iOS app from OS X running on a VM to the App Store? I don't have an Apple device and I need to create a iOS app. I was wondering if I could do it from a VM running OSX. I know that you can do this for testing, but can I upload the final version to the App Store?

Yes, you can. In Xcode, you can set archive for iOS Device even if you haven't got an iOS Device (this is instead of "Simulator") and upload this binary to iTunes Connect perfectly fine.


Shared Photostream and IPad 1 (first generation) I want to shared some photos stored on my Mac to my wife's IPad (the old one, 1st generation).

I have created a Shared PhotoStream album. My wife correctly received the invitation/notification.

She could open this shared photos on her iPhone 4 (iOS6) but it's seems not working on her iPad (1st gen / iOS5).

How can I make it work?

Short Answer: You can't

Shared PhotoStream is a feature of iOS 6 and therefore not available on iOS 5. Some users claim they had gotten the feature working and enabled by removing and re-adding the iCloud account, however I have never seen it work.

From the official description of a shared PhotoStream (Bold by me):

  Select photos directly from the Photos app in iOS 6, iPhoto or Aperture on a Mac


Can Mountain Lion's Preview.app be configured to use Lion's highlighting colours? The highlight function in the Mountain Lion version of Preview.app is now directly accessible from the toolbar, while the other annotation functions keep their usual location. The problem is that Apple reduced the number of colours for the highlighting function. For example, red and orange are missing. The number of colours stays the same for the other annotation functions.

I work with scientific articles on a daily basis and the highlighting function is my main tool. I really need all the colours that were available since Apple introduced PDF highlighting several years ago, because I follow a colour scheme to quickly distinguish different parts of an article. I do not understand why they removed these colours, It's not like a few menu items were bloating the software. At least one other person is in my case: http://forums.macrumors.com/showthread.php?t=1416813

I tried reverting to Lion's Preview.app, but Apple has disabled Lion's applications on ML and I get an error message when I try to open it. In the past, one could run SL's Preview.app on Lion in order to circumvent the "highlights fading bug".

Therefore, I'm looking for either one of two solutions:

getting all the colours back in the highlighting function;
or getting Lion's Preview.app to run on ML.

(Skim is not a solution because it stores the highlights in another file and I need my PDFs to be transportable.)

You can reinstall and use the version of Preview.app from Lion.

Instructions are here (start with post #8 and move forward from there)
http://forums.macrumors.com/showthread.php?t=1412516

Here are some of the salient parts, in case the link breaks. I'm just quoting text from the poster on the linked thread:

  The Lion Preview.app seems to be blacklisted in ML through the "Bundle
  version=719.25" entry in the Info.plist. So I changed it to something
  higher (760 in this case - 765 is the version-number from ML
  Preview.app). Now the app fails to start, because modifying the
  plist-file apparently broke the signing. Then I resigned it using this
  command:

codesign --force --sign - Preview.app/Contents/MacOS/Preview

The linked post also contains a link to a downloadable version of Lion Preview that has presumably been modified as described. I have downloaded it and it works perfectly.


Is it possible to use R on an iPad? I am new to coding and I am attempting to learn about R using online resources. I am wondering how to use R from an iPad when I’m away from a desktop/laptop (or if this is feasible at all)?

I also don’t know much about operating systems, or the differences between a Mac and an iPad (particularly differences that would affect software installation). So I’m thinking it will be quite difficult for me to learn to use R from an iPad if it’s at all possible. But if someone else happens to have done it and is willing to post instructions, I would give it a shot.

Your question is basically:

  “Is it possible to use R on an iPad?”

And the answer to that is a simple:

No.

While you are well intentioned in your post, from a basic operating system there is no way you can program on any iOS device since you won’t be able to ever selfie-install tools or get to the command line to install R to begin with.

Some might say you could do this by using the iPad to remotely connect to another machine—such as a MacBook or a Mac mini and such—but that is really not a solution. You would simply be remotely accessing a real computer in a kludgy way. If you want to use R, you need a real macOS computer… Or Windows… But you asked for Mac so I will say… Mac.


2-factor authentification not available for the AppleID to turn on I am following the instruction from Apple.com to turn on the 2-factor authentication on MacAir notebook (Catalina) and receive not available error as above when clicking the Turn on button under Password & Security in System Preferences. I notice that the iCloud icon is grey out (I don't use iCloud and don't know how to login). What is the right way to turn on two-factor authentication for developer?

Go to Manage your Apple ID website, login with your Apple ID and scroll down to Security section. You'll find the option to setup 2 Factor Authentication for your account.