Network client is released unexpectedly and mac goes to sleep My jenkins builds crash because of broken ssh pipes into my iMac.
The ssh connection is dropped unexpectedly and the iMac instantly enters sleep state. I cant figure out why. Here's the pmset -g logoutput:

2018-06-22 14:49:16 +0200 Assertions  PID 48(powerd) Released NetworkClientActive "com.apple.powermanagement.ttyassertion" 00:09:19  id:0x11000013f7 [System: PrevIdle]
2018-06-22 14:49:16 +0200 Sleep       Entering Sleep state due to 'Maintenance Sleep': Using AC                     77 secs

I cant figure out why NetworkClientActive gets released nor do I find any information about this. Where do I find logs why the sleep happens?

Where do I find logs why the sleep happens?

how to find out the start time of last sleep

  You can use the pmset command to obtain this information. The
  following command obtains a log of the sleep/wake entries then
  restricts this to the last entry in the list which should be the most
  recent sleep:

  pmset -g log | grep sleep | tail -n 1

  You can obviously play around with anything after pmset -g log to give
  you what you need.


Open a file:/// url with #anchor from terminal I've been trying to open a file:/// url e.g.

open "file:///Users/me/index.html#my-anchor"

Or

open -a Safari "file:///Users/me/index.html#my-anchor"

Or

open -a Google\ Chrome "file:///Users/me/index.html#my-anchor"

However, the browser location after opening is:

file:///Users/me/index.html

The hash/anchor has been clobbered.  Is there some way to do this that I'm missing?

(Note: Obviously this isn't what happens with URL's on web servers)

Don't use the open command.

Google Chrome:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome "file:///Users/me/index.html#my-anchor"

Safari:

osascript -e 'tell application "Safari" to open location "file:///Users/me/index.html#my-anchor2"'


Fan Control in Windows on a Retina Macbook Pro (Boot Camp) Gaming on the rMBP under Windows 7 is a very good experience but I have noticed that unless I elevate the chassis there is a tendency for the automatically regulated fan speed to fail to engage a rising computational load fast enough to keep the CPU under thermal shutdown temperature (Tj max) and freeze the machine.

This is somewhat inconvenient of course, as it means the CPU has reached a temperature that it should never reach, and also requires a reboot.

I know that the fans are capable of running higher than the highest they have been recorded to run which is in the neighborhood of 4900 RPM, they should be capable of going to 6000 RPM, which, even though it would be noisy would be keeping the CPU cooler, which is a good thing in my book.

Here's a screen capture to illustrate...

So I hope this makes it clear that Apple's fan speed scaling is a bit on the conservative side when the temperatures are high.

From what I can tell, once you get the machine nice and toasty and the load "stabilizes" it will generally be in a state of equilibrium where the CPU core temperatures hover in the high 80's and 90 degrees C, making occasional excursions above 100 degrees C. So long as the 105 degree Tj Max point is not passed the computer keeps up with whatever game you're playing just fine.

My understanding is that under OS X I can use the smcFanControl app to manually specify the fan RPMs, but I have not been able to find a similar way to control or fix the fan speed once I am booted into Windows. When I did this sort of experimenting on my Macbook Air there seemed to be a method which involved setting the desired setting in smcFanControl in OS X and then sometimes rebooting into windows would have the setting stick. This would basically get the job done if it works on the rMBP as well, but I'd prefer something friendlier.

Are there any fan control applications for Windows that will recognize and allow control of the Macbook Pro fans?

I wonder why noone mentioned wonderful and free Macs Fan Control app that works flawlessly on Windows. All mac hardware support is declared, OS X version is also available.


While Screensaver is on, login window keeps appearing. How can I prevent this? I have a desktop with two computers.  On one side I have a Windows PC, and on the other side is a Macbook running OS X Mavericks that is plugged into a Thunderbolt display.

I use a wireless keyboard and a magic mouse.  Today, I've been working on my Windows PC, and though my Macbook is booted up, I've left the screensaver running and I haven't touched any of my Mac devices.

Off and on, all throughout the day, the login window keeps popping up on my screensaver.  It appears, time's out, disappears and within 10 seconds it appears again.

I've double-checked and nothing is resting on my keyboard and no cables are touching the magic mouse.  I know the mouse isn't being bumped or jostled.

Would anyone happen to know if this is an OS X bug or, possibly, a bug with the mouse, sending in micro-movement data to the Bluetooth listener?  If so, is there a fix?

I really like my Thunderbolt display.  I'd rather not have screen burn-in from the login window constantly overlaying the screensaver, if I can avoid this.

Also, I am not looking to disable the login prompt from the screensaver.  I work in an office and it is general practice to always lock your computer(s) when you step away from your desk.  I need the login window to pop-up when I need to log into my Mac.

I have the same problem, and it turns out it is being caused by Firefox. This seems unlikely, so I'll lay out the facts below.

At first, I assumed it was mplayer, VLC, or QuickTime player, all of which will disable the screensaver while they are doing their magic. Especially the first, which is installed via Homebrew and isn't properly written for OSX. However, much playing with these indicated they're not the problem.

Later, I guessed it was my attached bluetooth devices. So I've performed two experiments:

I turned on my screensaver then powered off both the keyboard and trackpad, which are the only two input devices attached to bluetooth, yet the problem persists.
I plugged in a USB mouse/keyboard then turned bluetooth off entirely from the OSX menu bar item. The problem persist even with bluetooth turned off entirely.

After some time, I guessed it was a USB device. I have several USB items plugged in, including several hard drives, a vape pen, and Android device. Unplugging these made no difference.

Finally, after the problem had been going on for several days, Firefox needed a security update and a restart. After restarting it, the screensaver/display sleep worked properly.

Now, whenever I have the problem, if I quit Firefox, the problem goes away. If I restart Firefox, sometimes the problem goes away, but sometimes it persists.

I have NO IDEA why Firefox would be triggering this, and if it weren't for the above facts, I wouldn't really believe it myself. If anyone else has this problem and uses Firefox, please try to corroborate?


Unhide application from switcher and menu bar Recently one of apps is not showing in the Application Switcher, the Dock or even in the menu bar. The only way that I have found to get to it is via Mission Control or Launch Pad. And even when I do this it still does not show up in the menu bar so I can't access the menu items (preferences etc.) The application in question is Fantastical 2 (an alternative Calendar app).

User error ... I had to use the command+comma shortcut to change preferences. I had foolishly checked "Hide icon in Dock" not realizing that it would also hide it in the application switcher.


Can I connect a mid-2011 iMac to an external HDMI display with a mini Displayport-to-HDMI cable? I have a mid-2011 iMac running Sierra.  I just purchased a new Ultrawide monitor to use primarily on my PC, but it also supports dual input devices, so I was thinking I could connect my iMac to it in order to have the Mac as a picture-in-picture on the same screen as the PC.
The iMac has mini Displayport and Thunderbolt.  The new monitor has HDMI inputs.  I would like to use the miniDP port.  Will a miniDP-to-HDMI adapter/cable work?  I seem to recall the 2011 iMac was right on the cusp of some changes to DP and the only way I've ever connected an external display to this iMac was using the Apple mini DP to Dual-Link DVI cable/adapter.  Can I just go direct miniDP-to-HDMI?

Yes, a mini-DisplayPort to HDMI cable will work well with the iMac.


Is it safe to install and use app from ”untrusted developer“? Cryptocurrency wallet bter.com/mobileapp are asking me to install its app directly from corporate repository. It's firs time when I'm able to see such thing.

Is it safe to work with this app? Or it can possibly steal some of my data because of ”mistrust“?

P.S.: I know how to avoid this popup window and start working. The only thing that I want to specify is how safe to use it.

Generally speaking, no, it is not safe as the pop-up states. As you don't know where the app comes from and it has not been checked by Apple's reviewers.

You'd need to install the app developers' certificate to install this app. That certificate could be misused to extract data/control phone/misuse information. Companies often use their own certificates via mobile device management to do such things. Like wiping a stolen phone or blocking the user after leaving the company.

Further Explained

The warning is generated to protect users to install apps from untrusted (not validated, unknown) developers. This mostly occurs on apps being downloaded outside of given app-stores.

