You can simply re-add the partition with gpt "in the empty space". The problem here is: the APFS container partition might have been smaller than the now available free space.

The good news is: the (former) size of the container is stored in the APFS superblock which shouldn't have been modified by creating a hybrid MBR. The superblock is the first block of an APFS container - here probably block 409640 (which is the 409641th block of your SSD) if the default Apple partition scheme was used initially.

boot to a full-fledged system (ideally 10.13 but older systems should also work with the downside that you can't verify the container with fsck_apfs afterwards)
get the partition list with diskutil list. (in the example below I assume the device identifier is disk1)
Unmount the SSD: diskutil umountDisk disk1
hexdump block 409640 of the SSD:

sudo dd if=/dev/disk1 skip=409640 bs=512 count=1 | hexdump

which results in something like this (example only):

1+0 records in
1+0 records out
0000000 4a 2e 4c 58 2c 73 22 1d 01 00 00 00 00 00 00 00
0000010 ac 01 00 00 00 00 00 00 01 00 00 80 00 00 00 00
0000020 4e 58 53 42 00 10 00 00 f6 37 ff 00 00 00 00 00
0000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000040 02 00 00 00 00 00 00 00 d1 67 7e 03 33 23 42 a5
0000050 a8 da 96 fc 12 ae de 21 18 04 00 00 00 00 00 00
0000060 ad 01 00 00 00 00 00 00 18 01 00 00 18 6c 00 00
0000070 01 00 00 00 00 00 00 00 19 01 00 00 00 00 00 00
0000080 10 00 00 00 80 07 00 00 0e 00 00 00 02 00 00 00
0000090 7b 07 00 00 05 00 00 00 00 04 00 00 00 00 00 00
00000a0 07 fd 03 00 00 00 00 00 01 04 00 00 00 00 00 00
00000b0 00 00 00 00 64 00 00 00 02 04 00 00 00 00 00 00
00000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
0000200

The relevant line is 0x020: 4e 58 53 42 00 10 00 00 f6 37 ff 00 00 00 00 00

4e 58 53 42 (NXSB) is the APFS magic block (Offset: 0x20 Type: char[4])
00 10 00 00 is the block size (Offset: 0x24 Type: Uint32). After reverting the byte order and converting it to decimal this is 4096 Byte which is the default size for APFS containers.
f6 37 ff 00 00 00 00 00 is the number of blocks in the container (Offset: 0x28 Type: Uint64)

to convert it to a decimal, revert the byte order f6 37 ff 00 00 00 00 00-> 00 00 00 00 00 ff 37 f6 and enter it in a converter. The number of 4k blocks is here 16,726,006 and the final size 16,726,006 x 4096 Byte = 68,509,720,576 Byte. In 512 Byte blocks that's 133,808,048 blocks.

Check the result for plausibility. In your case the number of 512 Byte blocks should be equal to 732027536 or slightly less.
Now add the partition with gpt:

sudo gpt add -i 5 -b 409640 -s 512b_block_number -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk1

or in your case probably:

sudo gpt add -i 5 -b 409640 -s 732027536 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk1

Verify the disk: sudo fsck_apfs /dev/disk1. If you are urged to boot from the "restored" APFS container to verify it because your system on the other boot drive is macOS 10.12 or less use something like sudo fsck_apfs -nl /dev/disk1s2. If you get a warning like "warning: Overallocation Detected on Main device: (.....+1) bitmap address (.....)" you can probably ignore it as long as the volume /dev/disk1s2 appears to be OK.


What is build number of the OS X Lion version released on the app store July 20th 2011? Can someone tell me what is build number of the Lion version released on the app store July 20th 2011?

The Lion build is "Mac OS X Lion 10.7 (11A511)".


Why do iPad SMS / MMS fail to send? CONTEXT

An iPhone and iPad are both:

outfitted with a T-Mobile SIM card + Data
configured with the same AppleID and
presumably this ID is one's iMessage ID.
IOS 12.X

As I understand it:

Blue Messages are encrypted iMessages
Green messages are unencrypted MMS / SMS

OBSERVATIONS

iPad message app indicates:

iMessages are successful sent / received from and iPad's message app.
iMessages are synced to iPhone
green SMS / MMS fail to send: indication = "Not Delivered"

iPhone:

iMessages /SMS / MMS function as expected

Goal = send SMS / MMS from the iPad.

Any diagnostic question, posted as a comment, is appreciated.  Actionable guidance is sought.

Do you have text message forwarding enabled on your iPhone and iPad? If you go into the Messages settings on your iPhone, you will see some settings that you will need to enable in order to send SMS/MMS. Your iMessages are working because that only requires an Apple ID but you need to allow your iPad to send SMS/MMS via your cellular account from your iPhone. Good luck!


Run an AppleScript that requires keystrokes while the screen is locked? I've got a very simple AppleScript whose job it is to type some words into a text box.

tell application "TextEdit"
  activate
end tell
delay 0.2
tell application "System Events"
  keystroke "Hello World!"
  keystroke return
end tell

I want this script to run every time my screen saver activates, and again every time my screen saver deactivates. I installed ScriptSaver and it works perfectly. So far, so good.

Except my screen locks when the screen saver activates. This means that when my script tells TextEdit to activate, the computer pops up its login window and thinks I'm typing "Hello World!" as a password. Not ideal.

I tried making the screen saver require a password after 5 seconds, instead of immediately, but that was no good: the process of activating TextEdit just wakes up the screen again.

Is there a way to activate TextEdit and type words into it in the background, without making my computer think I'm trying to unlock the screen?

No i'don't think you can do this the way you want.

Every Human interaction on a PC during Screensaver tries to deactivate it. (Like moving the Mouse, pressing a Key e.g.)
Applescript most time is used to Script some GUI (like in your case --> tell application TextEdit -> does nothing other than opening Textedit like you would do it by double clicking)

So to bring you a way which should work:

do a applescript which writes the text to a file directly and then open the file with the text in it if needed.

something like this:

tell application System Events
    do shell script "echo 'your text that you wanna type' > /path/to/the/file/where/the/text/stands/in"
end tell

tell application TextEdit
    open /path/to/the/file/where/the/text/stands/in
end tell


How can I isolate what is causing the temporary "stall" during startup? As I see the progress bar on my MacBook Pro mid-2015 move from left to right, soon after it gets past the halfway point, it starts to slow down and eventually stops temporarily, at about the time the cursor appears. Then the spinning system cursor appears for about 3-5 seconds, and the boot sequence continues normally (and finishes).

How can I troubleshoot this? My wish would be to avoid a clean install and restore from scratch.

I previously reported the same problem under High Sierra.

I'm pretty sure it's disk encryption (FileVault2) that is causing the delay. I had to erase my internal flash drive and restore from backup. In so doing, I reformatted the flash drive as normal APFS and not APFS encrypted. There was no delay in booting. After I enabled FileVault encryption (and it finished), the boot delay returned.


Installing to a home folder using a pkg I'm attempting to create a package using Packages that installs in ~/Applications (because each user can have an instance of the app in question running but it needs a custom port per user as it daemonises and runs like an HTTP server).

I can't work out how this is done. In the Payload section I can only pick from /Applications, /Library and /Users/Shared. I've tried adding a custom folder but without knowing the username ahead of time I don't know what to put in the prompt.

I could use a shell script in the Scripts tab (part of the install requires that anyway), but I'm unclear as to where the binary for the app should be put (I could place it in one of the above paths and then move it but I don't wish to spread build artefacts around the user's system, even for clean builds), or how to refer to its initial location in the script, whether it's via the Payload tab or the Additional Resources section under Scripts.

I'm happy to use a different tool or directly edit scripts (back to the old days;-) any help or insight would be much appreciated.

pkgbuild and productbuild

Try building the package using the newer pkgbuild tool. You can pass --install-location <install-path> as part of the command.

You may also find productbuild useful to know about.

Both tools have detailed manual pages and can handle installation in script determined locations.


If I uninstall mysql with brew, does it drop the databases too? I want to cleanup my system and uninstall mysql. If I do so with:

brew uninstall mysql

will the databases also been deleted? I don't want to leave them on the harddisk.

Depends on the location of the database file on disk.

Upon uninstalling mysql, the mysql installation directory is deleted, which is /usr/local/Cellar/mysql in the default install.


Error message "The location of the document “Social Stats record Spreadsheet.numbers” cannot be determined"? I am trying to save my Numbers spreadsheet and this message (as stated in the question) is showing. I am also trying to export the file as a PDF and this message pops up -

The document “Social Stats record Spreadsheet.numbers” could not be autosaved. The file doesn’t exist.

I think this has something to do with me saving the file to dropbox as well as in my documents and the mac has got confused? I really don't want to lose my work as I've just updated it with a lot of info, how can I save the file and export it as a PDF without losing anything?

Thanks

A couple of possibilities:

1) save to a different name in a local directory - not a network drive or dropbox,

2) open a new workbook and copy from the "old" workbook and paste-formulas into the new workbook

Either can save your work so it is not lost.


Wifi not connecting after erasing hard drive on Macbook Pro 13" 2019 I just erased my Macbook's hard drive (under MacOS Catalina) with touch bar from 2019.

When I turn on the computer I press cmd and R, the planet shows off and I've to select a network to connect to.

The problem is that it won't connect to any of my Wifi connexion, I tried on my initial Wifi and two repeater. I also tried to connect it to my 4G and still didn't established a connexion.