In this case (I don't know the app) you really want to lookup the developers site and references.

Maybe it's an open source project. Open Source projects produce this warning but in many cases this warning can be ignored as the project has been reviewed by a bunch of users stating it is safe to install. Still: Caution!.

A search shows a company with the same name is already in the iOS App Store. Though, I don't know whether it's the same company. And there seems to be a reason why the app is not listed in the app store.


How to display preview of any data from iPad on external monitor? Is it possible to preview images, PDFs, movies on external monitor from an iPad and still be able to work on iPad simultaneously?

Is there any technology to achieve it?

I need to organize conference and be able to present anything on connected monitors, and at the same time work on iPad.

You can give Keynote for iPad a try.

You can put all the presentation content in a keynote file (PDF, images, videos), start the presentation from Keynote from iPad app, display the presentation on an externally connected monitor while still working on something else on your iPad. The iPad app acts as the remote for controlling the presentation while you can also use your iPad for other tasks.

Keynote for iPad: Play a presentation on a separate display


In Terminal, how do I add a host key to the file known_hosts? In Terminal, how do I add a host key to the file known_hosts? Also, how do I remove a given host key from the same file?

I trying to ssh into a computer at my school and when I type in the command johndoe@mu.math.umn.edu, it returns:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
fb:59:b6:4f:e0:9d:99:64:12:44:c8:16:1c:46:b0:92.
Please contact your system administrator.
Add correct host key in /Users/johndoe/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/johndoe/.ssh/known_hosts:1
RSA host key for mu.math.umn.edu has changed and you have requested strict checking.
Host key verification failed.

I am not sure, but I think want I want to do is add this "finger print for the RSA key" to the file known_hosts.

You can use any text editor to edit ~/.ssh/known_hosts such as nano or vi. Use the format…

serverIP ssh-rsa key

Based on the edited question, it seems you have an invalid key in the file which disagrees with the key that is being provided by the host. A simple fix is to open ~/.ssh/known_hosts in any text editor, remove the entirety of line 1 (as indicated by "known_hosts:1" in the error), save the file and try to connect again. This time, you will be prompted to add the key and it will be added automatically.

The known_hosts file stores keys for hosts to confirm that the host that you are connecting to is the host that is expected. When the host changes the key, it prevents all connections as the expected key does not match. You need to remove the old key and the new key will be added automatically next time you try to connect.


Purchased movies not available after first time played I have purchased a movie and 20 minutes watching, I was ejected. When I tried to play it again, it seemed like the purchase never happened. I was asked to buy or rent it. It seems like I am not the only one.
Is there anyone who had the same issue and solved the problem ?

Problem arises when I start my MacBook (Should be every computer that is connected to the same iTunes store account). If you avoid using it after the movie/documentary or anything else is streaming, you should not have the problem.

The solution is to sign out from your iTunes Store account and sign in, so rentals are restored. Just checking for rentals doesn't help.


How do I disable Internet access on my MacBook as to make it as inconvenient as possible to re-enable it? I’m the tech-savvy owner of a MacBook for which I have admin privileges. I have tried blocking Internet access for myself in the past but I always find ways to circumvent the block. So instead of that, I would like to find a way to make it as inconvenient as possible for me to re-enable.

Is there any possible way in which I can make it absolutely and positively so that that Internet access is delayed for myself for a certain period of time?

The most effective way to prevent a node (a workstation) from having Internet access is to stop it at the gateway.

Why?

Anything that you can do as an admin can be undone by another admin.  However, if you block Internet access at the network level, an admin of a single node (your MacBook for example) cannot bypass that restriction (unless of course you give them admin access to the gateway).

That said, a very effective way to block Internet access is to route Internet (default) traffic back to the localhost (127.0.0.1).

$ sudo route delete default
$ sudo route add default 127.0.0.1

While not foolproof, it can deter a determined admin from figuring it out what's causing the block because the network appears to be operational as the internal network is still functional.  In other words, the user cannot browse the Internet, but still connect to local shares or use a network printer.

The caveat here is that to circumvent the block, you either reboot or just restart the network service.  However, you can have a LaunchDaemon that runs every minute ensuring this setting is persistent.

With this setup, the user is tricked into believing there's a problem with the network and not their machine.  Because even if they restart the network service, at most it will run for a minute, then stop.  If they were the present these symptoms to even the folks here on AD, the initial responses will be to look at the gatway.

It's not that you lock your door, it's the perception that your door is locked.


Can Time Machine back up different data (or different exclusion lists) to different drives? Mountain Lion includes a feature to configure multiple Time Machine locations and to back up to those locations when they become available (plugged in external drives, accessible network drives, etc). Can 10.8 or any older version of OSX, possibly including third party software, be configured to back up different data to different locations?

Use case: I have 100GB of storage available on a cloud storage server, and a 250GB external hard drive. I want everything on my computer except media (photos, videos, music) backed up to both of those locations. I have another much larger drive that is accessible less often that I keep backups of my media on. Currently I have Time Machine configured with an exception list for the media locations and it backs up to all three drives (dumbly in 10.7, but smartly when I upgrade to 10.8) and then I manually make a backup of all the media directories using rsync occasionally. I would love for the media backup to be automatic when I plug in the large drive.

The short answer is no, but here is why and how the exclusions work when you pick different rules for two accounts.

Whether you have one backup destination or two, the rules for multiple users is to combine the exclusions for each user with the exclusions from the system so that each user can exclude different things, but there is no "inclusion" mechanism to add something back that another user has denied.

There is a nice article on having multiple users and goes into more details on setting up multiple exclusion lists:

http://pondini.org/TM/10.html

It's not going to save backup time or space as you asked, but perhaps drives can get larger and you could just have both drives hold the same content since incremental updates mean that unless a file changes, it only gets copied once to each destination, speeding backups for subsequent backups to each individual drive when it's connected.

Pulling one drive from rotation with two works well as the system just carries on with the drive connected and then when the further out of date drive mounts again, one of the next two backups will catch it up with all changes since it was last mounted during a backup.


Is there a way to create a shortcut in Finder to an Apple Note? I like to use Apple Notes to organize details and checklists for my projects — it's very convenient. However, it would be more convenient if I could access a project note directly from the project folder in Finder. I understand that I can export the note as PDF, but as that I'm constantly adding to and changing my project notes, I'd prefer the shortcut to open the note (or note folder) in the Notes app directly.
Here's a mockup of what I'd like to accomplish:

I've tried to locate the note in Finder, but Apple stores all the notes together in one file. I was just going to create a shortcut to that note (which is still pretty inconvenient). Ideally I like to change the save location for an individual note, share to finder, or create a shortcut link. Can this be done with AppleScript or Automator, or even a simpler method?

I think you will like this following AppleScript solution.
STEP 1: Save this following AppleScript code as a Script File to your /Users/YOUR SHORT NAME/Library/Script Libraries/ folder. (with the name “Make Link To Note Library.scpt”).  Just compile the script and save it and don’t even bother running it from Script Editor.
This following AppleScript will be used as, what is known as a “Script Library”.
property destinationSuffix : "Contents/Resources/applet.icns"
property iconFile : missing value
property thisApp : missing value
property noteName : missing value

if iconFile = missing value then changeMyIconToNotesIcon()
if noteName = missing value then chooseNote()

try
    tell application "Notes"
        activate
        show note noteName
    end tell
end try

to changeMyIconToNotesIcon()
    set iconFile to path to resource "AppIcon.icns" in bundle ¬
        (path to application "Notes")
    set thisApp to path to me
    set replaceThisIcon to POSIX path of thisApp & ¬
        destinationSuffix as string
    do shell script "cp " & quoted form of POSIX path of iconFile & " " & ¬
        quoted form of replaceThisIcon & " ; touch " & ¬
        quoted form of POSIX path of thisApp
end changeMyIconToNotesIcon

on chooseNote()
    tell application "Notes" to set noteNames to name of notes
    activate
    set noteName to (choose from list noteNames) as text
    return noteName
end chooseNote

STEP 2: Save this following AppleScript code as an application, with the name, for example “NOTES Make Link To Note Template.app”
property loadedScript : load script alias ¬
    ((path to library folder from user domain as text) & ¬
        "Script Libraries:Make Link To Note Library.scpt")

run loadedScript

Taking this concept one step further, and making life much easier for everyone planning to use the code in my solution. Instead of copying and pasting the code from STEP 2, into a new Script Editor document and saving it as an application etc. , every time you want to create a “Direct Link To A Specific Note” , This following STEP 3 should make the process seamless.
STEP 3: Save this following AppleScript code as an application, with the name, for example “Make Link To Note CREATOR droplet.app”
Now that we’ve created the Script Library file "Make Link To Note Library. scpt”, from STEP 1’s Instructions, we can access its handlers and their commands, directly in this code by inserting the use command at the top of this following script.  This line set noteName to (notesLibrary's chooseNote()) & ".app” is an example of how to utilize a command from a Script Library file.
use notesLibrary : script "Make Link To Note Library"
use scripting additions

on open theFile
    appletFileIsAcceptable(theFile)

    activate
    set saveToFolder to choose folder with prompt ¬
        "Save Your New \"Link To Note.app\" To Which Folder?" multiple selections allowed false ¬
        with invisibles and showing package contents

    set noteName to (notesLibrary's chooseNote()) & ".app"

    tell application "Finder"
        set duplicatedApp to duplicate item 1 of theFile to saveToFolder
        set name of duplicatedApp to noteName
        open (((saveToFolder as text) & noteName) as alias)
        reveal (((saveToFolder as text) & noteName) as alias)
    end tell
end open

on appletFileIsAcceptable(theFile)
    tell application "System Events" to if name extension of ¬
        item 1 of theFile ≠ "app" then return -- decide if theFile is acceptable
end appletFileIsAcceptable

In Finder, drag your new created Script Editor applet from STEP 2. directly onto the icon of the Droplet from STEP 3. This will create a duplicate of the”Template.app” to a folder of your choosing and name it to the name of the chosen Note and then launch it automatically. When the process is complete, the new “Go To Specific Note.app” will be completely configured and revealed in Finder


Only the spinning beachball when I try to open anything from spotlight I can't start any programs or open any document from the spotlight since yesterday.

It finds the right program / document, but when I press enter I only get the spinning beachball for about 40 seconds and then spotlight closes without opening anything.

Any ideas?

For future reference. I had the same problem, but found this solution:

Back up. (You should always have a backup.)
In Finder, select the menu: Go ▹ Go to Folder... and enter:
/var/db/CoreDuet
Delete the files inside that start with coreduetd. In my case it was 3 files.

Enter your Administrator password when prompted.

Reboot your Mac.


Can I use a new USB C dock with an old USB A socket? Can then the PD socket be used to supply more power to the dock? Can a new USB C dock like this for example:
USB C dock with Power Delivery
be connected and work with an old Macbook (or other USB A gen 2.0 or 3.0 computer) using an adapter like in the picture for example?

If so:
Can I then connect a power adapter, e.g. "Apple 61w usb-c power adapter" or a regular smartphone USB C power adapter to the PD port on the USB C dock to deliver power to the dock so as the dock now becomes a powered usb hub? (I know it'll not charge the old Mac though. A powered dock/hub is required for more power-hungry devices like several external HDD.)

[I'm concerned that the new dock may damage the old USB A port, especially when the power adapter is connected to the PD port so as the dock tries to send power to the old USB A. For new USB C it detects when the port "wants" to get power and it'll also power the devices connected to the dock along with the computer. The intention with the old Macbook is to power only the dock and the connected peripherals]

Thanks!

The new dock will not damage your old USB A port. USB is backwards compatible, so connecting an USB 3 dock to a USB 2 (or older) system is not going to damage anything.

The old USB A plug does not support what is known as "Alternate Mode" in USB Type-C. Therefore you'll not be able to get the HDMI port on the dock working.

In theory, the USB related functionality such as the built-in 2 port USB hub, and the SD/TF-card reader will be able to function with your converter plug. However, if you connect it to a USB 2.0 computer, you will ofcourse not get USB 3.0 ports or speed on the dock.

The type-C PD connector on the dock will not enable you to power the old MacBook Pro via the USB A plug, as it does not support the same type of power delivery as USB type-C.

Whether or not the hub in the dock gets powered by the way of the type-C PD plugin depends on how exactly that Novoo hub is designed. I don't think it is likely to work, as a 61W USB-C power adapter is working at 20V (~3A) - while the USB hub inside the dock is usually powered at 5V.


The iTunes currently-playing track is blank; how do I get it back? I'm using iTunes 11.1.2 on the Mac. The top center of iTunes has an area that normally shows the currently-playing track (title, artist, album, etc.) with the track time slider. (Apparently this is called the "scrubber".)

After a recent Software Update, that area is now empty; it just has the Apple logo. I can't find any way to make the track data and time slider appear again (clicking and right-clicking does nothing, the View menu doesn't have an option for this, etc.).

How can I get this to reappear?

Apparently a lot of people are seeing this problem. Poster "musicelect" on this Apple discussion thread at least provided a work-around:

Close the main iTunes window with ⌘+W
Then reopen it with ⌘+Opt+1


Used iPhone 5 - What do I need to do to register as the new iPhone owner, have warranty, etc Buying a used iPhone 5. What should be my next steps to register as the new iPhone owner in Apple's eyes, have warranty, etc.

The warranty is established by Apple based on the serial number and nothing else.

If you want to register things, you can do several things:

Contact AppleCare http://www.apple.com/support/contact/ or via phone
Self register at https://register.apple.com/cgi-bin/WebObjects/GlobaliReg.woa
Self register by erasing all content and settings (via Settings App - Reset or iTunes restore) and opting in with an Apple ID to register the device.


How do you edit someone's iCloud contacts with a different iCloud account/e-mail address? Okay, so I've been searching far and wide to figure out how to do the following:
I need to edit my boss' iCloud contacts. Usually I log into her iCloud but she does not want me to do that anymore because I can see her e-mail, etc.
Is there a way that I can access her iCloud contacts using my own e-mail address? I am open to suggestions about third party apps as well.

Note be careful here, while this answer works it can add a level of confusion and might have side effects that I didn't consider.  I did try it tho, and it works.

Create a new Apple ID. Most easily done by going to http://appleid.apple.com from a computer browser.

On your bosses phone go to Settings > Mail, Contacts, Calendars and tap Add Account.  Add the new Apple ID you just created. Once authenticated, turn off the switches for Mail, Calendars, Reminders and Notes-- leaving only Contacts turned on.

Now the phone has two sets of contacts, her old set and a new empty empty set.  Only the original set is displayed tho.  To change that open the Contacts app and click "groups" in the top left corner.  Note that on this screen you can check one or both sets of contacts at the same time.

Now go to the computer and export all her contacts from the original Apple ID and import them to the new.

Once the new set is ready for her to use, make sure to turn off the old set using Contacts > Groups on her phone.  Also go to Settings > Mail, Contacts, Calendars and in the Contacts section change the "default account" to the new group, so that any new contacts she creates on the fly will go to the new group.

To save confusion you could also remove all the contacts from the old Apple ID. Also open Settings > Mail, Contacts, Calendars and edit the original Apple ID turning the contacts switch off.

Now the contacts are stored under a separate Apple ID and you can log into that Apple ID on iCloud.com to edit them.


bug with rsync changing modification dates even with the -a option I have been testing rsync and found a weird bug when copying files and folders from a partition to another:

If I do this:

rsync -avE --delete '/Volumes/disk1/origin/' '/Volumes/disk2/destination/'

It copies/syncronizes correctly.

The next time I use rsync for the same syncronization, some modification dates in files (not folders!) become incorrect (are changed to the current date and time), even though I have used the -a in the rsync command which should preserve it.

The most weird thing is that if I redo it, the dates that were wrong are correct now, which means rsync is changing the modification dates every second time it is run, and when it changes the dates, it is always to the same files, I don't see a pattern other than just affecting files and the same files.

What am I doing wrong and can this be fixed?

This is with OS X 10.9.5, using the terminal, rsync 2.6.9

Let me correct my comment: A 64bit timestamp consist of access-modification-change-birthtime.

From man 2 stat the following system calls change the respective times.

The time-related fields of struct stat are as follows:

 st_atime         Time when file data last accessed.  Changed by the mknod(2), utimes(2) and read(2) system calls.

 st_mtime         Time when file data last modified.  Changed by the mknod(2), utimes(2) and write(2) system calls.

 st_ctime         Time when file status was last changed (inode data modification).  Changed by the chmod(2), chown(2), link(2), mknod(2), rename(2),
                  unlink(2), utimes(2) and write(2) system calls.

 st_birthtime     Time of file creation. Only set once when the file is created. This field is only available in the 64 bit inode variants. On filesys-
                  tems where birthtime is not available, this field holds the ctime instead.

Tools such as cp,ditto, and pax can preserve OS X metadata when they are called to copy files. These tools will not preserve birthtime if the modification time is newer than the original file's birthtime. Birthtime of the new file is set to the modification time of the original file.

If you compile rsync with the patches fileflags, crtimes, hfs-compression then rsync can handle OS X metadata and preserve the original file's birthtime on the new file.

So, you would call rsync like this.

rsync -avXN --delete SOURCE DESTINATION

I suggest that you have a long read of the rsync manual and understand the options that I have suggested before you attempt to apply them.


How to avoid auto starting playback when importing playlist in iTunes library Whenever i import a large folder into iTunes i have the problem that if in one of the subfolders there is a playlist, it will auto start playing. How can i prevent this?

I just delete the m3u and pls files:

find ~/Music -iname '*.m3u' -o -iname '*.pls' -delete


How can i share ubuntu's intertet to iphone via USB Can anyone help me reverse tethering from linux to iphone 5.

You cannot configure a network connection using USB on the iPhone. If your Ubuntu machine has a wireless adapter you will have to configure it as an access point.


Why won't icloud account accept my password from my Mac Mini? Attempted to sign in to my iCloud account on my Mac Mini and it failed.
I use a password manager so the pwd hasn't changed.

I went ahead and changed the password (and used the old password) and the iCloud account said that it reset it.
Then I tried signing in again and it still failed:

So, since I still can't sign into iCloud account (supposedly incorrect pwd) I decided to change it again.

But this time it complains that I cannot change pwd to same thing  --

This means that it knows what my password is, since it just let me change it and now it won't let me change it to the same thing. However,even though it seems to know the password, it won't let me sign in with it.

Completely Signed Out

Also, I had completely signed out of iCloud before trying this second password change thing.

Does anyone know why this occurs?

EDIT - Next Thing That Happened

So I decided that maybe my 32 character password was too long and I decided to try again, but when I tried it with the shorter password then it said, "I can't do that right now." and gave up.

So I then noticed that it is talking about my appleId.  I know the password to my appleId, because I just signed in on the web site (to confirm) while using it.

Is this thing trying to get me to sign in with my appleId or iCloud id?  This is a really terrible system.

I had to take the following steps to get it to work again:

reboot Mac Mini
sign in using local account.
When I signed in, it said that FaceTime needed a password -- that was my original icloud account.
I then went to Settings and signed into the iCloud account (using my original icloud password).
it requested I set up the sync items (find my mac, etc).

The sign on worked but my appleId sign on now seems to have the same password as my icloud id which I thought was not possible in the past.

So, I guess the point is that if you encounter this error where you can't sign into iCloud you should reboot the device and work through it to see if you can get signed in again.


How to set Preview to start on the last viewed page? There is no problem with PDF stored on my mac, it can be started on the last viewed page. However, the problem occurs when I use preview to open PDF files stored on iCloud. It's always shown up the first page. This is really annoying. I must scroll down, hundred of pages.

Has anyone faced this problem? Any help would be appreciated.

EDIT: When I store a PDF on iCloud using Preview.app It worked fine!!

However, the application that I used is PDF Reader Pro Edition for iPad. I stored my file using its iCloud option.

When I opened the PDF with Preview.app using Cloud Mate on my Mac.

I can scroll to page 50 and then  quit the Preview.app. Then reopened the PDF again in the same way I just did.

But the first page is shown instead of the last viewed page which should be page 50.

There an option in Preview that you need to have enabled:

Preferences > PDF > On opening documents (should be checked)

*also instead of needing to "scroll down, hundreds of pages" you should be able to simply use Command+Option+G and enter the page number you want to jump to.


In OS X Server.app, what's the number in the app icon? I have Server.app on 10.7, and when I start it, I get the neverending beachball, and in the Dock, the Server.app's icon has a red number in it, which is continuously increasing.

What's the number mean?

It means the number of alerts you have. There are several things that can prompt it to show alerts in Server.app, such as software updates available for the server, a volume unplugged unexpectedly, etc.


Trackpad Locked MacBook Pro So I recently noticed this that when my MacBook Pro is shutdown there is no clicking while when I turn it on the click starts to work. At first I thought it's just one time bug but I tried a couple more time to replicate the same thing and it works every time. It seems like the trackpad gets locked when the MacBook is turned off and gets unlocked when turned on.

I tried googling it but didn't find anything useful. Is this like a feature which is not being advertised or something? I am curious to know how does it works?

I have a MacBook Pro 2016 Model.

What you are experiencing is the haptic feedback from the Force Touch Trackpad available in your MacBook Pro. Starting 2015, the MacBook (Retina) and MacBook Pro Trackpads include a technology called Force Touch which can be configured to provide haptic feedback. Haptic feedback is experienced only when the MacBook Pro is powered on.

To learn more, refer to the Apple Support article, How to use the Force Touch trackpad.


What is the maximum wattage/amperage the Magic Mouse 2 can consume? Oddly I have to charge these things a lot and I'm trying to determine which power of AC-USB charger to buy without being wasteful.

For example, if I use a 12W (2.4 amp) iPad charger, will the magic mouse consume all 12W, or will it use a stepped-down trickle like 2.5 watts from the 12 watt charger?

Apple doesn't seem to list this info anywhere.

Using a USB voltmeter (at @n1000's recommendation), this is the Magic Mouse 2 consumption rounded to the nearest 10th:

0.5 Amps (2.5 Watts) while switched off

1.5 Amps (7.5 Watts) while switch on


How to add app inside application bundle (CrashPlan menu bar.app) to Spotlight index? The CrashPlan Menu Bar item app, is located as a sub item within the package of the main CrashPlan app: /Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app

Applications are indexed by Spotlight, but applications within Application bundles are not on Mac OS X 10.7.5.

How to manually (Terminal) add such an app within an application bundle to the Spotlight index?

I often use Automator to make a stand alone "application" that calls a script or embedded app so that I can place it's icon in the location of my choosing.

There are plenty of other frameworks like Platypus that do similar things.

http://sveinbjorn.org/platypus


Error downloading YouTube video using youtube-dl When downloading a YouTube video using youtube-dl, I get the following error:

MacBook-Pro:ytd user$ youtube-dl "https://youtu.be/dgxpBpa9A48"
[youtube] dgxpBpa9A48: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)')))

What is causing this? How do I overcome it and download the video?

For some reason youtube-dl has cert issues. I have always found a solution by using --no-check-certificate argument.

From the man page:

--no-check-certificate
              Suppress HTTPS certificate validation

Should really say "Ignores HTTPS certificate validation"...


Any way to change sound output device via Applescript or shell? I would like to change sound output device (like option-clicking the speaker icon in the menubar) via script, but NOT through UI scripting, e.g., launching the System Pref panel.

UPDATE: Using @Mateusz solution below, here is an Applescript that, when launched, will give you a popup to select the desired audio output device:

set devices to do shell script "/Applications/Audiodevice/audiodevice output list"
set answer to choose from list (paragraphs of devices) with title "Audio Output" with prompt "Select a device" without multiple selections allowed
if answer is false then return
do shell script "/Applications/Audiodevice/audiodevice output " & quoted form of item 1 of answer

(Note: you need to put the audiodevice file in /Applications)

There's switchaudio-osx, command which needs to be compiled from sources or can be installed via homebrew (Xcode installation required):

brew install switchaudio-osx

Usage:

SwitchAudioSource [-a] [-c] [-t type] [-n] -s device_name

-a : shows all devices
-c : shows current device
-t type : device type (input/output/system). Defaults to output.
-n : cycles the audio device to the next one
-s device_name : sets the audio device to the given device by name


osascript -e "tell application \"Terminal\" to set normal text color of window 1 to ${color}"
osascript -e "tell application \"Terminal\" to set background color of window 1 to ${color}"
osascript -e "tell application \"Terminal\" to set the font name of window 1 to \"$1\""
osascript -e "tell application \"Terminal\" to set the font size of window 1 to $2"

http://www.ict4g.net/adolfo/notes/2014/07/16/change-osx-terminal-settings-from-command-line.html


What happens if I remove the localhost address from /etc/hosts I have looked at the hosts file before but never thought of this. The hosts file overrides the DNS addresses so it can be used to forward sites or to block them.

When looking at the file, the default says this.

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost

What happens if remove or change the localhost configuration file? Would it prevent my Mac from booting. Would I be able to boot into recovery mode and revert the changes or would I have to reinstall the OS? If I had bootcamp would I be able to fix it by booting into Windows?

the only difference is that in order to access local web servers (for development purposes) you will need to use the address 127.0.0.1 instead of localhost.


Will iPhone X from TMobile A1865 or A1901 work globally? I travel frequently between China and the US. I have T mobile in the US and Unicom in China.

According to apple's official website, the iPhone X (A1865) is the only model that works with China Unicom.

I plan to purchase an iPhone X with the option for Tmobile on Apple's website. According to MacRumors, iPhone X with T Mobile is supposed to be A1901.

However, "the iPhone X A1865 is considered the global phone as it works on both GSM and CDMA networks. This phone is also available as a SIM-free factory-unlocked version at Apple Store."

Which of these statements are true?

Which iPhone X model should I purchase if I am only interested in LTE?

According to https://www.techwalls.com/iphone-x-models-a1865-a1901-a1902-differences/ you better buy A1865 which works globally:

A1865
The iPhone X A1865 is considered the global phone as it works on both GSM and CDMA networks. This phone is also available as a SIM-free factory-unlocked version at Apple Store
A1901
The iPhone X A1901 is the GSM version. It is available on AT&T and T-Mobile in the United States, as well as many other Europe and Asia countries.


Mac App Store Download does not start on fresh installed Lion I needed to reinstall Mac OS X, so my plan was to format the drive, install OS X Lion (since I have the USB stick here) and then update to Mavericks.
Sounds simple, yet I have a problem: The Mavericks download does not start! I logged into the App Store and clicked on Load, and it says that the download is in progress.

But: Nothing happens. I do not get a progress bar in the Purchased Menu and the Icon in Launchpad only says it is Loading but the progress bar there does not change.
I tried another already purchased app and it did not work either!

I deleted everything in the App Store download folder - no success

Try resetting the Mac App Store.

Enable the debug menu and restart the Mac App Store.

defaults write com.apple.appstore ShowDebugMenu -bool true

Choose the Reset Application option.


Adding SSD to MBP (2012). TRIM? I'm planning to add a Samsung 830 (256GB) SSD to a MacBook Pro 13" (Mid-2012 model). It'll be installed into the default HDD area and the existing HDD will be moved into the optical drive bay.

Obviously Apple only enable TRIM on SSDs installed by themselves. Is there an official way to enable TRIM on an SSD the 'Apple way', or will TRIM Enabler be required? Can anyone offer some reassurance on using this software? I'm very wary of using it given that it's essentially a kernel hack.

There is no official way to enable TRIM on non-Apple drives. In all likelihood, idle time garbage collection on a Samsung 830 will be sufficient to maintain performance so you might want to ignore TRIM unless you see a problem.

I've been using that drive in a late-2007 MacBook for months even when the drive is full and have not seen any issues without TRIM. Not an exact comparison as the lower speed interface on mine might mask any problems but still a positive sign.


iPhone 5S broken screen root access without iTunes authorization I have an iPhone 5S with broken screen.
I need to save my photos to my PC/Mac; I can't authorize iTunes cause of course the screen is broken and I don't have iCloud, so the only way should be a root access, does anyone knows how to?

Software

iExplorer claims to grant you root access to iDevices without requiring a jailbreak:

  With iExplorer, you can access more files and folders without modifying (jailbreaking) your device than ever before. Need to access photos on your iPhone or iPod? Can do. Want to access the files and folders of your device's apps? Done. How about browsing through your iTunes backups? Check. What about the media folders containing your iTunes purchases? We've got that too. What about files in apps that are synced to iCloud? Yes, even that.*

iBrowse is a simillar, free software by the same company, but it doesn't grant root access (which I'm not sure you need in order to access photos).

The "Windows" Method

From an answer on Apple's support forums:

  I plugged the phone into my Windows Computer and when it recognizes the phone is plugged in, a dialogue box pops up that asks if you want to import pictures and videos. You click import and it will pull everything off the phone and place it in a folder with the date as the name and put it in your pictures or my pictures folder. From there you can access the photos & videos!!

I'm not sure this works either, update in the comments so I can modify my answer.

Old Guide

I also found a guide, written in 2008, and doesn't involve any 3rd party software: (Not sure it still works)

  Connect your iPhone/iPod touch and launch Applications >Image Capture.
  Go to Preferences >General.
  Under Camera, select Image Capture in the “When a camera is connected, open:” option, and then click OK. Now when you connect your
  iPhone/iPod touch, Image Capture will be launched and you can choose
  where you want to download your images.


Identify which folder on mail server is currently designated by Mail.app as Drafts, Junk, Trash, Sent, Archive In Mail.app on El Capitan, the Mailbox menu offers the menu item Use this mailbox as. A submenu offers the items Drafts Mailbox, Sent Mailbox, Junk Mailbox, Trash Mailbox, and Archive Mailbox.

After using one of these commands, the selected folder disappears. That folder's name is masked, displayed under the Drafts, Sent, Junk, Trash, and Archive icons at the top of the sidebar as the name of the account rather than the actual folder name.

How can I tell what is the currently designated folder for each function (Drafts, Sent, Junk, Trash, and Archive)?

You can read it with a text editor at the beginning of the file ~/Library/Mail/V3/MailData/BackupTOC.plist.

While you can read the paths of the mailboxes, you do not see, which belongs to Drafts and which to Sent, etc. On my system, the entries in the file are in the following order: Inbox, Drafts, Sent, Trash, Junk, Archive.

The mailboxes for each account are listed next to each other.

Note: Changes to the paths in this file have no effect. You must set it within the Mail application.


Play sound from iPhone thru Macbook to external output I want to play music from different apps on my iphone and output them thru macbook to external usb audio system.

My stack is: iPhone XS, Macbook Pro 2015, iOS 13, OSX 10.14.

Requirements:

Free / open sourced / paid but cheap (no more than 20$)
Can work via air (not only cable)
Low latency (less than 500ms)

What i have tried?

Cable + QTP

For this solution to work, i need to connect iphone via lightning, goto audio midi setup, turn on iphone as input, open quicktime player, start new audio record without actual recording.

Pros

Well, it works, that's awesome
No external software – everything you need is already inside os
Sound stream works from any iphone app (probably, but i tested many of them and hit is 100%)

Cons

Cable only – wifi/bluetooth does not working
Stupid bug (feature?) that fixes all iphone tapbar and sets time at 09:41 am forever
Control volume in quicktime app
Very big audio latency because of quicktime player (500ms+)

Audio Hijack app

Pros

It works, maybe (didn't tested)
No latency or very small comparing to quicktime (as reviews say)
A lots of possibilities (see features on their website)

Cons

External app that is with closed source and even does not exists in appstore
Too much features with very expensive price only for that one feature i need (60$)

So, anybody knows any other solutions?

Get an inexpensive bluetooth HD receiver and cut out all the middle men and making macos delay the audio is my suggestion. Rogue Amoeba is the only company I know that meets your quality requirements.

Esinkin Bluetooth Receiver Wireless, NFC-Enabled Audio Adapter 4.0 for HD Home Stereo Music Streaming Sound System for 3.5mm (AUX and RCA) https://www.amazon.com/dp/B07TK8ZKQT/ref=cm_sw_r_cp_tai_xzFIEbX8B4NBV
AirFly Pro is awesome - https://www.twelvesouth.com/products/airfly?variant=30720749109305

There are dozens of great options for less than $25 Cost so all your devices, Mac and iOS can play to your audio system.

If you must go bluetooth to Mac, try AirFoil - you’re right you don’t need loopback or the full suite and processing.

https://www.rogueamoeba.com/airfoil/mac/

There are other Wi-Fi / Airplay options for macOS , but AirFoil is what I recommend.


Can't get commands inside .bash_profile startup script to run From my bash shell (latest version of Lion) if I issue the command...

source ~/sh/bashmarks.sh

The bashmarks.sh script will run and the functionality it provides is available.  However I don't want to manually run this script so I have tried to put it into my ~/.bash_profile (the above command is the only thing in the file).

If I quit Terminal and then restart it, the ~/.bash_profile runs, but it reports...

: command not found

How can I get the commands contained in this script to run when the Terminal is opened?  I know the correct .bash_profile is being run, because I can modify the file with some other commands and those don't work either, but the point being is I can see the output change when I modify the contents of the file and restart the shell.  So it is picking up the right ~ user directory (I am the only account on the machine).

Does your .bash_profile have DOS-style line endings? Strange error messages like that often are "corrupted" by a \r character.


Intellimouse Optical-side buttons for Catalina My ~20 year old Intellimouse Optical optical functions in Catalina.  I would like to be able to use the side-buttons to "go-back" in Safari.  I believe (please tell me if this not correct) that intellipoint will unlock this feature.
The instruction's step-1 calls for:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null

Step-1 seems to install brew, however, I am reluctant to execute this command because brew cask has already been used to install applications such as sublime-text.
brew cask install microsoft-office

returns the error:

Error: Cask 'microsoft-intellipoint' is unavailable: No Cask with this
name exists.

Per the comments I tried:
brew cask install caskroom/drivers/microsoft-intellipoint

Which returned:

Error: caskroom/drivers was moved. Tap homebrew/cask-drivers instead.

Is there a method to determine the cause of the error without performing Step-1?  I am concerned that Step-1 may cause problems as brew is already installed per https://brew.sh  If the fix is to perform Step-1 because it somehow adds the equivalent of a repository, I would appreciate an ELI5
Based on this thread I would like to avoid disabling the System Integrity Protection for the very old Microsoft Drivers.
I suspect the side-buttons are sending a signal and it may be possible to configure OS X per the goal.

SensibleSideButtons might help with your problem, but keep in mind it is a third-party solution, so there is a chance it won't work properly.


OS X El Capitan installation error: AMD-Action:authenticate:SP When doing a clean re-installation of El Capitan (highest supported version) from a bootable USB on an older Mac (MBP, 15-inch, Late 2008), I get this error:

An unexpected error occured while signing in.
AMD-Action:authenticate:SP

The error shows up, while logging in with the Apple ID into the App Store in the installer.

I tried with different Apple IDs,

Also tried running these commands
in the Recovery Terminal and restarting:
csrutil clear
csrutil enable

The problem was that the old Mac did not have its date set correctly.

Hold Option (ALT) + Command + R at Mac startup to start internet recovery
Going into Utilities > Terminal starts the recovery terminal
Run date mmddHHMMyy - this solves the problem (date must be in PST!)
Run csrutil enable
Run csrutil clear
Exit the recovery terminal and continue OS X installation normally.

Here is the full step-by-step solution to solve the problem.


How to fix incorrectly sorted albums whose titles contain numbers I have an iPod Classic 160gb 6g. In Cover Flow it appears that some of the albums containing numbers in the title will end up at the end of the alphabet. For example, this is the end of the Cover Flow:

Under A Blood Red Sky - U2
Who's Gonna Ride Your Wild Horses - U2
Bringing Down The Horse - The Wallflowers
xx - The xx
Young The Giant - Young The Giant
Eagles Greatest Hits Volume 2 - The Eagles
Erasure: Pop! 20 Hits - Erasure
99.5 The Mountain Homegrown Vol. 6 - Live at The Soiled Dove Underground - Various Artists

However, there are some albums, such as these, which are alphabetized correctly:

Greatest Hits, Vol. 1: The Singles - Goo Goo Dolls
The 2nd Law - Muse
TKOL RMX 1234567 [Disc 1] - Radiohead

Why is this happening, and how do I fix it?

Verify that the "Sort Album" is set correctly in iTunes. It may be set to have the numbers at the beginning of the title for some reason, and iTunes sorts album names that start with numbers after "z".


Change background image with Time I created 288 different earth renders depending on sun position (one for every 5 earth minutes) based on this file from blendswap. It the image sequence starts at noon and ends at noon. I would like to set at each time of day the correct image as background image on OS X (eg at 12.00 it should be image No 1 at 18:00 it should be image No 72 ). How could I do that.

(The Original Idea was to use the "change background image every 5 minutes" setting in OS X background settings, but it only changes the picture if the computer is awake. Therefore the sequence would be out of sync every time I shut down the computer

btw I uploaded the Files

https://dl.dropbox.com/u/19023009/Blender/background.zip

They are at full Retina resolution at 650MB. + blendfile + license.

Thank you for your input

So finally I managed to do it (at least I think so)

I embedded an Applescript to change the background in a shell script which I added it to launchd.

This is what it looks like:

Script "scriptly.sh"

#!/bin/bash
osascript -e '
set myhour to get the (hours of (current date))
set myminutes to get the (minutes of (current date))
set mypicturenumber to (myhour - 12) * 12 + myminutes / 5 as integer
if mypicturenumber < 0 then
    set mypicturenumber to (288 + mypicturenumber)
end if
set picnumber to 0
if mypicturenumber > 99 then
    set picnumber to "0" & mypicturenumber
end if

if (99 ≥ mypicturenumber) = (9 < mypicturenumber) then
    set picnumber to "00" & mypicturenumber
end if
if 9 ≥ mypicturenumber then
    set picnumber to "000" & mypicturenumber
end if
tell application "Finder"
    set desktop picture to {"Macintosh HD:users:USERNAME:Individualfile:backgrounds:earth:earth24h" & picnumber & ".png"} as alias
end tell
'

launchd file "com.individual.Background.plist"

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.individual.Background</string>
    <key>ProgramArguments</key>
    <array>
        <string>/bin/sh</string>
        <string>/Users/USERNAME/Individualfile/scriptly.sh</string>
    </array>
    <key>StartInterval</key>
    <integer>300</integer>
    <key>UserName</key>
    <string>USERNAME</string>
</dict>
</plist>

command to put it in action

launchctl load /Users/USERNAME/Individualfile/com.individual.Background.plist

EDIT:

The last command is there to load the script directly, however It will not be executed on startup. To do That you have to copy the file

com.individual.Background.plist

to the ~/Libary/LaunchAgents/ folder.


In OS X, how does manually sandboxing an application from the internet compare to blocking it with Little Snitch? I want to prevent inbound and outbound connections to one application. I can buy Little Snitch if it's the best option, but it feels like I wouldn't be getting much value out of it for that one use.

I've been trying to read up on OSX's ability to manually sandbox applications from functions you can specify. I'm wondering if this is something worth pursuing - meaning will it be as good (or more effective) than Little Snitch to block one application only, and how complex is it to set up for an OS X novice?

I've been trying to work out exactly how to go about this. 'man sandbox-exec' probably tells me all I need to know, but I need more dumbed-down steps of the whole process if possible.

For most purposes, the following is good enough for most situations:

sandbox-exec -n no-network command

However, it's not more effective—there's numerous ways of apps escaping the sandbox. Little Snitch also lets you be more specific with what you are blocking—specific ports/etc.


How can I fix Chrome 32.0.1700.77? CPU use and fonts issues I am on Mountain Lion (OS 10.8.5), and I am using Chrome 32.0.1700.77.  I notice that Chrome (the Google Chrome Helper to be precise) has developed the annoying habit of using ~ 10% of each CPU core (something it did not used to do), and the font rendering is increasingly erratic (i.e. Wikipedia or other pages change fonts as I scroll through a page).  These problems can be either on my computer or a seriously buggy release of Chrome (which did not have these problems for me).  If the former I'd like to have your opinion about a possible fix, if the latter I hope a new release of Chrome will come out soon...

According to this thread one of the possible culprits is the Chrome Extension AdBlock (which is pretty nice to have).  A second possible culprit is some of the catalog indexing done by Quicksilver -- when I disabled the indexing of running processes and restarted Chrome I noticed a solid improvement in terms of lower CPU usage.  The CPU usage is still, annoyingly, going up, albeit slowly, and I think this is due to Adblock (or maybe another extension, but I only have about 5).  Because I like to avoid ads I will keep the Adblock extension running and restart Chrome from time to time until the issue is resolved.

Basically Chrome's CPU usage might be due to other apps interacting with it (Quicksilver in my case), and also due to Chrome Extensions, so it is worthwhile exploring these two avenues to try and improve Chrome's resources usage.

I have not found a cause or a cure for the erratic font behaviour.

Addendum 27/1/2014:  another big improvement seems to be had by (1) installing the official Adobe's Flash Plugin and (2) deactivating Chrome's own Flash plugin so that it uses the Adobe's version.

Addendum 29/1/2014:  yesterday Chrome autoupdated to 32.0.1700.102, and the issues of CPU usage seem resolved, i.e. there was little I could do on my end.  To be honest I do not have the time to chase which plugin might minimise CPU use and whatnot, I hope Google will avoid releasing updates that have CPU usage bugs.

Addendum 3/2/2014:  despite all the above Chrome's CPU usage would still creep up, slowly but inexorably.  I reset to factory defaults, reset the fonts to the 'defaults' and thus far the CPU use seems to be under control.


How to install an Operating System after replacing optical Drive by a second HDD on MacBook white late 2009? I want to improve the performance of my MacBook white by donating it a Solid State Drive.

Because the prices are too high and I don't want to get stuck in space shortage, I thought of replacing the optical drive by my old 320 GB HDD and place a new 128 GB SSD in the original place of the HDD.

This way the SSD can use the SATA III connection while for the HDD the SATA II connection of the optical drive will be sufficient - I assume.

But since my Macbook has no recovery partition I was wondering:

How would I install any OS on the MacBook without the optical Drive? I have Snow Leopard on DVD. Since I like clean installations I have burned my App Store purchases of Lion and Mountain Lion on DVD to.

Are there Any solutions for this problem available?

I know there is the possibility for accessing the optical drive. I own a PC with Windows installed on it, but I never actually tried this out. Also I doubt, that the MacBook can access the optical drive of my PC while there is no OS installed on it.

Glad for any feedback and hints, thanks!

I assume you want to get the OS and apps on your SSD and the rest of your files on the HDD.

Attach the optical drive to it's SATA II connection and the SSD to the SATA III connection.
Install the OS and apps on the SSD.
Replace the optical drive with the HDD.


Install Monokai Theme on Terminal with prompt colors, etc.? I already have a Monokai theme installed in Terminal, as so:

I was wondering how I could get the rest of the Monokai (as Sublime uses) into Terminal? Like, making the prompt (Gamma@~) colored, etc.

Here is my current .bash_profile file:

export PATH=/usr/local/bin:$PATH
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
export PS1="\u@\w $ "
alias ls='ls -G'

Thank you very much! I know this question is rather vague, but I cannot seem to find a PS1 color scheme that matches Monokai.

See this answer on the Unix & Linux SE. There are a number of additional colors that can be used in a 256 color terminal.

You can view the colors in Terminal, and see their codes, by running this bash script. (There is a also a color chart in the above linked post, or IMO a more readable chart here.)

#!/bin/bash

color=16;

while [ $color -lt 245 ]; do
    echo -e "$color: \\033[38;5;${color}mhello\\033[48;5;${color}mworld\\033[0m"
    ((color++));
done

Once you determine the colors you want, and have the color codes, you can use them in a PS1 prompt like shown below.

48;5;# where # is the color number you want, sets the background color.

38;5;# again # replaced with the color number, sets the foreground color.

In my case I wanted the default background that Terminal set when it was launched, and I use 0 to note this. (You can also see that toward the end of the sequence \[\e[0m\] - same idea, using 0 to reset everything to the default.)

export PS1='\[\e[0;38;5;166m\]\u@\H\[\e[0m\] \w $ '

The below screenshot shows my original, default prompt, and then how it looks when I sourced .bash_profile after defining PS1:


How to define Lion’s key variations in a `.keylayout` file? In Lion you can hold down a key to show its variations.

However, when using my custom keyboard layout in .keylayout format, this functionality is disabled.

I assume Lion’s default keyboard layouts have the special characters that appear when you hold down a certain key hardcoded somewhere, and my old custom keyboard layout (based on the default Snow Leopard-layouts) lacks that data.

My question is: how can these “key variations” be defined in a .keylayout file?

The special characters included in the popovers are defined in files like /System/Library/Input Methods/PressAndHold.app/Contents/Resources/Keyboard-en_US.plist, not in .keylayout files. (The popovers are also used with languages that have their own input methods like Vietnamese.)

I don't know how to add a property list like that for a custom layout though. I also tried copying the U.S..keylayout that comes with Ukelele to ~/Libary/Keyboard Layouts/ (without changing the name or id), but the popovers didn't work with it.


Connecting iPhone 4 to MacBook Pro via Bluetooth I'm having issues when trying to connect my new MacBook Pro to my iPhone 4 via Bluetooth. I'm trying to connect my iPhone to my MacBook so that I can use the iPhone as a hotspot through Bluetooth and not wi-fi or a cable.

Things I've done:
I start off by clicking the Bluetooth icon, then go to "Set Up Bluetooth Device..."
I then select my iPhone when it appears. The pairing popup comes up on my iPhone but it never does pair... I get a popup on my phone later on stating the MacBook Pro was not compatible.

What can be done to troubleshoot tethering over bluetooth?

Check out this post by @DanielSchlaug on the same subject: It certainly helped me (and a few other people).

Here's the content of Daniel's the answer:

  This fixes what i presume to be a corrupt internet sharing preference file. It will also remove all other network settings such as wifi access-points and their passwords so keep that in mind. Other data such as pictures and contacts will be completely safe.

  On your iPhone, go to Settings -> General -> Reset and choose Reset Network Settings.
  The iPhone will ask you to confirm and then restart.
  In Settings -> Internet Sharing reenable it and choose to turn on bluetooth if a dialog asking to do so appears.
  Reconnect to your wifi-network if applicable.
  You're probably done, try connecting. If it doesn't work go on.
  In Settings -> General -> Bluetooth tap the blue arrow beside your computer and choose to forget the device.
  On your computer go to System Preferences -> Bluetooth and remove your iPhone from the list.
  Go to System Preferences -> Network. In the Location drop down choose Edit Locations.... Add a new location and press done.
  Make sure the new location is selected and press Apply.
  Go back to System Preferences -> Bluetooth and re-pair your phone to the computer.
  Connect to your iPhone's bluetooth network.
  Back in System Preferences -> Network if you do not have a Bluetooth PAN interface add it by pressing the + button in the lower left.
  Press Apply and cross your fingers.


Aliased fonts in Picasa for OS X I just installed Picasa on Mountain Lion, but the fonts are really ugly and aliased:

This is a MacBook Pro with Retina display, if that makes a difference.
Is there something I can do about this?

This is a common problem with many apps on the retina Macbook Pro. We'll just have to wait until Google updates Picasa for the high-resolution display. There is a discussion about this on Google's Product Forums.


How do I move my Health data from one device to another? I just got an iPhone 6+ and I want to move my Health data from my iPhone 5. I know I can export it, but I don't see any importation options in Health. How do I move all this data?

iCloud will back up your health data on your iPhone so you can restore your health data to a new device or to your device if it fails or needs to be wiped.

If you don’t use iCloud, iTunes also backs up health data but only if you select "Encrypt iPhone Backup".

When you do a "Restore from Backup" on your iPhone 6, select the encrypted backup you just made. Your health data will then come across along with all other backed up data.

If you do not encrypt your backup (as I did) and you have already "moved on" with your iPhone 6 with new apps and data, well then, that is another question that I am trying to find the answer to, as the above will not help you much.

See http://support.apple.com/en-us/ht5262


How to configure default phone call app on Mac Skype for Business has been my Mac's default phone call app ever since I installed it. Is there a way to switch to FaceTime—or better yet, handoff to iPhone?

When I place calls from my iPhone, I can switch the audio to my Mac.

Open FaceTime on your Mac, select FaceTime > Preferences, select Settings, then change Default for calls to FaceTime.

via https://discussions.apple.com/thread/7715107


iPhone 4 stuck on black screen after Jailbreaking with Cydia I have an iPhone 4, jailbroken, and running iOS 7.1.2. I opened the Cydia app, it appeared to be loading something so I waited. Then the screen turned black. I can still hear sounds such as the charging tone when you plug your iPhone in to your PC and things like that. A few posts have recommended doing some Lock Button and Home Button combo but my lock button is broken and doesn't work.

I can't seem to restore because Find My iPhone is enabled and I need to disable it to be able to restore.

Is there any way I can restore this phone and remove Cydia?

Try downloading redsn0w and creating a DFU mode IPSW. Restore the IPSW with iTunes. Now that your phone is in DFU mode, you can totally wipe the iPhone and restore.

You can download redsn0w here.


Is Quicktime always pre-installed on the Macintosh OS? Does the Mac come with Quicktime pre-installed?
If so, what OS version (minimum) could be expected to have come with it pre-installed?

Every version of Mac OS X has QuickTime. QuickTime Pro is/was an optional paid extra, which included extra codecs and additional functionality.

The situation with "classic" Mac OS was rather more complicated, but I'm guessing you only care about OS X.


How can I speed up SD card writing speed (using /dev/disk*) on a MacBook Pro? I've been installing some linux distributions onto an SD card from my MacBook, although they take over an hour to transfer a few hundred MB (using dd and /dev/disk1).

If you look at the above output it's working at roughly 0.31 MB/s! The SD card is a Class 10, and my MacBook Pro is the 2.66 GHz Intel Core 2 Duo, 4 GB 1067 MHz DDR3, and OS X Lion 10.7.4. Here is the hardware report for the card reader:

  Built in SD Card Reader:

  Vendor ID:  0x05ac
  Product ID:    0x8403
  Revision:  1.00   Serial
  Number:   9833

  SDHC Card:

  Capacity:   7.97 GB (7,969,177,600 bytes)
  Removable Media:  Yes   BSD
  Name: disk1
  Partition Map Type:   MBR (Master Boot Record)
  S.M.A.R.T. status:    Not Supported
  Volumes:

  PI:
  Capacity: 7.96 GB (7,964,983,296 bytes)
  File System:  MS-DOS
  BSD Name: disk1s1
  Content:  DOS_FAT_32

Any ideas why the transfer to /dev/disk1 is so slow and how I could speed it up?

Just ran into the same problem and it seems to be that /dev/disk* is slow because it is buffered. If you use the corresponding rdisk device (ex: /dev/rdisk1s1) you should get the speed you expect. This is apparently a BSD thing.

Example:

% sudo dd if=pi.bin of=/dev/disk1 bs=1m count=4095
^C408+0 records in
407+0 records out
426770432 bytes transferred in 1393.452305 secs (306268 bytes/sec)

% sudo dd if=pi.bin of=/dev/rdisk1 bs=1m count=4095
4095+0 records in
4095+0 records out
4293918720 bytes transferred in 378.669512 secs (11339489 bytes/sec)

Ref:

Note on Dev Entry Access
Post on Apple mailing list


How can I determine the source of these notifications? (macOS) How can I determine the source of these notifications? I don't have any app that is called "Computing on Demand" and I can't find any reference to it on the Internet. I've thought about turning off all notifications and turning back on one by one but I'm not sure that would turn them off if its malicious.

https://computingondemand.com/
Found this website.

You can also get notifications from websites on your system. Maybe go to the website and check if the notifications are enabled. Click the lock icon to see the notification status.


How can I provide useful feedback to Mac Photos software designers? I have been experiencing a number of issues since migrating from iPhoto to Photos, and I would like to provide useful input/feedback to the Apple software designers.

What would the best way to do that?

Apple does provide a feedback form where you can submit suggestions/complaints/ideas.

You won’t get a response, and there are no guarantees they will implement your ideas, but I’ve seen good evidence on a number of occasions that Apple does take such feedback seriously.

When voicing your concerns just remember that respectful discourse is far more likely to make an impact.


Can Apple Watch faces display reminders other than the scheduled list? Some of the faces available for the Apple Watch 4 allow me to set "Reminders" as one of the displayed complications. Unfortunately, all it ever shows is "NO REMINDERS" because none of my reminders are scheduled.

I can't seem to find any settings at all for the Reminders app, either on the watch or in the iOS Watch app. I just want it to show me the top item in a particular list. Is that possible?

No, you need to have your reminders scheduled to show on the watch face.
To workaround this you can simply set them for a date long in the future and set the alarm to no alarm.


Will the OEM version of Windows 7 install okay on a Macbook Pro We are considering getting a Macbook Pro but are quite heavily tied to windows application so want to install Windows 7 on it.

Can you install the OEM version of Windows 7 on a Macbook Pro using boot camp or do you need a full licence?

I'm fairly sure there should be no difference, I've installed OEM version of Windows an quite a few machines before I was wondering if there was anything that would stop it working on a Macbook.

Also are there any limitations on which SKU of Windows 7 will run on a Macbook Pro (Home Premium, Ultimate, etc.)

The OEM version has only three differences compared to the retail versions:

1) Retail versions come with both 32-bit and 64-bit installations.  OEM versions are one or the other, so you will want to make sure you're ordering the right version - for a new MBP, 64-bit unless you have a compelling reason to go with 32-bit.

2) OEM versions are tied to the hardware they are installed on and cannot be moved, ever.  This MAY be an issue if you are planning on using virtualization software against your bootcamp installation, since the VM "hardware" looks different from the real hardware.

3) OEM versions do not come with telephone support from MS.

There is NO difference in the actual executable code, and so it would work just fine on an MBP.  As for the SKUs, again, it would make no difference.  The higher-end SKUs add additional features, not additional hardware support.

I do have a few questions for you.  Which Windows application(s) are you tied to?    What are the specs of the hardware you are ordering?  Depending on your answers, it MAY make more sense to consider virtualization so that you can run that one or two Windows applications "on top" of MacOS and have access to both sets of applications at the same time.


How can I download an older version of Xcode? I am trying to download Xcode from the App Store, but it says that I have to have a newer version of macOS. But I don't have enough space on my computer to upgrade. Its like 8 gigs or something like that and if I only could download Xcode that was compatible with macOS Sierra that would be nice.

If you have a developers account you can download past versions of Xcode from here...

A developers account is $99 per year if you want to open one. There used to be an option for a free developers account. If just required an apple password. If you have an apple id, you might try visiting the link included here.


Use Sugru for fraying lightning adapter on a Thunderbolt Display? I have a 27-inch Thunderbolt display and the thunderbolt connector--not the magsafe power cord--is fraying on the end that plugs into the laptop. I've seen several posts about using sugru on the power cords, can I use it on the thunderbolt cord from my monitor as well? Thanks!

yes, I just did this, it was simple and it worked well! The Sugru pack is abot $12 and it's far simpler than lugging the display in to an Apple store.


Can I move the Google Drive folder to a different volume? Is there a way to put the Google Drive folder on a different volume on my Mac (where I have more free space)?  I tried Googling the question, and just got tips about doing it on Windows.

I figured it out.

Quit Google Drive and remove the Google Drive folder.
Restart Google Drive.
Error message saying that it can't find the folder will pop up.
Click the error message text to open a dialog in which one can specify a new folder.
Specify your new folder location.


Deprecated “natd” and “ipfw” in El Capitan I want to share my internet connection and VPN connection but Tunnelblick/OpenVPN doesn’t play nice with internet connection sharing in OS X.

There was a suggestion on a workaround on how to route all traffic over VPN as per this post: Using (and sharing) a VPN connection on your Mac

The script is:

#!/bin/sh

natd -interface tun0
ipfw -f flush
ipfw add divert natd ip from any to any via tun0
ipfw add pass all from any to any
sysctl -w net.inet.ip.forwarding=1

I am not a UNIX expert – so I am just wondering if anyone can help me with the alternative for the above deprecated commands please?

I figured it and it seems sharing VPN connection in El Capitan is so much easier than it seems.

In Preferences -> Network click on + and add a VPN (PPTP or L2TP)

In Preferences -> Sharing

Select (do not check yet), from the Share your connection from choose VPN connection previously created.
From To computers using select Wi-Fi if you connect your computer to internet with Ethernet cable or select Ethernet if you connect your computer to internet with Wi-Fi.
You can change Wi-Fi Options from bottom left button.
Now Check the Internet Sharing from the left menu, and click Start
Every time you connect the VPN a network will be created and lets you connect to it with any device and use the VPN on you Mac.


Why is double time speed different on iPod vs iPhone? I have a 6th gen iPod Nano (software version 1.2) and an iPhone 4S (iOS 6.0.1) . On the iPod, I have options to listen to podcasts at ½x, 1x, and 2x time. On the iPhone Podcasts app version 1.1.2 (209), I have options for ½x, 1x, 1.5x, 2x, and 3x time. If I listen to a podcast at 1x speed on both devices, it unsurprisingly sounds the same. However, if I listen to a podcast at 2x speed on both devices, it sounds more sped up on the iPhone. The voices sound more natural on the iPod but more like chipmunks on the iPhone. Is there a reason for this difference? Why do these two Apple devices handle audio speeds differently?

I can only offer a shot in the dark, and that is that the iPod has a weaker processor and when it tries to double the speed, the time it takes for the processor to do some calculations slows it down a little.


Mac OS X 10.8 QuickLook Causing CPU & Temperature Spikes I have consistently been having a problem with my computer overheating due to random processes using 100%+ CPU.  Commonly the problem occurs with the process QuickLookSatellite-general, but it is not limited to it. (Please see images below.)

When the QuickLookSatellite-general is the process in question, resetting the Quick Look Manager:

qlmanage -r

…seems to solve the problem.  Otherwise the problem continues until the application is closed or the process decides to stop.

On Google I found this process is associated with DraftSight, a CAD program. I do not and have never had this program installed.

Restarting does not even fix this problem. It makes my MacBook completely unusable as I do not want it to be damaged running at 90℃.

Any assistance is appreciated.

Thanks!

EDIT *** Addition, found disabling/resetting mdworker helped substantially

sudo mdutil -i off /
sudo mdutil -E /
sudo rm -Rf /var/folder/*
Reboot
sudo mdutil -i on / (I just left it off.)

It's a bug for sure, but the root-cause is a cached search in Finder which tries to find every file on the system and runs out of resource handles or something.
It's an obvious use-case in Finder that I'm astonished nobody has spotted yet (but I have been a Unix/Linux system developer for 20 years).

When Finder is doing it, you can both get rid of the phantom 'suck search' immediately, but also fix it permanently with 2 button clicks:-

When you have the issue, on the finder menu bar, you'll see the 4 icons pertaining to switching views, list, columns, coverflow,  etc.

Just click one of the buttons once to change the view to something else from your usual default, then click the button pertaining to your default view preference to change it back.

You should notice 3 things:-

The CPU-spin stops immediately and normality returns.
The phantom stuck search gets removed
It doesn't happen again - of course until you exercise the Finder design flaw (that's been there, what 7 years now!?!?) again. Just repeat until somebody wakes up and figures it out.

-Al.


Window moved after wake up from sleep When I leave my MacBook Pro idle for a while (either login or logout), it will automatically go into sleep mode. After I enter my password and wake it up from this mode, I usually see all the windows moved to a different place (usually at left top corner).

I use two external monitors and they always stay connected to my MacBook Pro.

Is there a way to keep all the windows in the same location? It's very annoying to have to adjust the windows back to the correct location every time I wake up the computer from sleep.

I'm using High Sierra 10.13.5

Unless you have some window manager that's causing this, it might be a transient thing where the external displays disconnect and windows all collect.

There are some nice window managers that let you automate fixing things so I'll mention them in case no one can confirm this is a specific bug or steps to control for this like ejecting all the displays or preventing sleep.

Is there a way to exactly position a window?
How to move windows on Mac as in windows from keyboard?
Move windows around a desktop -- and to different desktops -- using only the keyboard?
Window management app on mac os x?


how can I protect the private data on my Iphone? what is the best way to secure data on my iphone?

In my opinion I have to protect myself against the following risks:

theft
fault and phone must be returned

I fear for the following data

Logins to email, dorpbox, calender, ...
mails, photos, chat history, ...

The phone is allways locked, but with hardware access it might be possible to read the data...

Take the following steps as there is no one sure shot way to get the protection that will actually protect you (at-least to some extent):

Enable data Encryption on your device, even if someone is able to gain access to your data on the phone memory, there will be a layer of protection.
Apple/Google provide web management device utilities which gives ability for remote locking, remotely wiping data, changing passwords etc, check out those settings. Some third-party app provide for this as well.
don't install apps from outside the app store.
setup secure passwords and locks (use numbers lower-case, upper-case, symbols etc, you may even use special characters that are not directly available on the keyboard)
change your passwords often, maybe every 6 months atleast.
Enable 2-step authentication. PROBABLY ONE OF THE BEST THING YOU COULD DO RIGHT NOW. Most leading service providers, DropBox, Gmail (and other google services), Evernote provide this
option. then you need two bits of information to access your
account:

one, the information you know, your password.
second, the information you get (through an SMS/Email).

Provide an option for recovery, such as secondary mail/ contact number in case you forget your password.
keep a track of security holes such as the recent Heartbleed bug.
when some one uses your phone to make a call/text, be close and it might be a good idea to take his/her picture (you don't know whome he/she might be calling to, maybe some terrorist?)
you may even want to subscribe for sms updates for your
 facebook, twitter and google+  etc notifications for any suspicious
 activities in real time.


Can I track the amount of time I spend on which websites on Safari (iOS and OSX)? I would like to get something like a report of how much times I spend on which websites on a daily, weekly and monthly basis.

For example statistics like, you spend 2 hours on twitter, 3 hours on facebook, and 3 hours on google in the last week.

I would like this kind of information, because I want to get more insights in my own behaviour.

I know there is Safari History. And I hope there are maybe applications that can analyze this history for me.

If not, could I maybe write a script that could this kind of information out of my Safari History?

I would like a solution for both iOS and OSX.

You can use the app Timing.

  Document-Based Tracking

  Timing automatically tracks every app, document and website you use —
  including the full file path or URL. This makes assigning time
  tracking data much easier and more accurate.

I use it to track my computer time for the purposes of billing clients.


MacOS Sierra sleep mode after a couple of minutes I am new to Mac and writing codes. When I leave the laptop idle for a couple of minutes, it goes into hibernation or sleep mode and doesn't run it. So, I have to press the power button to activate it. Sometimes, I need the codes to run while I sleep or do things, so I am trying to lift this hibernation/sleep mode.

I used sudo pmset -g on terminal and it gave me the following:

System-wide power settings:
Currently in use:
 standbydelay         10800
 standby              1
 womp                 1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 powernap             0
 gpuswitch            2
 networkoversleep     0
 disksleep            0
 sleep                1
 autopoweroffdelay    28800
 hibernatemode        3
 autopoweroff         0
 ttyskeepawake        1
 displaysleep         10
 tcpkeepalive         1
 acwake               0
 lidwake              1

Apparently, it has 3 hours to standby. Does this 3 minutes come from hibernatemode 3?

I tried sudo pmset -a autopoweroff 0 and pmset -g |grep standbydelay but it gives a warning that

Warning: Idle sleep timings for "Battery Power" may not behave as expected.
- Disk sleep should be non-zero whenever system sleep is non-zero.
Warning: Idle sleep timings for "AC Power" may not behave as expected.
- Disk sleep should be non-zero whenever system sleep is non-zero.

What should I do?

You should go to your terminal, type man caffeinate and read it. You'll have the answer you need. If not, please follow up with a specific question.


How do I run a screen saver as my desktop background? I would like to run a screen saver as my desktop background.

How can I do this?

You can look here for instructions.

Essentially, set your preferred screen saver in the Screen Saver preference pane and run this command in the Terminal to see the screen saver on the desktop:

/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background &


Though there is g++/gcc in Xcode 8, gdb isn't found When I installed command line tools of Xcode in old Mac OS X,
there were g++/gcc of a compiler and a linker.
There was also gdb of a debugger.

In Xcode 8.0 (8A218a) of Mac OSX EI Captain (10.11.6),
there are g++ and gcc, but gdb isn't found.
I'd like to use a debugger of a command line tool.
Is there a debug command? If there is, please tell me.

When the g++/gcc [-c] .c/.cpp -g is executed before,
*.o and executable format (a.out) seem to have included all symbol information.
When g++/gcc [-c] .c/.cpp -g makes executable format (a.out)
in case of Xcode 8.0 (8A218a) of Mac OS X EI Captain (10.11.6),
a directory called a.out.dSYM is made at the same directory,
and symbol information seems to be here.

When there are no debug command line tool,
if it's possible to debug a program by a GUI of Xcode in IDE,
please tell me the way.

Regards

The command-line debugger in Xcode is now LLDB; the relevant command is lldb.


Trash and unread mail boxes show 700 non-visible emails Can't get the boxes to empty or the number to change or disappear. Don't know if there are any real emails stored somewhere or not

This is easy to sort.

Put the iPad in airplane mode and then power it down.

Then power it up and don't connect to any networks.

Open mail.app and see what the status it. It will warn you, perhaps several times with different wording, that you are offline. Remain offline and then get a read count. You should be able to mark messages as read and then decide when to connect to a network - hopefully a fast one to see that things then sync up.

As an alternative, power off the iPad and use webmail to get a feel that the mail service is working, then work on the iPad as above.


Extract a sound from a Classic application for Mac OS X? How can I extract a single 'snd' resource from a classic application into a form that Mac OS X can play?

I can use derez to get the snd resource out, but from there I'm not sure how to assemble it into a form Mac OS X can read.

This is on Lion; I have no access to earlier Macs.

Derezed,it starts like this:

data 'snd ' (3004, "metal stamp", purgeable) {
    $"0002 0000 0001 8050 0000 0000 000E 0000"            /* ......ÄP........ */
    $"0000 0000 159E 2B77 45D1 0000 159C 0000"            /* .....û+wE—...ú.. */
    $"159D 003C 787D 807E 7D7D 8087 8376 6E72"            /* .ù.<x}Ä~}}ÄáÉvnr */
    $"7C87 8782 8789 857F 7169 5F74 9891 7068"            /* |ááÇáâÖ.qi_tòëph */

I had some System 7 Sound files, too. I just tried DaveM's answer, and it worked, except I had to set the frequency to 11025 (not 8192).

My steps:

Used Rezilla to copy the raw hex from the resource fork.
Used Hex Fiend to paste it as a regular file (added .au extension, but that doesn't really do much since it's still not directly playable)
Audacity > File > Import > Raw Data, select .au file
Change Sample Rate to 11025 Hz
Export as wav!


Reverting daylight saving time I'm running El Capitan 10.11.6 (15G21013) in Brazil.

Earlier today my machine switched to DST, which would be fine if the official date for the switch had not recently moved to Nov 4. Here is what I get on this Mac:

$ zdump -v /etc/localtime | grep 2018
/etc/localtime  Sun Oct 21 02:59:59 2018 UTC = Sat Oct 20 23:59:59 2018 BRT isdst=0
/etc/localtime  Sun Oct 21 03:00:00 2018 UTC = Sun Oct 21 01:00:00 2018 BRST isdst=1

A Linux machine I've checked did not switch to DST. There I get

$ zdump -v /etc/localtime | grep 2018
/etc/localtime  Sun Nov  4 02:59:59 2018 UTC = Sat Nov  3 23:59:59 2018 -03 isdst=0 gmtoff=-10800
/etc/localtime  Sun Nov  4 03:00:00 2018 UTC = Sun Nov  4 01:00:00 2018 -02 isdst=1 gmtoff=-7200

I understand that this is probably due to El Capitan not having been updated after the new DST date was decided.

I tried copying /etc/localtime from the Linux machine to the Mac (in Recovery mode). The date command in the terminal did display the correct time, but the clock on the menu bar did not. So I reverted the change, restoring the original file.

I've found up-to-date zoneinfo files at https://www.iana.org/time-zones but SIP does not allow me to update /usr/share/zoneinfo/ with zic.

How can I fix this?

Copy the whole /usr/share/zoneinfo/ from a newer Mac to my Mac? Will that work?
Change the time manually and wait until Nov 4 and then switch back to setting it automatically from Apple servers?
Change the timezone to one zone further west until Nov 4, leaving the time as is?

This temporary fix worked fine for me and is the easiest to apply:

  Change the timezone to one zone further west until Nov 4, leaving the time as is.


The launchpad button does not appear in the dock? Just bought a new Macbook Pro with lion, but the launchpad button is not in the dock and I can't find it anywhere on the computer. I thought it may be gone because when I started the computer I used a firewire cable to put all the information from my old Macbook into the Macbook pro, and so all the settings from the Macbook were transferred. Could this have deleted the launchpad button? All help is appreciated!

The launchpad button is an normal application.  You should expect to find it in the /Applications folder.  If it is there, you can drag a copy to the dock.


How can I better understand iCloud security for 1Password data? My understanding is iCloud uses server-side encryption of customer data.

I am no expert but what about the data e.g. of an app like 1Password which can syncs very sensitive user data to many devices via iCloud.

Since 1Password purposefully encrypts data before sending it to iCloud, does this mean the data cannot be looked up by Apple employees?

1Password does not use "iCloud" which is a service offering from Apple, by default it uses Dropbox but can also use other cloud solutions. 1Password does not support storing data on Apple's iCloud.

1Password 3 data file sync solutions

About 1Password Encryption

  The slightly longer answer is that your data is encrypted using AES,
  the same state-of-the-art encryption algorithm used as the national
  standard in the United States. 1Password uses 128-bit keys for
  encryption, which means that it would take millions of years for a
  criminal to decrypt your data using a brute force attack.

And more about Agile Keychain Design and encryption

Information about Dropbox and encryption. Keep in mind that Dropbox does not encrypt the files that you store with their service, but they do encrypt the traffic between your computer and their servers at Amazon.

UPDATE 20121217:
I see that the latest version of 1Password does offer the ability to use Apple's iCloud for storing and sharing.

Here is an knowledge base article from Apple on the subject, iCloud: iCloud security and privacy overview. But it does not cover the encryption of non-Apple application data.

Ars has a much better article discussing encryption in iCloud, Apple holds the master decryption key when it comes to iCloud security, privacy

It seems to me that Agilebits has really fallen behind on updating their web site with information about the latest version of 1Password for iOS. It looks like 1Password Pro, which I have been using for awhile now, has been removed from iTunes and the only version available is the new version here. I would guess that a new version for the desktop is also on its way.


Change the Apple login account for iPhone developer programme Recently I have registered for the iPhone developer program with an Email ID, but now I want to changer my login ID to some other email ID. Is it possible to change it now?

You could try following Apple's instructions for changing the e-mail address associated with your AppleID.


Mac OS X with swap turned off uses 6 GB of space in a few hours of heavy use I have few GBs (5,38 GB at the moment) of free space on my hard disk (MacBook Pro 2010, 10.7.5). Few hours after I turn on/reboot my computer, the free space slowly goes down to zero and the system hangs. I've found out that these 2 programs cause this problem: xCode, Google Chrome (both programs are memory-consuming I believe), although I think the problem is related to OS itself.

I've found similar questions but they all seem to be related to vanishing some of the disk space, where in my case I slowly loose all of the disk space.

What I've tried so far:

Using OmniSweeper to clean my disk
Disabling Mac OS X Paging/Swap as described here
Deleting sleep image

Right now, the only solution for this problem is to reboot the system (then it has all these GBs back and I can work for few hours). When I close Google Chrome and wait for few minutes, the system frees some (no more than 600 MBs) of disk space.

What can cause this problem? What software can I use to investigate it?

First, if you want to free up some more space, I used xSlimmer.  It delocalizes AND gets rid of the "Universal" code that isn't used by Intel processors.  This makes all the Apps smaller.  Depending on the number of Apps you have installed you may only see another couple Gigs freed up.

Chrome is caching websites to your disk.  That's part of what it does to "speed up" page viewing.  Most people don't spend all day going to new websites.  They go to websites they are familiar with.  So Chrome (and other web browsers) cache to your hard drive.  Since material is pulled from the local disk, it "speeds up" the page view.

Quite honestly, this is not a "problem" (per se).  This is expected behavior.  You need to either remove unused programs, remove (or compress) unnecessary data files, or increase the size of your HD.  There's really not another option.  Programs may use hard drive space for other functions (auto saving is an example).

It's actually not a great idea to turn off your swap.  Now there are some exceptions to this, I have 16 GB of RAM and didn't Swap once in 30 days.  I have years of experience and decided to shut off my Swap temporarily.  That was a month ago.  No problems yet.

I'm not trying to sound condescending, you may know more about Swap files than I do (you may have invented them).  I'm just saying that usually this is not a good idea.  And if your system really only (yes, only) has 4GB of memory, you are going to cause yourself out of memory problems, or software crashes.  I know because my Mac Mini swaps all the time using 4GB.