After looking into Apple's support, they suggested to test the DNS as explained here

After doing it, here is what I've got :

Sorry for the french but it means that the Lookup failed, it threw the same error for my LTE too.

So I'm a bit lost, I'm about to sell it but I don't know how I can fix this since my Apple Store is closed due to Covid.

Does someone have a hint about what I can do/how to proceed.
I thought about booting it from a hard drive but I didn't find anything for the Macbook Pro 2019 since it has no USB port, but if it's possible I can do it since I have my work Macbook Pro available so if someone could provide me a link or anything that could help I would really appreciate.

Thanks for your help

The problem, as you’ve confirmed, is a DNS issue.  What’s happening is that your Mac has no way of finding the Recovery Host to connect to.

macOS Recovery Hosts and Ports

Normally, this is taken care of in the router.  What happens is one of the two scenarios:

The router acts as a DHCP relay.  In the DHCP offer, the DNS server value is the IP address of the router.  So any DNS request is sent to the router which is then sent to the actual DNS server(s) that are either automatically configured from the ISP or manually configured by you.
The router passes the DNS server addresses as part if the DHCP offer.  Whether automatically configured from the ISP or manually configured, the client (your Mac) gets the IPs of the actual DNS server(s) and makes the request directly.

If this is not happening...

check your router configuration and make sure the DNS values ate being set.
Manually set the DNS server in macOS with the command networksetup -setdnsservers Wi-Fi 8.8.8.8 (Google’s DNS server)

If fixing DNS proves fruitless, you may need use a working Mac to create a USB Installer.  This will allow you to at least install the OS without needing the Internet and then, you can use whatever work around that fixes your DNS.


Can the iPad support multiple Regional Settings simultaneously? I need spell-checking in different languages such as English, German and Norwegian. I currently have only German spell-checking and it is quite irritating that it messes up with other languages' words. Is there some easy way of having spell-checking in multiple languages on the iPad?

What about keyboards? Is it possible to have many regional settings on one iPad, easily?

You can have multiple keyboards enabled: Settings -> General -> Keyboard -> International Keyboards. Add whichever keyboards you wish. Then, when you are typing text, hit the globe key on the keyboard to switch between the different keyboards.

As far as I know, you can't have multiple languages enabled at the same time for spell checking. However, you can switch between them using Settings -> International -> Language.


Configuring mouse scroll wheel actions How do I configure actions for scroll wheel events on mac?

Specifically I'm looking for a way to configure the scroll wheel to change workspaces when a modifier key is pressed.

(I know BetterTouchTool can be used to configure many actions even for a regular mouse. However, it cannot configure actions that would be triggered by scroll wheel.)

You might use a private.xml like this with KeyRemap4MacBook:

<?xml version="1.0"?>
<root>
  <item>
    <name>test</name>
    <identifier>test</identifier>
    <autogen>__ScrollWheelToKey__ ScrollWheel::UP, VK_CONTROL |
    ModifierFlag::NONE, KeyCode::CURSOR_LEFT, ModifierFlag::CONTROL_L</autogen>
    <autogen>__ScrollWheelToKey__ ScrollWheel::DOWN, VK_CONTROL |
    ModifierFlag::NONE, KeyCode::CURSOR_RIGHT, ModifierFlag::CONTROL_L</autogen>
  </item>
</root>


High Sierra Screenshot part of screen stopped working I have been for years using shift+cmd+4 to take a screenshot of only a part of the screen, or just to measure some distance in an image. A week or so ago it completely changed functionality to instead take a screenshot of the entire hovered window... Why?? I need it back.. I get designs as JPG's :D and need to implement websites base on that :P

I haven't installed anything that I can think of, I got a new external screen but that was plug & play, a DELL screen. It can't be that can it??

Attaching a photo of how it looks below, note the blue tint that the window is selected and the camera icon in the middle..

I'm not sure what has prompted it to default to 'whole window' - usually 'selected area' is the default, however, tapping the Space Bar should toggle the behaviour back & forth for that session.


Unable to delete a file I have a file on my system named "2011.09.08įU0.G80.Šsl" that I'm unable to delete. Here are the different steps I've tried, but haven't had any success with yet:

sudo rm file - Results in "No such file or directory"
Deleting via Finder - "The operation can't be completed because one or more required items can't be found. (Error code -43)
Renaming via Finder - "An unexpected error occurred (error code -43)
sudo mv file newName - "No such file or directory"
Deleting using the "Locked" files feature in Cocktail - "An invalid character has been found in the path."
Sharing the folder in question with read+write access, logging in via Windows 7 and attempting to delete, but Windows is unable to even see the file in question.
Deleting/renaming the parent folder of the file via Terminal fails - "Directory not empty"

I've also tried the steps described in this question, but haven't add any success there either.

The primary reason for trying to delete this is because whenever my backup solution (SuperDuper!) encounters this file, it aborts the backup, leaving me flying without a net. Any help would be greatly appreciated.

Try deleting interactively to avoid deleting too much since these characters match one or many/no characters - you can answer y or n as needed as each file comes up for deletion...

e.g.

sudo rm -i 2011.09.0?*

If you can't get the wildcard right, move everything else out of the folder in question, go one directory level up and rm -r <foldername>.


Epubs from iBooks not showing up in iTunes on Mac OS X Sierra I have about a few hundred of epubs that I’d regularly been syncing on my iOS devices until I’ve updated to Sierra a few days ago, when suddenly only a few books showed up in iTunes.

I tried turning iCloud support for iBooks on/off as some people have suggested on other forums but it didn’t help.

How can I make all epubs from iBooks to show up in iTunes?

OK, I’ve managed to solve this with the help of another guy from Apple Suport Forum.

Here’s what I did:

I Quit the iTunes
I opened iBooks
I backed up my books and PDF’s from iBooks by dragging and holding alt copying them to a backup folder
I deleted all of my books and PDF’s from iBooks
I quit the iBooks
I went to the Settings > iCloud > Options > iBooks and turned
the iCloud support for iBooks off
I went to the Library folder in Finder and located the nsurlsessiond folder via search
I copied the folder to the backup folder, just in case
I deleted the nsurlsessiond folder
I shut the OS X down
I turned the computer on
I opened iBooks I moved my books and PDF’s from the backup folder to iBooks
I turned the iCloud support for iBooks on (see the step 6)
I opened iTunes
Voilah! All of my books and PDF’s are there!
I synced the books successfully to both iPad 3 and iPhone 6
I checked the highlights, bookmarks, notes and the last page read and
everything was properly syncing

Here’s the original forum post.


Bootcamp brightness not working I just recently install my Windows 8 in the bootcamp (version 5.0.5033).I try to adjust the brightness but still remain very bright and also adjust in the bootcamp control panel but also same. The brightness is so bright until my eye cannot open. Please help.

Have you installed the bootcamp drivers ? If you don't go there : http://www.apple.com/fr/support/bootcamp/


Free tool to create a screencast to upload on hosting video platforms I would like to make a small video tutorial of a web application I deployed recently.
Could you recommend some free programm to record screencast easily, ready to upload to video hosting platforms like youtube?

This can be accomplished with QuickTime Player in Snow Leopard. From the File menu, select New Screen Recording. When you have finished recording, the video file will be opened for playback and from the Share menu, you can select YouTube....


How do I get iPhoto to recognize an older Canon PowerShot A40? I have iPhoto 9.4.2 set to open automatically when a camera is connected to my iMac. When I connect the PowerShot A40 to my iMac via USB, iPhoto does open. But there's no sign of the camera in the left side bar and no way to import any of the photos off the CompactFlash card in the camera shown in iPhoto.

How can I get this old camera to show up as Device in iPhoto so I can import the photos off of it?

Edit: it works fine on a 10.7.5-equipped MacBook Pro. Shows up in the Devices list, lets me import the photos.

Try changing the communication setting on your camera. I had this problem after updating and changed the general>communication>PTP. Mine was set to PC connection previously - worked!


Getting field data from a Bento database using Applescript I'm having problems getting the field values out of a Bento database using Applescript:

I'mn using the following code to get at the entries but I'm not able to get at the cells or fields associated with the entries. Can anyone point me in the right direction:

tell application "Bento"
repeat with i from 1 to count of libraries
    set theName to name of library i
    log theName
    if theName is equal to "Reconnaissance site report" then
        log "The library has been found"
        set theLibraryProperties to properties of library i
        log theLibraryProperties
        tell library i
            repeat with j from 1 to count of entries
                set theEntryName to id of entry j
                set theEntryProperties to properties of entry j
                log theEntryName
                log theEntryProperties
            end repeat
        end tell
    end if
end repeat
end tell

Bento's scripting dictionary is pretty thin. It looks like field, entries and cells all are in the Bento 3 scripting dictionary - so it's hard to tell if they have been there all along or are added for future use.

I'm not really skilled at debugging AppleScript so I can't see any errors with the code you posted.

Have you tried looping over _source_items_ for fields and cells? The dictionary seems to indicate that the data lies there and not as easily accessed from a collection. That and a lot of logging might make up for the lack of an interactive tool to query the scripting bridge.

Scripting is a feature differentiator between Bento and the more full featured Filemaker product from the same people.

Have you tried using sqlite3 to just read the database at ~/Library/Application\ Support/Bento/bento.bentodb/Contents/Resources/Database ?

The schema and tables are all open to whatever SQL tool you like. I hope it's just a matter of constructing the right query if you prefer AppleScript (and there is a lot to prefer about it over command line scripting).


Why is my Hard-Drive filling up quickly? I am running macOS Catalina, on a 2017 MacBook Air
Recently I moved the I-Movie Library off of my mac, and onto an External Hard Drive. So I checked My storage and it said 30 gigabytes free. Then 3 days later, I checked again, and the storage was almost full. I hadn't downloaded any big items, so I was very confused. Here I am now with Final Cut Pro, telling me my hard drive is full. Is something eating up my hard drive?
Apologies for poor use of StackExchange, this is my first post.

A few possibilities:

You're running into memory pressure and are creating a lot of swapfiles. This scenario is likely because the 2017 MacBook Air only has 8 GB RAM, which is not a lot by today's standards and definitely insufficient for any video editing in Final Cut Pro. You can check if this is the case by running /Applications/Utilities/Activity Monitor.app, clicking on the Memory tab, and looking at the Swap Used field at the bottom. If you're seeing many gigabytes, reboot your system. Note that this situation may be unavoidable if you try to do video editing on such a low-end machine.

A process is creating a lot of cache or tmp files. A reboot may clear these.

There are background downloads occurring, possibly for OS updates or possibly for other apps you have installed. A reboot probably would not clear these.

In short, try rebooting. Before you do, though, it would be wise to Get Info on your hard drive in the Finder and see how much space is available, and then compare it after the reboot. If you find yourself still low on space, you'll need to start diving into subdirectories to see where the space is being used. There are also third-party tools that can help with this.


How do I set up a Mail.app rule for removing attachments? While Mail.app offers a menu item for removing attachments from e-mail, I find myself wanting to make a rule for removing attachments from e-mails. Anyone knows how that can be done? AppleScript, perhaps?

So basically, a Mail.app rule that works like this:

If sender is suchandsuch and attachment type is executable (this is already possible).
Remove attachments from e-mail

I just made a screencast how to do this (however, you have to delete the message in order to remove the executable):


How do I clone from a Mac OS Extended (Journaled) spinning hard drive to a new SSD on 10.13.6 I have a MacBook Pro (13-inch, Mid 2010) with a 500GB spinning hard disk boot drive with High Sierra 10.13.6. Disk Utility reports the drive as "SATA Internal Physical Volume - Mac OS Extended (Journaled)". I ran First Aid on it and it came back good.

I have a 500GB SSD in a USB enclosure.

I booted into Recovery and started Disk Utility. I erased the SSD and chose plain APFS format (the four options available are all APFS variations). I tried restoring to the SSD, but the Restore window shows "None Available" in the "Restore from:" drop-down.

I read something that suggested converting the boot disk to APFS, but that menu item is grayed out when I select that drive.

How can I get the contents of this spinning hard drive onto the SSD?

While the only format options available for the new drive were APFS variations, after formatting I was able to use the Partition tool in Disk Utility to morph the new drive into "Mac OS Extended (Journaled)". Once the format type matched between the two drives I was able to restore from the existing system drive onto the new SSD.


grepping /Library and "Too many levels of symbolic links" I'm trying to clean up remnants of an application that was removed:

$ sudo grep -R "iNet Network" /Library
...
grep: /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Libraries/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Libraries/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Versions/3.2.1/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Versions/3.2.1/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Versions/Current/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Versions/Current/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM: Too many levels of symbolic links

It's an unrelated issue to what I am trying to do, but I'd like to clean it up. I believe libmonoboehm is an Apple framework.

From Too many levels of symbolic links, its likely that soft links point to one another.

Question: How do I clear this error?

A quick ls -l on the first directory reveals the following. It almost appears the softlink refers to itself; or its parent directory, which appears to be named the same.

$ ls -l /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM
lrwxr-xr-x  1 root  admin  29 Aug 14  2013 /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM -> libmonoboehm-2.0.1.dylib.dSYM
$ ls -l /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM
lrwxr-xr-x  1 root  admin  27 Aug 14  2013 /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM -> libmonoboehm-2.0.dylib.dSYM

Related information.

OS X 10.8.5 fully patched (and still defective)
Xcode Version 5.1.1 (5B1008)

The Mono.framework neither belongs to Apple nor is it installed as a part of Xcode. I've cross-checked that with a VM (10.8.5/Xcode 5.1.1)

Checking your profile i'd suspect it was installed with Xamarin (or another cross-platform dev environment).

IMHO your Mono installation is hosed/got corrupted. A proper install looks like this (/Library/Frameworks):

Your path to Mono looks like this: /Library//Frameworks/Mono.framework/... (Please notice the double slash in the path).

So check your disk with Disk Utility first, then delete Mono.framework and the superior no name folder (or whatever it is), download the latest Mono.framework installer and reinstall Mono.


Apple MacBook Pro Battery vs Processor I'm configuring a new MacBook Pro 15″ 2015 and wanted to know if the processor speed affects the battery life?

2.5GHz Quad-core Intel Core i7, Turbo Boost up to 3.7GHz
2.8GHz Quad-core Intel Core i7, Turbo Boost up to 4.0GHz

performance per watt
You want to know the 'performance per watt'. In computing, performance per watt is a measure of the energy efficiency of a particular computer architecture or computer hardware. Literally, it measures the rate of computation that can be delivered by a computer for every watt of power consumed.
2.5GHz Quad-core Intel Core i7 = 21.05 pt/W
2.8GHz Quad-core Intel Core i7 = 33.4 pt/W
So, when only looking at the 'performance per watt' you would be better of with the 2.8GHz
Sources used: Wikipedia, cpuboss.com - 2.5GHz, cpuboss.com - 2.8GHz
note: not 100% sure if I picked the correct processor types.


iOS not reporting disk space correctly My iPhone claims I have no disk space left on the device. This is simply not true. Rebooting the phone did not help. Is there anything else I can do?

Your screenshots say that you have almost ran out of free space. This make your phone tell you you're out of free space. It's not a 100% exact message, it's a message you get when you have used ~99% of your space. This is correct behaviour.


How to remap a single key in Language Input I am pretty new to Macs and these days I've been experiencing the whole frustration that comes when switching from Windows to Mac.. All my favourite shortcuts are so different or non-existent an so on..

I can live with that, there is a learning curve and I will get used to it (even though I used Karabiner to remap some shortcuts, there are plenty to learn :) )

Here comes the real question here. I am also using the Bulgarian keyboard, one of those cyrillic keyboards that have more letters than the normal keyboards can fit. On Windows though I had one letter (ч) which is under the `. It is in the same key on the Mac, with the sole difference it is located..next to Left Shift so it is super hard to reach.

Can I somehow remap the ч key to § ?

I tried with Karabiner, but didn't manage to do it (maybe I missed something).

If you are using the Bulgarian phonetic keyboard layout you can simply enable a Karabiner preset. Search for "Bulgarian" and enable "map ч to ±":


Why automatically adjust brightness doesn't work after I change the brightness Why automatically adjust brightness doesn't work after I change the brightness manually using the hot keys although it's set to do so in the displays configuration?

Theoretically it should, but it is all relative. The ambient light sensor turns the display brighter when its bright outside and dim when it's dark inside. The thing is, the Mac is designed to cater to the user, because supposedly a human being knows what it wants better than a little $.005 photo sensor, so the buttons on the keyboard (F1 and F2) override the ambient light settings for a set period of time, and then still until the light conditions change drastically enough to cause the auto-adjust to kick in again. Going from dark screen to bright screen is almost immediate, but the Mac will take a while to go from bright screen to dark screen except on opening the clamshell or waking from sleep. This kind of makes sense when you think about the real world situations where this would happen.

So try this with auto-adjust ON and make sure "dim screen after inactivity" in Energy Saver prefs is off:

In a really dark room (no light except from computer), open the computer and manually raise the brightness to maximum, screen and keyboard backlight too if equipped.
Hold a small headed, bright flashlight (Mini Maglight or smaller) to the ALS, which is located to the left of the iSight camera on glass-paneled macs or in the speaker grille on older macs.
If the keyboard backlight goes off then the ALS IS WORKING
Lower DISPLAY backlight only to 1 above minimum level (minimum turns backlight completely off)
Put flashlight over ALS
You should see IMMEDIATE increase in backlight to full level.
Remove flashlight, display should readjust immediately to ambient level. Notice how after auto-adjusting the manual override is overridden so you can repeat steps 5 and 7 over and over again for entertainment ;)

If the steps above produce no results, restart computer and repeat tests. If still no results take to Apple certified repair center or Apple Store for repair which will likely be covered under warranty.


Can I find out which iOS apps are no longer available in the App Store? I have hundreds of apps installed on my iOS device. I've noticed that some of those apps do not appear to be in the App Store any longer.

Is there a way to quickly identify which apps I have installed, that are no longer available in the App Store? I'd like to be able to decide which ones I feel like keeping, in an effort to tidy up my device.

(Other than manually searching the store for each one, of course.)

No, there's no way of knowing that Apple offers.

I'm not aware of any jailbreak apps that can do this, either.


Application eating ~840,000,000% of my CPU I noticed that sometime some application are using some impossibly high amount of my CPU according to the Activity Monitor, as the screenshots below illustrate. How comes Activity Monitor displays such high percentages?

Icons:

The other suggestions are good, I just wanted to ad that percentages higher than 100 are, oddly enough, not counter intuitive.

very simply if you see more than 100% usage (as was explained to me) it is a combination of the number of cores in the processor (usually 2 to 8) and how busy all the cores are compared to some (unknown to me) baseline.

So getting high percentages are not uncommon but in the end a bit confusing as this question illustrates. And honestly what is going on here, specifically, is beyond me as well.


Browser partial autocomplete I come from the Android world and I have a new iPhone. I am trying to find how to replicate a feature that I am used to, about the browser search autocomplete.

Say I want to search Google for the following phrase: "wikipedia star wars a new hope". Of course in this particular case I could use a Wikipedia search provider, but that is not the point.

In the Android browser, I can start typing "wi" and the browser will search and suggest "wikipedia". I can then click on a button and complete "wikipedia" and keep writing. At this point, maybe I will write "sta" and the browser will suggest "wikipedia star wars". Again, I click and have this phrase in the search bar, and keep writing. I then add "a n" and probably the browser will suggest the complete phrase "wikipedia star wars a new hope" that I can click to actually search.

This is an enormous time saver whenever searching for longish phrases. In Safari, I get the autocomplete, but if, say, after writing "wi" I click on the suggestion "wikipedia", it is searched immediately, which makes impossible to keep writing.

Is there a way to activate this feature in Safari? Does any other browser provide it?

Turns out Firefox does not implement this, while Chrome does.


Dragging a file between desktops in El Capitan Say you have 5 desktops open in Mission Control in El Capitan.
If you select a file to drag it to an app or another folder which lies in a different desktop, Mission Control always takes you to desktop 1 (far left).

Can you fix this somehow?
It was ok with all previous versions.

It would appear you have the Finder assigned to a specific Space. Right click it & see what it says in Options [as in the picture below, it will only show a specific number if it is assigned to a Space you're not currently on - otherwise will just show All/This/None]

The quickest way to carry any file to another Space is to hold it then invoke the key command for the Space you need - by default  Ctrl ⌃   [num]
This also works for any Application window.

The key commands are automatically added each time you make a new Space, but are not switched on by default. System Prefs > Keyboard > Shortcuts > Mission Control to enable...

Also, by default, the number keys are those above the QWERTY part of the keyboard. If you wish to use a 10-key instead, you must replace the default key combis with ones using the 10-key [this is not obvious as they both look identical but are responded to individually]


Using OS X Lion - Migrating from Mobile Me to iCloud - Incoming Mail Server issue I have gone through the steps to migrate from Mobile Me to iCloud on my Mac.  The incoming mail server (p99-imap.mail.me.com) is grayed out and cannot be changed.  According to Apple Support, that is not the correct incoming mail server.  Thoughts?

In mail - preferences - advanced - uncheck 'enable this account'.
click another account or tab to get dialogue box to save changes.
check 'enable this account'
click another account or tab to get dialogue box to save changes.
get mail.


9GB com.apple.coresymbolicationd file in Caches I'm trying to free up disk space, and I came across this:

I've read reports of a 600M file, or a 1GB file but never something like this.

Is it safe to delete or does rebooting frequently help clear some of these files?

No. Rebooting doesn't clear cache files in system. You would need to dig into exactly which subsystem creates here caches and determine of there is a way to manually flush them or move them to trash and then reboot to see when/how/what size they get recreated.

I would boot to single user mode and use rm to clear that file since nothing is using it then. You could also use sudo mv /System/Library/Caches/com.apple.coresymbolicationd/data /tmp and then reboot. After the reboot you can delete the file from /tmp with sudo rm /tmp/data.

My hunch is you have Xcode installed and have introduced a large number of symbols into your database from one or more iOS versions so that Xcode can symbolicate crash dumps to assist in debugging apps using Xcode. However, it could also be a bug and whenever that subsystem starts recycling the cache, it will clear itself. If you can limit the number of SDK you use in Xcode, that might help as well. My feeling is the people with 60m files don't use Xcode, those with 1MB developer for one version of iOS at a time and those with larger size databases have multiple OS X and iOS SDK activated from within Xcode.


"Install Spotify" can't be opened because Apple cannot check it for malicious software I'm running macOS 10.15 Catalina Beta.

When I try to install Spotify I see the following error:

Is this a Spotify issue or a Catalina issue?

Thanks.

Catalina requires all apps that are signed with developer IDs to be 'notarized' by Apple.
In the absence of an updated version from the developer, you can try the following:

Right-click and select "Open". This may bring up the same dialog, but with an option to Open the file anyway.
You can get round this by removing the quarantine Extended Attribute on the file:

xattr -d com.apple.quarantine /path/to/file

Naturally, this bypasses Apple's security precautions which exist to stop maliciously altered software from running.


Replaced /usr/bin/vim - now I get error messages I tried to upgrade from the default vim install on Mac OS X (vim 7.2) to the one used by MacVim (vim 7.3) by creating a symlink:

ln -s /Applications/MacVim.app/Contents/MacOS/Vim /usr/bin/vim

However, now I get the following error messages:

sk@supernova:~/ > /usr/bin/vim
E254: Cannot allocate color Red
E254: Cannot allocate color White
E254: Cannot allocate color Blue
E254: Cannot allocate color Red
E254: Cannot allocate color Grey
E254: Cannot allocate color Blue
E254: Cannot allocate color Brown
E254: Cannot allocate color SeaGreen
E254: Cannot allocate color SeaGreen
E254: Cannot allocate color Yellow
E254: Cannot allocate color Red
E254: Cannot allocate color Blue
E254: Cannot allocate color Magenta
E254: Cannot allocate color DarkCyan
E254: Cannot allocate color LightMagenta
E254: Cannot allocate color Grey
E254: Cannot allocate color Blue
E254: Cannot allocate color Magenta
E254: Cannot allocate color Red
E254: Cannot allocate color Yellow
E254: Cannot allocate color Black
E254: Cannot allocate color LightGrey
E254: Cannot allocate color DarkBlue
E254: Cannot allocate color Grey
E254: Cannot allocate color DarkBlue
E254: Cannot allocate color Grey
E254: Cannot allocate color DarkBlue
E254: Cannot allocate color LightGrey
E254: Cannot allocate color LightBlue
E254: Cannot allocate color LightMagenta
E254: Cannot allocate color Blue
E254: Cannot allocate color LightCyan
E254: Cannot allocate color LightGrey
E254: Cannot allocate color Grey90
E254: Cannot allocate color Grey90
E254: Cannot allocate color LightRed
E254: Cannot allocate color DarkGrey
E254: Cannot allocate color LightGrey
E254: Cannot allocate color Cyan
Error detected while processing /Users/sk/.vimrc:
line    1:
E185: Cannot find color scheme desert
Press ENTER or type command to continue

Anyone knows how to fix this? If I run just vim or /Applications/MacVim.app/Contents/MacOS/Vim directly I don't get the error messages. Only if /usr/local/bin/vim gets called. Either directly or via another command line application.

Just if someone comments that I could have simply created an alias, I actually did that before

alias vim=/Applications/MacVim.app/Contents/MacOS/vim

however, some other command line tools were still using /usr/bin/vim.

This is a known issue. From :help MacVim:

Note: Starting MacVim by creating a symlink to >
    .../MacVim.app/Contents/MacOS/Vim with 'ln -s' does not work.

I found a lot of people getting a string of E254 errors from using a symlink. See this ticket on the MacVim issue repository. The solution follows:

    Most likely this is because you have symlinked directly to
    the Vim binary, which Cocoa does not allow.  Please use an
    alias or the mvim shell script instead.

MacVim comes with a startup shell script, mvim. You can alias it to vim if you'd prefer to use it instead of the system vim. If you want to start vim in the terminal rather than as a gui application, set the alias to mvim -v. Add export EDITOR=vim to your ~/.bash_profile to make sure that any terminal applications are using the now-aliased vim. This should cover all your bases.


How can I tell if a QuickTime movie is prepared for streaming? I have been given a QuickTime file to place on a web site for my client. I requested the file be prepared for streaming using "Fast Start - Compressed Header" so that the video with start to play as soon as QuickTime player has buffered enough. (We will not be using a QuickTime Streaming Server for this video)

I am unsure if the file provided to me meets my request. For one, it seems to be am MPEG4 file, not an MPEG4 video file wrapped in a QuickTime .mov container. But even when I export a short ~10 second clip using "fast Start - Compressed Header" and open that in QuickTime player, nothing I can see under Movie Properties or Movie Information shows me that I have added a fast start header.

How can I determine if a QuickTime movie file is prepared for streaming using Fast Start, Compressed Header?

You may want to try QTIndexSwapper by Renaun Erickson. It's an Adobe AIR app that detects if a movie is ready for web and if not it tries to move the index (header) to the beginning of the file thus allowing a simultaneous download and playback.


How can I get System Information's "Installations" and such to correctly reflect the software I currently have? I installed a bunch of software.

Then I removed most of it.

I used a variety of methods. AppCleaner for some
things,

mdfind -name 'Adobe Flash' |parallel rm -rf {}

for others.

I removed app store software in by clicking on the little "x", and then manually cleaned out all the stuff that did not get removed.

I've gone after the receipts and .bom files.

I enabled locate, in order to get it all.

However, the Installations option in "System Information" continues to display software that is gone.

I find this disheartening, and confusing.

What strategies do I need to employ to perform the equivalent of say,

aptitude purge foo

?

The software is gone. I can reinstall it via App Store or other methods. Where have I missed? Pls advise.

The flat files method of saving receipts was ended in 10.5 Leopard.

For Snow Leopard systems and later, the package receipts are stored in a database at /Library/Packages/db, so you'll want to use pkgutil to query and manipulate the receipts inside the database. It's probably a sqlite store, but the man page and all books I've read strongly recommend using pkgutil

 pkgutil --packages #to list the installed packages

And once you've assembled a list of packaged to delete you can pass them into the tool and instruct it to forget those packages.

 pkgutil --forget com.apple.pkg.HP_Chuckwalla

Reading in the pkgutil man page as well as Peachpit Advanced System Administration book should cover any options I forgot to mention.


Where can I find original MacBook Pro batteries? I have a 2011 13" MacBook Pro. I have replaced the battery once, replaced the charger two times (because it wore off/tore up). I have replaced the original drive with an SSD and pumped up the RAM so my MacBook runs pretty much like new with Sierra (upgraded).

Now I am not taking chances on off-brand batteries because:

they can potentially damage/brick my laptop (my replacement battery had swollen after an year).
replaced batteries do not fully hold the charge and have much smaller life times.
because my laptop is showing no sign of slowing down, I would rather replace the battery with the original so I can use it for another 5 years or so.

The problem is I can't find original the MacBook Pro battery for a 2011 laptop. I may visit a store to find out but is there a away I can order an original MacBook Pro 2011 13" battery online?

Apple don't sell batteries as spare parts to customers, and the Unibody MBP's battery is not 'user-serviceable'. Hence the funny tri-cornered screw heads. Anything you find on a third-party retailer's site is likely to be 'grey', even if claimed to be Apple-branded.

(Having said that, I have bought several of such batteries for Unibody MBPs and they have worked well with no problems.)

If you take your MBP to an Apple Store, you should be able to get it replaced, but obviously Apple will charge you 'some money' for this.


How can I record sound in Mac OS? Is there any simple application (or built-in in Mac OS) that allows me to record sound on a Mac? I'm referring not only to voice input through the mic, but also to sounds issued by the system.

You want Audio Hijack Pro. Records system audio, from long time quality Mac developer, Rogue Amoeba.


Mac terminal strange output on return Using the Mac terminal whenever I hit enter, regardless of shell it outputs the line with square brackets. The issue doesn't occur in iTerm2.

Dan@Mac ~                                                            [10:32:55]
[> $                                                                            ]

Dan@Mac ~                                                            [10:36:11]
[> $                                                                            ]

Dan@Mac ~                                                            [10:36:11]
> $

So above is what there term looks like, input goes at > $ however on enter it shows with [> $.

Any advice appreciated, let me know if you need any other details.

edit: To clarify as this was marked duplicate of another thread which asks the functionality/purpose of mark, when posting this I did not know what mark was or that it existed.

Found the reason, in the terminals settings under edit there is an option called mark.

Seems this is designed to mark the prompt line, once disabled this behaviour stops.


How to disable built-in keyboard on OS X 10.9.1? Before 10.9.1, I can disable/enable the built-in keyboard of my Air with the commands:

sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext
sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext

But it seems after I updated to 10.9.1, the commands don't work anymore. Maybe the update made the command moot?

Also, I was getting desperate (thus, stupid) in trying to disable the built-in keyboard, that I tried deleting the AppleUSBTCKeyboard.kext directory, thinking it would just get regenerated after a restart. Well, it didn't get regenerated. My built-in keyboard still works, but I'm not sure if the missing directory will have some hidden side-effects.

You might use a private.xml like this with KeyRemap4MacBook:

<?xml version="1.0"?>
<root>
  <devicevendordef>
    <vendorname>APPLE</vendorname>
    <vendorid>0x05f3</vendorid>
  </devicevendordef>
  <deviceproductdef>
    <productname>LAPTOPKEYBOARD</productname>
    <productid>0x1234</productid>
  </deviceproductdef>
  <item>
    <name>test</name>
    <identifier>test</identifier>
    <device_only>DeviceVendor::APPLE, DeviceProduct::LAPTOPKEYBOARD</device_only>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x00, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x01, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x02, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x03, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x04, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x05, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x06, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x07, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x08, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x09, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x0a, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x0b, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x0c, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x0d, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x0e, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x0f, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x10, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x11, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x12, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x13, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x14, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x15, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x16, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x17, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x18, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x19, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x1a, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x1b, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x1c, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x1d, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x1e, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x1f, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x20, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x21, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x22, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x23, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x24, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x25, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x26, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x27, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x28, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x29, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x2a, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x2b, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x2c, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x2d, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x2e, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x2f, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x30, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x31, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x32, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x33, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x34, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x35, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x36, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x37, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x38, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x39, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x3a, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x3b, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x3c, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x3d, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x3e, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x3f, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x40, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x41, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x42, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x43, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x44, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x45, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x46, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x47, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x48, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x49, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x4a, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x4b, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x4c, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x4d, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x4e, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x4f, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x50, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x51, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x52, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x53, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x54, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x55, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x56, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x57, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x58, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x59, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x5a, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x5b, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x5c, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x5d, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x5e, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x5f, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x60, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x61, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x62, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x63, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x64, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x65, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x66, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x67, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x68, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x69, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x6a, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x6b, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x6c, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x6d, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x6e, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x6f, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x70, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x71, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x72, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x73, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x74, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x75, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x76, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x77, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x78, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x79, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x7a, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x7b, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x7c, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x7d, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x7e, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x7f, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x80, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x81, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x82, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x83, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x84, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x85, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x86, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x87, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x88, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x89, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x8a, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x8b, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x8c, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x8d, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x8e, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x8f, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x90, KeyCode::VK_NONE</autogen>
    <autogen>__KeyToKey__ KeyCode::RawValue::0x91, KeyCode::VK_NONE</autogen>
  </item>
</root>

Replace 0x1234 with the ID shown by EventViewer (/Applications/KeyRemap4MacBook.app/Contents/Applications/EventViewer.app).


How do I stop emails highlighting dates (with links to my calendar)? On my iPad, how do I stop emails highlighting dates (with links to my calendar). I find this distracting.

I solved it by replacing each character in the formatted date using the follow regexp:

(.{1})

and then replacing with

$1&zwnj;


Edit info.plist to make bootable USB Running OSX El Capitan 10.11.6 and trying to make a bootable USB for windows 7 bootcamp on my MacBook Pro. I disabled the SIP by using Terminal in Recovery Mode but I still cannot replace or edit the info.plist file. Optical drive is broken so that's not an option. Any advice appreciated!

It is pointless to solve your problem. If you succeed in creating the USB Windows installer, you probably will not be able to boot from the installer on your Mac. You are suppose to use the optical (DVD) drive.

There are alternative methods to install Windows 7 on your Mac. For example, see the question: Boot camp install of Windows 7 issue, no bootable devices.


Changing App Store Login We Have two Users on a 2013 MacBook Pro: 'A' and 'B'.
However, when User 'B' tries to log in to the App Store, the login prompt is already completed with User 'A' info.
Is it possible to have two Users log in separately to the App Store on one laptop?

What you see as 'already completed with User A info' is the auto-complete feature. You can change user in the App Store following this:

Open the App Store app
MenuBar > Store > Sign Out...
MenuBar > Store > Sign In...
Delete info in Apple ID and Password fields
Enter User 'B' info and press Sign in


Clear "Other" data on iPhone I know very similar questions have been asked on Stack Overflow.

Yet, 8/9 years and a couple of iOS updates later, I am wondering if there is any new solution to this problem. I currently have 14.07GB occupied on my iPhone which is more than half of its total capacity (andere = other):

I know of the following options:

restore iPhone from Backup after wiping it
use a third party app like iPhone cleaner, iExplorer or DiskAid to dig into the files

I have deleted Safari caches, deleted music files (I am using Apple Music, so I only stream), offloaded most of my photos/videos and activated offloading unused apps. Yet, this wouldn't help much with the "other" data anyway...

If the mentioned options are the only ones I have, what would you advise me to do and why?

First of all, are you sure you need to clear this data? iPhones manage the "Others" category alone and should "release" the cache when space is low.

  If the mentioned options are the only ones I have, what would you advise me to do and why?

I would choose the backup & reset option so you don't have to dig into the files and the cache will be the smallest possible.


iPhone 4s no display constant charging sound There is no display on my iPhone 4s, but whenever I hook it up to my charger, it will play the charging sound every 7 seconds. Maybe something is loose in the phone? I am thinking there is something up with the LCD screen thing, I can see in the sim card slot a pink-ish thing, and some bent metal of some sort. Please help. Don't know what to do.

Can you try a different charging cable?
Try holding the home and power buttons together to do a hard reset and see if that reboots the iPhone.
Does iTunes recognize the device when it's connected to your computer?
Are you able to fully remove the SIM card from the device?


How do you exclude applications from the 'open with' menu I've got quite a list of installed application. The result is there are many applications bloating the 'open with' menu.

Is there a way to exclude applications from the 'open with' menu?

If it's possible to exclude applications from both certain file types and from all file types, that would be great.

No, they're included automatically by the OS, but if you want to reset the file, you can try this:

Open Terminal in /Applications
Type the following command:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
Relaunch Finder, click cmd+alt+esc and select Finder and click Relaunch
Now the "Open With..." menu is reseted!


Rules in Mail randomly don't apply I have a very simple rule set up in Mail like the following:

If [any] of the following conditions are met:

[From] [Contains] @gmail.com

Perform the following actions:

[Move Message] to mailbox: Gmail

That's about as basic as you can get: if an email comes from a certain domain, move it to a certain folder. That's it.

But it doesn't always work! Seemingly random messages will just sit in my inbox and never move to the folder unless I manually select them and Apply Rules.

Am I misunderstanding how rules are supposed to work? What's going on?

Try deleting the rule and creating a new one. Mail seems to randomly corrupt things on even the most well-maintained machines, the past few OS iterations. Passwords disappear. Then there is the step of trashing your Mail preferences, as preference files do get corrupt.


How to delete all photos from iCloud library without having to manually delete every 1000 items? I have a friend which has 2 TB of media data. I backed it up to my PC and now I want to delete all files from iCloud so that she has free space again, but I am restricted to delete 1000 items at a time. She has more than 400.000 files so this is a time consuming task...

Is it really designed that stupid or is there an easy way to delete all media?

Deleting photos is easy if you can borrow a Mac.

https://apple.stackexchange.com/a/179483/5472

If not, you’ll want to pick away with it or open a support case with Apple. The engineers can blow away files if you give them a support PIN and they have a reasonable belief you can’t do it by plugging away with the tools Apple ships and you realize the limitations are there to prevent a moment where someone destroys another’s library when their phone is unlocked and not hassle someone that legitimately wants to remove thousands upon thousands of photos.


Monitor data usage on iPhone connected to WiFi My iPhone seems to download huge amounts of data according to Google WiFi stats. The last 30 days this was almost 1TB:

I can't pinpoint it to 1 specific app, my Photos library is only about 350 GB, so that couldn't be it for instance. Is there any app or tool that lets me monitor the actual endpoints my phone is connecting to? (like a custom VPN that passes trough all data but just keeps logs of the domains)

IMHO, two options.

Debookee on macOS, this allows to log http/s traffic and DNS requests from remote (iOS) devices in your network.

https://debookee.com

Charles for iOS, this allows to see the network connections/traffic directly on the iOS device.

https://www.charlesproxy.com/documentation/ios/


High Sierra's Finder don't index files in storage unit Finder (macOS High Sierra) not show any files or folders that I know are there. It occurs only in with units of a storage appliance (Tiger-Box). In previous macOS versions it works fine. I can see all files and folders using Adobe Bridge but its not a good tool for that.

So. Can you guys suggest me a way to fix it? Or may be a "alternative Finder" that works.

I am not sure whether you have tried this or not. I would suggest running the following command on Terminal to enhance the feature of SMB first.

Speed up browsing on network shares

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

Force the Finder to gather all metadata first

defaults write com.apple.desktopservices UseBareEnumeration -bool FALSE

Logout and login back from your Mac machine, and give a try to find the files from your SMB Shared Network.


How to remotely change iCloud settings on iPhone 5? I would like to restore factory settings on my iPhone 5. When I try to do
this via iTunes, the computer tells me that I have to change the iCloud settings on my phone:  deactivate "Find my iPhone".

Unfortunately both buttons are inactive on my phone, so I am not able to get to the settings menu. I am also not able to reboot it. I have tried pressing both of them for a long time to no avail.

Do you have any ideas how to get around this?

Remove it from Find My iPhone via the web

https://www.icloud.com/#find

At that point, iTunes will be willing to erase the device and/or restore it. You could also use Apple Configurator 2 which has a command line option to wipe devices:

cfgutil restore


Abort Trap: 6 bash / cd After cd'ing I get the error "Abort Trap: 6". This continues after every command from then on.

Bash version: GNU bash, version 4.4.0(1)-release (x86_64-apple-darwin16.0.0)

Update

problem persist after reboot, logging out / in, and spawning a new shell

.bash_profile

#[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
##
# Your previous /Users/austin/.bash_profile file was backed up as /Users/austin/.bash_profile.macports-saved_2015-11-19_at_16:17:31
##
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"

source /Users/austin/git_projects/biohitech-bash-tools/bash_profile
if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

~/.bashrc

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
source /Users/austin/git_projects/bash_profile/profile

Sourced files in .bash_profile

export PS1='\033[1;0;32m \033[38;5;220m\033[1;0;32m> \e[0m'
# export PS1='\[\033[1;0;32m\][ \W\[\033[38;5;220m\]\[\033[1;0;32m\]]$ \[\e[0m\]'
#####################################
############# Functions #############
#####################################
function exiled() {
    for f in *.mkv
    do
        mv $f  `echo $f | sed 's/.Exiled-Destiny._//g' | sed -E 's/_(\()[a-zA-Z0-9]+(\))//g'`
    done
}

function uploadImage {
    ext=$1

    if [ "$ext" == "help" ]; then
    printf "Description:\n\tUploads all images in directory of extension type specified to imgur.com\nExample:\n\tuploadImage jpg\nFile Types:\n\tPEG, PNG, GIF, APNG, TIFF, BMP, PDF, XCF (GIMP). Please note that TIFF, BMP, PDF and XCF (GIMP) will be converted to PNG on upload. PNGs over 756KB are automatically converted to JPG.\n\n\tImgur does not currently support WEBM, MP4, or GIFV uploads. They will need     to be converted before upload.\n"
    else
        for f in *".$1";
        do
            printf "$f\t"
            curl -s -F "image=@$f" -F "key=26ff5c40cbedf50e7f81124ab473c1cc" https://imgur.com/api/upload.xml | grep -E -o "<original_image>(.)*</original_image>" | grep -E -o "http://i.imgur.com/[^<]*"
        done
    fi
}

######################################
############## Aliases ###############
######################################
alias cls=clear
alias ls="ls -AGh"
alias grep="grep --color"
alias serve="python -m SimpleHTTPServer"
alias _=sudo
alias ytmp3="youtube-dl --extract-audio --audio-format mp3"
alias pgoff='brew services stop postgresql'
alias pgon='brew services start postgresql'
eval "$(thefuck --alias)"

# nginx
alias ngon="brew services start nginx"
alias ngoff="brew services stop nginx"
alias ngrestart="brew services restart nginx"

#####################################
############## Exports ##############
#####################################
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
export PATH="~/Downloads/:$PATH"

####################################
############## Misc ################
####################################

####################################
#           Completion             #
####################################

# Git
if [[ -f completions/git.bash ]]; then
    source ./completions/git.bash
fi

# npm
if [[ -f completions/npm.bash ]]; then
    source ./completions/npm.bash
fi

#####################################
############# z command #############
#####################################
if command -v brew >/dev/null 2>&1; then
    # Load rupa's z if installed
    [ -f $(brew --prefix)/etc/profile.d/z.sh ] && source $(brew --prefix)/etc/profile.d/z.sh
fi

Output from printf '%s\n' "$PROMPT_COMMAND"

update_terminal_cwd
_z --add "$(command pwd -P 2>/dev/null)" 2>/dev/null;

Update 2

The problems seems to start when cd'ing to folders owned by users who are not myself.

ex cd /Users/testuser or cd /var/log

Any help would be great.

The issue seems to be caused by the z command (found here) being sourced in ~/.bash_profile

I will be reporting the bug asap.


How to block specific apps on an iPhone I'm having a hard time configuring my daughter's iPhone with Screen time.
I would like to completely block some apps during the weekdays and allow some time for them during the weekends.
Screen time only allows me to set a limit strictly greater than 0, so I have to set all the apps I want to block to 1 minute. Knowing that she can auto-extend for 1 additional minute, an app that I want blocked has instead 2 minutes of usage per day (not a big deal but still...). There is a "Always Allowed apps" list but not a "Never Allowed apps" list. Uninstalling the apps is also not a solution as I want them available during the weekend.
Is there a way, with Screen time or another app, to have a better control and put in place what is described above?

You might want to consider using Jamf NOW which is a more robust and versatile way of locking down and managing iOS (and other) devices. We use the Jamf Edu MDM at my school to manage > 300 iOS and > 900 laptop devices.
Best of all, the first 3 devices you manage are FREE!
Disclaimer: satisfied user of Jamf: no financial or other ties.


Can I delete unnecessary device simulators of Xcode? I found that Xcode on my laptop consumes much of its storage, so I am trying to delete unnecessary files in Xcode.

There are four directories under Application/Xcode.app/Contents/Developer/Platforms/. I feel that WatchSimulator.platform and AppleTVSimulator.platform are not necessary, because I use Xcode almost only for basic iOS development.

I would like to know if I can delete those platforms directories directly?

Yes, you can delete any simulator that you don't use.  I do this routinely when I stop supporting older iOS versions.
If you delete them and then you find that you need them at some point in the future, you can redownload them from Apple's developer site.
The best way to delete them is in Xcode.  Go to Window -> Devices and Simulators.  This will open a new window with all the devices you use in Xcode.
At the top, tap on Simulators and you'll see a list on the left-side.
From there, find the simulator you want to delete and Cntl - click (or right-click) and select Delete.
I do this with each simulator that runs in each iOS version that I no longer support.
Update July 2020: There's a free utility in the Mac App Store named DevCleaner for Xcode.  This application can display and delete simulators and various caches.  I've found it be a very quick and easy way to regain space.  I'm not the developer or associated with this application in any way.


How many unlocked iPhones (no contract) can you buy from an Apple store? I'm planning on buying the iPhone 4S from the Apple store when it comes out next week (waiting in line in NYC shouldn't be too bad).  In the past, how many unlocked iPhones will they let you purchase at the Apple store?

Selling unlocked phones is a fairly new thing for Apple retail. They've never been part of a product launch - so looking back, the precedent is NIL. There is great precedent for any new phone launch to have lines and quotas for the first 30 to 60 days after a product introduction. There also is precedent for a huge shipment on launch day - then limited stock for a few weeks as things sell faster than they can be made.

I would simply stop by your store and get to know the business team if you have business needs. Until the policy is announced, it should be handled like any other phone in terms of what payment is allowed (cash or not) as well as purchase limits.

The last launch, it was one phone per person while availability was limited and one web order at a time. Once the stores stopped selling out of inventory on a daily basis, it was easier to just walk in and get a phone. Last time I checked, the store has to bring out a different physical box when I purchased an unlocked phone ( I changed my mind about AT&T contract half way through the process). The current stock does ship as an AT&T phone or an unlocked GSM phone - they are not the same SKU.

I suppose the computers could use a common stock and "unlock" the device when selling, but that would be different than what happens today. I do know that the iOS app to reserve product worked very well last launch, so do think about getting that installed if you are keen to get a few phones as soon as iOS 5 launches.


cat: illegal option -- 2 while merging wlan-141056:part_u_2 prova$ ls
-2e-5_cas 0_cas     10e-5_cas 20e-5_cas 40e-5_cas 5e-5_cas
wlan-141056:part_u_2 prova$ cat -2e-5_cas 0_cas > prova
cat: illegal option -- 2 usage: cat [-benstuv] [file ...]

What's wrong with merging two files using cat ?

The first file you want to cat starts with a - so cat considers it to be an option. But as there is no option 2 (see the usage string) it throws an error.

Use one of

cat ./-2e-5_cas 0_cas > prova
cat -- -2e-5_cas 0_cas > prova

instead (the second is better for scripts etc).

PS: In general it is recommend to not use - as the first character of a filename to prevent exactly these issues.


Encrypted Time Machine backup is super slow using an encrypted USB volume? I have an external USB3 disk connected to my MacBook Pro. I first formatted it with GUID/APFS and encryption, and used the "atto disk benchmark" app to measure performance. It showed about 100MB for read/write.
Then I turned to Time Machine, and selected that volume as encrypted backup drive.
But Time Machine writing the backup is super slow. It takes about 100 seconds for 1 megabyte to be written. Thing is running for 20, 30 minutes by now, and I see 17 MB out of 112 GB of progress. It is so slow that Time Machine won't even give me a "time remaining" information.
Is there anything I am missing? Or should I just forget about using such kind of drive for an encrypted backup? (Doing an encrypted backup is a hard requirement.)

Based on the comments by user Tetsujin and this apple community entry the "answers" are:

Yes, a full disk encrypted TM backup to a USB3 drive is slow. Overall performance varies greatly, many small files need much more time compared to fewer large files. Overall, my 126 GB backup took about 12 hours.
The one thing that you can (and should) take care: format the whole disk as "Mac OS Extended (Journaled, Encrypted)". If you don't select Encrypted, TM will later encrypt the drive on its own, which requires (again!) plenty of time (besides the time it took to just write the backup itself). My initial approach of using APFS: don't do that!

Note: the one other thing I learned: you can easily suspend that first TM backup, simply by clicking the "skip this backup" menu item while it is running.


Which MacBook with Windows? I'm working off a mid 2009 13" MBP right now which I want to replace soon. I'm thinking of getting an MBA instead - I would probably get an 11" for the road, with an external monitor for working at home.

But here's my problem: I will go back to school this summer and I'm required to use Excel for Windows for my classes (sadly, Excel for Mac won't do, urgh!). Therefore, I will have to also install Windows 8 (with Boot Camp) on my new computer. Will either of the MBAs hold up? (Obviously, I'd go for the highest RAM and hard disc possible.)

Thanks a lot!

Try a Virtual Machine (VM).
1) You own a Windows license: Try VirtualBox (with ExpansionPack). It's free, but you might need a MB Pro because you have to assign at least one CPU-core to the VM.
2) You don't have a Windows license: Try Parallels. Then you can run Windows software from the OSX desktop without having windows installed. Maybe the better alternative but it costs 50$. With Parallels a MB Air should do the job.


Is there a file size limit when sharing files? I was trying to use File Sharing to transfer a rather large file (6 GB) from my Mac mini to my MacBook Pro over WiFi, but the file would get constantly stuck at 6 MB and stop transferring.

Is there a file size limit when using File Sharing?

I don't think this problem is caused by the size of the file, but just one of those random hiccups that happens with AFP sometimes =/

Try using AirDrop if your on 10.7 Lion or higher. Even if your mac doesn't support AirDrop, there is a hidden command to allow for AirDrop to work over the local network (Ethernet or WiFi). See the link below.

http://hints.macworld.com/article.php?story=20110913213649565


SSD firmware upgrade requires iso on a pendrive: how to make that bootable? Goal is updating a NVMe SSD firmware on a Mac without optical drive via USB stick that should contain a minimal Linux, flasher and payload.

The instructions (PDF) for a firmware update utility say to use Unetbootin on MacOS to write an iso-file to a FAT32 formatted (erased) USB stick.

That works. No errors shown.

What then doesn't work is booting a MacBook Pro 2015 from that stick.

The external USB-drive never shows up in the boot menu.

What I tried:

erasing the sticks a few times with DiskUtility
partitioning the sticks to either MBR or GPT
3 different sticks
different laptops (Mac & Windows)
writing the iso file with dd directly to the stick (and in another round using Balena etcher and universal usb installer)
different versions of DiskUtility (Sierra and Mojave)
Windows on-board tools on a PC for re-formatting the sticks
gparted and fdisk mkfs.vfat  on a Linux machine
using a different iso (not matching the target device) from the vendor site (works without any issues according to instructions, but can't update my device…)
writing to customer support (answer: "iso looks good, should work, please try again")
booting a fresh virtual machine on a Mac host with just the needed iso attached. Frustratingly, that indeed boots as intended, but can't update the device either. Neither a Windows PC, nor a Linux laptop can boot the sticks I prepared.
searching net and especially Ask Different for solutions

The sticks just aren't recognised on any Mac laptop as 'bootable' once the procedure outlined in the manual is finished. All Laptops can boot from external drives (Thunderbolt & USB) and the boot manager updates without interaction once I plug those in.

Possible reasons :
- assuming that DiskUtility from 10.12 and 10.14 can't properly format the sticks?
- is latest version of Unetbootin acting up?
- is the iso for my device incomplete/damaged?

The last item here may be the culprit:

The firmware iso for a Samsung 970 EVO is just so much smaller than for a EVOplus:

NVMe SSD-970 EVO Plus Firmware ISO 2B2QEXM7 | 28   MB (works, unneeded)
NVMe SSD-970 EVO      Firmware ISO 2B2QEXE7 | 17.4 MB (doesn't work, needed)

The EVO-iso is mountable directly in macOS and just contains

 bzImage  initrd  isolinux >
                  boot.cat  isolinux.bin  isolinux.cfg  ldlinux.c32

The EVO-plus-iso is not mountable but when written to stick with Unetbootin it shows an EFI folder and GRUB files, etc… Since this one does boot and scans the computer for eligible devices, I am a bit stuck here.

None of these similar questions on AskDifferent offered a working solution:

Copy Crucial SSD Firmware Update ISO to Bootable USB

Is it possible to make a bootable USB stick for a Macbook Pro to do firmware update?

How to install a bootable ISO onto a single partition of a usb stick?

How to create USB Ubuntu boot disk in OS X so that it boots on *non-Apple* computer?

How to make and use an USB stick with GParted that will boot on a Mac?

How to create a Mac bootable gparted or Parted Magic thumb drive?

Since playing with around with DiskUtilities options it seems to be the case that it is a bit buggy. Switching around between various partitions and filetypes related to FAT/FAT32 results in DiskUtility not recognising its own products, with different options greyed out at different times. Looks to me as if some flag or structural anomaly that DiskUtility introduces keeps this from working, like I might have to really wipe down the stick. Alas, neither wipefs nor gparted did that successfully and I do not know what to look for here.

First find USB key disk number from diskutil list.  This method will destroy everything on the disk you copy to so take care. Mine was /dev/disk3 and looked like this:

/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *32.0 GB    disk3
   1:                        EFI EFI                     209.7 MB   disk3s1
   2:       Microsoft Basic Data FAT32                   31.8 GB    disk3s2

Make sure no volumes are mounted, then use dd to copy the unmounted ISO file to your device (do not append a partition number, so do not use something like /dev/disk3s2).

This worked for me with the NVMe SSD-970 EVO Firmware ISO 2B2QEXE7 from here.

[hali@macOS] ~ $sudo dd bs=4m if=/Users/hali/Downloads/Samsung_SSD_970_EVO_2B2QEXE7.iso of=/dev/disk3
Password:
4+1 records in
4+1 records out
17825792 bytes transferred in 8.546376 secs (2085772 bytes/sec)
[hali@macOS] ~ $sync
[hali@macOS] ~ $

diskutil list now looks like this:

/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            Samsung                *32.0 GB    disk3

and in Disk Utility like this:

Reboot holding ⌥ and pick the yellow boot option on USB key called "Windows".  It should load the firmware utility fine (it did for me on 2015 MBP).

Afterwards, as mentioned in Arch Wiki the ISO signature needs deleting.

  Warning: This will irrevocably destroy all data on /dev/sdx. To restore the USB drive as an empty, usable storage device after using the Arch ISO image, the ISO 9660 filesystem signature needs to be removed by running wipefs --all /dev/sdx as root, before repartitioning and reformatting the USB drive.

As wipefs doesn't exist in macOS, this can be achieved by using gdisk to write a new gpt partition table.  Simply reformatting in Disk Utility didn't work to recover use of the USB resulting in lots of "Operation not permitted" errors.


How to delete a folder, even in every backups of Time Machine? I just noticed that a folder containing personal documents was still on my main disk. I copied to my personal disk (password protected), but I want to also delete the copies which are stored in the multiple backups that Time Machine has made over the years.

Is this possible?

This functionality is built into Time Machine.

Launch Time Machine. Right click on the folder of choice, and select "Delete All Backups..." from the menu. This will comb through all your backups and delete all traces of that folder and its contents.


How to open a new tab in iTerm in the same folder as the one that is open? I'm using iTerm for my command line needs, and when I open a tab using ⌘T I want it to open the tab cd'ed to the same location as the tab that was open when I hit ⌘T (instead of opening in my /Users/kramer65).

I searched around the Preferences, but I can't seem to find it. Does anybody know how I can do this? All tips are welcome!

Select "Reuse previous session's directory" from the preferences of your profile:

Alternatively click on "Advanced Configuration" then "Edit..." so you can set the working directory separately for new windows, new tabs & new split panes


I brought My Macbook Pro last year in november (Latest Model available then) and suddenly today started to show a question mark? I brought My Mac-book Pro last year in November(Latest Model available then) and suddenly today started to show a question mark?

I tried to pull up the option menu by holding Option key while booting but now I came up with a online recovery. What happened to my data on the disk?

Is it a folder icon with a question mark? That means it can't find the operating system to boot from!

Generally speaking, this would indicating a failing hard drive. There is a possibility you have lost some data. However, it could be just a case that some of the files have been 'misplaced'.

The best way to get on top of this would be to immediately run Internet Recovery and/or use Disk Utility to try and repair your computer.

See:

Mountain Lion - OS X Recovery
HT4718 OS X: About OS X Recovery


How to start a line chart at 0 in excel I am in dire need of a solution for the Break Even chart that i have created using Microsoft Excel. Can anyone please tell me how to start the blue line (NPV of all benefits) from 0 instead of Year 0. the image has been attached. Thanks in advance.

To get the spreadsheet to start at 0 instead of year-0 you can do one of 2 things. Change the label "Year-0" to just "0" or add another pair of points as the very first entry. Make the x-value whatever it should be and set the label name as "0" and the y value forthis new point is whatever it is.


Deleting a mail account on only ONE iCloud synced Mac I’d like to delete one of my mail accounts from one of my Macs, but not the other (due to the 15GB of email associated with it). When I go into Sys Prefs > Internet Accounts and hit the minus sign, the verification message says that it will be removed from all computers using iCloud Keychain and lists my other Mac (at least it warns me).

I’ve gone into iCloud Drive and turned off the “Mail” entry, although it’s not clear what documents Mail stores there (perhaps AirDrop attachments?), but having that unchecked on both Macs makes no difference.

It’s nice the iCloud syncs internet accounts to you don’t have to re-enter them on your other Mac, but how do I turn off this one feature?

The Mac on which I’d like to keep the mail also has a 200GB iCloud Photo Library, so signing out of iCloud is a pain. But I’m not sure that would work. I would guess that when I sign back in, it would be minus the just deleted email account.

Running Sierra 10.12.6 on both computers.

The answer turns out to be the no, you can't delete an account on one iCloud synced Mac, without deleting it on the other(s). Beyond leaving said email account disabled, you must go into ~/Library/Mail/V5 in the Finder and uncover the multi-digit-letter folder associated with that account and trash the contents. That's how to reclaim the space occupied (in my case 15GB).


Can't delete Finder favourite I can't delete the Finder favourites, however I can add them.
No luck in editing com.apple.sidebarlists and com.apple.finder since the favourites aren't stored there (anymore?).

My first guess would be a permission issue, however I have no idea where that would be.

I solved the problem by setting FXSidebarUpgradedToTenTen to No (in com.apple.finder.plist) and then installing the security update, although I don't think that the security update had any impact here. I then rebooted my mac and it went trough the usual update process, which fixed my sidebar problem.


Epson 1500 won't print over WiFi Yesterday I installed the drivers for my printer (Epson Stylus 1500) on my Mac. During the setup I chose to connect over WiFi (the printer had already successfully been setup for WiFi printing from my Windows computer). After the installation I tested this by printing a test page and everything worked as expected.

Today I wanted to print a PDF file and following message was given in the printer status window:

  The printer is not connected.

And on the document it keeps saying:

  Printing - Searching for printer.

I can still print over WiFi from my Windows computer but my Mac doesn't seem to find the printer anymore. Is there any solution to this?

Info:

Mac version: OS X 10.9.5
Printer: Epson Stylus 1500

Go to: /Library/Printers/
Delete the EPSON folder.
Add the printer from System Preferences.

This will involve your computer updating all the drivers from Apple and will take some time.


Electricity coming through screws, USB, and headphone jack on 2009 MacBook I've seen some online threads and at least one StackExchange question on this, but the answers don't seem to apply to my situation.

I have a 2009-vintage white 13" MacBook that's always been in great shape except for needing the relatively common bottom case replacement a while back. I did the replacement myself without apparent incident.

Thereafter, though, I noticed that the exposed metal screws on the bottom of the case can burn/tingle my exposed skin if the machine is plugged in. And I do use the three-prong grounded (earthed) power cable.

I actually first noticed this while charging my 2nd-generation iPod Touch from the USB port while the laptop was charging; the whole back of the iPod had a live feel to it -- a little stuttery resistance as you passed your finger over the metal, which went back to being perfectly smooth as soon as I unplugged it. And I also have a pair of earbuds with metal casings that are downright painful to wear when plugged in to the laptop.

All these things only happen when the laptop is plugged in. Remove it from "mains power", as the non-Americans would say, and all these effects cease immediately. Happens with two different power cables I've tried, and in all different locations. (Well, given that all those locations are homes and offices with standard U.S. wiring.)

I've tried retightening the bottom case screws, but they're as tight as I can comfortably make them without worrying about stripping the head or the threads.

So -- anyone have any new insights on this one? Thanks!

If you are using a grounded plug and feel ground loop current you should either have the outlet serviced or the computer serviced.

It's normal (and safe) for ground loop current to exist and feel lightly tingly on Macs with ungrounded power supplies since there are spinning fans - especially inside the thermoplastic white Macs. It's also almost inconceivable that the low current DC voltage that a Mac battery and power adapter provide could be a safety risk, but it could be a sign of internal damage and worth having an expert check out the wall socket and or the Mac plus it's power adapter.

Since your comment reinforces the level of detail you are seeking, I would say that any Apple repair shop that received that Mac for repair might use a multimeter to see if they can sense an voltage on ground pins and/or the case. They might place a new DC in / magsafe board in and re-test to see if that's the cause. They would of course test with their adapter and then remove the components in the main unibody section to look for loose screws, scortch marks or other signs of burns or liquid damage to the components that might cause this abnormal current situation:

battery
rear vent
fan
optical drive
logic board

Once you've gone over these - hopefully you can visually see the problem or remove whatever is grounding current / voltage to the frame.


Unable to insert images in a Note I'm trying to insert an image from my Camera Roll into a Note.
I've been able to do this in the past, but for some reason the option isn't showing anymore:

How do I add photos to a Note?

iOS 12, iPhone 6 Plus.

The option has been moved down to the bar above your keyboard.

Press on the plus icon

Choose Photo Library


How to turn off "moving into" in IOS camera? (Live Photo) One of the recent IOS updates introduced a feature which no doubt some like, but I hate it.  I refer to the 2-3 seconds of video showing how the camera moved before I took the picture.

I have absolutely no use for this, and since I do take real videos from time to time, I have no way to automate removing the crap.

Is there a way to turn it off?

It sounds like you're talking about the "Live" photos feature. At the top of your camera app screen are the icons for things like the flash and HDR settings. In the middle you should see one that looks like a bunch of concentric yellow circles. Tap it to turn off Live photos.


Quickly mark all emails as read? Is there a way to quickly mark all emails as read instead of going over each one of them manually ?

From Menubar
1. Edit -> Select All
2. Message -> Mark -> As Read


How do I disable a specific wifi network through terminal? Is there a way to disable a specific wifi network in Terminal? I'd like to disable my home wifi connection for reasons outlined here: Reclaim Your Life After Work by Disabling Internet Access for Smartphones

My housemates would like to keep wifi so I can't just turn it off.

I've disable some websites using terminal as outlined here Block Access to Websites on a Mac by Modifying /etc/hosts

But I don't want to block everything so I can still use wifi at work, a library or coffee shop. Is there any way to block a specific network? I also don't want it to show up or be usable in the Network Preferences.

OS X and iOS all save known networks, so just forget that network and tell your computer to not ask to join networks.

The steps vary, but you should be able to open help from the Finder and search for "Choose preferred Wi-Fi networks" and it will guide you to the advanced settings for networking so you can delete any networks you don't want to join again. If you have many, you might delete them all and start fresh by only joining networks you intend to use for work purposes.

If you want to go a step further, delete the network password from your Keychain or change the password on the router and your mac won't re-join that network ever.

Enjoy your break from the home network.

p.s. deleting this from terminal isn't something I know how to do, so sorry if you really wanted to learn how to script things, but this seems like something you could accomplish in 3 minutes or less without complicating things in terminal.